@accordproject/concerto-core 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/umd/concerto.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see concerto.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("concerto",[],t):"object"==typeof exports?exports.concerto=t():e.concerto=t()}(self,(function(){return function(){var e={1036:function(e,t,r){"use strict";const n=r(4572);e.exports=n.PromisePool},9789:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolError=void 0;class r extends Error{constructor(e,t){super(),this.item=t,this.name=this.constructor.name,this.message=this.messageFrom(e),Error.captureStackTrace(this,this.constructor)}static createFrom(e,t){return new this(e,t)}messageFrom(e){return e instanceof Error||"object"==typeof e?e.message:"string"==typeof e||"number"==typeof e?e.toString():""}}t.PromisePoolError=r},6205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolExecutor=void 0;const n=r(9789);t.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}for(e){return this.items=e,this}withHandler(e){return this.handler=e,this}handleError(e){return this.errorHandler=e,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const e of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(e);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(e){const t=this.createTaskFor(e).then((e=>{this.results.push(e),this.tasks.splice(this.tasks.indexOf(t),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(t),1),this.errorHandler)return this.errorHandler(r,e);this.errors.push(n.PromisePoolError.createFrom(r,e))}));this.tasks.push(t)}async createTaskFor(e){return this.handler(e)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},4572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePool=void 0;const n=r(6205);class o{constructor(e){this.concurrency=10,this.items=null!=e?e:[],this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}static withConcurrency(e){return(new this).withConcurrency(e)}for(e){return new o(e).withConcurrency(this.concurrency)}static for(e){return(new this).for(e)}handleError(e){return this.errorHandler=e,this}async process(e){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(e).handleError(this.errorHandler).for(this.items).start()}}t.PromisePool=o},9640:function(e,t,r){"use strict";e=r.nmd(e);const n=r(841),o=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`},i=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`},a=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const o=n[r];t[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1])}Object.defineProperty(t,r,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const r=e=>e,s=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:o(r,0)},t.color.ansi256={ansi256:i(r,0)},t.color.ansi16m={rgb:a(s,0)},t.bgColor.ansi={ansi:o(r,10)},t.bgColor.ansi256={ansi256:i(r,10)},t.bgColor.ansi16m={rgb:a(s,10)};for(let e of Object.keys(n)){if("object"!=typeof n[e])continue;const r=n[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=o(r.ansi16,0),t.bgColor.ansi[e]=o(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=i(r.ansi256,0),t.bgColor.ansi256[e]=i(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=a(r.rgb,0),t.bgColor.ansi16m[e]=a(r.rgb,10))}return t}})},9644:function(e,t,r){e.exports=r(5644)},353:function(e,t,r){"use strict";var n=r(3044),o=r(6955),i=r(2233),a=r(8030),s=r(7948),u=r(1875),c=r(842),l=r(8618),f=r(1439),p=r(6714);e.exports=function(e){return new Promise((function(t,r){var d,h=e.data,m=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}n.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+A)}var E=s(e.baseURL,e.url);function w(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(w)},v.onabort=function(){v&&(r(l("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(l("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in v&&n.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),y&&"json"!==y&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){v&&(r(!e||e&&e.type?new p("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),v.send(h)}))}},5644:function(e,t,r){"use strict";var n=r(3044),o=r(3644),i=r(2215),a=r(2937),s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(1439));s.Axios=i,s.Cancel=r(6714),s.CancelToken=r(4089),s.isCancel=r(8041),s.VERSION=r(9241).version,s.all=function(e){return Promise.all(e)},s.spread=r(783),s.isAxiosError=r(5587),e.exports=s,e.exports.default=s},6714:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4089:function(e,t,r){"use strict";var n=r(6714);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8041:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2215:function(e,t,r){"use strict";var n=r(3044),o=r(8030),i=r(946),a=r(6895),s=r(2937),u=r(7525),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;r.length;){var p=r.shift(),d=r.shift();try{f=p(f)}catch(e){d(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=l},946:function(e,t,r){"use strict";var n=r(3044);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},7948:function(e,t,r){"use strict";var n=r(9192),o=r(8762);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},8618:function(e,t,r){"use strict";var n=r(1935);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},6895:function(e,t,r){"use strict";var n=r(3044),o=r(8556),i=r(8041),a=r(1439),s=r(6714);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},1935:function(e){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},2937:function(e,t,r){"use strict";var n=r(3044);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},6955:function(e,t,r){"use strict";var n=r(8618);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8556:function(e,t,r){"use strict";var n=r(3044),o=r(1439);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},1439:function(e,t,r){"use strict";var n=r(3044),o=r(8868),i=r(1935),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(353)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},9241:function(e){e.exports={version:"0.23.0"}},3644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},8030:function(e,t,r){"use strict";var n=r(3044);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},8762:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2233:function(e,t,r){"use strict";var n=r(3044);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5587:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},842:function(e,t,r){"use strict";var n=r(3044);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},8868:function(e,t,r){"use strict";var n=r(3044);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},1875:function(e,t,r){"use strict";var n=r(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7525:function(e,t,r){"use strict";var n=r(9241).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},3044:function(e,t,r){"use strict";var n=r(3644),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9379:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(5783),a=r(1104),s=a.DefaultFileLoader,u=a.FileDownloader,c=a.ModelWriter,l=r(5076).MetaModelUtil,f=r(6938),p=r(5338),d=r(7619),h=r(3407),m=r(6697),y=r(6972),g=r(5400),v=r(4449),b=v.rootModelFile,A=v.rootModelCto,E=v.rootModelAst;void 0===r.g&&(r(1988),r(4356),r(79),r(7291),r(7667),r(1081),r(6858),r(9966));var w=r(5130)("concerto:BaseModelManager"),C=function(e,t){return{ast:t,definitions:null,fileName:e}},F=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processFile=r||C,this.modelFiles={},this.factory=new f(this),this.serializer=new y(this.factory,this,t),this.decoratorFactories=[],this.addRootModel()}var t,r,a,v;return t=e,r=[{key:"isModelManager",value:function(){return!0}},{key:"addRootModel",value:function(){var e=new h(this,E,A,b);this.addModelFile(e,A,b)}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"validateModelFile",value:function(e,t){if("string"==typeof e){var r=this.processFile(t,e).ast;new h(this,r,e,t).validate()}else e.validate()}},{key:"_throwAlreadyExists",value:function(e){var t=this.modelFiles[e.getNamespace()].getName(),r=t?" in file ".concat(t):"",n=e.getName()?" specified in file ".concat(e.getName()):"",o="Namespace ".concat(e.getNamespace()).concat(n," is already declared").concat(r);throw new Error(o)}},{key:"addModelFile",value:function(e,t,r,n){return w("addModelFile","addModelFile",e,r),this.modelFiles[e.getNamespace()]?this._throwAlreadyExists(e):(n||e.validate(),this.modelFiles[e.getNamespace()]=e),e}},{key:"addModel",value:function(e,t,r,n){w("addModel","addModel",e,r);var o=this.processFile(r,e),i=o.ast,a=o.definitions,s=t||a,u=new h(this,i,s,r);return this.addModelFile(u,s,r,n),u}},{key:"updateModelFile",value:function(e,t,r){if(w("updateModelFile","updateModelFile",e,t),"string"==typeof e){var n=this.processFile(t,e).ast,o=new h(this,n,e,t);return this.updateModelFile(o,t,r)}if(!this.modelFiles[e.getNamespace()])throw new Error("Model file for namespace ".concat(e.getNamespace()," not found"));return r||e.validate(),this.modelFiles[e.getNamespace()]=e,e}},{key:"deleteModelFile",value:function(e){if(!this.modelFiles[e])throw new Error("Model file does not exist");delete this.modelFiles[e]}},{key:"addModelFiles",value:function(e,t,r){var n="addModelFiles";w(n,"addModelFiles",e,t);var o={};Object.assign(o,this.modelFiles);var i=[];try{for(var a=0;a<e.length;a++){var s=e[a],u=null;t&&(u=t[a]);var c=void 0;if("string"==typeof s){var l=this.processFile(u,s).ast;c=new h(this,l,s,u)}else c=s;this.modelFiles[c.getNamespace()]?this._throwAlreadyExists(c):(this.modelFiles[c.getNamespace()]=c,i.push(c))}return r||this.validateModelFiles(),i}catch(e){throw this.modelFiles={},Object.assign(this.modelFiles,o),e}finally{w(n,i)}}},{key:"validateModelFiles",value:function(){for(var e in this.modelFiles)this.modelFiles[e].validate()}},{key:"updateExternalModels",value:(a=regeneratorRuntime.mark((function e(t,r){var n,o,i,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w("updateExternalModels","updateExternalModels",t),r||(r=new u(new s(this.processFile),(function(e){return l.getExternalImports(e.ast)}))),e.next=5,r.downloadExternalDependencies(this.getModelFiles(),t);case 5:return n=e.sent,o={},Object.assign(o,this.modelFiles),e.prev=8,i=[],n.forEach((function(e){var t=new h(a,e.ast,e.definitions,e.fileName);a.modelFiles[t.getNamespace()]?i.push(a.updateModelFile(t,t.getName(),!0)):i.push(a.addModelFile(t,null,t.getName(),!0))})),this.validateModelFiles(),e.abrupt("return",i);case 15:throw e.prev=15,e.t0=e.catch(8),this.modelFiles={},Object.assign(this.modelFiles,o),e.t0;case 20:case"end":return e.stop()}}),e,this,[[8,15]])})),v=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=a.apply(e,t);function s(e){n(i,r,o,s,u,"next",e)}function u(e){n(i,r,o,s,u,"throw",e)}s(void 0)}))},function(e,t){return v.apply(this,arguments)})},{key:"writeModelsToFileSystem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.writeModelsToFileSystem(this.getModelFiles(),e,t)}},{key:"getModelFiles",value:function(e){for(var t=Object.keys(this.modelFiles),r=[],n=0;n<t.length;n++){var o=t[n];(e||"concerto"!==o)&&r.push(this.modelFiles[o])}return r}},{key:"getModels",value:function(e){var t=this.getModelFiles(),r=[],n=Object.assign({includeExternalModels:!0},e);return t.forEach((function(e){if(!e.isExternal()||n.includeExternalModels){var t;if("UNKNOWN"!==e.fileName&&null!==e.fileName&&e.fileName){var o=e.fileName;t=i.basename(o)}else t=e.namespace+".cto";r.push({name:t,content:e.definitions})}})),r}},{key:"resolveType",value:function(e,t){if(m.isPrimitiveType(t))return t;var r=m.getNamespace(t),n=this.getModelFile(r);if(!n){var o=p.messageFormatter("modelmanager-resolvetype-nonsfortype");throw new d(o({type:t,context:e}))}if(n.isLocalType(t))return t;var i=p.messageFormatter("modelmanager-resolvetype-notypeinnsforcontext");throw new d(i({context:e,type:t,namespace:n.getNamespace()}))}},{key:"clearModelFiles",value:function(){this.modelFiles={},this.addRootModel()}},{key:"getModelFile",value:function(e){return this.modelFiles[e]}},{key:"getModelFileByFileName",value:function(e){return this.getModelFiles().filter((function(t){return t.getName()===e}))[0]}},{key:"getNamespaces",value:function(){return Object.keys(this.modelFiles)}},{key:"getType",value:function(e){var t=m.getNamespace(e),r=this.getModelFile(t);if(!r){var n=p.messageFormatter("modelmanager-gettype-noregisteredns");throw new g(e,n({type:e}))}var o=r.getType(e);if(!o){var i=p.messageFormatter("modelmanager-gettype-notypeinns");throw new g(e,i({type:m.getShortName(e),namespace:t}))}return o}},{key:"getAssetDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getAssetDeclarations())}),[])}},{key:"getTransactionDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getTransactionDeclarations())}),[])}},{key:"getEventDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getEventDeclarations())}),[])}},{key:"getParticipantDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getParticipantDeclarations())}),[])}},{key:"getEnumDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getEnumDeclarations())}),[])}},{key:"getConceptDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getConceptDeclarations())}),[])}},{key:"getFactory",value:function(){return this.factory}},{key:"getSerializer",value:function(){return this.serializer}},{key:"getDecoratorFactories",value:function(){return this.decoratorFactories}},{key:"addDecoratorFactory",value:function(e){this.decoratorFactories.push(e)}},{key:"derivesFrom",value:function(e,t){for(var r=this.getType(e);r;){if(r.getFullyQualifiedName()===t)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"resolveMetaModel",value:function(e){var t=this.getAst();return l.resolveLocalNames(t,e)}},{key:"fromAst",value:function(e){var t=this;this.clearModelFiles(),e.models.forEach((function(e){var r=new h(t,e);t.addModelFile(r,null,null,!0)})),this.validateModelFiles()}},{key:"getAst",value:function(e){var t=this,r={$class:"concerto.metamodel.Models",models:[]};return this.getModelFiles().forEach((function(n){var o=n.getAst();e&&(o=t.resolveMetaModel(o)),r.models.push(o)})),r}}],r&&o(t.prototype,r),e}();e.exports=F},4857:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(957),a="resource",s=r(1104).TypedStack,u=r(1607);void 0===r.g&&r(4975);var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r;return t=e,(r=[{key:"validate",value:function(e,t){var r=this.getTypeDeclaration(e),n={};n.stack=new s(e);var o=new u(this,t);r.accept(o,n)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"isObject",value:function(e){return"object"===n(e)&&e.$class}},{key:"getTypeDeclaration",value:function(e){if(!e.$class)throw new Error("Input object does not have a $class attribute.");var t=this.modelManager.getType(e.$class);if(!t)throw new Error("Type ".concat(e.$class," is not declared in the model manager"));return t}},{key:"getIdentifier",value:function(e){var t=this.getTypeDeclaration(e).getIdentifierFieldName();if(!t)throw new Error("Object does not have an identifier: ".concat(JSON.stringify(e)));return e[t]}},{key:"isIdentifiable",value:function(e){var t=this.getTypeDeclaration(e);return!t.isSystemIdentified()&&null!==t.getIdentifierFieldName()}},{key:"isRelationship",value:function(e){return"string"==typeof e&&e.startsWith("".concat(a,":"))}},{key:"setIdentifier",value:function(e,t){var r=this.getTypeDeclaration(e).getIdentifierFieldName(),n=JSON.parse(JSON.stringify(e));return n[r]=t,n}},{key:"getFullyQualifiedIdentifier",value:function(e){return this.getTypeDeclaration(e),"".concat(e.$class,"#").concat(this.getIdentifier(e))}},{key:"toURI",value:function(e){return this.getTypeDeclaration(e),"".concat(a,":").concat(e.$class,"#").concat(encodeURI(this.getIdentifier(e)))}},{key:"fromURI",value:function(e){var t;try{t=i.parse(e)}catch(t){throw new Error("Invalid URI: "+e)}var r=t.protocol;if(r&&r!==a)throw new Error("Invalid URI scheme: "+e);if(t.username||t.password||t.port||t.query)throw new Error("Invalid resource URI format: "+e);return{typeDeclaration:this.getTypeDeclaration({$class:t.path}),id:decodeURIComponent(t.fragment)}}},{key:"getType",value:function(e){return this.getTypeDeclaration(e).getName()}},{key:"getNamespace",value:function(e){return this.getTypeDeclaration(e).getNamespace()}}])&&o(t.prototype,r),e}();e.exports=c},7663:function(e,t,r){"use strict";var n=r(8879),o=r(264);n.extend(o);var i=r(3134);n.extend(i);var a=r(7995);n.extend(a);var s=r(4989);n.extend(s),e.exports={setCurrentTime:function(e,t){var r="number"==typeof t?t:n().utcOffset(),o=e?n.utc(e):n().utc();if(!o.isValid())throw new Error("Current time '".concat(e,"' is not in standard UTC format"));var i=o.utcOffset(r);if(!i.isValid())throw new Error("Cannot set current time to '".concat(e,"' with UTC offset '").concat(t,"'"));return{currentTime:i,utcOffset:r}}}},1840:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(4975),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"decorateModels",value:function(e,t){var r=this,n=e.getAst(!0),i=JSON.parse(JSON.stringify(n));i.models.forEach((function(e){e.declarations.forEach((function(n){t.commands.forEach((function(t){r.executeCommand(e.namespace,n,t)}))}))}));var a=new o;return a.fromAst(i),a}},{key:"falsyOrEqual",value:function(e,t){return!e||e===t}},{key:"applyDecorator",value:function(e,t,r){if("UPSERT"===t){var n=!1;if(e.decorators)for(var o=0;o<e.decorators.length;o++)e.decorators[o].name===r.name&&(e.decorators[o]=r,n=!0);n||(e.decorators?e.decorators.push(r):e.decorators=[r])}else{if("APPEND"!==t)throw new Error("Unknown command type ".concat(t));e.decorators?e.decorators.push(r):e.decorators=[r]}}},{key:"executeCommand",value:function(e,t,r){var n=this,o=r.target,i=r.decorator,a=r.type;this.falsyOrEqual(o.namespace,e)&&this.falsyOrEqual(o.declaration,t.name)&&(o.property||o.type?t.properties.forEach((function(e){n.falsyOrEqual(o.property,e.name)&&n.falsyOrEqual(o.type,e.$class)&&n.applyDecorator(e,a,i)})):this.applyDecorator(t,a,i))}}],null&&n(t.prototype,null),r&&n(t,r),e}();e.exports=i},6938:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(1104).TypedStack,i=r(5130)("concerto:Factory"),a=r(5338),s=r(6697),u=r(97),c=r(3232),l=r(1399),f=r(4469),p=r(8031),d=r(8938),h=r(9987),m=r(8879),y=r(264);m.extend(y),void 0===r.g&&r(4975);var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r,y;return t=e,y=[{key:"newId",value:function(){return h.v4()}}],(r=[{key:"newResource",value:function(t,r,n,o){o=o||{};var u=s.getFullyQualifiedName(t,r),c=this.modelManager.getType(u);if(c.isAbstract()){var f=a.messageFormatter("factory-newinstance-abstracttype");throw new Error(f({namespace:t,type:r}))}var h=c.getIdentifierFieldName();if(c.isSystemIdentified()&&(n=null==n?e.newId():n),h){if("string"!=typeof n){var y=a.messageFormatter("factory-newinstance-invalididentifier");throw new Error(y({namespace:t,type:r}))}if(0===n.trim().length){var g=a.messageFormatter("factory-newinstance-missingidentifier");throw new Error(g({namespace:t,type:r}))}}else if(n)throw new Error("Type is not identifiable "+c.getFullyQualifiedName());var v=null,b=null;return(c.isTransaction()||c.isEvent())&&(b=m.utc()),(v=o.disableValidation?new p(this.modelManager,c,t,r,n,b):new d(this.modelManager,c,t,r,n,b,new l)).assignFieldDefaults(),this.initializeNewObject(v,c,o),h&&(v[h]=n),i("newResource","Factory.newResource created ",n||"valid"),v}},{key:"newConcept",value:function(e,t,r,n){return this.newResource(e,t,r,n)}},{key:"newRelationship",value:function(e,t,r){var n=s.getFullyQualifiedName(e,t),o=this.modelManager.getType(n);if(!o.isIdentified())throw new Error("Cannot create a relationship to ".concat(n,", it is not identifiable."));return new f(this.modelManager,o,e,t,r)}},{key:"newTransaction",value:function(e,t,r,n){if(!e)throw new Error("ns not specified");if(!t)throw new Error("type not specified");var o=this.newResource(e,t,r,n);if(!o.getClassDeclaration().isTransaction())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not a transaction");return o}},{key:"newEvent",value:function(e,t,r,n){if(!e)throw new Error("ns not specified");if(!t)throw new Error("type not specified");var o=this.newResource(e,t,r,n);if(!o.getClassDeclaration().isEvent())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not an event");return o}},{key:"initializeNewObject",value:function(e,t,r){var n=this.parseGenerateOptions(r);if(n){n.stack=new o(e),n.seen=[e.getFullyQualifiedType()];var i=new u;t.accept(i,n)}}},{key:"parseGenerateOptions",value:function(e){if(!e.generate)return null;var t={};return t.modelManager=this.modelManager,t.factory=this,/^empty$/i.test(e.generate)?t.valueGenerator=c.empty():t.valueGenerator=c.sample(),t.includeOptionalFields=!!e.includeOptionalFields,t}}])&&n(t.prototype,r),y&&n(t,y),e}();e.exports=g},5338:function(e,t,r){"use strict";var n=r(6077);function o(e){return function(t){var r=n.en[e];for(var o in t)r=r.replace(new RegExp("\\{".concat(o,"\\}"),"g"),t[o]);return r}}function i(e){return n.en[e]}function a(e){return{messageFormatter:o,formatMessage:i}}a.messageFormatter=o,a.formatMessage=i,e.exports=a},1988:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"AssetDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},4356:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(7386),f=r(4823),p=r(4833),d=r(5338),h=r(7619),m=r(9444),y=r(6697),g=r(3988);void 0===r.g&&(r(3407),r(5960));var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(v,e);var t,r,n,a,l=(n=v,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function v(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(r=l.call(this,e,t)).process(),r}return t=v,(r=[{key:"process",value:function(){i(c(v.prototype),"process",this).call(this),this.name=this.ast.name,this.properties=[],this.superType=null,this.superTypeDeclaration=null,this.idField=null,this.timestamped=!1,this.abstract=!1,this.type=this.ast.$class,this.ast.isAbstract&&(this.abstract=!0),this.ast.superType?this.superType=this.ast.superType.name:"concerto"===this.modelFile.getNamespace()&&"Concept"===this.name||(this.superType="Concept"),this.ast.identified&&("concerto.metamodel.IdentifiedBy"===this.ast.identified.$class?this.idField=this.ast.identified.name:(this.idField="$identifier",this.addIdentifierField()));for(var e=0;e<this.ast.properties.length;e++){var t=this.ast.properties[e];if(t.name&&t.name.startsWith("$"))throw new h("Invalid field name ".concat(t.name),this.modelFile,this.ast.location);if("concerto.metamodel.RelationshipProperty"===t.$class)this.properties.push(new g(this,t));else if("concerto.metamodel.EnumProperty"===t.$class)this.properties.push(new f(this,t));else{if("concerto.metamodel.BooleanProperty"!==t.$class&&"concerto.metamodel.StringProperty"!==t.$class&&"concerto.metamodel.IntegerProperty"!==t.$class&&"concerto.metamodel.LongProperty"!==t.$class&&"concerto.metamodel.DoubleProperty"!==t.$class&&"concerto.metamodel.DateTimeProperty"!==t.$class&&"concerto.metamodel.ObjectProperty"!==t.$class){var r=d.messageFormatter("classdeclaration-process-unrecmodelelem");throw new h(r({type:t.$class}),this.modelFile,this.ast.location)}this.properties.push(new p(this,t))}}this.fqn=y.getFullyQualifiedName(this.modelFile.getNamespace(),this.name),"concerto.Transaction"!==this.fqn&&"concerto.Event"!==this.fqn||this.addTimestampField()}},{key:"addTimestampField",value:function(){this.properties.push(new p(this,{$class:"concerto.metamodel.DateTimeProperty",name:"$timestamp"}))}},{key:"addIdentifierField",value:function(){this.properties.push(new p(this,{$class:"concerto.metamodel.StringProperty",name:"$identifier"}))}},{key:"_resolveSuperType",value:function(){if(!this.superType)return null;this.superTypeDeclaration=null;var e=null;if(this.getModelFile().isImportedType(this.superType)){var t=this.getModelFile().resolveImport(this.superType);e=this.modelFile.getModelManager().getType(t)}else e=this.getModelFile().getType(this.superType);if(!e)throw new h("Could not find super type "+this.superType,this.modelFile,this.ast.location);if("ConceptDeclaration"!==e.declarationKind()&&this.declarationKind()!==e.declarationKind())throw new h("".concat(this.declarationKind()," (").concat(this.getName(),") cannot extend ").concat(e.declarationKind()," (").concat(e.getName(),")"),this.modelFile,this.ast.location);return this.superTypeDeclaration=e,e}},{key:"validate",value:function(){i(c(v.prototype),"validate",this).call(this);for(var e=this.getModelFile().getAllDeclarations(),t=0;t<e.length;t++)for(var r=e[t],n=t+1;n<e.length;n++){var o=e[n];if(r.getFullyQualifiedName()===o.getFullyQualifiedName())throw new h("Duplicate class name ".concat(r.getName()))}if(null!==this.superType&&this._resolveSuperType(),this.idField){var a=this.getProperty(this.idField);if(!a){var s=d("en").messageFormatter("classdeclaration-validate-identifiernotproperty");throw new h(s({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if("String"!==a.getType()){var u=d("en").messageFormatter("classdeclaration-validate-identifiernotstring");throw new h(u({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if(a.isOptional())throw new h("Identifying fields cannot be optional.",this.modelFile,this.ast.location);if(this.superType){var l=this.getModelFile().getType(this.superType);if(l&&l.isIdentified())if(this.isSystemIdentified()){if(!l.isSystemIdentified())throw new h("Super class ".concat(l.getFullyQualifiedName()," has an explicit identifier ").concat(l.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}else if(l.isExplicitlyIdentified())throw new h("Super class ".concat(l.getFullyQualifiedName()," has an explicit identifier ").concat(l.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}}for(var f=this.getProperties(),p=0;p<f.length;p++){for(var m=f[p],y=p+1;y<f.length;y++){var g=f[y];if(m.getName()===g.getName()){var b=d("en").messageFormatter("classdeclaration-validate-duplicatefieldname");throw new h(b({class:this.name,fieldName:m.getName()}),this.modelFile,this.ast.location)}}if(m.isPrimitive()||this.isEnum()||m.getNamespace()===this.getNamespace())m.validate(this);else{var A=m.getFullyQualifiedTypeName(),E=this.modelFile.getModelManager().getType(A);m.validate(E)}}}},{key:"isAbstract",value:function(){return this.abstract}},{key:"getName",value:function(){return this.name}},{key:"getNamespace",value:function(){return this.modelFile.getNamespace()}},{key:"getFullyQualifiedName",value:function(){return this.fqn}},{key:"isIdentified",value:function(){return!!this.getIdentifierFieldName()}},{key:"isSystemIdentified",value:function(){return"$identifier"===this.getIdentifierFieldName()}},{key:"isExplicitlyIdentified",value:function(){return!!this.idField&&"$identifier"!==this.idField}},{key:"getIdentifierFieldName",value:function(){if(this.idField)return this.idField;if(this.getSuperType()){var e=this.getModelFile().getLocalType(this.getSuperType());return e||(e=this.modelFile.getModelManager().getType(this.getSuperType())),e.getIdentifierFieldName()}return null}},{key:"getOwnProperty",value:function(e){for(var t=0;t<this.properties.length;t++){var r=this.properties[t];if(r.getName()===e)return r}return null}},{key:"getOwnProperties",value:function(){return this.properties}},{key:"getSuperType",value:function(){var e=this.getSuperTypeDeclaration();return e?e.getFullyQualifiedName():null}},{key:"getSuperTypeDeclaration",value:function(){return this.superType?this.superTypeDeclaration?this.superTypeDeclaration:this._resolveSuperType():null}},{key:"getAssignableClassDeclarations",value:function(){var e=new Set,t=this.getModelFile().getModelManager(),r=new m(t).getClassDeclarations(),n=new Map;return r.forEach((function(e){var t=e.getSuperType();if(t){var r=n.get(t)||new Set;r.add(e),n.set(t,r)}})),function t(r){r.forEach((function(r){e.add(r);var o=r.getFullyQualifiedName(),i=n.get(o);i&&t(i)}))}([this]),Array.from(e)}},{key:"getDirectSubclasses",value:function(){var e=this.getModelFile().getModelManager(),t=new m(e).getClassDeclarations(),r=new Map;t.forEach((function(e){var t=e.getSuperType();if(t){var n=r.get(t)||new Set;n.add(e),r.set(t,n)}}));var n=this.getFullyQualifiedName(),o=r.get(n);return o?Array.from(o):[]}},{key:"getAllSuperTypeDeclarations",value:function(){for(var e=[],t=this;t=t.getSuperTypeDeclaration();)e.push(t);return e}},{key:"getProperty",value:function(e){var t=this.getOwnProperty(e),r=null;if(null===t&&null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var n=this.getModelFile().resolveImport(this.superType);r=this.modelFile.getModelManager().getType(n)}else r=this.getModelFile().getType(this.superType);t=r.getProperty(e)}return t}},{key:"getProperties",value:function(){var e=this.getOwnProperties(),t=null;if(null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var r=this.getModelFile().resolveImport(this.superType);t=this.modelFile.getModelManager().getType(r)}else t=this.getModelFile().getType(this.superType);if(!t)throw new h("Could not find super type "+this.superType,this.modelFile,this.ast.location);e=e.concat(t.getProperties())}return e}},{key:"getNestedProperty",value:function(e){for(var t=e.split("."),r=this,n=null,o=0;o<t.length;o++){if(null===(n=r.getProperty(t[o])))throw new h("Property "+t[o]+" does not exist on "+r.getFullyQualifiedName(),this.modelFile,this.ast.location);if(o<t.length-1){if(n.isPrimitive()||n.isTypeEnum())throw new Error("Property "+t[o]+" is a primitive or enum. Invalid property path: "+e);r=r.getModelFile().getModelManager().getType(n.getFullyQualifiedTypeName())}}return n}},{key:"toString",value:function(){var e="";return this.superType&&(e=" super="+this.superType),"ClassDeclaration {id="+this.getFullyQualifiedName()+e+" enum="+this.isEnum()+" abstract="+this.isAbstract()+"}"}},{key:"isAsset",value:function(){return"concerto.metamodel.AssetDeclaration"===this.type}},{key:"isParticipant",value:function(){return"concerto.metamodel.ParticipantDeclaration"===this.type}},{key:"isTransaction",value:function(){return"concerto.metamodel.TransactionDeclaration"===this.type}},{key:"isEvent",value:function(){return"concerto.metamodel.EventDeclaration"===this.type}},{key:"isConcept",value:function(){return"concerto.metamodel.ConceptDeclaration"===this.type}},{key:"isEnum",value:function(){return"concerto.metamodel.EnumDeclaration"===this.type}},{key:"isClassDeclaration",value:function(){return!0}}])&&o(t.prototype,r),v}(l);e.exports=v},79:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(4356);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"ConceptDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},7386:function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(4458),s=r(7619);void 0===r.g&&r(3407);var u=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("modelFile not specified");if(!r)throw new Error("ast not specified");this.modelFile=t,this.ast=r}var t,r;return t=e,(r=[{key:"getModelFile",value:function(){return this.modelFile}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"process",value:function(){if(this.decorators=[],this.ast.decorators)for(var e=0;e<this.ast.decorators.length;e++){var t,r=this.ast.decorators[e],o=void 0,i=n(this.getModelFile().getModelManager().getDecoratorFactories());try{for(i.s();!(t=i.n()).done&&!(o=t.value.newDecorator(this,r)););}catch(e){i.e(e)}finally{i.f()}o||(o=new a(this,r)),this.decorators.push(o)}}},{key:"validate",value:function(){for(var e=0;e<this.decorators.length;e++){var t=this.decorators[e];t.validate();for(var r=e+1;r<this.decorators.length;r++){var n=this.decorators[r];if(t.getName()===n.getName())throw new s("Duplicate decorator ".concat(t.getName()),this.modelFile,this.ast.location)}}}},{key:"getDecorators",value:function(){return this.decorators}},{key:"getDecorator",value:function(e){for(var t=0;t<this.decorators.length;t++){var r=this.decorators[t];if(r.getName()===e)return r}return null}}])&&i(t.prototype,r),e}();e.exports=u},4458:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(5960));var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ast=r,this.parent=t,this.arguments=null,this.process()}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(this.name=this.ast.name,this.arguments=[],this.ast.arguments)for(var e=0;e<this.ast.arguments.length;e++){var t=this.ast.arguments[e];t&&("concerto.metamodel.DecoratorTypeReference"===t.$class?this.arguments.push({type:"Identifier",name:t.type.name,array:t.isArray}):this.arguments.push(t.value))}}},{key:"validate",value:function(){}},{key:"getName",value:function(){return this.name}},{key:"getArguments",value:function(){return this.arguments}},{key:"isDecorator",value:function(){return!0}}])&&n(t.prototype,r),e}();e.exports=o},7291:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(4458),r(5960));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"newDecorator",value:function(e,t){throw new Error("abstract function called")}}])&&n(t.prototype,r),e}();e.exports=o},7667:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(4356);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"toString",value:function(){return"EnumDeclaration {id="+this.getFullyQualifiedName()+"}"}},{key:"declarationKind",value:function(){return"EnumDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},4823:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960);void 0===r.g&&r(4356);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,a,l=(n=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function f(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e,t)}return t=f,(r=[{key:"validate",value:function(e){i(c(f.prototype),"validate",this).call(this,e)}},{key:"isEnumValue",value:function(){return!0}}])&&o(t.prototype,r),f}(l);e.exports=f},1081:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(722);void 0===r.g&&r(3407);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,a,l=(n=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function f(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e,t)}return t=f,(r=[{key:"process",value:function(){i(c(f.prototype),"process",this).call(this)}},{key:"declarationKind",value:function(){return"EventDeclaration"}}])&&o(t.prototype,r),f}(l);e.exports=f},4833:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960),f=r(3534),p=r(8631);void 0===r.g&&r(4356);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,r,n,a,l=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e,t)}return t=d,(r=[{key:"process",value:function(){switch(i(c(d.prototype),"process",this).call(this),this.validator=null,this.getType()){case"Integer":case"Double":case"Long":this.ast.validator&&(this.validator=new f(this,this.ast.validator));break;case"String":this.ast.validator&&(this.validator=new p(this,this.ast.validator))}this.ast.defaultValue?this.defaultValue=this.ast.defaultValue:this.defaultValue=null}},{key:"getValidator",value:function(){return this.validator}},{key:"getDefaultValue",value:function(){return this.defaultValue?this.defaultValue:null}},{key:"toString",value:function(){return"Field {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isField",value:function(){return!0}}])&&o(t.prototype,r),d}(l);e.exports=d},722:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=r(4356);void 0===r.g&&r(3407);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=n.call(this,e,t)).process(),r}return s}(s);e.exports=u},7619:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=r(1104).BaseFileException;void 0===r.g&&r(3407);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var i="",a=null;return t&&t.getName()&&(i="File '"+(a=t.getName())+"': "),r&&(i=i+"line "+r.start.line+" column "+r.start.column+", to line "+r.end.line+" column "+r.end.column+". "),i=i.charAt(0).toUpperCase()+i.slice(1),n.call(this,e,r,e+" "+i,a,o)}return s}(s);e.exports=u},9444:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(4975));var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getClassDeclarations",value:function(){for(var e=[],t=this.modelManager.getModelFiles(),r=0;r<t.length;r++){var n=t[r];e=e.concat(n.getAllDeclarations())}return e}},{key:"getClassDeclaration",value:function(e){return this.modelManager.getType(e)}},{key:"getModelManager",value:function(){return this.modelManager}}])&&n(t.prototype,r),e}();e.exports=o},1209:function(e,t,r){"use strict";var n=r(5076).MetaModelUtil,o=r(4975),i=r(6938),a=r(6972),s=r(3407);function u(){var e=new o,t=new s(e,n.metaModelAst,n.metaModelCto,"concerto.metamodel",!0);return e.addModelFile(t,n.metaModelCto,"concerto.metamodel"),e}function c(e){var t=u(),r=new i(t),n=new a(r,t),o=n.fromJSON(e);return n.toJSON(o)}e.exports={newMetaModelManager:u,validateMetaModel:c,modelManagerFromMetaModel:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t?c(e):e,n=new o;return r.models.forEach((function(e){var t=new s(n,e,null,null,!0);n.addModelFile(t,null,null)})),n.validateModelFiles(),n}}},3407:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4147),a=r(7699),s=r(1988),u=r(7667),c=r(79),l=r(6858),f=r(9966),p=r(1081),d=r(7619),h=r(6697),m=r(5338);void 0===r.g&&(r(4356),r(4975));var y=function(){function e(t,r,o,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t,this.external=!1,this.declarations=[],this.localTypes=new Map,this.imports=[],this.importShortNames=new Map,this.importWildcardNamespaces=[],this.importUriMap={},this.fileName="UNKNOWN",this.concertoVersion=null,!r||"object"!==n(r))throw new Error("ModelFile expects a Concerto model AST as input.");if(this.ast=r,o&&"string"!=typeof o)throw new Error("ModelFile expects an (optional) Concerto model definition as a string.");if(this.definitions=o,i&&"string"!=typeof i)throw new Error("ModelFile expects an (optional) filename as a string.");for(var a in this.fileName=i,i&&(this.external=i.startsWith("@")),this.fromAst(this.ast),this.isCompatibleVersion(),this.declarations){var s=this.declarations[a],u=this.getNamespace()+"."+s.getName();this.localTypes.set(u,this.declarations[a])}}var t,r;return t=e,(r=[{key:"isModelFile",value:function(){return!0}},{key:"isSystemModelFile",value:function(){return"concerto"===this.namespace}},{key:"isExternal",value:function(){return this.external}},{key:"getImportURI",value:function(e){return this.importUriMap[e]||null}},{key:"getExternalImports",value:function(){return this.importUriMap}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"getImports",value:function(){return this.imports.map(h.importFullyQualifiedName)}},{key:"validate",value:function(){var e=this;this.imports.forEach((function(t){var r=h.importFullyQualifiedName(t),n=t.namespace,o=e.getModelManager().getModelFile(n);if(!o){var i=m.messageFormatter("modelmanager-gettype-noregisteredns");throw new d(i({type:r}),e)}if("concerto.metamodel.ImportAll"!==t.$class){var a=t.name;if(!o.isLocalType(a)){var s=m.messageFormatter("modelmanager-gettype-notypeinns");throw new d(s({type:a,namespace:n}),e)}}}));for(var t=0;t<this.declarations.length;t++)this.declarations[t].validate()}},{key:"resolveType",value:function(e,t,r){if(!h.isPrimitiveType(t))if(this.isImportedType(t))this.getModelManager().resolveType(e,this.resolveImport(t));else if(!this.isLocalType(t)){var n=m("en").messageFormatter("modelfile-resolvetype-undecltype");throw new d(n({type:t,context:e}),this,r)}}},{key:"isLocalType",value:function(e){return e&&null!==this.getLocalType(e)}},{key:"isImportedType",value:function(e){if(this.importShortNames.has(e))return!0;for(var t in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[t],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(e))return!0}return!1}},{key:"resolveImport",value:function(e){if(this.importShortNames.has(e))return this.importShortNames.get(e);for(var t in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[t],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(e))return r+"."+e}var o=m("en").messageFormatter("modelfile-resolveimport-failfindimp");throw new d(o({type:e,imports:this.imports,namespace:this.getNamespace()}),this)}},{key:"isDefined",value:function(e){return h.isPrimitiveType(e)||null!==this.getLocalType(e)}},{key:"getType",value:function(e){if(h.isPrimitiveType(e))return e;if(this.isImportedType(e)){var t=this.resolveImport(e),r=this.getModelManager().getModelFile(h.getNamespace(t));return r?r.getLocalType(t):null}return this.isLocalType(e)?this.getLocalType(e):null}},{key:"getFullyQualifiedTypeName",value:function(e){if(h.isPrimitiveType(e))return e;if(this.isImportedType(e)){var t=this.resolveImport(e);return this.getModelManager().getModelFile(h.getNamespace(t)).getLocalType(t).getFullyQualifiedName()}return this.isLocalType(e)?this.getLocalType(e).getFullyQualifiedName():null}},{key:"getLocalType",value:function(e){return e.startsWith(this.getNamespace())||(e=this.getNamespace()+"."+e),this.localTypes.has(e)?this.localTypes.get(e):null}},{key:"getAssetDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isAsset()?t:null}},{key:"getTransactionDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isTransaction()?t:null}},{key:"getEventDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isEvent()?t:null}},{key:"getParticipantDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isParticipant()?t:null}},{key:"getNamespace",value:function(){return this.namespace}},{key:"getName",value:function(){return this.fileName}},{key:"getAssetDeclarations",value:function(){return this.getDeclarations(s)}},{key:"getTransactionDeclarations",value:function(){return this.getDeclarations(f)}},{key:"getEventDeclarations",value:function(){return this.getDeclarations(p)}},{key:"getParticipantDeclarations",value:function(){return this.getDeclarations(l)}},{key:"getConceptDeclarations",value:function(){return this.getDeclarations(c)}},{key:"getEnumDeclarations",value:function(){return this.getDeclarations(u)}},{key:"getDeclarations",value:function(e){for(var t=[],r=0;r<this.declarations.length;r++){var n=this.declarations[r];n instanceof e&&t.push(n)}return t}},{key:"getAllDeclarations",value:function(){return this.declarations}},{key:"getDefinitions",value:function(){return this.definitions}},{key:"getAst",value:function(){return this.ast}},{key:"getConcertoVersion",value:function(){return this.concertoVersion}},{key:"isCompatibleVersion",value:function(){if(this.ast.concertoVersion){if(!a.satisfies(i.version,this.ast.concertoVersion,{includePrerelease:!0}))throw new Error("ModelFile expects Concerto version ".concat(this.ast.concertoVersion," but this is ").concat(i.version));this.concertoVersion=this.ast.concertoVersion}}},{key:"fromAst",value:function(e){var t=this;this.namespace=e.namespace;var r=e.imports?e.imports.concat([]):[];if("concerto"!==this.namespace&&(r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Concept"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Asset"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Transaction"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Participant"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Event"})),this.imports=r,this.imports.forEach((function(e){var r=h.importFullyQualifiedName(e);"concerto.metamodel.ImportAll"===e.$class?t.importWildcardNamespaces.push(e.namespace):t.importShortNames.set(e.name,r),e.uri&&(t.importUriMap[r]=e.uri)})),e.declarations)for(var n=0;n<e.declarations.length;n++){var o=Object.assign({},e.declarations[n]);if("concerto.metamodel.AssetDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Asset"}),this.declarations.push(new s(this,o));else if("concerto.metamodel.TransactionDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Transaction"}),this.declarations.push(new f(this,o));else if("concerto.metamodel.EventDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Event"}),this.declarations.push(new p(this,o));else if("concerto.metamodel.ParticipantDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Participant"}),this.declarations.push(new l(this,o));else if("concerto.metamodel.EnumDeclaration"===o.$class)this.declarations.push(new u(this,o));else{if("concerto.metamodel.ConceptDeclaration"!==o.$class){var i=m("en").messageFormatter("modelfile-constructor-unrecmodelelem");throw new d(i({type:o.$class}),this)}this.declarations.push(new c(this,o))}}}}])&&o(t.prototype,r),e}();e.exports=y},3534:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(6017);void 0===r.g&&r(4833);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(r=c.call(this,e,t)).lowerBound=null,r.upperBound=null,Object.prototype.hasOwnProperty.call(t,"lower")&&(r.lowerBound=t.lower),Object.prototype.hasOwnProperty.call(t,"upper")&&(r.upperBound=t.upper),null===r.lowerBound&&null===r.upperBound?r.reportError(null,"Invalid range, lower and-or upper bound must be specified."):null===r.lowerBound||null===r.upperBound||r.lowerBound>r.upperBound&&r.reportError(null,"Lower bound must be less than or equal to upper bound."),r}return t=l,(r=[{key:"getLowerBound",value:function(){return this.lowerBound}},{key:"getUpperBound",value:function(){return this.upperBound}},{key:"validate",value:function(e,t){null!==t&&(null!==this.lowerBound&&t<this.lowerBound&&this.reportError(e,"Value ".concat(t," is outside lower bound ").concat(this.lowerBound)),null!==this.upperBound&&t>this.upperBound&&this.reportError(e,"Value ".concat(t," is outside upper bound ").concat(this.upperBound)))}},{key:"toString",value:function(){return"NumberValidator lower: "+this.lowerBound+" upper: "+this.upperBound}}])&&o(t.prototype,r),l}(u);e.exports=c},6858:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"ParticipantDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},5960:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(7386),f=r(6697);void 0===r.g&&r(4356);var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,r,n,a,l=(n=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function p(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(r=l.call(this,e.getModelFile(),t)).parent=e,r.process(),r}return t=p,(r=[{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(i(c(p.prototype),"process",this).call(this),this.name=this.ast.name,this.decorator=null,!this.name)throw new Error("No name for type "+JSON.stringify(this.ast));"concerto.metamodel.BooleanProperty"===this.ast.$class?this.type="Boolean":"concerto.metamodel.StringProperty"===this.ast.$class?this.type="String":"concerto.metamodel.IntegerProperty"===this.ast.$class?this.type="Integer":"concerto.metamodel.LongProperty"===this.ast.$class?this.type="Long":"concerto.metamodel.DoubleProperty"===this.ast.$class?this.type="Double":"concerto.metamodel.DateTimeProperty"===this.ast.$class?this.type="DateTime":"concerto.metamodel.ObjectProperty"===this.ast.$class?this.type=this.ast.type?this.ast.type.name:null:"concerto.metamodel.RelationshipProperty"===this.ast.$class?this.type=this.ast.type.name:this.type=null,this.array=!1,this.ast.isArray&&(this.array=!0),this.ast.isOptional?this.optional=!0:this.optional=!1}},{key:"validate",value:function(e){i(c(p.prototype),"validate",this).call(this),this.type&&e.getModelFile().resolveType("property "+this.getFullyQualifiedName(),this.type)}},{key:"getName",value:function(){return this.name}},{key:"getType",value:function(){return this.type}},{key:"isOptional",value:function(){return this.optional}},{key:"getFullyQualifiedTypeName",value:function(){if(this.isPrimitive())return this.type;var e=this.getParent();if(!e)throw new Error("Property "+this.name+" does not have a parent.");var t=e.getModelFile();if(!t)throw new Error("Parent of property "+this.name+" does not have a ModelFile!");var r=t.getFullyQualifiedTypeName(this.type);if(!r)throw new Error("Failed to find fully qualified type name for property "+this.name+" with type "+this.type);return r}},{key:"getFullyQualifiedName",value:function(){return this.getParent().getFullyQualifiedName()+"."+this.getName()}},{key:"getNamespace",value:function(){return this.getParent().getNamespace()}},{key:"isArray",value:function(){return this.array}},{key:"isTypeEnum",value:function(){return!this.isPrimitive()&&this.getParent().getModelFile().getType(this.getType()).isEnum()}},{key:"isPrimitive",value:function(){return f.isPrimitiveType(this.getType())}}])&&o(t.prototype,r),p}(l);e.exports=p},3988:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960),f=r(7619),p=r(6697);void 0===r.g&&r(4356);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,r,n,a,l=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e,t)}return t=d,(r=[{key:"validate",value:function(e){if(i(c(d.prototype),"validate",this).call(this,e),!this.getType())throw new f("Relationship must have a type",e.getModelFile(),this.ast.location);var t=null;if(p.isPrimitiveType(this.getType()))throw new f("Relationship "+this.getName()+" cannot be to the primitive type "+this.getType(),e.getModelFile(),this.ast.location);if(this.getParent().getNamespace()===p.getNamespace(this.getFullyQualifiedTypeName()))t=this.getParent().getModelFile().getType(this.getType());else try{t=this.getParent().getModelFile().getModelManager().getType(this.getFullyQualifiedTypeName())}catch(e){}if(null===t)throw new f("Relationship "+this.getName()+" points to a missing type "+this.getFullyQualifiedTypeName(),e.getModelFile(),this.ast.location);if(!t.isIdentified())throw new f("Relationship "+this.getName()+" must be to a class that has an identifier, but this is to "+this.getFullyQualifiedTypeName(),e.getModelFile(),this.ast.location)}},{key:"toString",value:function(){return"RelationshipDeclaration {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isRelationship",value:function(){return!0}}])&&o(t.prototype,r),d}(l);e.exports=d},8631:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(6017);void 0===r.g&&r(4833);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r=c.call(this,e,t);try{t.flags?r.regex=new RegExp(t.pattern,t.flags):r.regex=new RegExp(t.pattern)}catch(e){r.reportError(e.message)}return r}return t=l,(r=[{key:"validate",value:function(e,t){null!==t&&(this.regex.test(t)||this.reportError(e,"Value '"+t+"' failed to match validation regex: "+this.regex))}},{key:"getRegex",value:function(){return this.regex}}])&&o(t.prototype,r),l}(u);e.exports=c},9966:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"TransactionDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},6017:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&r(4833);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.validator=r,this.field=t}var t,r;return t=e,(r=[{key:"reportError",value:function(e,t){throw new Error("Validator error for field "+e+" "+this.getField().getFullyQualifiedName()+": "+t)}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getField",value:function(){return this.field}},{key:"validate",value:function(e,t){}}])&&n(t.prototype,r),e}();e.exports=o},8894:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(3228),c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,r,n,c,l=(n=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function f(e,t,r,n,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(a=l.call(this,e,t,r,n)).$identifier=o,a.$timestamp=i,a}return t=f,(r=[{key:"getTimestamp",value:function(){return this.$timestamp}},{key:"getIdentifier",value:function(){return this.$identifier}},{key:"setIdentifier",value:function(e){this.$identifier=e,this[this.$modelManager.getModelFile(this.getNamespace()).getType(this.getFullyQualifiedType()).getIdentifierFieldName()]=e}},{key:"getFullyQualifiedIdentifier",value:function(){return this.$identifier?this.getFullyQualifiedType()+"#"+this.$identifier:this.getFullyQualifiedType()}},{key:"toString",value:function(){return"Identifiable {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!1}},{key:"isResource",value:function(){return!1}},{key:"toURI",value:function(){return new u(this.getNamespace(),this.getType(),this.getIdentifier()).toURI()}}])&&o(t.prototype,r),f}(r(2989));e.exports=c},4469:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(8894),c=r(6697),l=r(3228);void 0===r.g&&r(4975);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(d,e);var t,r,n,u,f,p=(u=d,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(u);if(f){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function d(e,t,r,n,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(a=p.call(this,e,t,r,n,o,i)).$class="Relationship",a}return t=d,n=[{key:"fromURI",value:function(e,t,r,n){var o=l.fromURI(t,r,n),i=c.getFullyQualifiedName(o.namespace,o.type),a=e.getType(i);return new d(e,a,o.namespace,o.type,o.id)}}],(r=[{key:"toString",value:function(){return"Relationship {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!0}}])&&o(t.prototype,r),n&&o(t,n),d}(u);e.exports=f},8031:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t,r,n,o,i){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t,r,n,o,i)}return t=l,(r=[{key:"toString",value:function(){return"Resource {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isResource",value:function(){return!0}},{key:"isConcept",value:function(){return this.getClassDeclaration().isConcept()}},{key:"isIdentifiable",value:function(){return this.getClassDeclaration().isIdentified()}},{key:"toJSON",value:function(){return this.getModelManager().getSerializer().toJSON(this)}}])&&o(t.prototype,r),l}(r(8894));e.exports=u},3228:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(957),i=r(6697),a=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Missing namespace");if(!r)throw new Error("Missing type");if(!n)throw new Error("Missing id");this.namespace=t,this.type=r,this.id=n}var t,r,a;return t=e,a=[{key:"fromURI",value:function(t,r,n){var a;try{a=o.parse(t)}catch(e){throw new Error("Invalid URI: "+t)}var s,u,c=a.protocol;if(c&&"resource"!==c)throw new Error("Invalid URI scheme: "+t);if(a.username||a.password||a.port||a.query)throw new Error("Invalid resource URI format: "+t);var l=a.fragment;if(l){var f=a.path;s=i.getNamespace(f),u=i.getShortName(f)}else s=r,u=n,l=a.path;return new e(s,u,decodeURIComponent(l))}}],(r=[{key:"toURI",value:function(){return"resource:"+i.getFullyQualifiedName(this.namespace,this.type)+"#"+encodeURI(this.id)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},2989:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(8879),i=r(264);o.extend(i),void 0===r.g&&(r(4356),r(4975));var a=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$modelManager=t,this.$classDeclaration=r,this.$namespace=n,this.$type=o}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getModelManager",value:function(){return this.$modelManager}},{key:"getType",value:function(){return this.$type}},{key:"getFullyQualifiedType",value:function(){return this.$classDeclaration.getFullyQualifiedName()}},{key:"getNamespace",value:function(){return this.$namespace}},{key:"getClassDeclaration",value:function(){return this.$classDeclaration}},{key:"setPropertyValue",value:function(e,t){this[e]=t}},{key:"addArrayValue",value:function(e,t){this[e]?this[e].push(t):this[e]=[t]}},{key:"assignFieldDefaults",value:function(){for(var e=this.getClassDeclaration().getProperties(),t=0;t<e.length;t++){var r,n=e[t];if(null!==(r=n.isField)&&void 0!==r&&r.call(n)){var i=n.getDefaultValue();if(i)if("String"===n.getType())this.setPropertyValue(n.getName(),i);else if("Integer"===n.getType())this.setPropertyValue(n.getName(),parseInt(i));else if("Long"===n.getType())this.setPropertyValue(n.getName(),parseInt(i));else if("Double"===n.getType())this.setPropertyValue(n.getName(),parseFloat(i));else if("Boolean"===n.getType())this.setPropertyValue(n.getName(),!0===i);else if("DateTime"===n.getType()){var a=o.utc(i);this.setPropertyValue(n.getName(),a)}else this.setPropertyValue(n.getName(),i)}}}},{key:"instanceOf",value:function(e){var t=this.getClassDeclaration();if(t.getFullyQualifiedName()===e)return!0;for(var r=t.getSuperTypeDeclaration();r;){if(r.getFullyQualifiedName()===e)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"toJSON",value:function(){throw new Error("Use Serializer.toJSON to convert resource instances to JSON objects.")}}])&&n(t.prototype,r),e}();e.exports=a},8938:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(1104).TypedStack,f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,r,n,a,f=(n=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function p(e,t,r,n,o,i,a){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(s=f.call(this,e,t,r,n,o,i)).$validator=a,s}return t=p,(r=[{key:"setPropertyValue",value:function(e,t){var r=this.getClassDeclaration().getProperty(e);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+e+" which is not declared in the model.");var n={};n.stack=new l(t),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),i(c(p.prototype),"setPropertyValue",this).call(this,e,t)}},{key:"addArrayValue",value:function(e,t){var r=this.getClassDeclaration().getProperty(e);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+e+" which is not declared in the model.");if(!r.isArray())throw new Error("The instance with id "+this.getIdentifier()+" trying to add array item "+e+" which is not declared as an array in the model.");var n={},o=[];this[e]&&(o=this[e].slice(0)),o.push(t),n.stack=new l(o),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),i(c(p.prototype),"addArrayValue",this).call(this,e,t)}},{key:"validate",value:function(){var e=this.getClassDeclaration(),t={};t.stack=new l(this),t.modelManager=this.getModelManager(),t.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),e.accept(this.$validator,t)}}])&&o(t.prototype,r),p}(r(8031));e.exports=f},1997:function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=r(2203),c=r(3255).Parser,l=r(1104).DefaultFileLoader,f=r(3407),p=r(4975),d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o,i,d;return t=e,null,r=[{key:"addModel",value:(d=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,!t.accepts(n)){e.next=7;break}return e.next=4,t.load(n);case 4:o=e.sent,e.next=10;break;case 7:i=u.readFileSync(n,"utf8"),a=c.parse(i,n),o=new f(r,a,i,n);case 10:return r.addModelFile(o,null,o.getName(),!0),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e)}))),function(e,t,r){return d.apply(this,arguments)})},{key:"loadModelManager",value:(i=a(regeneratorRuntime.mark((function t(r){var o,i,a,s,u,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=h.length>1&&void 0!==h[1]?h[1]:{offline:!1},i=new p(o),a=new l((function(e,t){var r=c.parse(t);return new f(i,r,t,e)})),s=n(r),t.prev=5,s.s();case 7:if((u=s.n()).done){t.next=14;break}return d=u.value,t.next=11,e.addModel(a,i,d);case 11:i=t.sent;case 12:t.next=7;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(5),s.e(t.t0);case 19:return t.prev=19,s.f(),t.finish(19);case 22:if(!o||!o.offline){t.next=27;break}return i.validateModelFiles(),t.abrupt("return",i);case 27:return t.next=29,i.updateExternalModels();case 29:return t.abrupt("return",i);case 30:case"end":return t.stop()}}),t,null,[[5,16,19,22]])}))),function(e){return i.apply(this,arguments)})},{key:"loadModelManagerFromModelFiles",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:{offline:!1},(o=new p(n)).addModelFiles(t,r,!0),!n||!n.offline){e.next=8;break}return o.validateModelFiles(),e.abrupt("return",o);case 8:return e.next=10,o.updateExternalModels();case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)}))),function(e,t){return o.apply(this,arguments)})}],r&&s(t,r),e}();e.exports=d},4975:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(3255).Parser,c=r(9379),l=r(5130)("concerto:BaseModelManager"),f=function(e,t){return{ast:u.parse(t,e),definitions:t,fileName:e}},p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(p,e);var t,r,n,u,c=(n=p,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),c.call(this,e,f)}return t=p,(r=[{key:"addCTOModel",value:function(e,t,r){return l("addCTOModel","addCTOModel",e,t),this.addModel(e,e,t,r)}}])&&o(t.prototype,r),p}(c);e.exports=p},6697:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(5338),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"getShortName",value:function(e){var t=e,r=e.lastIndexOf(".");return r>-1&&(t=e.substr(r+1)),t}},{key:"getNamespace",value:function(e){if(!e)throw new Error(o.formatMessage("modelutil-getnamespace-nofnq"));var t="",r=e.lastIndexOf(".");return r>-1&&(t=e.substr(0,r)),t}},{key:"importFullyQualifiedName",value:function(e){return"concerto.metamodel.ImportAll"===e.$class?"".concat(e.namespace,".*"):"".concat(e.namespace,".").concat(e.name)}},{key:"isPrimitiveType",value:function(e){return["Boolean","String","DateTime","Double","Integer","Long"].indexOf(e)>=0}},{key:"isAssignableTo",value:function(t,r,n){var o=n.getFullyQualifiedTypeName(),i=r===o;if(i||e.isPrimitiveType(r)||e.isPrimitiveType(o))return i;var a=t.getType(r);if(!a)throw new Error("Cannot find type "+r);return a.getAllSuperTypeDeclarations().some((function(e){return e.getFullyQualifiedName()===o}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"isEnum",value:function(e){var t=e.getParent().getModelFile().getType(e.getType());return null!==t&&t.isEnum()}},{key:"getFullyQualifiedName",value:function(e,t){return e?"".concat(e,".").concat(t):t}}],null&&n(t.prototype,null),r&&n(t,r),e}();e.exports=i},4449:function(e,t,r){"use strict";var n=r(4376);e.exports={rootModelFile:"concerto.cto",rootModelCto:"namespace concerto\nabstract concept Concept {}\nabstract concept Asset identified {}\nabstract concept Participant identified {}\nabstract concept Transaction {}\nabstract concept Event {}\n",rootModelAst:n}},9022:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,e)}return s}(r(1104).BaseException);e.exports=s},6972:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(1104).TypedStack,i=r(7663),a=r(5338),s=r(7724),u=r(6235),c=r(2989),l=r(1399),f={validate:!0,ergo:!1,utcOffset:i.setCurrentTime().utcOffset};void 0===r.g&&(r(6938),r(4975),r(8031));var p=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error(a.formatMessage("serializer-constructor-factorynull"));if(!r)throw new Error(a.formatMessage("serializer-constructor-modelmanagernull"));this.factory=t,this.modelManager=r,this.defaultOptions=Object.assign({},f,n||{})}var t,r;return t=e,(r=[{key:"setDefaultOptions",value:function(e){this.defaultOptions=Object.assign({},f,e)}},{key:"toJSON",value:function(e,t){if(!(e instanceof c))throw new Error(a.formatMessage("serializer-tojson-notcobject"));var r={};r.stack=new o(e),r.modelManager=this.modelManager,r.seenResources=new Set,r.dedupeResources=new Set;var n=this.modelManager.getType(e.getFullyQualifiedType());if((t=t?Object.assign({},this.defaultOptions,t):this.defaultOptions).validate){var i=new l(t);n.accept(i,r)}var u=new s(!0===t.convertResourcesToRelationships,!0===t.permitResourcesForRelationships,!0===t.deduplicateResources,!0===t.convertResourcesToId,!0===t.ergo,t.utcOffset);return r.stack.clear(),r.stack.push(e),n.accept(u,r)}},{key:"fromJSON",value:function(e,t){if((t=t?Object.assign({},this.defaultOptions,t):this.defaultOptions)&&!0===t.ergo){var r=e.$class.$coll[0];(e=e.$data).$class=r}if(!e.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier.");var n,i=this.modelManager.getType(e.$class);if(i.isTransaction())n=this.factory.newTransaction(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else if(i.isEvent())n=this.factory.newEvent(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else if(i.isConcept())n=this.factory.newConcept(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else{if(i.isEnum())throw new Error("Attempting to create an ENUM declaration is not supported.");n=this.factory.newResource(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()])}var a={};a.jsonStack=new o(e),a.resourceStack=new o(n),a.modelManager=this.modelManager,a.factory=this.factory;var s=new u(!0===t.acceptResourcesForRelationships,!0===t.ergo,t.utcOffset);return i.accept(s,a),t.validate&&n.validate(),n}}])&&n(t.prototype,r),e}();e.exports=p},97:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(6697),a=r(9736),s=r(5338),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r,o=t.stack.pop(),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(e.getProperties());try{for(i.s();!(r=i.n()).done;){var s=r.value;if(t.includeOptionalFields||!s.isOptional()){var u=o[s.getName()];a.isNull(u)&&(o[s.getName()]=s.accept(this,t))}}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"visitField",value:function(e,t){var r,n=this;if(e.isPrimitive())t.seen.push("Primitve");else{var o=e.getFullyQualifiedTypeName(),i=t.modelManager.getType(o),a=(i=this.findConcreteSubclass(i)).getFullyQualifiedName();if(t.seen.includes(a)){if(e.isArray())return[];if(e.isOptional())return null;throw new Error("Model is recursive.")}t.seen.push(a)}return r=e.isArray()?t.valueGenerator.getArray((function(){return n.getFieldValue(e,t)})):this.getFieldValue(e,t),t.seen.pop(),r}},{key:"getFieldValue",value:function(e,t){var r=e.getFullyQualifiedTypeName();if(i.isPrimitiveType(r))switch(r){case"DateTime":return t.valueGenerator.getDateTime();case"Integer":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getInteger();case"Long":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getLong();case"Double":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getDouble();case"Boolean":return t.valueGenerator.getBoolean();default:return e.validator?t.valueGenerator.getRegex(e.validator.regex):t.valueGenerator.getString()}var n=t.modelManager.getType(r);if(n.isEnum()){var o=n.getOwnProperties();return t.valueGenerator.getEnum(o).getName()}var a=null;(n=this.findConcreteSubclass(n)).isIdentified()&&(a=this.generateRandomId(n));var s=t.factory.newResource(n.getNamespace(),n.getName(),a);return t.stack.push(s),n.accept(this,t)}},{key:"findConcreteSubclass",value:function(e){if(!e.isAbstract())return e;var t=e.getAssignableClassDeclarations().filter((function(e){return!e.isAbstract()}));if(0===t.length){var r=s.messageFormatter("instancegenerator-newinstance-noconcreteclass");throw new Error(r({type:e.getFullyQualifiedName()}))}return t[0]}},{key:"visitRelationshipDeclaration",value:function(e,t){var r=this,n=t.modelManager.getType(e.getFullyQualifiedTypeName());n=this.findConcreteSubclass(n);var o=t.factory,i=function(){var e=r.generateRandomId(n);return o.newRelationship(n.getNamespace(),n.getName(),e)};return e.isArray()?t.valueGenerator.getArray(i):i()}},{key:"generateRandomId",value:function(e){var t=Math.round(9999*Math.random()).toString();return t.padStart(4,"0")}}])&&o(t.prototype,r),e}();e.exports=u},7724:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(8031),i=r(2989),a=r(6697),s=r(9736),u=function(){function e(t,r,n,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.convertResourcesToRelationships=t,this.permitResourcesForRelationships=r,this.deduplicateResources=n,this.convertResourcesToId=o,this.ergo=i,this.utcOffset=a||0}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r=t.stack.pop();if(!(r instanceof o))throw new Error("Expected a Resource, but found "+r);var n={},i=null;if(r.isIdentifiable()&&this.deduplicateResources){if(i=r.toURI(),t.dedupeResources.has(i))return i;t.dedupeResources.add(i)}n.$class=e.getFullyQualifiedName(),this.deduplicateResources&&i&&(n.$id=i);var a=e.getProperties();for(var u in a){var c=a[u],l=r[c.getName()];s.isNull(l)?this.ergo&&(n[c.getName()]={$right:null}):(t.stack.push(l),n[c.getName()]=c.accept(this,t))}if(this.ergo){var f=n.$class;delete n.$class,n={$class:{$coll:[f],$length:1},$data:n}}return n}},{key:"visitField",value:function(e,t){var r,n=t.stack.pop();if(e.isArray()){var o=[];for(var s in n){var u=n[s];if(e.isPrimitive()||a.isEnum(e))o.push(this.convertToJSON(e,u));else{t.stack.push(u,i);var c=t.modelManager.getType(u.getFullyQualifiedType());o.push(c.accept(this,t))}}r=this.ergo?{$coll:o,$length:o.length}:o}else if(e.isPrimitive())r=this.convertToJSON(e,n);else if(a.isEnum(e))if(this.ergo){for(var l=e.getParent().getModelFile().getType(e.getType()),f=l.getFullyQualifiedName(),p=l.getProperties(),d={$left:n},h=0;h<p.length&&p[h].getName()!==n;h++)d={$right:d};r={$class:[f],$data:d}}else r=this.convertToJSON(e,n);else t.stack.push(n),r=t.modelManager.getType(n.getFullyQualifiedType()).accept(this,t);return e.isOptional()&&this.ergo&&(r=r?{$left:r}:{$right:r}),r}},{key:"convertToJSON",value:function(e,t){switch(e.getType()){case"DateTime":var r=t.utc().utcOffset(this.utcOffset);if(this.ergo)return r;var n=0===r.utcOffset();return r.format("YYYY-MM-DDTHH:mm:ss.SSS".concat(n?"[Z]":"Z"));case"Integer":case"Long":return this.ergo?{$nat:t}:t;default:return t}}},{key:"visitRelationshipDeclaration",value:function(e,t){var r,n=t.stack.pop();if(e.isArray()){var i=[];for(var a in n){var s=n[a];if(this.permitResourcesForRelationships&&s instanceof o){var u=s.getFullyQualifiedIdentifier();if(t.seenResources.has(u)){var c=this.getRelationshipText(e,s);i.push(c)}else{t.seenResources.add(u),t.stack.push(s,o);var l=t.modelManager.getType(e.getFullyQualifiedTypeName());i.push(l.accept(this,t)),t.seenResources.delete(u)}}else{var f=this.getRelationshipText(e,s);i.push(f)}}r=this.ergo?{$coll:i,$length:i.length}:i}else if(this.permitResourcesForRelationships&&n instanceof o){var p=n.getFullyQualifiedIdentifier();t.seenResources.has(p)?r=this.getRelationshipText(e,n):(t.seenResources.add(p),t.stack.push(n,o),r=t.modelManager.getType(e.getFullyQualifiedTypeName()).accept(this,t),t.seenResources.delete(p))}else r=this.getRelationshipText(e,n);return r}},{key:"getRelationshipText",value:function(e,t){if(t instanceof o&&!this.convertResourcesToRelationships&&!this.permitResourcesForRelationships)throw new Error("Did not find a relationship for "+e.getFullyQualifiedTypeName()+" found "+t);return this.convertResourcesToId?t.getIdentifier():t.toURI()}}])&&n(t.prototype,r),e}();e.exports=u},6235:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4469),a=r(9736),s=r(6697),u=r(9557),c=r(8879),l=r(264);c.extend(l);var f=r(3134);c.extend(f);var p=r(7995);c.extend(p);var d=r(4989);c.extend(d);var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.acceptResourcesForRelationships=t,this.ergo=r,this.utcOffset=n||0}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r,n=this,o=t.jsonStack.pop(),i=t.resourceStack.pop(),s=(r=o,Object.keys(r).filter((function(e){return!(e.startsWith("$")||a.isNull(r[e]))})));return function(e,t){var r=t.getProperties().map((function(e){return e.getName()})),n=e.filter((function(e){return!r.includes(e)}));if(n.length>0){var o="Unexpected properties for type ".concat(t.getFullyQualifiedName(),": ")+n.join(", ");throw new u(o)}}(s,e),s.forEach((function(r){var a=o[r];if(n.ergo&&(Object.prototype.hasOwnProperty.call(a,"$left")?a=a.$left:Object.prototype.hasOwnProperty.call(a,"$right")&&(a=a.$right)),null!==a){t.jsonStack.push(a);var s=e.getProperty(r);i[r]=s.accept(n,t)}})),i}},{key:"visitField",value:function(e,t){var r=t.jsonStack.pop(),n=null;if(e.isArray()){this.ergo&&Object.prototype.hasOwnProperty.call(r,"$coll")&&(r=r.$coll.slice(0,r.$length)),n=[];for(var o=0;o<r.length;o++){var i=r[o];n.push(this.convertItem(e,i,t))}}else n=this.convertItem(e,r,t);return n}},{key:"convertItem",value:function(e,t,r){var n=null;if(e.isPrimitive()||e.isTypeEnum())n=this.convertToObject(e,t);else{if(this.ergo){var o=t.$class.$coll[0];(t=t.$data).$class=o}var i=t.$class;i||(i=e.getFullyQualifiedTypeName());var a,s=r.modelManager.getType(i);n=a=s.isIdentified()?r.factory.newResource(s.getNamespace(),s.getName(),t[s.getIdentifierFieldName()]):r.factory.newConcept(s.getNamespace(),s.getName()),r.resourceStack.push(a),r.jsonStack.push(t),s.accept(this,r)}return n}},{key:"convertToObject",value:function(e,t){var r=null;switch(e.getType()){case"DateTime":if(t&&"object"===n(t)&&"function"==typeof t.isBefore)r=t;else{if("string"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=c.utc(t).utcOffset(this.utcOffset)}if(!r.isValid())throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));break;case"Integer":case"Long":var o=this.ergo?t.$nat:t;if("number"!=typeof o)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));if(Math.trunc(o)!==o)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=o;break;case"Double":if("number"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=parseFloat(t);break;case"Boolean":if("boolean"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=t;break;case"String":if("string"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=t;break;default:if(this.ergo){for(var i=t.$data;!i.$left;)i=i.$right;r=i.$left}else r=t}return r}},{key:"visitRelationshipDeclaration",value:function(e,t){var r=t.jsonStack.pop(),n=null,o=e.getFullyQualifiedTypeName(),a=s.getNamespace(o);a||(a=e.getNamespace());var u=s.getShortName(o);if(e.isArray()){n=[],this.ergo&&Object.prototype.hasOwnProperty.call(r,"$coll")&&(r=r.$coll.slice(0,r.$length));for(var c=0;c<r.length;c++){var l=r[c];if("string"==typeof l)n.push(i.fromURI(t.modelManager,l,a,u));else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+r+" for relationship "+e);if(!l.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+l+" for relationship "+e);if(this.ergo){var f=r.$class.$coll[0];(r=r.$data).$class=f}var p=t.modelManager.getType(l.$class),d=t.factory.newResource(p.getNamespace(),p.getName(),l[p.getIdentifierFieldName()]);t.jsonStack.push(l),t.resourceStack.push(d),p.accept(this,t),n.push(d)}}}else if("string"==typeof r)n=i.fromURI(t.modelManager,r,a,u);else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+r+" for relationship "+e);if(!r.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+r+" for relationship "+e);if(this.ergo){var h=r.$class.$coll[0];(r=r.$data).$class=h}var m=t.modelManager.getType(r.$class),y=t.factory.newResource(m.getNamespace(),m.getName(),r[m.getIdentifierFieldName()]);t.jsonStack.push(r),t.resourceStack.push(y),m.accept(this,t),n=y}return n}}])&&o(t.prototype,r),e}();e.exports=h},1607:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(9736),a=r(6697),s=r(9557),u=r(5338),c=r(8879),l=r(264);c.extend(l);var f=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r||{},this.concerto=t,!this.concerto)throw new Error("Missing concerto instance")}var t,r,l;return t=e,l=[{key:"reportFieldTypeViolation",value:function(e,t,r,o,i){var a=o.isArray()?"[]":"",c=n(r);if(i.isObject(r)&&i.isIdentifiable(r))c=r.getFullyQualifiedType(),r=r.getFullyQualifiedIdentifier();else if(r)try{r=JSON.stringify(r)}catch(e){r=r.toString()}var l=u.messageFormatter("resourcevalidator-fieldtypeviolation");throw new s(l({resourceId:e,propertyName:t,fieldType:o.getType()+a,value:r,typeOfValue:c}))}},{key:"reportNotRelationshipViolation",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-notrelationship");throw new s(n({resourceId:e,classFQN:t.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(e,t){var r=u.messageFormatter("resourcevalidator-missingrequiredproperty");throw new s(r({resourceId:e,fieldName:t.getName()}))}},{key:"reportEmptyIdentifier",value:function(e){var t=u.messageFormatter("resourcevalidator-emptyidentifier");throw new s(t({resourceId:e}))}},{key:"reportInvalidEnumValue",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-invalidenumvalue");throw new s(n({resourceId:e,value:r,fieldName:t.getName()}))}},{key:"reportAbstractClass",value:function(e){var t=u.messageFormatter("resourcevalidator-abstractclass");throw new s(t({className:e.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-undeclaredfield");throw new s(n({resourceId:e,propertyName:t,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(e,t,r,n){var o=u.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new s(o({resourceId:e,propertyName:t,objectType:r.$class,fieldType:i}))}}],(r=[{key:"visit",value:function(e,t){var r,n,o,i;return null!==(r=e.isEnum)&&void 0!==r&&r.call(e)?this.visitEnumDeclaration(e,t):null!==(n=e.isClassDeclaration)&&void 0!==n&&n.call(e)?this.visitClassDeclaration(e,t):null!==(o=e.isRelationship)&&void 0!==o&&o.call(e)?this.visitRelationshipDeclaration(e,t):null!==(i=e.isField)&&void 0!==i&&i.call(e)?this.visitField(e,t):void 0}},{key:"visitEnumDeclaration",value:function(t,r){for(var n=r.stack.pop(),o=t.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||e.reportInvalidEnumValue(r.rootResourceIdentifier,t,n),null}},{key:"visitClassDeclaration",value:function(t,r){var n=r.stack.pop();this.concerto.isIdentifiable(n)&&(r.rootResourceIdentifier=this.concerto.getFullyQualifiedIdentifier(n));var o=this.concerto.getModelManager().getType(n.$class),a=o.getFullyQualifiedName();o.isAbstract()&&e.reportAbstractClass(o);for(var s=Object.getOwnPropertyNames(n),u=0;u<s.length;u++){var c=s[u];this.isSystemProperty(c)||o.getProperty(c)||(this.concerto.isIdentifiable(n)?e.reportUndeclaredField(this.concerto.getIdentifier(n),c,a):e.reportUndeclaredField(r.currentIdentifier,c,a))}if(this.concerto.isIdentifiable(n)){var l=this.concerto.getIdentifier(n);l&&0!==l.trim().length||e.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=this.concerto.getFullyQualifiedIdentifier(n)}for(var f=o.getProperties(),p=0;p<f.length;p++){var d=f[p],h=n[d.getName()];i.isNull(h)?d.isOptional()||this.isSystemProperty(d.getName())||e.reportMissingRequiredProperty(r.rootResourceIdentifier,d):(r.stack.push(h),d.accept(this,r))}return null}},{key:"isSystemProperty",value:function(e){return"$"===e.charAt(0)}},{key:"visitField",value:function(t,r){var o=r.stack.pop(),i=n(o),a=t.getName();return"symbol"===i&&e.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,t,this.concerto),t.isTypeEnum()?this.checkEnum(o,t,r):t.isArray()?this.checkArray(o,t,r):this.checkItem(o,t,r),null}},{key:"checkEnum",value:function(t,r,n){!r.isArray()||t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r,this.concerto);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<t.length;i++){var a=t[i];n.stack.push(a),o.accept(this,n)}else{var s=t;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(t,r,n){t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r,this.concerto);for(var o=0;o<t.length;o++){var i=t[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(t,r,o){var i=n(t),s=r.getName();if("symbol"===i&&e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Double":case"Long":case"Integer":"number"!==i&&(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"string"==typeof t&&c.utc(t).isValid()||(u=!0)}u?e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,t)}else{var l=this.concerto.getModelManager().getType(r.getFullyQualifiedTypeName());try{l=this.concerto.getModelManager().getType(t.$class)}catch(n){e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto)}a.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(o.rootResourceIdentifier,s,t,r),o.stack.push(t),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(t,r){var n=r.stack.pop();if(t.isArray()){n instanceof Array||e.reportInvalidFieldAssignment(r.rootResourceIdentifier,t.getName(),n,t);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,t,i)}}else this.checkRelationship(r,t,n);return null}},{key:"checkRelationship",value:function(t,r,n){this.concerto.isRelationship(n)||this.concerto.isIdentifiable(n)&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||e.reportNotRelationshipViolation(t.rootResourceIdentifier,r,n);var o=this.concerto.isRelationship(n)?this.concerto.fromURI(n).typeDeclaration:this.concerto.getTypeDeclaration(n);if(!o.getIdentifierFieldName())throw new Error("Relationship can only be to identified types.");a.isAssignableTo(o.getModelFile(),o.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(t.rootResourceIdentifier,r.getName(),n,r)}}])&&o(t.prototype,r),l&&o(t,l),e}();e.exports=f},1399:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4469),a=r(8031),s=r(8894),u=r(9736),c=r(6697),l=r(9557),f=r(5338),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t||{}}var t,r,p;return t=e,p=[{key:"reportFieldTypeViolation",value:function(e,t,r,o){var i=o.isArray()?"[]":"",a=n(r);if(r instanceof s)a=r.getFullyQualifiedType(),r=r.getFullyQualifiedIdentifier();else if(r)try{r="number"!=typeof r||isFinite(r)?JSON.stringify(r):r.toString()}catch(e){r=r.toString()}var u=f.messageFormatter("resourcevalidator-fieldtypeviolation");throw new l(u({resourceId:e,propertyName:t,fieldType:o.getType()+i,value:r,typeOfValue:a}))}},{key:"reportNotResouceViolation",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-notresourceorconcept");throw new l(n({resourceId:e,classFQN:t.getFullyQualifiedName(),invalidValue:r.toString()}))}},{key:"reportNotRelationshipViolation",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-notrelationship");throw new l(n({resourceId:e,classFQN:t.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(e,t){var r=f.messageFormatter("resourcevalidator-missingrequiredproperty");throw new l(r({resourceId:e,fieldName:t.getName()}))}},{key:"reportEmptyIdentifier",value:function(e){var t=f.messageFormatter("resourcevalidator-emptyidentifier");throw new l(t({resourceId:e}))}},{key:"reportInvalidEnumValue",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-invalidenumvalue");throw new l(n({resourceId:e,value:r,fieldName:t.getName()}))}},{key:"reportAbstractClass",value:function(e){var t=f.messageFormatter("resourcevalidator-abstractclass");throw new l(t({className:e.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-undeclaredfield");throw new l(n({resourceId:e,propertyName:t,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(e,t,r,n){var o=f.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new l(o({resourceId:e,propertyName:t,objectType:r.getFullyQualifiedType(),fieldType:i}))}}],(r=[{key:"visit",value:function(e,t){var r,n,o,i;return null!==(r=e.isEnum)&&void 0!==r&&r.call(e)?this.visitEnumDeclaration(e,t):null!==(n=e.isClassDeclaration)&&void 0!==n&&n.call(e)?this.visitClassDeclaration(e,t):null!==(o=e.isRelationship)&&void 0!==o&&o.call(e)?this.visitRelationshipDeclaration(e,t):null!==(i=e.isField)&&void 0!==i&&i.call(e)?this.visitField(e,t):void 0}},{key:"visitEnumDeclaration",value:function(t,r){for(var n=r.stack.pop(),o=t.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||e.reportInvalidEnumValue(r.rootResourceIdentifier,t,n),null}},{key:"visitClassDeclaration",value:function(t,r){var n=r.stack.pop();n instanceof a||e.reportNotResouceViolation(r.rootResourceIdentifier,t,n),n instanceof s&&(r.rootResourceIdentifier=n.getFullyQualifiedIdentifier());var o=r.modelManager.getType(n.getFullyQualifiedType()),i=o.getFullyQualifiedName();o.isAbstract()&&e.reportAbstractClass(o);for(var c=Object.getOwnPropertyNames(n),l=0;l<c.length;l++){var f=c[l];this.isSystemProperty(f)||o.getProperty(f)||(t.isIdentified()?e.reportUndeclaredField(n.getIdentifier(),f,i):e.reportUndeclaredField(r.currentIdentifier,f,i))}if(t.isIdentified()){var p=n.getIdentifier();p&&0!==p.trim().length||e.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=n.getFullyQualifiedIdentifier()}for(var d=o.getProperties(),h=0;h<d.length;h++){var m=d[h],y=n[m.getName()];u.isNull(y)?m.isOptional()||e.reportMissingRequiredProperty(r.rootResourceIdentifier,m):(r.stack.push(y),m.accept(this,r))}return null}},{key:"isSystemProperty",value:function(e){return"$"===e.charAt(0)}},{key:"visitField",value:function(t,r){var o=r.stack.pop(),i=n(o),a=t.getName();return"undefined"!==i&&"symbol"!==i||e.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,t),t.isTypeEnum()?this.checkEnum(o,t,r):t.isArray()?this.checkArray(o,t,r):this.checkItem(o,t,r),null}},{key:"checkEnum",value:function(t,r,n){!r.isArray()||t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<t.length;i++){var a=t[i];n.stack.push(a),o.accept(this,n)}else{var s=t;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(t,r,n){t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r);for(var o=0;o<t.length;o++){var i=t[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(t,r,o){var i=n(t),a=r.getName();if("undefined"!==i&&"symbol"!==i||e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Long":case"Integer":case"Double":"number"!==i&&(u=!0),isFinite(t)||(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"object"===n(t)&&"function"==typeof t.isBefore||(u=!0)}u?e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,t)}else{var l=o.modelManager.getType(r.getFullyQualifiedTypeName());if(t instanceof s){try{l=o.modelManager.getType(t.getFullyQualifiedType())}catch(n){e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r)}c.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(o.rootResourceIdentifier,a,t,r)}o.stack.push(t),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(t,r){var n=r.stack.pop();if(t.isArray()){n instanceof Array||e.reportInvalidFieldAssignment(r.rootResourceIdentifier,t.getName(),n,t);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,t,i)}}else this.checkRelationship(r,t,n);return null}},{key:"checkRelationship",value:function(t,r,n){n instanceof i||n instanceof a&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||e.reportNotRelationshipViolation(t.rootResourceIdentifier,r,n);var o=t.modelManager.getType(n.getFullyQualifiedType());if(!o.getIdentifierFieldName())throw new Error("Cannot have a relationship to a field that is not identifiable.");c.isAssignableTo(o.getModelFile(),n.getFullyQualifiedType(),r)||e.reportInvalidFieldAssignment(t.rootResourceIdentifier,r.getName(),n,r)}}])&&o(t.prototype,r),p&&o(t,p),e}();e.exports=p},9557:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,e,t)}return s}(r(1104).BaseException);e.exports=s},3232:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var l=r(2788).loremIpsum,f=r(6116),p=r(8879),d=r(264);p.extend(d);var h=function(e,t,r,n,o){return null===e&&(e=n),e=Math.min(Math.max(e,n),o),(null===t||t>o)&&(t=o),t=Math.max(Math.min(t,o),n),t+=r,t/=r,e/=r,(Math.random()*(t-e)+e)/(1/r)},m=function(e,t,r){var n=e,o=t;switch(null!==o&&null!==n&&o<n&&(n=t,o=e),r){case"Long":return Math.floor(h(n,o,1,-Math.pow(2,32),Math.pow(2,32)));case"Integer":return Math.floor(h(n,o,1,-Math.pow(2,16),Math.pow(2,16)));case"Double":return Number(h(n,o,1e-4,-Math.pow(2,8),Math.pow(2,8)).toFixed(3));default:return 0}},y=function(){function e(){s(this,e),this.currentDate=p.utc()}return c(e,[{key:"getDateTime",value:function(){return this.currentDate}},{key:"getInteger",value:function(){return 0}},{key:"getLong",value:function(){return 0}},{key:"getDouble",value:function(){return 0}},{key:"getBoolean",value:function(){return!1}},{key:"getString",value:function(){return""}},{key:"getEnum",value:function(e){return e[0]}},{key:"getArray",value:function(e){return[]}},{key:"getRegex",value:function(e){return e?new f(e).gen():""}},{key:"getRange",value:function(e,t,r){return m(e,t,r)}}]),e}(),g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(u,e);var t,r,n=(t=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function u(){return s(this,u),n.call(this)}return c(u,[{key:"getInteger",value:function(){return Math.round(Math.random()*Math.pow(2,16))}},{key:"getLong",value:function(){return Math.round(Math.random()*Math.pow(2,32))}},{key:"getDouble",value:function(){return Number((Math.random()*Math.pow(2,8)).toFixed(3))}},{key:"getBoolean",value:function(){return 1===Math.round(Math.random())}},{key:"getString",value:function(){return l({count:1,units:"sentences",sentenceLowerBound:1,sentenceUpperBound:5})}},{key:"getEnum",value:function(e){return e[Math.floor(Math.random()*e.length)]}},{key:"getArray",value:function(e){return[e()]}},{key:"getRegex",value:function(e){return e?new f(e).gen():""}},{key:"getRange",value:function(e,t,r){return m(e,t,r)}}]),u}(y),v=function(){function e(){s(this,e)}return c(e,null,[{key:"empty",value:function(){return new y}},{key:"sample",value:function(){return new g}}]),e}();e.exports=v},5400:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(1104).BaseException,c=r(5338),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,r,n,u,l=(n=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function f(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t||(t=c.messageFormatter("typenotfounderror-defaultmessage")({typeName:e})),(n=l.call(this,t,r)).typeName=e,n}return t=f,(r=[{key:"getTypeName",value:function(){return this.typeName}}])&&o(t.prototype,r),f}(u);e.exports=l},9736:function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,n;return r=e,n=[{key:"isNull",value:function(e){return null==e}}],null&&t(r.prototype,null),n&&t(r,n),e}();e.exports=r},5618:function(e,t,r){"use strict";const n=r(8102),o=r(9640),i=r(8334).stdout,a=r(5625),s="win32"===process.platform&&!({NODE_ENV:"production"}.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),l=Object.create(null);function f(e,t){t=t||{};const r=i?i.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return f(t,e),t.template=function(){const e=[].slice.call(arguments);return y.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=p,t.template}f(this,e)}s&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),l[e]={get(){const t=o[e];return h.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};l.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))c.has(e)||(l[e]={get(){const t=this.level;return function(){const r=o.color[u[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi))c.has(e)||(l["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[u[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const d=Object.defineProperties((()=>{}),l);function h(e,t,r){const n=function(){return m.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=d,n}function m(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;s&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,r}function y(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return a(e,n.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=i,e.exports.default=e.exports},5625:function(e){"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function s(e,t){const r=[],i=t.trim().split(/\s*,\s*/g);let s;for(const t of i)if(isNaN(t)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(o,((e,t,r)=>t?a(t):r)))}else r.push(Number(t));return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=s(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function c(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,r)=>{const n=[],o=[];let i=[];if(r.replace(t,((t,r,s,l,f,p)=>{if(r)i.push(a(r));else if(l){const t=i.join("");i=[],o.push(0===n.length?t:c(e,n)(t)),n.push({inverse:s,styles:u(l)})}else if(f){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(e,n)(i.join(""))),i=[],n.pop()}else i.push(p)})),o.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},4959:function(e,t,r){var n=r(1103),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(n,o,i),s=Math.max(n,o,i),u=s-a;return s===a?t=0:n===s?t=(o-i)/u:o===s?t=2+(i-n)/u:i===s&&(t=4+(n-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(a+s)/2,[t,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(e){var t,r,n,o,i,a=e[0]/255,s=e[1]/255,u=e[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),f=function(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=f(a),r=f(s),n=f(u),a===c?o=n-r:s===c?o=1/3+t-n:u===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},a.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,i,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(i=e,a=n[u],Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,r,n,o,i,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[i=255*u,i,i];t=2*u-(r=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[c]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[t,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(e){var t,r,n,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return n=(2-i)*a,r=i*s,[o,100*(r=(r/=(t=(2-i)*s)<=1?t:2-t)||0),100*(n/=2)]},a.hwb.rgb=function(e){var t,r,n,o,i,a,s,u=e[0]/360,c=e[1]/100,l=e[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),o=c+n*((r=1-l)-c),t){default:case 6:case 0:i=r,a=o,s=c;break;case 1:i=o,a=r,s=c;break;case 2:i=c,a=r,s=o;break;case 3:i=c,a=o,s=r;break;case 4:i=o,a=c,s=r;break;case 5:i=r,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(e){var t,r,n,o=e[0]/100,i=e[1]/100,a=e[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),a=Math.pow(t,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},a.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},a.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),s=i-a;return t=s<=0?0:i===r?(n-o)/s%6:i===n?2+(o-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,o=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(o=(n-.5*t)/(1-t)),[e[0],100*t,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},841:function(e,t,r){var n=r(4959),o=r(9325),i={};Object.keys(n).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];i[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},9325:function(e,t,r){var n=r(4959);function o(e,t){return function(r){return t(e(r))}}function i(e,t){for(var r=[t[e].parent,e],i=n[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),i=o(n[t[a].parent][a],i),a=t[a].parent;return i.conversion=r,i}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,s=0;s<a;s++){var u=i[s],c=t[u];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,r.unshift(u))}return t}(e),r={},o=Object.keys(t),a=o.length,s=0;s<a;s++){var u=o[s];null!==t[u].parent&&(r[u]=i(u,t))}return r}},1103:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138:function(e,t,r){var n={};e.exports=n,n.themes={};var o=r(8827),i=n.styles=r(9951),a=Object.defineProperties,s=new RegExp(/[\r\n]+/g);n.supportsColor=r(3613).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=i[t];return!r&&t in n?n[t](e):r.open+e+r.close};var u=/[|\\{}()[\]^$+*?.]/g;function c(e){var t=function e(){return d.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,f=(l={},i.grey=i.gray,Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(u,"\\$&")}(i[e].close),"g"),l[e]={get:function(){return c(this._styles.concat(e))}}})),l),p=a((function(){}),f);function d(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:o.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),a=this._styles,u=a.length;u--;){var c=i[a[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(s,(function(e){return c.close+e+c.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var o=r;for(var i in e[t])o=n[e[t][i]](o);return o}return n[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var h=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var m in n.trap=r(2571),n.zalgo=r(561),n.maps={},n.maps.america=r(6393)(n),n.maps.zebra=r(4035)(n),n.maps.rainbow=r(1374)(n),n.maps.random=r(2987)(n),n.maps)!function(e){n[e]=function(t){return h(n.maps[e],t)}}(m);a(n,function(){var e={};return Object.keys(f).forEach((function(t){e[t]={get:function(){return c([t])}}})),e}())},2571:function(e){e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],o=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][o]:e})),r}},561:function(e){e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(e){return Math.floor(Math.random()*e)}function i(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!i(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],f=0;f<=n[l];f++)t[l]&&(s+=r[l][o(r[l].length)])}return s}(e,t)}},6393:function(e){e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},1374:function(e){e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:e[t[n++%t.length]](r)}}},2987:function(e){e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},4035:function(e){e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},9951:function(e){var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],o=t[e]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},7946:function(e){"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(n+e);return-1!==o&&(-1===r||o<r)}},3613:function(e,t,r){"use strict";var n=r(4055),o=r(7946),i={NODE_ENV:"production"},a=void 0;function s(e){var t=function(e){if(!1===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;var t=a?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in i}))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var s=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:t}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},3384:function(e,t,r){var n=r(138);e.exports=n},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,u),i=r-o<0,a=t.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var A=function(e){return e instanceof F},E=function(e,t,r){var n;if(!e)return v;if("string"==typeof e)b[e]&&(n=e),t&&(b[e]=t,n=e);else{var o=e.name;b[o]=e,n=o}return!r&&n&&(v=n),n||!r&&v},w=function(e,t){if(A(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new F(r)},C=g;C.l=E,C.i=A,C.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var F=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var r=w(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return w(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<w(e)},y.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,c=!!C.u(t)||t,p=C.p(e),d=function(e,t){var n=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},h=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case l:return c?d(1,0):d(31,11);case u:return c?d(1,y):d(0,y+1);case s:var b=this.$locale().weekStart||0,A=(m<b?m+7:m)-b;return d(c?g-A:g+(6-A),y);case a:case f:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case n:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=C.p(e),p="set"+(this.$u?"UTC":""),d=(s={},s[a]=p+"Date",s[f]=p+"Date",s[u]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[n]=p+"Seconds",s[r]=p+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,c){var f,p=this;r=Number(r);var d=C.p(c),h=function(e){var t=w(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(d===u)return this.set(u,this.$M+r);if(d===l)return this.set(l,this.$y+r);if(d===a)return h(1);if(d===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[n]=1e3,f)[d]||1,y=this.$d.getTime()+r*m;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].substr(0,i)},f=function(e){return C.s(i%12||12,e,"0")},d=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:C.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:o};return n.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,p){var d,h=C.p(f),m=w(r),y=(m.utcOffset()-this.utcOffset())*e,g=this-m,v=C.m(this,m);return v=(d={},d[l]=v/12,d[u]=v,d[c]=v/3,d[s]=(g-y)/6048e5,d[a]=(g-y)/864e5,d[i]=g/t,d[o]=g/e,d[n]=g/1e3,d)[h]||g,p?v:C.a(v)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=E(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=F.prototype;return w.prototype=$,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,F,w),e.$i=!0),w},w.locale=E,w.isDayjs=A,w.unix=function(e){return w(1e3*e)},w.en=b[v],w.Ls=b,w.p={},w}()},4989:function(e){e.exports=function(){"use strict";var e,t,r=1e3,n=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof v},p=function(e,t,r){return new v(e,r,t.$l)},d=function(e){return t.p(e)+"s"},h=function(e){return e<0},m=function(e){return h(e)?Math.ceil(e):Math.floor(e)},y=function(e){return Math.abs(e)},g=function(e,t){return e?h(e)?{negative:!0,format:""+y(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function h(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[d(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[d(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(c);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var y=h.prototype;return y.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*l[r]}),0)},y.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/n),e%=n,this.$d.seconds=m(e/r),e%=r,this.$d.milliseconds=e},y.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=g(r,"D"),o=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=g(a,"S"),u=e.negative||t.negative||n.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+n.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(a,(function(e,t){return t||String(n[e])}))},y.as=function(e){return this.$ms/l[d(e)]},y.get=function(e){var t=this.$ms,r=d(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?m(t/l[r]):this.$d[r],0===t?0:t},y.add=function(e,t,r){var n;return n=t?e*l[d(t)]:f(e)?e.$ms:p(e,this).$ms,p(this.$ms+n*(r?-1:1),this)},y.subtract=function(e,t){return this.add(e,t,!0)},y.locale=function(e){var t=this.clone();return t.$l=e,t},y.clone=function(){return p(this.$ms,this)},y.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},h}();return function(r,n,o){e=o,t=o().$utils(),o.duration=function(e,t){var r=o.locale();return p(e,{$l:r},t)},o.isDuration=f;var i=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(e,t){return f(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},n.prototype.subtract=function(e,t){return f(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)}}}()},7995:function(e){e.exports=function(){"use strict";return function(e,t,r){var n=function(e,t){if(!t||!t.length||!t[0]||1===t.length&&!t[0].length)return null;var r;1===t.length&&t[0].length>0&&(t=t[0]),r=t[0];for(var n=1;n<t.length;n+=1)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r};r.max=function(){var e=[].slice.call(arguments,0);return n("isAfter",e)},r.min=function(){var e=[].slice.call(arguments,0);return n("isBefore",e)}}}()},3134:function(e){e.exports=function(){"use strict";var e="month",t="quarter";return function(r,n){var o=n.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(r,n){return r=Number(r),this.$utils().p(n)===t?this.add(3*r,e):i.bind(this)(r,n)};var a=o.startOf;o.startOf=function(r,n){var o=this.$utils(),i=!!o.u(n)||n;if(o.p(r)===t){var s=this.quarter()-1;return i?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(r,n)}}}()},264:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return p.call(this,e,t,r);var n=this.local(),o=i(e).local();return p.call(n,o,t,r)}}}()},5881:function(e){var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var s,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&isFinite(e))return a.long?(s=e,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=t?i(s,u,t,"second"):s+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5130:function(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e={NODE_ENV:"production"}.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7123)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:function(e,t,r){e.exports=function(e){function t(e){let r,o=null;function i(...e){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=t.formatters[o];if("function"==typeof i){const t=e[s];r=i.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(5881),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},4644:function(e){"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new t(this.low,e.low-1),new t(e.high+1,this.high)]:e.low<=this.low?[new t(e.high+1,this.high)]:[new t(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class r{constructor(e,t){this.ranges=[],this.length=0,null!=e&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce(((e,t)=>e+t.length),0)}add(e,n){var o=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;r.push(e),this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(o):(null==n&&(n=e),o(new t(e,n))),this}subtract(e,n){var o=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)r=r.concat(this.ranges[t].subtract(e)),t++;this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(o):(null==n&&(n=e),o(new t(e,n))),this}intersect(e,n){var o=[],i=e=>{for(var r=0;r<this.ranges.length&&!e.overlaps(this.ranges[r]);)r++;for(;r<this.ranges.length&&e.overlaps(this.ranges[r]);){var n=Math.max(this.ranges[r].low,e.low),i=Math.min(this.ranges[r].high,e.high);o.push(new t(n,i)),r++}};return e instanceof r?e.ranges.forEach(i):(null==n&&(n=e),i(new t(e,n))),this.ranges=o,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new r(this)}numbers(){return this.ranges.reduce(((e,t)=>{for(var r=t.low;r<=t.high;)e.push(r),r++;return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=r},8102:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},9095:function(e,t,r){const n=r(5618),o=r(7485),i={BRACE:"gray",BRACKET:"gray",COLON:"gray",COMMA:"gray",STRING_KEY:"magenta",STRING_LITERAL:"yellow",NUMBER_LITERAL:"green",BOOLEAN_LITERAL:"cyan",NULL_LITERAL:"white"};t.colorize=function(e,t={}){const r=t.colors||{};return e.reduce(((e,t)=>{const a=r[t.type]||i[t.type],s=a&&"#"===a[0]?n.hex(a):o(n,a);return e+(s?s(t.value):t.value)}),"")}},6190:function(e,t,r){const n=r(1024),o=r(9095);e.exports=function(e,t){return o.colorize(n.getTokens(e,t),t)}},1024:function(e,t){const r=[{regex:/^\s+/,tokenType:"WHITESPACE"},{regex:/^[{}]/,tokenType:"BRACE"},{regex:/^[[\]]/,tokenType:"BRACKET"},{regex:/^:/,tokenType:"COLON"},{regex:/^,/,tokenType:"COMMA"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"NUMBER_LITERAL"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"STRING_KEY"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"STRING_LITERAL"},{regex:/^true|^false/,tokenType:"BOOLEAN_LITERAL"},{regex:/^null/,tokenType:"NULL_LITERAL"}];function n(e,t){return(e||{}).length>0&&t}t.getTokens=function(e,t={}){let o;if(t.pretty){const t="string"==typeof e?JSON.parse(e):e;o=JSON.stringify(t,null,2)}else o="string"==typeof e?e:JSON.stringify(e);let i,a=[];do{i=!1;for(let e=0;e<r.length;e++){const t=r[e].regex.exec(o);if(t){a.push({type:r[e].tokenType,value:t[0]}),o=o.substring(t[0].length),i=!0;break}}}while(n(o,i));return a}},7485:function(e,t,r){var n,o="__lodash_hash_undefined__",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,d=f||p||Function("return this")(),h=Array.prototype,m=Function.prototype,y=Object.prototype,g=d["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,A=y.hasOwnProperty,E=y.toString,w=RegExp("^"+b.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=d.Symbol,F=h.splice,$=I(d,"Map"),D=I(Object,"create"),O=C?C.prototype:void 0,P=O?O.toString:void 0;function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function x(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function S(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function I(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!j(e)||v&&v in e)return!1;var t=function(e){var t=j(e)?E.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:l;return t.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}R.prototype.clear=function(){this.__data__=D?D(null):{}},R.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},R.prototype.get=function(e){var t=this.__data__;if(D){var r=t[e];return r===o?void 0:r}return A.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:A.call(t,e)},R.prototype.set=function(e,t){return this.__data__[e]=D&&void 0===t?o:t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,r=x(t,e);return!(r<0||(r==t.length-1?t.pop():F.call(t,r,1),0))},T.prototype.get=function(e){var t=this.__data__,r=x(t,e);return r<0?void 0:t[r][1]},T.prototype.has=function(e){return x(this.__data__,e)>-1},T.prototype.set=function(e,t){var r=this.__data__,n=x(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new R,map:new($||T),string:new R}},k.prototype.delete=function(e){return S(this,e).delete(e)},k.prototype.get=function(e){return S(this,e).get(e)},k.prototype.has=function(e){return S(this,e).has(e)},k.prototype.set=function(e,t){return S(this,e).set(e,t),this};var _=N((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(L(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return s.test(e)&&r.push(""),e.replace(u,(function(e,t,n,o){r.push(n?o.replace(c,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||L(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(N.Cache||k),r}N.Cache=k;var M=Array.isArray;function j(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==E.call(e)}e.exports=function(e,t,r){var n=null==e?void 0:function(e,t){var r;t=function(e,t){if(M(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(r=t)?r:_(r);for(var n=0,o=t.length;null!=e&&n<o;)e=e[B(t[n++])];return n&&n==o?e:void 0}(e,t);return void 0===n?r:n}},7883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMATS=t.FORMAT_PLAIN=t.FORMAT_HTML=void 0;var r="html";t.FORMAT_HTML=r;var n="plain";t.FORMAT_PLAIN=n;var o=[r,n];t.FORMATS=o},779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},6021:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},3353:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},2788:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return i.default}}),t.loremIpsum=void 0;var n,o=r(3353),i=(n=r(5548))&&n.__esModule?n:{default:n};t.loremIpsum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,r=void 0===t?1:t,n=e.format,a=void 0===n?"plain":n,s=e.paragraphLowerBound,u=void 0===s?3:s,c=e.paragraphUpperBound,l=void 0===c?7:c,f=e.random,p=e.sentenceLowerBound,d=void 0===p?5:p,h=e.sentenceUpperBound,m=void 0===h?15:h,y=e.units,g=void 0===y?"sentences":y,v=e.words,b=void 0===v?o.WORDS:v,A=e.suffix,E=void 0===A?"":A,w={random:f,sentencesPerParagraph:{max:l,min:u},words:b,wordsPerSentence:{max:m,min:d}},C=new i.default(w,a,E);switch(g){case"paragraphs":case"paragraph":return C.generateParagraphs(r);case"sentences":case"sentence":return C.generateSentences(r);case"words":case"word":return C.generateWords(r);default:return""}}},5548:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(7883),i=r(779),a=(n=r(928))&&n.__esModule?n:{default:n},s=r(3749);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.FORMAT_PLAIN,n=arguments.length>2?arguments[2]:void 0;if(u(this,e),l(this,"generator",void 0),l(this,"format",void 0),l(this,"suffix",void 0),-1===o.FORMATS.indexOf(r.toLowerCase()))throw new Error("".concat(r," is an invalid format. Please use ").concat(o.FORMATS.join(" or "),"."));this.format=r.toLowerCase(),this.suffix=n,this.generator=new a.default(t)}var t,r;return t=e,(r=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,s.isReactNative)()&&(0,s.isNode)()&&(0,s.isWindows)()?i.LINE_ENDINGS.WIN32:i.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===o.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map((function(e){return t.formatString(e)}))}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,s.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}])&&c(t.prototype,r),e}(),p=f;t.default=p},928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(3353),o=r(3749);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.sentencesPerParagraph,o=void 0===r?{max:7,min:3}:r,a=t.wordsPerSentence,u=void 0===a?{max:15,min:5}:a,c=t.random,l=(t.seed,t.words),f=void 0===l?n.WORDS:l;if(i(this,e),s(this,"sentencesPerParagraph",void 0),s(this,"wordsPerSentence",void 0),s(this,"random",void 0),s(this,"words",void 0),o.min>o.max)throw new Error("Minimum number of sentences per paragraph (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));if(u.min>u.max)throw new Error("Minimum number of words per sentence (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));this.sentencesPerParagraph=o,this.words=f,this.wordsPerSentence=u,this.random=c||Math.random}var t,r;return t=e,(r=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,r=this.wordsPerSentence,n=r.min,i=r.max,a=e||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,r){return"".concat(t.pluckRandomWord()," ").concat(e)}),"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,o.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,r=this.sentencesPerParagraph,n=r.min,i=r.max,a=e||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,r){return"".concat(t.generateRandomSentence()," ").concat(e)}),"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}])&&a(t.prototype,r),e}(),c=u;t.default=c},9998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},3749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return u.default}});var n=c(r(9998)),o=c(r(8077)),i=c(r(6002)),a=c(r(9759)),s=c(r(3385)),u=c(r(4523));function c(e){return e&&e.__esModule?e:{default:e}}},8077:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return!!e.exports}},6002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product}},9759:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6021);t.default=function(){return"undefined"!=typeof process&&process.platform===n.SUPPORTED_PLATFORMS.WIN32}},3385:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map((function(e,t){return t}))}},4523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(3749);t.default=function(e,t){return(0,n.makeArrayOfLength)(e).map((function(){return t()}))}},7105:function(e,t,r){"use strict";const n=r(8006),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(y(e,t)){if(v(e,n),!e[s])return}else r&&(e[d]&&(n.value.now=Date.now()),e[f].unshiftNode(n));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},g=e=>{if(e[i]>e[o])for(let t=e[f].tail;e[i]>e[o]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[f].removeNode(t)}};class b{constructor(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}}const A=(e,t,r,n)=>{let o=r.value;y(e,o)&&(v(e,r),e[s]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,g(this)}get max(){return this[o]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[i]=0,this[f].forEach((e=>{e.length=this[a](e.value,e.key),this[i]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){const n=r.prev;A(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){const n=r.next;A(this,e,r,t),r=n}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[f]=new n,this[i]=0}dump(){return this[f].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[o])return v(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[i]+=s-a.length,a.length=s,this.get(e),g(this),!0}const d=new b(e,t,s,n,r);return d.length>this[o]?(this[c]&&this[c](e,t),!1):(this[i]+=d.length,this[f].unshift(d),this[p].set(e,this[f].head),g(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!y(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[f].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const e=o-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach(((e,t)=>m(this,t,!1)))}}},1848:function(e,t,r){const n=r(8906),o=r(199),{mkdirpNative:i,mkdirpNativeSync:a}=r(6333),{mkdirpManual:s,mkdirpManualSync:u}=r(2939),{useNative:c,useNativeSync:l}=r(5213),f=(e,t)=>(e=o(e),t=n(t),c(t)?i(e,t):s(e,t));f.sync=(e,t)=>(e=o(e),t=n(t),l(t)?a(e,t):u(e,t)),f.native=(e,t)=>i(o(e),n(t)),f.manual=(e,t)=>s(o(e),n(t)),f.nativeSync=(e,t)=>a(o(e),n(t)),f.manualSync=(e,t)=>u(o(e),n(t)),e.exports=f},8609:function(e,t,r){const{dirname:n}=r(6841),o=(e,t,r)=>r===t?Promise.resolve():e.statAsync(t).then((e=>e.isDirectory()?r:void 0),(r=>"ENOENT"===r.code?o(e,n(t),t):void 0)),i=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(r){return"ENOENT"===r.code?i(e,n(t),t):void 0}};e.exports={findMade:o,findMadeSync:i}},2939:function(e,t,r){const{dirname:n}=r(6841),o=(e,t,r)=>{t.recursive=!1;const i=n(e);return i===e?t.mkdirAsync(e,t).catch((e=>{if("EISDIR"!==e.code)throw e})):t.mkdirAsync(e,t).then((()=>r||e),(n=>{if("ENOENT"===n.code)return o(i,t).then((r=>o(e,t,r)));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;throw n}),(()=>{throw n}))}))},i=(e,t,r)=>{const o=n(e);if(t.recursive=!1,o===e)try{return t.mkdirSync(e,t)}catch(e){if("EISDIR"!==e.code)throw e;return}try{return t.mkdirSync(e,t),r||e}catch(n){if("ENOENT"===n.code)return i(e,t,i(o,t,r));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:o,mkdirpManualSync:i}},6333:function(e,t,r){const{dirname:n}=r(6841),{findMade:o,findMadeSync:i}=r(8609),{mkdirpManual:a,mkdirpManualSync:s}=r(2939);e.exports={mkdirpNative:(e,t)=>(t.recursive=!0,n(e)===e?t.mkdirAsync(e,t):o(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if("ENOENT"===r.code)return a(e,t);throw r}))))),mkdirpNativeSync:(e,t)=>{if(t.recursive=!0,n(e)===e)return t.mkdirSync(e,t);const r=i(t,e);try{return t.mkdirSync(e,t),r}catch(r){if("ENOENT"===r.code)return s(e,t);throw r}}}},8906:function(e,t,r){const{promisify:n}=r(4830),o=r(1599);e.exports=e=>{if(e)if("object"==typeof e)e={mode:511,fs:o,...e};else if("number"==typeof e)e={mode:e,fs:o};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:o}}else e={mode:511,fs:o};return e.mkdir=e.mkdir||e.fs.mkdir||o.mkdir,e.mkdirAsync=n(e.mkdir),e.stat=e.stat||e.fs.stat||o.stat,e.statAsync=n(e.stat),e.statSync=e.statSync||e.fs.statSync||o.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||o.mkdirSync,e}},199:function(e,t,r){const n={NODE_ENV:"production"}.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:o,parse:i}=r(6841);e.exports=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=o(e),"win32"===n){const t=/[*|"<>?:]/,{root:r}=i(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},5213:function(e,t,r){const n=r(1599),o=({NODE_ENV:"production"}.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),i=+o[0]>10||10==+o[0]&&+o[1]>=12,a=i?e=>e.mkdir===n.mkdir:()=>!1,s=i?e=>e.mkdirSync===n.mkdirSync:()=>!1;e.exports={useNative:a,useNativeSync:s}},6116:function(e,t,r){const n=r(6589),o=r(4644),i=n.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else{if("string"!=typeof e)throw new Error("Expected a regexp or string");this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m")}this.tokens=n(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,o,a,s;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),n="",a=0,s=(r=e.options?this._randSelect(e.options):e.stack).length;a<s;a++)n+=this._gen(r[a],t);return e.remember&&(t[e.groupNumber]=n),n;case i.POSITION:return"";case i.SET:var u=this._expand(e);return u.length?String.fromCharCode(this._randSelect(u)):"";case i.REPETITION:for(o=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),n="",a=0;a<o;a++)n+=this._gen(e.value,t);return n;case i.REFERENCE:return t[e.value-1]||"";case i.CHAR:var c=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(c)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof o?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR)return new o(e.value);if(e.type===n.types.RANGE)return new o(e.from,e.to);{let t=new o;for(let r=0;r<e.set.length;r++){let n=this._expand(e.set[r]);if(t.add(n),this.ignoreCase)for(let e=0;e<n.length;e++){let r=n.index(e),o=this._toOtherCase(r);r!==o&&t.add(o)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new o(32,126)}set defaultRange(e){this._range=e}static randexp(t,r){var n;return"string"==typeof t&&(t=new RegExp(t,r)),void 0===t._randexp?(n=new e(t,r),t._randexp=n):(n=t._randexp)._setDefaults(t),n.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}},6589:function(e,t,r){const n=r(3895),o=r(3472),i=r(5631),a=r(8013);e.exports=e=>{var t,r,s=0,u={type:o.ROOT,stack:[]},c=u,l=u.stack,f=[],p=t=>{n.error(e,"Nothing to repeat at column "+(t-1))},d=n.strToChars(e);for(t=d.length;s<t;)switch(r=d[s++]){case"\\":switch(r=d[s++]){case"b":l.push(a.wordBoundary());break;case"B":l.push(a.nonWordBoundary());break;case"w":l.push(i.words());break;case"W":l.push(i.notWords());break;case"d":l.push(i.ints());break;case"D":l.push(i.notInts());break;case"s":l.push(i.whitespace());break;case"S":l.push(i.notWhitespace());break;default:/\d/.test(r)?l.push({type:o.REFERENCE,value:parseInt(r,10)}):l.push({type:o.CHAR,value:r.charCodeAt(0)})}break;case"^":l.push(a.begin());break;case"$":l.push(a.end());break;case"[":var h;"^"===d[s]?(h=!0,s++):h=!1;var m=n.tokenizeClass(d.slice(s),e);s+=m[1],l.push({type:o.SET,set:m[0],not:h});break;case".":l.push(i.anyChar());break;case"(":var y={type:o.GROUP,stack:[],remember:!0};"?"===(r=d[s])&&(r=d[s+1],s+=2,"="===r?y.followedBy=!0:"!"===r?y.notFollowedBy=!0:":"!==r&&n.error(e,`Invalid group, character '${r}' after '?' at column `+(s-1)),y.remember=!1),l.push(y),f.push(c),c=y,l=y.stack;break;case")":0===f.length&&n.error(e,"Unmatched ) at column "+(s-1)),l=(c=f.pop()).options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var g=[];c.options.push(g),l=g;break;case"{":var v,b,A=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s));null!==A?(0===l.length&&p(s),v=parseInt(A[1],10),b=A[2]?A[3]?parseInt(A[3],10):1/0:v,s+=A[0].length,l.push({type:o.REPETITION,min:v,max:b,value:l.pop()})):l.push({type:o.CHAR,value:123});break;case"?":0===l.length&&p(s),l.push({type:o.REPETITION,min:0,max:1,value:l.pop()});break;case"+":0===l.length&&p(s),l.push({type:o.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":0===l.length&&p(s),l.push({type:o.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:o.CHAR,value:r.charCodeAt(0)})}return 0!==f.length&&n.error(e,"Unterminated group"),u},e.exports.types=o},8013:function(e,t,r){const n=r(3472);t.wordBoundary=()=>({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},5631:function(e,t,r){const n=r(3472),o=()=>[{type:n.RANGE,from:48,to:57}],i=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(o()),a=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}];t.words=()=>({type:n.SET,set:i(),not:!1}),t.notWords=()=>({type:n.SET,set:i(),not:!0}),t.ints=()=>({type:n.SET,set:o(),not:!1}),t.notInts=()=>({type:n.SET,set:o(),not:!0}),t.whitespace=()=>({type:n.SET,set:a(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:a(),not:!0}),t.anyChar=()=>({type:n.SET,set:[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}],not:!0})},3472:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},3895:function(e,t,r){const n=r(3472),o=r(5631),i={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(e,t,r,n,o,a,s,u){if(r)return e;var c=t?8:n?parseInt(n,16):o?parseInt(o,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):i[u],l=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(l)&&(l="\\"+l),l}))},t.tokenizeClass=(e,r)=>{for(var i,a,s=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(i=u.exec(e));)if(i[1])s.push(o.words());else if(i[2])s.push(o.ints());else if(i[3])s.push(o.whitespace());else if(i[4])s.push(o.notWords());else if(i[5])s.push(o.notInts());else if(i[6])s.push(o.notWhitespace());else if(i[7])s.push({type:n.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else{if(!(a=i[12]))return[s,u.lastIndex];s.push({type:n.CHAR,value:a.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},7847:function(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=u(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=u(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||s||c}}e.exports=o;const i=r(1388),{re:a,t:s}=r(4808),u=r(8117),c=r(952),l=r(2435),f=r(6843)},6843:function(e,t,r){class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[l.COMPARATORTRIM],f),s("comparator trim",e,c[l.COMPARATORTRIM]),e=(e=(e=e.replace(c[l.TILDETRIM],p)).replace(c[l.CARETTRIM],d)).split(/\s+/).join(" ");const u=n?c[l.COMPARATORLOOSE]:c[l.COMPARATOR],m=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options))).filter(this.options.loose?e=>!!e.match(u):()=>!0).map((e=>new a(e,this.options))),y=(m.length,new Map);for(const e of m){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=new(r(7105))({max:1e3}),i=r(1388),a=r(7847),s=r(952),u=r(2435),{re:c,t:l,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:d}=r(4808),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},g=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=b(e,t),s("tildes",e),e=C(e,t),s("xrange",e),e=$(e,t),s("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const r=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{s("caret",e,t);const r=t.loose?c[l.CARETLOOSE]:c[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let u;return s("caret",e,t,r,o,i,a),v(r)?u="":v(o)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(i)?u="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),u="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),u="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",u),u}))},C=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>F(e,t))).join(" ")),F=(e,t)=>{e=e.trim();const r=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(r,((r,n,o,i,a,u)=>{s("xRange",e,r,n,o,i,a,u);const c=v(o),l=c||v(i),f=l||v(a),p=f;return"="===n&&p&&(n=""),u=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(i=0),a=0,">"===n?(n=">=",l?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(u="-0"),r=`${n+o}.${i}.${a}${u}`):l?r=`>=${o}.0.0${u} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${i}.0${u} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},$=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[l.STAR],"")),D=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,r,n,o,i,a,s,u,c,l,f,p,d)=>`${r=v(n)?"":v(o)?`>=${n}.0.0${e?"-0":""}`:v(i)?`>=${n}.${o}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=v(c)?"":v(l)?`<${+c+1}.0.0-0`:v(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},2435:function(e,t,r){const n=r(952),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(5558),{re:a,t:s}=r(4808),u=r(1388),{compareIdentifiers:c}=r(4935);class l{constructor(e,t){if(t=u(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},6694:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},8117:function(e,t,r){const n=r(3276),o=r(7893),i=r(6379),a=r(8463),s=r(1897),u=r(506);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return o(e,r,c);case">":return i(e,r,c);case">=":return a(e,r,c);case"<":return s(e,r,c);case"<=":return u(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},8686:function(e,t,r){const n=r(2435),o=r(9943),{re:i,t:a}=r(4808);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else r=e.match(i[a.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},5914:function(e,t,r){const n=r(2435);e.exports=(e,t,r)=>{const o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}},5404:function(e,t,r){const n=r(2271);e.exports=(e,t)=>n(e,t,!0)},2271:function(e,t,r){const n=r(2435);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},6007:function(e,t,r){const n=r(9943),o=r(3276);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),i=r.prerelease.length||o.prerelease.length,a=i?"pre":"",s=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return a+e;return s}}},3276:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>0===n(e,t,r)},6379:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)>0},8463:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)>=0},6360:function(e,t,r){const n=r(2435);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},1897:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)<0},506:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)<=0},4551:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).major},469:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).minor},7893:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>0!==n(e,t,r)},9943:function(e,t,r){const{MAX_LENGTH:n}=r(5558),{re:o,t:i}=r(4808),a=r(2435),s=r(1388);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},4250:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).patch},8204:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},733:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(t,e,r)},2961:function(e,t,r){const n=r(5914);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},9844:function(e,t,r){const n=r(6843);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},1116:function(e,t,r){const n=r(5914);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},7230:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},7699:function(e,t,r){const n=r(4808);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(5558).SEMVER_SPEC_VERSION,SemVer:r(2435),compareIdentifiers:r(4935).compareIdentifiers,rcompareIdentifiers:r(4935).rcompareIdentifiers,parse:r(9943),valid:r(7230),clean:r(6694),inc:r(6360),diff:r(6007),major:r(4551),minor:r(469),patch:r(4250),prerelease:r(8204),compare:r(2271),rcompare:r(733),compareLoose:r(5404),compareBuild:r(5914),sort:r(1116),rsort:r(2961),gt:r(6379),lt:r(1897),eq:r(3276),neq:r(7893),gte:r(8463),lte:r(506),cmp:r(8117),coerce:r(8686),Comparator:r(7847),Range:r(6843),satisfies:r(9844),toComparators:r(8865),maxSatisfying:r(3727),minSatisfying:r(4338),minVersion:r(1542),validRange:r(6240),outside:r(9106),gtr:r(995),ltr:r(7805),intersects:r(2013),simplifyRange:r(1338),subset:r(3122)}},5558:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},952:function(e){const t="object"==typeof process&&{NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4935:function(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},1388:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},4808:function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5558),o=r(952),i=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let u=0;const c=(e,t,r)=>{const n=u++;o(n,t),s[e]=n,a[n]=t,i[n]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),c("FULL",`^${a[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),c("LOOSE",`^${a[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),c("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",a[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:function(e,t,r){const n=r(9106);e.exports=(e,t,r)=>n(e,t,">",r)},2013:function(e,t,r){const n=r(6843);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},7805:function(e,t,r){const n=r(9106);e.exports=(e,t,r)=>n(e,t,"<",r)},3727:function(e,t,r){const n=r(2435),o=r(6843);e.exports=(e,t,r)=>{let i=null,a=null,s=null;try{s=new o(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new n(i,r)))})),i}},4338:function(e,t,r){const n=r(2435),o=r(6843);e.exports=(e,t,r)=>{let i=null,a=null,s=null;try{s=new o(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new n(i,r)))})),i}},1542:function(e,t,r){const n=r(2435),o=r(6843),i=r(6379);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let a=null;o.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!i(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&e.test(r)?r:null}},9106:function(e,t,r){const n=r(2435),o=r(7847),{ANY:i}=o,a=r(6843),s=r(9844),u=r(6379),c=r(1897),l=r(506),f=r(8463);e.exports=(e,t,r,p)=>{let d,h,m,y,g;switch(e=new n(e,p),t=new a(t,p),r){case">":d=u,h=l,m=c,y=">",g=">=";break;case"<":d=c,h=f,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let a=null,s=null;if(n.forEach((e=>{e.semver===i&&(e=new o(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:m(e.semver,s.semver,p)&&(s=e)})),a.operator===y||a.operator===g)return!1;if((!s.operator||s.operator===y)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},1338:function(e,t,r){const n=r(9844),o=r(2271);e.exports=(e,t,r)=>{const i=[];let a=null,s=null;const u=e.sort(((e,t)=>o(e,t,r)));for(const e of u)n(e,t,r)?(s=e,a||(a=e)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},3122:function(e,t,r){const n=r(6843),o=r(7847),{ANY:i}=o,a=r(9844),s=r(2271),u=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new o(">=0.0.0")]}const n=new Set;let u,f,p,d,h,m,y;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?f=l(f,t,r):n.add(t.semver);if(n.size>1)return null;if(u&&f){if(p=s(u.semver,f.semver,r),p>0)return null;if(0===p&&(">="!==u.operator||"<="!==f.operator))return null}for(const e of n){if(u&&!a(e,String(u),r))return null;if(f&&!a(e,String(f),r))return null;for(const n of t)if(!a(e,String(n),r))return!1;return!0}let g=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===f.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=c(u,e,r),d===e&&d!==u)return!1}else if(">="===u.operator&&!a(u.semver,String(e),r))return!1;if(f)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(h=l(f,e,r),h===e&&h!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(e),r))return!1;if(!e.operator&&(f||u)&&0!==p)return!1}return!(u&&m&&!f&&0!==p||f&&y&&!u&&0!==p||v||g)},c=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},8865:function(e,t,r){const n=r(6843);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},6240:function(e,t,r){const n=r(6843);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},4716:function(e){"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}},8334:function(e){"use strict";e.exports={stdout:!1,stderr:!1}},9569:function(e,t,r){var n,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,r,n=e.toLowerCase().split(":"),o=n.length,i=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[o-1]&&""===n[o-2]&&n.pop(),-1!==n[(o=n.length)-1].indexOf(".")&&(i=7),t=0;t<o&&""!==n[t];t++);if(t<i)for(n.splice(t,1,"0000");n.length<i;)n.splice(t,0,"0000");for(var a=0;a<i;a++){r=n[a].split("");for(var s=0;s<3&&"0"===r[0]&&r.length>1;s++)r.splice(0,1);n[a]=r.join("")}var u=-1,c=0,l=0,f=-1,p=!1;for(a=0;a<i;a++)p?"0"===n[a]?l+=1:(p=!1,l>c&&(u=f,c=l)):"0"===n[a]&&(p=!0,f=a,l=1);l>c&&(u=f,c=l),c>1&&n.splice(u,c,""),o=n.length;var d="";for(""===n[0]&&(d=":"),a=0;a<o&&(d+=n[a],a!==o-1);a++)d+=":";return""===n[o-1]&&(d+=":"),d},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},4171:function(e,t,r){var n,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var o=r.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var o=r.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},957:function(e,t,r){var n,o,i;!function(a,s){"use strict";e.exports?e.exports=s(r(9942),r(9569),r(4171)):(o=[r(9942),r(9569),r(4171)],void 0===(i="function"==typeof(n=s)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t,r,n){"use strict";var o=n&&n.URI;function i(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof i))return r?n?new i(e,t):new i(e):new i;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var a=i.prototype,s=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===c(e)}function f(e,t){var r,n,o={};if("RegExp"===c(t))o=null;else if(l(t))for(r=0,n=t.length;r<n;r++)o[t[r]]=!0;else o[t]=!0;for(r=0,n=e.length;r<n;r++)(o&&void 0!==o[e[r]]||!o&&t.test(e[r]))&&(e.splice(r,1),n--,r--);return e}function p(e,t){var r,n;if(l(t)){for(r=0,n=t.length;r<n;r++)if(!p(e,t[r]))return!1;return!0}var o=c(t);for(r=0,n=e.length;r<n;r++)if("RegExp"===o){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function d(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function y(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-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-Fa-f]{1,4}:){5}(((:[0-9A-Fa-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-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-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-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-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-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-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-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-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-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-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}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=y,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=y,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var r=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var g,v={encode:"encode",decode:"decode"},b=function(e,t){return function(r){try{return i[t](r+"").replace(i.characters[e][t].expression,(function(r){return i.characters[e][t].map[r]}))}catch(e){return r}}};for(g in v)i[g+"PathSegment"]=b("pathname",v[g]),i[g+"UrnPathSegment"]=b("urnpath",v[g]);var A=function(e,t,r){return function(n){var o;o=r?function(e){return i[t](i[r](e))}:i[t];for(var a=(n+"").split(e),s=0,u=a.length;s<u;s++)a[s]=o(a[s]);return a.join(e)}};function E(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function w(e,t){return function(r,n){return void 0===r?this._parts[e]||"":(null!==r&&(r+="").charAt(0)===t&&(r=r.substring(1)),this._parts[e]=r,this.build(!n),this)}}i.decodePath=A("/","decodePathSegment"),i.decodeUrnPath=A(":","decodeUrnPathSegment"),i.recodePath=A("/","encodePathSegment","decode"),i.recodeUrnPath=A(":","encodeUrnPathSegment","decode"),i.encodeReserved=b("reserved","encode"),i.parse=function(e,t){var r;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(r=(e=(e=e.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=i.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var r,n,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),u=e.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(t.hostname=e.substring(0,o)||null,t.port=null):(n=e.substring(0,o).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(o)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var r=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n,o=e.indexOf("/"),a=e.lastIndexOf("@",o>-1?o:e.length-1);return a>-1&&(-1===o||a<o)?(n=e.substring(0,a).split(":"),t.username=n[0]?i.decode(n[0]):null,n.shift(),t.password=n[0]?i.decode(n.join(":")):null,e=r.substring(a+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,o,a={},u=e.split("&"),c=u.length,l=0;l<c;l++)r=u[l].split("="),n=i.decodeQuery(r.shift(),t),o=r.length?i.decodeQuery(r.join("="),t):null,"__proto__"!==n&&(s.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(o)):a[n]=o);return a},i.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",r=!0),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,r){var n,o,a,u,c="";for(o in e)if("__proto__"!==o&&s.call(e,o))if(l(e[o]))for(n={},a=0,u=e[o].length;a<u;a++)void 0!==e[o][a]&&void 0===n[e[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,e[o][a],r),!0!==t&&(n[e[o][a]+""]=!0));else void 0!==e[o]&&(c+="&"+i.buildQueryParameter(o,e[o],r));return c.substring(1)},i.buildQueryParameter=function(e,t,r){return i.encodeQuery(e,r)+(null!==t?"="+i.encodeQuery(t,r):"")},i.addQuery=function(e,t,r){if("object"==typeof t)for(var n in t)s.call(t,n)&&i.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),l(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}},i.setQuery=function(e,t,r){if("object"==typeof t)for(var n in t)s.call(t,n)&&i.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},i.removeQuery=function(e,t,r){var n,o,a;if(l(t))for(n=0,o=t.length;n<o;n++)e[t[n]]=void 0;else if("RegExp"===c(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"==typeof t)for(a in t)s.call(t,a)&&i.removeQuery(e,a,t[a]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===c(r)?!l(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=f(e[t],r):e[t]!==String(r)||l(r)&&1!==r.length?l(e[t])&&(e[t]=f(e[t],r)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,r,n){switch(c(t)){case"String":break;case"RegExp":for(var o in e)if(s.call(e,o)&&t.test(o)&&(void 0===r||i.hasQuery(e,o,r)))return!0;return!1;case"Object":for(var a in t)if(s.call(t,a)&&!i.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(r)){case"Undefined":return t in e;case"Boolean":return r===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!r(e[t],t,e);case"Array":return!!l(e[t])&&(n?p:d)(e[t],r);case"RegExp":return l(e[t])?!!n&&p(e[t],r):Boolean(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return l(e[t])?!!n&&p(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],r=0,n=0;n<arguments.length;n++){var o=new i(arguments[n]);e.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&t.push(a[s]),a[s]&&r++}if(!t.length||!r)return new i("");var u=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(r)&&"/"===t.charAt(r)||(r=e.substring(0,r).lastIndexOf("/")),e.substring(0,r+1))},i.withinString=function(e,t,r){r||(r={});var n=r.start||i.findUri.start,o=r.end||i.findUri.end,a=r.trim||i.findUri.trim,s=r.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var c=n.exec(e);if(!c)break;var l=c.index;if(r.ignoreHtml){var f=e.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var p=l+e.slice(l).search(o),d=e.slice(l,p),h=-1;;){var m=s.exec(d);if(!m)break;var y=m.index+m[0].length;h=Math.max(h,y)}if(!((d=h>-1?d.slice(0,h)+d.slice(h).replace(a,""):d.replace(a,"")).length<=c[0].length||r.ignore&&r.ignore.test(d))){var g=t(d,l,p=l+d.length,e);void 0!==g?(g=String(g),e=e.slice(0,l)+g+e.slice(p),n.lastIndex=l+g.length):n.lastIndex=p}}return n.lastIndex=0,e},i.ensureValidHostname=function(t,r){var n=!!t,o=!1;if(!!r&&(o=p(i.hostProtocols,r)),o&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=E("protocol"),a.username=E("username"),a.password=E("password"),a.hostname=E("hostname"),a.port=E("port"),a.query=w("query","?"),a.fragment=w("fragment","#"),a.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},a.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},a.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(r):r}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var n=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1),!n&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!n&&!o)throw new TypeError("invalid input");var a=n?e._parts:e;for(r in a)"query"!==r&&s.call(this._parts,r)&&(this._parts[r]=a[r]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,n=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(t=n||o))&&r&&r.has(this._parts.hostname),u=a&&i.idn_expression.test(this._parts.hostname),c=a&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var C=a.protocol,F=a.port,$=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return C.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),F.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return $.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=i(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=i.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=i.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,n),a=new RegExp("^"+u(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[o.toLowerCase()]&&r.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?i.decodePath(n):n}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+u(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?i.decodePathSegment(n):n}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(u(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(r=o.substring(a+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?i.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var s,c=this.suffix();if(c)s=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return s&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,r){var n=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,u=t.length;s<u;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(t[s])))}else(t||"string"==typeof t)&&(t=h(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=h(t):a.splice(e,1);return i&&a.unshift(""),this.path(a.join(n),r)},a.segmentCoded=function(e,t,r){var n,o,a;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(l(n=this.segment(e,t,r)))for(o=0,a=n.length;o<a;o++)n[o]=i.decode(n[o]);else n=void 0!==n?i.decode(n):void 0;return n}if(l(t))for(o=0,a=t.length;o<a;o++)t[o]=i.encode(t[o]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,r)};var D=a.query;return a.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,r);return this._parts.query=i.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):D.call(this,e,t)},a.setQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)s.call(e,o)&&(n[o]=e[o])}return this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.addQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(n,e,void 0===t?null:t),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.removeQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(n,e,t),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.hasQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(n,e,t,r)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},a.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t,r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var n,o,a="";for("/"!==(r=i.recodePath(r)).charAt(0)&&(t=!0,r="/"+r),"/.."!==r.slice(-3)&&"/."!==r.slice(-2)||(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=r.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(n=r.search(/\/\.\.(\/|$)/));)0!==n?(-1===(o=r.substring(0,n).lastIndexOf("/"))&&(o=n),r=r.substring(0,o)+r.substring(n+3)):r=r.substring(3);return t&&this.is("relative")&&(r=a+r.substring(1)),this._parts.path=r,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.unicode=function(){var e=i.encode,t=i.decode;i.encode=y,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var n="",o=0,a=t._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");n+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(n+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+i.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,r,n,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),o._parts.protocol)return o;if(o._parts.protocol=e._parts.protocol,this._parts.hostname)return o;for(r=0;n=a[r];r++)o._parts[n]=e._parts[n];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},a.relativeTo=function(e){var t,r,n,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=s._parts,r=e._parts,o=s.path(),a=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===r.protocol&&(t.protocol=null),t.username!==r.username||t.password!==r.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==r.hostname||t.port!==r.port)return s.build();if(t.hostname=null,t.port=null,o===a)return t.path="",s.build();if(!(n=i.commonPath(o,a)))return s.build();var u=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=u+t.path.substring(n.length)||"./",s.build()},a.equals=function(e){var t,r,n,o,a,u=this.clone(),c=new i(e),f={};if(u.normalize(),c.normalize(),u.toString()===c.toString())return!0;if(n=u.query(),o=c.query(),u.query(""),c.query(""),u.toString()!==c.toString())return!1;if(n.length!==o.length)return!1;for(a in t=i.parseQuery(n,this._parts.escapeQuerySpace),r=i.parseQuery(o,this._parts.escapeQuerySpace),t)if(s.call(t,a)){if(l(t[a])){if(!d(t[a],r[a]))return!1}else if(t[a]!==r[a])return!1;f[a]=!0}for(a in r)if(s.call(r,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i}))},9942:function(e,t,r){var n;e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(p[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=u)e=d(e/35);return d(n+36*e/(e+38))}function w(e){var t,r,n,o,i,a,c,l,f,p,h,y=[],g=e.length,v=0,A=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:u)>=u||l>d((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=w?1:c>=w+26?26:c-w));c+=u)a>d(s/(p=u-f))&&m("overflow"),a*=p;w=E(v-i,t=y.length+1,0==i),d(v/t)>s-A&&m("overflow"),A+=d(v/t),v%=t,y.splice(v++,0,A)}return b(y)}function C(e){var t,r,n,o,i,a,c,l,f,p,y,g,b,w,C,F=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&F.push(h(y));for(n=o=F.length,o&&F.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=e[a])>=t&&y<c&&(c=y);for(c-t>d((s-r)/(b=n+1))&&m("overflow"),r+=(c-t)*b,t=c,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&m("overflow"),y==t){for(l=r,f=u;!(l<(p=f<=i?1:f>=i+26?26:f-i));f+=u)C=l-p,w=u-p,F.push(h(A(p+C%w,0))),l=d(C/w);F.push(h(A(l,0))),i=E(r,b,n==o),r=0,++n}++r,++t}return F.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:w,encode:C,toASCII:function(e){return g(e,(function(e){return l.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},9987:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{NIL:function(){return T},parse:function(){return y},stringify:function(){return p},v1:function(){return m},v3:function(){return $},v4:function(){return D},v5:function(){return R},validate:function(){return s},version:function(){return k}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r},d=0,h=0,m=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,y=c-d+(m-h)/1e4;if(y<0&&void 0===e.clockseq&&(s=s+1&16383),(y<0||c>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=c,h=m,f=s;var g=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=a[b];return t||p(o)},y=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function g(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return p(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function A(e,t,r,n,o,i){return b((a=b(b(t,e),b(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function E(e,t,r,n,o,i,a){return A(t&r|~t&n,e,t,o,i,a)}function w(e,t,r,n,o,i,a){return A(t&n|r&~n,e,t,o,i,a)}function C(e,t,r,n,o,i,a){return A(t^r^n,e,t,o,i,a)}function F(e,t,r,n,o,i,a){return A(r^(t|~n),e,t,o,i,a)}var $=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i;r=E(r,n,o,i,e[a],7,-680876936),i=E(i,r,n,o,e[a+1],12,-389564586),o=E(o,i,r,n,e[a+2],17,606105819),n=E(n,o,i,r,e[a+3],22,-1044525330),r=E(r,n,o,i,e[a+4],7,-176418897),i=E(i,r,n,o,e[a+5],12,1200080426),o=E(o,i,r,n,e[a+6],17,-1473231341),n=E(n,o,i,r,e[a+7],22,-45705983),r=E(r,n,o,i,e[a+8],7,1770035416),i=E(i,r,n,o,e[a+9],12,-1958414417),o=E(o,i,r,n,e[a+10],17,-42063),n=E(n,o,i,r,e[a+11],22,-1990404162),r=E(r,n,o,i,e[a+12],7,1804603682),i=E(i,r,n,o,e[a+13],12,-40341101),o=E(o,i,r,n,e[a+14],17,-1502002290),r=w(r,n=E(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=w(i,r,n,o,e[a+6],9,-1069501632),o=w(o,i,r,n,e[a+11],14,643717713),n=w(n,o,i,r,e[a],20,-373897302),r=w(r,n,o,i,e[a+5],5,-701558691),i=w(i,r,n,o,e[a+10],9,38016083),o=w(o,i,r,n,e[a+15],14,-660478335),n=w(n,o,i,r,e[a+4],20,-405537848),r=w(r,n,o,i,e[a+9],5,568446438),i=w(i,r,n,o,e[a+14],9,-1019803690),o=w(o,i,r,n,e[a+3],14,-187363961),n=w(n,o,i,r,e[a+8],20,1163531501),r=w(r,n,o,i,e[a+13],5,-1444681467),i=w(i,r,n,o,e[a+2],9,-51403784),o=w(o,i,r,n,e[a+7],14,1735328473),r=C(r,n=w(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=C(i,r,n,o,e[a+8],11,-2022574463),o=C(o,i,r,n,e[a+11],16,1839030562),n=C(n,o,i,r,e[a+14],23,-35309556),r=C(r,n,o,i,e[a+1],4,-1530992060),i=C(i,r,n,o,e[a+4],11,1272893353),o=C(o,i,r,n,e[a+7],16,-155497632),n=C(n,o,i,r,e[a+10],23,-1094730640),r=C(r,n,o,i,e[a+13],4,681279174),i=C(i,r,n,o,e[a],11,-358537222),o=C(o,i,r,n,e[a+3],16,-722521979),n=C(n,o,i,r,e[a+6],23,76029189),r=C(r,n,o,i,e[a+9],4,-640364487),i=C(i,r,n,o,e[a+12],11,-421815835),o=C(o,i,r,n,e[a+15],16,530742520),r=F(r,n=C(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=F(i,r,n,o,e[a+7],10,1126891415),o=F(o,i,r,n,e[a+14],15,-1416354905),n=F(n,o,i,r,e[a+5],21,-57434055),r=F(r,n,o,i,e[a+12],6,1700485571),i=F(i,r,n,o,e[a+3],10,-1894986606),o=F(o,i,r,n,e[a+10],15,-1051523),n=F(n,o,i,r,e[a+1],21,-2054922799),r=F(r,n,o,i,e[a+8],6,1873313359),i=F(i,r,n,o,e[a+15],10,-30611744),o=F(o,i,r,n,e[a+6],15,-1560198380),n=F(n,o,i,r,e[a+13],21,1309151649),r=F(r,n,o,i,e[a+4],6,-145523070),i=F(i,r,n,o,e[a+11],10,-1120210379),o=F(o,i,r,n,e[a+2],15,718787259),n=F(n,o,i,r,e[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(v(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),D=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return p(n)};function O(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function P(e,t){return e<<t|e>>>32-t}var R=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=s[f][d];for(var h=16;h<80;++h)p[h]=P(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var m=r[0],y=r[1],g=r[2],v=r[3],b=r[4],A=0;A<80;++A){var E=Math.floor(A/20),w=P(m,5)+O(E,y,g,v)+b+t[E]+p[A]>>>0;b=v,v=g,g=P(y,30)>>>0,y=m,m=w}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),T="00000000-0000-0000-0000-000000000000",k=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},8268:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)t.push(arguments[r]);return t}function o(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,o=this.head;null!==o;)r.push(e.call(t,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,o=this.tail;null!==o;)r.push(e.call(t,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;var a=[];for(n=0;i&&n<t;n++)a.push(i.value),i=this.removeNode(i);for(null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),n=0;n<r.length;n++)i=o(this,i,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(8268)(n)}catch(e){}},6010:function(e,t,r){"use strict";const n=r(9022),o=r(7619),i=r(5400),a=r(4458),s=r(7291),u=r(4356),c=r(722),l=r(1988),f=r(79),p=r(4823),d=r(1081),h=r(6858),m=r(9966),y=r(5960),g=r(4833),v=r(7667),b=r(3988),A=r(2989),E=r(8894),w=r(4469),C=r(8031),F=r(6938),$=r(5338),D=r(9444),O=r(3407),P=r(4975),R=r(6972),T=r(6697),k=r(1997),x=r(1840),S=r(7663),I=r(4857),_=r(1209),B=r(4147);e.exports={SecurityException:n,IllegalModelException:o,TypeNotFoundException:i,Decorator:a,DecoratorFactory:s,DecoratorManager:x,ClassDeclaration:u,IdentifiedDeclaration:c,AssetDeclaration:l,ConceptDeclaration:f,EnumValueDeclaration:p,EventDeclaration:d,ParticipantDeclaration:h,TransactionDeclaration:m,Property:y,Field:g,EnumDeclaration:v,RelationshipDeclaration:b,Typed:A,Identifiable:E,Relationship:w,Resource:C,Factory:F,Globalize:$,Introspector:D,ModelFile:O,ModelManager:P,Serializer:R,ModelUtil:T,ModelLoader:k,DateTimeUtil:S,Concerto:I,MetaModel:_,version:B}},3255:function(e,t,r){"use strict";const n=r(7529),o=r(9307),i=r(5502),a=r(5555);e.exports={ParseException:n,Parser:o,Printer:i,External:a}},5555:function(e,t,r){"use strict";const n=r(4481),{DefaultFileLoader:o,FileDownloader:i}=r(1104),a=r(5130)("concerto:ModelManager"),s=r(2255),{MetaModelUtil:u}=r(5076);e.exports={resolveExternal:async function(e,t,r){a("updateExternalModels","updateExternalModels",t),r||(r=new i(new o(((e,t)=>".cto"===n.extname(e)?s.parse(t):t)),u.getExternalImports));const c=await r.downloadExternalDependencies(e.models,t);let l=e;return c.forEach((e=>{l=function(e,t){const r={$class:"concerto.metamodel.Models",models:[]},n=t.namespace,o=e.models;let i=!1;return o.forEach(((e,o)=>{e.namespace===n?(r.models.push(t),i=!0):r.models.push(e)})),i||r.models.push(t),r}(l,e)})),l}}},7529:function(e,t,r){"use strict";const{BaseFileException:n}=r(1104);e.exports=class extends n{constructor(e,t,r,n,o){let i=e,a="";r&&(a+=" File "+r),t&&(t.end&&t.start&&t.end.offset&&t.start.offset&&t.end.offset-t.start.offset==1&&(t.end.column=t.start.column,t.end.offset=t.start.offset),a+=a?" line "+t.start.line+" column "+t.start.column:" Line "+t.start.line+" column "+t.start.column),i+=a,super(e,t,n||i,r,o)}}},2255:function(e){"use strict";function t(e,r,n,o){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,t.prototype),i.expected=r,i.found=n,i.location=o,i.name="SyntaxError",i}function r(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(t,Error),t.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var n,o=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){o=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,a=this.location.source+":"+i.line+":"+i.column;if(o){var s=this.location.end,u=r("",i.line.toString().length),c=o[i.line-1],l=i.line===s.line?s.column:c.length+1;t+="\n --\x3e "+a+"\n"+u+" |\n"+i.line+" | "+c+"\n"+u+" | "+r("",i.column-1)+r("",l-i.column,"^")}else t+="\n at "+a}return t},t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,r){var n,o={},i=(r=void 0!==r?r:{}).grammarSource,a={Start:cn},s=cn,u="*/",c="//",l="\\",f=".",p='"',d="'",h="/",m="[",y="]",g="enum",v="false",b="import",A="null",E="true",w="}",C=":",F="?",$="@",D=",",O="=",P="-",R="::",T="concerto",k="version",x="namespace",S="abstract",I="concept",_="asset",B="transaction",N="event",M="participant",j="from",L="Integer",U="Double",V="Long",Q="String",z="DateTime",H="Boolean",q="identified by",G="identified",J="[]",W="extends",Y="{",X="optional",Z="default",K="o",ee="regex",te="range",re=/^[\n\r\u2028\u2029]/,ne=/^[+\-]/,oe=/^[0-9]/,ie=/^[1-9]/,ae=/^[0-9a-f]/i,se=/^[*\\\/[]/,ue=/^[\\\/[]/,ce=/^[\]\\]/,le=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,fe=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,pe=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,de=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,he=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,me=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,ye=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,ge=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,ve=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,be=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Ae=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ee=/^[A-Z]/,we=/^[a-z]/,Ce=/^[0-5]/,Fe=/^[0-4]/,$e={type:"any"},De=on("whitespace"),Oe=rn("\t",!1),Pe=rn("\v",!1),Re=rn("\f",!1),Te=rn(" ",!1),ke=rn(" ",!1),xe=rn("\ufeff",!1),Se=nn(["\n","\r","\u2028","\u2029"],!1,!1),Ie=on("end of line"),_e=rn("\n",!1),Be=rn("\r\n",!1),Ne=rn("\r",!1),Me=rn("\u2028",!1),je=rn("\u2029",!1),Le=on("comment"),Ue=rn("/*",!1),Ve=rn("*/",!1),Qe=rn("//",!1),ze=on("identifier"),He=rn("$",!1),qe=rn("_",!1),Ge=rn("\\",!1),Je=rn("‌",!1),We=rn("‍",!1),Ye=on("number"),Xe=rn(".",!1),Ze=nn(["+","-"],!1,!1),Ke=rn("0",!1),et=nn([["0","9"]],!1,!1),tt=nn([["1","9"]],!1,!1),rt=rn("e",!0),nt=rn("0x",!0),ot=nn([["0","9"],["a","f"]],!1,!0),it=on("string"),at=rn('"',!1),st=rn("'",!1),ut=rn("b",!1),ct=rn("f",!1),lt=rn("n",!1),ft=rn("r",!1),pt=rn("t",!1),dt=rn("v",!1),ht=rn("x",!1),mt=rn("u",!1),yt=on("regular expression"),gt=rn("/",!1),vt=nn(["*","\\","/","["],!1,!1),bt=nn(["\\","/","["],!1,!1),At=rn("[",!1),Et=rn("]",!1),wt=nn(["]","\\"],!1,!1),Ct=nn([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Ft=nn([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),$t=nn(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Dt=nn(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Ot=nn([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Pt=nn(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Rt=nn([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Tt=nn([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),kt=nn([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),xt=nn(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),St=nn([" "," "," ",[" "," "]," "," "," "],!1,!1),It=rn("enum",!1),_t=rn("false",!1),Bt=rn("import",!1),Nt=rn("null",!1),Mt=rn("true",!1),jt=rn(";",!1),Lt=rn("}",!1),Ut=nn([["A","Z"]],!1,!1),Vt=nn([["a","z"]],!1,!1),Qt=rn("1",!1),zt=(nn([["",""]],!1,!1),nn([["\0",""]],!1,!1),rn("",!1),nn(['"'],!1,!1),rn("A",!0)),Ht=rn("B",!0),qt=rn("C",!0),Gt=rn("D",!0),Jt=rn("E",!0),Wt=rn("F",!0),Yt=(nn([["\0","ÿ"]],!1,!1),nn([["!","~"]],!1,!1),rn("%",!1)),Xt=rn(":",!1),Zt=rn("?",!1),Kt=rn("#",!1),er=rn("@",!1),tr=rn("!",!1),rr=rn("&",!1),nr=rn("(",!1),or=rn(")",!1),ir=rn("*",!1),ar=rn("+",!1),sr=rn(",",!1),ur=rn("=",!1),cr=rn("-",!1),lr=rn("~",!1),fr=rn("::",!1),pr=rn("25",!1),dr=nn([["0","5"]],!1,!1),hr=rn("2",!1),mr=nn([["0","4"]],!1,!1),yr=rn("concerto",!1),gr=rn("version",!1),vr=rn("namespace",!1),br=rn("abstract",!1),Ar=rn("concept",!1),Er=rn("asset",!1),wr=rn("transaction",!1),Cr=rn("event",!1),Fr=rn("participant",!1),$r=rn("from",!1),Dr=rn(".*",!1),Or=rn("Integer",!1),Pr=rn("Double",!1),Rr=rn("Long",!1),Tr=rn("String",!1),kr=rn("DateTime",!1),xr=rn("Boolean",!1),Sr=rn("identified by",!1),Ir=rn("identified",!1),_r=rn("[]",!1),Br=rn("extends",!1),Nr=rn("{",!1),Mr=rn("optional",!1),jr=rn("default",!1),Lr=rn("o",!1),Ur=rn("regex",!1),Vr=rn("range",!1),Qr=rn("--\x3e",!1),zr=function(){return{type:"Literal",value:parseFloat(en())}},Hr=function(e){return{type:"Literal",value:e.join("")}},qr=function(){return en()},Gr=function(e){return String.fromCharCode(parseInt(e,16))},Jr=0,Wr=0,Yr=[{line:1,column:1}],Xr=0,Zr=[],Kr=0;if("startRule"in r){if(!(r.startRule in a))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=a[r.startRule]}function en(){return e.substring(Wr,Jr)}function tn(){return sn(Wr,Jr)}function rn(e,t){return{type:"literal",text:e,ignoreCase:t}}function nn(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function on(e){return{type:"other",description:e}}function an(t){var r,n=Yr[t];if(n)return n;for(r=t-1;!Yr[r];)r--;for(n={line:(n=Yr[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Yr[t]=n,n}function sn(e,t){var r=an(e),n=an(t);return{source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function un(e){Jr<Xr||(Jr>Xr&&(Xr=Jr,Zr=[]),Zr.push(e))}function cn(){var t,r;return t=Jr,Mn(),r=function(){var t,r,n,i,a;return t=Jr,r=function(){var t,r,n,i;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===T?(r=T,Jr+=8):(r=o,0===Kr&&un(yr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(Mn(),n=function(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===k?(r=k,Jr+=7):(r=o,0===Kr&&un(gr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(Mn(),(i=$n())!==o?(Mn(),Wr=t,t=i.value):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),r===o&&(r=null),n=function(){var t,r,n;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,9)===x?(r=x,Jr+=9):(r=o,0===Kr&&un(vr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(Mn(),(n=Do())!==o?(Mn(),Wr=t,t=n):(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(i=function(){var e,t,r,n,i,a;if(e=Jr,(t=Oo())!==o){for(r=[],n=Jr,i=Mn(),(a=Oo())!==o?n=i=[i,a]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,i=Mn(),(a=Oo())!==o?n=i=[i,a]:(Jr=n,n=o);Wr=e,e=Ro(t,r,1)}else Jr=e,e=o;return e}(),i===o&&(i=null),a=function(){var e,t,r,n,i,a;if(e=Jr,(t=Po())!==o){for(r=[],n=Jr,i=Mn(),(a=Po())!==o?n=i=[i,a]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,i=Mn(),(a=Po())!==o?n=i=[i,a]:(Jr=n,n=o);Wr=e,e=Ro(t,r,1)}else Jr=e,e=o;return e}(),a===o&&(a=null),Wr=t,t=function(e,t,r,n){const o={$class:"concerto.metamodel.Model",namespace:t,imports:To(r),declarations:To(n)};return e&&(o.concertoVersion=e),o}(r,n,i,a)):(Jr=t,t=o),t}(),r!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o),t}function ln(){var t;return e.length>Jr?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un($e)),t}function fn(){var t;return Kr++,9===e.charCodeAt(Jr)?(t="\t",Jr++):(t=o,0===Kr&&un(Oe)),t===o&&(11===e.charCodeAt(Jr)?(t="\v",Jr++):(t=o,0===Kr&&un(Pe)),t===o&&(12===e.charCodeAt(Jr)?(t="\f",Jr++):(t=o,0===Kr&&un(Re)),t===o&&(32===e.charCodeAt(Jr)?(t=" ",Jr++):(t=o,0===Kr&&un(Te)),t===o&&(160===e.charCodeAt(Jr)?(t=" ",Jr++):(t=o,0===Kr&&un(ke)),t===o&&(65279===e.charCodeAt(Jr)?(t="\ufeff",Jr++):(t=o,0===Kr&&un(xe)),t===o&&(t=function(){var t;return Ae.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(St)),t}())))))),Kr--,t===o&&0===Kr&&un(De),t}function pn(){var t;return re.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Se)),t}function dn(){var t;return Kr++,10===e.charCodeAt(Jr)?(t="\n",Jr++):(t=o,0===Kr&&un(_e)),t===o&&("\r\n"===e.substr(Jr,2)?(t="\r\n",Jr+=2):(t=o,0===Kr&&un(Be)),t===o&&(13===e.charCodeAt(Jr)?(t="\r",Jr++):(t=o,0===Kr&&un(Ne)),t===o&&(8232===e.charCodeAt(Jr)?(t="\u2028",Jr++):(t=o,0===Kr&&un(Me)),t===o&&(8233===e.charCodeAt(Jr)?(t="\u2029",Jr++):(t=o,0===Kr&&un(je)))))),Kr--,t===o&&0===Kr&&un(Ie),t}function hn(){var t;return Kr++,(t=function(){var t,r,n,i,a,s;if(t=Jr,"/*"===e.substr(Jr,2)?(r="/*",Jr+=2):(r=o,0===Kr&&un(Ue)),r!==o){for(n=[],i=Jr,a=Jr,Kr++,e.substr(Jr,2)===u?(s=u,Jr+=2):(s=o,0===Kr&&un(Ve)),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);i!==o;)n.push(i),i=Jr,a=Jr,Kr++,e.substr(Jr,2)===u?(s=u,Jr+=2):(s=o,0===Kr&&un(Ve)),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);e.substr(Jr,2)===u?(i=u,Jr+=2):(i=o,0===Kr&&un(Ve)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)}else Jr=t,t=o;return t}())===o&&(t=function(){var t,r,n,i,a,s;if(t=Jr,e.substr(Jr,2)===c?(r=c,Jr+=2):(r=o,0===Kr&&un(Qe)),r!==o){for(n=[],i=Jr,a=Jr,Kr++,s=pn(),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);i!==o;)n.push(i),i=Jr,a=Jr,Kr++,s=pn(),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);t=r=[r,n]}else Jr=t,t=o;return t}()),Kr--,t===o&&0===Kr&&un(Le),t}function mn(){var t,r,n;return t=Jr,r=Jr,Kr++,n=function(){var t;return(t=function(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===A?(r=A,Jr+=4):(r=o,0===Kr&&un(Nt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:null}),r}())===o&&(t=vn()),t}(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(n=function(){var e,t,r,n;if(Kr++,e=Jr,(t=yn())!==o){for(r=[],n=gn();n!==o;)r.push(n),n=gn();Wr=e,e={$class:"concerto.metamodel.TypeIdentifier",name:t+r.join("")}}else Jr=e,e=o;return Kr--,e===o&&(t=o,0===Kr&&un(ze)),e}(),n!==o?(Wr=t,t=n):(Jr=t,t=o)):(Jr=t,t=o),t}function yn(){var t,r,n;return(t=function(){var t;return(t=function(){var t;return he.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ot)),t}())===o&&(t=function(){var t;return le.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ct)),t}())===o&&(t=function(){var t;return de.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Dt)),t}())===o&&(t=function(){var t;return fe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ft)),t}())===o&&(t=function(){var t;return pe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un($t)),t}())===o&&(t=function(){var t;return ve.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(kt)),t}()),t}())===o&&(36===e.charCodeAt(Jr)?(t="$",Jr++):(t=o,0===Kr&&un(He)),t===o&&(95===e.charCodeAt(Jr)?(t="_",Jr++):(t=o,0===Kr&&un(qe)),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=kn())!==o?(Wr=t,t=n):(Jr=t,t=o)))),t}function gn(){var t;return(t=yn())===o&&(t=function(){var t;return(t=function(){var t;return ye.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Rt)),t}())===o&&(t=function(){var t;return me.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Pt)),t}()),t}())===o&&(t=function(){var t;return ge.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Tt)),t}())===o&&(t=function(){var t;return be.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(xt)),t}())===o&&(8204===e.charCodeAt(Jr)?(t="‌",Jr++):(t=o,0===Kr&&un(Je)),t===o&&(8205===e.charCodeAt(Jr)?(t="‍",Jr++):(t=o,0===Kr&&un(We)))),t}function vn(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===E?(r=E,Jr+=4):(r=o,0===Kr&&un(Mt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:!0}),(t=r)===o&&(t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===v?(r=v,Jr+=5):(r=o,0===Kr&&un(_t)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:!1}),t=r),t}function bn(){var t,r,n,i,a;if(t=Jr,ne.test(e.charAt(Jr))?(r=e.charAt(Jr),Jr++):(r=o,0===Kr&&un(Ze)),r===o&&(r=null),An()!==o)if(46===e.charCodeAt(Jr)?(n=f,Jr++):(n=o,0===Kr&&un(Xe)),n!==o){for(i=[],a=En();a!==o;)i.push(a),a=En();(a=wn())===o&&(a=null),Wr=t,t=zr()}else Jr=t,t=o;else Jr=t,t=o;return t}function An(){var t,r,n,i;if(48===e.charCodeAt(Jr)?(t="0",Jr++):(t=o,0===Kr&&un(Ke)),t===o)if(t=Jr,r=function(){var t;return ie.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(tt)),t}(),r!==o){for(n=[],i=En();i!==o;)n.push(i),i=En();t=r=[r,n]}else Jr=t,t=o;return t}function En(){var t;return oe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(et)),t}function wn(){var t,r,n;return t=Jr,r=function(){var t;return"e"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(rt)),t}(),r!==o&&(n=Cn())!==o?t=r=[r,n]:(Jr=t,t=o),t}function Cn(){var t,r,n,i;if(t=Jr,ne.test(e.charAt(Jr))?(r=e.charAt(Jr),Jr++):(r=o,0===Kr&&un(Ze)),r===o&&(r=null),n=[],(i=En())!==o)for(;i!==o;)n.push(i),i=En();else n=o;return n!==o?t=r=[r,n]:(Jr=t,t=o),t}function Fn(){var t;return ae.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(ot)),t}function $n(){var t,r,n,i;if(Kr++,t=Jr,34===e.charCodeAt(Jr)?(r=p,Jr++):(r=o,0===Kr&&un(at)),r!==o){for(n=[],i=Dn();i!==o;)n.push(i),i=Dn();34===e.charCodeAt(Jr)?(i=p,Jr++):(i=o,0===Kr&&un(at)),i!==o?(Wr=t,t=Hr(n)):(Jr=t,t=o)}else Jr=t,t=o;if(t===o)if(t=Jr,39===e.charCodeAt(Jr)?(r=d,Jr++):(r=o,0===Kr&&un(st)),r!==o){for(n=[],i=On();i!==o;)n.push(i),i=On();39===e.charCodeAt(Jr)?(i=d,Jr++):(i=o,0===Kr&&un(st)),i!==o?(Wr=t,t=Hr(n)):(Jr=t,t=o)}else Jr=t,t=o;return Kr--,t===o&&(r=o,0===Kr&&un(it)),t}function Dn(){var t,r,n;return t=Jr,r=Jr,Kr++,34===e.charCodeAt(Jr)?(n=p,Jr++):(n=o,0===Kr&&un(at)),n===o&&(92===e.charCodeAt(Jr)?(n=l,Jr++):(n=o,0===Kr&&un(Ge)),n===o&&(n=pn())),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=Rn())!==o?(Wr=t,t=n):(Jr=t,t=o),t===o&&(t=Pn())),t}function On(){var t,r,n;return t=Jr,r=Jr,Kr++,39===e.charCodeAt(Jr)?(n=d,Jr++):(n=o,0===Kr&&un(st)),n===o&&(92===e.charCodeAt(Jr)?(n=l,Jr++):(n=o,0===Kr&&un(Ge)),n===o&&(n=pn())),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=Rn())!==o?(Wr=t,t=n):(Jr=t,t=o),t===o&&(t=Pn())),t}function Pn(){var t,r;return t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&dn()!==o?(Wr=t,t=""):(Jr=t,t=o),t}function Rn(){var t,r,n,i;return t=function(){var t;return(t=Tn())===o&&(t=function(){var t,r,n;return t=Jr,r=Jr,Kr++,n=function(){var t;return(t=Tn())===o&&(t=En())===o&&(120===e.charCodeAt(Jr)?(t="x",Jr++):(t=o,0===Kr&&un(ht)),t===o&&(117===e.charCodeAt(Jr)?(t="u",Jr++):(t=o,0===Kr&&un(mt)))),t}(),n===o&&(n=pn()),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t}()),t}(),t===o&&(t=Jr,48===e.charCodeAt(Jr)?(r="0",Jr++):(r=o,0===Kr&&un(Ke)),r!==o?(n=Jr,Kr++,i=En(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="\0"):(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=function(){var t,r,n,i,a,s;return t=Jr,120===e.charCodeAt(Jr)?(r="x",Jr++):(r=o,0===Kr&&un(ht)),r!==o?(n=Jr,i=Jr,(a=Fn())!==o&&(s=Fn())!==o?i=a=[a,s]:(Jr=i,i=o),(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=Gr(n)):(Jr=t,t=o)):(Jr=t,t=o),t}(),t===o&&(t=kn()))),t}function Tn(){var t,r;return 39===e.charCodeAt(Jr)?(t=d,Jr++):(t=o,0===Kr&&un(st)),t===o&&(34===e.charCodeAt(Jr)?(t=p,Jr++):(t=o,0===Kr&&un(at)),t===o&&(92===e.charCodeAt(Jr)?(t=l,Jr++):(t=o,0===Kr&&un(Ge)),t===o&&(t=Jr,98===e.charCodeAt(Jr)?(r="b",Jr++):(r=o,0===Kr&&un(ut)),r!==o&&(Wr=t,r="\b"),(t=r)===o&&(t=Jr,102===e.charCodeAt(Jr)?(r="f",Jr++):(r=o,0===Kr&&un(ct)),r!==o&&(Wr=t,r="\f"),(t=r)===o&&(t=Jr,110===e.charCodeAt(Jr)?(r="n",Jr++):(r=o,0===Kr&&un(lt)),r!==o&&(Wr=t,r="\n"),(t=r)===o&&(t=Jr,114===e.charCodeAt(Jr)?(r="r",Jr++):(r=o,0===Kr&&un(ft)),r!==o&&(Wr=t,r="\r"),(t=r)===o&&(t=Jr,116===e.charCodeAt(Jr)?(r="t",Jr++):(r=o,0===Kr&&un(pt)),r!==o&&(Wr=t,r="\t"),(t=r)===o&&(t=Jr,118===e.charCodeAt(Jr)?(r="v",Jr++):(r=o,0===Kr&&un(dt)),r!==o&&(Wr=t,r="\v"),t=r)))))))),t}function kn(){var t,r,n,i,a,s,u,c;return t=Jr,117===e.charCodeAt(Jr)?(r="u",Jr++):(r=o,0===Kr&&un(mt)),r!==o?(n=Jr,i=Jr,(a=Fn())!==o&&(s=Fn())!==o&&(u=Fn())!==o&&(c=Fn())!==o?i=a=[a,s,u,c]:(Jr=i,i=o),(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=Gr(n)):(Jr=t,t=o)):(Jr=t,t=o),t}function xn(){var t,r,n;return t=Jr,r=Jr,Kr++,ue.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(bt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn())===o&&(t=_n()),t}function Sn(){var t,r,n;return t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t}function In(){var e,t,r;return e=Jr,t=Jr,Kr++,r=pn(),Kr--,r===o?t=void 0:(Jr=t,t=o),t!==o&&(r=ln())!==o?e=t=[t,r]:(Jr=e,e=o),e}function _n(){var t,r,n,i;if(t=Jr,91===e.charCodeAt(Jr)?(r=m,Jr++):(r=o,0===Kr&&un(At)),r!==o){for(n=[],i=Bn();i!==o;)n.push(i),i=Bn();93===e.charCodeAt(Jr)?(i=y,Jr++):(i=o,0===Kr&&un(Et)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)}else Jr=t,t=o;return t}function Bn(){var t,r,n;return t=Jr,r=Jr,Kr++,ce.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(wt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn()),t}function Nn(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===b?(r=b,Jr+=6):(r=o,0===Kr&&un(Bt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function Mn(){var e,t;for(e=[],(t=fn())===o&&(t=dn())===o&&(t=hn());t!==o;)e.push(t),(t=fn())===o&&(t=dn())===o&&(t=hn());return e}function jn(){var t;return Ee.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ut)),t===o&&(we.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Vt))),t}function Ln(){var t;return oe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(et)),t}function Un(){var t;return(t=Ln())===o&&("a"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(zt)),t===o&&("b"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ht)),t===o&&("c"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(qt)),t===o&&("d"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Gt)),t===o&&("e"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Jt)),t===o&&("f"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Wt)))))))),t}function Vn(){var t,r,n,i,a;return t=Jr,r=Jr,37===e.charCodeAt(Jr)?(n="%",Jr++):(n=o,0===Kr&&un(Yt)),n!==o&&(i=Un())!==o&&(a=Un())!==o?r=n=[n,i,a]:(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Qn(){var t;return 33===e.charCodeAt(Jr)?(t="!",Jr++):(t=o,0===Kr&&un(tr)),t===o&&(36===e.charCodeAt(Jr)?(t="$",Jr++):(t=o,0===Kr&&un(He)),t===o&&(38===e.charCodeAt(Jr)?(t="&",Jr++):(t=o,0===Kr&&un(rr)),t===o&&(39===e.charCodeAt(Jr)?(t=d,Jr++):(t=o,0===Kr&&un(st)),t===o&&(40===e.charCodeAt(Jr)?(t="(",Jr++):(t=o,0===Kr&&un(nr)),t===o&&(41===e.charCodeAt(Jr)?(t=")",Jr++):(t=o,0===Kr&&un(or)),t===o&&(42===e.charCodeAt(Jr)?(t="*",Jr++):(t=o,0===Kr&&un(ir)),t===o&&(43===e.charCodeAt(Jr)?(t="+",Jr++):(t=o,0===Kr&&un(ar)),t===o&&(44===e.charCodeAt(Jr)?(t=D,Jr++):(t=o,0===Kr&&un(sr)),t===o&&(59===e.charCodeAt(Jr)?(t=";",Jr++):(t=o,0===Kr&&un(jt)),t===o&&(61===e.charCodeAt(Jr)?(t=O,Jr++):(t=o,0===Kr&&un(ur)))))))))))),t}function zn(){var t;return(t=jn())===o&&(t=Ln())===o&&(45===e.charCodeAt(Jr)?(t=P,Jr++):(t=o,0===Kr&&un(cr)),t===o&&(46===e.charCodeAt(Jr)?(t=f,Jr++):(t=o,0===Kr&&un(Xe)),t===o&&(95===e.charCodeAt(Jr)?(t="_",Jr++):(t=o,0===Kr&&un(qe)),t===o&&(126===e.charCodeAt(Jr)?(t="~",Jr++):(t=o,0===Kr&&un(lr)))))),t}function Hn(){var t,r,n,i,a,s,u;return t=Jr,(r=function(){var t,r,n,i,a;if(t=Jr,r=Jr,(n=jn())!==o){for(i=[],(a=jn())===o&&(a=Ln())===o&&(43===e.charCodeAt(Jr)?(a="+",Jr++):(a=o,0===Kr&&un(ar)),a===o&&(45===e.charCodeAt(Jr)?(a=P,Jr++):(a=o,0===Kr&&un(cr)),a===o&&(46===e.charCodeAt(Jr)?(a=f,Jr++):(a=o,0===Kr&&un(Xe)))));a!==o;)i.push(a),(a=jn())===o&&(a=Ln())===o&&(43===e.charCodeAt(Jr)?(a="+",Jr++):(a=o,0===Kr&&un(ar)),a===o&&(45===e.charCodeAt(Jr)?(a=P,Jr++):(a=o,0===Kr&&un(cr)),a===o&&(46===e.charCodeAt(Jr)?(a=f,Jr++):(a=o,0===Kr&&un(Xe)))));r=n=[n,i]}else Jr=r,r=o;return r!==o?e.substring(t,Jr):r}())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o&&(i=function(){var t,r,n;return t=Jr,e.substr(Jr,2)===c?(r=c,Jr+=2):(r=o,0===Kr&&un(Qe)),r!==o&&(n=function(){var t,r,n,i,a,s;return t=Jr,r=Jr,n=function(){var t,r,n;for(t=Jr,r=[],(n=zn())===o&&(n=Vn())===o&&(n=Qn())===o&&(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)));n!==o;)r.push(n),(n=zn())===o&&(n=Vn())===o&&(n=Qn())===o&&(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)));return e.substring(t,Jr)}(),64===e.charCodeAt(Jr)?(i=$,Jr++):(i=o,0===Kr&&un(er)),i!==o?r=n=[n,i]:(Jr=r,r=o),r===o&&(r=null),n=function(){var t,r,n,i;return t=Jr,r=function(){var t,r,n,i;return t=Jr,91===e.charCodeAt(Jr)?(r=m,Jr++):(r=o,0===Kr&&un(At)),r!==o?(n=function(){var t,r,n,i,a,s,u,c,l,f,p,d,h,m;return t=Jr,r=Jr,(n=Gn())!==o&&(i=Gn())!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,e.substr(Jr,2)===R?(n=R,Jr+=2):(n=o,0===Kr&&un(fr)),n!==o&&(i=Gn())!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,(n=Jn())===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,(i=Gn())===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=qn())!==o?r=n=[n,i,a,s,u,c]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?((s=Gn())===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=qn())!==o?r=n=[n,i,a,s,u]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?((c=Gn())===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=qn())!==o?r=n=[n,i,a,s]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?((f=Gn())===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=qn())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?(f=Jr,(p=Gn())!==o?((d=Gn())===o&&(d=null),f=p=[p,d]):(Jr=f,f=o),f===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Jn())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?(f=Jr,(p=Gn())!==o?(d=Jr,(h=Gn())!==o?((m=Gn())===o&&(m=null),d=h=[h,m]):(Jr=d,d=o),d===o&&(d=null),f=p=[p,d]):(Jr=f,f=o),f===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o?r=n=[n,i]:(Jr=r,r=o))))))))),t=r!==o?e.substring(t,Jr):r}(),n===o&&(n=function(){var t,r,n,i,a,s,u;if(t=Jr,118===e.charCodeAt(Jr)?(r="v",Jr++):(r=o,0===Kr&&un(dt)),r!==o){if(n=Jr,i=[],(a=Un())!==o)for(;a!==o;)i.push(a),a=Un();else i=o;if((n=i!==o?e.substring(n,Jr):i)!==o)if(46===e.charCodeAt(Jr)?(i=f,Jr++):(i=o,0===Kr&&un(Xe)),i!==o){if(a=Jr,s=[],(u=zn())===o&&(58===e.charCodeAt(Jr)?(u=C,Jr++):(u=o,0===Kr&&un(Xt))),u!==o)for(;u!==o;)s.push(u),(u=zn())===o&&(58===e.charCodeAt(Jr)?(u=C,Jr++):(u=o,0===Kr&&un(Xt)));else s=o;(a=s!==o?e.substring(a,Jr):s)!==o?t=r=[r,n,i,a]:(Jr=t,t=o)}else Jr=t,t=o;else Jr=t,t=o}else Jr=t,t=o;return t}()),n!==o?(93===e.charCodeAt(Jr)?(i=y,Jr++):(i=o,0===Kr&&un(Et)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(n=Jr,Kr++,i=Xn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Jr,(r=Wn())!==o?(n=Jr,Kr++,i=Xn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=function(){var t,r,n;for(t=Jr,r=[],n=Xn();n!==o;)r.push(n),n=Xn();return e.substring(t,Jr)}())),t}(),n!==o?(i=Jr,58===e.charCodeAt(Jr)?(a=C,Jr++):(a=o,0===Kr&&un(Xt)),a!==o?(s=function(){var t,r,n;for(t=Jr,r=[],n=Ln();n!==o;)r.push(n),n=Ln();return e.substring(t,Jr)}(),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),t=r=[r,n,i]):(Jr=t,t=o),t}())!==o?t=r=[r,n,Zn()]:(Jr=t,t=o),t===o&&(t=function(){var t,r,n,i,a,s,u,c;if(t=Jr,r=Jr,47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n!==o){if(i=Jr,(a=eo())!==o){for(s=[],u=Jr,47===e.charCodeAt(Jr)?(c=h,Jr++):(c=o,0===Kr&&un(gt)),c!==o?u=c=[c,Kn()]:(Jr=u,u=o);u!==o;)s.push(u),u=Jr,47===e.charCodeAt(Jr)?(c=h,Jr++):(c=o,0===Kr&&un(gt)),c!==o?u=c=[c,Kn()]:(Jr=u,u=o);i=a=[a,s]}else Jr=i,i=o;i===o&&(i=null),r=n=[n,i]}else Jr=r,r=o;return r!==o?e.substring(t,Jr):r}())===o&&(t=function(){var t,r,n,i,a,s;if(t=Jr,r=Jr,(n=eo())!==o){for(i=[],a=Jr,47===e.charCodeAt(Jr)?(s=h,Jr++):(s=o,0===Kr&&un(gt)),s!==o?a=s=[s,Kn()]:(Jr=a,a=o);a!==o;)i.push(a),a=Jr,47===e.charCodeAt(Jr)?(s=h,Jr++):(s=o,0===Kr&&un(gt)),s!==o?a=s=[s,Kn()]:(Jr=a,a=o);r=n=[n,i]}else Jr=r,r=o;return t=r!==o?e.substring(t,Jr):r}(),t===o&&(t="")),t}())!==o?(a=Jr,63===e.charCodeAt(Jr)?(s=F,Jr++):(s=o,0===Kr&&un(Zt)),s!==o?a=s=[s,u=ro()]:(Jr=a,a=o),a===o&&(a=null),s=Jr,35===e.charCodeAt(Jr)?(u="#",Jr++):(u=o,0===Kr&&un(Kt)),u!==o?s=u=[u,no()]:(Jr=s,s=o),s===o&&(s=null),t=r=[r,n,i,a,s]):(Jr=t,t=o)):(Jr=t,t=o),t}function qn(){var t,r,n,i;return t=Jr,(r=Jn())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o&&(i=Jn())!==o?t=r=[r,n,i]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Wn()),t}function Gn(){var t,r,n;return t=Jr,(r=Jn())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function Jn(){var t,r,n,i,a,s,u,c;return t=Jr,r=Jr,(n=Un())!==o?(i=Jr,(a=Un())!==o?(s=Jr,(u=Un())!==o?((c=Un())===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),r=n=[n,i]):(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Wn(){var t,r,n,i,a,s,u,c,l;return t=Jr,r=Jr,(n=Yn())!==o?(46===e.charCodeAt(Jr)?(i=f,Jr++):(i=o,0===Kr&&un(Xe)),i!==o&&(a=Yn())!==o?(46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=Yn())!==o?(46===e.charCodeAt(Jr)?(c=f,Jr++):(c=o,0===Kr&&un(Xe)),c!==o&&(l=Yn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o)):(Jr=r,r=o)):(Jr=r,r=o)):(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Yn(){var t,r,n,i,a;return t=Jr,r=Jr,"25"===e.substr(Jr,2)?(n="25",Jr+=2):(n=o,0===Kr&&un(pr)),n!==o?(Ce.test(e.charAt(Jr))?(i=e.charAt(Jr),Jr++):(i=o,0===Kr&&un(dr)),i!==o?r=n=[n,i]:(Jr=r,r=o)):(Jr=r,r=o),r===o&&(r=Jr,50===e.charCodeAt(Jr)?(n="2",Jr++):(n=o,0===Kr&&un(hr)),n!==o?(Fe.test(e.charAt(Jr))?(i=e.charAt(Jr),Jr++):(i=o,0===Kr&&un(mr)),i!==o&&(a=Ln())!==o?r=n=[n,i,a]:(Jr=r,r=o)):(Jr=r,r=o),r===o&&(r=Jr,49===e.charCodeAt(Jr)?(n="1",Jr++):(n=o,0===Kr&&un(Qt)),n!==o&&(i=Ln())!==o&&(a=Ln())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,ie.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(tt)),n!==o&&(i=Ln())!==o?r=n=[n,i]:(Jr=r,r=o),r===o&&(r=Ln())))),r!==o?e.substring(t,Jr):r}function Xn(){var e;return(e=zn())===o&&(e=Vn()),e}function Zn(){var t,r,n,i;for(t=Jr,r=[],n=Jr,47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?n=i=[i,Kn()]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?n=i=[i,Kn()]:(Jr=n,n=o);return e.substring(t,Jr)}function Kn(){var t,r,n;for(t=Jr,r=[],n=to();n!==o;)r.push(n),n=to();return e.substring(t,Jr)}function eo(){var t,r,n;if(t=Jr,r=[],(n=to())!==o)for(;n!==o;)r.push(n),n=to();else r=o;return r!==o?e.substring(t,Jr):r}function to(){var t;return(t=zn())===o&&(t=Vn())===o&&(t=Qn())===o&&(58===e.charCodeAt(Jr)?(t=C,Jr++):(t=o,0===Kr&&un(Xt)),t===o&&(64===e.charCodeAt(Jr)?(t=$,Jr++):(t=o,0===Kr&&un(er)))),t}function ro(){var t,r,n;for(t=Jr,r=[],(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));n!==o;)r.push(n),(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));return e.substring(t,Jr)}function no(){var t,r,n;for(t=Jr,r=[],(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));n!==o;)r.push(n),(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));return e.substring(t,Jr)}function oo(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===S?(r=S,Jr+=8):(r=o,0===Kr&&un(br)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function io(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===j?(r=j,Jr+=4):(r=o,0===Kr&&un($r)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function ao(){var t,r,n,i;return t=Jr,".*"===e.substr(Jr,2)?(r=".*",Jr+=2):(r=o,0===Kr&&un(Dr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function so(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===L?(r=L,Jr+=7):(r=o,0===Kr&&un(Or)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Integer"):(Jr=t,t=o)):(Jr=t,t=o),t}function uo(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===U?(r=U,Jr+=6):(r=o,0===Kr&&un(Pr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Double"):(Jr=t,t=o)):(Jr=t,t=o),t}function co(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===V?(r=V,Jr+=4):(r=o,0===Kr&&un(Rr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Long"):(Jr=t,t=o)):(Jr=t,t=o),t}function lo(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===Q?(r=Q,Jr+=6):(r=o,0===Kr&&un(Tr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="String"):(Jr=t,t=o)):(Jr=t,t=o),t}function fo(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===z?(r=z,Jr+=8):(r=o,0===Kr&&un(kr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="DateTime"):(Jr=t,t=o)):(Jr=t,t=o),t}function po(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===H?(r=H,Jr+=7):(r=o,0===Kr&&un(xr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Boolean"):(Jr=t,t=o)):(Jr=t,t=o),t}function ho(){var t;return(t=function(){var t,r,n;return t=Jr,e.substr(Jr,13)===q?(r=q,Jr+=13):(r=o,0===Kr&&un(Sr)),r!==o?(Mn(),(n=mn())!==o?(Wr=t,t={$class:"concerto.metamodel.IdentifiedBy",name:n.name}):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r;return t=Jr,e.substr(Jr,10)===G?(r=G,Jr+=10):(r=o,0===Kr&&un(Ir)),r!==o&&(Wr=t,r={$class:"concerto.metamodel.Identified"}),r}()),t}function mo(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,r=Jr,45===e.charCodeAt(Jr)?(n=P,Jr++):(n=o,0===Kr&&un(cr)),n===o&&(n=null),r=e.substring(r,Jr),n=Jr,(n=(i=function(){var t,r,n,i;return Kr++,t=Jr,r=function(){var t,r,n,i,a;if(t=Jr,"0x"===e.substr(Jr,2).toLowerCase()?(r=e.substr(Jr,2),Jr+=2):(r=o,0===Kr&&un(nt)),r!==o){if(n=Jr,i=[],(a=Fn())!==o)for(;a!==o;)i.push(a),a=Fn();else i=o;(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t={type:"Literal",value:parseInt(n,16)}):(Jr=t,t=o)}else Jr=t,t=o;return t}(),r!==o?(n=Jr,Kr++,(i=yn())===o&&(i=En()),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t=r):(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Jr,r=function(){var t,r,n,i,a;if(t=Jr,(r=An())!==o)if(46===e.charCodeAt(Jr)?(n=f,Jr++):(n=o,0===Kr&&un(Xe)),n!==o){for(i=[],a=En();a!==o;)i.push(a),a=En();(a=wn())===o&&(a=null),Wr=t,t=zr()}else Jr=t,t=o;else Jr=t,t=o;if(t===o){if(t=Jr,46===e.charCodeAt(Jr)?(r=f,Jr++):(r=o,0===Kr&&un(Xe)),r!==o){if(n=[],(i=En())!==o)for(;i!==o;)n.push(i),i=En();else n=o;n!==o?((i=wn())===o&&(i=null),Wr=t,t=zr()):(Jr=t,t=o)}else Jr=t,t=o;t===o&&(t=Jr,(r=An())!==o?((n=wn())===o&&(n=null),Wr=t,t=zr()):(Jr=t,t=o))}return t}(),r!==o?(n=Jr,Kr++,(i=yn())===o&&(i=En()),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t=r):(Jr=t,t=o)):(Jr=t,t=o)),Kr--,t===o&&(r=o,0===Kr&&un(Ye)),t}())!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=r+n):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={$class:"concerto.metamodel.DecoratorNumber",value:+r,location:xo(tn())}),r}function yo(){var t;return(t=function(){var e,t;return e=Jr,(t=$n())!==o&&(Wr=e,t={$class:"concerto.metamodel.DecoratorString",value:t.value,location:xo(tn())}),t}())===o&&(t=function(){var t,r,n;return t=Jr,r=Jr,(r=(n=vn())!==o?e.substring(r,Jr):n)!==o&&(Wr=t,r={$class:"concerto.metamodel.DecoratorBoolean",value:"true"==r,location:xo(tn())}),r}())===o&&(t=mo())===o&&(t=function(){var t,r,n;return t=Jr,(r=mn())!==o?(Mn(),e.substr(Jr,2)===J?(n=J,Jr+=2):(n=o,0===Kr&&un(_r)),n===o&&(n=null),Wr=t,t={$class:"concerto.metamodel.DecoratorTypeReference",type:r,isArray:!!n,location:xo(tn())}):(Jr=t,t=o),t}()),t}function go(){var t,r,n,i;return t=Jr,64===e.charCodeAt(Jr)?(r=$,Jr++):(r=o,0===Kr&&un(er)),r!==o?(n=Jr,(n=(i=mn())!==o?e.substring(n,Jr):i)!==o?(i=function(){var t,r,n,i,a,s,u,c;if(t=Jr,40===e.charCodeAt(Jr)?(r="(",Jr++):(r=o,0===Kr&&un(nr)),r!==o){for(Mn(),n=[],i=Jr,(a=yo())!==o?(s=Mn(),44===e.charCodeAt(Jr)?(u=D,Jr++):(u=o,0===Kr&&un(sr)),u!==o?(Mn(),Wr=i,i=a):(Jr=i,i=o)):(Jr=i,i=o);i!==o;)n.push(i),i=Jr,(a=yo())!==o?(s=Mn(),44===e.charCodeAt(Jr)?(u=D,Jr++):(u=o,0===Kr&&un(sr)),u!==o?(Mn(),Wr=i,i=a):(Jr=i,i=o)):(Jr=i,i=o);(i=yo())===o&&(i=null),a=Mn(),41===e.charCodeAt(Jr)?(s=")",Jr++):(s=o,0===Kr&&un(or)),s!==o?(Wr=t,t=(c=i)?n.concat(c):[]):(Jr=t,t=o)}else Jr=t,t=o;return t}(),i===o&&(i=null),Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.Decorator",name:e,location:xo(tn())};return t&&(r.arguments=t),r}(n,i)):(Jr=t,t=o)):(Jr=t,t=o),t}function vo(){var e,t,r;for(e=[],t=Jr,(r=go())!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o);t!==o;)e.push(t),t=Jr,(r=go())!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o);return e}function bo(){var t,r,n;return t=Jr,e.substr(Jr,7)===W?(r=W,Jr+=7):(r=o,0===Kr&&un(Br)),r!==o?(Mn(),(n=mn())!==o?(Wr=t,t={$class:"concerto.metamodel.TypeIdentifier",name:n.name}):(Jr=t,t=o)):(Jr=t,t=o),t}function Ao(){var t,r;return t=Jr,e.substr(Jr,8)===X?(r=X,Jr+=8):(r=o,0===Kr&&un(Mr)),r!==o&&(Wr=t,r={type:"Optional"}),r}function Eo(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),(i=$n())!==o?(Wr=t,t=i.value):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}function wo(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=Cn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}function Co(){var t;return(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),lo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=Eo())===o&&(s=null),Mn(),u=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===ee?(r=ee,Jr+=5):(r=o,0===Kr&&un(Ur)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),(i=function(){var t,r,n,i,a;return Kr++,t=Jr,47===e.charCodeAt(Jr)?(r=h,Jr++):(r=o,0===Kr&&un(gt)),r!==o?(n=Jr,i=function(){var t,r,n,i;if(t=Jr,r=function(){var t,r,n;return t=Jr,r=Jr,Kr++,se.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(vt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn())===o&&(t=_n()),t}(),r!==o){for(n=[],i=xn();i!==o;)n.push(i),i=xn();t=r=[r,n]}else Jr=t,t=o;return t}(),(n=i!==o?e.substring(n,Jr):i)!==o?(47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?(a=Jr,function(){var e,t;for(e=[],t=gn();t!==o;)e.push(t),t=gn()}(),a=e.substring(a,Jr),Wr=t,t={$class:"concerto.metamodel.StringRegexValidator",pattern:n,flags:a}):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),Kr--,t===o&&(r=o,0===Kr&&un(yt)),t}())!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.StringProperty",name:r.name,isArray:ko(t),isOptional:ko(i),location:xo(tn())};return n&&(a.defaultValue=n),e.length>0&&(a.decorators=e),o&&(a.validator=o),a}(r,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&((t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),uo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),s=function(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=bn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),s===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,bn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,bn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.DoubleDomainValidator"};return e&&(r.lower=parseFloat(e)),t&&(r.upper=parseFloat(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.DoubleProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseFloat(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),po()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),s=function(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=vn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),s===o&&(s=null),Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.BooleanProperty",name:r.name,isArray:ko(t),isOptional:ko(o),location:xo(tn())};return n&&(i.defaultValue="true"===n),e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),fo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=Eo())===o&&(s=null),Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.DateTimeProperty",name:r.name,isArray:ko(t),isOptional:ko(o),location:xo(tn())};return n&&(i.defaultValue=n),e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),"--\x3e"===e.substr(Jr,3)?(n="--\x3e",Jr+=3):(n=o,0===Kr&&un(Qr)),n!==o?(Mn(),(i=mn())!==o?(Mn(),e.substr(Jr,2)===J?(a=J,Jr+=2):(a=o,0===Kr&&un(_r)),a===o&&(a=null),Mn(),(s=mn())!==o?(Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.RelationshipProperty",name:n.name,type:t,isArray:ko(r),isOptional:ko(o),location:xo(tn())};return e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),i=function(){var e,t,r,n,i;return e=Jr,t=Jr,Kr++,r=function(){var e;return(e=lo())===o&&(e=function(){var e;return(e=so())===o&&(e=uo())===o&&(e=co()),e}())===o&&(e=fo())===o&&(e=po()),e}(),Kr--,r===o?t=void 0:(Jr=t,t=o),t!==o&&(r=mn())!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=e,e={$class:"concerto.metamodel.TypeIdentifier",name:r.name}):(Jr=e,e=o)):(Jr=e,e=o),e}(),i!==o?(Mn(),e.substr(Jr,2)===J?(a=J,Jr+=2):(a=o,0===Kr&&un(_r)),a===o&&(a=null),Mn(),(s=mn())!==o?(Mn(),(u=Eo())===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ObjectProperty",name:n.name,type:t,isArray:ko(r),isOptional:ko(i),location:xo(tn())};return o&&(a.defaultValue=o),e.length>0&&(a.decorators=e),a}(r,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&((t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),so()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=wo())===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,Cn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,Cn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.IntegerDomainValidator"};return e&&(r.lower=parseInt(e)),t&&(r.upper=parseInt(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.IntegerProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseInt(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),co()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=wo())===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,Cn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,Cn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.LongDomainValidator"};return e&&(r.lower=parseInt(e)),t&&(r.upper=parseInt(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.LongProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseInt(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}()))),t}function Fo(){var e,t,r;for(e=Jr,t=[],r=Co();r!==o;)t.push(r),r=Co();return Wr=e,{type:"ClassDeclarationBody",declarations:To(t),location:xo(tn())}}function $o(){var t,r,n,i;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),(i=mn())!==o?(Mn(),Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.EnumProperty",name:t.name,location:xo(tn())};return e.length>0&&(r.decorators=e),r}(r,i)):(Jr=t,t=o)):(Jr=t,t=o),t}function Do(){var t,r,n,i,a,s,u,c;if(t=Jr,r=Jr,(r=(n=mn())!==o?e.substring(r,Jr):n)!==o){for(n=Jr,i=[],a=Jr,46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=mn())!==o?a=s=[s,u]:(Jr=a,a=o);a!==o;)i.push(a),a=Jr,46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=mn())!==o?a=s=[s,u]:(Jr=a,a=o);n=e.substring(n,Jr),Wr=t,c=n,t=r.concat(JSON.stringify(c).replace(/['"]+/g,""))}else Jr=t,t=o;return t}function Oo(){var t;return(t=function(){var t,r,n,i;return t=Jr,Nn()!==o?(Mn(),(r=Do())!==o&&ao()!==o?(Mn(),io()!==o?(Mn(),n=Jr,(n=(i=Hn())!==o?e.substring(n,Jr):i)!==o?(i=Mn(),Wr=t,t={$class:"concerto.metamodel.ImportAll",namespace:r,uri:n}):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s;return t=Jr,Nn()!==o?(Mn(),(r=Do())!==o?(n=Jr,Kr++,i=ao(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(i=Mn(),io()!==o?(Mn(),a=Jr,(a=(s=Hn())!==o?e.substring(a,Jr):s)!==o?(s=Mn(),Wr=t,t=function(e,t){const{namespace:r,name:n}=So(e);return{$class:"concerto.metamodel.ImportType",name:n,namespace:r,uri:t}}(r,a)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var e,t,r,n;return e=Jr,Nn()!==o?(Mn(),(t=Do())!==o&&ao()!==o?(Mn(),r=Jr,Kr++,n=io(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(Wr=e,e={$class:"concerto.metamodel.ImportAll",namespace:t}):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o),e}())===o&&(t=function(){var e,t,r,n,i,a;return e=Jr,Nn()!==o?(Mn(),(t=Do())!==o?(r=Jr,Kr++,n=ao(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(n=Mn(),i=Jr,Kr++,a=io(),Kr--,a===o?i=void 0:(Jr=i,i=o),i!==o?(Wr=e,e=function(e){const{namespace:t,name:r}=So(e);return{$class:"concerto.metamodel.ImportType",name:r,namespace:t}}(t)):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o),e}()),t}function Po(){var t;return(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===_?(r=_,Jr+=5):(r=o,0===Kr&&un(Er)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.AssetDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,11)===B?(r=B,Jr+=11):(r=o,0===Kr&&un(wr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.TransactionDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===N?(r=N,Jr+=5):(r=o,0===Kr&&un(Cr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.EventDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,11)===M?(r=M,Jr+=11):(r=o,0===Kr&&un(Fr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ParticipantDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),n=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===g?(r=g,Jr+=4):(r=o,0===Kr&&un(It)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(Mn(),(i=mn())!==o?(Mn(),123===e.charCodeAt(Jr)?(a=Y,Jr++):(a=o,0===Kr&&un(Nr)),a!==o?(Mn(),s=function(){var e,t,r;for(e=Jr,t=[],r=$o();r!==o;)t.push(r),r=$o();return Wr=e,{type:"EnumDeclarationBody",declarations:To(t)}}(),Mn(),125===e.charCodeAt(Jr)?(u=w,Jr++):(u=o,0===Kr&&un(Lt)),u!==o?(Wr=t,t=function(e,t,r){const n={$class:"concerto.metamodel.EnumDeclaration",name:t.name,properties:r.declarations,location:xo(tn())};return e.length>0&&(n.decorators=e),n}(r,i,s)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===I?(r=I,Jr+=7):(r=o,0===Kr&&un(Ar)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ConceptDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}()),t}function Ro(e,t,r){return[e].concat(function(e,t){var r,n=new Array(e.length);for(r=0;r<e.length;r++)n[r]=e[r][t];return n}(t,r))}function To(e){return null!==e?e:[]}function ko(e){return!!e}function xo(e){const t=e.start,r=e.end;t.$class="concerto.metamodel.Position",r.$class="concerto.metamodel.Position";const n={$class:"concerto.metamodel.Range",start:t,end:r};return e.source&&e.source[0]&&(n.source=e.source[0]),n}function So(e){const t=e.split(".");return{name:t.pop(),namespace:t.join(".")}}if((n=s())!==o&&Jr===e.length)return n;throw n!==o&&Jr<e.length&&un({type:"end"}),function(e,r,n){return new t(t.buildMessage(e,r),e,r,n)}(Zr,Xr<e.length?e.charAt(Xr):null,Xr<e.length?sn(Xr,Xr+1):sn(Xr,Xr))}}},9307:function(e,t,r){"use strict";const n=r(2255),o=r(7529);e.exports={parse:function(e,t){try{return n.parse(e)}catch(e){throw e.location&&e.location.start?new o(e.message,e.location,t):e}},parseModels:function(e){const t={$class:"concerto.metamodel.Models",models:[]};return e.forEach((e=>{let r=n.parse(e);t.models.push(r)})),t}}},5502:function(e){"use strict";function t(e){let t="";switch(e.$class){case"concerto.metamodel.DecoratorTypeReference":t+=`${e.type.name}${e.isArray?"[]":""}`;break;case"concerto.metamodel.DecoratorString":t+=`"${e.value}"`;break;default:t+=`${e.value}`}return t}function r(e){let r="";return r+=`@${e.name}`,e.arguments&&(r+="(",r+=e.arguments.map(t).join(","),r+=")"),r}function n(e,t){let n="";return n+=e.map(r).join(`\n${t}`),n+=`\n${t}`,n}e.exports={toCTO:function(e){let t="";return e.concertoVersion&&(t+=`concerto version "${e.concertoVersion}"`,t+="\n",t+="\n"),t+=`namespace ${e.namespace}`,e.imports&&e.imports.length>0&&(t+="\n",e.imports.forEach((e=>{let r="*";"concerto.metamodel.ImportType"===e.$class&&(r=e.name),t+=`\nimport ${e.namespace}.${r}`,e.uri&&(t+=` from ${e.uri}`)}))),e.declarations&&e.declarations.length>0&&e.declarations.forEach((e=>{t+=`\n\n${function(e){let t="";switch(e.decorators&&(t+=n(e.decorators,"")),e.isAbstract&&(t+="abstract "),e.$class){case"concerto.metamodel.AssetDeclaration":t+=`asset ${e.name} `;break;case"concerto.metamodel.ConceptDeclaration":t+=`concept ${e.name} `;break;case"concerto.metamodel.EventDeclaration":t+=`event ${e.name} `;break;case"concerto.metamodel.ParticipantDeclaration":t+=`participant ${e.name} `;break;case"concerto.metamodel.TransactionDeclaration":t+=`transaction ${e.name} `;break;case"concerto.metamodel.EnumDeclaration":t+=`enum ${e.name} `}return e.identified&&("concerto.metamodel.IdentifiedBy"===e.identified.$class?t+=`identified by ${e.identified.name} `:t+="identified "),e.superType&&(t+=`extends ${e.superType.name} `),t+="{",e.properties.forEach((e=>{t+=`\n ${function(e){let t="",r="",o="";switch(e.decorators&&(t+=n(e.decorators," ")),"concerto.metamodel.RelationshipProperty"===e.$class?t+="--\x3e":t+="o",e.$class){case"concerto.metamodel.EnumProperty":break;case"concerto.metamodel.BooleanProperty":t+=" Boolean",!0!==e.defaultValue&&!1!==e.defaultValue||(e.defaultValue?r+=" default=true":r+=" default=false");break;case"concerto.metamodel.DateTimeProperty":t+=" DateTime";break;case"concerto.metamodel.DoubleProperty":t+=" Double",e.defaultValue&&(r+=` default=${e.defaultValue.toFixed(Math.max(1,(e.defaultValue.toString().split(".")[1]||[]).length))}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.IntegerProperty":t+=" Integer",e.defaultValue&&(r+=` default=${e.defaultValue.toString()}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.LongProperty":t+=" Long",e.defaultValue&&(r+=` default=${e.defaultValue.toString()}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.StringProperty":t+=" String",e.defaultValue&&(r+=` default="${e.defaultValue}"`),e.validator&&(o+=` regex=/${e.validator.pattern}/${e.validator.flags}`);break;case"concerto.metamodel.ObjectProperty":t+=` ${e.type.name}`,e.defaultValue&&(r+=` default="${e.defaultValue}"`);break;case"concerto.metamodel.RelationshipProperty":t+=` ${e.type.name}`}return e.isArray&&(t+="[]"),t+=` ${e.name}`,t+=r,t+=o,e.isOptional&&(t+=" optional"),t}(e)}`})),t+="\n}",t}(e)}`})),t}}},5076:function(e,t,r){"use strict";const n=r(9058);e.exports={MetaModelUtil:n}},9058:function(e,t,r){"use strict";const n=r(5334);function o(e,t){if(!t[e])throw new Error(`Name ${e} not found`);return t[e]}function i(e,t){switch(e.$class){case"concerto.metamodel.Model":e.declarations&&e.declarations.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.AssetDeclaration":case"concerto.metamodel.ConceptDeclaration":case"concerto.metamodel.EventDeclaration":case"concerto.metamodel.TransactionDeclaration":case"concerto.metamodel.ParticipantDeclaration":if(e.superType){const r=e.superType.name;e.superType.namespace=o(r,t)}e.properties.forEach((e=>{i(e,t)})),e.decorators&&e.decorators.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.EnumDeclaration":e.decorators&&e.decorators.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.EnumProperty":case"concerto.metamodel.ObjectProperty":case"concerto.metamodel.RelationshipProperty":{const r=e.type.name;e.type.namespace=o(r,t),e.decorators&&e.decorators.forEach((e=>{i(e,t)}))}break;case"concerto.metamodel.Decorator":e.arguments&&e.arguments.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.DecoratorTypeReference":{const r=e.type.name;e.type.namespace=o(r,t)}}return e}function a(e,t){const r=JSON.parse(JSON.stringify(t)),n=function(e,t){const r={Concept:"concerto",Asset:"concerto",Participant:"concerto","Transaction ":"concerto",Event:"concerto"};return t.imports.forEach((t=>{const n=t.namespace,o=function(e,t){return e.models.find((e=>e.namespace===t))}(e,n);if("concerto.metamodel.ImportType"===t.$class){if(i=o,a=t.name,!i.declarations.find((e=>e.name===a)))throw new Error(`Declaration ${t.name} in namespace ${n} not found`);r[t.name]=n}else o.declarations.forEach((e=>{r[e.name]=n}));var i,a})),t.declarations&&t.declarations.forEach((e=>{r[e.name]=t.namespace})),r}(e,t);return i(r,n),r}function s(e){return"concerto.metamodel.ImportAll"===e.$class?`${e.namespace}.*`:`${e.namespace}.${e.name}`}e.exports={metaModelAst:n,metaModelCto:"namespace concerto.metamodel\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n}\n\nconcept Models {\n o Model[] models\n}\n",resolveLocalNames:a,resolveLocalNamesForAll:function(e){const t={$class:"concerto.metamodel.Models",models:[]};return e.models.forEach((r=>{const n=a(e,r);t.models.push(n)})),t},importFullyQualifiedName:s,getExternalImports:function(e){const t={};return e.imports&&e.imports.forEach((e=>{const r=s(e);e.uri&&(t[r]=e.uri)})),t}}},1104:function(e,t,r){"use strict";const n=r(8815),o=r(7211),i=r(5565),a=r(3200),s=r(7464),u=r(7302),c=r(7957),l=r(1651),f=r(9752),p=r(1007),d=r(873),h=r(4598),m=r(4059);e.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:a,DefaultFileLoader:s,GitHubFileLoader:u,HTTPFileLoader:c,Writer:l,FileWriter:f,ModelWriter:p,Logger:d,TypedStack:h,Label:m}},8815:function(e,t,r){"use strict";const n=r(3023);class o extends Error{constructor(e,t){super(e),this.component=t||n.name,this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.exports=o},7211:function(e,t,r){"use strict";const n=r(8815);e.exports=class extends n{constructor(e,t,r,n,o){super(r||e,o),this.fileLocation=t,this.shortMessage=e,this.fileName=n}getFileLocation(){return this.fileLocation}getShortMessage(){return this.shortMessage}getFileName(){return this.fileName}}},5565:function(e,t,r){"use strict";const n=r(5130)("concerto:FileDownloader"),o=r(1036),i=e=>[].concat(...e),a=e=>e.filter(Boolean),s=async(e,t)=>{const r=e.response&&e.response.status&&200!==e.response.status,n=e.code&&"ENOTFOUND"===e.code;if(r||n){const e=new Error(`Unable to download external model dependency '${t.url}'`);throw e.code="MISSING_DEPENDENCY",e}throw new Error("Failed to load model file. Job: "+t.url+" Details: "+e)};e.exports=class{constructor(e,t,r=10){this.fileLoader=e,this.concurrency=r,this.getExternalImports=t}downloadExternalDependencies(e,t){n("downloadExternalDependencies");const r=new Set;t||(t={});const u=i(e.map((e=>{const n=this.getExternalImports(e);return Object.keys(n).map((e=>({downloadedUris:r,url:n[e],options:t})))})));return o.withConcurrency(this.concurrency).for(u).handleError(s).process((e=>this.runJob(e,this.fileLoader))).then((({results:e})=>a(i(e))))}runJob(e,t){const r=e.downloadedUris,u=e.options,c=e.url;return r.add(c),n("runJob","Loading",c),t.load(c,u).then((async e=>{n("runJob","Loaded",c);const l=this.getExternalImports(e),f=Array.from(new Set(Object.keys(l).map((e=>l[e]))));return n("runJob","importedUris",f),(await o.withConcurrency(this.concurrency).for(f).handleError(s).process((e=>{if(!r.has(e))return this.runJob({options:u,url:e,downloadedUris:r},t)})).then((({results:e})=>a(i(e))))).concat([e])}))}}},9752:function(e,t,r){"use strict";const n=r(6634),o=r(1848),i=r(8257),a=r(1651);e.exports=class extends a{constructor(e){super(),this.outputDirectory=e,this.relativeDir=null,this.fileName=null,o.sync(e)}openFile(e){this.fileName=e,this.relativeDir=null}openRelativeFile(e,t){this.relativeDir=e,this.fileName=t}writeLine(e,t){if(!this.fileName)throw Error("File has not been opened!");super.writeLine(e,t)}writeBeforeLine(e,t){if(!this.fileName)throw Error("File has not been opened!");super.writeBeforeLine(e,t)}closeFile(){if(!this.fileName)throw new Error("No file open");let e=this.outputDirectory;this.relativeDir&&(e=i.resolve(e,this.relativeDir)),e=i.resolve(e,this.fileName),o.sync(i.dirname(e)),n.writeFileSync(e,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}},4059:function(e){"use strict";e.exports={labelToSentence:function(e=""){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(e=>e.toUpperCase())).trim()},sentenceToLabel:function(e=""){const t=e.split(/[^A-Za-z0-9_-]+/);return t.forEach(((e,r)=>{t[r]=t[r].replace(/^./,(e=>e.toUpperCase()))})),t.join("").replace(/^./,(e=>e.toLowerCase()))}}},3200:function(e){"use strict";e.exports=class{constructor(){this.fileLoaders=[]}addFileLoader(e){this.fileLoaders.push(e)}getFileLoaders(){return this.fileLoaders}clearFileLoaders(){this.fileLoaders=[]}accepts(e){for(let t=0;t<this.fileLoaders.length;t++)if(this.fileLoaders[t].accepts(e))return!0;return!1}load(e,t){for(let r=0;r<this.fileLoaders.length;r++){const n=this.fileLoaders[r];if(n.accepts(e))return n.load(e,t)}throw new Error("Failed to find a model file loader that can handle: "+e)}}},7464:function(e,t,r){"use strict";const n=r(3200),o=r(7957),i=r(7302);e.exports=class extends n{constructor(e){super();const t=new o(e),r=new i(e);this.addFileLoader(r),this.addFileLoader(t)}}},7302:function(e,t,r){"use strict";const n=r(7957);e.exports=class extends n{constructor(e){super(e)}accepts(e){return e.startsWith("github://")}load(e,t){const r="https://raw.githubusercontent.com/"+e.substring(9);return super.load(r,t)}}},7957:function(e,t,r){"use strict";const n=r(9644),o=r(3088);e.exports=class{constructor(e){this.processFile=e}accepts(e){return e.startsWith("http://")||e.startsWith("https://")}load(e,t){t||(t={});const r=JSON.parse(JSON.stringify(t));return r.url=e,r.method="get",r.responseType="text",n(r).then((t=>{let r=o.parse(e);const n="@"+(r.host+r.pathname).replace(/\//g,".");return this.processFile(n,t.data)}))}}},873:function(e,t,r){"use strict";const n=r(3384),o=r(6190),i={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},a={error:"red",warn:"yellow",info:"green",verbose:"cyan",debug:"blue",silly:"magenta"},s=e=>"object"==typeof e||(e=>{try{return JSON.parse(e)&&!!e}catch(e){return!1}})(e)?o(e,{pretty:!0,colors:n}):e,u={};Object.keys(i).forEach((e=>{u[e]=(...t)=>((e,...t)=>{let r=e,o=t,u=o.shift();if(u&&"object"==typeof u&&u.level&&u.message){const e=u.padding&&u.padding[u.level];"error"===u.level&&u.stack?(r="error",u=`${u.message}\n${u.stack}`):Object.keys(i).includes(u.level)&&(r=u.level,u=u.message),u=e?`${e} ${u}`:u}o.unshift(u),(["error","warn"].includes(r)?console.error:console.log)(`${(new Date).toLocaleTimeString()} - ${(e=>n[a[e]](e.toUpperCase()))(r)}:`,...o.map((e=>e instanceof Error?`${e.message}\n${e.stack}`:e)).map(s))})(e,...t)}));class c{static dispatch(e,...t){i[e]>i[this.level]||this.transports.forEach((r=>{r[e]&&r[e](...t)}))}static add(e){this.transports.push(e)}static error(...e){return this.dispatch("error",...e)}static warn(...e){return this.dispatch("warn",...e)}static info(...e){return this.dispatch("info",...e)}static log(...e){return this.info(...e)}static http(...e){return this.dispatch("http",...e)}static verbose(...e){return this.dispatch("verbose",...e)}static debug(...e){return this.dispatch("debug",...e)}static silly(...e){return this.dispatch("silly",...e)}}c.level="info",c.transports=[u],e.exports=c},1007:function(e,t,r){"use strict";const n=r(6634),o=r(8257),i=r(4716);e.exports={writeModelsToFileSystem:function(e,t,r={}){if(!t)throw new Error("`path` is a required parameter of writeModelsToFileSystem");const a=Object.assign({includeExternalModels:!0},r);e.forEach((function(e){if(e.external&&!a.includeExternalModels)return;const r=i(e.fileName).split("/").pop();n.writeFileSync(t+o.sep+r,e.definitions)}))}}},4598:function(e){"use strict";e.exports=class{constructor(e){this.stack=[],this.push(e)}push(e,t){if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t.constructor.name+" as argument to push. Found: "+e.toString());this.stack.push(e)}pop(e){return this.peek(e),this.stack.pop()}peek(e){if(this.stack.length<1)throw new Error("Stack is empty!");const t=this.stack[this.stack.length-1];if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e+" on head of stack. Found: "+t);return t}clear(){this.stack=[]}}},1651:function(e){"use strict";e.exports=class{constructor(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}writeBeforeLine(e,t){for(let t=0;t<e;t++)this.beforeBuffer+=" ";this.beforeBuffer+=t,this.beforeBuffer+="\n",this.linesWritten++}writeLine(e,t){for(let t=0;t<e;t++)this.write(" ");this.write(t),this.write("\n"),this.linesWritten++}getLineCount(){return this.linesWritten}writeIndented(e,t){for(let t=0;t<e;t++)this.write(" ");this.write(t)}write(e){if("string"!=typeof e)throw new Error("Can only append strings. Argument "+e+" has type "+typeof e);this.buffer+=e,this.linesWritten+=e.split(/\r\n|\r|\n/).length}getBuffer(){return this.beforeBuffer+this.buffer}clearBuffer(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}},4055:function(){},8827:function(){},1599:function(){},6841:function(){},4830:function(){},2203:function(){},5783:function(){},4481:function(){},3088:function(){},6634:function(){},8257:function(){},4376:function(e){"use strict";e.exports=JSON.parse('{"$class":"concerto.metamodel.Model","namespace":"concerto","imports":[],"declarations":[{"$class":"concerto.metamodel.ConceptDeclaration","name":"Concept","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":19,"line":2,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":46,"line":2,"column":28,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Asset","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":47,"line":3,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":83,"line":3,"column":37,"$class":"concerto.metamodel.Position"}},"identified":{"$class":"concerto.metamodel.Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Participant","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":84,"line":4,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":126,"line":4,"column":43,"$class":"concerto.metamodel.Position"}},"identified":{"$class":"concerto.metamodel.Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Transaction","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":127,"line":5,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":158,"line":5,"column":32,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Event","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":159,"line":6,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":184,"line":6,"column":26,"$class":"concerto.metamodel.Position"}}}]}')},6077:function(e){"use strict";e.exports=JSON.parse('{"en":{"like":["{0, plural, offset:1"," =0 {Be the first to like this}"," =1 {You liked this}"," one {You and someone else liked this}"," other {You and # others liked this}","}"],"test-hello-array":"Hello, {0} {1} {2}","test-hello-object":"Hello, {first} {middle} {last}","test-repeat-array":"{0} {0} {0}","test-repeat-object":"{value} {value} {value}","classdeclaration-constructor-modelastreq":"\\"ModelFile\\" and \\"AST\\" are required to create a \\"ClassDecl\\".","classdeclaration-process-unrecmodelelem":"Unrecognised model element \\"{type}\\".","classdeclaration-getfield-notfindsupertype":"Could not find supertype \\"{type}\\".","classdeclaration-validate-identifiernotproperty":"Class \\"{class}\\" is identified by field \\"{idField}\\", but does not contain this property.","classdeclaration-validate-identifiernotstring":"Class \\"{class}\\" is identified by field \\"{idField}\\", but the type of the field is not \\"String\\".","classdeclaration-validate-duplicatefieldname":"Class \\"{class}\\" has more than one field named \\"{fieldName}\\".","classdeclaration-validate-missingidentifier":"Class \\"{class}\\" is not declared as \\"abstract\\". It must define an identifying field.","modelfile-constructor-unrecmodelelem":"Unrecognised model element \\"{type}\\".","modelfile-resolvetype-undecltype":"Undeclared type \\"{type}\\" in \\"{context}\\".","modelfile-resolveimport-failfindimp":"Failed to find \\"{type}\\" in list of imports \\"[{imports}]\\" for namespace \\"{namespace}\\".","transactiondeclaration-getidentifierfieldname-noidentifyingfield":"Transactions do not have an identifying field.","composer-connect-noconopts":"\\"connectOptions\\" not specified.","composer-connect-nokeyvalstore":"\\"connectOptions.keyValStore\\" not specified.","composer-connect-nomembersrvcurl":"\\"connectOptions.membershipServicesURL\\" not specified.","composer-connect-nopeerurl":"\\"connectOptions.peerURL\\" not specified.","composer-connect-noeventhuburl":"\\"connectOptions.eventHubURL\\" not specified.","composer-connect-notconnected":"Connection needs to be connected. Call \\"connect(..)\\".","composer-login-noenrollmentid":"\\"enrollmentID\\" not specified.","composer-login-noenrollmentsecret":"\\"enrollmentSecret\\" not specified.","composer-deploy-nosecuritycontext":"\\"securityContext\\" not specified.","factory-newinstance-missingidentifier":"Missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-invalididentifier":"Invalid or missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-abstracttype":"Cannot instantiate the abstract type \\"{type}\\" in the \\"{namespace}\\" namespace.","factory-newrelationship-notregisteredwithmm":"Cannot create relationship as namespace \\"{namespace}\\" is not known.","factory-newinstance-typenotdeclaredinns":"Cannot instantiate Type \\"{type}\\" in namespace \\"{namespace}\\".","instancegenerator-newinstance-noconcreteclass":"No concrete extending type for \\"{type}\\".","modelmanager-resolvetype-nonsfortype":"No registered namespace for type \\"{type}\\" in \\"{context}\\".","modelmanager-resolvetype-notypeinnsforcontext":"No type \\"{type}\\" in namespace \\"{namespace}\\" for \\"{context}\\".","modelmanager-gettype-noregisteredns":"Namespace is not defined for type \\"{type}\\".","modelmanager-gettype-notypeinns":"Type \\"{type}\\" is not defined in namespace \\"{namespace}\\".","serializer-constructor-factorynull":"\\"Factory\\" cannot be \\"null\\".","serializer-constructor-modelmanagernull":"\\"ModelManager\\" cannot be \\"null\\".","serializer-tojson-notcobject":"\\"Serializer.toJSON\\" only accepts \\"Concept\\", \\"Event\\", \\"Asset\\", \\"Participant\\" or \\"Transaction\\".","util-securitycheck-novalidcontext":"A valid \\"SecurityContext\\" must be specified.","modelutil-getnamespace-nofnq":"FQN is invalid.","resourcevalidator-notresourceorconcept":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has the value of \\"{invalidValue}\\". Expected a \\"Resource\\" or a \\"Concept\\".","resourcevalidator-notrelationship":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has a value of \\"{invalidValue}\\". Expected a \\"Relationship\\".","resourcevalidator-fieldtypeviolation":"Model violation in the \\"{resourceId}\\" instance. The field \\"{propertyName}\\" has a value of \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type of value: \\"{fieldType}\\".","resourcevalidator-missingrequiredproperty":"The instance \\"{resourceId}\\" is missing the required field \\"{fieldName}\\".","resourcevalidator-invalidenumvalue":"Model violation in the \\"{resourceId}\\" instance. Invalid enum value of \\"{value}\\" for the field \\"{fieldName}\\".","resourcevalidator-abstractclass":"The class \\"{className}\\" is abstract and should not contain an instance.","resourcevalidator-undeclaredfield":"Instance \\"{resourceId}\\" has a property named \\"{propertyName}\\", which is not declared in \\"{fullyQualifiedTypeName}\\".","resourcevalidator-invalidfieldassignment":"Instance \\"{resourceId}\\" has a property \\"{propertyName}\\" with type \\"{objectType}\\" that is not derived from \\"{fieldType}\\".","resourcevalidator-emptyidentifier":"Instance \\"{resourceId}\\" has an empty identifier.","typenotfounderror-defaultmessage":"Type \\"{typeName}\\" not found.","whereastvalidator-propertytypeviolation":"Property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"{fieldType}\\".","whereastvalidator-enum-propertytypeviolation":"Enum property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-relationship-propertytypeviolation":"Relationship \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-unsupportedtype":"Property \\"{propertyName}\\" of type \\"{fieldType}\\" cannot be compared with a literal value.","whereastvalidator-invalidoperator":"Property \\"{propertyName}\\" cannot be compared using the \\"{operator}\\" operator."}}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"@accordproject/concerto-core","version":"2.2.1","description":"Core Implementation for the Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"umd/concerto.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"node ./scripts/api-changelog.js && nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-cto"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"@babel/preset-env":"7.16.11","acorn":"8.5.0","acorn-walk":"8.2.0","babel-loader":"8.2.3","chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","commander":"2.20.0","doctrine":"3.0.0","eslint":"8.2.0","fs-extra":"9.1.0","jsdoc":"^3.6.7","klaw":"3.0.0","license-check-and-add":"2.3.6","mocha":"8.3.2","mockery":"2.1.0","moxios":"0.4.0","nyc":"15.1.0","sinon":"12.0.0","sinon-chai":"3.7.0","tmp-promise":"3.0.2","typescript":"4.6.3","webpack":"5.64.2","webpack-cli":"4.9.1","yargs":"17.3.1"},"dependencies":{"@accordproject/concerto-cto":"2.2.1","@accordproject/concerto-metamodel":"2.2.1","@accordproject/concerto-util":"2.2.1","dayjs":"1.10.8","debug":"4.3.1","lorem-ipsum":"2.0.3","randexp":"0.5.3","semver":"7.3.5","slash":"3.0.0","urijs":"1.19.11","uuid":"8.3.2"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","index.d.ts","./system","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"exclude":[],"all":true,"check-coverage":true,"statements":98,"branches":97,"functions":97,"lines":98}}')},5334:function(e){"use strict";e.exports=JSON.parse('{"$class":"concerto.metamodel.Model","namespace":"concerto.metamodel","imports":[],"declarations":[{"$class":"concerto.metamodel.ConceptDeclaration","name":"Position","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"line","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":635,"line":21,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":652,"line":22,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"column","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":652,"line":22,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":671,"line":23,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"offset","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":671,"line":23,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":688,"line":24,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":614,"line":20,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":689,"line":24,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Range","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"start","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":708,"line":26,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":727,"line":27,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"end","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":727,"line":27,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":744,"line":28,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"source","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":744,"line":28,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":769,"line":29,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":690,"line":25,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":770,"line":29,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"TypeIdentifier","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":844,"line":35,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":860,"line":36,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":860,"line":36,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":888,"line":37,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":817,"line":34,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":889,"line":37,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorLiteral","isAbstract":true,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":929,"line":40,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":955,"line":41,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":891,"line":39,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":956,"line":41,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorString","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1011,"line":44,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1026,"line":45,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":958,"line":43,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1027,"line":45,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorNumber","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1082,"line":48,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1097,"line":49,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1029,"line":47,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1098,"line":49,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorBoolean","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1154,"line":52,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1170,"line":53,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1100,"line":51,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1171,"line":53,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorTypeReference","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1233,"line":56,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1257,"line":57,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1257,"line":57,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1289,"line":58,"column":1,"$class":"concerto.metamodel.Position"}},"defaultValue":false}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1173,"line":55,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1290,"line":58,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Decorator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1314,"line":61,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1330,"line":62,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"arguments","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1330,"line":62,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1372,"line":63,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1372,"line":63,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1398,"line":64,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1292,"line":60,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1399,"line":64,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Identified","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1401,"line":66,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1423,"line":67,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IdentifiedBy","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1469,"line":70,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1483,"line":71,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1425,"line":69,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1484,"line":71,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Declaration","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1519,"line":74,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1743,"line":75,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1743,"line":75,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1779,"line":76,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1779,"line":76,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1805,"line":77,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1486,"line":73,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1806,"line":77,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EnumDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"EnumProperty"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1856,"line":80,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1884,"line":81,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1808,"line":79,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1885,"line":81,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EnumProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1912,"line":84,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2136,"line":85,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2136,"line":85,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2172,"line":86,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2172,"line":86,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2198,"line":87,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1887,"line":83,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2199,"line":87,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ConceptDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"isAbstract","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2252,"line":90,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2289,"line":91,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.ObjectProperty","name":"identified","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Identified"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2289,"line":91,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2324,"line":92,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"superType","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2324,"line":92,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2362,"line":93,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2362,"line":93,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2386,"line":94,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2201,"line":89,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2387,"line":94,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"AssetDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2389,"line":96,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2444,"line":97,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ParticipantDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2446,"line":99,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2507,"line":100,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"TransactionDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2509,"line":102,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2570,"line":103,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EventDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2572,"line":105,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2627,"line":106,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Property","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2659,"line":109,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2883,"line":110,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2883,"line":110,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2917,"line":111,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.BooleanProperty","name":"isOptional","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2917,"line":111,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2954,"line":112,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2954,"line":112,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2990,"line":113,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2990,"line":113,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3016,"line":114,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2629,"line":108,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3017,"line":114,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"RelationshipProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3069,"line":117,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3091,"line":118,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3019,"line":116,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3092,"line":118,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ObjectProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3138,"line":121,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3171,"line":122,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3171,"line":122,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3193,"line":123,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3094,"line":120,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3194,"line":123,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"BooleanProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3241,"line":126,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3273,"line":127,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3196,"line":125,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3274,"line":127,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DateTimeProperty","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3276,"line":129,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3321,"line":130,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"StringProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3367,"line":133,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3400,"line":134,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"StringRegexValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3400,"line":134,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3442,"line":135,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3323,"line":132,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3443,"line":135,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"StringRegexValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"pattern","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3478,"line":138,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3497,"line":139,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"flags","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3497,"line":139,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3512,"line":140,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3445,"line":137,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3513,"line":140,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DoubleProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3559,"line":143,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3592,"line":144,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"DoubleDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3592,"line":144,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3635,"line":145,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3515,"line":142,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3636,"line":145,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DoubleDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3672,"line":148,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3698,"line":149,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.DoubleProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3698,"line":149,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3722,"line":150,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3638,"line":147,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3723,"line":150,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IntegerProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3770,"line":153,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3804,"line":154,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"IntegerDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3804,"line":154,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3848,"line":155,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3725,"line":152,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3849,"line":155,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IntegerDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3886,"line":158,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3913,"line":159,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3913,"line":159,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3938,"line":160,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3851,"line":157,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3939,"line":160,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"LongProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.LongProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3983,"line":163,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4014,"line":164,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"LongDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4014,"line":164,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4055,"line":165,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3941,"line":162,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4056,"line":165,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"LongDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.LongProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4090,"line":168,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4114,"line":169,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.LongProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4114,"line":169,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4136,"line":170,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4058,"line":167,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4137,"line":170,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Import","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4167,"line":173,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4188,"line":174,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"uri","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4188,"line":174,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4210,"line":175,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4139,"line":172,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4211,"line":175,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ImportAll","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4213,"line":177,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4249,"line":178,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ImportType","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4289,"line":181,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4303,"line":182,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4251,"line":180,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4304,"line":182,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Model","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4324,"line":185,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4345,"line":186,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"sourceUri","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4345,"line":186,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4375,"line":187,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"concertoVersion","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4375,"line":187,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4411,"line":188,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"imports","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4411,"line":188,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4441,"line":189,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"declarations","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4441,"line":189,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4479,"line":190,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4306,"line":184,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4480,"line":190,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Models","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"models","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Model"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4501,"line":193,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4518,"line":194,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4482,"line":192,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4519,"line":194,"column":2,"$class":"concerto.metamodel.Position"}}}]}')},3023:function(e){"use strict";e.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"2.2.1","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","typings":"types/index.d.ts","scripts":{"pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.2.0","jsdoc":"^3.6.7","license-check-and-add":"2.3.6","mocha":"8.3.2","moxios":"0.4.0","nyc":"15.1.0","tmp-promise":"3.0.2","typescript":"4.6.3"},"dependencies":{"@supercharge/promise-pool":"1.7.0","axios":"0.23.0","colors":"1.4.0","debug":"4.3.1","json-colorizer":"2.2.2","mkdirp":"1.0.4"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","./parser.js","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"exclude":["lib/parser.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r(6010)}()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("concerto",[],t):"object"==typeof exports?exports.concerto=t():e.concerto=t()}(self,(function(){return function(){var e={1036:function(e,t,r){"use strict";const n=r(4572);e.exports=n.PromisePool},9789:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolError=void 0;class r extends Error{constructor(e,t){super(),this.item=t,this.name=this.constructor.name,this.message=this.messageFrom(e),Error.captureStackTrace(this,this.constructor)}static createFrom(e,t){return new this(e,t)}messageFrom(e){return e instanceof Error||"object"==typeof e?e.message:"string"==typeof e||"number"==typeof e?e.toString():""}}t.PromisePoolError=r},6205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolExecutor=void 0;const n=r(9789);t.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}for(e){return this.items=e,this}withHandler(e){return this.handler=e,this}handleError(e){return this.errorHandler=e,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const e of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(e);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(e){const t=this.createTaskFor(e).then((e=>{this.results.push(e),this.tasks.splice(this.tasks.indexOf(t),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(t),1),this.errorHandler)return this.errorHandler(r,e);this.errors.push(n.PromisePoolError.createFrom(r,e))}));this.tasks.push(t)}async createTaskFor(e){return this.handler(e)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},4572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePool=void 0;const n=r(6205);class o{constructor(e){this.concurrency=10,this.items=null!=e?e:[],this.errorHandler=void 0}withConcurrency(e){return this.concurrency=e,this}static withConcurrency(e){return(new this).withConcurrency(e)}for(e){return new o(e).withConcurrency(this.concurrency)}static for(e){return(new this).for(e)}handleError(e){return this.errorHandler=e,this}async process(e){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(e).handleError(this.errorHandler).for(this.items).start()}}t.PromisePool=o},9640:function(e,t,r){"use strict";e=r.nmd(e);const n=r(841),o=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`},i=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`},a=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const o=n[r];t[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1])}Object.defineProperty(t,r,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const r=e=>e,s=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:o(r,0)},t.color.ansi256={ansi256:i(r,0)},t.color.ansi16m={rgb:a(s,0)},t.bgColor.ansi={ansi:o(r,10)},t.bgColor.ansi256={ansi256:i(r,10)},t.bgColor.ansi16m={rgb:a(s,10)};for(let e of Object.keys(n)){if("object"!=typeof n[e])continue;const r=n[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=o(r.ansi16,0),t.bgColor.ansi[e]=o(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=i(r.ansi256,0),t.bgColor.ansi256[e]=i(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=a(r.rgb,0),t.bgColor.ansi16m[e]=a(r.rgb,10))}return t}})},9644:function(e,t,r){e.exports=r(5644)},353:function(e,t,r){"use strict";var n=r(3044),o=r(6955),i=r(2233),a=r(8030),s=r(7948),u=r(1875),c=r(842),l=r(8618),f=r(1439),p=r(6714);e.exports=function(e){return new Promise((function(t,r){var d,h=e.data,m=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}n.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",A=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+A)}var E=s(e.baseURL,e.url);function w(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(w)},v.onabort=function(){v&&(r(l("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(l("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in v&&n.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),y&&"json"!==y&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){v&&(r(!e||e&&e.type?new p("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),v.send(h)}))}},5644:function(e,t,r){"use strict";var n=r(3044),o=r(3644),i=r(2215),a=r(2937),s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(1439));s.Axios=i,s.Cancel=r(6714),s.CancelToken=r(4089),s.isCancel=r(8041),s.VERSION=r(9241).version,s.all=function(e){return Promise.all(e)},s.spread=r(783),s.isAxiosError=r(5587),e.exports=s,e.exports.default=s},6714:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4089:function(e,t,r){"use strict";var n=r(6714);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8041:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2215:function(e,t,r){"use strict";var n=r(3044),o=r(8030),i=r(946),a=r(6895),s=r(2937),u=r(7525),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;r.length;){var p=r.shift(),d=r.shift();try{f=p(f)}catch(e){d(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=l},946:function(e,t,r){"use strict";var n=r(3044);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},7948:function(e,t,r){"use strict";var n=r(9192),o=r(8762);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},8618:function(e,t,r){"use strict";var n=r(1935);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},6895:function(e,t,r){"use strict";var n=r(3044),o=r(8556),i=r(8041),a=r(1439),s=r(6714);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},1935:function(e){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},2937:function(e,t,r){"use strict";var n=r(3044);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},6955:function(e,t,r){"use strict";var n=r(8618);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8556:function(e,t,r){"use strict";var n=r(3044),o=r(1439);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},1439:function(e,t,r){"use strict";var n=r(3044),o=r(8868),i=r(1935),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(353)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},9241:function(e){e.exports={version:"0.23.0"}},3644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},8030:function(e,t,r){"use strict";var n=r(3044);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},8762:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2233:function(e,t,r){"use strict";var n=r(3044);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5587:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},842:function(e,t,r){"use strict";var n=r(3044);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},8868:function(e,t,r){"use strict";var n=r(3044);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},1875:function(e,t,r){"use strict";var n=r(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7525:function(e,t,r){"use strict";var n=r(9241).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},3044:function(e,t,r){"use strict";var n=r(3644),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9379:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(5783),a=r(1104),s=a.DefaultFileLoader,u=a.FileDownloader,c=a.ModelWriter,l=r(5076).MetaModelUtil,f=r(6938),p=r(5338),d=r(7619),h=r(3407),m=r(6697),y=r(6972),g=r(5400),v=r(4449),b=v.rootModelFile,A=v.rootModelCto,E=v.rootModelAst;void 0===r.g&&(r(1988),r(4356),r(79),r(7291),r(7667),r(1081),r(6858),r(9966));var w=r(5130)("concerto:BaseModelManager"),C=function(e,t){return{ast:t,definitions:null,fileName:e}},F=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processFile=r||C,this.modelFiles={},this.factory=new f(this),this.serializer=new y(this.factory,this,t),this.decoratorFactories=[],this.addRootModel()}var t,r,a,v;return t=e,r=[{key:"isModelManager",value:function(){return!0}},{key:"addRootModel",value:function(){var e=new h(this,E,A,b);this.addModelFile(e,A,b)}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"validateModelFile",value:function(e,t){if("string"==typeof e){var r=this.processFile(t,e).ast;new h(this,r,e,t).validate()}else e.validate()}},{key:"_throwAlreadyExists",value:function(e){var t=this.modelFiles[e.getNamespace()].getName(),r=t?" in file ".concat(t):"",n=e.getName()?" specified in file ".concat(e.getName()):"",o="Namespace ".concat(e.getNamespace()).concat(n," is already declared").concat(r);throw new Error(o)}},{key:"addModelFile",value:function(e,t,r,n){return w("addModelFile","addModelFile",e,r),this.modelFiles[e.getNamespace()]?this._throwAlreadyExists(e):(n||e.validate(),this.modelFiles[e.getNamespace()]=e),e}},{key:"addModel",value:function(e,t,r,n){w("addModel","addModel",e,r);var o=this.processFile(r,e),i=o.ast,a=o.definitions,s=t||a,u=new h(this,i,s,r);return this.addModelFile(u,s,r,n),u}},{key:"updateModelFile",value:function(e,t,r){if(w("updateModelFile","updateModelFile",e,t),"string"==typeof e){var n=this.processFile(t,e).ast,o=new h(this,n,e,t);return this.updateModelFile(o,t,r)}if(!this.modelFiles[e.getNamespace()])throw new Error("Model file for namespace ".concat(e.getNamespace()," not found"));return r||e.validate(),this.modelFiles[e.getNamespace()]=e,e}},{key:"deleteModelFile",value:function(e){if(!this.modelFiles[e])throw new Error("Model file does not exist");delete this.modelFiles[e]}},{key:"addModelFiles",value:function(e,t,r){var n="addModelFiles";w(n,"addModelFiles",e,t);var o={};Object.assign(o,this.modelFiles);var i=[];try{for(var a=0;a<e.length;a++){var s=e[a],u=null;t&&(u=t[a]);var c=void 0;if("string"==typeof s){var l=this.processFile(u,s).ast;c=new h(this,l,s,u)}else c=s;this.modelFiles[c.getNamespace()]?this._throwAlreadyExists(c):(this.modelFiles[c.getNamespace()]=c,i.push(c))}return r||this.validateModelFiles(),i}catch(e){throw this.modelFiles={},Object.assign(this.modelFiles,o),e}finally{w(n,i)}}},{key:"validateModelFiles",value:function(){for(var e in this.modelFiles)this.modelFiles[e].validate()}},{key:"updateExternalModels",value:(a=regeneratorRuntime.mark((function e(t,r){var n,o,i,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w("updateExternalModels","updateExternalModels",t),r||(r=new u(new s(this.processFile),(function(e){return l.getExternalImports(e.ast)}))),e.next=5,r.downloadExternalDependencies(this.getModelFiles(),t);case 5:return n=e.sent,o={},Object.assign(o,this.modelFiles),e.prev=8,i=[],n.forEach((function(e){var t=new h(a,e.ast,e.definitions,e.fileName);a.modelFiles[t.getNamespace()]?i.push(a.updateModelFile(t,t.getName(),!0)):i.push(a.addModelFile(t,null,t.getName(),!0))})),this.validateModelFiles(),e.abrupt("return",i);case 15:throw e.prev=15,e.t0=e.catch(8),this.modelFiles={},Object.assign(this.modelFiles,o),e.t0;case 20:case"end":return e.stop()}}),e,this,[[8,15]])})),v=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=a.apply(e,t);function s(e){n(i,r,o,s,u,"next",e)}function u(e){n(i,r,o,s,u,"throw",e)}s(void 0)}))},function(e,t){return v.apply(this,arguments)})},{key:"writeModelsToFileSystem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.writeModelsToFileSystem(this.getModelFiles(),e,t)}},{key:"getModelFiles",value:function(e){for(var t=Object.keys(this.modelFiles),r=[],n=0;n<t.length;n++){var o=t[n];(e||"concerto"!==o)&&r.push(this.modelFiles[o])}return r}},{key:"getModels",value:function(e){var t=this.getModelFiles(),r=[],n=Object.assign({includeExternalModels:!0},e);return t.forEach((function(e){if(!e.isExternal()||n.includeExternalModels){var t;if("UNKNOWN"!==e.fileName&&null!==e.fileName&&e.fileName){var o=e.fileName;t=i.basename(o)}else t=e.namespace+".cto";r.push({name:t,content:e.definitions})}})),r}},{key:"resolveType",value:function(e,t){if(m.isPrimitiveType(t))return t;var r=m.getNamespace(t),n=this.getModelFile(r);if(!n){var o=p.messageFormatter("modelmanager-resolvetype-nonsfortype");throw new d(o({type:t,context:e}))}if(n.isLocalType(t))return t;var i=p.messageFormatter("modelmanager-resolvetype-notypeinnsforcontext");throw new d(i({context:e,type:t,namespace:n.getNamespace()}))}},{key:"clearModelFiles",value:function(){this.modelFiles={},this.addRootModel()}},{key:"getModelFile",value:function(e){return this.modelFiles[e]}},{key:"getModelFileByFileName",value:function(e){return this.getModelFiles().filter((function(t){return t.getName()===e}))[0]}},{key:"getNamespaces",value:function(){return Object.keys(this.modelFiles)}},{key:"getType",value:function(e){var t=m.getNamespace(e),r=this.getModelFile(t);if(!r){var n=p.messageFormatter("modelmanager-gettype-noregisteredns");throw new g(e,n({type:e}))}var o=r.getType(e);if(!o){var i=p.messageFormatter("modelmanager-gettype-notypeinns");throw new g(e,i({type:m.getShortName(e),namespace:t}))}return o}},{key:"getAssetDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getAssetDeclarations())}),[])}},{key:"getTransactionDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getTransactionDeclarations())}),[])}},{key:"getEventDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getEventDeclarations())}),[])}},{key:"getParticipantDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getParticipantDeclarations())}),[])}},{key:"getEnumDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getEnumDeclarations())}),[])}},{key:"getConceptDeclarations",value:function(){return this.getModelFiles().reduce((function(e,t){return e.concat(t.getConceptDeclarations())}),[])}},{key:"getFactory",value:function(){return this.factory}},{key:"getSerializer",value:function(){return this.serializer}},{key:"getDecoratorFactories",value:function(){return this.decoratorFactories}},{key:"addDecoratorFactory",value:function(e){this.decoratorFactories.push(e)}},{key:"derivesFrom",value:function(e,t){for(var r=this.getType(e);r;){if(r.getFullyQualifiedName()===t)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"resolveMetaModel",value:function(e){var t=this.getAst();return l.resolveLocalNames(t,e)}},{key:"fromAst",value:function(e){var t=this;this.clearModelFiles(),e.models.forEach((function(e){var r=new h(t,e);t.addModelFile(r,null,null,!0)})),this.validateModelFiles()}},{key:"getAst",value:function(e){var t=this,r={$class:"concerto.metamodel.Models",models:[]};return this.getModelFiles().forEach((function(n){var o=n.getAst();e&&(o=t.resolveMetaModel(o)),r.models.push(o)})),r}}],r&&o(t.prototype,r),e}();e.exports=F},4857:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(957),a="resource",s=r(1104).TypedStack,u=r(1607);void 0===r.g&&r(4975);var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r;return t=e,(r=[{key:"validate",value:function(e,t){var r=this.getTypeDeclaration(e),n={};n.stack=new s(e);var o=new u(this,t);r.accept(o,n)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"isObject",value:function(e){return"object"===n(e)&&e.$class}},{key:"getTypeDeclaration",value:function(e){if(!e.$class)throw new Error("Input object does not have a $class attribute.");var t=this.modelManager.getType(e.$class);if(!t)throw new Error("Type ".concat(e.$class," is not declared in the model manager"));return t}},{key:"getIdentifier",value:function(e){var t=this.getTypeDeclaration(e).getIdentifierFieldName();if(!t)throw new Error("Object does not have an identifier: ".concat(JSON.stringify(e)));return e[t]}},{key:"isIdentifiable",value:function(e){var t=this.getTypeDeclaration(e);return!t.isSystemIdentified()&&null!==t.getIdentifierFieldName()}},{key:"isRelationship",value:function(e){return"string"==typeof e&&e.startsWith("".concat(a,":"))}},{key:"setIdentifier",value:function(e,t){var r=this.getTypeDeclaration(e).getIdentifierFieldName(),n=JSON.parse(JSON.stringify(e));return n[r]=t,n}},{key:"getFullyQualifiedIdentifier",value:function(e){return this.getTypeDeclaration(e),"".concat(e.$class,"#").concat(this.getIdentifier(e))}},{key:"toURI",value:function(e){return this.getTypeDeclaration(e),"".concat(a,":").concat(e.$class,"#").concat(encodeURI(this.getIdentifier(e)))}},{key:"fromURI",value:function(e){var t;try{t=i.parse(e)}catch(t){throw new Error("Invalid URI: "+e)}var r=t.protocol;if(r&&r!==a)throw new Error("Invalid URI scheme: "+e);if(t.username||t.password||t.port||t.query)throw new Error("Invalid resource URI format: "+e);return{typeDeclaration:this.getTypeDeclaration({$class:t.path}),id:decodeURIComponent(t.fragment)}}},{key:"getType",value:function(e){return this.getTypeDeclaration(e).getName()}},{key:"getNamespace",value:function(e){return this.getTypeDeclaration(e).getNamespace()}}])&&o(t.prototype,r),e}();e.exports=c},7663:function(e,t,r){"use strict";var n=r(8879),o=r(264);n.extend(o);var i=r(3134);n.extend(i);var a=r(7995);n.extend(a);var s=r(4989);n.extend(s),e.exports={setCurrentTime:function(e,t){var r="number"==typeof t?t:n().utcOffset(),o=e?n.utc(e):n().utc();if(!o.isValid())throw new Error("Current time '".concat(e,"' is not in standard UTC format"));var i=o.utcOffset(r);if(!i.isValid())throw new Error("Cannot set current time to '".concat(e,"' with UTC offset '").concat(t,"'"));return{currentTime:i,utcOffset:r}}}},1840:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(4975),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"decorateModels",value:function(e,t){var r=this,n=e.getAst(!0),i=JSON.parse(JSON.stringify(n));i.models.forEach((function(e){e.declarations.forEach((function(n){t.commands.forEach((function(t){r.executeCommand(e.namespace,n,t)}))}))}));var a=new o;return a.fromAst(i),a}},{key:"falsyOrEqual",value:function(e,t){return!e||e===t}},{key:"applyDecorator",value:function(e,t,r){if("UPSERT"===t){var n=!1;if(e.decorators)for(var o=0;o<e.decorators.length;o++)e.decorators[o].name===r.name&&(e.decorators[o]=r,n=!0);n||(e.decorators?e.decorators.push(r):e.decorators=[r])}else{if("APPEND"!==t)throw new Error("Unknown command type ".concat(t));e.decorators?e.decorators.push(r):e.decorators=[r]}}},{key:"executeCommand",value:function(e,t,r){var n=this,o=r.target,i=r.decorator,a=r.type;this.falsyOrEqual(o.namespace,e)&&this.falsyOrEqual(o.declaration,t.name)&&(o.property||o.type?t.properties.forEach((function(e){n.falsyOrEqual(o.property,e.name)&&n.falsyOrEqual(o.type,e.$class)&&n.applyDecorator(e,a,i)})):this.applyDecorator(t,a,i))}}],null&&n(t.prototype,null),r&&n(t,r),e}();e.exports=i},6938:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(1104).TypedStack,i=r(5130)("concerto:Factory"),a=r(5338),s=r(6697),u=r(97),c=r(3232),l=r(1399),f=r(4469),p=r(8031),d=r(8938),h=r(9987),m=r(8879),y=r(264);m.extend(y),void 0===r.g&&r(4975);var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r,y;return t=e,y=[{key:"newId",value:function(){return h.v4()}}],(r=[{key:"newResource",value:function(t,r,n,o){o=o||{};var u=s.getFullyQualifiedName(t,r),c=this.modelManager.getType(u);if(c.isAbstract()){var f=a.messageFormatter("factory-newinstance-abstracttype");throw new Error(f({namespace:t,type:r}))}var h=c.getIdentifierFieldName();if(c.isSystemIdentified()&&(n=null==n?e.newId():n),h){if("string"!=typeof n){var y=a.messageFormatter("factory-newinstance-invalididentifier");throw new Error(y({namespace:t,type:r}))}if(0===n.trim().length){var g=a.messageFormatter("factory-newinstance-missingidentifier");throw new Error(g({namespace:t,type:r}))}}else if(n)throw new Error("Type is not identifiable "+c.getFullyQualifiedName());var v=null,b=null;return(c.isTransaction()||c.isEvent())&&(b=m.utc()),(v=o.disableValidation?new p(this.modelManager,c,t,r,n,b):new d(this.modelManager,c,t,r,n,b,new l)).assignFieldDefaults(),this.initializeNewObject(v,c,o),h&&(v[h]=n),i("newResource","Factory.newResource created ",n||"valid"),v}},{key:"newConcept",value:function(e,t,r,n){return this.newResource(e,t,r,n)}},{key:"newRelationship",value:function(e,t,r){var n=s.getFullyQualifiedName(e,t),o=this.modelManager.getType(n);if(!o.isIdentified())throw new Error("Cannot create a relationship to ".concat(n,", it is not identifiable."));return new f(this.modelManager,o,e,t,r)}},{key:"newTransaction",value:function(e,t,r,n){if(!e)throw new Error("ns not specified");if(!t)throw new Error("type not specified");var o=this.newResource(e,t,r,n);if(!o.getClassDeclaration().isTransaction())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not a transaction");return o}},{key:"newEvent",value:function(e,t,r,n){if(!e)throw new Error("ns not specified");if(!t)throw new Error("type not specified");var o=this.newResource(e,t,r,n);if(!o.getClassDeclaration().isEvent())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not an event");return o}},{key:"initializeNewObject",value:function(e,t,r){var n=this.parseGenerateOptions(r);if(n){n.stack=new o(e),n.seen=[e.getFullyQualifiedType()];var i=new u;t.accept(i,n)}}},{key:"parseGenerateOptions",value:function(e){if(!e.generate)return null;var t={};return t.modelManager=this.modelManager,t.factory=this,/^empty$/i.test(e.generate)?t.valueGenerator=c.empty():t.valueGenerator=c.sample(),t.includeOptionalFields=!!e.includeOptionalFields,t}}])&&n(t.prototype,r),y&&n(t,y),e}();e.exports=g},5338:function(e,t,r){"use strict";var n=r(6077);function o(e){return function(t){var r=n.en[e];for(var o in t)r=r.replace(new RegExp("\\{".concat(o,"\\}"),"g"),t[o]);return r}}function i(e){return n.en[e]}function a(e){return{messageFormatter:o,formatMessage:i}}a.messageFormatter=o,a.formatMessage=i,e.exports=a},1988:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"AssetDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},4356:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(7386),f=r(4823),p=r(4833),d=r(5338),h=r(7619),m=r(9444),y=r(6697),g=r(3988);void 0===r.g&&(r(3407),r(5960));var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(v,e);var t,r,n,a,l=(n=v,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function v(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(r=l.call(this,e,t)).process(),r}return t=v,(r=[{key:"process",value:function(){i(c(v.prototype),"process",this).call(this),this.name=this.ast.name,this.properties=[],this.superType=null,this.superTypeDeclaration=null,this.idField=null,this.timestamped=!1,this.abstract=!1,this.type=this.ast.$class,this.ast.isAbstract&&(this.abstract=!0),this.ast.superType?this.superType=this.ast.superType.name:"concerto"===this.modelFile.getNamespace()&&"Concept"===this.name||(this.superType="Concept"),this.ast.identified&&("concerto.metamodel.IdentifiedBy"===this.ast.identified.$class?this.idField=this.ast.identified.name:(this.idField="$identifier",this.addIdentifierField()));for(var e=0;e<this.ast.properties.length;e++){var t=this.ast.properties[e];if(t.name&&t.name.startsWith("$"))throw new h("Invalid field name ".concat(t.name),this.modelFile,this.ast.location);if("concerto.metamodel.RelationshipProperty"===t.$class)this.properties.push(new g(this,t));else if("concerto.metamodel.EnumProperty"===t.$class)this.properties.push(new f(this,t));else{if("concerto.metamodel.BooleanProperty"!==t.$class&&"concerto.metamodel.StringProperty"!==t.$class&&"concerto.metamodel.IntegerProperty"!==t.$class&&"concerto.metamodel.LongProperty"!==t.$class&&"concerto.metamodel.DoubleProperty"!==t.$class&&"concerto.metamodel.DateTimeProperty"!==t.$class&&"concerto.metamodel.ObjectProperty"!==t.$class){var r=d.messageFormatter("classdeclaration-process-unrecmodelelem");throw new h(r({type:t.$class}),this.modelFile,this.ast.location)}this.properties.push(new p(this,t))}}this.fqn=y.getFullyQualifiedName(this.modelFile.getNamespace(),this.name),"concerto.Transaction"!==this.fqn&&"concerto.Event"!==this.fqn||this.addTimestampField()}},{key:"addTimestampField",value:function(){this.properties.push(new p(this,{$class:"concerto.metamodel.DateTimeProperty",name:"$timestamp"}))}},{key:"addIdentifierField",value:function(){this.properties.push(new p(this,{$class:"concerto.metamodel.StringProperty",name:"$identifier"}))}},{key:"_resolveSuperType",value:function(){if(!this.superType)return null;this.superTypeDeclaration=null;var e=null;if(this.getModelFile().isImportedType(this.superType)){var t=this.getModelFile().resolveImport(this.superType);e=this.modelFile.getModelManager().getType(t)}else e=this.getModelFile().getType(this.superType);if(!e)throw new h("Could not find super type "+this.superType,this.modelFile,this.ast.location);if("ConceptDeclaration"!==e.declarationKind()&&this.declarationKind()!==e.declarationKind())throw new h("".concat(this.declarationKind()," (").concat(this.getName(),") cannot extend ").concat(e.declarationKind()," (").concat(e.getName(),")"),this.modelFile,this.ast.location);return this.superTypeDeclaration=e,e}},{key:"validate",value:function(){i(c(v.prototype),"validate",this).call(this);for(var e=this.getModelFile().getAllDeclarations(),t=0;t<e.length;t++)for(var r=e[t],n=t+1;n<e.length;n++){var o=e[n];if(r.getFullyQualifiedName()===o.getFullyQualifiedName())throw new h("Duplicate class name ".concat(r.getName()))}if(null!==this.superType&&this._resolveSuperType(),this.idField){var a=this.getProperty(this.idField);if(!a){var s=d("en").messageFormatter("classdeclaration-validate-identifiernotproperty");throw new h(s({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if("String"!==a.getType()){var u=d("en").messageFormatter("classdeclaration-validate-identifiernotstring");throw new h(u({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if(a.isOptional())throw new h("Identifying fields cannot be optional.",this.modelFile,this.ast.location);if(this.superType){var l=this.getModelFile().getType(this.superType);if(l&&l.isIdentified())if(this.isSystemIdentified()){if(!l.isSystemIdentified())throw new h("Super class ".concat(l.getFullyQualifiedName()," has an explicit identifier ").concat(l.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}else if(l.isExplicitlyIdentified())throw new h("Super class ".concat(l.getFullyQualifiedName()," has an explicit identifier ").concat(l.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}}for(var f=this.getProperties(),p=0;p<f.length;p++){for(var m=f[p],y=p+1;y<f.length;y++){var g=f[y];if(m.getName()===g.getName()){var b=d("en").messageFormatter("classdeclaration-validate-duplicatefieldname");throw new h(b({class:this.name,fieldName:m.getName()}),this.modelFile,this.ast.location)}}if(m.isPrimitive()||this.isEnum()||m.getNamespace()===this.getNamespace())m.validate(this);else{var A=m.getFullyQualifiedTypeName(),E=this.modelFile.getModelManager().getType(A);m.validate(E)}}}},{key:"isAbstract",value:function(){return this.abstract}},{key:"getName",value:function(){return this.name}},{key:"getNamespace",value:function(){return this.modelFile.getNamespace()}},{key:"getFullyQualifiedName",value:function(){return this.fqn}},{key:"isIdentified",value:function(){return!!this.getIdentifierFieldName()}},{key:"isSystemIdentified",value:function(){return"$identifier"===this.getIdentifierFieldName()}},{key:"isExplicitlyIdentified",value:function(){return!!this.idField&&"$identifier"!==this.idField}},{key:"getIdentifierFieldName",value:function(){if(this.idField)return this.idField;if(this.getSuperType()){var e=this.getModelFile().getLocalType(this.getSuperType());return e||(e=this.modelFile.getModelManager().getType(this.getSuperType())),e.getIdentifierFieldName()}return null}},{key:"getOwnProperty",value:function(e){for(var t=0;t<this.properties.length;t++){var r=this.properties[t];if(r.getName()===e)return r}return null}},{key:"getOwnProperties",value:function(){return this.properties}},{key:"getSuperType",value:function(){var e=this.getSuperTypeDeclaration();return e?e.getFullyQualifiedName():null}},{key:"getSuperTypeDeclaration",value:function(){return this.superType?this.superTypeDeclaration?this.superTypeDeclaration:this._resolveSuperType():null}},{key:"getAssignableClassDeclarations",value:function(){var e=new Set,t=this.getModelFile().getModelManager(),r=new m(t).getClassDeclarations(),n=new Map;return r.forEach((function(e){var t=e.getSuperType();if(t){var r=n.get(t)||new Set;r.add(e),n.set(t,r)}})),function t(r){r.forEach((function(r){e.add(r);var o=r.getFullyQualifiedName(),i=n.get(o);i&&t(i)}))}([this]),Array.from(e)}},{key:"getDirectSubclasses",value:function(){var e=this.getModelFile().getModelManager(),t=new m(e).getClassDeclarations(),r=new Map;t.forEach((function(e){var t=e.getSuperType();if(t){var n=r.get(t)||new Set;n.add(e),r.set(t,n)}}));var n=this.getFullyQualifiedName(),o=r.get(n);return o?Array.from(o):[]}},{key:"getAllSuperTypeDeclarations",value:function(){for(var e=[],t=this;t=t.getSuperTypeDeclaration();)e.push(t);return e}},{key:"getProperty",value:function(e){var t=this.getOwnProperty(e),r=null;if(null===t&&null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var n=this.getModelFile().resolveImport(this.superType);r=this.modelFile.getModelManager().getType(n)}else r=this.getModelFile().getType(this.superType);t=r.getProperty(e)}return t}},{key:"getProperties",value:function(){var e=this.getOwnProperties(),t=null;if(null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var r=this.getModelFile().resolveImport(this.superType);t=this.modelFile.getModelManager().getType(r)}else t=this.getModelFile().getType(this.superType);if(!t)throw new h("Could not find super type "+this.superType,this.modelFile,this.ast.location);e=e.concat(t.getProperties())}return e}},{key:"getNestedProperty",value:function(e){for(var t=e.split("."),r=this,n=null,o=0;o<t.length;o++){if(null===(n=r.getProperty(t[o])))throw new h("Property "+t[o]+" does not exist on "+r.getFullyQualifiedName(),this.modelFile,this.ast.location);if(o<t.length-1){if(n.isPrimitive()||n.isTypeEnum())throw new Error("Property "+t[o]+" is a primitive or enum. Invalid property path: "+e);r=r.getModelFile().getModelManager().getType(n.getFullyQualifiedTypeName())}}return n}},{key:"toString",value:function(){var e="";return this.superType&&(e=" super="+this.superType),"ClassDeclaration {id="+this.getFullyQualifiedName()+e+" enum="+this.isEnum()+" abstract="+this.isAbstract()+"}"}},{key:"isAsset",value:function(){return"concerto.metamodel.AssetDeclaration"===this.type}},{key:"isParticipant",value:function(){return"concerto.metamodel.ParticipantDeclaration"===this.type}},{key:"isTransaction",value:function(){return"concerto.metamodel.TransactionDeclaration"===this.type}},{key:"isEvent",value:function(){return"concerto.metamodel.EventDeclaration"===this.type}},{key:"isConcept",value:function(){return"concerto.metamodel.ConceptDeclaration"===this.type}},{key:"isEnum",value:function(){return"concerto.metamodel.EnumDeclaration"===this.type}},{key:"isClassDeclaration",value:function(){return!0}}])&&o(t.prototype,r),v}(l);e.exports=v},79:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(4356);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"ConceptDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},7386:function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=r(4458),s=r(7619);void 0===r.g&&r(3407);var u=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("modelFile not specified");if(!r)throw new Error("ast not specified");this.modelFile=t,this.ast=r}var t,r;return t=e,(r=[{key:"getModelFile",value:function(){return this.modelFile}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"process",value:function(){if(this.decorators=[],this.ast.decorators)for(var e=0;e<this.ast.decorators.length;e++){var t,r=this.ast.decorators[e],o=void 0,i=n(this.getModelFile().getModelManager().getDecoratorFactories());try{for(i.s();!(t=i.n()).done&&!(o=t.value.newDecorator(this,r)););}catch(e){i.e(e)}finally{i.f()}o||(o=new a(this,r)),this.decorators.push(o)}}},{key:"validate",value:function(){for(var e=0;e<this.decorators.length;e++){var t=this.decorators[e];t.validate();for(var r=e+1;r<this.decorators.length;r++){var n=this.decorators[r];if(t.getName()===n.getName())throw new s("Duplicate decorator ".concat(t.getName()),this.modelFile,this.ast.location)}}}},{key:"getDecorators",value:function(){return this.decorators}},{key:"getDecorator",value:function(e){for(var t=0;t<this.decorators.length;t++){var r=this.decorators[t];if(r.getName()===e)return r}return null}}])&&i(t.prototype,r),e}();e.exports=u},4458:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(5960));var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ast=r,this.parent=t,this.arguments=null,this.process()}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(this.name=this.ast.name,this.arguments=[],this.ast.arguments)for(var e=0;e<this.ast.arguments.length;e++){var t=this.ast.arguments[e];t&&("concerto.metamodel.DecoratorTypeReference"===t.$class?this.arguments.push({type:"Identifier",name:t.type.name,array:t.isArray}):this.arguments.push(t.value))}}},{key:"validate",value:function(){}},{key:"getName",value:function(){return this.name}},{key:"getArguments",value:function(){return this.arguments}},{key:"isDecorator",value:function(){return!0}}])&&n(t.prototype,r),e}();e.exports=o},7291:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(4458),r(5960));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"newDecorator",value:function(e,t){throw new Error("abstract function called")}}])&&n(t.prototype,r),e}();e.exports=o},7667:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(4356);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"toString",value:function(){return"EnumDeclaration {id="+this.getFullyQualifiedName()+"}"}},{key:"declarationKind",value:function(){return"EnumDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},4823:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960);void 0===r.g&&r(4356);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,a,l=(n=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function f(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e,t)}return t=f,(r=[{key:"validate",value:function(e){i(c(f.prototype),"validate",this).call(this,e)}},{key:"isEnumValue",value:function(){return!0}}])&&o(t.prototype,r),f}(l);e.exports=f},1081:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(722);void 0===r.g&&r(3407);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,r,n,a,l=(n=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function f(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e,t)}return t=f,(r=[{key:"process",value:function(){i(c(f.prototype),"process",this).call(this)}},{key:"declarationKind",value:function(){return"EventDeclaration"}}])&&o(t.prototype,r),f}(l);e.exports=f},4833:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960),f=r(3534),p=r(8631);void 0===r.g&&r(4356);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,r,n,a,l=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e,t)}return t=d,(r=[{key:"process",value:function(){switch(i(c(d.prototype),"process",this).call(this),this.validator=null,this.getType()){case"Integer":case"Double":case"Long":this.ast.validator&&(this.validator=new f(this,this.ast.validator));break;case"String":this.ast.validator&&(this.validator=new p(this,this.ast.validator))}this.ast.defaultValue?this.defaultValue=this.ast.defaultValue:this.defaultValue=null}},{key:"getValidator",value:function(){return this.validator}},{key:"getDefaultValue",value:function(){return this.defaultValue?this.defaultValue:null}},{key:"toString",value:function(){return"Field {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isField",value:function(){return!0}}])&&o(t.prototype,r),d}(l);e.exports=d},722:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=r(4356);void 0===r.g&&r(3407);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=n.call(this,e,t)).process(),r}return s}(s);e.exports=u},7619:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=r(1104).BaseFileException;void 0===r.g&&r(3407);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var i="",a=null;return t&&t.getName()&&(i="File '"+(a=t.getName())+"': "),r&&(i=i+"line "+r.start.line+" column "+r.start.column+", to line "+r.end.line+" column "+r.end.column+". "),i=i.charAt(0).toUpperCase()+i.slice(1),n.call(this,e,r,e+" "+i,a,o)}return s}(s);e.exports=u},9444:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&(r(4356),r(4975));var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getClassDeclarations",value:function(){for(var e=[],t=this.modelManager.getModelFiles(),r=0;r<t.length;r++){var n=t[r];e=e.concat(n.getAllDeclarations())}return e}},{key:"getClassDeclaration",value:function(e){return this.modelManager.getType(e)}},{key:"getModelManager",value:function(){return this.modelManager}}])&&n(t.prototype,r),e}();e.exports=o},1209:function(e,t,r){"use strict";var n=r(5076).MetaModelUtil,o=r(4975),i=r(6938),a=r(6972),s=r(3407);function u(){var e=new o,t=new s(e,n.metaModelAst,n.metaModelCto,"concerto.metamodel",!0);return e.addModelFile(t,n.metaModelCto,"concerto.metamodel"),e}function c(e){var t=u(),r=new i(t),n=new a(r,t),o=n.fromJSON(e);return n.toJSON(o)}e.exports={newMetaModelManager:u,validateMetaModel:c,modelManagerFromMetaModel:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t?c(e):e,n=new o;return r.models.forEach((function(e){var t=new s(n,e,null,null,!0);n.addModelFile(t,null,null)})),n.validateModelFiles(),n}}},3407:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4147),a=r(7699),s=r(1988),u=r(7667),c=r(79),l=r(6858),f=r(9966),p=r(1081),d=r(7619),h=r(6697),m=r(5338);void 0===r.g&&(r(4356),r(4975));var y=function(){function e(t,r,o,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modelManager=t,this.external=!1,this.declarations=[],this.localTypes=new Map,this.imports=[],this.importShortNames=new Map,this.importWildcardNamespaces=[],this.importUriMap={},this.fileName="UNKNOWN",this.concertoVersion=null,!r||"object"!==n(r))throw new Error("ModelFile expects a Concerto model AST as input.");if(this.ast=r,o&&"string"!=typeof o)throw new Error("ModelFile expects an (optional) Concerto model definition as a string.");if(this.definitions=o,i&&"string"!=typeof i)throw new Error("ModelFile expects an (optional) filename as a string.");for(var a in this.fileName=i,i&&(this.external=i.startsWith("@")),this.fromAst(this.ast),this.isCompatibleVersion(),this.declarations){var s=this.declarations[a],u=this.getNamespace()+"."+s.getName();this.localTypes.set(u,this.declarations[a])}}var t,r;return t=e,(r=[{key:"isModelFile",value:function(){return!0}},{key:"isSystemModelFile",value:function(){return"concerto"===this.namespace}},{key:"isExternal",value:function(){return this.external}},{key:"getImportURI",value:function(e){return this.importUriMap[e]||null}},{key:"getExternalImports",value:function(){return this.importUriMap}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"getImports",value:function(){return this.imports.map(h.importFullyQualifiedName)}},{key:"validate",value:function(){var e=this;this.imports.forEach((function(t){var r=h.importFullyQualifiedName(t),n=t.namespace,o=e.getModelManager().getModelFile(n);if(!o){var i=m.messageFormatter("modelmanager-gettype-noregisteredns");throw new d(i({type:r}),e)}if("concerto.metamodel.ImportAll"!==t.$class){var a=t.name;if(!o.isLocalType(a)){var s=m.messageFormatter("modelmanager-gettype-notypeinns");throw new d(s({type:a,namespace:n}),e)}}}));for(var t=0;t<this.declarations.length;t++)this.declarations[t].validate()}},{key:"resolveType",value:function(e,t,r){if(!h.isPrimitiveType(t))if(this.isImportedType(t))this.getModelManager().resolveType(e,this.resolveImport(t));else if(!this.isLocalType(t)){var n=m("en").messageFormatter("modelfile-resolvetype-undecltype");throw new d(n({type:t,context:e}),this,r)}}},{key:"isLocalType",value:function(e){return e&&null!==this.getLocalType(e)}},{key:"isImportedType",value:function(e){if(this.importShortNames.has(e))return!0;for(var t in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[t],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(e))return!0}return!1}},{key:"resolveImport",value:function(e){if(this.importShortNames.has(e))return this.importShortNames.get(e);for(var t in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[t],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(e))return r+"."+e}var o=m("en").messageFormatter("modelfile-resolveimport-failfindimp");throw new d(o({type:e,imports:this.imports,namespace:this.getNamespace()}),this)}},{key:"isDefined",value:function(e){return h.isPrimitiveType(e)||null!==this.getLocalType(e)}},{key:"getType",value:function(e){if(h.isPrimitiveType(e))return e;if(this.isImportedType(e)){var t=this.resolveImport(e),r=this.getModelManager().getModelFile(h.getNamespace(t));return r?r.getLocalType(t):null}return this.isLocalType(e)?this.getLocalType(e):null}},{key:"getFullyQualifiedTypeName",value:function(e){if(h.isPrimitiveType(e))return e;if(this.isImportedType(e)){var t=this.resolveImport(e);return this.getModelManager().getModelFile(h.getNamespace(t)).getLocalType(t).getFullyQualifiedName()}return this.isLocalType(e)?this.getLocalType(e).getFullyQualifiedName():null}},{key:"getLocalType",value:function(e){return e.startsWith(this.getNamespace())||(e=this.getNamespace()+"."+e),this.localTypes.has(e)?this.localTypes.get(e):null}},{key:"getAssetDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isAsset()?t:null}},{key:"getTransactionDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isTransaction()?t:null}},{key:"getEventDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isEvent()?t:null}},{key:"getParticipantDeclaration",value:function(e){var t=this.getLocalType(e);return t&&t.isParticipant()?t:null}},{key:"getNamespace",value:function(){return this.namespace}},{key:"getName",value:function(){return this.fileName}},{key:"getAssetDeclarations",value:function(){return this.getDeclarations(s)}},{key:"getTransactionDeclarations",value:function(){return this.getDeclarations(f)}},{key:"getEventDeclarations",value:function(){return this.getDeclarations(p)}},{key:"getParticipantDeclarations",value:function(){return this.getDeclarations(l)}},{key:"getConceptDeclarations",value:function(){return this.getDeclarations(c)}},{key:"getEnumDeclarations",value:function(){return this.getDeclarations(u)}},{key:"getDeclarations",value:function(e){for(var t=[],r=0;r<this.declarations.length;r++){var n=this.declarations[r];n instanceof e&&t.push(n)}return t}},{key:"getAllDeclarations",value:function(){return this.declarations}},{key:"getDefinitions",value:function(){return this.definitions}},{key:"getAst",value:function(){return this.ast}},{key:"getConcertoVersion",value:function(){return this.concertoVersion}},{key:"isCompatibleVersion",value:function(){if(this.ast.concertoVersion){if(!a.satisfies(i.version,this.ast.concertoVersion,{includePrerelease:!0}))throw new Error("ModelFile expects Concerto version ".concat(this.ast.concertoVersion," but this is ").concat(i.version));this.concertoVersion=this.ast.concertoVersion}}},{key:"fromAst",value:function(e){var t=this;this.namespace=e.namespace;var r=e.imports?e.imports.concat([]):[];if("concerto"!==this.namespace&&(r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Concept"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Asset"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Transaction"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Participant"}),r.push({$class:"concerto.metamodel.ImportType",namespace:"concerto",name:"Event"})),this.imports=r,this.imports.forEach((function(e){var r=h.importFullyQualifiedName(e);"concerto.metamodel.ImportAll"===e.$class?t.importWildcardNamespaces.push(e.namespace):t.importShortNames.set(e.name,r),e.uri&&(t.importUriMap[r]=e.uri)})),e.declarations)for(var n=0;n<e.declarations.length;n++){var o=Object.assign({},e.declarations[n]);if("concerto.metamodel.AssetDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Asset"}),this.declarations.push(new s(this,o));else if("concerto.metamodel.TransactionDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Transaction"}),this.declarations.push(new f(this,o));else if("concerto.metamodel.EventDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Event"}),this.declarations.push(new p(this,o));else if("concerto.metamodel.ParticipantDeclaration"===o.$class)o.superType||(o.superType={$class:"concerto.metamodel.TypeIdentified",name:"Participant"}),this.declarations.push(new l(this,o));else if("concerto.metamodel.EnumDeclaration"===o.$class)this.declarations.push(new u(this,o));else{if("concerto.metamodel.ConceptDeclaration"!==o.$class){var i=m("en").messageFormatter("modelfile-constructor-unrecmodelelem");throw new d(i({type:o.$class}),this)}this.declarations.push(new c(this,o))}}}}])&&o(t.prototype,r),e}();e.exports=y},3534:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(6017);void 0===r.g&&r(4833);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(r=c.call(this,e,t)).lowerBound=null,r.upperBound=null,Object.prototype.hasOwnProperty.call(t,"lower")&&(r.lowerBound=t.lower),Object.prototype.hasOwnProperty.call(t,"upper")&&(r.upperBound=t.upper),null===r.lowerBound&&null===r.upperBound?r.reportError(null,"Invalid range, lower and-or upper bound must be specified."):null===r.lowerBound||null===r.upperBound||r.lowerBound>r.upperBound&&r.reportError(null,"Lower bound must be less than or equal to upper bound."),r}return t=l,(r=[{key:"getLowerBound",value:function(){return this.lowerBound}},{key:"getUpperBound",value:function(){return this.upperBound}},{key:"validate",value:function(e,t){null!==t&&(null!==this.lowerBound&&t<this.lowerBound&&this.reportError(e,"Value ".concat(t," is outside lower bound ").concat(this.lowerBound)),null!==this.upperBound&&t>this.upperBound&&this.reportError(e,"Value ".concat(t," is outside upper bound ").concat(this.upperBound)))}},{key:"toString",value:function(){return"NumberValidator lower: "+this.lowerBound+" upper: "+this.upperBound}}])&&o(t.prototype,r),l}(u);e.exports=c},6858:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"ParticipantDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},5960:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(7386),f=r(6697);void 0===r.g&&r(4356);var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,r,n,a,l=(n=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function p(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(r=l.call(this,e.getModelFile(),t)).parent=e,r.process(),r}return t=p,(r=[{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(i(c(p.prototype),"process",this).call(this),this.name=this.ast.name,this.decorator=null,!this.name)throw new Error("No name for type "+JSON.stringify(this.ast));"concerto.metamodel.BooleanProperty"===this.ast.$class?this.type="Boolean":"concerto.metamodel.StringProperty"===this.ast.$class?this.type="String":"concerto.metamodel.IntegerProperty"===this.ast.$class?this.type="Integer":"concerto.metamodel.LongProperty"===this.ast.$class?this.type="Long":"concerto.metamodel.DoubleProperty"===this.ast.$class?this.type="Double":"concerto.metamodel.DateTimeProperty"===this.ast.$class?this.type="DateTime":"concerto.metamodel.ObjectProperty"===this.ast.$class?this.type=this.ast.type?this.ast.type.name:null:"concerto.metamodel.RelationshipProperty"===this.ast.$class?this.type=this.ast.type.name:this.type=null,this.array=!1,this.ast.isArray&&(this.array=!0),this.ast.isOptional?this.optional=!0:this.optional=!1}},{key:"validate",value:function(e){i(c(p.prototype),"validate",this).call(this),this.type&&e.getModelFile().resolveType("property "+this.getFullyQualifiedName(),this.type)}},{key:"getName",value:function(){return this.name}},{key:"getType",value:function(){return this.type}},{key:"isOptional",value:function(){return this.optional}},{key:"getFullyQualifiedTypeName",value:function(){if(this.isPrimitive())return this.type;var e=this.getParent();if(!e)throw new Error("Property "+this.name+" does not have a parent.");var t=e.getModelFile();if(!t)throw new Error("Parent of property "+this.name+" does not have a ModelFile!");var r=t.getFullyQualifiedTypeName(this.type);if(!r)throw new Error("Failed to find fully qualified type name for property "+this.name+" with type "+this.type);return r}},{key:"getFullyQualifiedName",value:function(){return this.getParent().getFullyQualifiedName()+"."+this.getName()}},{key:"getNamespace",value:function(){return this.getParent().getNamespace()}},{key:"isArray",value:function(){return this.array}},{key:"isTypeEnum",value:function(){return!this.isPrimitive()&&this.getParent().getModelFile().getType(this.getType()).isEnum()}},{key:"isPrimitive",value:function(){return f.isPrimitiveType(this.getType())}}])&&o(t.prototype,r),p}(l);e.exports=p},3988:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(5960),f=r(7619),p=r(6697);void 0===r.g&&r(4356);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,r,n,a,l=(n=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function d(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e,t)}return t=d,(r=[{key:"validate",value:function(e){if(i(c(d.prototype),"validate",this).call(this,e),!this.getType())throw new f("Relationship must have a type",e.getModelFile(),this.ast.location);var t=null;if(p.isPrimitiveType(this.getType()))throw new f("Relationship "+this.getName()+" cannot be to the primitive type "+this.getType(),e.getModelFile(),this.ast.location);if(this.getParent().getNamespace()===p.getNamespace(this.getFullyQualifiedTypeName()))t=this.getParent().getModelFile().getType(this.getType());else try{t=this.getParent().getModelFile().getModelManager().getType(this.getFullyQualifiedTypeName())}catch(e){}if(null===t)throw new f("Relationship "+this.getName()+" points to a missing type "+this.getFullyQualifiedTypeName(),e.getModelFile(),this.ast.location);if(!t.isIdentified())throw new f("Relationship "+this.getName()+" must be to a class that has an identifier, but this is to "+this.getFullyQualifiedTypeName(),e.getModelFile(),this.ast.location)}},{key:"toString",value:function(){return"RelationshipDeclaration {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isRelationship",value:function(){return!0}}])&&o(t.prototype,r),d}(l);e.exports=d},8631:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(6017);void 0===r.g&&r(4833);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r=c.call(this,e,t);try{t.flags?r.regex=new RegExp(t.pattern,t.flags):r.regex=new RegExp(t.pattern)}catch(e){r.reportError(e.message)}return r}return t=l,(r=[{key:"validate",value:function(e,t){null!==t&&(this.regex.test(t)||this.reportError(e,"Value '"+t+"' failed to match validation regex: "+this.regex))}},{key:"getRegex",value:function(){return this.regex}}])&&o(t.prototype,r),l}(u);e.exports=c},9966:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(722);void 0===r.g&&r(3407);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t)}return t=l,(r=[{key:"declarationKind",value:function(){return"TransactionDeclaration"}}])&&o(t.prototype,r),l}(u);e.exports=c},6017:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}void 0===r.g&&r(4833);var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.validator=r,this.field=t}var t,r;return t=e,(r=[{key:"reportError",value:function(e,t){throw new Error("Validator error for field "+e+" "+this.getField().getFullyQualifiedName()+": "+t)}},{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getField",value:function(){return this.field}},{key:"validate",value:function(e,t){}}])&&n(t.prototype,r),e}();e.exports=o},8894:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(3228),c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,r,n,c,l=(n=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function f(e,t,r,n,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(a=l.call(this,e,t,r,n)).$identifier=o,a.$timestamp=i,a}return t=f,(r=[{key:"getTimestamp",value:function(){return this.$timestamp}},{key:"getIdentifier",value:function(){return this.$identifier}},{key:"setIdentifier",value:function(e){this.$identifier=e,this[this.$modelManager.getModelFile(this.getNamespace()).getType(this.getFullyQualifiedType()).getIdentifierFieldName()]=e}},{key:"getFullyQualifiedIdentifier",value:function(){return this.$identifier?this.getFullyQualifiedType()+"#"+this.$identifier:this.getFullyQualifiedType()}},{key:"toString",value:function(){return"Identifiable {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!1}},{key:"isResource",value:function(){return!1}},{key:"toURI",value:function(){return new u(this.getNamespace(),this.getType(),this.getIdentifier()).toURI()}}])&&o(t.prototype,r),f}(r(2989));e.exports=c},4469:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(8894),c=r(6697),l=r(3228);void 0===r.g&&r(4975);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(d,e);var t,r,n,u,f,p=(u=d,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(u);if(f){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function d(e,t,r,n,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(a=p.call(this,e,t,r,n,o,i)).$class="Relationship",a}return t=d,n=[{key:"fromURI",value:function(e,t,r,n){var o=l.fromURI(t,r,n),i=c.getFullyQualifiedName(o.namespace,o.type),a=e.getType(i);return new d(e,a,o.namespace,o.type,o.id)}}],(r=[{key:"toString",value:function(){return"Relationship {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!0}}])&&o(t.prototype,r),n&&o(t,n),d}(u);e.exports=f},8031:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(l,e);var t,r,n,u,c=(n=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function l(e,t,r,n,o,i){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,e,t,r,n,o,i)}return t=l,(r=[{key:"toString",value:function(){return"Resource {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isResource",value:function(){return!0}},{key:"isConcept",value:function(){return this.getClassDeclaration().isConcept()}},{key:"isIdentifiable",value:function(){return this.getClassDeclaration().isIdentified()}},{key:"toJSON",value:function(){return this.getModelManager().getSerializer().toJSON(this)}}])&&o(t.prototype,r),l}(r(8894));e.exports=u},3228:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(957),i=r(6697),a=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("Missing namespace");if(!r)throw new Error("Missing type");if(!n)throw new Error("Missing id");this.namespace=t,this.type=r,this.id=n}var t,r,a;return t=e,a=[{key:"fromURI",value:function(t,r,n){var a;try{a=o.parse(t)}catch(e){throw new Error("Invalid URI: "+t)}var s,u,c=a.protocol;if(c&&"resource"!==c)throw new Error("Invalid URI scheme: "+t);if(a.username||a.password||a.port||a.query)throw new Error("Invalid resource URI format: "+t);var l=a.fragment;if(l){var f=a.path;s=i.getNamespace(f),u=i.getShortName(f)}else s=r,u=n,l=a.path;return new e(s,u,decodeURIComponent(l))}}],(r=[{key:"toURI",value:function(){return"resource:"+i.getFullyQualifiedName(this.namespace,this.type)+"#"+encodeURI(this.id)}}])&&n(t.prototype,r),a&&n(t,a),e}();e.exports=a},2989:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(8879),i=r(264);o.extend(i),void 0===r.g&&(r(4356),r(4975));var a=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$modelManager=t,this.$classDeclaration=r,this.$namespace=n,this.$type=o}var t,r;return t=e,(r=[{key:"accept",value:function(e,t){return e.visit(this,t)}},{key:"getModelManager",value:function(){return this.$modelManager}},{key:"getType",value:function(){return this.$type}},{key:"getFullyQualifiedType",value:function(){return this.$classDeclaration.getFullyQualifiedName()}},{key:"getNamespace",value:function(){return this.$namespace}},{key:"getClassDeclaration",value:function(){return this.$classDeclaration}},{key:"setPropertyValue",value:function(e,t){this[e]=t}},{key:"addArrayValue",value:function(e,t){this[e]?this[e].push(t):this[e]=[t]}},{key:"assignFieldDefaults",value:function(){for(var e=this.getClassDeclaration().getProperties(),t=0;t<e.length;t++){var r,n=e[t];if(null!==(r=n.isField)&&void 0!==r&&r.call(n)){var i=n.getDefaultValue();if(i)if("String"===n.getType())this.setPropertyValue(n.getName(),i);else if("Integer"===n.getType())this.setPropertyValue(n.getName(),parseInt(i));else if("Long"===n.getType())this.setPropertyValue(n.getName(),parseInt(i));else if("Double"===n.getType())this.setPropertyValue(n.getName(),parseFloat(i));else if("Boolean"===n.getType())this.setPropertyValue(n.getName(),!0===i);else if("DateTime"===n.getType()){var a=o.utc(i);this.setPropertyValue(n.getName(),a)}else this.setPropertyValue(n.getName(),i)}}}},{key:"instanceOf",value:function(e){var t=this.getClassDeclaration();if(t.getFullyQualifiedName()===e)return!0;for(var r=t.getSuperTypeDeclaration();r;){if(r.getFullyQualifiedName()===e)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"toJSON",value:function(){throw new Error("Use Serializer.toJSON to convert resource instances to JSON objects.")}}])&&n(t.prototype,r),e}();e.exports=a},8938:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},i.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=r(1104).TypedStack,f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,r,n,a,f=(n=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(n);if(a){var r=c(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function p(e,t,r,n,o,i,a){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(s=f.call(this,e,t,r,n,o,i)).$validator=a,s}return t=p,(r=[{key:"setPropertyValue",value:function(e,t){var r=this.getClassDeclaration().getProperty(e);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+e+" which is not declared in the model.");var n={};n.stack=new l(t),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),i(c(p.prototype),"setPropertyValue",this).call(this,e,t)}},{key:"addArrayValue",value:function(e,t){var r=this.getClassDeclaration().getProperty(e);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+e+" which is not declared in the model.");if(!r.isArray())throw new Error("The instance with id "+this.getIdentifier()+" trying to add array item "+e+" which is not declared as an array in the model.");var n={},o=[];this[e]&&(o=this[e].slice(0)),o.push(t),n.stack=new l(o),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),i(c(p.prototype),"addArrayValue",this).call(this,e,t)}},{key:"validate",value:function(){var e=this.getClassDeclaration(),t={};t.stack=new l(this),t.modelManager=this.getModelManager(),t.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),e.accept(this.$validator,t)}}])&&o(t.prototype,r),p}(r(8031));e.exports=f},1997:function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=r(2203),c=r(3255).Parser,l=r(1104).DefaultFileLoader,f=r(3407),p=r(4975),d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o,i,d;return t=e,null,r=[{key:"addModel",value:(d=a(regeneratorRuntime.mark((function e(t,r,n){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,!t.accepts(n)){e.next=7;break}return e.next=4,t.load(n);case 4:o=e.sent,e.next=10;break;case 7:i=u.readFileSync(n,"utf8"),a=c.parse(i,n),o=new f(r,a,i,n);case 10:return r.addModelFile(o,null,o.getName(),!0),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e)}))),function(e,t,r){return d.apply(this,arguments)})},{key:"loadModelManager",value:(i=a(regeneratorRuntime.mark((function t(r){var o,i,a,s,u,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=h.length>1&&void 0!==h[1]?h[1]:{offline:!1},i=new p(o),a=new l((function(e,t){var r=c.parse(t);return new f(i,r,t,e)})),s=n(r),t.prev=5,s.s();case 7:if((u=s.n()).done){t.next=14;break}return d=u.value,t.next=11,e.addModel(a,i,d);case 11:i=t.sent;case 12:t.next=7;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(5),s.e(t.t0);case 19:return t.prev=19,s.f(),t.finish(19);case 22:if(!o||!o.offline){t.next=27;break}return i.validateModelFiles(),t.abrupt("return",i);case 27:return t.next=29,i.updateExternalModels();case 29:return t.abrupt("return",i);case 30:case"end":return t.stop()}}),t,null,[[5,16,19,22]])}))),function(e){return i.apply(this,arguments)})},{key:"loadModelManagerFromModelFiles",value:(o=a(regeneratorRuntime.mark((function e(t,r){var n,o,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:{offline:!1},(o=new p(n)).addModelFiles(t,r,!0),!n||!n.offline){e.next=8;break}return o.validateModelFiles(),e.abrupt("return",o);case 8:return e.next=10,o.updateExternalModels();case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)}))),function(e,t){return o.apply(this,arguments)})}],r&&s(t,r),e}();e.exports=d},4975:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(3255).Parser,c=r(9379),l=r(5130)("concerto:BaseModelManager"),f=function(e,t){return{ast:u.parse(t,e),definitions:t,fileName:e}},p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(p,e);var t,r,n,u,c=(n=p,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),c.call(this,e,f)}return t=p,(r=[{key:"addCTOModel",value:function(e,t,r){return l("addCTOModel","addCTOModel",e,t),this.addModel(e,e,t,r)}}])&&o(t.prototype,r),p}(c);e.exports=p},6697:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(5338),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"getShortName",value:function(e){var t=e,r=e.lastIndexOf(".");return r>-1&&(t=e.substr(r+1)),t}},{key:"getNamespace",value:function(e){if(!e)throw new Error(o.formatMessage("modelutil-getnamespace-nofnq"));var t="",r=e.lastIndexOf(".");return r>-1&&(t=e.substr(0,r)),t}},{key:"importFullyQualifiedName",value:function(e){return"concerto.metamodel.ImportAll"===e.$class?"".concat(e.namespace,".*"):"".concat(e.namespace,".").concat(e.name)}},{key:"isPrimitiveType",value:function(e){return["Boolean","String","DateTime","Double","Integer","Long"].indexOf(e)>=0}},{key:"isAssignableTo",value:function(t,r,n){var o=n.getFullyQualifiedTypeName(),i=r===o;if(i||e.isPrimitiveType(r)||e.isPrimitiveType(o))return i;var a=t.getType(r);if(!a)throw new Error("Cannot find type "+r);return a.getAllSuperTypeDeclarations().some((function(e){return e.getFullyQualifiedName()===o}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"isEnum",value:function(e){var t=e.getParent().getModelFile().getType(e.getType());return null!==t&&t.isEnum()}},{key:"getFullyQualifiedName",value:function(e,t){return e?"".concat(e,".").concat(t):t}}],null&&n(t.prototype,null),r&&n(t,r),e}();e.exports=i},4449:function(e,t,r){"use strict";var n=r(4376);e.exports={rootModelFile:"concerto.cto",rootModelCto:"namespace concerto\nabstract concept Concept {}\nabstract concept Asset identified {}\nabstract concept Participant identified {}\nabstract concept Transaction {}\nabstract concept Event {}\n",rootModelAst:n}},9022:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,e)}return s}(r(1104).BaseException);e.exports=s},6972:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(1104).TypedStack,i=r(7663),a=r(5338),s=r(7724),u=r(6235),c=r(2989),l=r(1399),f={validate:!0,ergo:!1,utcOffset:i.setCurrentTime().utcOffset};void 0===r.g&&(r(6938),r(4975),r(8031));var p=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error(a.formatMessage("serializer-constructor-factorynull"));if(!r)throw new Error(a.formatMessage("serializer-constructor-modelmanagernull"));this.factory=t,this.modelManager=r,this.defaultOptions=Object.assign({},f,n||{})}var t,r;return t=e,(r=[{key:"setDefaultOptions",value:function(e){this.defaultOptions=Object.assign({},f,e)}},{key:"toJSON",value:function(e,t){if(!(e instanceof c))throw new Error(a.formatMessage("serializer-tojson-notcobject"));var r={};r.stack=new o(e),r.modelManager=this.modelManager,r.seenResources=new Set,r.dedupeResources=new Set;var n=this.modelManager.getType(e.getFullyQualifiedType());if((t=t?Object.assign({},this.defaultOptions,t):this.defaultOptions).validate){var i=new l(t);n.accept(i,r)}var u=new s(!0===t.convertResourcesToRelationships,!0===t.permitResourcesForRelationships,!0===t.deduplicateResources,!0===t.convertResourcesToId,!0===t.ergo,t.utcOffset);return r.stack.clear(),r.stack.push(e),n.accept(u,r)}},{key:"fromJSON",value:function(e,t){if((t=t?Object.assign({},this.defaultOptions,t):this.defaultOptions)&&!0===t.ergo){var r=e.$class.$coll[0];(e=e.$data).$class=r}if(!e.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier.");var n,i=this.modelManager.getType(e.$class);if(i.isTransaction())n=this.factory.newTransaction(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else if(i.isEvent())n=this.factory.newEvent(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else if(i.isConcept())n=this.factory.newConcept(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()]);else{if(i.isEnum())throw new Error("Attempting to create an ENUM declaration is not supported.");n=this.factory.newResource(i.getNamespace(),i.getName(),e[i.getIdentifierFieldName()])}var a={};a.jsonStack=new o(e),a.resourceStack=new o(n),a.modelManager=this.modelManager,a.factory=this.factory;var s=new u(!0===t.acceptResourcesForRelationships,!0===t.ergo,t.utcOffset);return i.accept(s,a),t.validate&&n.validate(),n}}])&&n(t.prototype,r),e}();e.exports=p},97:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(6697),a=r(9736),s=r(5338),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r,o=t.stack.pop(),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(e.getProperties());try{for(i.s();!(r=i.n()).done;){var s=r.value;if(t.includeOptionalFields||!s.isOptional()){var u=o[s.getName()];a.isNull(u)&&(o[s.getName()]=s.accept(this,t))}}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"visitField",value:function(e,t){var r,n=this;if(e.isPrimitive())t.seen.push("Primitve");else{var o=e.getFullyQualifiedTypeName(),i=t.modelManager.getType(o),a=(i=this.findConcreteSubclass(i)).getFullyQualifiedName();if(t.seen.includes(a)){if(e.isArray())return[];if(e.isOptional())return null;throw new Error("Model is recursive.")}t.seen.push(a)}return r=e.isArray()?t.valueGenerator.getArray((function(){return n.getFieldValue(e,t)})):this.getFieldValue(e,t),t.seen.pop(),r}},{key:"getFieldValue",value:function(e,t){var r=e.getFullyQualifiedTypeName();if(i.isPrimitiveType(r))switch(r){case"DateTime":return t.valueGenerator.getDateTime();case"Integer":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getInteger();case"Long":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getLong();case"Double":return e.validator?t.valueGenerator.getRange(e.validator.lowerBound,e.validator.upperBound,r):t.valueGenerator.getDouble();case"Boolean":return t.valueGenerator.getBoolean();default:return e.validator?t.valueGenerator.getRegex(e.validator.regex):t.valueGenerator.getString()}var n=t.modelManager.getType(r);if(n.isEnum()){var o=n.getOwnProperties();return t.valueGenerator.getEnum(o).getName()}var a=null;(n=this.findConcreteSubclass(n)).isIdentified()&&(a=this.generateRandomId(n));var s=t.factory.newResource(n.getNamespace(),n.getName(),a);return t.stack.push(s),n.accept(this,t)}},{key:"findConcreteSubclass",value:function(e){if(!e.isAbstract())return e;var t=e.getAssignableClassDeclarations().filter((function(e){return!e.isAbstract()}));if(0===t.length){var r=s.messageFormatter("instancegenerator-newinstance-noconcreteclass");throw new Error(r({type:e.getFullyQualifiedName()}))}return t[0]}},{key:"visitRelationshipDeclaration",value:function(e,t){var r=this,n=t.modelManager.getType(e.getFullyQualifiedTypeName());n=this.findConcreteSubclass(n);var o=t.factory,i=function(){var e=r.generateRandomId(n);return o.newRelationship(n.getNamespace(),n.getName(),e)};return e.isArray()?t.valueGenerator.getArray(i):i()}},{key:"generateRandomId",value:function(e){var t=Math.round(9999*Math.random()).toString();return t.padStart(4,"0")}}])&&o(t.prototype,r),e}();e.exports=u},7724:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=r(8031),i=r(2989),a=r(6697),s=r(9736),u=function(){function e(t,r,n,o,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.convertResourcesToRelationships=t,this.permitResourcesForRelationships=r,this.deduplicateResources=n,this.convertResourcesToId=o,this.ergo=i,this.utcOffset=a||0}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r=t.stack.pop();if(!(r instanceof o))throw new Error("Expected a Resource, but found "+r);var n={},i=null;if(r.isIdentifiable()&&this.deduplicateResources){if(i=r.toURI(),t.dedupeResources.has(i))return i;t.dedupeResources.add(i)}n.$class=e.getFullyQualifiedName(),this.deduplicateResources&&i&&(n.$id=i);var a=e.getProperties();for(var u in a){var c=a[u],l=r[c.getName()];s.isNull(l)?this.ergo&&(n[c.getName()]={$right:null}):(t.stack.push(l),n[c.getName()]=c.accept(this,t))}if(this.ergo){var f=n.$class;delete n.$class,n={$class:{$coll:[f],$length:1},$data:n}}return n}},{key:"visitField",value:function(e,t){var r,n=t.stack.pop();if(e.isArray()){var o=[];for(var s in n){var u=n[s];if(e.isPrimitive()||a.isEnum(e))o.push(this.convertToJSON(e,u));else{t.stack.push(u,i);var c=t.modelManager.getType(u.getFullyQualifiedType());o.push(c.accept(this,t))}}r=this.ergo?{$coll:o,$length:o.length}:o}else if(e.isPrimitive())r=this.convertToJSON(e,n);else if(a.isEnum(e))if(this.ergo){for(var l=e.getParent().getModelFile().getType(e.getType()),f=l.getFullyQualifiedName(),p=l.getProperties(),d={$left:n},h=0;h<p.length&&p[h].getName()!==n;h++)d={$right:d};r={$class:[f],$data:d}}else r=this.convertToJSON(e,n);else t.stack.push(n),r=t.modelManager.getType(n.getFullyQualifiedType()).accept(this,t);return e.isOptional()&&this.ergo&&(r=r?{$left:r}:{$right:r}),r}},{key:"convertToJSON",value:function(e,t){switch(e.getType()){case"DateTime":var r=t.utc().utcOffset(this.utcOffset);if(this.ergo)return r;var n=0===r.utcOffset();return r.format("YYYY-MM-DDTHH:mm:ss.SSS".concat(n?"[Z]":"Z"));case"Integer":case"Long":return this.ergo?{$nat:t}:t;default:return t}}},{key:"visitRelationshipDeclaration",value:function(e,t){var r,n=t.stack.pop();if(e.isArray()){var i=[];for(var a in n){var s=n[a];if(this.permitResourcesForRelationships&&s instanceof o){var u=s.getFullyQualifiedIdentifier();if(t.seenResources.has(u)){var c=this.getRelationshipText(e,s);i.push(c)}else{t.seenResources.add(u),t.stack.push(s,o);var l=t.modelManager.getType(e.getFullyQualifiedTypeName());i.push(l.accept(this,t)),t.seenResources.delete(u)}}else{var f=this.getRelationshipText(e,s);i.push(f)}}r=this.ergo?{$coll:i,$length:i.length}:i}else if(this.permitResourcesForRelationships&&n instanceof o){var p=n.getFullyQualifiedIdentifier();t.seenResources.has(p)?r=this.getRelationshipText(e,n):(t.seenResources.add(p),t.stack.push(n,o),r=t.modelManager.getType(e.getFullyQualifiedTypeName()).accept(this,t),t.seenResources.delete(p))}else r=this.getRelationshipText(e,n);return r}},{key:"getRelationshipText",value:function(e,t){if(t instanceof o&&!this.convertResourcesToRelationships&&!this.permitResourcesForRelationships)throw new Error("Did not find a relationship for "+e.getFullyQualifiedTypeName()+" found "+t);return this.convertResourcesToId?t.getIdentifier():t.toURI()}}])&&n(t.prototype,r),e}();e.exports=u},6235:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4469),a=r(9736),s=r(6697),u=r(9557),c=r(8879),l=r(264);c.extend(l);var f=r(3134);c.extend(f);var p=r(7995);c.extend(p);var d=r(4989);c.extend(d);var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.acceptResourcesForRelationships=t,this.ergo=r,this.utcOffset=n||0}var t,r;return t=e,(r=[{key:"visit",value:function(e,t){var r,n,o;if(null!==(r=e.isClassDeclaration)&&void 0!==r&&r.call(e))return this.visitClassDeclaration(e,t);if(null!==(n=e.isRelationship)&&void 0!==n&&n.call(e))return this.visitRelationshipDeclaration(e,t);if(null!==(o=e.isField)&&void 0!==o&&o.call(e))return this.visitField(e,t);throw new Error("Unrecognised "+JSON.stringify(e))}},{key:"visitClassDeclaration",value:function(e,t){var r,n=this,o=t.jsonStack.pop(),i=t.resourceStack.pop(),s=(r=o,Object.keys(r).filter((function(e){return!(e.startsWith("$")||a.isNull(r[e]))})));return function(e,t){var r=t.getProperties().map((function(e){return e.getName()})),n=e.filter((function(e){return!r.includes(e)}));if(n.length>0){var o="Unexpected properties for type ".concat(t.getFullyQualifiedName(),": ")+n.join(", ");throw new u(o)}}(s,e),s.forEach((function(r){var a=o[r];if(n.ergo&&(Object.prototype.hasOwnProperty.call(a,"$left")?a=a.$left:Object.prototype.hasOwnProperty.call(a,"$right")&&(a=a.$right)),null!==a){t.jsonStack.push(a);var s=e.getProperty(r);i[r]=s.accept(n,t)}})),i}},{key:"visitField",value:function(e,t){var r=t.jsonStack.pop(),n=null;if(e.isArray()){this.ergo&&Object.prototype.hasOwnProperty.call(r,"$coll")&&(r=r.$coll.slice(0,r.$length)),n=[];for(var o=0;o<r.length;o++){var i=r[o];n.push(this.convertItem(e,i,t))}}else n=this.convertItem(e,r,t);return n}},{key:"convertItem",value:function(e,t,r){var n=null;if(e.isPrimitive()||e.isTypeEnum())n=this.convertToObject(e,t);else{if(this.ergo){var o=t.$class.$coll[0];(t=t.$data).$class=o}var i=t.$class;i||(i=e.getFullyQualifiedTypeName());var a,s=r.modelManager.getType(i);n=a=s.isIdentified()?r.factory.newResource(s.getNamespace(),s.getName(),t[s.getIdentifierFieldName()]):r.factory.newConcept(s.getNamespace(),s.getName()),r.resourceStack.push(a),r.jsonStack.push(t),s.accept(this,r)}return n}},{key:"convertToObject",value:function(e,t){var r=null;switch(e.getType()){case"DateTime":if(t&&"object"===n(t)&&"function"==typeof t.isBefore)r=t;else{if("string"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=c.utc(t).utcOffset(this.utcOffset)}if(!r.isValid())throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));break;case"Integer":case"Long":var o=this.ergo?t.$nat:t;if("number"!=typeof o)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));if(Math.trunc(o)!==o)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=o;break;case"Double":if("number"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=parseFloat(t);break;case"Boolean":if("boolean"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=t;break;case"String":if("string"!=typeof t)throw new u("Expected value ".concat(JSON.stringify(t)," to be of type ").concat(e.getType()));r=t;break;default:if(this.ergo){for(var i=t.$data;!i.$left;)i=i.$right;r=i.$left}else r=t}return r}},{key:"visitRelationshipDeclaration",value:function(e,t){var r=t.jsonStack.pop(),n=null,o=e.getFullyQualifiedTypeName(),a=s.getNamespace(o);a||(a=e.getNamespace());var u=s.getShortName(o);if(e.isArray()){n=[],this.ergo&&Object.prototype.hasOwnProperty.call(r,"$coll")&&(r=r.$coll.slice(0,r.$length));for(var c=0;c<r.length;c++){var l=r[c];if("string"==typeof l)n.push(i.fromURI(t.modelManager,l,a,u));else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+r+" for relationship "+e);if(!l.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+l+" for relationship "+e);if(this.ergo){var f=r.$class.$coll[0];(r=r.$data).$class=f}var p=t.modelManager.getType(l.$class),d=t.factory.newResource(p.getNamespace(),p.getName(),l[p.getIdentifierFieldName()]);t.jsonStack.push(l),t.resourceStack.push(d),p.accept(this,t),n.push(d)}}}else if("string"==typeof r)n=i.fromURI(t.modelManager,r,a,u);else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+r+" for relationship "+e);if(!r.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+r+" for relationship "+e);if(this.ergo){var h=r.$class.$coll[0];(r=r.$data).$class=h}var m=t.modelManager.getType(r.$class),y=t.factory.newResource(m.getNamespace(),m.getName(),r[m.getIdentifierFieldName()]);t.jsonStack.push(r),t.resourceStack.push(y),m.accept(this,t),n=y}return n}}])&&o(t.prototype,r),e}();e.exports=h},1607:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(9736),a=r(6697),s=r(9557),u=r(5338),c=r(8879),l=r(264);c.extend(l);var f=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r||{},this.concerto=t,!this.concerto)throw new Error("Missing concerto instance")}var t,r,l;return t=e,l=[{key:"reportFieldTypeViolation",value:function(e,t,r,o,i){var a=o.isArray()?"[]":"",c=n(r);if(i.isObject(r)&&i.isIdentifiable(r))c=r.getFullyQualifiedType(),r=r.getFullyQualifiedIdentifier();else if(r)try{r=JSON.stringify(r)}catch(e){r=r.toString()}var l=u.messageFormatter("resourcevalidator-fieldtypeviolation");throw new s(l({resourceId:e,propertyName:t,fieldType:o.getType()+a,value:r,typeOfValue:c}))}},{key:"reportNotRelationshipViolation",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-notrelationship");throw new s(n({resourceId:e,classFQN:t.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(e,t){var r=u.messageFormatter("resourcevalidator-missingrequiredproperty");throw new s(r({resourceId:e,fieldName:t.getName()}))}},{key:"reportEmptyIdentifier",value:function(e){var t=u.messageFormatter("resourcevalidator-emptyidentifier");throw new s(t({resourceId:e}))}},{key:"reportInvalidEnumValue",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-invalidenumvalue");throw new s(n({resourceId:e,value:r,fieldName:t.getName()}))}},{key:"reportAbstractClass",value:function(e){var t=u.messageFormatter("resourcevalidator-abstractclass");throw new s(t({className:e.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(e,t,r){var n=u.messageFormatter("resourcevalidator-undeclaredfield");throw new s(n({resourceId:e,propertyName:t,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(e,t,r,n){var o=u.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new s(o({resourceId:e,propertyName:t,objectType:r.$class,fieldType:i}))}}],(r=[{key:"visit",value:function(e,t){var r,n,o,i;return null!==(r=e.isEnum)&&void 0!==r&&r.call(e)?this.visitEnumDeclaration(e,t):null!==(n=e.isClassDeclaration)&&void 0!==n&&n.call(e)?this.visitClassDeclaration(e,t):null!==(o=e.isRelationship)&&void 0!==o&&o.call(e)?this.visitRelationshipDeclaration(e,t):null!==(i=e.isField)&&void 0!==i&&i.call(e)?this.visitField(e,t):void 0}},{key:"visitEnumDeclaration",value:function(t,r){for(var n=r.stack.pop(),o=t.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||e.reportInvalidEnumValue(r.rootResourceIdentifier,t,n),null}},{key:"visitClassDeclaration",value:function(t,r){var n=r.stack.pop();this.concerto.isIdentifiable(n)&&(r.rootResourceIdentifier=this.concerto.getFullyQualifiedIdentifier(n));var o=this.concerto.getModelManager().getType(n.$class),a=o.getFullyQualifiedName();o.isAbstract()&&e.reportAbstractClass(o);for(var s=Object.getOwnPropertyNames(n),u=0;u<s.length;u++){var c=s[u];this.isSystemProperty(c)||o.getProperty(c)||(this.concerto.isIdentifiable(n)?e.reportUndeclaredField(this.concerto.getIdentifier(n),c,a):e.reportUndeclaredField(r.currentIdentifier,c,a))}if(this.concerto.isIdentifiable(n)){var l=this.concerto.getIdentifier(n);l&&0!==l.trim().length||e.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=this.concerto.getFullyQualifiedIdentifier(n)}for(var f=o.getProperties(),p=0;p<f.length;p++){var d=f[p],h=n[d.getName()];i.isNull(h)?d.isOptional()||this.isSystemProperty(d.getName())||e.reportMissingRequiredProperty(r.rootResourceIdentifier,d):(r.stack.push(h),d.accept(this,r))}return null}},{key:"isSystemProperty",value:function(e){return"$"===e.charAt(0)}},{key:"visitField",value:function(t,r){var o=r.stack.pop(),i=n(o),a=t.getName();return"symbol"===i&&e.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,t,this.concerto),t.isTypeEnum()?this.checkEnum(o,t,r):t.isArray()?this.checkArray(o,t,r):this.checkItem(o,t,r),null}},{key:"checkEnum",value:function(t,r,n){!r.isArray()||t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r,this.concerto);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<t.length;i++){var a=t[i];n.stack.push(a),o.accept(this,n)}else{var s=t;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(t,r,n){t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r,this.concerto);for(var o=0;o<t.length;o++){var i=t[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(t,r,o){var i=n(t),s=r.getName();if("symbol"===i&&e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Double":case"Long":case"Integer":"number"!==i&&(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"string"==typeof t&&c.utc(t).isValid()||(u=!0)}u?e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,t)}else{var l=this.concerto.getModelManager().getType(r.getFullyQualifiedTypeName());try{l=this.concerto.getModelManager().getType(t.$class)}catch(n){e.reportFieldTypeViolation(o.rootResourceIdentifier,s,t,r,this.concerto)}a.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(o.rootResourceIdentifier,s,t,r),o.stack.push(t),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(t,r){var n=r.stack.pop();if(t.isArray()){n instanceof Array||e.reportInvalidFieldAssignment(r.rootResourceIdentifier,t.getName(),n,t);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,t,i)}}else this.checkRelationship(r,t,n);return null}},{key:"checkRelationship",value:function(t,r,n){this.concerto.isRelationship(n)||this.concerto.isIdentifiable(n)&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||e.reportNotRelationshipViolation(t.rootResourceIdentifier,r,n);var o=this.concerto.isRelationship(n)?this.concerto.fromURI(n).typeDeclaration:this.concerto.getTypeDeclaration(n);if(!o.getIdentifierFieldName())throw new Error("Relationship can only be to identified types.");a.isAssignableTo(o.getModelFile(),o.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(t.rootResourceIdentifier,r.getName(),n,r)}}])&&o(t.prototype,r),l&&o(t,l),e}();e.exports=f},1399:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=r(4469),a=r(8031),s=r(8894),u=r(9736),c=r(6697),l=r(9557),f=r(5338),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t||{}}var t,r,p;return t=e,p=[{key:"reportFieldTypeViolation",value:function(e,t,r,o){var i=o.isArray()?"[]":"",a=n(r);if(r instanceof s)a=r.getFullyQualifiedType(),r=r.getFullyQualifiedIdentifier();else if(r)try{r="number"!=typeof r||isFinite(r)?JSON.stringify(r):r.toString()}catch(e){r=r.toString()}var u=f.messageFormatter("resourcevalidator-fieldtypeviolation");throw new l(u({resourceId:e,propertyName:t,fieldType:o.getType()+i,value:r,typeOfValue:a}))}},{key:"reportNotResouceViolation",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-notresourceorconcept");throw new l(n({resourceId:e,classFQN:t.getFullyQualifiedName(),invalidValue:r.toString()}))}},{key:"reportNotRelationshipViolation",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-notrelationship");throw new l(n({resourceId:e,classFQN:t.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(e,t){var r=f.messageFormatter("resourcevalidator-missingrequiredproperty");throw new l(r({resourceId:e,fieldName:t.getName()}))}},{key:"reportEmptyIdentifier",value:function(e){var t=f.messageFormatter("resourcevalidator-emptyidentifier");throw new l(t({resourceId:e}))}},{key:"reportInvalidEnumValue",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-invalidenumvalue");throw new l(n({resourceId:e,value:r,fieldName:t.getName()}))}},{key:"reportAbstractClass",value:function(e){var t=f.messageFormatter("resourcevalidator-abstractclass");throw new l(t({className:e.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(e,t,r){var n=f.messageFormatter("resourcevalidator-undeclaredfield");throw new l(n({resourceId:e,propertyName:t,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(e,t,r,n){var o=f.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new l(o({resourceId:e,propertyName:t,objectType:r.getFullyQualifiedType(),fieldType:i}))}}],(r=[{key:"visit",value:function(e,t){var r,n,o,i;return null!==(r=e.isEnum)&&void 0!==r&&r.call(e)?this.visitEnumDeclaration(e,t):null!==(n=e.isClassDeclaration)&&void 0!==n&&n.call(e)?this.visitClassDeclaration(e,t):null!==(o=e.isRelationship)&&void 0!==o&&o.call(e)?this.visitRelationshipDeclaration(e,t):null!==(i=e.isField)&&void 0!==i&&i.call(e)?this.visitField(e,t):void 0}},{key:"visitEnumDeclaration",value:function(t,r){for(var n=r.stack.pop(),o=t.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||e.reportInvalidEnumValue(r.rootResourceIdentifier,t,n),null}},{key:"visitClassDeclaration",value:function(t,r){var n=r.stack.pop();n instanceof a||e.reportNotResouceViolation(r.rootResourceIdentifier,t,n),n instanceof s&&(r.rootResourceIdentifier=n.getFullyQualifiedIdentifier());var o=r.modelManager.getType(n.getFullyQualifiedType()),i=o.getFullyQualifiedName();o.isAbstract()&&e.reportAbstractClass(o);for(var c=Object.getOwnPropertyNames(n),l=0;l<c.length;l++){var f=c[l];this.isSystemProperty(f)||o.getProperty(f)||(t.isIdentified()?e.reportUndeclaredField(n.getIdentifier(),f,i):e.reportUndeclaredField(r.currentIdentifier,f,i))}if(t.isIdentified()){var p=n.getIdentifier();p&&0!==p.trim().length||e.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=n.getFullyQualifiedIdentifier()}for(var d=o.getProperties(),h=0;h<d.length;h++){var m=d[h],y=n[m.getName()];u.isNull(y)?m.isOptional()||e.reportMissingRequiredProperty(r.rootResourceIdentifier,m):(r.stack.push(y),m.accept(this,r))}return null}},{key:"isSystemProperty",value:function(e){return"$"===e.charAt(0)}},{key:"visitField",value:function(t,r){var o=r.stack.pop(),i=n(o),a=t.getName();return"undefined"!==i&&"symbol"!==i||e.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,t),t.isTypeEnum()?this.checkEnum(o,t,r):t.isArray()?this.checkArray(o,t,r):this.checkItem(o,t,r),null}},{key:"checkEnum",value:function(t,r,n){!r.isArray()||t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<t.length;i++){var a=t[i];n.stack.push(a),o.accept(this,n)}else{var s=t;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(t,r,n){t instanceof Array||e.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),t,r);for(var o=0;o<t.length;o++){var i=t[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(t,r,o){var i=n(t),a=r.getName();if("undefined"!==i&&"symbol"!==i||e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Long":case"Integer":case"Double":"number"!==i&&(u=!0),isFinite(t)||(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"object"===n(t)&&"function"==typeof t.isBefore||(u=!0)}u?e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,t)}else{var l=o.modelManager.getType(r.getFullyQualifiedTypeName());if(t instanceof s){try{l=o.modelManager.getType(t.getFullyQualifiedType())}catch(n){e.reportFieldTypeViolation(o.rootResourceIdentifier,a,t,r)}c.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||e.reportInvalidFieldAssignment(o.rootResourceIdentifier,a,t,r)}o.stack.push(t),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(t,r){var n=r.stack.pop();if(t.isArray()){n instanceof Array||e.reportInvalidFieldAssignment(r.rootResourceIdentifier,t.getName(),n,t);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,t,i)}}else this.checkRelationship(r,t,n);return null}},{key:"checkRelationship",value:function(t,r,n){n instanceof i||n instanceof a&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||e.reportNotRelationshipViolation(t.rootResourceIdentifier,r,n);var o=t.modelManager.getType(n.getFullyQualifiedType());if(!o.getIdentifierFieldName())throw new Error("Cannot have a relationship to a field that is not identifiable.");c.isAssignableTo(o.getModelFile(),n.getFullyQualifiedType(),r)||e.reportInvalidFieldAssignment(t.rootResourceIdentifier,r.getName(),n,r)}}])&&o(t.prototype,r),p&&o(t,p),e}();e.exports=p},9557:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function s(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,e,t)}return s}(r(1104).BaseException);e.exports=s},3232:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var l=r(2788).loremIpsum,f=r(6116),p=r(8879),d=r(264);p.extend(d);var h=function(e,t,r,n,o){return null===e&&(e=n),e=Math.min(Math.max(e,n),o),(null===t||t>o)&&(t=o),t=Math.max(Math.min(t,o),n),t+=r,t/=r,e/=r,(Math.random()*(t-e)+e)/(1/r)},m=function(e,t,r){var n=e,o=t;switch(null!==o&&null!==n&&o<n&&(n=t,o=e),r){case"Long":return Math.floor(h(n,o,1,-Math.pow(2,32),Math.pow(2,32)));case"Integer":return Math.floor(h(n,o,1,-Math.pow(2,16),Math.pow(2,16)));case"Double":return Number(h(n,o,1e-4,-Math.pow(2,8),Math.pow(2,8)).toFixed(3));default:return 0}},y=function(){function e(){s(this,e),this.currentDate=p.utc()}return c(e,[{key:"getDateTime",value:function(){return this.currentDate}},{key:"getInteger",value:function(){return 0}},{key:"getLong",value:function(){return 0}},{key:"getDouble",value:function(){return 0}},{key:"getBoolean",value:function(){return!1}},{key:"getString",value:function(){return""}},{key:"getEnum",value:function(e){return e[0]}},{key:"getArray",value:function(e){return[]}},{key:"getRegex",value:function(e){return e?new f(e).gen():""}},{key:"getRange",value:function(e,t,r){return m(e,t,r)}}]),e}(),g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(u,e);var t,r,n=(t=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=a(t);if(r){var o=a(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return i(this,e)});function u(){return s(this,u),n.call(this)}return c(u,[{key:"getInteger",value:function(){return Math.round(Math.random()*Math.pow(2,16))}},{key:"getLong",value:function(){return Math.round(Math.random()*Math.pow(2,32))}},{key:"getDouble",value:function(){return Number((Math.random()*Math.pow(2,8)).toFixed(3))}},{key:"getBoolean",value:function(){return 1===Math.round(Math.random())}},{key:"getString",value:function(){return l({count:1,units:"sentences",sentenceLowerBound:1,sentenceUpperBound:5})}},{key:"getEnum",value:function(e){return e[Math.floor(Math.random()*e.length)]}},{key:"getArray",value:function(e){return[e()]}},{key:"getRegex",value:function(e){return e?new f(e).gen():""}},{key:"getRange",value:function(e,t,r){return m(e,t,r)}}]),u}(y),v=function(){function e(){s(this,e)}return c(e,null,[{key:"empty",value:function(){return new y}},{key:"sample",value:function(){return new g}}]),e}();e.exports=v},5400:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var u=r(1104).BaseException,c=r(5338),l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,r,n,u,l=(n=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(u){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function f(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t||(t=c.messageFormatter("typenotfounderror-defaultmessage")({typeName:e})),(n=l.call(this,t,r)).typeName=e,n}return t=f,(r=[{key:"getTypeName",value:function(){return this.typeName}}])&&o(t.prototype,r),f}(u);e.exports=l},9736:function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,n;return r=e,n=[{key:"isNull",value:function(e){return null==e}}],null&&t(r.prototype,null),n&&t(r,n),e}();e.exports=r},5618:function(e,t,r){"use strict";const n=r(8102),o=r(9640),i=r(8334).stdout,a=r(5625),s="win32"===process.platform&&!({NODE_ENV:"production"}.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),l=Object.create(null);function f(e,t){t=t||{};const r=i?i.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function p(e){if(!this||!(this instanceof p)||this.template){const t={};return f(t,e),t.template=function(){const e=[].slice.call(arguments);return y.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=p,t.template}f(this,e)}s&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),l[e]={get(){const t=o[e];return h.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};l.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))c.has(e)||(l[e]={get(){const t=this.level;return function(){const r=o.color[u[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi))c.has(e)||(l["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[u[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const d=Object.defineProperties((()=>{}),l);function h(e,t,r){const n=function(){return m.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=d,n}function m(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;s&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,r}function y(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return a(e,n.join(""))}Object.defineProperties(p.prototype,l),e.exports=p(),e.exports.supportsColor=i,e.exports.default=e.exports},5625:function(e){"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function s(e,t){const r=[],i=t.trim().split(/\s*,\s*/g);let s;for(const t of i)if(isNaN(t)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(o,((e,t,r)=>t?a(t):r)))}else r.push(Number(t));return r}function u(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=s(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function c(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,r)=>{const n=[],o=[];let i=[];if(r.replace(t,((t,r,s,l,f,p)=>{if(r)i.push(a(r));else if(l){const t=i.join("");i=[],o.push(0===n.length?t:c(e,n)(t)),n.push({inverse:s,styles:u(l)})}else if(f){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(e,n)(i.join(""))),i=[],n.pop()}else i.push(p)})),o.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},4959:function(e,t,r){var n=r(1103),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(n,o,i),s=Math.max(n,o,i),u=s-a;return s===a?t=0:n===s?t=(o-i)/u:o===s?t=2+(i-n)/u:i===s&&(t=4+(n-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),r=(a+s)/2,[t,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(e){var t,r,n,o,i,a=e[0]/255,s=e[1]/255,u=e[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),f=function(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=f(a),r=f(s),n=f(u),a===c?o=n-r:s===c?o=1/3+t-n:u===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},a.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,i,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(i=e,a=n[u],Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,r,n,o,i,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return[i=255*u,i,i];t=2*u-(r=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[c]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[t,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(e){var t,r,n,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return n=(2-i)*a,r=i*s,[o,100*(r=(r/=(t=(2-i)*s)<=1?t:2-t)||0),100*(n/=2)]},a.hwb.rgb=function(e){var t,r,n,o,i,a,s,u=e[0]/360,c=e[1]/100,l=e[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(n=1-n),o=c+n*((r=1-l)-c),t){default:case 6:case 0:i=r,a=o,s=c;break;case 1:i=o,a=r,s=c;break;case 2:i=c,a=r,s=o;break;case 3:i=c,a=o,s=r;break;case 4:i=o,a=c,s=r;break;case 5:i=r,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(e){var t,r,n,o=e[0]/100,i=e[1]/100,a=e[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),a=Math.pow(t,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},a.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},a.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),s=i-a;return t=s<=0?0:i===r?(n-o)/s%6:i===n?2+(o-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,o=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(o=(n-.5*t)/(1-t)),[e[0],100*t,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=t%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},a.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},a.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},841:function(e,t,r){var n=r(4959),o=r(9325),i={};Object.keys(n).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];i[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},9325:function(e,t,r){var n=r(4959);function o(e,t){return function(r){return t(e(r))}}function i(e,t){for(var r=[t[e].parent,e],i=n[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),i=o(n[t[a].parent][a],i),a=t[a].parent;return i.conversion=r,i}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,s=0;s<a;s++){var u=i[s],c=t[u];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,r.unshift(u))}return t}(e),r={},o=Object.keys(t),a=o.length,s=0;s<a;s++){var u=o[s];null!==t[u].parent&&(r[u]=i(u,t))}return r}},1103:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138:function(e,t,r){var n={};e.exports=n,n.themes={};var o=r(8827),i=n.styles=r(9951),a=Object.defineProperties,s=new RegExp(/[\r\n]+/g);n.supportsColor=r(3613).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=i[t];return!r&&t in n?n[t](e):r.open+e+r.close};var u=/[|\\{}()[\]^$+*?.]/g;function c(e){var t=function e(){return d.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,f=(l={},i.grey=i.gray,Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(u,"\\$&")}(i[e].close),"g"),l[e]={get:function(){return c(this._styles.concat(e))}}})),l),p=a((function(){}),f);function d(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:o.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),a=this._styles,u=a.length;u--;){var c=i[a[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(s,(function(e){return c.close+e+c.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var o=r;for(var i in e[t])o=n[e[t][i]](o);return o}return n[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var h=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var m in n.trap=r(2571),n.zalgo=r(561),n.maps={},n.maps.america=r(6393)(n),n.maps.zebra=r(4035)(n),n.maps.rainbow=r(1374)(n),n.maps.random=r(2987)(n),n.maps)!function(e){n[e]=function(t){return h(n.maps[e],t)}}(m);a(n,function(){var e={};return Object.keys(f).forEach((function(t){e[t]={get:function(){return c([t])}}})),e}())},2571:function(e){e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],o=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][o]:e})),r}},561:function(e){e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(e){return Math.floor(Math.random()*e)}function i(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!i(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],f=0;f<=n[l];f++)t[l]&&(s+=r[l][o(r[l].length)])}return s}(e,t)}},6393:function(e){e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},1374:function(e){e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:e[t[n++%t.length]](r)}}},2987:function(e){e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},4035:function(e){e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},9951:function(e){var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],o=t[e]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},7946:function(e){"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(n+e);return-1!==o&&(-1===r||o<r)}},3613:function(e,t,r){"use strict";var n=r(4055),o=r(7946),i={NODE_ENV:"production"},a=void 0;function s(e){var t=function(e){if(!1===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;var t=a?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in i}))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var s=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:t}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},3384:function(e,t,r){var n=r(138);e.exports=n},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},g={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,u),i=r-o<0,a=t.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var A=function(e){return e instanceof F},E=function(e,t,r){var n;if(!e)return v;if("string"==typeof e)b[e]&&(n=e),t&&(b[e]=t,n=e);else{var o=e.name;b[o]=e,n=o}return!r&&n&&(v=n),n||!r&&v},w=function(e,t){if(A(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new F(r)},C=g;C.l=E,C.i=A,C.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var F=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var r=w(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return w(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<w(e)},y.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,c=!!C.u(t)||t,p=C.p(e),d=function(e,t){var n=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(a)},h=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case l:return c?d(1,0):d(31,11);case u:return c?d(1,y):d(0,y+1);case s:var b=this.$locale().weekStart||0,A=(m<b?m+7:m)-b;return d(c?g-A:g+(6-A),y);case a:case f:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case n:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=C.p(e),p="set"+(this.$u?"UTC":""),d=(s={},s[a]=p+"Date",s[f]=p+"Date",s[u]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[n]=p+"Seconds",s[r]=p+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,c){var f,p=this;r=Number(r);var d=C.p(c),h=function(e){var t=w(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(d===u)return this.set(u,this.$M+r);if(d===l)return this.set(l,this.$y+r);if(d===a)return h(1);if(d===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[n]=1e3,f)[d]||1,y=this.$d.getTime()+r*m;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].substr(0,i)},f=function(e){return C.s(i%12||12,e,"0")},d=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:C.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:o};return n.replace(h,(function(e,t){return t||m[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,p){var d,h=C.p(f),m=w(r),y=(m.utcOffset()-this.utcOffset())*e,g=this-m,v=C.m(this,m);return v=(d={},d[l]=v/12,d[u]=v,d[c]=v/3,d[s]=(g-y)/6048e5,d[a]=(g-y)/864e5,d[i]=g/t,d[o]=g/e,d[n]=g/1e3,d)[h]||g,p?v:C.a(v)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=E(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=F.prototype;return w.prototype=$,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,F,w),e.$i=!0),w},w.locale=E,w.isDayjs=A,w.unix=function(e){return w(1e3*e)},w.en=b[v],w.Ls=b,w.p={},w}()},4989:function(e){e.exports=function(){"use strict";var e,t,r=1e3,n=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof v},p=function(e,t,r){return new v(e,r,t.$l)},d=function(e){return t.p(e)+"s"},h=function(e){return e<0},m=function(e){return h(e)?Math.ceil(e):Math.floor(e)},y=function(e){return Math.abs(e)},g=function(e,t){return e?h(e)?{negative:!0,format:""+y(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function h(e,t,r){var n=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[d(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){n.$d[d(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(c);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var y=h.prototype;return y.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,r){return t+(e.$d[r]||0)*l[r]}),0)},y.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/u),e%=u,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/n),e%=n,this.$d.seconds=m(e/r),e%=r,this.$d.milliseconds=e},y.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=g(r,"D"),o=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=g(a,"S"),u=e.negative||t.negative||n.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+e.format+t.format+n.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(a,(function(e,t){return t||String(n[e])}))},y.as=function(e){return this.$ms/l[d(e)]},y.get=function(e){var t=this.$ms,r=d(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?m(t/l[r]):this.$d[r],0===t?0:t},y.add=function(e,t,r){var n;return n=t?e*l[d(t)]:f(e)?e.$ms:p(e,this).$ms,p(this.$ms+n*(r?-1:1),this)},y.subtract=function(e,t){return this.add(e,t,!0)},y.locale=function(e){var t=this.clone();return t.$l=e,t},y.clone=function(){return p(this.$ms,this)},y.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},h}();return function(r,n,o){e=o,t=o().$utils(),o.duration=function(e,t){var r=o.locale();return p(e,{$l:r},t)},o.isDuration=f;var i=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(e,t){return f(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},n.prototype.subtract=function(e,t){return f(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)}}}()},7995:function(e){e.exports=function(){"use strict";return function(e,t,r){var n=function(e,t){if(!t||!t.length||!t[0]||1===t.length&&!t[0].length)return null;var r;1===t.length&&t[0].length>0&&(t=t[0]),r=t[0];for(var n=1;n<t.length;n+=1)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r};r.max=function(){var e=[].slice.call(arguments,0);return n("isAfter",e)},r.min=function(){var e=[].slice.call(arguments,0);return n("isBefore",e)}}}()},3134:function(e){e.exports=function(){"use strict";var e="month",t="quarter";return function(r,n){var o=n.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(r,n){return r=Number(r),this.$utils().p(n)===t?this.add(3*r,e):i.bind(this)(r,n)};var a=o.startOf;o.startOf=function(r,n){var o=this.$utils(),i=!!o.u(n)||n;if(o.p(r)===t){var s=this.quarter()-1;return i?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(r,n)}}}()},264:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(e,t,r){if(e&&this.$u===e.$u)return p.call(this,e,t,r);var n=this.local(),o=i(e).local();return p.call(n,o,t,r)}}}()},5881:function(e){var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var s,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&isFinite(e))return a.long?(s=e,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=t?i(s,u,t,"second"):s+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5130:function(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e={NODE_ENV:"production"}.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7123)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:function(e,t,r){e.exports=function(e){function t(e){let r,o=null;function i(...e){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=t.formatters[o];if("function"==typeof i){const t=e[s];r=i.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(5881),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},4644:function(e){"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new t(this.low,e.low-1),new t(e.high+1,this.high)]:e.low<=this.low?[new t(e.high+1,this.high)]:[new t(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class r{constructor(e,t){this.ranges=[],this.length=0,null!=e&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce(((e,t)=>e+t.length),0)}add(e,n){var o=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;r.push(e),this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(o):(null==n&&(n=e),o(new t(e,n))),this}subtract(e,n){var o=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)r=r.concat(this.ranges[t].subtract(e)),t++;this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(o):(null==n&&(n=e),o(new t(e,n))),this}intersect(e,n){var o=[],i=e=>{for(var r=0;r<this.ranges.length&&!e.overlaps(this.ranges[r]);)r++;for(;r<this.ranges.length&&e.overlaps(this.ranges[r]);){var n=Math.max(this.ranges[r].low,e.low),i=Math.min(this.ranges[r].high,e.high);o.push(new t(n,i)),r++}};return e instanceof r?e.ranges.forEach(i):(null==n&&(n=e),i(new t(e,n))),this.ranges=o,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new r(this)}numbers(){return this.ranges.reduce(((e,t)=>{for(var r=t.low;r<=t.high;)e.push(r),r++;return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=r},8102:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},9095:function(e,t,r){const n=r(5618),o=r(7485),i={BRACE:"gray",BRACKET:"gray",COLON:"gray",COMMA:"gray",STRING_KEY:"magenta",STRING_LITERAL:"yellow",NUMBER_LITERAL:"green",BOOLEAN_LITERAL:"cyan",NULL_LITERAL:"white"};t.colorize=function(e,t={}){const r=t.colors||{};return e.reduce(((e,t)=>{const a=r[t.type]||i[t.type],s=a&&"#"===a[0]?n.hex(a):o(n,a);return e+(s?s(t.value):t.value)}),"")}},6190:function(e,t,r){const n=r(1024),o=r(9095);e.exports=function(e,t){return o.colorize(n.getTokens(e,t),t)}},1024:function(e,t){const r=[{regex:/^\s+/,tokenType:"WHITESPACE"},{regex:/^[{}]/,tokenType:"BRACE"},{regex:/^[[\]]/,tokenType:"BRACKET"},{regex:/^:/,tokenType:"COLON"},{regex:/^,/,tokenType:"COMMA"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"NUMBER_LITERAL"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"STRING_KEY"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"STRING_LITERAL"},{regex:/^true|^false/,tokenType:"BOOLEAN_LITERAL"},{regex:/^null/,tokenType:"NULL_LITERAL"}];function n(e,t){return(e||{}).length>0&&t}t.getTokens=function(e,t={}){let o;if(t.pretty){const t="string"==typeof e?JSON.parse(e):e;o=JSON.stringify(t,null,2)}else o="string"==typeof e?e:JSON.stringify(e);let i,a=[];do{i=!1;for(let e=0;e<r.length;e++){const t=r[e].regex.exec(o);if(t){a.push({type:r[e].tokenType,value:t[0]}),o=o.substring(t[0].length),i=!0;break}}}while(n(o,i));return a}},7485:function(e,t,r){var n,o="__lodash_hash_undefined__",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,d=f||p||Function("return this")(),h=Array.prototype,m=Function.prototype,y=Object.prototype,g=d["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,A=y.hasOwnProperty,E=y.toString,w=RegExp("^"+b.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=d.Symbol,F=h.splice,$=I(d,"Map"),D=I(Object,"create"),O=C?C.prototype:void 0,P=O?O.toString:void 0;function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function x(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function S(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function I(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!j(e)||v&&v in e)return!1;var t=function(e){var t=j(e)?E.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:l;return t.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}R.prototype.clear=function(){this.__data__=D?D(null):{}},R.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},R.prototype.get=function(e){var t=this.__data__;if(D){var r=t[e];return r===o?void 0:r}return A.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:A.call(t,e)},R.prototype.set=function(e,t){return this.__data__[e]=D&&void 0===t?o:t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,r=x(t,e);return!(r<0||(r==t.length-1?t.pop():F.call(t,r,1),0))},T.prototype.get=function(e){var t=this.__data__,r=x(t,e);return r<0?void 0:t[r][1]},T.prototype.has=function(e){return x(this.__data__,e)>-1},T.prototype.set=function(e,t){var r=this.__data__,n=x(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new R,map:new($||T),string:new R}},k.prototype.delete=function(e){return S(this,e).delete(e)},k.prototype.get=function(e){return S(this,e).get(e)},k.prototype.has=function(e){return S(this,e).has(e)},k.prototype.set=function(e,t){return S(this,e).set(e,t),this};var _=N((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(L(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return s.test(e)&&r.push(""),e.replace(u,(function(e,t,n,o){r.push(n?o.replace(c,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||L(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(N.Cache||k),r}N.Cache=k;var M=Array.isArray;function j(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==E.call(e)}e.exports=function(e,t,r){var n=null==e?void 0:function(e,t){var r;t=function(e,t){if(M(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(r=t)?r:_(r);for(var n=0,o=t.length;null!=e&&n<o;)e=e[B(t[n++])];return n&&n==o?e:void 0}(e,t);return void 0===n?r:n}},7883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMATS=t.FORMAT_PLAIN=t.FORMAT_HTML=void 0;var r="html";t.FORMAT_HTML=r;var n="plain";t.FORMAT_PLAIN=n;var o=[r,n];t.FORMATS=o},779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},6021:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},3353:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},2788:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return i.default}}),t.loremIpsum=void 0;var n,o=r(3353),i=(n=r(5548))&&n.__esModule?n:{default:n};t.loremIpsum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,r=void 0===t?1:t,n=e.format,a=void 0===n?"plain":n,s=e.paragraphLowerBound,u=void 0===s?3:s,c=e.paragraphUpperBound,l=void 0===c?7:c,f=e.random,p=e.sentenceLowerBound,d=void 0===p?5:p,h=e.sentenceUpperBound,m=void 0===h?15:h,y=e.units,g=void 0===y?"sentences":y,v=e.words,b=void 0===v?o.WORDS:v,A=e.suffix,E=void 0===A?"":A,w={random:f,sentencesPerParagraph:{max:l,min:u},words:b,wordsPerSentence:{max:m,min:d}},C=new i.default(w,a,E);switch(g){case"paragraphs":case"paragraph":return C.generateParagraphs(r);case"sentences":case"sentence":return C.generateSentences(r);case"words":case"word":return C.generateWords(r);default:return""}}},5548:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(7883),i=r(779),a=(n=r(928))&&n.__esModule?n:{default:n},s=r(3749);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.FORMAT_PLAIN,n=arguments.length>2?arguments[2]:void 0;if(u(this,e),l(this,"generator",void 0),l(this,"format",void 0),l(this,"suffix",void 0),-1===o.FORMATS.indexOf(r.toLowerCase()))throw new Error("".concat(r," is an invalid format. Please use ").concat(o.FORMATS.join(" or "),"."));this.format=r.toLowerCase(),this.suffix=n,this.generator=new a.default(t)}var t,r;return t=e,(r=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,s.isReactNative)()&&(0,s.isNode)()&&(0,s.isWindows)()?i.LINE_ENDINGS.WIN32:i.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===o.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map((function(e){return t.formatString(e)}))}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,s.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}])&&c(t.prototype,r),e}(),p=f;t.default=p},928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(3353),o=r(3749);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.sentencesPerParagraph,o=void 0===r?{max:7,min:3}:r,a=t.wordsPerSentence,u=void 0===a?{max:15,min:5}:a,c=t.random,l=(t.seed,t.words),f=void 0===l?n.WORDS:l;if(i(this,e),s(this,"sentencesPerParagraph",void 0),s(this,"wordsPerSentence",void 0),s(this,"random",void 0),s(this,"words",void 0),o.min>o.max)throw new Error("Minimum number of sentences per paragraph (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));if(u.min>u.max)throw new Error("Minimum number of words per sentence (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));this.sentencesPerParagraph=o,this.words=f,this.wordsPerSentence=u,this.random=c||Math.random}var t,r;return t=e,(r=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,r=this.wordsPerSentence,n=r.min,i=r.max,a=e||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,r){return"".concat(t.pluckRandomWord()," ").concat(e)}),"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,o.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,r=this.sentencesPerParagraph,n=r.min,i=r.max,a=e||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,r){return"".concat(t.generateRandomSentence()," ").concat(e)}),"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}])&&a(t.prototype,r),e}(),c=u;t.default=c},9998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)}},3749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return u.default}});var n=c(r(9998)),o=c(r(8077)),i=c(r(6002)),a=c(r(9759)),s=c(r(3385)),u=c(r(4523));function c(e){return e&&e.__esModule?e:{default:e}}},8077:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return!!e.exports}},6002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product}},9759:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6021);t.default=function(){return"undefined"!=typeof process&&process.platform===n.SUPPORTED_PLATFORMS.WIN32}},3385:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map((function(e,t){return t}))}},4523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(3749);t.default=function(e,t){return(0,n.makeArrayOfLength)(e).map((function(){return t()}))}},7105:function(e,t,r){"use strict";const n=r(8006),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(y(e,t)){if(v(e,n),!e[s])return}else r&&(e[d]&&(n.value.now=Date.now()),e[f].unshiftNode(n));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},g=e=>{if(e[i]>e[o])for(let t=e[f].tail;e[i]>e[o]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[f].removeNode(t)}};class b{constructor(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}}const A=(e,t,r,n)=>{let o=r.value;y(e,o)&&(v(e,r),e[s]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,g(this)}get max(){return this[o]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[i]=0,this[f].forEach((e=>{e.length=this[a](e.value,e.key),this[i]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){const n=r.prev;A(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){const n=r.next;A(this,e,r,t),r=n}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[f]=new n,this[i]=0}dump(){return this[f].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[o])return v(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[i]+=s-a.length,a.length=s,this.get(e),g(this),!0}const d=new b(e,t,s,n,r);return d.length>this[o]?(this[c]&&this[c](e,t),!1):(this[i]+=d.length,this[f].unshift(d),this[p].set(e,this[f].head),g(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!y(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[f].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const e=o-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach(((e,t)=>m(this,t,!1)))}}},1848:function(e,t,r){const n=r(8906),o=r(199),{mkdirpNative:i,mkdirpNativeSync:a}=r(6333),{mkdirpManual:s,mkdirpManualSync:u}=r(2939),{useNative:c,useNativeSync:l}=r(5213),f=(e,t)=>(e=o(e),t=n(t),c(t)?i(e,t):s(e,t));f.sync=(e,t)=>(e=o(e),t=n(t),l(t)?a(e,t):u(e,t)),f.native=(e,t)=>i(o(e),n(t)),f.manual=(e,t)=>s(o(e),n(t)),f.nativeSync=(e,t)=>a(o(e),n(t)),f.manualSync=(e,t)=>u(o(e),n(t)),e.exports=f},8609:function(e,t,r){const{dirname:n}=r(6841),o=(e,t,r)=>r===t?Promise.resolve():e.statAsync(t).then((e=>e.isDirectory()?r:void 0),(r=>"ENOENT"===r.code?o(e,n(t),t):void 0)),i=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(r){return"ENOENT"===r.code?i(e,n(t),t):void 0}};e.exports={findMade:o,findMadeSync:i}},2939:function(e,t,r){const{dirname:n}=r(6841),o=(e,t,r)=>{t.recursive=!1;const i=n(e);return i===e?t.mkdirAsync(e,t).catch((e=>{if("EISDIR"!==e.code)throw e})):t.mkdirAsync(e,t).then((()=>r||e),(n=>{if("ENOENT"===n.code)return o(i,t).then((r=>o(e,t,r)));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;throw n}),(()=>{throw n}))}))},i=(e,t,r)=>{const o=n(e);if(t.recursive=!1,o===e)try{return t.mkdirSync(e,t)}catch(e){if("EISDIR"!==e.code)throw e;return}try{return t.mkdirSync(e,t),r||e}catch(n){if("ENOENT"===n.code)return i(e,t,i(o,t,r));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:o,mkdirpManualSync:i}},6333:function(e,t,r){const{dirname:n}=r(6841),{findMade:o,findMadeSync:i}=r(8609),{mkdirpManual:a,mkdirpManualSync:s}=r(2939);e.exports={mkdirpNative:(e,t)=>(t.recursive=!0,n(e)===e?t.mkdirAsync(e,t):o(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if("ENOENT"===r.code)return a(e,t);throw r}))))),mkdirpNativeSync:(e,t)=>{if(t.recursive=!0,n(e)===e)return t.mkdirSync(e,t);const r=i(t,e);try{return t.mkdirSync(e,t),r}catch(r){if("ENOENT"===r.code)return s(e,t);throw r}}}},8906:function(e,t,r){const{promisify:n}=r(4830),o=r(1599);e.exports=e=>{if(e)if("object"==typeof e)e={mode:511,fs:o,...e};else if("number"==typeof e)e={mode:e,fs:o};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:o}}else e={mode:511,fs:o};return e.mkdir=e.mkdir||e.fs.mkdir||o.mkdir,e.mkdirAsync=n(e.mkdir),e.stat=e.stat||e.fs.stat||o.stat,e.statAsync=n(e.stat),e.statSync=e.statSync||e.fs.statSync||o.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||o.mkdirSync,e}},199:function(e,t,r){const n={NODE_ENV:"production"}.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:o,parse:i}=r(6841);e.exports=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=o(e),"win32"===n){const t=/[*|"<>?:]/,{root:r}=i(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},5213:function(e,t,r){const n=r(1599),o=({NODE_ENV:"production"}.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),i=+o[0]>10||10==+o[0]&&+o[1]>=12,a=i?e=>e.mkdir===n.mkdir:()=>!1,s=i?e=>e.mkdirSync===n.mkdirSync:()=>!1;e.exports={useNative:a,useNativeSync:s}},6116:function(e,t,r){const n=r(6589),o=r(4644),i=n.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else{if("string"!=typeof e)throw new Error("Expected a regexp or string");this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m")}this.tokens=n(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,o,a,s;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),n="",a=0,s=(r=e.options?this._randSelect(e.options):e.stack).length;a<s;a++)n+=this._gen(r[a],t);return e.remember&&(t[e.groupNumber]=n),n;case i.POSITION:return"";case i.SET:var u=this._expand(e);return u.length?String.fromCharCode(this._randSelect(u)):"";case i.REPETITION:for(o=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),n="",a=0;a<o;a++)n+=this._gen(e.value,t);return n;case i.REFERENCE:return t[e.value-1]||"";case i.CHAR:var c=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(c)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof o?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR)return new o(e.value);if(e.type===n.types.RANGE)return new o(e.from,e.to);{let t=new o;for(let r=0;r<e.set.length;r++){let n=this._expand(e.set[r]);if(t.add(n),this.ignoreCase)for(let e=0;e<n.length;e++){let r=n.index(e),o=this._toOtherCase(r);r!==o&&t.add(o)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new o(32,126)}set defaultRange(e){this._range=e}static randexp(t,r){var n;return"string"==typeof t&&(t=new RegExp(t,r)),void 0===t._randexp?(n=new e(t,r),t._randexp=n):(n=t._randexp)._setDefaults(t),n.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}},6589:function(e,t,r){const n=r(3895),o=r(3472),i=r(5631),a=r(8013);e.exports=e=>{var t,r,s=0,u={type:o.ROOT,stack:[]},c=u,l=u.stack,f=[],p=t=>{n.error(e,"Nothing to repeat at column "+(t-1))},d=n.strToChars(e);for(t=d.length;s<t;)switch(r=d[s++]){case"\\":switch(r=d[s++]){case"b":l.push(a.wordBoundary());break;case"B":l.push(a.nonWordBoundary());break;case"w":l.push(i.words());break;case"W":l.push(i.notWords());break;case"d":l.push(i.ints());break;case"D":l.push(i.notInts());break;case"s":l.push(i.whitespace());break;case"S":l.push(i.notWhitespace());break;default:/\d/.test(r)?l.push({type:o.REFERENCE,value:parseInt(r,10)}):l.push({type:o.CHAR,value:r.charCodeAt(0)})}break;case"^":l.push(a.begin());break;case"$":l.push(a.end());break;case"[":var h;"^"===d[s]?(h=!0,s++):h=!1;var m=n.tokenizeClass(d.slice(s),e);s+=m[1],l.push({type:o.SET,set:m[0],not:h});break;case".":l.push(i.anyChar());break;case"(":var y={type:o.GROUP,stack:[],remember:!0};"?"===(r=d[s])&&(r=d[s+1],s+=2,"="===r?y.followedBy=!0:"!"===r?y.notFollowedBy=!0:":"!==r&&n.error(e,`Invalid group, character '${r}' after '?' at column `+(s-1)),y.remember=!1),l.push(y),f.push(c),c=y,l=y.stack;break;case")":0===f.length&&n.error(e,"Unmatched ) at column "+(s-1)),l=(c=f.pop()).options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var g=[];c.options.push(g),l=g;break;case"{":var v,b,A=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s));null!==A?(0===l.length&&p(s),v=parseInt(A[1],10),b=A[2]?A[3]?parseInt(A[3],10):1/0:v,s+=A[0].length,l.push({type:o.REPETITION,min:v,max:b,value:l.pop()})):l.push({type:o.CHAR,value:123});break;case"?":0===l.length&&p(s),l.push({type:o.REPETITION,min:0,max:1,value:l.pop()});break;case"+":0===l.length&&p(s),l.push({type:o.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":0===l.length&&p(s),l.push({type:o.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:o.CHAR,value:r.charCodeAt(0)})}return 0!==f.length&&n.error(e,"Unterminated group"),u},e.exports.types=o},8013:function(e,t,r){const n=r(3472);t.wordBoundary=()=>({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},5631:function(e,t,r){const n=r(3472),o=()=>[{type:n.RANGE,from:48,to:57}],i=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(o()),a=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}];t.words=()=>({type:n.SET,set:i(),not:!1}),t.notWords=()=>({type:n.SET,set:i(),not:!0}),t.ints=()=>({type:n.SET,set:o(),not:!1}),t.notInts=()=>({type:n.SET,set:o(),not:!0}),t.whitespace=()=>({type:n.SET,set:a(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:a(),not:!0}),t.anyChar=()=>({type:n.SET,set:[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}],not:!0})},3472:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},3895:function(e,t,r){const n=r(3472),o=r(5631),i={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(e,t,r,n,o,a,s,u){if(r)return e;var c=t?8:n?parseInt(n,16):o?parseInt(o,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):i[u],l=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(l)&&(l="\\"+l),l}))},t.tokenizeClass=(e,r)=>{for(var i,a,s=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(i=u.exec(e));)if(i[1])s.push(o.words());else if(i[2])s.push(o.ints());else if(i[3])s.push(o.whitespace());else if(i[4])s.push(o.notWords());else if(i[5])s.push(o.notInts());else if(i[6])s.push(o.notWhitespace());else if(i[7])s.push({type:n.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else{if(!(a=i[12]))return[s,u.lastIndex];s.push({type:n.CHAR,value:a.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},7847:function(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=u(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=u(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||s||c}}e.exports=o;const i=r(1388),{re:a,t:s}=r(4808),u=r(8117),c=r(952),l=r(2435),f=r(6843)},6843:function(e,t,r){class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[l.COMPARATORTRIM],f),s("comparator trim",e,c[l.COMPARATORTRIM]),e=(e=(e=e.replace(c[l.TILDETRIM],p)).replace(c[l.CARETTRIM],d)).split(/\s+/).join(" ");const u=n?c[l.COMPARATORLOOSE]:c[l.COMPARATOR],m=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options))).filter(this.options.loose?e=>!!e.match(u):()=>!0).map((e=>new a(e,this.options))),y=(m.length,new Map);for(const e of m){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return o.set(t,v),v}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=new(r(7105))({max:1e3}),i=r(1388),a=r(7847),s=r(952),u=r(2435),{re:c,t:l,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:d}=r(4808),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},g=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=b(e,t),s("tildes",e),e=C(e,t),s("xrange",e),e=$(e,t),s("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const r=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{s("caret",e,t);const r=t.loose?c[l.CARETLOOSE]:c[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let u;return s("caret",e,t,r,o,i,a),v(r)?u="":v(o)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(i)?u="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),u="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),u="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",u),u}))},C=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>F(e,t))).join(" ")),F=(e,t)=>{e=e.trim();const r=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(r,((r,n,o,i,a,u)=>{s("xRange",e,r,n,o,i,a,u);const c=v(o),l=c||v(i),f=l||v(a),p=f;return"="===n&&p&&(n=""),u=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(i=0),a=0,">"===n?(n=">=",l?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(u="-0"),r=`${n+o}.${i}.${a}${u}`):l?r=`>=${o}.0.0${u} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${i}.0${u} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},$=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[l.STAR],"")),D=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,r,n,o,i,a,s,u,c,l,f,p,d)=>`${r=v(n)?"":v(o)?`>=${n}.0.0${e?"-0":""}`:v(i)?`>=${n}.${o}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=v(c)?"":v(l)?`<${+c+1}.0.0-0`:v(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},2435:function(e,t,r){const n=r(952),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(5558),{re:a,t:s}=r(4808),u=r(1388),{compareIdentifiers:c}=r(4935);class l{constructor(e,t){if(t=u(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},6694:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},8117:function(e,t,r){const n=r(3276),o=r(7893),i=r(6379),a=r(8463),s=r(1897),u=r(506);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return o(e,r,c);case">":return i(e,r,c);case">=":return a(e,r,c);case"<":return s(e,r,c);case"<=":return u(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},8686:function(e,t,r){const n=r(2435),o=r(9943),{re:i,t:a}=r(4808);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else r=e.match(i[a.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},5914:function(e,t,r){const n=r(2435);e.exports=(e,t,r)=>{const o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}},5404:function(e,t,r){const n=r(2271);e.exports=(e,t)=>n(e,t,!0)},2271:function(e,t,r){const n=r(2435);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},6007:function(e,t,r){const n=r(9943),o=r(3276);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),i=r.prerelease.length||o.prerelease.length,a=i?"pre":"",s=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return a+e;return s}}},3276:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>0===n(e,t,r)},6379:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)>0},8463:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)>=0},6360:function(e,t,r){const n=r(2435);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},1897:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)<0},506:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(e,t,r)<=0},4551:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).major},469:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).minor},7893:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>0!==n(e,t,r)},9943:function(e,t,r){const{MAX_LENGTH:n}=r(5558),{re:o,t:i}=r(4808),a=r(2435),s=r(1388);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},4250:function(e,t,r){const n=r(2435);e.exports=(e,t)=>new n(e,t).patch},8204:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},733:function(e,t,r){const n=r(2271);e.exports=(e,t,r)=>n(t,e,r)},2961:function(e,t,r){const n=r(5914);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},9844:function(e,t,r){const n=r(6843);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},1116:function(e,t,r){const n=r(5914);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},7230:function(e,t,r){const n=r(9943);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},7699:function(e,t,r){const n=r(4808);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(5558).SEMVER_SPEC_VERSION,SemVer:r(2435),compareIdentifiers:r(4935).compareIdentifiers,rcompareIdentifiers:r(4935).rcompareIdentifiers,parse:r(9943),valid:r(7230),clean:r(6694),inc:r(6360),diff:r(6007),major:r(4551),minor:r(469),patch:r(4250),prerelease:r(8204),compare:r(2271),rcompare:r(733),compareLoose:r(5404),compareBuild:r(5914),sort:r(1116),rsort:r(2961),gt:r(6379),lt:r(1897),eq:r(3276),neq:r(7893),gte:r(8463),lte:r(506),cmp:r(8117),coerce:r(8686),Comparator:r(7847),Range:r(6843),satisfies:r(9844),toComparators:r(8865),maxSatisfying:r(3727),minSatisfying:r(4338),minVersion:r(1542),validRange:r(6240),outside:r(9106),gtr:r(995),ltr:r(7805),intersects:r(2013),simplifyRange:r(1338),subset:r(3122)}},5558:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},952:function(e){const t="object"==typeof process&&{NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},4935:function(e){const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},1388:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},4808:function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5558),o=r(952),i=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let u=0;const c=(e,t,r)=>{const n=u++;o(n,t),s[e]=n,a[n]=t,i[n]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),c("FULL",`^${a[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),c("LOOSE",`^${a[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),c("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",a[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:function(e,t,r){const n=r(9106);e.exports=(e,t,r)=>n(e,t,">",r)},2013:function(e,t,r){const n=r(6843);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},7805:function(e,t,r){const n=r(9106);e.exports=(e,t,r)=>n(e,t,"<",r)},3727:function(e,t,r){const n=r(2435),o=r(6843);e.exports=(e,t,r)=>{let i=null,a=null,s=null;try{s=new o(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new n(i,r)))})),i}},4338:function(e,t,r){const n=r(2435),o=r(6843);e.exports=(e,t,r)=>{let i=null,a=null,s=null;try{s=new o(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new n(i,r)))})),i}},1542:function(e,t,r){const n=r(2435),o=r(6843),i=r(6379);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let a=null;o.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!i(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&e.test(r)?r:null}},9106:function(e,t,r){const n=r(2435),o=r(7847),{ANY:i}=o,a=r(6843),s=r(9844),u=r(6379),c=r(1897),l=r(506),f=r(8463);e.exports=(e,t,r,p)=>{let d,h,m,y,g;switch(e=new n(e,p),t=new a(t,p),r){case">":d=u,h=l,m=c,y=">",g=">=";break;case"<":d=c,h=f,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let a=null,s=null;if(n.forEach((e=>{e.semver===i&&(e=new o(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:m(e.semver,s.semver,p)&&(s=e)})),a.operator===y||a.operator===g)return!1;if((!s.operator||s.operator===y)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},1338:function(e,t,r){const n=r(9844),o=r(2271);e.exports=(e,t,r)=>{const i=[];let a=null,s=null;const u=e.sort(((e,t)=>o(e,t,r)));for(const e of u)n(e,t,r)?(s=e,a||(a=e)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},3122:function(e,t,r){const n=r(6843),o=r(7847),{ANY:i}=o,a=r(9844),s=r(2271),u=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new o(">=0.0.0")]}const n=new Set;let u,f,p,d,h,m,y;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?f=l(f,t,r):n.add(t.semver);if(n.size>1)return null;if(u&&f){if(p=s(u.semver,f.semver,r),p>0)return null;if(0===p&&(">="!==u.operator||"<="!==f.operator))return null}for(const e of n){if(u&&!a(e,String(u),r))return null;if(f&&!a(e,String(f),r))return null;for(const n of t)if(!a(e,String(n),r))return!1;return!0}let g=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===f.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=c(u,e,r),d===e&&d!==u)return!1}else if(">="===u.operator&&!a(u.semver,String(e),r))return!1;if(f)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(h=l(f,e,r),h===e&&h!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(e),r))return!1;if(!e.operator&&(f||u)&&0!==p)return!1}return!(u&&m&&!f&&0!==p||f&&y&&!u&&0!==p||v||g)},c=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},8865:function(e,t,r){const n=r(6843);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},6240:function(e,t,r){const n=r(6843);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},4716:function(e){"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}},8334:function(e){"use strict";e.exports={stdout:!1,stderr:!1}},9569:function(e,t,r){var n,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,r,n=e.toLowerCase().split(":"),o=n.length,i=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[o-1]&&""===n[o-2]&&n.pop(),-1!==n[(o=n.length)-1].indexOf(".")&&(i=7),t=0;t<o&&""!==n[t];t++);if(t<i)for(n.splice(t,1,"0000");n.length<i;)n.splice(t,0,"0000");for(var a=0;a<i;a++){r=n[a].split("");for(var s=0;s<3&&"0"===r[0]&&r.length>1;s++)r.splice(0,1);n[a]=r.join("")}var u=-1,c=0,l=0,f=-1,p=!1;for(a=0;a<i;a++)p?"0"===n[a]?l+=1:(p=!1,l>c&&(u=f,c=l)):"0"===n[a]&&(p=!0,f=a,l=1);l>c&&(u=f,c=l),c>1&&n.splice(u,c,""),o=n.length;var d="";for(""===n[0]&&(d=":"),a=0;a<o&&(d+=n[a],a!==o-1);a++)d+=":";return""===n[o-1]&&(d+=":"),d},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},4171:function(e,t,r){var n,o;!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var o=r.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var o=r.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},957:function(e,t,r){var n,o,i;!function(a,s){"use strict";e.exports?e.exports=s(r(9942),r(9569),r(4171)):(o=[r(9942),r(9569),r(4171)],void 0===(i="function"==typeof(n=s)?n.apply(t,o):n)||(e.exports=i))}(0,(function(e,t,r,n){"use strict";var o=n&&n.URI;function i(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof i))return r?n?new i(e,t):new i(e):new i;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var a=i.prototype,s=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===c(e)}function f(e,t){var r,n,o={};if("RegExp"===c(t))o=null;else if(l(t))for(r=0,n=t.length;r<n;r++)o[t[r]]=!0;else o[t]=!0;for(r=0,n=e.length;r<n;r++)(o&&void 0!==o[e[r]]||!o&&t.test(e[r]))&&(e.splice(r,1),n--,r--);return e}function p(e,t){var r,n;if(l(t)){for(r=0,n=t.length;r<n;r++)if(!p(e,t[r]))return!1;return!0}var o=c(t);for(r=0,n=e.length;r<n;r++)if("RegExp"===o){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function d(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function y(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-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-Fa-f]{1,4}:){5}(((:[0-9A-Fa-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-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-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-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-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-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-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-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-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-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-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}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=y,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=y,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var r=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var g,v={encode:"encode",decode:"decode"},b=function(e,t){return function(r){try{return i[t](r+"").replace(i.characters[e][t].expression,(function(r){return i.characters[e][t].map[r]}))}catch(e){return r}}};for(g in v)i[g+"PathSegment"]=b("pathname",v[g]),i[g+"UrnPathSegment"]=b("urnpath",v[g]);var A=function(e,t,r){return function(n){var o;o=r?function(e){return i[t](i[r](e))}:i[t];for(var a=(n+"").split(e),s=0,u=a.length;s<u;s++)a[s]=o(a[s]);return a.join(e)}};function E(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function w(e,t){return function(r,n){return void 0===r?this._parts[e]||"":(null!==r&&(r+="").charAt(0)===t&&(r=r.substring(1)),this._parts[e]=r,this.build(!n),this)}}i.decodePath=A("/","decodePathSegment"),i.decodeUrnPath=A(":","decodeUrnPathSegment"),i.recodePath=A("/","encodePathSegment","decode"),i.recodeUrnPath=A(":","encodeUrnPathSegment","decode"),i.encodeReserved=b("reserved","encode"),i.parse=function(e,t){var r;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(r=(e=(e=e.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=i.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var r,n,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),u=e.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(t.hostname=e.substring(0,o)||null,t.port=null):(n=e.substring(0,o).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(o)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var r=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n,o=e.indexOf("/"),a=e.lastIndexOf("@",o>-1?o:e.length-1);return a>-1&&(-1===o||a<o)?(n=e.substring(0,a).split(":"),t.username=n[0]?i.decode(n[0]):null,n.shift(),t.password=n[0]?i.decode(n.join(":")):null,e=r.substring(a+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,o,a={},u=e.split("&"),c=u.length,l=0;l<c;l++)r=u[l].split("="),n=i.decodeQuery(r.shift(),t),o=r.length?i.decodeQuery(r.join("="),t):null,"__proto__"!==n&&(s.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(o)):a[n]=o);return a},i.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",r=!0),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,r){var n,o,a,u,c="";for(o in e)if("__proto__"!==o&&s.call(e,o))if(l(e[o]))for(n={},a=0,u=e[o].length;a<u;a++)void 0!==e[o][a]&&void 0===n[e[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,e[o][a],r),!0!==t&&(n[e[o][a]+""]=!0));else void 0!==e[o]&&(c+="&"+i.buildQueryParameter(o,e[o],r));return c.substring(1)},i.buildQueryParameter=function(e,t,r){return i.encodeQuery(e,r)+(null!==t?"="+i.encodeQuery(t,r):"")},i.addQuery=function(e,t,r){if("object"==typeof t)for(var n in t)s.call(t,n)&&i.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),l(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}},i.setQuery=function(e,t,r){if("object"==typeof t)for(var n in t)s.call(t,n)&&i.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},i.removeQuery=function(e,t,r){var n,o,a;if(l(t))for(n=0,o=t.length;n<o;n++)e[t[n]]=void 0;else if("RegExp"===c(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"==typeof t)for(a in t)s.call(t,a)&&i.removeQuery(e,a,t[a]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===c(r)?!l(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=f(e[t],r):e[t]!==String(r)||l(r)&&1!==r.length?l(e[t])&&(e[t]=f(e[t],r)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,r,n){switch(c(t)){case"String":break;case"RegExp":for(var o in e)if(s.call(e,o)&&t.test(o)&&(void 0===r||i.hasQuery(e,o,r)))return!0;return!1;case"Object":for(var a in t)if(s.call(t,a)&&!i.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(r)){case"Undefined":return t in e;case"Boolean":return r===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!r(e[t],t,e);case"Array":return!!l(e[t])&&(n?p:d)(e[t],r);case"RegExp":return l(e[t])?!!n&&p(e[t],r):Boolean(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return l(e[t])?!!n&&p(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],r=0,n=0;n<arguments.length;n++){var o=new i(arguments[n]);e.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&t.push(a[s]),a[s]&&r++}if(!t.length||!r)return new i("");var u=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(r)&&"/"===t.charAt(r)||(r=e.substring(0,r).lastIndexOf("/")),e.substring(0,r+1))},i.withinString=function(e,t,r){r||(r={});var n=r.start||i.findUri.start,o=r.end||i.findUri.end,a=r.trim||i.findUri.trim,s=r.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var c=n.exec(e);if(!c)break;var l=c.index;if(r.ignoreHtml){var f=e.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var p=l+e.slice(l).search(o),d=e.slice(l,p),h=-1;;){var m=s.exec(d);if(!m)break;var y=m.index+m[0].length;h=Math.max(h,y)}if(!((d=h>-1?d.slice(0,h)+d.slice(h).replace(a,""):d.replace(a,"")).length<=c[0].length||r.ignore&&r.ignore.test(d))){var g=t(d,l,p=l+d.length,e);void 0!==g?(g=String(g),e=e.slice(0,l)+g+e.slice(p),n.lastIndex=l+g.length):n.lastIndex=p}}return n.lastIndex=0,e},i.ensureValidHostname=function(t,r){var n=!!t,o=!1;if(!!r&&(o=p(i.hostProtocols,r)),o&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=E("protocol"),a.username=E("username"),a.password=E("password"),a.hostname=E("hostname"),a.port=E("port"),a.query=w("query","?"),a.fragment=w("fragment","#"),a.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},a.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},a.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(r):r}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var n=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1),!n&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!n&&!o)throw new TypeError("invalid input");var a=n?e._parts:e;for(r in a)"query"!==r&&s.call(this._parts,r)&&(this._parts[r]=a[r]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,n=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(t=n||o))&&r&&r.has(this._parts.hostname),u=a&&i.idn_expression.test(this._parts.hostname),c=a&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var C=a.protocol,F=a.port,$=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return C.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),F.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return $.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=i(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=i.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=i.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,n),a=new RegExp("^"+u(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[o.toLowerCase()]&&r.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?i.decodePath(n):n}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+u(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?i.decodePathSegment(n):n}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(u(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(r=o.substring(a+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?i.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var s,c=this.suffix();if(c)s=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return s&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,r){var n=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,u=t.length;s<u;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(t[s])))}else(t||"string"==typeof t)&&(t=h(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=h(t):a.splice(e,1);return i&&a.unshift(""),this.path(a.join(n),r)},a.segmentCoded=function(e,t,r){var n,o,a;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(l(n=this.segment(e,t,r)))for(o=0,a=n.length;o<a;o++)n[o]=i.decode(n[o]);else n=void 0!==n?i.decode(n):void 0;return n}if(l(t))for(o=0,a=t.length;o<a;o++)t[o]=i.encode(t[o]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,r)};var D=a.query;return a.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,r);return this._parts.query=i.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):D.call(this,e,t)},a.setQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)s.call(e,o)&&(n[o]=e[o])}return this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.addQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(n,e,void 0===t?null:t),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.removeQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(n,e,t),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.hasQuery=function(e,t,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(n,e,t,r)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},a.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t,r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var n,o,a="";for("/"!==(r=i.recodePath(r)).charAt(0)&&(t=!0,r="/"+r),"/.."!==r.slice(-3)&&"/."!==r.slice(-2)||(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=r.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(n=r.search(/\/\.\.(\/|$)/));)0!==n?(-1===(o=r.substring(0,n).lastIndexOf("/"))&&(o=n),r=r.substring(0,o)+r.substring(n+3)):r=r.substring(3);return t&&this.is("relative")&&(r=a+r.substring(1)),this._parts.path=r,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.unicode=function(){var e=i.encode,t=i.decode;i.encode=y,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var n="",o=0,a=t._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");n+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(n+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+i.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,r,n,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),o._parts.protocol)return o;if(o._parts.protocol=e._parts.protocol,this._parts.hostname)return o;for(r=0;n=a[r];r++)o._parts[n]=e._parts[n];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},a.relativeTo=function(e){var t,r,n,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=s._parts,r=e._parts,o=s.path(),a=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===r.protocol&&(t.protocol=null),t.username!==r.username||t.password!==r.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==r.hostname||t.port!==r.port)return s.build();if(t.hostname=null,t.port=null,o===a)return t.path="",s.build();if(!(n=i.commonPath(o,a)))return s.build();var u=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=u+t.path.substring(n.length)||"./",s.build()},a.equals=function(e){var t,r,n,o,a,u=this.clone(),c=new i(e),f={};if(u.normalize(),c.normalize(),u.toString()===c.toString())return!0;if(n=u.query(),o=c.query(),u.query(""),c.query(""),u.toString()!==c.toString())return!1;if(n.length!==o.length)return!1;for(a in t=i.parseQuery(n,this._parts.escapeQuerySpace),r=i.parseQuery(o,this._parts.escapeQuerySpace),t)if(s.call(t,a)){if(l(t[a])){if(!d(t[a],r[a]))return!1}else if(t[a]!==r[a])return!1;f[a]=!0}for(a in r)if(s.call(r,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i}))},9942:function(e,t,r){var n;e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(p[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=u)e=d(e/35);return d(n+36*e/(e+38))}function w(e){var t,r,n,o,i,a,c,l,f,p,h,y=[],g=e.length,v=0,A=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:u)>=u||l>d((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=w?1:c>=w+26?26:c-w));c+=u)a>d(s/(p=u-f))&&m("overflow"),a*=p;w=E(v-i,t=y.length+1,0==i),d(v/t)>s-A&&m("overflow"),A+=d(v/t),v%=t,y.splice(v++,0,A)}return b(y)}function C(e){var t,r,n,o,i,a,c,l,f,p,y,g,b,w,C,F=[];for(g=(e=v(e)).length,t=128,r=0,i=72,a=0;a<g;++a)(y=e[a])<128&&F.push(h(y));for(n=o=F.length,o&&F.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=e[a])>=t&&y<c&&(c=y);for(c-t>d((s-r)/(b=n+1))&&m("overflow"),r+=(c-t)*b,t=c,a=0;a<g;++a)if((y=e[a])<t&&++r>s&&m("overflow"),y==t){for(l=r,f=u;!(l<(p=f<=i?1:f>=i+26?26:f-i));f+=u)C=l-p,w=u-p,F.push(h(A(p+C%w,0))),l=d(C/w);F.push(h(A(l,0))),i=E(r,b,n==o),r=0,++n}++r,++t}return F.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:w,encode:C,toASCII:function(e){return g(e,(function(e){return l.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},9987:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{NIL:function(){return T},parse:function(){return y},stringify:function(){return p},v1:function(){return m},v3:function(){return $},v4:function(){return D},v5:function(){return R},validate:function(){return s},version:function(){return k}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r},d=0,h=0,m=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,y=c-d+(m-h)/1e4;if(y<0&&void 0===e.clockseq&&(s=s+1&16383),(y<0||c>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=c,h=m,f=s;var g=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=a[b];return t||p(o)},y=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function g(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return p(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function A(e,t,r,n,o,i){return b((a=b(b(t,e),b(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function E(e,t,r,n,o,i,a){return A(t&r|~t&n,e,t,o,i,a)}function w(e,t,r,n,o,i,a){return A(t&n|r&~n,e,t,o,i,a)}function C(e,t,r,n,o,i,a){return A(t^r^n,e,t,o,i,a)}function F(e,t,r,n,o,i,a){return A(r^(t|~n),e,t,o,i,a)}var $=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[v(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i;r=E(r,n,o,i,e[a],7,-680876936),i=E(i,r,n,o,e[a+1],12,-389564586),o=E(o,i,r,n,e[a+2],17,606105819),n=E(n,o,i,r,e[a+3],22,-1044525330),r=E(r,n,o,i,e[a+4],7,-176418897),i=E(i,r,n,o,e[a+5],12,1200080426),o=E(o,i,r,n,e[a+6],17,-1473231341),n=E(n,o,i,r,e[a+7],22,-45705983),r=E(r,n,o,i,e[a+8],7,1770035416),i=E(i,r,n,o,e[a+9],12,-1958414417),o=E(o,i,r,n,e[a+10],17,-42063),n=E(n,o,i,r,e[a+11],22,-1990404162),r=E(r,n,o,i,e[a+12],7,1804603682),i=E(i,r,n,o,e[a+13],12,-40341101),o=E(o,i,r,n,e[a+14],17,-1502002290),r=w(r,n=E(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=w(i,r,n,o,e[a+6],9,-1069501632),o=w(o,i,r,n,e[a+11],14,643717713),n=w(n,o,i,r,e[a],20,-373897302),r=w(r,n,o,i,e[a+5],5,-701558691),i=w(i,r,n,o,e[a+10],9,38016083),o=w(o,i,r,n,e[a+15],14,-660478335),n=w(n,o,i,r,e[a+4],20,-405537848),r=w(r,n,o,i,e[a+9],5,568446438),i=w(i,r,n,o,e[a+14],9,-1019803690),o=w(o,i,r,n,e[a+3],14,-187363961),n=w(n,o,i,r,e[a+8],20,1163531501),r=w(r,n,o,i,e[a+13],5,-1444681467),i=w(i,r,n,o,e[a+2],9,-51403784),o=w(o,i,r,n,e[a+7],14,1735328473),r=C(r,n=w(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=C(i,r,n,o,e[a+8],11,-2022574463),o=C(o,i,r,n,e[a+11],16,1839030562),n=C(n,o,i,r,e[a+14],23,-35309556),r=C(r,n,o,i,e[a+1],4,-1530992060),i=C(i,r,n,o,e[a+4],11,1272893353),o=C(o,i,r,n,e[a+7],16,-155497632),n=C(n,o,i,r,e[a+10],23,-1094730640),r=C(r,n,o,i,e[a+13],4,681279174),i=C(i,r,n,o,e[a],11,-358537222),o=C(o,i,r,n,e[a+3],16,-722521979),n=C(n,o,i,r,e[a+6],23,76029189),r=C(r,n,o,i,e[a+9],4,-640364487),i=C(i,r,n,o,e[a+12],11,-421815835),o=C(o,i,r,n,e[a+15],16,530742520),r=F(r,n=C(n,o,i,r,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=F(i,r,n,o,e[a+7],10,1126891415),o=F(o,i,r,n,e[a+14],15,-1416354905),n=F(n,o,i,r,e[a+5],21,-57434055),r=F(r,n,o,i,e[a+12],6,1700485571),i=F(i,r,n,o,e[a+3],10,-1894986606),o=F(o,i,r,n,e[a+10],15,-1051523),n=F(n,o,i,r,e[a+1],21,-2054922799),r=F(r,n,o,i,e[a+8],6,1873313359),i=F(i,r,n,o,e[a+15],10,-30611744),o=F(o,i,r,n,e[a+6],15,-1560198380),n=F(n,o,i,r,e[a+13],21,1309151649),r=F(r,n,o,i,e[a+4],6,-145523070),i=F(i,r,n,o,e[a+11],10,-1120210379),o=F(o,i,r,n,e[a+2],15,718787259),n=F(n,o,i,r,e[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(v(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),D=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return p(n)};function O(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function P(e,t){return e<<t|e>>>32-t}var R=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=s[f][d];for(var h=16;h<80;++h)p[h]=P(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var m=r[0],y=r[1],g=r[2],v=r[3],b=r[4],A=0;A<80;++A){var E=Math.floor(A/20),w=P(m,5)+O(E,y,g,v)+b+t[E]+p[A]>>>0;b=v,v=g,g=P(y,30)>>>0,y=m,m=w}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),T="00000000-0000-0000-0000-000000000000",k=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},8268:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8006:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)t.push(arguments[r]);return t}function o(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,o=this.head;null!==o;)r.push(e.call(t,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,o=this.tail;null!==o;)r.push(e.call(t,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;var a=[];for(n=0;i&&n<t;n++)a.push(i.value),i=this.removeNode(i);for(null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),n=0;n<r.length;n++)i=o(this,i,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(8268)(n)}catch(e){}},6010:function(e,t,r){"use strict";const n=r(9022),o=r(7619),i=r(5400),a=r(4458),s=r(7291),u=r(4356),c=r(722),l=r(1988),f=r(79),p=r(4823),d=r(1081),h=r(6858),m=r(9966),y=r(5960),g=r(4833),v=r(7667),b=r(3988),A=r(2989),E=r(8894),w=r(4469),C=r(8031),F=r(6938),$=r(5338),D=r(9444),O=r(3407),P=r(4975),R=r(6972),T=r(6697),k=r(1997),x=r(1840),S=r(7663),I=r(4857),_=r(1209),B=r(4147);e.exports={SecurityException:n,IllegalModelException:o,TypeNotFoundException:i,Decorator:a,DecoratorFactory:s,DecoratorManager:x,ClassDeclaration:u,IdentifiedDeclaration:c,AssetDeclaration:l,ConceptDeclaration:f,EnumValueDeclaration:p,EventDeclaration:d,ParticipantDeclaration:h,TransactionDeclaration:m,Property:y,Field:g,EnumDeclaration:v,RelationshipDeclaration:b,Typed:A,Identifiable:E,Relationship:w,Resource:C,Factory:F,Globalize:$,Introspector:D,ModelFile:O,ModelManager:P,Serializer:R,ModelUtil:T,ModelLoader:k,DateTimeUtil:S,Concerto:I,MetaModel:_,version:B}},3255:function(e,t,r){"use strict";const n=r(7529),o=r(9307),i=r(5502),a=r(5555);e.exports={ParseException:n,Parser:o,Printer:i,External:a}},5555:function(e,t,r){"use strict";const n=r(4481),{DefaultFileLoader:o,FileDownloader:i}=r(1104),a=r(5130)("concerto:ModelManager"),s=r(2255),{MetaModelUtil:u}=r(5076);e.exports={resolveExternal:async function(e,t,r){a("updateExternalModels","updateExternalModels",t),r||(r=new i(new o(((e,t)=>".cto"===n.extname(e)?s.parse(t):t)),u.getExternalImports));const c=await r.downloadExternalDependencies(e.models,t);let l=e;return c.forEach((e=>{l=function(e,t){const r={$class:"concerto.metamodel.Models",models:[]},n=t.namespace,o=e.models;let i=!1;return o.forEach(((e,o)=>{e.namespace===n?(r.models.push(t),i=!0):r.models.push(e)})),i||r.models.push(t),r}(l,e)})),l}}},7529:function(e,t,r){"use strict";const{BaseFileException:n}=r(1104);e.exports=class extends n{constructor(e,t,r,n,o){let i=e,a="";r&&(a+=" File "+r),t&&(t.end&&t.start&&t.end.offset&&t.start.offset&&t.end.offset-t.start.offset==1&&(t.end.column=t.start.column,t.end.offset=t.start.offset),a+=a?" line "+t.start.line+" column "+t.start.column:" Line "+t.start.line+" column "+t.start.column),i+=a,super(e,t,n||i,r,o)}}},2255:function(e){"use strict";function t(e,r,n,o){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,t.prototype),i.expected=r,i.found=n,i.location=o,i.name="SyntaxError",i}function r(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(t,Error),t.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var n,o=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){o=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,a=this.location.source+":"+i.line+":"+i.column;if(o){var s=this.location.end,u=r("",i.line.toString().length),c=o[i.line-1],l=i.line===s.line?s.column:c.length+1;t+="\n --\x3e "+a+"\n"+u+" |\n"+i.line+" | "+c+"\n"+u+" | "+r("",i.column-1)+r("",l-i.column,"^")}else t+="\n at "+a}return t},t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,r){var n,o={},i=(r=void 0!==r?r:{}).grammarSource,a={Start:cn},s=cn,u="*/",c="//",l="\\",f=".",p='"',d="'",h="/",m="[",y="]",g="enum",v="false",b="import",A="null",E="true",w="}",C=":",F="?",$="@",D=",",O="=",P="-",R="::",T="concerto",k="version",x="namespace",S="abstract",I="concept",_="asset",B="transaction",N="event",M="participant",j="from",L="Integer",U="Double",V="Long",Q="String",z="DateTime",H="Boolean",q="identified by",G="identified",J="[]",W="extends",Y="{",X="optional",Z="default",K="o",ee="regex",te="range",re=/^[\n\r\u2028\u2029]/,ne=/^[+\-]/,oe=/^[0-9]/,ie=/^[1-9]/,ae=/^[0-9a-f]/i,se=/^[*\\\/[]/,ue=/^[\\\/[]/,ce=/^[\]\\]/,le=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,fe=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,pe=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,de=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,he=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,me=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,ye=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,ge=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,ve=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,be=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Ae=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ee=/^[A-Z]/,we=/^[a-z]/,Ce=/^[0-5]/,Fe=/^[0-4]/,$e={type:"any"},De=on("whitespace"),Oe=rn("\t",!1),Pe=rn("\v",!1),Re=rn("\f",!1),Te=rn(" ",!1),ke=rn(" ",!1),xe=rn("\ufeff",!1),Se=nn(["\n","\r","\u2028","\u2029"],!1,!1),Ie=on("end of line"),_e=rn("\n",!1),Be=rn("\r\n",!1),Ne=rn("\r",!1),Me=rn("\u2028",!1),je=rn("\u2029",!1),Le=on("comment"),Ue=rn("/*",!1),Ve=rn("*/",!1),Qe=rn("//",!1),ze=on("identifier"),He=rn("$",!1),qe=rn("_",!1),Ge=rn("\\",!1),Je=rn("‌",!1),We=rn("‍",!1),Ye=on("number"),Xe=rn(".",!1),Ze=nn(["+","-"],!1,!1),Ke=rn("0",!1),et=nn([["0","9"]],!1,!1),tt=nn([["1","9"]],!1,!1),rt=rn("e",!0),nt=rn("0x",!0),ot=nn([["0","9"],["a","f"]],!1,!0),it=on("string"),at=rn('"',!1),st=rn("'",!1),ut=rn("b",!1),ct=rn("f",!1),lt=rn("n",!1),ft=rn("r",!1),pt=rn("t",!1),dt=rn("v",!1),ht=rn("x",!1),mt=rn("u",!1),yt=on("regular expression"),gt=rn("/",!1),vt=nn(["*","\\","/","["],!1,!1),bt=nn(["\\","/","["],!1,!1),At=rn("[",!1),Et=rn("]",!1),wt=nn(["]","\\"],!1,!1),Ct=nn([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Ft=nn([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),$t=nn(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Dt=nn(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Ot=nn([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Pt=nn(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Rt=nn([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Tt=nn([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),kt=nn([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),xt=nn(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),St=nn([" "," "," ",[" "," "]," "," "," "],!1,!1),It=rn("enum",!1),_t=rn("false",!1),Bt=rn("import",!1),Nt=rn("null",!1),Mt=rn("true",!1),jt=rn(";",!1),Lt=rn("}",!1),Ut=nn([["A","Z"]],!1,!1),Vt=nn([["a","z"]],!1,!1),Qt=rn("1",!1),zt=(nn([["",""]],!1,!1),nn([["\0",""]],!1,!1),rn("",!1),nn(['"'],!1,!1),rn("A",!0)),Ht=rn("B",!0),qt=rn("C",!0),Gt=rn("D",!0),Jt=rn("E",!0),Wt=rn("F",!0),Yt=(nn([["\0","ÿ"]],!1,!1),nn([["!","~"]],!1,!1),rn("%",!1)),Xt=rn(":",!1),Zt=rn("?",!1),Kt=rn("#",!1),er=rn("@",!1),tr=rn("!",!1),rr=rn("&",!1),nr=rn("(",!1),or=rn(")",!1),ir=rn("*",!1),ar=rn("+",!1),sr=rn(",",!1),ur=rn("=",!1),cr=rn("-",!1),lr=rn("~",!1),fr=rn("::",!1),pr=rn("25",!1),dr=nn([["0","5"]],!1,!1),hr=rn("2",!1),mr=nn([["0","4"]],!1,!1),yr=rn("concerto",!1),gr=rn("version",!1),vr=rn("namespace",!1),br=rn("abstract",!1),Ar=rn("concept",!1),Er=rn("asset",!1),wr=rn("transaction",!1),Cr=rn("event",!1),Fr=rn("participant",!1),$r=rn("from",!1),Dr=rn(".*",!1),Or=rn("Integer",!1),Pr=rn("Double",!1),Rr=rn("Long",!1),Tr=rn("String",!1),kr=rn("DateTime",!1),xr=rn("Boolean",!1),Sr=rn("identified by",!1),Ir=rn("identified",!1),_r=rn("[]",!1),Br=rn("extends",!1),Nr=rn("{",!1),Mr=rn("optional",!1),jr=rn("default",!1),Lr=rn("o",!1),Ur=rn("regex",!1),Vr=rn("range",!1),Qr=rn("--\x3e",!1),zr=function(){return{type:"Literal",value:parseFloat(en())}},Hr=function(e){return{type:"Literal",value:e.join("")}},qr=function(){return en()},Gr=function(e){return String.fromCharCode(parseInt(e,16))},Jr=0,Wr=0,Yr=[{line:1,column:1}],Xr=0,Zr=[],Kr=0;if("startRule"in r){if(!(r.startRule in a))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=a[r.startRule]}function en(){return e.substring(Wr,Jr)}function tn(){return sn(Wr,Jr)}function rn(e,t){return{type:"literal",text:e,ignoreCase:t}}function nn(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function on(e){return{type:"other",description:e}}function an(t){var r,n=Yr[t];if(n)return n;for(r=t-1;!Yr[r];)r--;for(n={line:(n=Yr[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Yr[t]=n,n}function sn(e,t){var r=an(e),n=an(t);return{source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function un(e){Jr<Xr||(Jr>Xr&&(Xr=Jr,Zr=[]),Zr.push(e))}function cn(){var t,r;return t=Jr,Mn(),r=function(){var t,r,n,i,a;return t=Jr,r=function(){var t,r,n,i;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===T?(r=T,Jr+=8):(r=o,0===Kr&&un(yr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(Mn(),n=function(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===k?(r=k,Jr+=7):(r=o,0===Kr&&un(gr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(Mn(),(i=$n())!==o?(Mn(),Wr=t,t=i.value):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),r===o&&(r=null),n=function(){var t,r,n;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,9)===x?(r=x,Jr+=9):(r=o,0===Kr&&un(vr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(Mn(),(n=Do())!==o?(Mn(),Wr=t,t=n):(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(i=function(){var e,t,r,n,i,a;if(e=Jr,(t=Oo())!==o){for(r=[],n=Jr,i=Mn(),(a=Oo())!==o?n=i=[i,a]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,i=Mn(),(a=Oo())!==o?n=i=[i,a]:(Jr=n,n=o);Wr=e,e=Ro(t,r,1)}else Jr=e,e=o;return e}(),i===o&&(i=null),a=function(){var e,t,r,n,i,a;if(e=Jr,(t=Po())!==o){for(r=[],n=Jr,i=Mn(),(a=Po())!==o?n=i=[i,a]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,i=Mn(),(a=Po())!==o?n=i=[i,a]:(Jr=n,n=o);Wr=e,e=Ro(t,r,1)}else Jr=e,e=o;return e}(),a===o&&(a=null),Wr=t,t=function(e,t,r,n){const o={$class:"concerto.metamodel.Model",namespace:t,imports:To(r),declarations:To(n)};return e&&(o.concertoVersion=e),o}(r,n,i,a)):(Jr=t,t=o),t}(),r!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o),t}function ln(){var t;return e.length>Jr?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un($e)),t}function fn(){var t;return Kr++,9===e.charCodeAt(Jr)?(t="\t",Jr++):(t=o,0===Kr&&un(Oe)),t===o&&(11===e.charCodeAt(Jr)?(t="\v",Jr++):(t=o,0===Kr&&un(Pe)),t===o&&(12===e.charCodeAt(Jr)?(t="\f",Jr++):(t=o,0===Kr&&un(Re)),t===o&&(32===e.charCodeAt(Jr)?(t=" ",Jr++):(t=o,0===Kr&&un(Te)),t===o&&(160===e.charCodeAt(Jr)?(t=" ",Jr++):(t=o,0===Kr&&un(ke)),t===o&&(65279===e.charCodeAt(Jr)?(t="\ufeff",Jr++):(t=o,0===Kr&&un(xe)),t===o&&(t=function(){var t;return Ae.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(St)),t}())))))),Kr--,t===o&&0===Kr&&un(De),t}function pn(){var t;return re.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Se)),t}function dn(){var t;return Kr++,10===e.charCodeAt(Jr)?(t="\n",Jr++):(t=o,0===Kr&&un(_e)),t===o&&("\r\n"===e.substr(Jr,2)?(t="\r\n",Jr+=2):(t=o,0===Kr&&un(Be)),t===o&&(13===e.charCodeAt(Jr)?(t="\r",Jr++):(t=o,0===Kr&&un(Ne)),t===o&&(8232===e.charCodeAt(Jr)?(t="\u2028",Jr++):(t=o,0===Kr&&un(Me)),t===o&&(8233===e.charCodeAt(Jr)?(t="\u2029",Jr++):(t=o,0===Kr&&un(je)))))),Kr--,t===o&&0===Kr&&un(Ie),t}function hn(){var t;return Kr++,(t=function(){var t,r,n,i,a,s;if(t=Jr,"/*"===e.substr(Jr,2)?(r="/*",Jr+=2):(r=o,0===Kr&&un(Ue)),r!==o){for(n=[],i=Jr,a=Jr,Kr++,e.substr(Jr,2)===u?(s=u,Jr+=2):(s=o,0===Kr&&un(Ve)),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);i!==o;)n.push(i),i=Jr,a=Jr,Kr++,e.substr(Jr,2)===u?(s=u,Jr+=2):(s=o,0===Kr&&un(Ve)),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);e.substr(Jr,2)===u?(i=u,Jr+=2):(i=o,0===Kr&&un(Ve)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)}else Jr=t,t=o;return t}())===o&&(t=function(){var t,r,n,i,a,s;if(t=Jr,e.substr(Jr,2)===c?(r=c,Jr+=2):(r=o,0===Kr&&un(Qe)),r!==o){for(n=[],i=Jr,a=Jr,Kr++,s=pn(),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);i!==o;)n.push(i),i=Jr,a=Jr,Kr++,s=pn(),Kr--,s===o?a=void 0:(Jr=a,a=o),a!==o&&(s=ln())!==o?i=a=[a,s]:(Jr=i,i=o);t=r=[r,n]}else Jr=t,t=o;return t}()),Kr--,t===o&&0===Kr&&un(Le),t}function mn(){var t,r,n;return t=Jr,r=Jr,Kr++,n=function(){var t;return(t=function(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===A?(r=A,Jr+=4):(r=o,0===Kr&&un(Nt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:null}),r}())===o&&(t=vn()),t}(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(n=function(){var e,t,r,n;if(Kr++,e=Jr,(t=yn())!==o){for(r=[],n=gn();n!==o;)r.push(n),n=gn();Wr=e,e={$class:"concerto.metamodel.TypeIdentifier",name:t+r.join("")}}else Jr=e,e=o;return Kr--,e===o&&(t=o,0===Kr&&un(ze)),e}(),n!==o?(Wr=t,t=n):(Jr=t,t=o)):(Jr=t,t=o),t}function yn(){var t,r,n;return(t=function(){var t;return(t=function(){var t;return he.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ot)),t}())===o&&(t=function(){var t;return le.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ct)),t}())===o&&(t=function(){var t;return de.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Dt)),t}())===o&&(t=function(){var t;return fe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ft)),t}())===o&&(t=function(){var t;return pe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un($t)),t}())===o&&(t=function(){var t;return ve.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(kt)),t}()),t}())===o&&(36===e.charCodeAt(Jr)?(t="$",Jr++):(t=o,0===Kr&&un(He)),t===o&&(95===e.charCodeAt(Jr)?(t="_",Jr++):(t=o,0===Kr&&un(qe)),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=kn())!==o?(Wr=t,t=n):(Jr=t,t=o)))),t}function gn(){var t;return(t=yn())===o&&(t=function(){var t;return(t=function(){var t;return ye.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Rt)),t}())===o&&(t=function(){var t;return me.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Pt)),t}()),t}())===o&&(t=function(){var t;return ge.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Tt)),t}())===o&&(t=function(){var t;return be.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(xt)),t}())===o&&(8204===e.charCodeAt(Jr)?(t="‌",Jr++):(t=o,0===Kr&&un(Je)),t===o&&(8205===e.charCodeAt(Jr)?(t="‍",Jr++):(t=o,0===Kr&&un(We)))),t}function vn(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===E?(r=E,Jr+=4):(r=o,0===Kr&&un(Mt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:!0}),(t=r)===o&&(t=Jr,r=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===v?(r=v,Jr+=5):(r=o,0===Kr&&un(_t)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={type:"Literal",value:!1}),t=r),t}function bn(){var t,r,n,i,a;if(t=Jr,ne.test(e.charAt(Jr))?(r=e.charAt(Jr),Jr++):(r=o,0===Kr&&un(Ze)),r===o&&(r=null),An()!==o)if(46===e.charCodeAt(Jr)?(n=f,Jr++):(n=o,0===Kr&&un(Xe)),n!==o){for(i=[],a=En();a!==o;)i.push(a),a=En();(a=wn())===o&&(a=null),Wr=t,t=zr()}else Jr=t,t=o;else Jr=t,t=o;return t}function An(){var t,r,n,i;if(48===e.charCodeAt(Jr)?(t="0",Jr++):(t=o,0===Kr&&un(Ke)),t===o)if(t=Jr,r=function(){var t;return ie.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(tt)),t}(),r!==o){for(n=[],i=En();i!==o;)n.push(i),i=En();t=r=[r,n]}else Jr=t,t=o;return t}function En(){var t;return oe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(et)),t}function wn(){var t,r,n;return t=Jr,r=function(){var t;return"e"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(rt)),t}(),r!==o&&(n=Cn())!==o?t=r=[r,n]:(Jr=t,t=o),t}function Cn(){var t,r,n,i;if(t=Jr,ne.test(e.charAt(Jr))?(r=e.charAt(Jr),Jr++):(r=o,0===Kr&&un(Ze)),r===o&&(r=null),n=[],(i=En())!==o)for(;i!==o;)n.push(i),i=En();else n=o;return n!==o?t=r=[r,n]:(Jr=t,t=o),t}function Fn(){var t;return ae.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(ot)),t}function $n(){var t,r,n,i;if(Kr++,t=Jr,34===e.charCodeAt(Jr)?(r=p,Jr++):(r=o,0===Kr&&un(at)),r!==o){for(n=[],i=Dn();i!==o;)n.push(i),i=Dn();34===e.charCodeAt(Jr)?(i=p,Jr++):(i=o,0===Kr&&un(at)),i!==o?(Wr=t,t=Hr(n)):(Jr=t,t=o)}else Jr=t,t=o;if(t===o)if(t=Jr,39===e.charCodeAt(Jr)?(r=d,Jr++):(r=o,0===Kr&&un(st)),r!==o){for(n=[],i=On();i!==o;)n.push(i),i=On();39===e.charCodeAt(Jr)?(i=d,Jr++):(i=o,0===Kr&&un(st)),i!==o?(Wr=t,t=Hr(n)):(Jr=t,t=o)}else Jr=t,t=o;return Kr--,t===o&&(r=o,0===Kr&&un(it)),t}function Dn(){var t,r,n;return t=Jr,r=Jr,Kr++,34===e.charCodeAt(Jr)?(n=p,Jr++):(n=o,0===Kr&&un(at)),n===o&&(92===e.charCodeAt(Jr)?(n=l,Jr++):(n=o,0===Kr&&un(Ge)),n===o&&(n=pn())),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=Rn())!==o?(Wr=t,t=n):(Jr=t,t=o),t===o&&(t=Pn())),t}function On(){var t,r,n;return t=Jr,r=Jr,Kr++,39===e.charCodeAt(Jr)?(n=d,Jr++):(n=o,0===Kr&&un(st)),n===o&&(92===e.charCodeAt(Jr)?(n=l,Jr++):(n=o,0===Kr&&un(Ge)),n===o&&(n=pn())),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t===o&&(t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=Rn())!==o?(Wr=t,t=n):(Jr=t,t=o),t===o&&(t=Pn())),t}function Pn(){var t,r;return t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&dn()!==o?(Wr=t,t=""):(Jr=t,t=o),t}function Rn(){var t,r,n,i;return t=function(){var t;return(t=Tn())===o&&(t=function(){var t,r,n;return t=Jr,r=Jr,Kr++,n=function(){var t;return(t=Tn())===o&&(t=En())===o&&(120===e.charCodeAt(Jr)?(t="x",Jr++):(t=o,0===Kr&&un(ht)),t===o&&(117===e.charCodeAt(Jr)?(t="u",Jr++):(t=o,0===Kr&&un(mt)))),t}(),n===o&&(n=pn()),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=ln())!==o?(Wr=t,t=qr()):(Jr=t,t=o),t}()),t}(),t===o&&(t=Jr,48===e.charCodeAt(Jr)?(r="0",Jr++):(r=o,0===Kr&&un(Ke)),r!==o?(n=Jr,Kr++,i=En(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="\0"):(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=function(){var t,r,n,i,a,s;return t=Jr,120===e.charCodeAt(Jr)?(r="x",Jr++):(r=o,0===Kr&&un(ht)),r!==o?(n=Jr,i=Jr,(a=Fn())!==o&&(s=Fn())!==o?i=a=[a,s]:(Jr=i,i=o),(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=Gr(n)):(Jr=t,t=o)):(Jr=t,t=o),t}(),t===o&&(t=kn()))),t}function Tn(){var t,r;return 39===e.charCodeAt(Jr)?(t=d,Jr++):(t=o,0===Kr&&un(st)),t===o&&(34===e.charCodeAt(Jr)?(t=p,Jr++):(t=o,0===Kr&&un(at)),t===o&&(92===e.charCodeAt(Jr)?(t=l,Jr++):(t=o,0===Kr&&un(Ge)),t===o&&(t=Jr,98===e.charCodeAt(Jr)?(r="b",Jr++):(r=o,0===Kr&&un(ut)),r!==o&&(Wr=t,r="\b"),(t=r)===o&&(t=Jr,102===e.charCodeAt(Jr)?(r="f",Jr++):(r=o,0===Kr&&un(ct)),r!==o&&(Wr=t,r="\f"),(t=r)===o&&(t=Jr,110===e.charCodeAt(Jr)?(r="n",Jr++):(r=o,0===Kr&&un(lt)),r!==o&&(Wr=t,r="\n"),(t=r)===o&&(t=Jr,114===e.charCodeAt(Jr)?(r="r",Jr++):(r=o,0===Kr&&un(ft)),r!==o&&(Wr=t,r="\r"),(t=r)===o&&(t=Jr,116===e.charCodeAt(Jr)?(r="t",Jr++):(r=o,0===Kr&&un(pt)),r!==o&&(Wr=t,r="\t"),(t=r)===o&&(t=Jr,118===e.charCodeAt(Jr)?(r="v",Jr++):(r=o,0===Kr&&un(dt)),r!==o&&(Wr=t,r="\v"),t=r)))))))),t}function kn(){var t,r,n,i,a,s,u,c;return t=Jr,117===e.charCodeAt(Jr)?(r="u",Jr++):(r=o,0===Kr&&un(mt)),r!==o?(n=Jr,i=Jr,(a=Fn())!==o&&(s=Fn())!==o&&(u=Fn())!==o&&(c=Fn())!==o?i=a=[a,s,u,c]:(Jr=i,i=o),(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=Gr(n)):(Jr=t,t=o)):(Jr=t,t=o),t}function xn(){var t,r,n;return t=Jr,r=Jr,Kr++,ue.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(bt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn())===o&&(t=_n()),t}function Sn(){var t,r,n;return t=Jr,92===e.charCodeAt(Jr)?(r=l,Jr++):(r=o,0===Kr&&un(Ge)),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t}function In(){var e,t,r;return e=Jr,t=Jr,Kr++,r=pn(),Kr--,r===o?t=void 0:(Jr=t,t=o),t!==o&&(r=ln())!==o?e=t=[t,r]:(Jr=e,e=o),e}function _n(){var t,r,n,i;if(t=Jr,91===e.charCodeAt(Jr)?(r=m,Jr++):(r=o,0===Kr&&un(At)),r!==o){for(n=[],i=Bn();i!==o;)n.push(i),i=Bn();93===e.charCodeAt(Jr)?(i=y,Jr++):(i=o,0===Kr&&un(Et)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)}else Jr=t,t=o;return t}function Bn(){var t,r,n;return t=Jr,r=Jr,Kr++,ce.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(wt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn()),t}function Nn(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===b?(r=b,Jr+=6):(r=o,0===Kr&&un(Bt)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function Mn(){var e,t;for(e=[],(t=fn())===o&&(t=dn())===o&&(t=hn());t!==o;)e.push(t),(t=fn())===o&&(t=dn())===o&&(t=hn());return e}function jn(){var t;return Ee.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ut)),t===o&&(we.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Vt))),t}function Ln(){var t;return oe.test(e.charAt(Jr))?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(et)),t}function Un(){var t;return(t=Ln())===o&&("a"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(zt)),t===o&&("b"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Ht)),t===o&&("c"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(qt)),t===o&&("d"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Gt)),t===o&&("e"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Jt)),t===o&&("f"===e.substr(Jr,1).toLowerCase()?(t=e.charAt(Jr),Jr++):(t=o,0===Kr&&un(Wt)))))))),t}function Vn(){var t,r,n,i,a;return t=Jr,r=Jr,37===e.charCodeAt(Jr)?(n="%",Jr++):(n=o,0===Kr&&un(Yt)),n!==o&&(i=Un())!==o&&(a=Un())!==o?r=n=[n,i,a]:(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Qn(){var t;return 33===e.charCodeAt(Jr)?(t="!",Jr++):(t=o,0===Kr&&un(tr)),t===o&&(36===e.charCodeAt(Jr)?(t="$",Jr++):(t=o,0===Kr&&un(He)),t===o&&(38===e.charCodeAt(Jr)?(t="&",Jr++):(t=o,0===Kr&&un(rr)),t===o&&(39===e.charCodeAt(Jr)?(t=d,Jr++):(t=o,0===Kr&&un(st)),t===o&&(40===e.charCodeAt(Jr)?(t="(",Jr++):(t=o,0===Kr&&un(nr)),t===o&&(41===e.charCodeAt(Jr)?(t=")",Jr++):(t=o,0===Kr&&un(or)),t===o&&(42===e.charCodeAt(Jr)?(t="*",Jr++):(t=o,0===Kr&&un(ir)),t===o&&(43===e.charCodeAt(Jr)?(t="+",Jr++):(t=o,0===Kr&&un(ar)),t===o&&(44===e.charCodeAt(Jr)?(t=D,Jr++):(t=o,0===Kr&&un(sr)),t===o&&(59===e.charCodeAt(Jr)?(t=";",Jr++):(t=o,0===Kr&&un(jt)),t===o&&(61===e.charCodeAt(Jr)?(t=O,Jr++):(t=o,0===Kr&&un(ur)))))))))))),t}function zn(){var t;return(t=jn())===o&&(t=Ln())===o&&(45===e.charCodeAt(Jr)?(t=P,Jr++):(t=o,0===Kr&&un(cr)),t===o&&(46===e.charCodeAt(Jr)?(t=f,Jr++):(t=o,0===Kr&&un(Xe)),t===o&&(95===e.charCodeAt(Jr)?(t="_",Jr++):(t=o,0===Kr&&un(qe)),t===o&&(126===e.charCodeAt(Jr)?(t="~",Jr++):(t=o,0===Kr&&un(lr)))))),t}function Hn(){var t,r,n,i,a,s,u;return t=Jr,(r=function(){var t,r,n,i,a;if(t=Jr,r=Jr,(n=jn())!==o){for(i=[],(a=jn())===o&&(a=Ln())===o&&(43===e.charCodeAt(Jr)?(a="+",Jr++):(a=o,0===Kr&&un(ar)),a===o&&(45===e.charCodeAt(Jr)?(a=P,Jr++):(a=o,0===Kr&&un(cr)),a===o&&(46===e.charCodeAt(Jr)?(a=f,Jr++):(a=o,0===Kr&&un(Xe)))));a!==o;)i.push(a),(a=jn())===o&&(a=Ln())===o&&(43===e.charCodeAt(Jr)?(a="+",Jr++):(a=o,0===Kr&&un(ar)),a===o&&(45===e.charCodeAt(Jr)?(a=P,Jr++):(a=o,0===Kr&&un(cr)),a===o&&(46===e.charCodeAt(Jr)?(a=f,Jr++):(a=o,0===Kr&&un(Xe)))));r=n=[n,i]}else Jr=r,r=o;return r!==o?e.substring(t,Jr):r}())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o&&(i=function(){var t,r,n;return t=Jr,e.substr(Jr,2)===c?(r=c,Jr+=2):(r=o,0===Kr&&un(Qe)),r!==o&&(n=function(){var t,r,n,i,a,s;return t=Jr,r=Jr,n=function(){var t,r,n;for(t=Jr,r=[],(n=zn())===o&&(n=Vn())===o&&(n=Qn())===o&&(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)));n!==o;)r.push(n),(n=zn())===o&&(n=Vn())===o&&(n=Qn())===o&&(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)));return e.substring(t,Jr)}(),64===e.charCodeAt(Jr)?(i=$,Jr++):(i=o,0===Kr&&un(er)),i!==o?r=n=[n,i]:(Jr=r,r=o),r===o&&(r=null),n=function(){var t,r,n,i;return t=Jr,r=function(){var t,r,n,i;return t=Jr,91===e.charCodeAt(Jr)?(r=m,Jr++):(r=o,0===Kr&&un(At)),r!==o?(n=function(){var t,r,n,i,a,s,u,c,l,f,p,d,h,m;return t=Jr,r=Jr,(n=Gn())!==o&&(i=Gn())!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,e.substr(Jr,2)===R?(n=R,Jr+=2):(n=o,0===Kr&&un(fr)),n!==o&&(i=Gn())!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,(n=Jn())===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=Gn())!==o&&(l=qn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,(i=Gn())===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=Gn())!==o&&(c=qn())!==o?r=n=[n,i,a,s,u,c]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?((s=Gn())===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=Gn())!==o&&(u=qn())!==o?r=n=[n,i,a,s,u]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?((c=Gn())===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Gn())!==o&&(s=qn())!==o?r=n=[n,i,a,s]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?((f=Gn())===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=qn())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?(f=Jr,(p=Gn())!==o?((d=Gn())===o&&(d=null),f=p=[p,d]):(Jr=f,f=o),f===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o&&(a=Jn())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,n=Jr,i=Jr,(a=Gn())!==o?(s=Jr,(u=Gn())!==o?(c=Jr,(l=Gn())!==o?(f=Jr,(p=Gn())!==o?(d=Jr,(h=Gn())!==o?((m=Gn())===o&&(m=null),d=h=[h,m]):(Jr=d,d=o),d===o&&(d=null),f=p=[p,d]):(Jr=f,f=o),f===o&&(f=null),c=l=[l,f]):(Jr=c,c=o),c===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),(a=Jn())!==o?n=i=[i,a]:(Jr=n,n=o),n===o&&(n=null),e.substr(Jr,2)===R?(i=R,Jr+=2):(i=o,0===Kr&&un(fr)),i!==o?r=n=[n,i]:(Jr=r,r=o))))))))),t=r!==o?e.substring(t,Jr):r}(),n===o&&(n=function(){var t,r,n,i,a,s,u;if(t=Jr,118===e.charCodeAt(Jr)?(r="v",Jr++):(r=o,0===Kr&&un(dt)),r!==o){if(n=Jr,i=[],(a=Un())!==o)for(;a!==o;)i.push(a),a=Un();else i=o;if((n=i!==o?e.substring(n,Jr):i)!==o)if(46===e.charCodeAt(Jr)?(i=f,Jr++):(i=o,0===Kr&&un(Xe)),i!==o){if(a=Jr,s=[],(u=zn())===o&&(58===e.charCodeAt(Jr)?(u=C,Jr++):(u=o,0===Kr&&un(Xt))),u!==o)for(;u!==o;)s.push(u),(u=zn())===o&&(58===e.charCodeAt(Jr)?(u=C,Jr++):(u=o,0===Kr&&un(Xt)));else s=o;(a=s!==o?e.substring(a,Jr):s)!==o?t=r=[r,n,i,a]:(Jr=t,t=o)}else Jr=t,t=o;else Jr=t,t=o}else Jr=t,t=o;return t}()),n!==o?(93===e.charCodeAt(Jr)?(i=y,Jr++):(i=o,0===Kr&&un(Et)),i!==o?t=r=[r,n,i]:(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),r!==o?(n=Jr,Kr++,i=Xn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Jr,(r=Wn())!==o?(n=Jr,Kr++,i=Xn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=function(){var t,r,n;for(t=Jr,r=[],n=Xn();n!==o;)r.push(n),n=Xn();return e.substring(t,Jr)}())),t}(),n!==o?(i=Jr,58===e.charCodeAt(Jr)?(a=C,Jr++):(a=o,0===Kr&&un(Xt)),a!==o?(s=function(){var t,r,n;for(t=Jr,r=[],n=Ln();n!==o;)r.push(n),n=Ln();return e.substring(t,Jr)}(),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),t=r=[r,n,i]):(Jr=t,t=o),t}())!==o?t=r=[r,n,Zn()]:(Jr=t,t=o),t===o&&(t=function(){var t,r,n,i,a,s,u,c;if(t=Jr,r=Jr,47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n!==o){if(i=Jr,(a=eo())!==o){for(s=[],u=Jr,47===e.charCodeAt(Jr)?(c=h,Jr++):(c=o,0===Kr&&un(gt)),c!==o?u=c=[c,Kn()]:(Jr=u,u=o);u!==o;)s.push(u),u=Jr,47===e.charCodeAt(Jr)?(c=h,Jr++):(c=o,0===Kr&&un(gt)),c!==o?u=c=[c,Kn()]:(Jr=u,u=o);i=a=[a,s]}else Jr=i,i=o;i===o&&(i=null),r=n=[n,i]}else Jr=r,r=o;return r!==o?e.substring(t,Jr):r}())===o&&(t=function(){var t,r,n,i,a,s;if(t=Jr,r=Jr,(n=eo())!==o){for(i=[],a=Jr,47===e.charCodeAt(Jr)?(s=h,Jr++):(s=o,0===Kr&&un(gt)),s!==o?a=s=[s,Kn()]:(Jr=a,a=o);a!==o;)i.push(a),a=Jr,47===e.charCodeAt(Jr)?(s=h,Jr++):(s=o,0===Kr&&un(gt)),s!==o?a=s=[s,Kn()]:(Jr=a,a=o);r=n=[n,i]}else Jr=r,r=o;return t=r!==o?e.substring(t,Jr):r}(),t===o&&(t="")),t}())!==o?(a=Jr,63===e.charCodeAt(Jr)?(s=F,Jr++):(s=o,0===Kr&&un(Zt)),s!==o?a=s=[s,u=ro()]:(Jr=a,a=o),a===o&&(a=null),s=Jr,35===e.charCodeAt(Jr)?(u="#",Jr++):(u=o,0===Kr&&un(Kt)),u!==o?s=u=[u,no()]:(Jr=s,s=o),s===o&&(s=null),t=r=[r,n,i,a,s]):(Jr=t,t=o)):(Jr=t,t=o),t}function qn(){var t,r,n,i;return t=Jr,(r=Jn())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o&&(i=Jn())!==o?t=r=[r,n,i]:(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Wn()),t}function Gn(){var t,r,n;return t=Jr,(r=Jn())!==o?(58===e.charCodeAt(Jr)?(n=C,Jr++):(n=o,0===Kr&&un(Xt)),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function Jn(){var t,r,n,i,a,s,u,c;return t=Jr,r=Jr,(n=Un())!==o?(i=Jr,(a=Un())!==o?(s=Jr,(u=Un())!==o?((c=Un())===o&&(c=null),s=u=[u,c]):(Jr=s,s=o),s===o&&(s=null),i=a=[a,s]):(Jr=i,i=o),i===o&&(i=null),r=n=[n,i]):(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Wn(){var t,r,n,i,a,s,u,c,l;return t=Jr,r=Jr,(n=Yn())!==o?(46===e.charCodeAt(Jr)?(i=f,Jr++):(i=o,0===Kr&&un(Xe)),i!==o&&(a=Yn())!==o?(46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=Yn())!==o?(46===e.charCodeAt(Jr)?(c=f,Jr++):(c=o,0===Kr&&un(Xe)),c!==o&&(l=Yn())!==o?r=n=[n,i,a,s,u,c,l]:(Jr=r,r=o)):(Jr=r,r=o)):(Jr=r,r=o)):(Jr=r,r=o),r!==o?e.substring(t,Jr):r}function Yn(){var t,r,n,i,a;return t=Jr,r=Jr,"25"===e.substr(Jr,2)?(n="25",Jr+=2):(n=o,0===Kr&&un(pr)),n!==o?(Ce.test(e.charAt(Jr))?(i=e.charAt(Jr),Jr++):(i=o,0===Kr&&un(dr)),i!==o?r=n=[n,i]:(Jr=r,r=o)):(Jr=r,r=o),r===o&&(r=Jr,50===e.charCodeAt(Jr)?(n="2",Jr++):(n=o,0===Kr&&un(hr)),n!==o?(Fe.test(e.charAt(Jr))?(i=e.charAt(Jr),Jr++):(i=o,0===Kr&&un(mr)),i!==o&&(a=Ln())!==o?r=n=[n,i,a]:(Jr=r,r=o)):(Jr=r,r=o),r===o&&(r=Jr,49===e.charCodeAt(Jr)?(n="1",Jr++):(n=o,0===Kr&&un(Qt)),n!==o&&(i=Ln())!==o&&(a=Ln())!==o?r=n=[n,i,a]:(Jr=r,r=o),r===o&&(r=Jr,ie.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(tt)),n!==o&&(i=Ln())!==o?r=n=[n,i]:(Jr=r,r=o),r===o&&(r=Ln())))),r!==o?e.substring(t,Jr):r}function Xn(){var e;return(e=zn())===o&&(e=Vn()),e}function Zn(){var t,r,n,i;for(t=Jr,r=[],n=Jr,47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?n=i=[i,Kn()]:(Jr=n,n=o);n!==o;)r.push(n),n=Jr,47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?n=i=[i,Kn()]:(Jr=n,n=o);return e.substring(t,Jr)}function Kn(){var t,r,n;for(t=Jr,r=[],n=to();n!==o;)r.push(n),n=to();return e.substring(t,Jr)}function eo(){var t,r,n;if(t=Jr,r=[],(n=to())!==o)for(;n!==o;)r.push(n),n=to();else r=o;return r!==o?e.substring(t,Jr):r}function to(){var t;return(t=zn())===o&&(t=Vn())===o&&(t=Qn())===o&&(58===e.charCodeAt(Jr)?(t=C,Jr++):(t=o,0===Kr&&un(Xt)),t===o&&(64===e.charCodeAt(Jr)?(t=$,Jr++):(t=o,0===Kr&&un(er)))),t}function ro(){var t,r,n;for(t=Jr,r=[],(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));n!==o;)r.push(n),(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));return e.substring(t,Jr)}function no(){var t,r,n;for(t=Jr,r=[],(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));n!==o;)r.push(n),(n=to())===o&&(47===e.charCodeAt(Jr)?(n=h,Jr++):(n=o,0===Kr&&un(gt)),n===o&&(63===e.charCodeAt(Jr)?(n=F,Jr++):(n=o,0===Kr&&un(Zt))));return e.substring(t,Jr)}function oo(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===S?(r=S,Jr+=8):(r=o,0===Kr&&un(br)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function io(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===j?(r=j,Jr+=4):(r=o,0===Kr&&un($r)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function ao(){var t,r,n,i;return t=Jr,".*"===e.substr(Jr,2)?(r=".*",Jr+=2):(r=o,0===Kr&&un(Dr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}function so(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===L?(r=L,Jr+=7):(r=o,0===Kr&&un(Or)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Integer"):(Jr=t,t=o)):(Jr=t,t=o),t}function uo(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===U?(r=U,Jr+=6):(r=o,0===Kr&&un(Pr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Double"):(Jr=t,t=o)):(Jr=t,t=o),t}function co(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===V?(r=V,Jr+=4):(r=o,0===Kr&&un(Rr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Long"):(Jr=t,t=o)):(Jr=t,t=o),t}function lo(){var t,r,n,i;return t=Jr,e.substr(Jr,6)===Q?(r=Q,Jr+=6):(r=o,0===Kr&&un(Tr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="String"):(Jr=t,t=o)):(Jr=t,t=o),t}function fo(){var t,r,n,i;return t=Jr,e.substr(Jr,8)===z?(r=z,Jr+=8):(r=o,0===Kr&&un(kr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="DateTime"):(Jr=t,t=o)):(Jr=t,t=o),t}function po(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===H?(r=H,Jr+=7):(r=o,0===Kr&&un(xr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t="Boolean"):(Jr=t,t=o)):(Jr=t,t=o),t}function ho(){var t;return(t=function(){var t,r,n;return t=Jr,e.substr(Jr,13)===q?(r=q,Jr+=13):(r=o,0===Kr&&un(Sr)),r!==o?(Mn(),(n=mn())!==o?(Wr=t,t={$class:"concerto.metamodel.IdentifiedBy",name:n.name}):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r;return t=Jr,e.substr(Jr,10)===G?(r=G,Jr+=10):(r=o,0===Kr&&un(Ir)),r!==o&&(Wr=t,r={$class:"concerto.metamodel.Identified"}),r}()),t}function mo(){var t,r;return t=Jr,r=function(){var t,r,n,i;return t=Jr,r=Jr,45===e.charCodeAt(Jr)?(n=P,Jr++):(n=o,0===Kr&&un(cr)),n===o&&(n=null),r=e.substring(r,Jr),n=Jr,(n=(i=function(){var t,r,n,i;return Kr++,t=Jr,r=function(){var t,r,n,i,a;if(t=Jr,"0x"===e.substr(Jr,2).toLowerCase()?(r=e.substr(Jr,2),Jr+=2):(r=o,0===Kr&&un(nt)),r!==o){if(n=Jr,i=[],(a=Fn())!==o)for(;a!==o;)i.push(a),a=Fn();else i=o;(n=i!==o?e.substring(n,Jr):i)!==o?(Wr=t,t={type:"Literal",value:parseInt(n,16)}):(Jr=t,t=o)}else Jr=t,t=o;return t}(),r!==o?(n=Jr,Kr++,(i=yn())===o&&(i=En()),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t=r):(Jr=t,t=o)):(Jr=t,t=o),t===o&&(t=Jr,r=function(){var t,r,n,i,a;if(t=Jr,(r=An())!==o)if(46===e.charCodeAt(Jr)?(n=f,Jr++):(n=o,0===Kr&&un(Xe)),n!==o){for(i=[],a=En();a!==o;)i.push(a),a=En();(a=wn())===o&&(a=null),Wr=t,t=zr()}else Jr=t,t=o;else Jr=t,t=o;if(t===o){if(t=Jr,46===e.charCodeAt(Jr)?(r=f,Jr++):(r=o,0===Kr&&un(Xe)),r!==o){if(n=[],(i=En())!==o)for(;i!==o;)n.push(i),i=En();else n=o;n!==o?((i=wn())===o&&(i=null),Wr=t,t=zr()):(Jr=t,t=o)}else Jr=t,t=o;t===o&&(t=Jr,(r=An())!==o?((n=wn())===o&&(n=null),Wr=t,t=zr()):(Jr=t,t=o))}return t}(),r!==o?(n=Jr,Kr++,(i=yn())===o&&(i=En()),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=t,t=r):(Jr=t,t=o)):(Jr=t,t=o)),Kr--,t===o&&(r=o,0===Kr&&un(Ye)),t}())!==o?e.substring(n,Jr):i)!==o?(Wr=t,t=r+n):(Jr=t,t=o),t}(),r!==o&&(Wr=t,r={$class:"concerto.metamodel.DecoratorNumber",value:+r,location:xo(tn())}),r}function yo(){var t;return(t=function(){var e,t;return e=Jr,(t=$n())!==o&&(Wr=e,t={$class:"concerto.metamodel.DecoratorString",value:t.value,location:xo(tn())}),t}())===o&&(t=function(){var t,r,n;return t=Jr,r=Jr,(r=(n=vn())!==o?e.substring(r,Jr):n)!==o&&(Wr=t,r={$class:"concerto.metamodel.DecoratorBoolean",value:"true"==r,location:xo(tn())}),r}())===o&&(t=mo())===o&&(t=function(){var t,r,n;return t=Jr,(r=mn())!==o?(Mn(),e.substr(Jr,2)===J?(n=J,Jr+=2):(n=o,0===Kr&&un(_r)),n===o&&(n=null),Wr=t,t={$class:"concerto.metamodel.DecoratorTypeReference",type:r,isArray:!!n,location:xo(tn())}):(Jr=t,t=o),t}()),t}function go(){var t,r,n,i;return t=Jr,64===e.charCodeAt(Jr)?(r=$,Jr++):(r=o,0===Kr&&un(er)),r!==o?(n=Jr,(n=(i=mn())!==o?e.substring(n,Jr):i)!==o?(i=function(){var t,r,n,i,a,s,u,c;if(t=Jr,40===e.charCodeAt(Jr)?(r="(",Jr++):(r=o,0===Kr&&un(nr)),r!==o){for(Mn(),n=[],i=Jr,(a=yo())!==o?(s=Mn(),44===e.charCodeAt(Jr)?(u=D,Jr++):(u=o,0===Kr&&un(sr)),u!==o?(Mn(),Wr=i,i=a):(Jr=i,i=o)):(Jr=i,i=o);i!==o;)n.push(i),i=Jr,(a=yo())!==o?(s=Mn(),44===e.charCodeAt(Jr)?(u=D,Jr++):(u=o,0===Kr&&un(sr)),u!==o?(Mn(),Wr=i,i=a):(Jr=i,i=o)):(Jr=i,i=o);(i=yo())===o&&(i=null),a=Mn(),41===e.charCodeAt(Jr)?(s=")",Jr++):(s=o,0===Kr&&un(or)),s!==o?(Wr=t,t=(c=i)?n.concat(c):[]):(Jr=t,t=o)}else Jr=t,t=o;return t}(),i===o&&(i=null),Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.Decorator",name:e,location:xo(tn())};return t&&(r.arguments=t),r}(n,i)):(Jr=t,t=o)):(Jr=t,t=o),t}function vo(){var e,t,r;for(e=[],t=Jr,(r=go())!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o);t!==o;)e.push(t),t=Jr,(r=go())!==o?(Mn(),Wr=t,t=r):(Jr=t,t=o);return e}function bo(){var t,r,n;return t=Jr,e.substr(Jr,7)===W?(r=W,Jr+=7):(r=o,0===Kr&&un(Br)),r!==o?(Mn(),(n=mn())!==o?(Wr=t,t={$class:"concerto.metamodel.TypeIdentifier",name:n.name}):(Jr=t,t=o)):(Jr=t,t=o),t}function Ao(){var t,r;return t=Jr,e.substr(Jr,8)===X?(r=X,Jr+=8):(r=o,0===Kr&&un(Mr)),r!==o&&(Wr=t,r={type:"Optional"}),r}function Eo(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),(i=$n())!==o?(Wr=t,t=i.value):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}function wo(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=Cn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}function Co(){var t;return(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),lo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=Eo())===o&&(s=null),Mn(),u=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===ee?(r=ee,Jr+=5):(r=o,0===Kr&&un(Ur)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),(i=function(){var t,r,n,i,a;return Kr++,t=Jr,47===e.charCodeAt(Jr)?(r=h,Jr++):(r=o,0===Kr&&un(gt)),r!==o?(n=Jr,i=function(){var t,r,n,i;if(t=Jr,r=function(){var t,r,n;return t=Jr,r=Jr,Kr++,se.test(e.charAt(Jr))?(n=e.charAt(Jr),Jr++):(n=o,0===Kr&&un(vt)),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o&&(n=In())!==o?t=r=[r,n]:(Jr=t,t=o),t===o&&(t=Sn())===o&&(t=_n()),t}(),r!==o){for(n=[],i=xn();i!==o;)n.push(i),i=xn();t=r=[r,n]}else Jr=t,t=o;return t}(),(n=i!==o?e.substring(n,Jr):i)!==o?(47===e.charCodeAt(Jr)?(i=h,Jr++):(i=o,0===Kr&&un(gt)),i!==o?(a=Jr,function(){var e,t;for(e=[],t=gn();t!==o;)e.push(t),t=gn()}(),a=e.substring(a,Jr),Wr=t,t={$class:"concerto.metamodel.StringRegexValidator",pattern:n,flags:a}):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),Kr--,t===o&&(r=o,0===Kr&&un(yt)),t}())!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.StringProperty",name:r.name,isArray:ko(t),isOptional:ko(i),location:xo(tn())};return n&&(a.defaultValue=n),e.length>0&&(a.decorators=e),o&&(a.validator=o),a}(r,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&((t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),uo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),s=function(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=bn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),s===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,bn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,bn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.DoubleDomainValidator"};return e&&(r.lower=parseFloat(e)),t&&(r.upper=parseFloat(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.DoubleProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseFloat(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),po()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),s=function(){var t,r,n,i,a;return t=Jr,e.substr(Jr,7)===Z?(r=Z,Jr+=7):(r=o,0===Kr&&un(jr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),i=Jr,(i=(a=vn())!==o?e.substring(i,Jr):a)!==o?(Wr=t,t=i):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),s===o&&(s=null),Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.BooleanProperty",name:r.name,isArray:ko(t),isOptional:ko(o),location:xo(tn())};return n&&(i.defaultValue="true"===n),e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),fo()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=Eo())===o&&(s=null),Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.DateTimeProperty",name:r.name,isArray:ko(t),isOptional:ko(o),location:xo(tn())};return n&&(i.defaultValue=n),e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),"--\x3e"===e.substr(Jr,3)?(n="--\x3e",Jr+=3):(n=o,0===Kr&&un(Qr)),n!==o?(Mn(),(i=mn())!==o?(Mn(),e.substr(Jr,2)===J?(a=J,Jr+=2):(a=o,0===Kr&&un(_r)),a===o&&(a=null),Mn(),(s=mn())!==o?(Mn(),(u=Ao())===o&&(u=null),Mn(),Wr=t,t=function(e,t,r,n,o){const i={$class:"concerto.metamodel.RelationshipProperty",name:n.name,type:t,isArray:ko(r),isOptional:ko(o),location:xo(tn())};return e.length>0&&(i.decorators=e),i}(r,i,a,s,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),i=function(){var e,t,r,n,i;return e=Jr,t=Jr,Kr++,r=function(){var e;return(e=lo())===o&&(e=function(){var e;return(e=so())===o&&(e=uo())===o&&(e=co()),e}())===o&&(e=fo())===o&&(e=po()),e}(),Kr--,r===o?t=void 0:(Jr=t,t=o),t!==o&&(r=mn())!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(Wr=e,e={$class:"concerto.metamodel.TypeIdentifier",name:r.name}):(Jr=e,e=o)):(Jr=e,e=o),e}(),i!==o?(Mn(),e.substr(Jr,2)===J?(a=J,Jr+=2):(a=o,0===Kr&&un(_r)),a===o&&(a=null),Mn(),(s=mn())!==o?(Mn(),(u=Eo())===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ObjectProperty",name:n.name,type:t,isArray:ko(r),isOptional:ko(i),location:xo(tn())};return o&&(a.defaultValue=o),e.length>0&&(a.decorators=e),a}(r,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&((t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),so()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=wo())===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,Cn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,Cn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.IntegerDomainValidator"};return e&&(r.lower=parseInt(e)),t&&(r.upper=parseInt(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.IntegerProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseInt(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),co()!==o?(Mn(),e.substr(Jr,2)===J?(i=J,Jr+=2):(i=o,0===Kr&&un(_r)),i===o&&(i=null),Mn(),(a=mn())!==o?(Mn(),(s=wo())===o&&(s=null),Mn(),u=function(){var t,r,n,i,a,s,u,c;return t=Jr,e.substr(Jr,5)===te?(r=te,Jr+=5):(r=o,0===Kr&&un(Vr)),r!==o?(Mn(),61===e.charCodeAt(Jr)?(n=O,Jr++):(n=o,0===Kr&&un(ur)),n!==o?(Mn(),91===e.charCodeAt(Jr)?(i=m,Jr++):(i=o,0===Kr&&un(At)),i!==o?(Mn(),a=Jr,Cn(),a=e.substring(a,Jr),Mn(),44===e.charCodeAt(Jr)?(s=D,Jr++):(s=o,0===Kr&&un(sr)),s!==o?(Mn(),u=Jr,Cn(),u=e.substring(u,Jr),Mn(),93===e.charCodeAt(Jr)?(c=y,Jr++):(c=o,0===Kr&&un(Et)),c!==o?(Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.LongDomainValidator"};return e&&(r.lower=parseInt(e)),t&&(r.upper=parseInt(t)),r}(a,u)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}(),u===o&&(u=null),Mn(),(c=Ao())===o&&(c=null),Mn(),Wr=t,t=function(e,t,r,n,o,i,a){const s={$class:"concerto.metamodel.LongProperty",name:n.name,isArray:ko(r),isOptional:ko(a),location:xo(tn())};return o&&(s.defaultValue=parseInt(o)),e.length>0&&(s.decorators=e),i&&(s.validator=i),s}(r,0,i,a,s,u,c)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}()))),t}function Fo(){var e,t,r;for(e=Jr,t=[],r=Co();r!==o;)t.push(r),r=Co();return Wr=e,{type:"ClassDeclarationBody",declarations:To(t),location:xo(tn())}}function $o(){var t,r,n,i;return t=Jr,r=vo(),Mn(),111===e.charCodeAt(Jr)?(n=K,Jr++):(n=o,0===Kr&&un(Lr)),n!==o?(Mn(),(i=mn())!==o?(Mn(),Wr=t,t=function(e,t){const r={$class:"concerto.metamodel.EnumProperty",name:t.name,location:xo(tn())};return e.length>0&&(r.decorators=e),r}(r,i)):(Jr=t,t=o)):(Jr=t,t=o),t}function Do(){var t,r,n,i,a,s,u,c;if(t=Jr,r=Jr,(r=(n=mn())!==o?e.substring(r,Jr):n)!==o){for(n=Jr,i=[],a=Jr,46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=mn())!==o?a=s=[s,u]:(Jr=a,a=o);a!==o;)i.push(a),a=Jr,46===e.charCodeAt(Jr)?(s=f,Jr++):(s=o,0===Kr&&un(Xe)),s!==o&&(u=mn())!==o?a=s=[s,u]:(Jr=a,a=o);n=e.substring(n,Jr),Wr=t,c=n,t=r.concat(JSON.stringify(c).replace(/['"]+/g,""))}else Jr=t,t=o;return t}function Oo(){var t;return(t=function(){var t,r,n,i;return t=Jr,Nn()!==o?(Mn(),(r=Do())!==o&&ao()!==o?(Mn(),io()!==o?(Mn(),n=Jr,(n=(i=Hn())!==o?e.substring(n,Jr):i)!==o?(i=Mn(),Wr=t,t={$class:"concerto.metamodel.ImportAll",namespace:r,uri:n}):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s;return t=Jr,Nn()!==o?(Mn(),(r=Do())!==o?(n=Jr,Kr++,i=ao(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?(i=Mn(),io()!==o?(Mn(),a=Jr,(a=(s=Hn())!==o?e.substring(a,Jr):s)!==o?(s=Mn(),Wr=t,t=function(e,t){const{namespace:r,name:n}=So(e);return{$class:"concerto.metamodel.ImportType",name:n,namespace:r,uri:t}}(r,a)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var e,t,r,n;return e=Jr,Nn()!==o?(Mn(),(t=Do())!==o&&ao()!==o?(Mn(),r=Jr,Kr++,n=io(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(Wr=e,e={$class:"concerto.metamodel.ImportAll",namespace:t}):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o),e}())===o&&(t=function(){var e,t,r,n,i,a;return e=Jr,Nn()!==o?(Mn(),(t=Do())!==o?(r=Jr,Kr++,n=ao(),Kr--,n===o?r=void 0:(Jr=r,r=o),r!==o?(n=Mn(),i=Jr,Kr++,a=io(),Kr--,a===o?i=void 0:(Jr=i,i=o),i!==o?(Wr=e,e=function(e){const{namespace:t,name:r}=So(e);return{$class:"concerto.metamodel.ImportType",name:r,namespace:t}}(t)):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o)):(Jr=e,e=o),e}()),t}function Po(){var t;return(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===_?(r=_,Jr+=5):(r=o,0===Kr&&un(Er)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.AssetDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,11)===B?(r=B,Jr+=11):(r=o,0===Kr&&un(wr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.TransactionDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,5)===N?(r=N,Jr+=5):(r=o,0===Kr&&un(Cr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.EventDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,11)===M?(r=M,Jr+=11):(r=o,0===Kr&&un(Fr)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ParticipantDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u;return t=Jr,r=vo(),Mn(),n=function(){var t,r,n,i;return t=Jr,e.substr(Jr,4)===g?(r=g,Jr+=4):(r=o,0===Kr&&un(It)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),n!==o?(Mn(),(i=mn())!==o?(Mn(),123===e.charCodeAt(Jr)?(a=Y,Jr++):(a=o,0===Kr&&un(Nr)),a!==o?(Mn(),s=function(){var e,t,r;for(e=Jr,t=[],r=$o();r!==o;)t.push(r),r=$o();return Wr=e,{type:"EnumDeclarationBody",declarations:To(t)}}(),Mn(),125===e.charCodeAt(Jr)?(u=w,Jr++):(u=o,0===Kr&&un(Lt)),u!==o?(Wr=t,t=function(e,t,r){const n={$class:"concerto.metamodel.EnumDeclaration",name:t.name,properties:r.declarations,location:xo(tn())};return e.length>0&&(n.decorators=e),n}(r,i,s)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}())===o&&(t=function(){var t,r,n,i,a,s,u,c,l,f;return t=Jr,r=vo(),Mn(),(n=oo())===o&&(n=null),Mn(),i=function(){var t,r,n,i;return t=Jr,e.substr(Jr,7)===I?(r=I,Jr+=7):(r=o,0===Kr&&un(Ar)),r!==o?(n=Jr,Kr++,i=gn(),Kr--,i===o?n=void 0:(Jr=n,n=o),n!==o?t=r=[r,n]:(Jr=t,t=o)):(Jr=t,t=o),t}(),i!==o?(Mn(),(a=mn())!==o?(Mn(),(s=ho())===o&&(s=null),Mn(),(u=bo())===o&&(u=null),Mn(),123===e.charCodeAt(Jr)?(c=Y,Jr++):(c=o,0===Kr&&un(Nr)),c!==o?(Mn(),l=Fo(),Mn(),125===e.charCodeAt(Jr)?(f=w,Jr++):(f=o,0===Kr&&un(Lt)),f!==o?(Wr=t,t=function(e,t,r,n,o,i){const a={$class:"concerto.metamodel.ConceptDeclaration",name:r.name,isAbstract:ko(t),properties:i.declarations,location:xo(tn())};return o&&(a.superType=o),n&&(a.identified=n),e.length>0&&(a.decorators=e),a}(r,n,a,s,u,l)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o)):(Jr=t,t=o),t}()),t}function Ro(e,t,r){return[e].concat(function(e,t){var r,n=new Array(e.length);for(r=0;r<e.length;r++)n[r]=e[r][t];return n}(t,r))}function To(e){return null!==e?e:[]}function ko(e){return!!e}function xo(e){const t=e.start,r=e.end;t.$class="concerto.metamodel.Position",r.$class="concerto.metamodel.Position";const n={$class:"concerto.metamodel.Range",start:t,end:r};return e.source&&e.source[0]&&(n.source=e.source[0]),n}function So(e){const t=e.split(".");return{name:t.pop(),namespace:t.join(".")}}if((n=s())!==o&&Jr===e.length)return n;throw n!==o&&Jr<e.length&&un({type:"end"}),function(e,r,n){return new t(t.buildMessage(e,r),e,r,n)}(Zr,Xr<e.length?e.charAt(Xr):null,Xr<e.length?sn(Xr,Xr+1):sn(Xr,Xr))}}},9307:function(e,t,r){"use strict";const n=r(2255),o=r(7529);e.exports={parse:function(e,t){try{return n.parse(e)}catch(e){throw e.location&&e.location.start?new o(e.message,e.location,t):e}},parseModels:function(e){const t={$class:"concerto.metamodel.Models",models:[]};return e.forEach((e=>{let r=n.parse(e);t.models.push(r)})),t}}},5502:function(e){"use strict";function t(e){let t="";switch(e.$class){case"concerto.metamodel.DecoratorTypeReference":t+=`${e.type.name}${e.isArray?"[]":""}`;break;case"concerto.metamodel.DecoratorString":t+=`"${e.value}"`;break;default:t+=`${e.value}`}return t}function r(e){let r="";return r+=`@${e.name}`,e.arguments&&(r+="(",r+=e.arguments.map(t).join(","),r+=")"),r}function n(e,t){let n="";return n+=e.map(r).join(`\n${t}`),n+=`\n${t}`,n}e.exports={toCTO:function(e){let t="";return e.concertoVersion&&(t+=`concerto version "${e.concertoVersion}"`,t+="\n",t+="\n"),t+=`namespace ${e.namespace}`,e.imports&&e.imports.length>0&&(t+="\n",e.imports.forEach((e=>{let r="*";"concerto.metamodel.ImportType"===e.$class&&(r=e.name),t+=`\nimport ${e.namespace}.${r}`,e.uri&&(t+=` from ${e.uri}`)}))),e.declarations&&e.declarations.length>0&&e.declarations.forEach((e=>{t+=`\n\n${function(e){let t="";switch(e.decorators&&(t+=n(e.decorators,"")),e.isAbstract&&(t+="abstract "),e.$class){case"concerto.metamodel.AssetDeclaration":t+=`asset ${e.name} `;break;case"concerto.metamodel.ConceptDeclaration":t+=`concept ${e.name} `;break;case"concerto.metamodel.EventDeclaration":t+=`event ${e.name} `;break;case"concerto.metamodel.ParticipantDeclaration":t+=`participant ${e.name} `;break;case"concerto.metamodel.TransactionDeclaration":t+=`transaction ${e.name} `;break;case"concerto.metamodel.EnumDeclaration":t+=`enum ${e.name} `}return e.identified&&("concerto.metamodel.IdentifiedBy"===e.identified.$class?t+=`identified by ${e.identified.name} `:t+="identified "),e.superType&&(t+=`extends ${e.superType.name} `),t+="{",e.properties.forEach((e=>{t+=`\n ${function(e){let t="",r="",o="";switch(e.decorators&&(t+=n(e.decorators," ")),"concerto.metamodel.RelationshipProperty"===e.$class?t+="--\x3e":t+="o",e.$class){case"concerto.metamodel.EnumProperty":break;case"concerto.metamodel.BooleanProperty":t+=" Boolean",!0!==e.defaultValue&&!1!==e.defaultValue||(e.defaultValue?r+=" default=true":r+=" default=false");break;case"concerto.metamodel.DateTimeProperty":t+=" DateTime";break;case"concerto.metamodel.DoubleProperty":t+=" Double",e.defaultValue&&(r+=` default=${e.defaultValue.toFixed(Math.max(1,(e.defaultValue.toString().split(".")[1]||[]).length))}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.IntegerProperty":t+=" Integer",e.defaultValue&&(r+=` default=${e.defaultValue.toString()}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.LongProperty":t+=" Long",e.defaultValue&&(r+=` default=${e.defaultValue.toString()}`),e.validator&&(o+=` range=[${e.validator.lower?e.validator.lower:""},${e.validator.upper?e.validator.upper:""}]`);break;case"concerto.metamodel.StringProperty":t+=" String",e.defaultValue&&(r+=` default="${e.defaultValue}"`),e.validator&&(o+=` regex=/${e.validator.pattern}/${e.validator.flags}`);break;case"concerto.metamodel.ObjectProperty":t+=` ${e.type.name}`,e.defaultValue&&(r+=` default="${e.defaultValue}"`);break;case"concerto.metamodel.RelationshipProperty":t+=` ${e.type.name}`}return e.isArray&&(t+="[]"),t+=` ${e.name}`,t+=r,t+=o,e.isOptional&&(t+=" optional"),t}(e)}`})),t+="\n}",t}(e)}`})),t}}},5076:function(e,t,r){"use strict";const n=r(9058);e.exports={MetaModelUtil:n}},9058:function(e,t,r){"use strict";const n=r(5334);function o(e,t){if(!t[e])throw new Error(`Name ${e} not found`);return t[e]}function i(e,t){switch(e.$class){case"concerto.metamodel.Model":e.declarations&&e.declarations.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.AssetDeclaration":case"concerto.metamodel.ConceptDeclaration":case"concerto.metamodel.EventDeclaration":case"concerto.metamodel.TransactionDeclaration":case"concerto.metamodel.ParticipantDeclaration":if(e.superType){const r=e.superType.name;e.superType.namespace=o(r,t)}e.properties.forEach((e=>{i(e,t)})),e.decorators&&e.decorators.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.EnumDeclaration":e.decorators&&e.decorators.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.EnumProperty":case"concerto.metamodel.ObjectProperty":case"concerto.metamodel.RelationshipProperty":{const r=e.type.name;e.type.namespace=o(r,t),e.decorators&&e.decorators.forEach((e=>{i(e,t)}))}break;case"concerto.metamodel.Decorator":e.arguments&&e.arguments.forEach((e=>{i(e,t)}));break;case"concerto.metamodel.DecoratorTypeReference":{const r=e.type.name;e.type.namespace=o(r,t)}}return e}function a(e,t){const r=JSON.parse(JSON.stringify(t)),n=function(e,t){const r={Concept:"concerto",Asset:"concerto",Participant:"concerto","Transaction ":"concerto",Event:"concerto"};return t.imports.forEach((t=>{const n=t.namespace,o=function(e,t){return e.models.find((e=>e.namespace===t))}(e,n);if("concerto.metamodel.ImportType"===t.$class){if(i=o,a=t.name,!i.declarations.find((e=>e.name===a)))throw new Error(`Declaration ${t.name} in namespace ${n} not found`);r[t.name]=n}else o.declarations.forEach((e=>{r[e.name]=n}));var i,a})),t.declarations&&t.declarations.forEach((e=>{r[e.name]=t.namespace})),r}(e,t);return i(r,n),r}function s(e){return"concerto.metamodel.ImportAll"===e.$class?`${e.namespace}.*`:`${e.namespace}.${e.name}`}e.exports={metaModelAst:n,metaModelCto:"namespace concerto.metamodel\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n}\n\nconcept Models {\n o Model[] models\n}\n",resolveLocalNames:a,resolveLocalNamesForAll:function(e){const t={$class:"concerto.metamodel.Models",models:[]};return e.models.forEach((r=>{const n=a(e,r);t.models.push(n)})),t},importFullyQualifiedName:s,getExternalImports:function(e){const t={};return e.imports&&e.imports.forEach((e=>{const r=s(e);e.uri&&(t[r]=e.uri)})),t}}},1104:function(e,t,r){"use strict";const n=r(8815),o=r(7211),i=r(5565),a=r(3200),s=r(7464),u=r(7302),c=r(7957),l=r(1651),f=r(9752),p=r(1007),d=r(873),h=r(4598),m=r(4059);e.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:a,DefaultFileLoader:s,GitHubFileLoader:u,HTTPFileLoader:c,Writer:l,FileWriter:f,ModelWriter:p,Logger:d,TypedStack:h,Label:m}},8815:function(e,t,r){"use strict";const n=r(3023);class o extends Error{constructor(e,t){super(e),this.component=t||n.name,this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.exports=o},7211:function(e,t,r){"use strict";const n=r(8815);e.exports=class extends n{constructor(e,t,r,n,o){super(r||e,o),this.fileLocation=t,this.shortMessage=e,this.fileName=n}getFileLocation(){return this.fileLocation}getShortMessage(){return this.shortMessage}getFileName(){return this.fileName}}},5565:function(e,t,r){"use strict";const n=r(5130)("concerto:FileDownloader"),o=r(1036),i=e=>[].concat(...e),a=e=>e.filter(Boolean),s=async(e,t)=>{const r=e.response&&e.response.status&&200!==e.response.status,n=e.code&&"ENOTFOUND"===e.code;if(r||n){const e=new Error(`Unable to download external model dependency '${t.url}'`);throw e.code="MISSING_DEPENDENCY",e}throw new Error("Failed to load model file. Job: "+t.url+" Details: "+e)};e.exports=class{constructor(e,t,r=10){this.fileLoader=e,this.concurrency=r,this.getExternalImports=t}downloadExternalDependencies(e,t){n("downloadExternalDependencies");const r=new Set;t||(t={});const u=i(e.map((e=>{const n=this.getExternalImports(e);return Object.keys(n).map((e=>({downloadedUris:r,url:n[e],options:t})))})));return o.withConcurrency(this.concurrency).for(u).handleError(s).process((e=>this.runJob(e,this.fileLoader))).then((({results:e})=>a(i(e))))}runJob(e,t){const r=e.downloadedUris,u=e.options,c=e.url;return r.add(c),n("runJob","Loading",c),t.load(c,u).then((async e=>{n("runJob","Loaded",c);const l=this.getExternalImports(e),f=Array.from(new Set(Object.keys(l).map((e=>l[e]))));return n("runJob","importedUris",f),(await o.withConcurrency(this.concurrency).for(f).handleError(s).process((e=>{if(!r.has(e))return this.runJob({options:u,url:e,downloadedUris:r},t)})).then((({results:e})=>a(i(e))))).concat([e])}))}}},9752:function(e,t,r){"use strict";const n=r(6634),o=r(1848),i=r(8257),a=r(1651);e.exports=class extends a{constructor(e){super(),this.outputDirectory=e,this.relativeDir=null,this.fileName=null,o.sync(e)}openFile(e){this.fileName=e,this.relativeDir=null}openRelativeFile(e,t){this.relativeDir=e,this.fileName=t}writeLine(e,t){if(!this.fileName)throw Error("File has not been opened!");super.writeLine(e,t)}writeBeforeLine(e,t){if(!this.fileName)throw Error("File has not been opened!");super.writeBeforeLine(e,t)}closeFile(){if(!this.fileName)throw new Error("No file open");let e=this.outputDirectory;this.relativeDir&&(e=i.resolve(e,this.relativeDir)),e=i.resolve(e,this.fileName),o.sync(i.dirname(e)),n.writeFileSync(e,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}},4059:function(e){"use strict";e.exports={labelToSentence:function(e=""){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(e=>e.toUpperCase())).trim()},sentenceToLabel:function(e=""){const t=e.split(/[^A-Za-z0-9_-]+/);return t.forEach(((e,r)=>{t[r]=t[r].replace(/^./,(e=>e.toUpperCase()))})),t.join("").replace(/^./,(e=>e.toLowerCase()))}}},3200:function(e){"use strict";e.exports=class{constructor(){this.fileLoaders=[]}addFileLoader(e){this.fileLoaders.push(e)}getFileLoaders(){return this.fileLoaders}clearFileLoaders(){this.fileLoaders=[]}accepts(e){for(let t=0;t<this.fileLoaders.length;t++)if(this.fileLoaders[t].accepts(e))return!0;return!1}load(e,t){for(let r=0;r<this.fileLoaders.length;r++){const n=this.fileLoaders[r];if(n.accepts(e))return n.load(e,t)}throw new Error("Failed to find a model file loader that can handle: "+e)}}},7464:function(e,t,r){"use strict";const n=r(3200),o=r(7957),i=r(7302);e.exports=class extends n{constructor(e){super();const t=new o(e),r=new i(e);this.addFileLoader(r),this.addFileLoader(t)}}},7302:function(e,t,r){"use strict";const n=r(7957);e.exports=class extends n{constructor(e){super(e)}accepts(e){return e.startsWith("github://")}load(e,t){const r="https://raw.githubusercontent.com/"+e.substring(9);return super.load(r,t)}}},7957:function(e,t,r){"use strict";const n=r(9644),o=r(3088);e.exports=class{constructor(e){this.processFile=e}accepts(e){return e.startsWith("http://")||e.startsWith("https://")}load(e,t){t||(t={});const r=JSON.parse(JSON.stringify(t));return r.url=e,r.method="get",r.responseType="text",n(r).then((t=>{let r=o.parse(e);const n="@"+(r.host+r.pathname).replace(/\//g,".");return this.processFile(n,t.data)}))}}},873:function(e,t,r){"use strict";const n=r(3384),o=r(6190),i={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},a={error:"red",warn:"yellow",info:"green",verbose:"cyan",debug:"blue",silly:"magenta"},s=e=>"object"==typeof e||(e=>{try{return JSON.parse(e)&&!!e}catch(e){return!1}})(e)?o(e,{pretty:!0,colors:n}):e,u={};Object.keys(i).forEach((e=>{u[e]=(...t)=>((e,...t)=>{let r=e,o=t,u=o.shift();if(u&&"object"==typeof u&&u.level&&u.message){const e=u.padding&&u.padding[u.level];"error"===u.level&&u.stack?(r="error",u=`${u.message}\n${u.stack}`):Object.keys(i).includes(u.level)&&(r=u.level,u=u.message),u=e?`${e} ${u}`:u}o.unshift(u),(["error","warn"].includes(r)?console.error:console.log)(`${(new Date).toLocaleTimeString()} - ${(e=>n[a[e]](e.toUpperCase()))(r)}:`,...o.map((e=>e instanceof Error?`${e.message}\n${e.stack}`:e)).map(s))})(e,...t)}));class c{static dispatch(e,...t){i[e]>i[this.level]||this.transports.forEach((r=>{r[e]&&r[e](...t)}))}static add(e){this.transports.push(e)}static error(...e){return this.dispatch("error",...e)}static warn(...e){return this.dispatch("warn",...e)}static info(...e){return this.dispatch("info",...e)}static log(...e){return this.info(...e)}static http(...e){return this.dispatch("http",...e)}static verbose(...e){return this.dispatch("verbose",...e)}static debug(...e){return this.dispatch("debug",...e)}static silly(...e){return this.dispatch("silly",...e)}}c.level="info",c.transports=[u],e.exports=c},1007:function(e,t,r){"use strict";const n=r(6634),o=r(8257),i=r(4716);e.exports={writeModelsToFileSystem:function(e,t,r={}){if(!t)throw new Error("`path` is a required parameter of writeModelsToFileSystem");const a=Object.assign({includeExternalModels:!0},r);e.forEach((function(e){if(e.external&&!a.includeExternalModels)return;const r=i(e.fileName).split("/").pop();n.writeFileSync(t+o.sep+r,e.definitions)}))}}},4598:function(e){"use strict";e.exports=class{constructor(e){this.stack=[],this.push(e)}push(e,t){if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t.constructor.name+" as argument to push. Found: "+e.toString());this.stack.push(e)}pop(e){return this.peek(e),this.stack.pop()}peek(e){if(this.stack.length<1)throw new Error("Stack is empty!");const t=this.stack[this.stack.length-1];if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e+" on head of stack. Found: "+t);return t}clear(){this.stack=[]}}},1651:function(e){"use strict";e.exports=class{constructor(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}writeBeforeLine(e,t){for(let t=0;t<e;t++)this.beforeBuffer+=" ";this.beforeBuffer+=t,this.beforeBuffer+="\n",this.linesWritten++}writeLine(e,t){for(let t=0;t<e;t++)this.write(" ");this.write(t),this.write("\n"),this.linesWritten++}getLineCount(){return this.linesWritten}writeIndented(e,t){for(let t=0;t<e;t++)this.write(" ");this.write(t)}write(e){if("string"!=typeof e)throw new Error("Can only append strings. Argument "+e+" has type "+typeof e);this.buffer+=e,this.linesWritten+=e.split(/\r\n|\r|\n/).length}getBuffer(){return this.beforeBuffer+this.buffer}clearBuffer(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}},4055:function(){},8827:function(){},1599:function(){},6841:function(){},4830:function(){},2203:function(){},5783:function(){},4481:function(){},3088:function(){},6634:function(){},8257:function(){},4376:function(e){"use strict";e.exports=JSON.parse('{"$class":"concerto.metamodel.Model","namespace":"concerto","imports":[],"declarations":[{"$class":"concerto.metamodel.ConceptDeclaration","name":"Concept","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":19,"line":2,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":46,"line":2,"column":28,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Asset","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":47,"line":3,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":83,"line":3,"column":37,"$class":"concerto.metamodel.Position"}},"identified":{"$class":"concerto.metamodel.Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Participant","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":84,"line":4,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":126,"line":4,"column":43,"$class":"concerto.metamodel.Position"}},"identified":{"$class":"concerto.metamodel.Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Transaction","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":127,"line":5,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":158,"line":5,"column":32,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Event","isAbstract":true,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":159,"line":6,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":184,"line":6,"column":26,"$class":"concerto.metamodel.Position"}}}]}')},6077:function(e){"use strict";e.exports=JSON.parse('{"en":{"like":["{0, plural, offset:1"," =0 {Be the first to like this}"," =1 {You liked this}"," one {You and someone else liked this}"," other {You and # others liked this}","}"],"test-hello-array":"Hello, {0} {1} {2}","test-hello-object":"Hello, {first} {middle} {last}","test-repeat-array":"{0} {0} {0}","test-repeat-object":"{value} {value} {value}","classdeclaration-constructor-modelastreq":"\\"ModelFile\\" and \\"AST\\" are required to create a \\"ClassDecl\\".","classdeclaration-process-unrecmodelelem":"Unrecognised model element \\"{type}\\".","classdeclaration-getfield-notfindsupertype":"Could not find supertype \\"{type}\\".","classdeclaration-validate-identifiernotproperty":"Class \\"{class}\\" is identified by field \\"{idField}\\", but does not contain this property.","classdeclaration-validate-identifiernotstring":"Class \\"{class}\\" is identified by field \\"{idField}\\", but the type of the field is not \\"String\\".","classdeclaration-validate-duplicatefieldname":"Class \\"{class}\\" has more than one field named \\"{fieldName}\\".","classdeclaration-validate-missingidentifier":"Class \\"{class}\\" is not declared as \\"abstract\\". It must define an identifying field.","modelfile-constructor-unrecmodelelem":"Unrecognised model element \\"{type}\\".","modelfile-resolvetype-undecltype":"Undeclared type \\"{type}\\" in \\"{context}\\".","modelfile-resolveimport-failfindimp":"Failed to find \\"{type}\\" in list of imports \\"[{imports}]\\" for namespace \\"{namespace}\\".","transactiondeclaration-getidentifierfieldname-noidentifyingfield":"Transactions do not have an identifying field.","composer-connect-noconopts":"\\"connectOptions\\" not specified.","composer-connect-nokeyvalstore":"\\"connectOptions.keyValStore\\" not specified.","composer-connect-nomembersrvcurl":"\\"connectOptions.membershipServicesURL\\" not specified.","composer-connect-nopeerurl":"\\"connectOptions.peerURL\\" not specified.","composer-connect-noeventhuburl":"\\"connectOptions.eventHubURL\\" not specified.","composer-connect-notconnected":"Connection needs to be connected. Call \\"connect(..)\\".","composer-login-noenrollmentid":"\\"enrollmentID\\" not specified.","composer-login-noenrollmentsecret":"\\"enrollmentSecret\\" not specified.","composer-deploy-nosecuritycontext":"\\"securityContext\\" not specified.","factory-newinstance-missingidentifier":"Missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-invalididentifier":"Invalid or missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-abstracttype":"Cannot instantiate the abstract type \\"{type}\\" in the \\"{namespace}\\" namespace.","factory-newrelationship-notregisteredwithmm":"Cannot create relationship as namespace \\"{namespace}\\" is not known.","factory-newinstance-typenotdeclaredinns":"Cannot instantiate Type \\"{type}\\" in namespace \\"{namespace}\\".","instancegenerator-newinstance-noconcreteclass":"No concrete extending type for \\"{type}\\".","modelmanager-resolvetype-nonsfortype":"No registered namespace for type \\"{type}\\" in \\"{context}\\".","modelmanager-resolvetype-notypeinnsforcontext":"No type \\"{type}\\" in namespace \\"{namespace}\\" for \\"{context}\\".","modelmanager-gettype-noregisteredns":"Namespace is not defined for type \\"{type}\\".","modelmanager-gettype-notypeinns":"Type \\"{type}\\" is not defined in namespace \\"{namespace}\\".","serializer-constructor-factorynull":"\\"Factory\\" cannot be \\"null\\".","serializer-constructor-modelmanagernull":"\\"ModelManager\\" cannot be \\"null\\".","serializer-tojson-notcobject":"\\"Serializer.toJSON\\" only accepts \\"Concept\\", \\"Event\\", \\"Asset\\", \\"Participant\\" or \\"Transaction\\".","util-securitycheck-novalidcontext":"A valid \\"SecurityContext\\" must be specified.","modelutil-getnamespace-nofnq":"FQN is invalid.","resourcevalidator-notresourceorconcept":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has the value of \\"{invalidValue}\\". Expected a \\"Resource\\" or a \\"Concept\\".","resourcevalidator-notrelationship":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has a value of \\"{invalidValue}\\". Expected a \\"Relationship\\".","resourcevalidator-fieldtypeviolation":"Model violation in the \\"{resourceId}\\" instance. The field \\"{propertyName}\\" has a value of \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type of value: \\"{fieldType}\\".","resourcevalidator-missingrequiredproperty":"The instance \\"{resourceId}\\" is missing the required field \\"{fieldName}\\".","resourcevalidator-invalidenumvalue":"Model violation in the \\"{resourceId}\\" instance. Invalid enum value of \\"{value}\\" for the field \\"{fieldName}\\".","resourcevalidator-abstractclass":"The class \\"{className}\\" is abstract and should not contain an instance.","resourcevalidator-undeclaredfield":"Instance \\"{resourceId}\\" has a property named \\"{propertyName}\\", which is not declared in \\"{fullyQualifiedTypeName}\\".","resourcevalidator-invalidfieldassignment":"Instance \\"{resourceId}\\" has a property \\"{propertyName}\\" with type \\"{objectType}\\" that is not derived from \\"{fieldType}\\".","resourcevalidator-emptyidentifier":"Instance \\"{resourceId}\\" has an empty identifier.","typenotfounderror-defaultmessage":"Type \\"{typeName}\\" not found.","whereastvalidator-propertytypeviolation":"Property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"{fieldType}\\".","whereastvalidator-enum-propertytypeviolation":"Enum property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-relationship-propertytypeviolation":"Relationship \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-unsupportedtype":"Property \\"{propertyName}\\" of type \\"{fieldType}\\" cannot be compared with a literal value.","whereastvalidator-invalidoperator":"Property \\"{propertyName}\\" cannot be compared using the \\"{operator}\\" operator."}}')},4147:function(e){"use strict";e.exports=JSON.parse('{"name":"@accordproject/concerto-core","version":"2.3.0","description":"Core Implementation for the Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"umd/concerto.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"node ./scripts/api-changelog.js && nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-cto"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"@babel/preset-env":"7.16.11","acorn":"8.5.0","acorn-walk":"8.2.0","babel-loader":"8.2.3","chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","commander":"2.20.0","doctrine":"3.0.0","eslint":"8.2.0","fs-extra":"9.1.0","jsdoc":"^3.6.7","klaw":"3.0.0","license-check-and-add":"2.3.6","mocha":"8.3.2","mockery":"2.1.0","moxios":"0.4.0","nyc":"15.1.0","sinon":"12.0.0","sinon-chai":"3.7.0","tmp-promise":"3.0.2","typescript":"4.6.3","webpack":"5.64.2","webpack-cli":"4.9.1","yargs":"17.3.1"},"dependencies":{"@accordproject/concerto-cto":"2.3.0","@accordproject/concerto-metamodel":"2.3.0","@accordproject/concerto-util":"2.3.0","dayjs":"1.10.8","debug":"4.3.1","lorem-ipsum":"2.0.3","randexp":"0.5.3","semver":"7.3.5","slash":"3.0.0","urijs":"1.19.11","uuid":"8.3.2"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","index.d.ts","./system","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"exclude":[],"all":true,"check-coverage":true,"statements":98,"branches":97,"functions":97,"lines":98}}')},5334:function(e){"use strict";e.exports=JSON.parse('{"$class":"concerto.metamodel.Model","namespace":"concerto.metamodel","imports":[],"declarations":[{"$class":"concerto.metamodel.ConceptDeclaration","name":"Position","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"line","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":635,"line":21,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":652,"line":22,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"column","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":652,"line":22,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":671,"line":23,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"offset","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":671,"line":23,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":688,"line":24,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":614,"line":20,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":689,"line":24,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Range","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"start","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":708,"line":26,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":727,"line":27,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"end","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":727,"line":27,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":744,"line":28,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"source","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":744,"line":28,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":769,"line":29,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":690,"line":25,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":770,"line":29,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"TypeIdentifier","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":844,"line":35,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":860,"line":36,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":860,"line":36,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":888,"line":37,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":817,"line":34,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":889,"line":37,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorLiteral","isAbstract":true,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":929,"line":40,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":955,"line":41,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":891,"line":39,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":956,"line":41,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorString","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1011,"line":44,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1026,"line":45,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":958,"line":43,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1027,"line":45,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorNumber","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1082,"line":48,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1097,"line":49,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1029,"line":47,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1098,"line":49,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorBoolean","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"value","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1154,"line":52,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1170,"line":53,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1100,"line":51,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1171,"line":53,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DecoratorTypeReference","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1233,"line":56,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1257,"line":57,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1257,"line":57,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1289,"line":58,"column":1,"$class":"concerto.metamodel.Position"}},"defaultValue":false}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1173,"line":55,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1290,"line":58,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Decorator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1314,"line":61,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1330,"line":62,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"arguments","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"DecoratorLiteral"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1330,"line":62,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1372,"line":63,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1372,"line":63,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1398,"line":64,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1292,"line":60,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1399,"line":64,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Identified","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1401,"line":66,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1423,"line":67,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IdentifiedBy","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1469,"line":70,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1483,"line":71,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1425,"line":69,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1484,"line":71,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Identified"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Declaration","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1519,"line":74,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1743,"line":75,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1743,"line":75,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1779,"line":76,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1779,"line":76,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1805,"line":77,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1486,"line":73,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1806,"line":77,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EnumDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"EnumProperty"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1856,"line":80,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":1884,"line":81,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1808,"line":79,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":1885,"line":81,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EnumProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":1912,"line":84,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2136,"line":85,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2136,"line":85,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2172,"line":86,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2172,"line":86,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2198,"line":87,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":1887,"line":83,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2199,"line":87,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ConceptDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"isAbstract","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2252,"line":90,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2289,"line":91,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.ObjectProperty","name":"identified","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Identified"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2289,"line":91,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2324,"line":92,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"superType","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2324,"line":92,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2362,"line":93,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2362,"line":93,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2386,"line":94,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2201,"line":89,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2387,"line":94,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"AssetDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2389,"line":96,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2444,"line":97,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ParticipantDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2446,"line":99,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2507,"line":100,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"TransactionDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2509,"line":102,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2570,"line":103,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"EventDeclaration","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2572,"line":105,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":2627,"line":106,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Property","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2659,"line":109,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2883,"line":110,"column":3,"$class":"concerto.metamodel.Position"}},"validator":{"$class":"concerto.metamodel.StringRegexValidator","pattern":"^(?!null|true|false)(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2883,"line":110,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2917,"line":111,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.BooleanProperty","name":"isOptional","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2917,"line":111,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2954,"line":112,"column":3,"$class":"concerto.metamodel.Position"}},"defaultValue":false},{"$class":"concerto.metamodel.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2954,"line":112,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":2990,"line":113,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":2990,"line":113,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3016,"line":114,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":2629,"line":108,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3017,"line":114,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"RelationshipProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3069,"line":117,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3091,"line":118,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3019,"line":116,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3092,"line":118,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ObjectProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3138,"line":121,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3171,"line":122,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3171,"line":122,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3193,"line":123,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3094,"line":120,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3194,"line":123,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"BooleanProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.BooleanProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3241,"line":126,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3273,"line":127,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3196,"line":125,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3274,"line":127,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DateTimeProperty","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3276,"line":129,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3321,"line":130,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"StringProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3367,"line":133,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3400,"line":134,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"StringRegexValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3400,"line":134,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3442,"line":135,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3323,"line":132,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3443,"line":135,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"StringRegexValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"pattern","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3478,"line":138,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3497,"line":139,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"flags","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3497,"line":139,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3512,"line":140,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3445,"line":137,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3513,"line":140,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DoubleProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3559,"line":143,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3592,"line":144,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"DoubleDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3592,"line":144,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3635,"line":145,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3515,"line":142,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3636,"line":145,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"DoubleDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.DoubleProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3672,"line":148,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3698,"line":149,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.DoubleProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3698,"line":149,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3722,"line":150,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3638,"line":147,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3723,"line":150,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IntegerProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3770,"line":153,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3804,"line":154,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"IntegerDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3804,"line":154,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3848,"line":155,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3725,"line":152,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3849,"line":155,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"IntegerDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.IntegerProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3886,"line":158,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3913,"line":159,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.IntegerProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3913,"line":159,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":3938,"line":160,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3851,"line":157,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":3939,"line":160,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"LongProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel.LongProperty","name":"defaultValue","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":3983,"line":163,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4014,"line":164,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"LongDomainValidator"},"isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4014,"line":164,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4055,"line":165,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":3941,"line":162,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4056,"line":165,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"LongDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel.LongProperty","name":"lower","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4090,"line":168,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4114,"line":169,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.LongProperty","name":"upper","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4114,"line":169,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4136,"line":170,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4058,"line":167,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4137,"line":170,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Import","isAbstract":true,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4167,"line":173,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4188,"line":174,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"uri","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4188,"line":174,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4210,"line":175,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4139,"line":172,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4211,"line":175,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ImportAll","isAbstract":false,"properties":[],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4213,"line":177,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4249,"line":178,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"ImportType","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"name","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4289,"line":181,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4303,"line":182,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4251,"line":180,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4304,"line":182,"column":2,"$class":"concerto.metamodel.Position"}},"superType":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Model","isAbstract":false,"properties":[{"$class":"concerto.metamodel.StringProperty","name":"namespace","isArray":false,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4324,"line":185,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4345,"line":186,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"sourceUri","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4345,"line":186,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4375,"line":187,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.StringProperty","name":"concertoVersion","isArray":false,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4375,"line":187,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4411,"line":188,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"imports","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Import"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4411,"line":188,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4441,"line":189,"column":3,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ObjectProperty","name":"declarations","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Declaration"},"isArray":true,"isOptional":true,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4441,"line":189,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4479,"line":190,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4306,"line":184,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4480,"line":190,"column":2,"$class":"concerto.metamodel.Position"}}},{"$class":"concerto.metamodel.ConceptDeclaration","name":"Models","isAbstract":false,"properties":[{"$class":"concerto.metamodel.ObjectProperty","name":"models","type":{"$class":"concerto.metamodel.TypeIdentifier","name":"Model"},"isArray":true,"isOptional":false,"location":{"$class":"concerto.metamodel.Range","start":{"offset":4501,"line":193,"column":3,"$class":"concerto.metamodel.Position"},"end":{"offset":4518,"line":194,"column":1,"$class":"concerto.metamodel.Position"}}}],"location":{"$class":"concerto.metamodel.Range","start":{"offset":4482,"line":192,"column":1,"$class":"concerto.metamodel.Position"},"end":{"offset":4519,"line":194,"column":2,"$class":"concerto.metamodel.Position"}}}]}')},3023:function(e){"use strict";e.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"2.3.0","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","typings":"types/index.d.ts","scripts":{"pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.2.0","jsdoc":"^3.6.7","license-check-and-add":"2.3.6","mocha":"8.3.2","moxios":"0.4.0","nyc":"15.1.0","tmp-promise":"3.0.2","typescript":"4.6.3"},"dependencies":{"@supercharge/promise-pool":"1.7.0","axios":"0.23.0","colors":"1.4.0","debug":"4.3.1","json-colorizer":"2.2.2","mkdirp":"1.0.4"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","./parser.js","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"exclude":["lib/parser.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r(6010)}()}));