@accordproject/concerto-util 3.25.6 → 3.26.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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see concerto-util.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["concerto-util"]=t():e["concerto-util"]=t()}(self,(()=>{return e={573:(e,t,r)=>{"use strict";const s=r(187);e.exports=s.PromisePool},160:(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},241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePoolExecutor=void 0;const s=r(160);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(s.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)}}},187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromisePool=void 0;const s=r(241);class n{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 n(e).withConcurrency(this.concurrency)}static for(e){return(new this).for(e)}handleError(e){return this.errorHandler=e,this}async process(e){return(new s.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(e).handleError(this.errorHandler).for(this.items).start()}}t.PromisePool=n},599:(e,t,r)=>{"use strict";const s=r(330),n=r(673);class o extends Error{constructor(e,t,r){super(e),this.component=t||s.name,this.name=this.constructor.name,this.message=e,this.errorType=r||n.DEFAULT_BASE_EXCEPTION,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.exports=o},133:(e,t,r)=>{"use strict";const s=r(599);e.exports=class extends s{constructor(e,t,r,s,n){super(r||e,n),this.fileLocation=t,this.shortMessage=e,this.fileName=s}getFileLocation(){return this.fileLocation}getShortMessage(){return this.shortMessage}getFileName(){return this.fileName}}},673:e=>{"use strict";e.exports={DEFAULT_BASE_EXCEPTION:"DefaultBaseException",DEFAULT_VALIDATOR_EXCEPTION:"DefaultValidatorException",REGEX_VALIDATOR_EXCEPTION:"RegexValidatorException",TYPE_NOT_FOUND_EXCEPTION:"TypeNotFoundException",DEPRECATION_WARNING:"DeprecationWarning",CONCERTO_DEPRECATION_001:"concerto-dep:001",CONCERTO_DEPRECATION_002:"concerto-dep:002"}},168:(e,t,r)=>{"use strict";const s=r(833)("concerto:FileDownloader"),n=r(573),o=e=>[].concat(...e),i=e=>e.filter(Boolean),c=async(e,t)=>{const r=e.response&&e.response.status&&200!==e.response.status,s=e.code&&"ENOTFOUND"===e.code;if(r||s){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){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.fileLoader=e,this.concurrency=r,this.getExternalImports=t}downloadExternalDependencies(e,t){s("downloadExternalDependencies");const r=new Set;t||(t={});const a=o(e.map((e=>{const s=this.getExternalImports(e);return Object.keys(s).map((e=>({downloadedUris:r,url:s[e],options:t})))})));return n.withConcurrency(this.concurrency).for(a).handleError(c).process((e=>this.runJob(e,this.fileLoader))).then((e=>{let{results:t}=e;return i(o(t))}))}runJob(e,t){const r=e.downloadedUris,a=e.options,u=e.url;return r.add(u),s("runJob","Loading",u),t.load(u,a).then((async e=>{s("runJob","Loaded",u);const l=this.getExternalImports(e),h=Array.from(new Set(Object.keys(l).map((e=>l[e]))));return s("runJob","importedUris",h),(await n.withConcurrency(this.concurrency).for(h).handleError(c).process((e=>{if(!r.has(e))return this.runJob({options:a,url:e,downloadedUris:r},t)})).then((e=>{let{results:t}=e;return i(o(t))}))).concat([e])}))}}},64:(e,t,r)=>{"use strict";const s=r(686),n=r(558),o=r(926);e.exports=class extends o{constructor(e){super(),this.outputDirectory=e,this.relativeDir=null,this.fileName=null,s.mkdirSync(e,{recursive:!0})}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=n.resolve(e,this.relativeDir)),e=n.resolve(e,this.fileName),s.mkdirSync(n.dirname(e),{recursive:!0}),s.writeFileSync(e,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}},721:e=>{"use strict";const t=/^(\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;e.exports={normalizeIdentifier:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const s=(e,t)=>{let r="";for(const e of t)r+=`_${e.codePointAt(0).toString(16)}`;return r};let n=e??String(e);if("string"!=typeof n)throw new Error(`Unsupported identifier type, '${typeof n}'.`);if(n=n.replace(/^\p{Nd}/u,"_$&").replace(/[-‐−@#:;><|/\\\u200c\u200d]/g,"_").replace(/\s/g,"_").replace(/(?!\p{Lu}|\p{Ll}|\p{Lt}|\p{Lm}|\p{Lo}|\p{Nl}|\$|_|\p{Mn}|\p{Mc}|\p{Nd}|\p{Pc}|\u200C|\u200D|\\u[0-9A-Fa-f]{4})(.)/gu,s).replace(/([\uD800-\uDFFF])/g,s),r>0&&(n=n.substring(0,r)),!t.test(n))throw new Error(`Unexpected error. Not able to escape identifier '${n}'.`);return n},ID_REGEX:t}},530:(e,t,r)=>{"use strict";const s=r(926);e.exports=class extends s{constructor(){super(),this.fileName="",this.data=new Map}openFile(e){this.fileName=e}closeFile(){this.data.set(this.fileName,this.getBuffer()),this.clearBuffer()}getFilesInMemory(){return this.data}}},911:e=>{"use strict";e.exports={labelToSentence:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").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(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[^A-Za-z0-9_-]+/);return e.forEach(((t,r)=>{e[r]=e[r].replace(/^./,(e=>e.toUpperCase()))})),e.join("").replace(/^./,(e=>e.toLowerCase()))}}},996: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 s=this.fileLoaders[r];if(s.accepts(e))return s.load(e,t)}throw new Error("Failed to find a model file loader that can handle: "+e)}}},546:(e,t,r)=>{"use strict";const s=r(996),n=r(25),o=r(990);e.exports=class extends s{constructor(e){super();const t=new n(e),r=new o(e);this.addFileLoader(r),this.addFileLoader(t)}}},990:(e,t,r)=>{"use strict";const s=r(25);e.exports=class extends s{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)}}},25:e=>{"use strict";e.exports=class{constructor(e){this.processFile=e}accepts(e){return e.startsWith("http://")||e.startsWith("https://")}async load(e,t){t||(t={method:"GET",headers:{"Content-Type":"text/plain"}}),console.log(e);const r=await fetch(e,t);if(!r.ok)throw new Error(`HTTP request failed with status: ${r.status}`);const s=await r.text(),n=new URL(e),o="@"+(n.host+n.pathname).replace(/\//g,".");return this.processFile(o,s)}}},545:e=>{"use strict";const t={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},r=e=>e,s={};Object.keys(t).forEach((e=>{s[e]=function(){for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return function(e){let s=e;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let c=o,a=c.shift();if(a&&"object"==typeof a&&a.level&&a.message){const e=a.padding&&a.padding[a.level];"error"===a.level&&a.stack?(s="error",a=`${a.message}\n${a.stack}`):Object.keys(t).includes(a.level)&&(s=a.level,a=a.message),a=e?`${e} ${a}`:a}c.unshift(a),(["error","warn"].includes(s)?console.error:console.log)(`${(new Date).toLocaleTimeString()} - ${s}:`,...c.map((e=>e instanceof Error?`${e.message}\n${e.stack}`:e)).map(r))}(e,...n)}}));class n{static dispatch(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),n=1;n<r;n++)s[n-1]=arguments[n];t[e]>t[this.level]||this.transports.forEach((t=>{t[e]&&t[e](...s)}))}static add(e){this.transports.push(e)}static error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("error",...t)}static warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("warn",...t)}static info(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("info",...t)}static log(){return this.info(...arguments)}static http(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("http",...t)}static verbose(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("verbose",...t)}static debug(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("debug",...t)}static silly(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.dispatch("silly",...t)}}n.level="info",n.transports=[s],e.exports=n},95:(e,t,r)=>{"use strict";const s=r(686),n=r(558),o=r(431);e.exports={writeModelsToFileSystem:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("`path` is a required parameter of writeModelsToFileSystem");const i=Object.assign({includeExternalModels:!0},r);e.forEach((function(e){if(e.external&&!i.includeExternalModels)return;const r=o(e.fileName).split("/").pop();s.writeFileSync(t+n.sep+r,e.definitions)}))}}},328:e=>{"use strict";e.exports=class{static isNull(e){return null==e}}},717: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=[]}}},361:e=>{"use strict";let t=!1;e.exports={printDeprecationWarning:function(e,r,s,n){t||(t=!0,function(e,t){console.warn({message:`DEPRECATED: ${e}`,type:t?.type,code:t?.code,detail:t?.detail})}(`DEPRECATED: ${e}`,{type:r,code:s,detail:n}))}}},926: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}}},250:e=>{var t=1e3,r=60*t,s=60*r,n=24*s,o=7*n;function i(e,t,r,s){var n=t>=1.5*r;return Math.round(e/r)+" "+s+(n?"s":"")}e.exports=function(e,c){c=c||{};var a,u,l=typeof e;if("string"===l&&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 c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(e);if("number"===l&&isFinite(e))return c.long?(a=e,(u=Math.abs(a))>=n?i(a,u,n,"day"):u>=s?i(a,u,s,"hour"):u>=r?i(a,u,r,"minute"):u>=t?i(a,u,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=n?Math.round(e/n)+"d":o>=s?Math.round(e/s)+"h":o>=r?Math.round(e/r)+"m":o>=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))}},907:e=>{var t,r,s=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,a=[],u=!1,l=-1;function h(){u&&c&&(u=!1,c.length?a=c.concat(a):l=-1,a.length&&p())}function p(){if(!u){var e=i(h);u=!0;for(var t=a.length;t;){for(c=a,a=[];++l<t;)c&&c[l].run();l=-1,t=a.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new d(e,t)),1!==a.length||u||i(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},431:e=>{"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}},237:(e,t,r)=>{"use strict";const s=r(599),n=r(133),o=r(168),i=r(996),c=r(546),a=r(990),u=r(25),l=r(926),h=r(64),p=r(95),d=r(530),f=r(545),m=r(717),g=r(911),y=r(721),w=r(673),C=r(328),F=r(361);e.exports={BaseException:s,BaseFileException:n,FileDownloader:o,CompositeFileLoader:i,DefaultFileLoader:c,GitHubFileLoader:a,HTTPFileLoader:u,Writer:l,FileWriter:h,InMemoryWriter:d,ModelWriter:p,Logger:f,TypedStack:m,Label:g,Identifiers:y,ErrorCodes:w,NullUtil:C,Warning:F}},833:(e,t,r)=>{var s=r(907);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 s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))})),t.splice(n,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&&void 0!==s&&"env"in s&&(e={NODE_ENV:"production"}.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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(736)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,r)=>{e.exports=function(e){function t(e){let r,n,o,i=null;function c(...e){if(!c.enabled)return;const s=c,n=Number(new Date),o=n-(r||n);s.diff=o,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";i++;const o=t.formatters[n];if("function"==typeof o){const t=e[i];r=o.call(s,t),e.splice(i,1),i--}return r})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==t.namespaces&&(n=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function n(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(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),n=s.length;for(r=0;r<n;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,s;for(r=0,s=t.skips.length;r<s;r++)if(t.skips[r].test(e))return!1;for(r=0,s=t.names.length;r<s;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(250),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}},686:()=>{},558:()=>{},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"3.25.6","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=18","npm":">=10"},"main":"index.js","browser":"dist/concerto-util.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"npm run webpack","pretest":"npm run lint && npm run doc","lint":"eslint .","doc":"jsdoc --pedantic --recurse -c jsdoc.json","test":"nyc mocha --require test/setup.js --recursive -t 10000","test:watch":"nyc mocha --require test/setup.js --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build":"npm run build:types","postbuild":"npm run webpack","webpack":"webpack --config webpack.config.js --mode production","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.57.1","jsdoc":"4.0.4","mocha":"10.8.2","node-polyfill-webpack-plugin":"4.0.0","nyc":"17.1.0","sinon":"19.0.2","tmp-promise":"3.0.3","typescript":"5.7.2","undici":"7.16.0","webpack":"5.96.1"},"dependencies":{"@supercharge/promise-pool":"1.7.0","debug":"4.3.7","slash":"3.0.0"},"browserslist":"> 0.25%, not dead","nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},t={},function r(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,r),o.exports}(237);var e,t}));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["concerto-util"]=e():t["concerto-util"]=e()}(self,(()=>{return t={573:(t,e,r)=>{"use strict";const n=r(187);t.exports=n.PromisePool},160:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolError=void 0;class r extends Error{constructor(t,e){super(),this.item=e,this.name=this.constructor.name,this.message=this.messageFrom(t),Error.captureStackTrace(this,this.constructor)}static createFrom(t,e){return new this(t,e)}messageFrom(t){return t instanceof Error||"object"==typeof t?t.message:"string"==typeof t||"number"==typeof t?t.toString():""}}e.PromisePoolError=r},241:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolExecutor=void 0;const n=r(160);e.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}for(t){return this.items=t,this}withHandler(t){return this.handler=t,this}handleError(t){return this.errorHandler=t,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 t of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(t);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(t){const e=this.createTaskFor(t).then((t=>{this.results.push(t),this.tasks.splice(this.tasks.indexOf(e),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(e),1),this.errorHandler)return this.errorHandler(r,t);this.errors.push(n.PromisePoolError.createFrom(r,t))}));this.tasks.push(e)}async createTaskFor(t){return this.handler(t)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},187:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePool=void 0;const n=r(241);class o{constructor(t){this.concurrency=10,this.items=null!=t?t:[],this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}static withConcurrency(t){return(new this).withConcurrency(t)}for(t){return new o(t).withConcurrency(this.concurrency)}static for(t){return(new this).for(t)}handleError(t){return this.errorHandler=t,this}async process(t){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(t).handleError(this.errorHandler).for(this.items).start()}}e.PromisePool=o},599:(t,e,r)=>{"use strict";const n=r(330),o=r(673);class i extends Error{constructor(t,e,r){super(t),this.component=e||n.name,this.name=this.constructor.name,this.message=t,this.errorType=r||o.DEFAULT_BASE_EXCEPTION,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}t.exports=i},133:(t,e,r)=>{"use strict";const n=r(599);t.exports=class extends n{constructor(t,e,r,n,o){super(r||t,o),this.fileLocation=e,this.shortMessage=t,this.fileName=n}getFileLocation(){return this.fileLocation}getShortMessage(){return this.shortMessage}getFileName(){return this.fileName}}},673:t=>{"use strict";t.exports={DEFAULT_BASE_EXCEPTION:"DefaultBaseException",DEFAULT_VALIDATOR_EXCEPTION:"DefaultValidatorException",REGEX_VALIDATOR_EXCEPTION:"RegexValidatorException",TYPE_NOT_FOUND_EXCEPTION:"TypeNotFoundException",DEPRECATION_WARNING:"DeprecationWarning",CONCERTO_DEPRECATION_001:"concerto-dep:001",CONCERTO_DEPRECATION_002:"concerto-dep:002"}},168:(t,e,r)=>{"use strict";const n=r(833)("concerto:FileDownloader"),o=r(573),i=t=>[].concat(...t),u=t=>t.filter(Boolean),a=async(t,e)=>{const r=t.response&&t.response.status&&200!==t.response.status,n=t.code&&"ENOTFOUND"===t.code;if(r||n){const t=new Error(`Unable to download external model dependency '${e.url}'`);throw t.code="MISSING_DEPENDENCY",t}throw new Error("Failed to load model file. Job: "+e.url+" Details: "+t)};t.exports=class{constructor(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.fileLoader=t,this.concurrency=r,this.getExternalImports=e}downloadExternalDependencies(t,e){n("downloadExternalDependencies");const r=new Set;e||(e={});const c=i(t.map((t=>{const n=this.getExternalImports(t);return Object.keys(n).map((t=>({downloadedUris:r,url:n[t],options:e})))})));return o.withConcurrency(this.concurrency).for(c).handleError(a).process((t=>this.runJob(t,this.fileLoader))).then((t=>{let{results:e}=t;return u(i(e))}))}runJob(t,e){const r=t.downloadedUris,c=t.options,s=t.url;return r.add(s),n("runJob","Loading",s),e.load(s,c).then((async t=>{n("runJob","Loaded",s);const l=this.getExternalImports(t),f=Array.from(new Set(Object.keys(l).map((t=>l[t]))));return n("runJob","importedUris",f),(await o.withConcurrency(this.concurrency).for(f).handleError(a).process((t=>{if(!r.has(t))return this.runJob({options:c,url:t,downloadedUris:r},e)})).then((t=>{let{results:e}=t;return u(i(e))}))).concat([t])}))}}},64:(t,e,r)=>{"use strict";const n=r(686),o=r(558),i=r(926);t.exports=class extends i{constructor(t){super(),this.outputDirectory=t,this.relativeDir=null,this.fileName=null,n.mkdirSync(t,{recursive:!0})}openFile(t){this.fileName=t,this.relativeDir=null}openRelativeFile(t,e){this.relativeDir=t,this.fileName=e}writeLine(t,e){if(!this.fileName)throw Error("File has not been opened!");super.writeLine(t,e)}writeBeforeLine(t,e){if(!this.fileName)throw Error("File has not been opened!");super.writeBeforeLine(t,e)}closeFile(){if(!this.fileName)throw new Error("No file open");let t=this.outputDirectory;this.relativeDir&&(t=o.resolve(t,this.relativeDir)),t=o.resolve(t,this.fileName),n.mkdirSync(o.dirname(t),{recursive:!0}),n.writeFileSync(t,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}},721:t=>{"use strict";const e=/^(\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;t.exports={normalizeIdentifier:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=(t,e)=>{let r="";for(const t of e)r+=`_${t.codePointAt(0).toString(16)}`;return r};let o=t??String(t);if("string"!=typeof o)throw new Error(`Unsupported identifier type, '${typeof o}'.`);if(o=o.replace(/^\p{Nd}/u,"_$&").replace(/[-‐−@#:;><|/\\\u200c\u200d]/g,"_").replace(/\s/g,"_").replace(/(?!\p{Lu}|\p{Ll}|\p{Lt}|\p{Lm}|\p{Lo}|\p{Nl}|\$|_|\p{Mn}|\p{Mc}|\p{Nd}|\p{Pc}|\u200C|\u200D|\\u[0-9A-Fa-f]{4})(.)/gu,n).replace(/([\uD800-\uDFFF])/g,n),r>0&&(o=o.substring(0,r)),!e.test(o))throw new Error(`Unexpected error. Not able to escape identifier '${o}'.`);return o},ID_REGEX:e}},530:(t,e,r)=>{"use strict";const n=r(926);t.exports=class extends n{constructor(){super(),this.fileName="",this.data=new Map}openFile(t){this.fileName=t}closeFile(){this.data.set(this.fileName,this.getBuffer()),this.clearBuffer()}getFilesInMemory(){return this.data}}},911:t=>{"use strict";t.exports={labelToSentence:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(t=>t.toUpperCase())).trim()},sentenceToLabel:function(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[^A-Za-z0-9_-]+/);return t.forEach(((e,r)=>{t[r]=t[r].replace(/^./,(t=>t.toUpperCase()))})),t.join("").replace(/^./,(t=>t.toLowerCase()))}}},996:t=>{"use strict";t.exports=class{constructor(){this.fileLoaders=[]}addFileLoader(t){this.fileLoaders.push(t)}getFileLoaders(){return this.fileLoaders}clearFileLoaders(){this.fileLoaders=[]}accepts(t){for(let e=0;e<this.fileLoaders.length;e++)if(this.fileLoaders[e].accepts(t))return!0;return!1}load(t,e){for(let r=0;r<this.fileLoaders.length;r++){const n=this.fileLoaders[r];if(n.accepts(t))return n.load(t,e)}throw new Error("Failed to find a model file loader that can handle: "+t)}}},546:(t,e,r)=>{"use strict";const n=r(996),o=r(25),i=r(990);t.exports=class extends n{constructor(t){super();const e=new o(t),r=new i(t);this.addFileLoader(r),this.addFileLoader(e)}}},990:(t,e,r)=>{"use strict";const n=r(25);t.exports=class extends n{constructor(t){super(t)}accepts(t){return t.startsWith("github://")}load(t,e){const r="https://raw.githubusercontent.com/"+t.substring(9);return super.load(r,e)}}},25:(t,e,r)=>{"use strict";const n=r(833)("concerto:HTTPFileLoader");t.exports=class{constructor(t){this.processFile=t}accepts(t){return t.startsWith("http://")||t.startsWith("https://")}async load(t,e){e||(e={method:"GET",headers:{"Content-Type":"text/plain"}}),n("loading",t);const r=await fetch(t,e);if(!r.ok)throw new Error(`HTTP request failed with status: ${r.status}`);const o=await r.text(),i=new URL(t),u="@"+(i.host+i.pathname).replace(/\//g,".");return this.processFile(u,o)}}},545:t=>{"use strict";const e={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},r=t=>t,n={};Object.keys(e).forEach((t=>{n[t]=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return function(t){let n=t;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];let a=i,c=a.shift();if(c&&"object"==typeof c&&c.level&&c.message){const t=c.padding&&c.padding[c.level];"error"===c.level&&c.stack?(n="error",c=`${c.message}\n${c.stack}`):Object.keys(e).includes(c.level)&&(n=c.level,c=c.message),c=t?`${t} ${c}`:c}a.unshift(c),(["error","warn"].includes(n)?console.error:console.log)(`${(new Date).toLocaleTimeString()} - ${n}:`,...a.map((t=>t instanceof Error?`${t.message}\n${t.stack}`:t)).map(r))}(t,...o)}}));class o{static dispatch(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e[t]>e[this.level]||this.transports.forEach((e=>{e[t]&&e[t](...n)}))}static add(t){this.transports.push(t)}static error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("error",...e)}static warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("warn",...e)}static info(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("info",...e)}static log(){return this.info(...arguments)}static http(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("http",...e)}static verbose(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("verbose",...e)}static debug(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("debug",...e)}static silly(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch("silly",...e)}}o.level="info",o.transports=[n],t.exports=o},95:(t,e,r)=>{"use strict";const n=r(686),o=r(558),i=r(431);t.exports={writeModelsToFileSystem:function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("`path` is a required parameter of writeModelsToFileSystem");const u=Object.assign({includeExternalModels:!0},r);t.forEach((function(t){if(t.external&&!u.includeExternalModels)return;const r=i(t.fileName).split("/").pop();n.writeFileSync(e+o.sep+r,t.definitions)}))}}},894:(t,e,r)=>{"use strict";const n=r(461);t.exports=class{static toWords(t){return n(t,{lang:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en"})}}},328:t=>{"use strict";t.exports=class{static isNull(t){return null==t}}},717:t=>{"use strict";t.exports=class{constructor(t){this.stack=[],this.push(t)}push(t,e){if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e.constructor.name+" as argument to push. Found: "+t.toString());this.stack.push(t)}pop(t){return this.peek(t),this.stack.pop()}peek(t){if(this.stack.length<1)throw new Error("Stack is empty!");const e=this.stack[this.stack.length-1];if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t+" on head of stack. Found: "+e);return e}clear(){this.stack=[]}}},361:t=>{"use strict";let e=!1;t.exports={printDeprecationWarning:function(t,r,n,o){e||(e=!0,function(t,e){console.warn({message:`DEPRECATED: ${t}`,type:e?.type,code:e?.code,detail:e?.detail})}(`DEPRECATED: ${t}`,{type:r,code:n,detail:o}))}}},926:t=>{"use strict";t.exports=class{constructor(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}writeBeforeLine(t,e){for(let e=0;e<t;e++)this.beforeBuffer+=" ";this.beforeBuffer+=e,this.beforeBuffer+="\n",this.linesWritten++}writeLine(t,e){for(let e=0;e<t;e++)this.write(" ");this.write(e),this.write("\n"),this.linesWritten++}getLineCount(){return this.linesWritten}writeIndented(t,e){for(let e=0;e<t;e++)this.write(" ");this.write(e)}write(t){if("string"!=typeof t)throw new Error("Can only append strings. Argument "+t+" has type "+typeof t);this.buffer+=t,this.linesWritten+=t.split(/\r\n|\r|\n/).length}getBuffer(){return this.beforeBuffer+this.buffer}clearBuffer(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}},250:t=>{var e=1e3,r=60*e,n=60*r,o=24*n,i=7*o;function u(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var c,s,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(u){var a=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;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*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===l&&isFinite(t))return a.long?(c=t,(s=Math.abs(c))>=o?u(c,s,o,"day"):s>=n?u(c,s,n,"hour"):s>=r?u(c,s,r,"minute"):s>=e?u(c,s,e,"second"):c+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},461:function(t){var e;e=()=>(()=>{var t={9662:(t,e,r)=>{var n=r(614),o=r(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},9483:(t,e,r)=>{var n=r(4411),o=r(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},6077:(t,e,r)=>{var n=r(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:(t,e,r)=>{var n=r(5112),o=r(30),i=r(3070).f,u=n("unscopables"),a=Array.prototype;null==a[u]&&i(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},1530:(t,e,r)=>{"use strict";var n=r(8710).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},5787:(t,e,r)=>{var n=r(7976),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw o("Incorrect invocation")}},9670:(t,e,r)=>{var n=r(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},7556:(t,e,r)=>{var n=r(7293);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},8457:(t,e,r)=>{"use strict";var n=r(9974),o=r(6916),i=r(7908),u=r(3411),a=r(7659),c=r(4411),s=r(6244),l=r(6135),f=r(4121),p=r(1246),y=Array;t.exports=function(t){var e=i(t),r=c(this),d=arguments.length,h=d>1?arguments[1]:void 0,v=void 0!==h;v&&(h=n(h,d>2?arguments[2]:void 0));var b,m,g,w,j,O,S=p(e),x=0;if(!S||this===y&&a(S))for(b=s(e),m=r?new this(b):y(b);b>x;x++)O=v?h(e[x],x):e[x],l(m,x,O);else for(j=(w=f(e,S)).next,m=r?new this:[];!(g=o(j,w)).done;x++)O=v?u(w,h,[g.value,x],!0):g.value,l(m,x,O);return m.length=x,m}},1318:(t,e,r)=>{var n=r(5656),o=r(1400),i=r(6244),u=function(t){return function(e,r,u){var a,c=n(e),s=i(c),l=o(u,s);if(t&&r!=r){for(;s>l;)if((a=c[l++])!=a)return!0}else for(;s>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},2092:(t,e,r)=>{var n=r(9974),o=r(1702),i=r(8361),u=r(7908),a=r(6244),c=r(5417),s=o([].push),l=function(t){var e=1==t,r=2==t,o=3==t,l=4==t,f=6==t,p=7==t,y=5==t||f;return function(d,h,v,b){for(var m,g,w=u(d),j=i(w),O=n(h,v),S=a(j),x=0,P=b||c,E=e?P(d,S):r||p?P(d,0):void 0;S>x;x++)if((y||x in j)&&(g=O(m=j[x],x,w),t))if(e)E[x]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:s(E,m)}else switch(t){case 4:return!1;case 7:s(E,m)}return f?-1:o||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:(t,e,r)=>{var n=r(7293),o=r(5112),i=r(7392),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},3658:(t,e,r)=>{"use strict";var n=r(9781),o=r(3157),i=TypeError,u=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!u(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},1589:(t,e,r)=>{var n=r(1400),o=r(6244),i=r(6135),u=Array,a=Math.max;t.exports=function(t,e,r){for(var c=o(t),s=n(e,c),l=n(void 0===r?c:r,c),f=u(a(l-s,0)),p=0;s<l;s++,p++)i(f,p,t[s]);return f.length=p,f}},206:(t,e,r)=>{var n=r(1702);t.exports=n([].slice)},4362:(t,e,r)=>{var n=r(1589),o=Math.floor,i=function(t,e){var r=t.length,c=o(r/2);return r<8?u(t,e):a(t,i(n(t,0,c),e),i(n(t,c),e),e)},u=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},a=function(t,e,r,n){for(var o=e.length,i=r.length,u=0,a=0;u<o||a<i;)t[u+a]=u<o&&a<i?n(e[u],r[a])<=0?e[u++]:r[a++]:u<o?e[u++]:r[a++];return t};t.exports=i},7475:(t,e,r)=>{var n=r(3157),o=r(4411),i=r(111),u=r(5112)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},5417:(t,e,r)=>{var n=r(7475);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3411:(t,e,r)=>{var n=r(9670),o=r(9212);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},7072:(t,e,r)=>{var n=r(5112)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},4326:(t,e,r)=>{var n=r(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:(t,e,r)=>{var n=r(1694),o=r(614),i=r(4326),u=r(5112)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?r:c?i(e):"Object"==(n=i(e))&&o(e.callee)?"Arguments":n}},5631:(t,e,r)=>{"use strict";var n=r(3070).f,o=r(30),i=r(9190),u=r(9974),a=r(5787),c=r(8554),s=r(408),l=r(1656),f=r(6178),p=r(6340),y=r(9781),d=r(2423).fastKey,h=r(9909),v=h.set,b=h.getterFor;t.exports={getConstructor:function(t,e,r,l){var f=t((function(t,n){a(t,p),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),y||(t.size=0),c(n)||s(n,t[l],{that:t,AS_ENTRIES:r})})),p=f.prototype,h=b(e),m=function(t,e,r){var n,o,i=h(t),u=g(t,e);return u?u.value=r:(i.last=u={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),y?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,e){var r,n=h(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(p,{clear:function(){for(var t=h(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,y?t.size=0:this.size=0},delete:function(t){var e=this,r=h(e),n=g(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),y?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=h(this),n=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(p,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),y&&n(p,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=b(e),i=b(n);l(t,e,(function(t,e){v(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?f("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},7710:(t,e,r)=>{"use strict";var n=r(2109),o=r(7854),i=r(1702),u=r(4705),a=r(8052),c=r(2423),s=r(408),l=r(5787),f=r(614),p=r(8554),y=r(111),d=r(7293),h=r(7072),v=r(8003),b=r(9587);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),w=m?"set":"add",j=o[t],O=j&&j.prototype,S=j,x={},P=function(t){var e=i(O[t]);a(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!y(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return g&&!y(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!y(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(u(t,!f(j)||!(g||O.forEach&&!d((function(){(new j).entries().next()})))))S=r.getConstructor(e,t,m,w),c.enable();else if(u(t,!0)){var E=new S,k=E[w](g?{}:-0,1)!=E,C=d((function(){E.has(1)})),T=h((function(t){new j(t)})),_=!g&&d((function(){for(var t=new j,e=5;e--;)t[w](e,e);return!t.has(-0)}));T||((S=e((function(t,e){l(t,O);var r=b(new j,t,S);return p(e)||s(e,r[w],{that:r,AS_ENTRIES:m}),r}))).prototype=O,O.constructor=S),(C||_)&&(P("delete"),P("has"),m&&P("get")),(_||k)&&P(w),g&&O.clear&&delete O.clear}return x[t]=S,n({global:!0,constructor:!0,forced:S!=j},x),v(S,t),g||r.setStrong(S,t,m),S}},9920:(t,e,r)=>{var n=r(2597),o=r(3887),i=r(1236),u=r(3070);t.exports=function(t,e,r){for(var a=o(e),c=u.f,s=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,s(e,f))}}},4964:(t,e,r)=>{var n=r(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6178:t=>{t.exports=function(t,e){return{value:t,done:e}}},8880:(t,e,r)=>{var n=r(9781),o=r(3070),i=r(9114);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,r)=>{"use strict";var n=r(4948),o=r(3070),i=r(9114);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},8709:(t,e,r)=>{"use strict";var n=r(9670),o=r(2140),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw i("Incorrect hint");return o(this,t)}},7045:(t,e,r)=>{var n=r(6339),o=r(3070);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},8052:(t,e,r)=>{var n=r(614),o=r(3070),i=r(6339),u=r(3072);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,s=void 0!==a.name?a.name:e;if(n(r)&&i(r,s,a),a.global)c?t[e]=r:u(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},9190:(t,e,r)=>{var n=r(8052);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},3072:(t,e,r)=>{var n=r(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5117:(t,e,r)=>{"use strict";var n=r(6330),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+n(e)+" of "+n(t))}},9781:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:t=>{var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},317:(t,e,r)=>{var n=r(7854),o=r(111),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},7207:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(t,e,r)=>{var n=r(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8886:(t,e,r)=>{var n=r(8113).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},256:(t,e,r)=>{var n=r(8113);t.exports=/MSIE|Trident/.test(n)},8113:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(t,e,r)=>{var n,o,i=r(7854),u=r(8113),a=i.process,c=i.Deno,s=a&&a.versions||c&&c.version,l=s&&s.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},8008:(t,e,r)=>{var n=r(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:(t,e,r)=>{var n=r(1702),o=Error,i=n("".replace),u=String(o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(u);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},5392:(t,e,r)=>{var n=r(8880),o=r(1060),i=r(2914),u=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(u?u(t,e):n(t,"stack",o(r,a)))}},2914:(t,e,r)=>{var n=r(7293),o=r(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},7762:(t,e,r)=>{"use strict";var n=r(9781),o=r(7293),i=r(9670),u=r(30),a=r(6277),c=Error.prototype.toString,s=o((function(){if(n){var t=u(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==c.call(t))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));t.exports=s?function(){var t=i(this),e=a(t.name,"Error"),r=a(t.message);return e?r?e+": "+r:e:r}:c},2109:(t,e,r)=>{var n=r(7854),o=r(1236).f,i=r(8880),u=r(8052),a=r(3072),c=r(9920),s=r(4705);t.exports=function(t,e){var r,l,f,p,y,d=t.target,h=t.global,v=t.stat;if(r=h?n:v?n[d]||a(d,{}):(n[d]||{}).prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(y=o(r,l))&&y.value:r[l],!s(h?l:d+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),u(r,l,p,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,r)=>{"use strict";r(4916);var n=r(1470),o=r(8052),i=r(2261),u=r(7293),a=r(5112),c=r(8880),s=a("species"),l=RegExp.prototype;t.exports=function(t,e,r,f){var p=a(t),y=!u((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=y&&!u((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!y||!d||r){var h=n(/./[p]),v=e(p,""[t],(function(t,e,r,o,u){var a=n(t),c=e.exec;return c===i||c===l.exec?y&&!u?{done:!0,value:h(e,r,o)}:{done:!0,value:a(r,e,o)}:{done:!1}}));o(String.prototype,t,v[0]),o(l,p,v[1])}f&&c(l[p],"sham",!0)}},6677:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:(t,e,r)=>{var n=r(4374),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},9974:(t,e,r)=>{var n=r(1470),o=r(9662),i=r(4374),u=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},4374:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:(t,e,r)=>{"use strict";var n=r(1702),o=r(9662),i=r(111),u=r(2597),a=r(206),c=r(4374),s=Function,l=n([].concat),f=n([].join),p={},y=function(t,e,r){if(!u(p,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";p[e]=s("C,a","return new C("+f(n,",")+")")}return p[e](t,r)};t.exports=c?s.bind:function(t){var e=o(this),r=e.prototype,n=a(arguments,1),u=function(){var r=l(n,a(arguments));return this instanceof u?y(e,r.length,r):e.apply(t,r)};return i(r)&&(u.prototype=r),u}},6916:(t,e,r)=>{var n=r(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:(t,e,r)=>{var n=r(9781),o=r(2597),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,s=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:s}},1470:(t,e,r)=>{var n=r(4326),o=r(1702);t.exports=function(t){if("Function"===n(t))return o(t)}},1702:(t,e,r)=>{var n=r(4374),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},5005:(t,e,r)=>{var n=r(7854),o=r(614);t.exports=function(t,e){return arguments.length<2?function(t){return o(t)?t:void 0}(n[t]):n[t]&&n[t][e]}},1246:(t,e,r)=>{var n=r(648),o=r(8173),i=r(8554),u=r(7497),a=r(5112)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||u[n(t)]}},4121:(t,e,r)=>{var n=r(6916),o=r(9662),i=r(9670),u=r(6330),a=r(1246),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw c(u(t)+" is not iterable")}},8173:(t,e,r)=>{var n=r(9662),o=r(8554);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},647:(t,e,r)=>{var n=r(1702),o=r(7908),i=Math.floor,u=n("".charAt),a=n("".replace),c=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var y=r+t.length,d=n.length,h=l;return void 0!==f&&(f=o(f),h=s),a(p,h,(function(o,a){var s;switch(u(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,y);case"<":s=f[c(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>d){var p=i(l/10);return 0===p?o:p<=d?void 0===n[p-1]?u(a,1):n[p-1]+u(a,1):o}s=n[l-1]}return void 0===s?"":s}))}},7854:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2597:(t,e,r)=>{var n=r(1702),o=r(7908),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:t=>{t.exports={}},490:(t,e,r)=>{var n=r(5005);t.exports=n("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),o=r(7293),i=r(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,r)=>{var n=r(1702),o=r(7293),i=r(4326),u=Object,a=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):u(t)}:u},9587:(t,e,r)=>{var n=r(614),o=r(111),i=r(7674);t.exports=function(t,e,r){var u,a;return i&&n(u=e.constructor)&&u!==r&&o(a=u.prototype)&&a!==r.prototype&&i(t,a),t}},2788:(t,e,r)=>{var n=r(1702),o=r(614),i=r(5465),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},8340:(t,e,r)=>{var n=r(111),o=r(8880);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},2423:(t,e,r)=>{var n=r(2109),o=r(1702),i=r(3501),u=r(111),a=r(2597),c=r(3070).f,s=r(8006),l=r(1156),f=r(2050),p=r(9711),y=r(6677),d=!1,h=p("meta"),v=0,b=function(t){c(t,h,{value:{objectID:"O"+v++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=s.f,e=o([].splice),r={};r[h]=1,t(r).length&&(s.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===h){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,h)){if(!f(t))return"F";if(!e)return"E";b(t)}return t[h].objectID},getWeakData:function(t,e){if(!a(t,h)){if(!f(t))return!0;if(!e)return!1;b(t)}return t[h].weakData},onFreeze:function(t){return y&&d&&f(t)&&!a(t,h)&&b(t),t}};i[h]=!0},9909:(t,e,r)=>{var n,o,i,u=r(4811),a=r(7854),c=r(111),s=r(8880),l=r(2597),f=r(5465),p=r(6200),y=r(3501),d="Object already initialized",h=a.TypeError,v=a.WeakMap;if(u||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw h(d);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var m=p("state");y[m]=!0,n=function(t,e){if(l(t,m))throw h(d);return e.facade=t,s(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return r}}}},7659:(t,e,r)=>{var n=r(5112),o=r(7497),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},3157:(t,e,r)=>{var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:(t,e,r)=>{var n=r(4154),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:(t,e,r)=>{var n=r(1702),o=r(7293),i=r(614),u=r(648),a=r(5005),c=r(2788),s=function(){},l=[],f=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,y=n(p.exec),d=!p.exec(s),h=function(t){if(!i(t))return!1;try{return f(s,l,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!y(p,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?v:h},5032:(t,e,r)=>{var n=r(2597);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},4705:(t,e,r)=>{var n=r(7293),o=r(614),i=/#|\.prototype\./,u=function(t,e){var r=c[a(t)];return r==l||r!=s&&(o(e)?n(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},s=u.NATIVE="N",l=u.POLYFILL="P";t.exports=u},8554:t=>{t.exports=function(t){return null==t}},111:(t,e,r)=>{var n=r(614),o=r(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:t=>{t.exports=!1},7850:(t,e,r)=>{var n=r(111),o=r(4326),i=r(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},2190:(t,e,r)=>{var n=r(5005),o=r(614),i=r(7976),u=r(3307),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},408:(t,e,r)=>{var n=r(9974),o=r(6916),i=r(9670),u=r(6330),a=r(7659),c=r(6244),s=r(7976),l=r(4121),f=r(1246),p=r(9212),y=TypeError,d=function(t,e){this.stopped=t,this.result=e},h=d.prototype;t.exports=function(t,e,r){var v,b,m,g,w,j,O,S=r&&r.that,x=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),C=n(e,S),T=function(t){return v&&p(v,"normal",t),new d(!0,t)},_=function(t){return x?(i(t),k?C(t[0],t[1],T):C(t[0],t[1])):k?C(t,T):C(t)};if(P)v=t.iterator;else if(E)v=t;else{if(!(b=f(t)))throw y(u(t)+" is not iterable");if(a(b)){for(m=0,g=c(t);g>m;m++)if((w=_(t[m]))&&s(h,w))return w;return new d(!1)}v=l(t,b)}for(j=P?t.next:v.next;!(O=o(j,v)).done;){try{w=_(O.value)}catch(t){p(v,"throw",t)}if("object"==typeof w&&w&&s(h,w))return w}return new d(!1)}},9212:(t,e,r)=>{var n=r(6916),o=r(9670),i=r(8173);t.exports=function(t,e,r){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw r;if(a)throw u;return o(u),r}},3061:(t,e,r)=>{"use strict";var n=r(3383).IteratorPrototype,o=r(30),i=r(9114),u=r(8003),a=r(7497),c=function(){return this};t.exports=function(t,e,r,s){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!s,r)}),u(t,l,!1,!0),a[l]=c,t}},1656:(t,e,r)=>{"use strict";var n=r(2109),o=r(6916),i=r(1913),u=r(6530),a=r(614),c=r(3061),s=r(9518),l=r(7674),f=r(8003),p=r(8880),y=r(8052),d=r(5112),h=r(7497),v=r(3383),b=u.PROPER,m=u.CONFIGURABLE,g=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,j=d("iterator"),O="keys",S="values",x="entries",P=function(){return this};t.exports=function(t,e,r,u,d,v,E){c(r,e,u);var k,C,T,_=function(t){if(t===d&&F)return F;if(!w&&t in A)return A[t];switch(t){case O:case S:case x:return function(){return new r(this,t)}}return function(){return new r(this)}},R=e+" Iterator",I=!1,A=t.prototype,z=A[j]||A["@@iterator"]||d&&A[d],F=!w&&z||_(d),D="Array"==e&&A.entries||z;if(D&&(k=s(D.call(new t)))!==Object.prototype&&k.next&&(i||s(k)===g||(l?l(k,g):a(k[j])||y(k,j,P)),f(k,R,!0,!0),i&&(h[R]=P)),b&&d==S&&z&&z.name!==S&&(!i&&m?p(A,"name",S):(I=!0,F=function(){return o(z,this)})),d)if(C={values:_(S),keys:v?F:_(O),entries:_(x)},E)for(T in C)(w||I||!(T in A))&&y(A,T,C[T]);else n({target:e,proto:!0,forced:w||I},C);return i&&!E||A[j]===F||y(A,j,F,{name:d}),h[e]=F,C}},3383:(t,e,r)=>{"use strict";var n,o,i,u=r(7293),a=r(614),c=r(111),s=r(30),l=r(9518),f=r(8052),p=r(5112),y=r(1913),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):h=!0),!c(n)||u((function(){var t={};return n[d].call(t)!==t}))?n={}:y&&(n=s(n)),a(n[d])||f(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},7497:t=>{t.exports={}},6244:(t,e,r)=>{var n=r(7466);t.exports=function(t){return n(t.length)}},6339:(t,e,r)=>{var n=r(1702),o=r(7293),i=r(614),u=r(2597),a=r(9781),c=r(6530).CONFIGURABLE,s=r(2788),l=r(9909),f=l.enforce,p=l.get,y=String,d=Object.defineProperty,h=n("".slice),v=n("".replace),b=n([].join),m=a&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===h(y(e),0,7)&&(e="["+v(y(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!u(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&u(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&u(r,"constructor")&&r.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return u(n,"source")||(n.source=b(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||s(this)}),"toString")},4758:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},6277:(t,e,r)=>{var n=r(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3929:(t,e,r)=>{var n=r(7850),o=TypeError;t.exports=function(t){if(n(t))throw o("The method doesn't accept regular expressions");return t}},3009:(t,e,r)=>{var n=r(7854),o=r(7293),i=r(1702),u=r(1340),a=r(3111).trim,c=r(1361),s=n.parseInt,l=n.Symbol,f=l&&l.iterator,p=/^[+-]?0x/i,y=i(p.exec),d=8!==s(c+"08")||22!==s(c+"0x16")||f&&!o((function(){s(Object(f))}));t.exports=d?function(t,e){var r=a(u(t));return s(r,e>>>0||(y(p,r)?16:10))}:s},1574:(t,e,r)=>{"use strict";var n=r(9781),o=r(1702),i=r(6916),u=r(7293),a=r(1956),c=r(5181),s=r(5296),l=r(7908),f=r(8361),p=Object.assign,y=Object.defineProperty,d=o([].concat);t.exports=!p||u((function(){if(n&&1!==p({b:1},p(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=p({},t)[r]||a(p({},e)).join("")!=o}))?function(t,e){for(var r=l(t),o=arguments.length,u=1,p=c.f,y=s.f;o>u;)for(var h,v=f(arguments[u++]),b=p?d(a(v),p(v)):a(v),m=b.length,g=0;m>g;)h=b[g++],n&&!i(y,v,h)||(r[h]=v[h]);return r}:p},30:(t,e,r)=>{var n,o=r(9670),i=r(6048),u=r(748),a=r(3501),c=r(490),s=r(317),l=r(6200),f="prototype",p="script",y=l("IE_PROTO"),d=function(){},h=function(t){return"<"+p+">"+t+"</"+p+">"},v=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;b="undefined"!=typeof document?document.domain&&n?v(n):(e=s("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):v(n);for(var o=u.length;o--;)delete b[f][u[o]];return b()};a[y]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[f]=o(t),r=new d,d[f]=null,r[y]=t):r=b(),void 0===e?r:i.f(r,e)}},6048:(t,e,r)=>{var n=r(9781),o=r(3353),i=r(3070),u=r(9670),a=r(5656),c=r(1956);e.f=n&&!o?Object.defineProperties:function(t,e){u(t);for(var r,n=a(e),o=c(e),s=o.length,l=0;s>l;)i.f(t,r=o[l++],n[r]);return t}},3070:(t,e,r)=>{var n=r(9781),o=r(4664),i=r(3353),u=r(9670),a=r(4948),c=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",y="writable";e.f=n?i?function(t,e,r){if(u(t),e=a(e),u(r),"function"==typeof t&&"prototype"===e&&"value"in r&&y in r&&!r[y]){var n=l(t,e);n&&n[y]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(u(t),e=a(e),u(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:(t,e,r)=>{var n=r(9781),o=r(6916),i=r(5296),u=r(9114),a=r(5656),c=r(4948),s=r(2597),l=r(4664),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},1156:(t,e,r)=>{var n=r(4326),o=r(5656),i=r(8006).f,u=r(1589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},8006:(t,e,r)=>{var n=r(6324),o=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,r)=>{var n=r(2597),o=r(614),i=r(7908),u=r(6200),a=r(8544),c=u("IE_PROTO"),s=Object,l=s.prototype;t.exports=a?s.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof s?l:null}},2050:(t,e,r)=>{var n=r(7293),o=r(111),i=r(4326),u=r(7556),a=Object.isExtensible,c=n((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&(!u||"ArrayBuffer"!=i(t))&&(!a||a(t))}:a},7976:(t,e,r)=>{var n=r(1702);t.exports=n({}.isPrototypeOf)},6324:(t,e,r)=>{var n=r(1702),o=r(2597),i=r(5656),u=r(1318).indexOf,a=r(3501),c=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;e.length>s;)o(n,r=e[s++])&&(~u(l,r)||c(l,r));return l}},1956:(t,e,r)=>{var n=r(6324),o=r(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7674:(t,e,r)=>{var n=r(1702),o=r(9670),i=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},4699:(t,e,r)=>{var n=r(9781),o=r(1702),i=r(1956),u=r(5656),a=o(r(5296).f),c=o([].push),s=function(t){return function(e){for(var r,o=u(e),s=i(o),l=s.length,f=0,p=[];l>f;)r=s[f++],n&&!a(o,r)||c(p,t?[r,o[r]]:o[r]);return p}};t.exports={entries:s(!0),values:s(!1)}},288:(t,e,r)=>{"use strict";var n=r(1694),o=r(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(t,e,r)=>{var n=r(6916),o=r(614),i=r(111),u=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw u("Can't convert object to primitive value")}},3887:(t,e,r)=>{var n=r(5005),o=r(1702),i=r(8006),u=r(5181),a=r(9670),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=u.f;return r?c(e,r(t)):e}},857:(t,e,r)=>{var n=r(7854);t.exports=n},2626:(t,e,r)=>{var n=r(3070).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},7651:(t,e,r)=>{var n=r(6916),o=r(9670),i=r(614),u=r(4326),a=r(2261),c=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var s=n(r,t,e);return null!==s&&o(s),s}if("RegExp"===u(t))return n(a,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:(t,e,r)=>{"use strict";var n,o,i=r(6916),u=r(1702),a=r(1340),c=r(7066),s=r(2999),l=r(2309),f=r(30),p=r(9909).get,y=r(9441),d=r(7168),h=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,b=v,m=u("".charAt),g=u("".indexOf),w=u("".replace),j=u("".slice),O=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),S=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(O||x||S||y||d)&&(b=function(t){var e,r,n,o,u,s,l,y=this,d=p(y),P=a(t),E=d.raw;if(E)return E.lastIndex=y.lastIndex,e=i(b,E,P),y.lastIndex=E.lastIndex,e;var k=d.groups,C=S&&y.sticky,T=i(c,y),_=y.source,R=0,I=P;if(C&&(T=w(T,"y",""),-1===g(T,"g")&&(T+="g"),I=j(P,y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==m(P,y.lastIndex-1))&&(_="(?: "+_+")",I=" "+I,R++),r=new RegExp("^(?:"+_+")",T)),x&&(r=new RegExp("^"+_+"$(?!\\s)",T)),O&&(n=y.lastIndex),o=i(v,C?r:y,I),C?o?(o.input=j(o.input,R),o[0]=j(o[0],R),o.index=y.lastIndex,y.lastIndex+=o[0].length):y.lastIndex=0:O&&o&&(y.lastIndex=y.global?o.index+o[0].length:n),x&&o&&o.length>1&&i(h,o[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&k)for(o.groups=s=f(null),u=0;u<k.length;u++)s[(l=k[u])[0]]=o[l[1]];return o}),t.exports=b},7066:(t,e,r)=>{"use strict";var n=r(9670);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:(t,e,r)=>{var n=r(6916),o=r(2597),i=r(7976),u=r(7066),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||o(t,"flags")||!i(a,t)?e:n(u,t)}},2999:(t,e,r)=>{var n=r(7293),o=r(7854).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:i}},9441:(t,e,r)=>{var n=r(7293),o=r(7854).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,r)=>{var n=r(7293),o=r(7854).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:(t,e,r)=>{var n=r(8554),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},6340:(t,e,r)=>{"use strict";var n=r(5005),o=r(3070),i=r(5112),u=r(9781),a=i("species");t.exports=function(t){var e=n(t),r=o.f;u&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},8003:(t,e,r)=>{var n=r(3070).f,o=r(2597),i=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},6200:(t,e,r)=>{var n=r(2309),o=r(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,e,r)=>{var n=r(7854),o=r(3072),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},2309:(t,e,r)=>{var n=r(1913),o=r(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:(t,e,r)=>{var n=r(1702),o=r(9303),i=r(1340),u=r(4488),a=n("".charAt),c=n("".charCodeAt),s=n("".slice),l=function(t){return function(e,r){var n,l,f=i(u(e)),p=o(r),y=f.length;return p<0||p>=y?t?"":void 0:(n=c(f,p))<55296||n>56319||p+1===y||(l=c(f,p+1))<56320||l>57343?t?a(f,p):n:t?s(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4986:(t,e,r)=>{var n=r(8113);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},6650:(t,e,r)=>{var n=r(1702),o=r(7466),i=r(1340),u=r(8415),a=r(4488),c=n(u),s=n("".slice),l=Math.ceil,f=function(t){return function(e,r,n){var u,f,p=i(a(e)),y=o(r),d=p.length,h=void 0===n?" ":i(n);return y<=d||""==h?p:((f=c(h,l((u=y-d)/h.length))).length>u&&(f=s(f,0,u)),t?p+f:f+p)}};t.exports={start:f(!1),end:f(!0)}},8415:(t,e,r)=>{"use strict";var n=r(9303),o=r(1340),i=r(4488),u=RangeError;t.exports=function(t){var e=o(i(this)),r="",a=n(t);if(a<0||a==1/0)throw u("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(r+=e);return r}},365:(t,e,r)=>{"use strict";var n=r(3111).end,o=r(6091);t.exports=o("trimEnd")?function(){return n(this)}:"".trimEnd},6091:(t,e,r)=>{var n=r(6530).PROPER,o=r(7293),i=r(1361);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||n&&i[t].name!==t}))}},3111:(t,e,r)=>{var n=r(1702),o=r(4488),i=r(1340),u=r(1361),a=n("".replace),c="["+u+"]",s=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),f=function(t){return function(e){var r=i(o(e));return 1&t&&(r=a(r,s,"")),2&t&&(r=a(r,l,"")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},6293:(t,e,r)=>{var n=r(7392),o=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},6532:(t,e,r)=>{var n=r(6916),o=r(5005),i=r(5112),u=r(8052);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&u(e,a,(function(t){return n(r,this)}),{arity:1})}},2015:(t,e,r)=>{var n=r(6293);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},863:(t,e,r)=>{var n=r(1702);t.exports=n(1..valueOf)},1400:(t,e,r)=>{var n=r(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5656:(t,e,r)=>{var n=r(8361),o=r(4488);t.exports=function(t){return n(o(t))}},9303:(t,e,r)=>{var n=r(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},7466:(t,e,r)=>{var n=r(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:(t,e,r)=>{var n=r(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:(t,e,r)=>{var n=r(6916),o=r(111),i=r(2190),u=r(8173),a=r(2140),c=r(5112),s=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=u(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:(t,e,r)=>{var n=r(7593),o=r(2190);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},1694:(t,e,r)=>{var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:(t,e,r)=>{var n=r(648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:(t,e,r)=>{var n=r(1702),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3307:(t,e,r)=>{var n=r(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,e,r)=>{var n=r(9781),o=r(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:(t,e,r)=>{var n=r(7854),o=r(614),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6800:(t,e,r)=>{var n=r(857),o=r(2597),i=r(6061),u=r(3070).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},6061:(t,e,r)=>{var n=r(5112);e.f=n},5112:(t,e,r)=>{var n=r(7854),o=r(2309),i=r(2597),u=r(9711),a=r(6293),c=r(3307),s=n.Symbol,l=o("wks"),f=c?s.for||s:s&&s.withoutSetter||u;t.exports=function(t){return i(l,t)||(l[t]=a&&i(s,t)?s[t]:f("Symbol."+t)),l[t]}},1361:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9191:(t,e,r)=>{"use strict";var n=r(5005),o=r(2597),i=r(8880),u=r(7976),a=r(7674),c=r(9920),s=r(2626),l=r(9587),f=r(6277),p=r(8340),y=r(5392),d=r(9781),h=r(1913);t.exports=function(t,e,r,v){var b="stackTraceLimit",m=v?2:1,g=t.split("."),w=g[g.length-1],j=n.apply(null,g);if(j){var O=j.prototype;if(!h&&o(O,"cause")&&delete O.cause,!r)return j;var S=n("Error"),x=e((function(t,e){var r=f(v?e:t,void 0),n=v?new j(t):new j;return void 0!==r&&i(n,"message",r),y(n,x,n.stack,2),this&&u(O,this)&&l(n,this,x),arguments.length>m&&p(n,arguments[m]),n}));if(x.prototype=O,"Error"!==w?a?a(x,S):c(x,S,{name:!0}):d&&b in j&&(s(x,j,b),s(x,j,"prepareStackTrace")),c(x,j),!h)try{O.name!==w&&i(O,"name",w),O.constructor=x}catch(t){}return x}}},2222:(t,e,r)=>{"use strict";var n=r(2109),o=r(7293),i=r(3157),u=r(111),a=r(7908),c=r(6244),s=r(7207),l=r(6135),f=r(5417),p=r(1194),y=r(5112),d=r(7392),h=y("isConcatSpreadable"),v=d>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=function(t){if(!u(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(t){var e,r,n,o,i,u=a(this),p=f(u,0),y=0;for(e=-1,n=arguments.length;e<n;e++)if(b(i=-1===e?u:arguments[e]))for(o=c(i),s(y+o),r=0;r<o;r++,y++)r in i&&l(p,y,i[r]);else s(y+1),l(p,y++,i);return p.length=y,p}})},6541:(t,e,r)=>{"use strict";var n=r(2109),o=r(2092).every;n({target:"Array",proto:!0,forced:!r(9341)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7327:(t,e,r)=>{"use strict";var n=r(2109),o=r(2092).filter;n({target:"Array",proto:!0,forced:!r(1194)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1038:(t,e,r)=>{var n=r(2109),o=r(8457);n({target:"Array",stat:!0,forced:!r(7072)((function(t){Array.from(t)}))},{from:o})},6699:(t,e,r)=>{"use strict";var n=r(2109),o=r(1318).includes,i=r(7293),u=r(1223);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")},2772:(t,e,r)=>{"use strict";var n=r(2109),o=r(1470),i=r(1318).indexOf,u=r(9341),a=o([].indexOf),c=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:c||!u("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?a(this,t,e)||0:i(this,t,e)}})},9753:(t,e,r)=>{r(2109)({target:"Array",stat:!0},{isArray:r(3157)})},6992:(t,e,r)=>{"use strict";var n=r(5656),o=r(1223),i=r(7497),u=r(9909),a=r(3070).f,c=r(1656),s=r(6178),l=r(1913),f=r(9781),p="Array Iterator",y=u.set,d=u.getterFor(p);t.exports=c(Array,"Array",(function(t,e){y(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,s(void 0,!0)):s("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}},9600:(t,e,r)=>{"use strict";var n=r(2109),o=r(1702),i=r(8361),u=r(5656),a=r(9341),c=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!a("join",",")},{join:function(t){return c(u(this),void 0===t?",":t)}})},1249:(t,e,r)=>{"use strict";var n=r(2109),o=r(2092).map;n({target:"Array",proto:!0,forced:!r(1194)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7658:(t,e,r)=>{"use strict";var n=r(2109),o=r(7908),i=r(6244),u=r(3658),a=r(7207);n({target:"Array",proto:!0,arity:1,forced:r(7293)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),r=i(e),n=arguments.length;a(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return u(e,r),r}})},5069:(t,e,r)=>{"use strict";var n=r(2109),o=r(1702),i=r(3157),u=o([].reverse),a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),u(this)}})},7042:(t,e,r)=>{"use strict";var n=r(2109),o=r(3157),i=r(4411),u=r(111),a=r(1400),c=r(6244),s=r(5656),l=r(6135),f=r(5112),p=r(1194),y=r(206),d=p("slice"),h=f("species"),v=Array,b=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,f,p=s(this),d=c(p),m=a(t,d),g=a(void 0===e?d:e,d);if(o(p)&&(r=p.constructor,(i(r)&&(r===v||o(r.prototype))||u(r)&&null===(r=r[h]))&&(r=void 0),r===v||void 0===r))return y(p,m,g);for(n=new(void 0===r?v:r)(b(g-m,0)),f=0;m<g;m++,f++)m in p&&l(n,f,p[m]);return n.length=f,n}})},2707:(t,e,r)=>{"use strict";var n=r(2109),o=r(1702),i=r(9662),u=r(7908),a=r(6244),c=r(5117),s=r(1340),l=r(7293),f=r(4362),p=r(9341),y=r(8886),d=r(256),h=r(7392),v=r(8008),b=[],m=o(b.sort),g=o(b.push),w=l((function(){b.sort(void 0)})),j=l((function(){b.sort(null)})),O=p("sort"),S=!l((function(){if(h)return h<70;if(!(y&&y>3)){if(d)return!0;if(v)return v<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)b.push({k:e+n,v:r})}for(b.sort((function(t,e){return e.v-t.v})),n=0;n<b.length;n++)e=b[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!j||!O||!S},{sort:function(t){void 0!==t&&i(t);var e=u(this);if(S)return void 0===t?m(e):m(e,t);var r,n,o=[],l=a(e);for(n=0;n<l;n++)n in e&&g(o,e[n]);for(f(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:s(e)>s(r)?1:-1}}(t)),r=a(o),n=0;n<r;)e[n]=o[n++];for(;n<l;)c(e,n++);return e}})},6078:(t,e,r)=>{var n=r(2597),o=r(8052),i=r(8709),u=r(5112)("toPrimitive"),a=Date.prototype;n(a,u)||o(a,u,i)},3710:(t,e,r)=>{var n=r(1702),o=r(8052),i=Date.prototype,u="Invalid Date",a="toString",c=n(i[a]),s=n(i.getTime);String(new Date(NaN))!=u&&o(i,a,(function(){var t=s(this);return t==t?c(this):u}))},1703:(t,e,r)=>{var n=r(2109),o=r(7854),i=r(2104),u=r(9191),a="WebAssembly",c=o[a],s=7!==Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=u(t,e,s),n({global:!0,constructor:!0,arity:1,forced:s},r)},f=function(t,e){if(c&&c[t]){var r={};r[t]=u(a+"."+t,e,s),n({target:a,stat:!0,constructor:!0,arity:1,forced:s},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},6647:(t,e,r)=>{var n=r(8052),o=r(7762),i=Error.prototype;i.toString!==o&&n(i,"toString",o)},4812:(t,e,r)=>{var n=r(2109),o=r(7065);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},8309:(t,e,r)=>{var n=r(9781),o=r(6530).EXISTS,i=r(1702),u=r(3070).f,a=Function.prototype,c=i(a.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(s.exec);n&&!o&&u(a,"name",{configurable:!0,get:function(){try{return l(s,c(this))[1]}catch(t){return""}}})},8862:(t,e,r)=>{var n=r(2109),o=r(5005),i=r(2104),u=r(6916),a=r(1702),c=r(7293),s=r(3157),l=r(614),f=r(111),p=r(2190),y=r(206),d=r(6293),h=o("JSON","stringify"),v=a(/./.exec),b=a("".charAt),m=a("".charCodeAt),g=a("".replace),w=a(1..toString),j=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,x=!d||c((function(){var t=o("Symbol")();return"[null]"!=h([t])||"{}"!=h({a:t})||"{}"!=h(Object(t))})),P=c((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),E=function(t,e){var r=y(arguments),n=e;if((f(e)||void 0!==t)&&!p(t))return s(e)||(e=function(t,e){if(l(n)&&(e=u(n,this,t,e)),!p(e))return e}),r[1]=e,i(h,null,r)},k=function(t,e,r){var n=b(r,e-1),o=b(r,e+1);return v(O,t)&&!v(S,o)||v(S,t)&&!v(O,n)?"\\u"+w(m(t,0),16):t};h&&n({target:"JSON",stat:!0,arity:3,forced:x||P},{stringify:function(t,e,r){var n=y(arguments),o=i(x?E:h,null,n);return P&&"string"==typeof o?g(o,j,k):o}})},9653:(t,e,r)=>{"use strict";var n=r(2109),o=r(1913),i=r(9781),u=r(7854),a=r(857),c=r(1702),s=r(4705),l=r(2597),f=r(9587),p=r(7976),y=r(2190),d=r(7593),h=r(7293),v=r(8006).f,b=r(1236).f,m=r(3070).f,g=r(863),w=r(3111).trim,j="Number",O=u[j],S=a[j],x=O.prototype,P=u.TypeError,E=c("".slice),k=c("".charCodeAt),C=s(j,!O(" 0o1")||!O("0b1")||O("+0x1")),T=function(t){var e=arguments.length<1?0:O(function(t){var e=d(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,u,a,c,s=d(t,"number");if(y(s))throw P("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=w(s),43===(e=k(s,0))||45===e){if(88===(r=k(s,2))||120===r)return NaN}else if(48===e){switch(k(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(u=(i=E(s,2)).length,a=0;a<u;a++)if((c=k(i,a))<48||c>o)return NaN;return parseInt(i,n)}return+s}(e)}(t));return function(t){return p(x,t)&&h((function(){g(t)}))}(this)?f(Object(e),this,T):e};T.prototype=x,C&&!o&&(x.constructor=T),n({global:!0,constructor:!0,wrap:!0,forced:C},{Number:T});var _=function(t,e){for(var r,n=i?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(e,r=n[o])&&!l(t,r)&&m(t,r,b(e,r))};o&&S&&_(a[j],S),(C||o)&&_(a[j],O)},9601:(t,e,r)=>{var n=r(2109),o=r(1574);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},8011:(t,e,r)=>{r(2109)({target:"Object",stat:!0,sham:!r(9781)},{create:r(30)})},9070:(t,e,r)=>{var n=r(2109),o=r(9781),i=r(3070).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},5003:(t,e,r)=>{var n=r(2109),o=r(7293),i=r(5656),u=r(1236).f,a=r(9781);n({target:"Object",stat:!0,forced:!a||o((function(){u(1)})),sham:!a},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},9660:(t,e,r)=>{var n=r(2109),o=r(6293),i=r(7293),u=r(5181),a=r(7908);n({target:"Object",stat:!0,forced:!o||i((function(){u.f(1)}))},{getOwnPropertySymbols:function(t){var e=u.f;return e?e(a(t)):[]}})},489:(t,e,r)=>{var n=r(2109),o=r(7293),i=r(7908),u=r(9518),a=r(8544);n({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!a},{getPrototypeOf:function(t){return u(i(t))}})},7941:(t,e,r)=>{var n=r(2109),o=r(7908),i=r(1956);n({target:"Object",stat:!0,forced:r(7293)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},7987:(t,e,r)=>{"use strict";var n=r(9781),o=r(7045),i=r(111),u=r(7908),a=r(4488),c=Object.getPrototypeOf,s=Object.setPrototypeOf,l=Object.prototype,f="__proto__";if(n&&c&&s&&!(f in l))try{o(l,f,{configurable:!0,get:function(){return c(u(this))},set:function(t){var e=a(this);(i(t)||null===t)&&i(e)&&s(e,t)}})}catch(t){}},8304:(t,e,r)=>{r(2109)({target:"Object",stat:!0},{setPrototypeOf:r(7674)})},1539:(t,e,r)=>{var n=r(1694),o=r(8052),i=r(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},6833:(t,e,r)=>{var n=r(2109),o=r(4699).values;n({target:"Object",stat:!0},{values:function(t){return o(t)}})},1058:(t,e,r)=>{var n=r(2109),o=r(3009);n({global:!0,forced:parseInt!=o},{parseInt:o})},2419:(t,e,r)=>{var n=r(2109),o=r(5005),i=r(2104),u=r(7065),a=r(9483),c=r(9670),s=r(111),l=r(30),f=r(7293),p=o("Reflect","construct"),y=Object.prototype,d=[].push,h=f((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!f((function(){p((function(){}))})),b=h||v;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){a(t),c(e);var r=arguments.length<3?t:a(arguments[2]);if(v&&!h)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return i(d,n,e),new(i(u,t,n))}var o=r.prototype,f=l(s(o)?o:y),b=i(t,f,e);return s(b)?b:f}})},4819:(t,e,r)=>{var n=r(2109),o=r(6916),i=r(111),u=r(9670),a=r(5032),c=r(1236),s=r(9518);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,l,f=arguments.length<3?e:arguments[2];return u(e)===f?e[r]:(n=c.f(e,r))?a(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(l=s(e))?t(l,r,f):void 0}})},1299:(t,e,r)=>{var n=r(2109),o=r(7854),i=r(8003);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},4603:(t,e,r)=>{var n=r(9781),o=r(7854),i=r(1702),u=r(4705),a=r(9587),c=r(8880),s=r(8006).f,l=r(7976),f=r(7850),p=r(1340),y=r(4706),d=r(2999),h=r(2626),v=r(8052),b=r(7293),m=r(2597),g=r(9909).enforce,w=r(6340),j=r(5112),O=r(9441),S=r(7168),x=j("match"),P=o.RegExp,E=P.prototype,k=o.SyntaxError,C=i(E.exec),T=i("".charAt),_=i("".replace),R=i("".indexOf),I=i("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,z=/a/g,F=/a/g,D=new P(z)!==z,N=d.MISSED_STICKY,L=d.UNSUPPORTED_Y;if(u("RegExp",n&&(!D||N||O||S||b((function(){return F[x]=!1,P(z)!=z||P(F)==F||"/a/i"!=P(z,"i")}))))){for(var B=function(t,e){var r,n,o,i,u,s,d=l(E,this),h=f(t),v=void 0===e,b=[],w=t;if(!d&&h&&v&&t.constructor===B)return t;if((h||l(E,t))&&(t=t.source,v&&(e=y(w))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),w=t,O&&"dotAll"in z&&(n=!!e&&R(e,"s")>-1)&&(e=_(e,/s/g,"")),r=e,N&&"sticky"in z&&(o=!!e&&R(e,"y")>-1)&&L&&(e=_(e,/y/g,"")),S&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],u={},a=!1,c=!1,s=0,l="";n<=r;n++){if("\\"===(e=T(t,n)))e+=T(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:C(A,I(t,n+1))&&(n+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===l||m(u,l))throw new k("Invalid capture group name");u[l]=!0,i[i.length]=[l,s],c=!1,l="";continue}c?l+=e:o+=e}return[o,i]}(t),t=i[0],b=i[1]),u=a(P(t,e),d?this:E,B),(n||o||b.length)&&(s=g(u),n&&(s.dotAll=!0,s.raw=B(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=T(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+T(t,++n);return o}(t),r)),o&&(s.sticky=!0),b.length&&(s.groups=b)),t!==w)try{c(u,"source",""===w?"(?:)":w)}catch(t){}return u},M=s(P),W=0;M.length>W;)h(B,P,M[W++]);E.constructor=B,B.prototype=E,v(o,"RegExp",B,{constructor:!0})}w("RegExp")},8450:(t,e,r)=>{var n=r(9781),o=r(9441),i=r(4326),u=r(7045),a=r(9909).get,c=RegExp.prototype,s=TypeError;n&&o&&u(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!a(this).dotAll;throw s("Incompatible receiver, RegExp required")}}})},4916:(t,e,r)=>{"use strict";var n=r(2109),o=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8386:(t,e,r)=>{var n=r(9781),o=r(2999).MISSED_STICKY,i=r(4326),u=r(7045),a=r(9909).get,c=RegExp.prototype,s=TypeError;n&&o&&u(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!a(this).sticky;throw s("Incompatible receiver, RegExp required")}}})},7601:(t,e,r)=>{"use strict";r(4916);var n,o,i=r(2109),u=r(6916),a=r(614),c=r(9670),s=r(1340),l=(n=!1,(o=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&n),f=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=c(this),r=s(t),n=e.exec;if(!a(n))return u(f,e,r);var o=u(n,e,r);return null!==o&&(c(o),!0)}})},9714:(t,e,r)=>{"use strict";var n=r(6530).PROPER,o=r(8052),i=r(9670),u=r(1340),a=r(7293),c=r(4706),s="toString",l=RegExp.prototype[s],f=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=n&&l.name!=s;(f||p)&&o(RegExp.prototype,s,(function(){var t=i(this);return"/"+u(t.source)+"/"+u(c(t))}),{unsafe:!0})},7227:(t,e,r)=>{"use strict";r(7710)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(5631))},189:(t,e,r)=>{r(7227)},7852:(t,e,r)=>{"use strict";var n,o=r(2109),i=r(1470),u=r(1236).f,a=r(7466),c=r(1340),s=r(3929),l=r(4488),f=r(4964),p=r(1913),y=i("".endsWith),d=i("".slice),h=Math.min,v=f("endsWith");o({target:"String",proto:!0,forced:!(!p&&!v&&(n=u(String.prototype,"endsWith"),n&&!n.writable)||v)},{endsWith:function(t){var e=c(l(this));s(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=void 0===r?n:h(a(r),n),i=c(t);return y?y(e,i,o):d(e,o-i.length,o)===i}})},2023:(t,e,r)=>{"use strict";var n=r(2109),o=r(1702),i=r(3929),u=r(4488),a=r(1340),c=r(4964),s=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~s(a(u(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,r)=>{"use strict";var n=r(8710).charAt,o=r(1340),i=r(9909),u=r(1656),a=r(6178),c="String Iterator",s=i.set,l=i.getterFor(c);u(String,"String",(function(t){s(this,{type:c,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},4723:(t,e,r)=>{"use strict";var n=r(6916),o=r(7007),i=r(9670),u=r(8554),a=r(7466),c=r(1340),s=r(4488),l=r(8173),f=r(1530),p=r(7651);o("match",(function(t,e,r){return[function(e){var r=s(this),o=u(e)?void 0:l(e,t);return o?n(o,e,r):new RegExp(e)[t](c(r))},function(t){var n=i(this),o=c(t),u=r(e,n,o);if(u.done)return u.value;if(!n.global)return p(n,o);var s=n.unicode;n.lastIndex=0;for(var l,y=[],d=0;null!==(l=p(n,o));){var h=c(l[0]);y[d]=h,""===h&&(n.lastIndex=f(o,a(n.lastIndex),s)),d++}return 0===d?null:y}]}))},3112:(t,e,r)=>{"use strict";var n=r(2109),o=r(6650).start;n({target:"String",proto:!0,forced:r(4986)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5306:(t,e,r)=>{"use strict";var n=r(2104),o=r(6916),i=r(1702),u=r(7007),a=r(7293),c=r(9670),s=r(614),l=r(8554),f=r(9303),p=r(7466),y=r(1340),d=r(4488),h=r(1530),v=r(8173),b=r(647),m=r(7651),g=r(5112)("replace"),w=Math.max,j=Math.min,O=i([].concat),S=i([].push),x=i("".indexOf),P=i("".slice),E="$0"==="a".replace(/./,"$0"),k=!!/./[g]&&""===/./[g]("a","$0");u("replace",(function(t,e,r){var i=k?"$":"$0";return[function(t,r){var n=d(this),i=l(t)?void 0:v(t,g);return i?o(i,t,n,r):o(e,y(n),t,r)},function(t,o){var u=c(this),a=y(t);if("string"==typeof o&&-1===x(o,i)&&-1===x(o,"$<")){var l=r(e,u,a,o);if(l.done)return l.value}var d=s(o);d||(o=y(o));var v=u.global;if(v){var g=u.unicode;u.lastIndex=0}for(var E=[];;){var k=m(u,a);if(null===k)break;if(S(E,k),!v)break;""===y(k[0])&&(u.lastIndex=h(a,p(u.lastIndex),g))}for(var C,T="",_=0,R=0;R<E.length;R++){for(var I=y((k=E[R])[0]),A=w(j(f(k.index),a.length),0),z=[],F=1;F<k.length;F++)S(z,void 0===(C=k[F])?C:String(C));var D=k.groups;if(d){var N=O([I],z,A,a);void 0!==D&&S(N,D);var L=y(n(o,void 0,N))}else L=b(I,a,A,z,D,o);A>=_&&(T+=P(a,_,A)+L,_=A+I.length)}return T+P(a,_)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||k)},8702:(t,e,r)=>{r(3462);var n=r(2109),o=r(365);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==o},{trimEnd:o})},3462:(t,e,r)=>{var n=r(2109),o=r(365);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==o},{trimRight:o})},3210:(t,e,r)=>{"use strict";var n=r(2109),o=r(3111).trim;n({target:"String",proto:!0,forced:r(6091)("trim")},{trim:function(){return o(this)}})},4032:(t,e,r)=>{"use strict";var n=r(2109),o=r(7854),i=r(6916),u=r(1702),a=r(1913),c=r(9781),s=r(6293),l=r(7293),f=r(2597),p=r(7976),y=r(9670),d=r(5656),h=r(4948),v=r(1340),b=r(9114),m=r(30),g=r(1956),w=r(8006),j=r(1156),O=r(5181),S=r(1236),x=r(3070),P=r(6048),E=r(5296),k=r(8052),C=r(2309),T=r(6200),_=r(3501),R=r(9711),I=r(5112),A=r(6061),z=r(6800),F=r(6532),D=r(8003),N=r(9909),L=r(2092).forEach,B=T("hidden"),M="Symbol",W="prototype",$=N.set,q=N.getterFor(M),U=Object[W],G=o.Symbol,V=G&&G[W],H=o.TypeError,J=o.QObject,X=S.f,K=x.f,Y=j.f,Z=E.f,Q=u([].push),tt=C("symbols"),et=C("op-symbols"),rt=C("wks"),nt=!J||!J[W]||!J[W].findChild,ot=c&&l((function(){return 7!=m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=X(U,e);n&&delete U[e],K(t,e,r),n&&t!==U&&K(U,e,n)}:K,it=function(t,e){var r=tt[t]=m(V);return $(r,{type:M,tag:t,description:e}),c||(r.description=e),r},ut=function(t,e,r){t===U&&ut(et,e,r),y(t);var n=h(e);return y(r),f(tt,n)?(r.enumerable?(f(t,B)&&t[B][n]&&(t[B][n]=!1),r=m(r,{enumerable:b(0,!1)})):(f(t,B)||K(t,B,b(1,{})),t[B][n]=!0),ot(t,n,r)):K(t,n,r)},at=function(t,e){y(t);var r=d(e),n=g(r).concat(ft(r));return L(n,(function(e){c&&!i(ct,r,e)||ut(t,e,r[e])})),t},ct=function(t){var e=h(t),r=i(Z,this,e);return!(this===U&&f(tt,e)&&!f(et,e))&&(!(r||!f(this,e)||!f(tt,e)||f(this,B)&&this[B][e])||r)},st=function(t,e){var r=d(t),n=h(e);if(r!==U||!f(tt,n)||f(et,n)){var o=X(r,n);return!o||!f(tt,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},lt=function(t){var e=Y(d(t)),r=[];return L(e,(function(t){f(tt,t)||f(_,t)||Q(r,t)})),r},ft=function(t){var e=t===U,r=Y(e?et:d(t)),n=[];return L(r,(function(t){!f(tt,t)||e&&!f(U,t)||Q(n,tt[t])})),n};s||(k(V=(G=function(){if(p(V,this))throw H("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=R(t),r=function(t){this===U&&i(r,et,t),f(this,B)&&f(this[B],e)&&(this[B][e]=!1),ot(this,e,b(1,t))};return c&&nt&&ot(U,e,{configurable:!0,set:r}),it(e,t)})[W],"toString",(function(){return q(this).tag})),k(G,"withoutSetter",(function(t){return it(R(t),t)})),E.f=ct,x.f=ut,P.f=at,S.f=st,w.f=j.f=lt,O.f=ft,A.f=function(t){return it(I(t),t)},c&&(K(V,"description",{configurable:!0,get:function(){return q(this).description}}),a||k(U,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),L(g(rt),(function(t){z(t)})),n({target:M,stat:!0,forced:!s},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,e){return void 0===e?m(t):at(m(t),e)},defineProperty:ut,defineProperties:at,getOwnPropertyDescriptor:st}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt}),F(),D(G,M),_[B]=!0},1817:(t,e,r)=>{"use strict";var n=r(2109),o=r(9781),i=r(7854),u=r(1702),a=r(2597),c=r(614),s=r(7976),l=r(1340),f=r(3070).f,p=r(9920),y=i.Symbol,d=y&&y.prototype;if(o&&c(y)&&(!("description"in d)||void 0!==y().description)){var h={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=s(d,this)?new y(t):void 0===t?y():y(t);return""===t&&(h[e]=!0),e};p(v,y),v.prototype=d,d.constructor=v;var b="Symbol(test)"==String(y("test")),m=u(d.valueOf),g=u(d.toString),w=/^Symbol\((.*)\)[^)]+$/,j=u("".replace),O=u("".slice);f(d,"description",{configurable:!0,get:function(){var t=m(this);if(a(h,t))return"";var e=g(t),r=b?O(e,7,-1):j(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},763:(t,e,r)=>{var n=r(2109),o=r(5005),i=r(2597),u=r(1340),a=r(2309),c=r(2015),s=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=u(t);if(i(s,e))return s[e];var r=o("Symbol")(e);return s[e]=r,l[r]=e,r}})},2165:(t,e,r)=>{r(6800)("iterator")},2526:(t,e,r)=>{r(4032),r(763),r(6620),r(8862),r(9660)},6620:(t,e,r)=>{var n=r(2109),o=r(2597),i=r(2190),u=r(6330),a=r(2309),c=r(2015),s=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(u(t)+" is not a symbol");if(o(s,t))return s[t]}})},6649:(t,e,r)=>{var n=r(6800),o=r(6532);n("toPrimitive"),o()},3948:(t,e,r)=>{var n=r(7854),o=r(8324),i=r(8509),u=r(6992),a=r(8880),c=r(5112),s=c("iterator"),l=c("toStringTag"),f=u.values,p=function(t,e){if(t){if(t[s]!==f)try{a(t,s,f)}catch(e){t[s]=f}if(t[l]||a(t,l,e),o[e])for(var r in u)if(t[r]!==u[r])try{a(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var y in o)p(n[y]&&n[y].prototype,y);p(i,"DOMTokenList")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}r.d(n,{default:()=>tr}),r(2772),r(1703),r(6647),r(9600),r(2707),r(1058),r(3210),r(8304),r(4812),r(489),r(7987),r(1539),r(1299),r(2419),r(8011),r(9070),r(6649),r(6078),r(2526),r(1817),r(9653),r(2165),r(6992),r(8783),r(3948),r(1038),r(7658),r(2222),r(3710),r(9714);var e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.negativeWord="",this.separatorWord,this.zero,this.spaceSeparator=" "}var r,n;return r=e,(n=[{key:"toCardinal",value:function(t){return t}},{key:"toDecimal",value:function(t){for(var e=Array.from(t),r=[];"0"===e[0];)e.shift(),r.push(this.zero);return r.push(this.toCardinal(parseInt(t,10))),r.join(this.spaceSeparator)}},{key:"floatToCardinal",value:function(e){if(isNaN(Number(e)))throw new TypeError("Invalid number: ".concat(e,", of type: ").concat(t(e)));e=Number(e);var r=[],n=Math.abs(e);if(e%1==0||void 0===this.separatorWord)r=[this.toCardinal(n)];else{var o=n.toString().split("."),i=this.toCardinal(parseInt(o[0],10));this.wholeNumberInt=parseInt(o[0]);var u=o[1],a=this.toDecimal(u);r=[i,this.separatorWord,a]}return e<0&&(r=[this.negativeWord].concat(r)),r.join(this.spaceSeparator)}}])&&function(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=function(e){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===t(i)?i:String(i)),o)}var i}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}();function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var a=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,r,n,a,c=(n=s,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(t){return!1}}(),function(){var t,e=u(n);if(a){var r=u(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this)).integerValue=0,t.decimalValue=0,t.negativeWord="ناقص",t.separatorWord="فاصلة",t.number=0,t.zero="صفر",t.arabicOnes=["","واحد","اثنان","ثلاثة","أربعة","خمسة","ستة","سبعة","ثمانية","تسعة","عشرة","أحد عشر","اثنا عشر","ثلاثة عشر","أربعة عشر","خمسة عشر","ستة عشر","سبعة عشر","ثمانية عشر","تسعة عشر"],t.arabicFeminineOnes=["","إحدى","اثنتان","ثلاث","أربع","خمس","ست","سبع","ثمان","تسع","عشر","إحدى عشرة","اثنتا عشرة","ثلاث عشرة","أربع عشرة","خمس عشرة","ست عشرة","سبع عشرة","ثماني عشرة","تسع عشرة"],t.arabicTens=["عشرون","ثلاثون","أربعون","خمسون","ستون","سبعون","ثمانون","تسعون"],t.arabicHundreds=["","مائة","مئتان","ثلاثمائة","أربعمائة","خمسمائة","ستمائة","سبعمائة","ثمانمائة","تسعمائة"],t.arabicAppendedTwos=["مئتا","ألفا","مليونا","مليارا","تريليونا","كوادريليونا","كوينتليونا","سكستيليونا"],t.arabicTwos=["مئتان","ألفان","مليونان","ملياران","تريليونان","كوادريليونان","كوينتليونان","سكستيليونان"],t.arabicGroup=["مائة","ألف","مليون","مليار","تريليون","كوادريليون","كوينتليون","سكستيليون"],t.arabicAppendedGroup=["","ألفاً","مليوناً","ملياراً","تريليوناً","كوادريليوناً","كوينتليوناً","سكستيليوناً"],t.arabicPluralGroups=["","آلاف","ملايين","مليارات","تريليونات","كوادريليونات","كوينتليونات","سكستيليونات"],t}return e=s,(r=[{key:"digitFeminineStatus",value:function(t){return this.arabicOnes[parseInt(t)]}},{key:"processArabicGroup",value:function(t,e,r){var n=t%100,o=t/100,i="";if(parseInt(o)>0&&(i=0==n&&2==parseInt(o)?this.arabicAppendedTwos[0]:this.arabicHundreds[parseInt(o)]),n>0)if(n<20)2==n&&0==parseInt(o)&&e>0?i=-1!=[2e3,2e6,2e9,2e12,2e15,2e18].indexOf(this.integerValue)?this.arabicAppendedTwos[parseInt(e)]:this.arabicTwos[parseInt(e)]:(""!=i&&(i+=" و "),i+=1==n&&e>0&&0==o?"":1!=n&&2!=n||0!=e&&-1!=e||0!=o||0!=r?this.digitFeminineStatus(parseInt(n),e):"");else{var u=n%10;n=n/10-2,u>0&&(""!=i&&n<4&&(i+=" و "),i+=this.digitFeminineStatus(u,e)),""!=i&&0!=u&&(i+=" و "),i+=this.arabicTens[parseInt(n)]}return i}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;var e=t;this.integerValue=t;for(var r="",n=0;e>0;){var o=parseInt(e%1e3);e=parseInt(e/1e3);var i=this.processArabicGroup(o,n,Math.floor(e));""!=i&&(n>0&&(""!=r&&(r=" و "+r),2!=o&&(r=o%100!=1?o>=3&&o<=10?this.arabicPluralGroups[n]+" "+r:""!=r?this.arabicAppendedGroup[n]+" "+r:this.arabicGroup[n]+" "+r:this.arabicGroup[n]+" "+r)),r=i+" "+r),n+=1}return r.trim()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(e);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){var e=function(t){if("object"!==c(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===c(e)?e:String(e)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}r(7941),r(6833),r(1249),r(9753),r(7042),r(8702);var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=p(n);if(o){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return e=u,(r=[{key:"getValueFromCards",value:function(t){for(var e=0;e<this.cards.length;e++)if(Object.prototype.hasOwnProperty.call(this.cards[e],t))return this.cards[e][t]}},{key:"splitNum",value:function(t){for(var e=0;e<this.cards.length;e++)if("."!=this.cards[e][0]){var r=parseInt(Object.keys(this.cards[e])[0],10);if(!(r>t)){var n=[],o=void 0,i=void 0;if(0==t?(o=1,i=0):(o=Math.floor(t/r),i=t%r),1==o)n.push(s({},this.getValueFromCards(1),1));else{if(o==t)return[(this.getValueFromCards(r),o*r)];n.push(this.splitNum(o))}return n.push(s({},this.getValueFromCards(r),r)),i&&n.push(this.splitNum(i)),n}}}},{key:"scanNum",value:function(t){var e=this;return t.split("").map((function(t){return e.getValueFromCards(parseInt(t,10))}))}},{key:"clean",value:function(t){for(var e=t;1!=t.length;){e=[];var r=t[0],n=t[1];if(Array.isArray(r)||Array.isArray(n))for(var o=0;o<t.length;o++){var i=t[o];Array.isArray(i)?1==i.length?e.push(i[0]):e.push(this.clean(i)):e.push(i)}else e.push(this.merge(r,n)),t.slice(2).length>0&&e.push(t.slice(2));t=e}return e[0]}},{key:"postClean",value:function(t){return t.trimRight()}},{key:"toCardinal",value:function(t){var e=this.splitNum(t),r=Object.keys(this.clean(e))[0];return this.postClean(r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(e);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t){if("object"!==d(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===d(e)?e:String(e)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=m(n);if(o){var r=m(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="mənfi",t.separatorWord="nöqtə",t.zero="sıfır",t.cards=[{1e18:"kentilyon"},{1e15:"katrilyon"},{1e12:"trilyon"},{1e9:"milyar"},{1e6:"milyon"},{1e3:"min"},{100:"yüz"},{90:"doxsan"},{80:"səksən"},{70:"yetmiş"},{60:"altmış"},{50:"əlli"},{40:"qırx"},{30:"otuz"},{20:"iyirmi"},{10:"on"},{9:"doqquz"},{8:"səkkiz"},{7:"yeddi"},{6:"altı"},{5:"beş"},{4:"dörd"},{3:"üç"},{2:"iki"},{1:"bir"},{0:"sıfır"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);return 1==o&&(i<=100||1e3==i)?h({},n,i):h({},"".concat(r).concat(this.spaceSeparator).concat(n),i>o?o*i:o+i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}r(8862),r(8309),r(4916),r(7601),r(5069),r(3112);var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=x(n);if(o){var r=x(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).feminine=!1,t.negativeWord="минус",t.separatorWord="запятая",t.zero="ноль",t.ones={1:"один",2:"два",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"},t.onesFeminine={1:"одна",2:"две",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"},t.tens={0:"десять",1:"одиннадцать",2:"двенадцать",3:"тринадцать",4:"четырнадцать",5:"пятнадцать",6:"шестнадцать",7:"семнадцать",8:"восемнадцать",9:"девятнадцать"},t.twenties={2:"двадцать",3:"тридцать",4:"сорок",5:"пятьдесят",6:"шестьдесят",7:"семьдесят",8:"восемьдесят",9:"девяносто"},t.hundreds={1:"сто",2:"двести",3:"триста",4:"четыреста",5:"пятьсот",6:"шестьсот",7:"семьсот",8:"восемьсот",9:"девятьсот"},t.thousands={1:["тысяча","тысячи","тысяч"],2:["миллион","миллиона","миллионов"],3:["миллиард","миллиарда","миллиардов"],4:["триллион","триллиона","триллионов"],5:["квадриллион","квадриллиона","квадриллионов"],6:["квинтиллион","квинтиллиона","квинтиллионов"],7:["секстиллион","секстиллиона","секстиллионов"],8:["септиллион","септиллиона","септиллионов"],9:["октиллион","октиллиона","октиллионов"],10:["нониллион","нониллиона","нониллионов"]},t}return e=u,r=[{key:"splitByX",value:function(t,e){var r,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=[],i=t.length;if(i>e){var u=i%e;u>0&&(r=t.slice(0,u),n?o.push(parseInt(r)):o.push(r));for(var a=u;a<i;a+=e)r=t.slice(a,a+e),n?o.push(parseInt(r)):o.push(r)}else n?o.push(parseInt(t)):o.push(t);return o}},{key:"getDigits",value:function(t){return Array.from(JSON.stringify(t).padStart(3,"0").slice(-3)).reverse().map((function(t){return parseInt(t)}))}},{key:"pluralize",value:function(t,e){var r=2;return(t%100<10||t%100>20)&&(t%10==1?r=0:t%10<5&&t%10>1&&(r=1)),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o],u=[];if(n-=1,0!=i){var a=j(this.getDigits(i),3),c=a[0],s=a[1],l=a[2];l>0&&e.push(this.hundreds[l]),s>1&&e.push(this.twenties[s]),1==s?e.push(this.tens[c]):c>0&&(u=1==n||this.feminine&&0==n?this.onesFeminine:this.ones,e.push(u[c])),n>0&&e.push(this.pluralize(i,this.thousands[n]))}}return e.join(" ")}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==w(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===w(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(e);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=_(n);if(o){var r=_(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="mínus",t.zero="nula",t.ones={1:"jedna",2:"dva",3:"tři",4:"čtyři",5:"pět",6:"šest",7:"sedm",8:"osm",9:"devět"},t.tens={0:"deset",1:"jedenáct",2:"dvanáct",3:"třináct",4:"čtrnáct",5:"patnáct",6:"šestnáct",7:"sedmnáct",8:"osmnáct",9:"devatenáct"},t.twenties={2:"dvacet",3:"třicet",4:"čtyřicet",5:"padesát",6:"šedesát",7:"sedmdesát",8:"osmdesát",9:"devadesát"},t.hundreds={1:"sto",2:"dvě stě",3:"tři sta",4:"čtyři sta",5:"pět set",6:"šest set",7:"sedm set",8:"osm set",9:"devět set"},t.thousands={1:["tisíc","tisíce","tisíc"],2:["milion","miliony","milionů"],3:["miliarda","miliardy","miliard"],4:["bilion","biliony","bilionů"],5:["biliarda","biliardy","biliard"],6:["trilion","triliony","trilionů"],7:["triliarda","triliardy","triliard"],8:["kvadrilion","kvadriliony","kvadrilionů"],9:["kvadriliarda","kvadriliardy","kvadriliard"],10:["quintillion","quintilliony","quintillionů"]},t}return e=u,(r=[{key:"separatorWord",get:function(){return 0===this.wholeNumberInt||1===this.wholeNumberInt?"celá":this.wholeNumberInt>=2&&this.wholeNumberInt<=4?"celé":"celých"},set:function(t){}},{key:"pluralize",value:function(t,e){var r=2;return 1==t?r=0:t%10<5&&t%10>1&&(t%100<10||t%100>20)&&(r=1),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];if(n-=1,0!=i){var u=k(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];s>0&&e.push(this.hundreds[s]),c>1&&e.push(this.twenties[c]),1==c?e.push(this.tens[a]):a>0&&!(n>0&&1==i)&&e.push(this.ones[a]),n>0&&e.push(this.pluralize(i,this.thousands[n]))}}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==E(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===E(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function A(t,e,r){return(e=z(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){var e=function(t){if("object"!==I(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===I(e)?e:String(e)}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=D(n);if(o){var r=D(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===I(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="komma",t.zero="null",t.cards=[{"1000000000000000000000000000":"Quadrilliarde"},{"1000000000000000000000000":"Quadrillion"},{"1000000000000000000000":"Trilliarde"},{1e18:"Trillion"},{1e15:"Billiarde"},{1e12:"Billion"},{1e9:"Milliarde"},{1e6:"Million"},{1e3:"tausend"},{100:"hundert"},{90:"neunzig"},{80:"achtzig"},{70:"siebzig"},{60:"sechzig"},{50:"fünfzig"},{40:"vierzig"},{30:"dreißig"},{20:"zwanzig"},{19:"neunzehn"},{18:"achtzehn"},{17:"siebzehn"},{16:"sechzehn"},{15:"fünfzehn"},{14:"vierzehn"},{13:"dreizehn"},{12:"zwölf"},{11:"elf"},{10:"zehn"},{9:"neun"},{8:"acht"},{7:"sieben"},{6:"sechs"},{5:"fünf"},{4:"vier"},{3:"drei"},{2:"zwei"},{1:"eins"},{0:"null"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);if(1==o){if(100==i||1e3==i)return A({},"ein".concat(n),i);if(i<1e6)return A({},n,i);r="eine"}var u=0;if(i>o)i>=1e6&&(o>1&&("e"==n[n.length-1]?n+="n":n+="en"),r+=" "),u=o*i;else{if(i<10&&o>10&&o<100){1==i&&(n="ein");var a=n;n=r,r="".concat(a,"und")}else o>=1e6&&(r+=" ");u=o+i}return A({},"".concat(r).concat(n),u)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,z(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function B(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t){var e=function(t){if("object"!==L(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===L(e)?e:String(e)}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=$(n);if(o){var r=$(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="komma",t.zero="nul",t.ordFlag=!1,t.cards=[{"1000000000000000000000000000":"quadrillarder"},{"1000000000000000000000000":"quadrillioner"},{"1000000000000000000000":"trillarder"},{1e18:"trillioner"},{1e15:"billarder"},{1e12:"billioner"},{1e9:"millarder"},{1e6:"millioner"},{1e3:"tusind"},{100:"hundrede"},{90:"halvfems"},{80:"firs"},{70:"halvfjerds"},{60:"treds"},{50:"halvtreds"},{40:"fyrre"},{30:"tredive"},{20:"tyve"},{19:"nitten"},{18:"atten"},{17:"sytten"},{16:"seksten"},{15:"femten"},{14:"fjorten"},{13:"tretten"},{12:"tolv"},{11:"elleve"},{10:"ti"},{9:"ni"},{8:"otte"},{7:"syv"},{6:"seks"},{5:"fem"},{4:"fire"},{3:"tre"},{2:"to"},{1:"et"},{0:"nul"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]),u=1;if(100!=i&&1e3!=i||(e=B({},"et".concat(n),i)),1==o){if(i<1e6||this.ordFlag)return e;r="en"}if(i>o)i>=1e6&&(r+=" "),u=o*i;else{if(o>=100&&o<1e3?r+=" og ":o>=1e3&&o<=1e5&&(r+="e og "),i<10&&10<o&&o<100){1==i&&(n="en");var a=n;n=r,r=a+"og"}else o>=1e6&&(r+=" ");u=o+i}return B({},"".concat(r+n),u)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function G(t,e,r){return(e=V(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V(t){var e=function(t){if("object"!==U(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===U(e)?e:String(e)}function H(t,e){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},H(t,e)}function J(t){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(t)}var X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&H(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=J(n);if(o){var r=J(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="point",t.zero="zero",t.cards=[{"1000000000000000000000000000":"octillion"},{"1000000000000000000000000":"septillion"},{"1000000000000000000000":"sextillion"},{1e18:"quintillion"},{1e15:"quadrillion"},{1e12:"trillion"},{1e9:"billion"},{1e6:"million"},{1e3:"thousand"},{100:"hundred"},{90:"ninety"},{80:"eighty"},{70:"seventy"},{60:"sixty"},{50:"fifty"},{40:"forty"},{30:"thirty"},{20:"twenty"},{19:"nineteen"},{18:"eighteen"},{17:"seventeen"},{16:"sixteen"},{15:"fifteen"},{14:"fourteen"},{13:"thirteen"},{12:"twelve"},{11:"eleven"},{10:"ten"},{9:"nine"},{8:"eight"},{7:"seven"},{6:"six"},{5:"five"},{4:"four"},{3:"three"},{2:"two"},{1:"one"},{0:"zero"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=parseInt(Object.values(t)[0]),o=Object.keys(e)[0],i=parseInt(Object.values(e)[0]);return 1==n&&i<100?G({},o,i):100>n&&n>i?G({},"".concat(r,"-").concat(o),n+i):n>=100&&100>i?G({},"".concat(r," and ").concat(o),n+i):G({},"".concat(r," ").concat(o),i>n?n*i:n+i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,V(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function K(t){return(new X).floatToCardinal(t)}function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function Z(t,e,r){return(e=Q(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t){var e=function(t){if("object"!==Y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(e)?e:String(e)}function tt(t,e){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tt(t,e)}function et(t){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},et(t)}var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tt(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=et(n);if(o){var r=et(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).genderStem="o",t.negativeWord="menos",t.separatorWord="punto",t.zero="cero",t.cards=[{"1000000000000000000000000":"cuatrillón"},{1e18:"trillón"},{1e12:"billón"},{1e6:"millón"},{1e3:"mil"},{100:"cien"},{90:"noventa"},{80:"ochenta"},{70:"setenta"},{60:"sesenta"},{50:"cincuenta"},{40:"cuarenta"},{30:"treinta"},{29:"veintinueve"},{28:"veintiocho"},{27:"veintisiete"},{26:"veintiséis"},{25:"veinticinco"},{24:"veinticuatro"},{23:"veintitrés"},{22:"veintidós"},{21:"veintiuno"},{20:"veinte"},{19:"diecinueve"},{18:"dieciocho"},{17:"diecisiete"},{16:"dieciseis"},{15:"quince"},{14:"catorce"},{13:"trece"},{12:"doce"},{11:"once"},{10:"diez"},{9:"nueve"},{8:"ocho"},{7:"siete"},{6:"seis"},{5:"cinco"},{4:"cuatro"},{3:"tres"},{2:"dos"},{1:"uno"},{0:"cero"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);if(1==o){if(i<1e6)return Z({},n,i);r="un"}else 100==o&&i%1e3!=0&&(r+="t"+this.genderStem);return i<o?Z({},o<100?"".concat(r," y ").concat(n):"".concat(r," ").concat(n),o+i):(i%1e6==0&&o>1&&(n=n.slice(0,-3)+"lones"),100==i?(5==o?(r="quinien",n=""):7==o?r="sete":9==o&&(r="nove"),n+="t"+this.genderStem+"s"):n=" "+n,Z({},"".concat(r).concat(n),o*i))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Q(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function nt(t){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},it(t)}var ut=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=it(n);if(o){var r=it(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="منفى",t.separatorWord="ممیّز",t.zero="صفر",t.namedNumbers={0:"صفر",1:"یک",2:"دو",3:"سه",4:"چهار",5:"پنج",6:"شش",7:"هفت",8:"هشت",9:"نه",10:"ده",11:"یازده",12:"دوازده",13:"سیزده",14:"چهارده",15:"پانزده",16:"شانزده",17:"هفده",18:"هجده",19:"نوزده",20:"بیست",30:"سی",40:"چهل",50:"پنجاه",60:"شصت",70:"هفتاد",80:"هشتاد",90:"نود",100:"صد",200:"دویست",300:"سيصد",400:"چهار صد",500:"پانصد",600:"ششصد",700:"هفتصد",800:"هشتصد",900:"نهصد",1e3:"هزار",1e6:"میلیون"},t}return e=u,(r=[{key:"toCardinal",value:function(t){if(this.namedNumbers[t])return this.namedNumbers[t];if(t>20&&t<100){var e=t%10,r=t-e;return"".concat(this.namedNumbers[r]," و ").concat(this.namedNumbers[e])}if(t>100&&t<1e3){var n=100*parseInt(t/100),o=this.toCardinal(t-n);return"".concat(this.namedNumbers[n]," و ").concat(o)}if(t>1e3&&t<1e6){var i=parseInt(t/1e3),u=(1===i?"":this.toCardinal(i))+" "+this.namedNumbers[1e3],a=t-1e3*i,c=0===a?"":" "+this.toCardinal(a);return"".concat(u).concat(c)}if(t>1e6){var s=parseInt(t/1e6),l=this.toCardinal(s)+" "+this.namedNumbers[1e6],f=t-1e6*s,p=0===f?"":" و "+this.toCardinal(f);return"".concat(l).concat(p)}}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==nt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===nt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(e);function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}function ct(t,e,r){return(e=st(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function st(t){var e=function(t){if("object"!==at(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===at(e)?e:String(e)}function lt(t,e){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lt(t,e)}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}var pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lt(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=ft(n);if(o){var r=ft(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===at(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="moins",t.separatorWord="virgule",t.zero="zéro",t.cards=[{"1000000000000000000000000000":"quadrilliard"},{"1000000000000000000000000":"quadrillion"},{"1000000000000000000000":"trilliard"},{1e18:"trillion"},{1e15:"billiard"},{1e12:"billion"},{1e9:"milliard"},{1e6:"million"},{1e3:"mille"},{100:"cent"},{80:"quatre-vingts"},{60:"soixante"},{50:"cinquante"},{40:"quarante"},{30:"trente"},{20:"vingt"},{19:"dix-neuf"},{18:"dix-huit"},{17:"dix-sept"},{16:"seize"},{15:"quinze"},{14:"quatorze"},{13:"treize"},{12:"douze"},{11:"onze"},{10:"dix"},{9:"neuf"},{8:"huit"},{7:"sept"},{6:"six"},{5:"cinq"},{4:"quatre"},{3:"trois"},{2:"deux"},{1:"un"},{0:"zéro"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);if(1==o){if(i<1e6)return ct({},n,i)}else((o-80)%100==0||o%100==0&&o<1e3)&&i<1e6&&"s"==r[r.length-1]&&(r=r.slice(0,-1)),o<1e3&&1e3!=i&&"s"!=n[n.length-1]&&i%100==0&&(n+="s");return i<o&&o<100?ct({},i%10==1&&80!=o?"".concat(r," et ").concat(n):"".concat(r,"-").concat(n),o+i):ct({},"".concat(r," ").concat(n),i>o?o*i:o+i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,st(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function yt(t){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(t)}function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}var mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vt(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=bt(n);if(o){var r=bt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===yt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="מינוס",t.separatorWord,t.zero="אפס",t.and="ו",t.ones={1:"אחת",2:"שתים",3:"שלש",4:"ארבע",5:"חמש",6:"שש",7:"שבע",8:"שמונה",9:"תשע"},t.tens={0:"עשר",1:"אחת עשרה",2:"שתים עשרה",3:"שלש עשרה",4:"ארבע עשרה",5:"חמש עשרה",6:"שש עשרה",7:"שבע עשרה",8:"שמונה עשרה",9:"תשע עשרה"},t.twenties={2:"עשרים",3:"שלשים",4:"ארבעים",5:"חמישים",6:"ששים",7:"שבעים",8:"שמונים",9:"תשעים"},t.hundreds={1:"מאה",2:"מאתיים",3:"מאות"},t.thousands={1:"אלף",2:"אלפיים",3:"שלשת אלפים",4:"ארבעת אלפים",5:"חמשת אלפים",6:"ששת אלפים",7:"שבעת אלפים",8:"שמונת אלפים",9:"תשעת אלפים"},t}return e=u,(r=[{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];if(n-=1,0!=i){var u=dt(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];n>0?e.push(this.thousands[a]):(s>0&&(s<=2?e.push(this.hundreds[s]):e.push(this.ones[s]+" "+this.hundreds[3])),c>1&&e.push(this.twenties[c]),1==c?e.push(this.tens[a]):a>0&&!(n>0&&1==i)&&e.push(this.ones[a]),n>0&&e.push(this.thousands[n]))}}return e.length>1&&(e[e.length-1]=this.and+e[e.length-1]),e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==yt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===yt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function wt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ot(t,e){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ot(t,e)}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}var xt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ot(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=St(n);if(o){var r=St(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="zarez",t.zero="nula",t.ones={1:["jedan","jedna"],2:["dva","dvije"],3:["tri","tri"],4:["četiri","četiri"],5:["pet","pet"],6:["šest","šest"],7:["sedam","sedam"],8:["osam","osam"],9:["devet","devet"]},t.tens={0:"deset",1:"jedanaest",2:"dvanaest",3:"trinaest",4:"četrnaest",5:"petnaest",6:"šesnaest",7:"sedamnaest",8:"osamnaest",9:"devetnaest"},t.twenties={2:"dvadeset",3:"trideset",4:"četrdeset",5:"pedeset",6:"šezdeset",7:"sedamdeset",8:"osamdeset",9:"devedeset"},t.hundreds={1:"sto",2:"dvjesto",3:"tristo",4:"četiristo",5:"petsto",6:"šesto",7:"sedamsto",8:"osamsto",9:"devetsto"},t.SCALE={0:["","","",!1],1:["tisuća","tisuće","tisuća",!0],2:["milijun","milijuna","milijuna",!1],3:["milijarda","milijarde","milijarda",!1],4:["bilijun","bilijuna","bilijuna",!1],5:["bilijarda","bilijarde","bilijarda",!1],6:["trilijun","trilijuna","trilijuna",!1],7:["trilijarda","trilijarde","trilijarda",!1],8:["kvadrilijun","kvadrilijuna","kvadrilijuna",!1],9:["kvadrilijarda","kvadrilijarde","kvadrilijarda",!1],10:["kvintilijun","kvintilijuna","kvintilijuna",!1]},t.feminine=!1,t}return e=u,(r=[{key:"pluralize",value:function(t,e){var r=2;return(t%100<10||t%100>20)&&(t%10==1?r=0:t%10>1&&t%10<5&&(r=1)),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];n-=1;var u=wt(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];if(s>0&&e.push(this.hundreds[s]),c>1&&e.push(this.twenties[c]),1==c)e.push(this.tens[a]);else if(a>0){var l=this.feminine||this.SCALE[n][3]?1:0;e.push(this.ones[a][l])}n>0&&0!=i&&e.push(this.pluralize(i,this.SCALE[n]))}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==gt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===gt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Et(t,e){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Et(t,e)}function kt(t){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kt(t)}var Ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=kt(n);if(o){var r=kt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="mínusz",t.separatorWord="egész",t.cards=[{"1000000000000000000000000000":"quadrilliárd"},{"1000000000000000000000000":"quadrillió"},{"1000000000000000000000":"trilliárd"},{1e18:"trillió"},{1e15:"billiárd"},{1e12:"billió"},{1e9:"milliárd"},{1e6:"millió"},{1e3:"ezer"},{100:"száz"},{90:"kilencven"},{80:"nyolcvan"},{70:"hetven"},{60:"hatvan"},{50:"ötven"},{40:"negyven"},{30:"harminc"},{29:"huszonkilenc"},{28:"huszonnyolc"},{27:"huszonhét"},{26:"huszonhat"},{25:"huszonöt"},{24:"huszonnégy"},{23:"huszonhárom"},{22:"huszonkettő"},{21:"huszonegy"},{20:"húsz"},{19:"tizenkilenc"},{18:"tizennyolc"},{17:"tizenhét"},{16:"tizenhat"},{15:"tizenöt"},{14:"tizennégy"},{13:"tizenhárom"},{12:"tizenkettő"},{11:"tizenegy"},{10:"tíz"},{9:"kilenc"},{8:"nyolc"},{7:"hét"},{6:"hat"},{5:"öt"},{4:"négy"},{3:"három"},{2:"kettő"},{1:"egy"},{0:"nulla"}],t.zero="nulla",t}return e=u,r=[{key:"tensToCardinal",value:function(t){if(this.getValueFromCards(t))return this.getValueFromCards(t);var e=Math.floor(t/10),r=t%10;return this.getValueFromCards(10*e)+this.toCardinal(r)}},{key:"hundredsToCardinal",value:function(t){var e=Math.floor(t/100),r="száz";return 1!=e&&(r=this.toCardinal(e,"")+r),r+this.toCardinal(t%100,"")}},{key:"thousandsToCardinal",value:function(t){var e=Math.floor(t/1e3),r="ezer";1!=e&&(r=this.toCardinal(e,"")+r);var n=this.toCardinal(t%1e3,"");return r+(t<=2e3||""===n?"":"-")+n}},{key:"bigNumberToCardinal",value:function(t){var e=String(t).length,r=e%3!=0?e:e-2,n=Math.pow(10,3*Math.floor(r/3)),o=this.toCardinal(Math.floor(t/n),""),i=this.toCardinal(t%n,""),u=""!==i?"-"+i:"";return o+this.getValueFromCards(n)+u}},{key:"toCardinal",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.zero;return 0==t?e:""==e&&2==t?"két":t<30?this.getValueFromCards(t):t<100?this.tensToCardinal(t):t<1e3?this.hundredsToCardinal(t):t<1e6?this.thousandsToCardinal(t):this.bigNumberToCardinal(t)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==Pt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Pt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function _t(t,e){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_t(t,e)}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var It=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_t(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Rt(n);if(o){var r=Rt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="min",t.separatorWord="koma",t.zero="nol",t.base={0:[],1:["satu"],2:["dua"],3:["tiga"],4:["empat"],5:["lima"],6:["enam"],7:["tujuh"],8:["delapan"],9:["sembilan"]},t.thousands={3:"ribu",6:"juta",9:"miliar",12:"triliun",15:"kuadriliun",18:"kuantiliun",21:"sekstiliun",24:"septiliun",27:"oktiliun",30:"noniliun",33:"desiliun"},t}return e=u,(r=[{key:"splitBy3",value:function(t){var e,r=[],n=String(t),o=n.length;if(o<3)r.push([n]);else{var i=o%3;i>0&&(e=[n.slice(0,i)],r.push(e));for(var u=i;u<o;u+=3){var a=[n.slice(u,u+3)];r.push(a)}}return r}},{key:"spell",value:function(t){var e,r=[],n=t[0];e=1===n[0].length?"0"===n[0]?["nol"]:this.base[parseInt(n[0])]:2===n[0].length?this.getTens(n[0]):this.getHundreds(n[0][0]).concat(this.getTens(n[0].slice(1,3))),r=r.concat([[n[0],e]]);for(var o=1;o<t.length;o++){var i=t[o];e=this.getHundreds(i[0][0]).concat(this.getTens(i[0].slice(1,3))),i=i.concat([e]),r=r.concat([i])}return r}},{key:"getHundreds",value:function(t){return"1"===t?["seratus"]:"0"===t?[]:this.base[parseInt(t)].concat(["ratus"])}},{key:"getTens",value:function(t){return"1"===t[0]?"0"===t[1]?["sepuluh"]:"1"===t[1]?["sebelas"]:this.base[parseInt(t[1])].concat(["belas"]):"0"===t[0]?this.base[parseInt(t[1])]:this.base[parseInt(t[0])].concat(["puluh"]).concat([this.base[parseInt(t[1])]])}},{key:"join",value:function(t){var e=[],r=t.length-1,n=[t[0]],o=0;1===r&&"1"===n[0][0]&&(e.push("seribu"),o=1);for(var i=o;i<r+1;i++)if(e=e.concat(t[i][1]),t[i][1].length){if(i===r)break;e=e.concat([this.thousands[3*(r-i)]])}return e.join(" ")}},{key:"toCardinal",value:function(t){return this.join(this.spell(this.splitBy3(t))).trim()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==Tt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Tt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(e);function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ft(t,e){return Ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ft(t,e)}function Dt(t){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dt(t)}r(5306),r(6541),r(189),r(6699),r(2023);var Nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ft(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Dt(n);if(o){var r=Dt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===At(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="meno",t.separatorWord="virgola",t.zero="zero",t.cardinalWords=[t.zero,"uno","due","tre","quattro","cinque","sei","sette","otto","nove","dieci","undici","dodici","tredici","quattordici","quindici","sedici","diciassette","diciotto","diciannove"],t.strTens={2:"venti",3:"trenta",4:"quaranta",6:"sessanta"},t.exponentPrefixes=[t.zero,"m","b","tr","quadr","quint","sest","sett","ott","nov","dec"],t}return e=u,(r=[{key:"accentuate",value:function(t){return t.split(" ").map((function(t){return"tre"==t.slice(-3)&&t.length>3?t.replace(/tré/g,"tre").slice(0,-3)+"tré":t.replace(/tré/g,"tre")})).join(" ")}},{key:"omitIfZero",value:function(t){return t==this.zero?"":t}},{key:"phoneticContraction",value:function(t){return t.replace(/oo/g,"o").replace(/ao/g,"o").replace(/io/g,"o").replace(/au/g,"u").replace(/iu/g,"u")}},{key:"tensToCardinal",value:function(t){var e,r=Math.floor(t/10),n=t%10;e=Object.prototype.hasOwnProperty.call(this.strTens,r)?this.strTens[r]:this.cardinalWords[r].slice(0,-1)+"anta";var o=this.omitIfZero(this.cardinalWords[n]);return this.phoneticContraction(e+o)}},{key:"hundredsToCardinal",value:function(t){var e=Math.floor(t/100),r="cento";1!=e&&(r=this.cardinalWords[e]+r);var n=this.omitIfZero(this.toCardinal(t%100));return this.phoneticContraction(r+n)}},{key:"thousandsToCardinal",value:function(t){var e=Math.floor(t/1e3);return(1==e?"mille":this.toCardinal(e)+"mila")+this.omitIfZero(this.toCardinal(t%1e3))}},{key:"exponentLengthToString",value:function(t){var e=this.exponentPrefixes[Math.floor(t/6)];return t%6==0?e+"ilione":e+"iliardo"}},{key:"bigNumberToCardinal",value:function(t){var e,r,n,o,i,u=Array.from(String(t)),a=u.length%3==0?3:u.length%3,c=u.slice(0,a),s=u.slice(a),l=this.exponentLengthToString(s.length);return"1"==c.toString()?e="un ":(e=this.toCardinal(parseInt(c.join(""))),l=" "+l.slice(0,-1)+"i"),n=new Set(s),o=new Set(["0"]),n.size===o.size&&(i=n,function(t){if(Array.isArray(t))return zt(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zt(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).every((function(t){return o.has(t)}))?r="":(r=this.toCardinal(parseInt(s.join("")))).includes(" e ")?l+=", ":l+=" e ",e+l+r}},{key:"toCardinal",value:function(t){var e;return e=t<20?this.cardinalWords[t]:t<100?this.tensToCardinal(t):t<1e3?this.hundredsToCardinal(t):t<1e6?this.thousandsToCardinal(t):this.bigNumberToCardinal(t),this.accentuate(e)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==At(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===At(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Bt(t,e,r){return(e=Mt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t){var e=function(t){if("object"!==Lt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Lt(e)?e:String(e)}function Wt(t,e){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wt(t,e)}function $t(t){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$t(t)}var qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wt(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=$t(n);if(o){var r=$t(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="마이너스",t.separatorWord="점",t.zero="영",t.cards=[{"10000000000000000000000000000":"양"},{"1000000000000000000000000":"자"},{1e20:"해"},{1e16:"경"},{1e12:"조"},{1e8:"억"},{1e4:"만"},{1e3:"천"},{100:"백"},{10:"십"},{9:"구"},{8:"팔"},{7:"칠"},{6:"육"},{5:"오"},{4:"사"},{3:"삼"},{2:"이"},{1:"일"},{0:"영"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);return 1==o&&i<=1e4?Bt({},n,i):1e4>o&&o>i?Bt({},"".concat(r).concat(n),o+i):o>=1e4&&o>i?Bt({},"".concat(r," ").concat(n),o+i):Bt({},"".concat(r).concat(n),o*i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mt(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function Ut(t){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(t)}function Gt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ht(t,e)}function Jt(t){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jt(t)}var Xt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ht(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Jt(n);if(o){var r=Jt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="kablelis",t.feminine=!1,t.zero="nulis",t.ones={1:"vienas",2:"du",3:"trys",4:"keturi",5:"penki",6:"šeši",7:"septyni",8:"aštuoni",9:"devyni"},t.onesFeminine={1:"viena",2:"dvi",3:"trys",4:"keturios",5:"penkios",6:"šešios",7:"septynios",8:"aštuonios",9:"devynios"},t.tens={0:"dešimt",1:"vienuolika",2:"dvylika",3:"trylika",4:"keturiolika",5:"penkiolika",6:"šešiolika",7:"septyniolika",8:"aštuoniolika",9:"devyniolika"},t.twenties={2:"dvidešimt",3:"trisdešimt",4:"keturiasdešimt",5:"penkiasdešimt",6:"šešiasdešimt",7:"septyniasdešimt",8:"aštuoniasdešimt",9:"devyniasdešimt"},t.hundreds=["šimtas","šimtai"],t.thousands={1:["tūkstantis","tūkstančiai","tūkstančių"],2:["milijonas","milijonai","milijonų"],3:["milijardas","milijardai","milijardų"],4:["trilijonas","trilijonai","trilijonų"],5:["kvadrilijonas","kvadrilijonai","kvadrilijonų"],6:["kvintilijonas","kvintilijonai","kvintilijonų"],7:["sikstilijonas","sikstilijonai","sikstilijonų"],8:["septilijonas","septilijonai","septilijonų"],9:["oktilijonas","oktilijonai","oktilijonų"],10:["naintilijonas","naintilijonai","naintilijonų"]},t}return e=u,(r=[{key:"pluralize",value:function(t,e){var r=1,n=Gt(this.getDigits(t),2),o=n[0];return 1==n[1]||0==o||0==t?r=2:1==o&&(r=0),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];if(n-=1,0!=i){var u=Gt(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];s>0&&(e.push(this.ones[s]),s>1?e.push(this.hundreds[1]):e.push(this.hundreds[0])),c>1&&e.push(this.twenties[c]),1==c?e.push(this.tens[a]):a>0&&((1==n||this.feminine&&0==n)&&t<1e3?e.push(this.onesFeminine[a]):e.push(this.ones[a])),n>0&&e.push(this.pluralize(i,this.thousands[n]))}}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==Ut(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Ut(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Yt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qt(t,e){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qt(t,e)}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},te(t)}var ee=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qt(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=te(n);if(o){var r=te(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="mīnus",t.separatorWord="komats",t.zero="nulle",t.ones={1:"viens",2:"divi",3:"trīs",4:"četri",5:"pieci",6:"seši",7:"septiņi",8:"astoņi",9:"deviņi"},t.tens={0:"desmit",1:"vienpadsmit",2:"divpadsmit",3:"trīspadsmit",4:"četrpadsmit",5:"piecpadsmit",6:"sešpadsmit",7:"septiņpadsmit",8:"astoņpadsmit",9:"deviņpadsmit"},t.twenties={2:"divdesmit",3:"trīsdesmit",4:"četrdesmit",5:"piecdesmit",6:"sešdesmit",7:"septiņdesmit",8:"astoņdesmit",9:"deviņdesmit"},t.hundreds=["simts","simti","simtu"],t.thousands={1:["tūkstotis","tūkstoši","tūkstošu"],2:["miljons","miljoni","miljonu"],3:["miljards","miljardi","miljardu"],4:["triljons","triljoni","triljonu"],5:["kvadriljons","kvadriljoni","kvadriljonu"],6:["kvintiljons","kvintiljoni","kvintiljonu"],7:["sikstiljons","sikstiljoni","sikstiljonu"],8:["septiljons","septiljoni","septiljonu"],9:["oktiljons","oktiljoni","oktiljonu"],10:["nontiljons","nontiljoni","nontiljonu"]},t}return e=u,(r=[{key:"pluralize",value:function(t,e){var r=2;return 0!=t&&(r=t%10==1&&t%100!=11?0:1),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];if(n-=1,0!=i){var u=Yt(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];s>0&&(1==s&&0==c&&a>0?e.push(this.hundreds[2]):s>1?(e.push(this.ones[s]),e.push(this.hundreds[1])):e.push(this.hundreds[0])),c>1&&e.push(this.twenties[c]),1==c?e.push(this.tens[a]):a>0&&!(n>0&&1==i)&&e.push(this.ones[a]),n>0&&e.push(this.pluralize(i,this.thousands[n]))}}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==Kt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Kt(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function ne(t,e,r){return(e=oe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oe(t){var e=function(t){if("object"!==re(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===re(e)?e:String(e)}function ie(){return ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ae(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},ie.apply(this,arguments)}function ue(t,e){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ue(t,e)}function ae(t){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ae(t)}r(9601),r(7852),r(4819),r(5003);var ce=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ue(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=ae(n);if(o){var r=ae(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===re(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this)).negativeWord="min",e.separatorWord="komma",e.zero="nul",e.options=Object.assign({includeOptionalAnd:!1,noHundredPairs:!1},t),e.cards=[{"1000000000000000000000000000":"quadriljard"},{"1000000000000000000000000":"quadriljoen"},{"1000000000000000000000":"triljard"},{1e18:"triljoen"},{1e15:"biljard"},{1e12:"biljoen"},{1e9:"miljard"},{1e6:"miljoen"},{1e3:"duizend"},{100:"honderd"},{90:"negentig"},{80:"tachtig"},{70:"zeventig"},{60:"zestig"},{50:"vijftig"},{40:"veertig"},{30:"dertig"},{20:"twintig"},{19:"negentien"},{18:"achttien"},{17:"zeventien"},{16:"zestien"},{15:"vijftien"},{14:"veertien"},{13:"dertien"},{12:"twaalf"},{11:"elf"},{10:"tien"},{9:"negen"},{8:"acht"},{7:"zeven"},{6:"zes"},{5:"vijf"},{4:"vier"},{3:"drie"},{2:"twee"},{1:"een"},{0:"nul"}],e}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);if(1==o){if(i<1e6)return ne({},n,i);r="een"}var u=0;if(i>o)i>=1e6?r+=" ":i>100&&(n+=" "),u=o*i;else{if(i<10&&o>10&&o<100){var a=n;n=r;var c=a.endsWith("e")?"ën":"en";r="".concat(a).concat(c)}else i<13&&o<1e3&&this.options.includeOptionalAnd?r="".concat(r,"en"):i<13&&o>=1e3&&this.options.includeOptionalAnd?n=" en ".concat(n):(o>=1e6||1e3===o)&&(r+=" ");u=o+i}return ne({},"".concat(r).concat(n),u)}},{key:"toCardinal",value:function(t){if(t>=1100&&t<1e4&&!this.options.noHundredPairs){var e=Math.floor(t/100),r=t%100;if(e%10!=0)return ie(ae(u.prototype),"toCardinal",this).call(this,e)+"honderd"+(r?(this.options.includeOptionalAnd?" en ":" ")+ie(ae(u.prototype),"toCardinal",this).call(this,r):"")}return ie(ae(u.prototype),"toCardinal",this).call(this,t)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oe(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function se(t){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},se(t)}function le(t,e,r){return(e=fe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fe(t){var e=function(t){if("object"!==se(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===se(e)?e:String(e)}function pe(t,e){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pe(t,e)}function ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ye(t)}var de=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pe(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=ye(n);if(o){var r=ye(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===se(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="komma",t.zero="null",t.cards=[{"1000000000000000000000000000000000":"quintillard"},{"1000000000000000000000000000000":"quintillion"},{"1000000000000000000000000000":"quadrillard"},{"1000000000000000000000000":"quadrillion"},{"1000000000000000000000":"trillard"},{1e18:"trillion"},{1e15:"billard"},{1e12:"billion"},{1e9:"millard"},{1e6:"million"},{1e3:"tusen"},{100:"hundre"},{90:"nitti"},{80:"åtti"},{70:"sytti"},{60:"seksti"},{50:"femti"},{40:"førti"},{30:"tretti"},{20:"tjue"},{19:"nitten"},{18:"atten"},{17:"sytten"},{16:"seksten"},{15:"femten"},{14:"fjorten"},{13:"tretten"},{12:"tolv"},{11:"elleve"},{10:"ti"},{9:"ni"},{8:"åtte"},{7:"syv"},{6:"seks"},{5:"fem"},{4:"fire"},{3:"tre"},{2:"to"},{1:"en"},{0:"null"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);return 1==o&&i<100?le({},n,i):o<100&&o>i?le({},"".concat(r,"-").concat(n),o+i):o>=100&&i<100?le({},"".concat(r," og ").concat(n),o+i):i>o?le({},"".concat(r," ").concat(n),o*i):le({},"".concat(r,", ").concat(n),o+i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fe(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return be(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?be(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}var we=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=ge(n);if(o){var r=ge(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===he(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).feminine=!1,t.negativeWord="minus",t.separatorWord="przecinek",t.zero="zero",t.ones={1:"jeden",2:"dwa",3:"trzy",4:"cztery",5:"pięć",6:"sześć",7:"siedem",8:"osiem",9:"dziewięć"},t.tens={0:"dziesięć",1:"jedenaście",2:"dwanaście",3:"trzynaście",4:"czternaście",5:"piętnaście",6:"szesnaście",7:"siedemnaście",8:"osiemnaście",9:"dziewiętnaście"},t.twenties={2:"dwadzieścia",3:"trzydzieści",4:"czterdzieści",5:"pięćdziesiąt",6:"sześćdziesiąt",7:"siedemdziesiąt",8:"osiemdziesiąt",9:"dziewięćdzisiąt"},t.hundreds={1:"sto",2:"dwieście",3:"trzysta",4:"czterysta",5:"pięćset",6:"sześćset",7:"siedemset",8:"osiemset",9:"dziewięćset"},t.thousands={1:["tysiąc","tysiące","tysięcy"],2:["milion","miliony","milionów"],3:["miliard","miliardy","miliardów"],4:["bilion","biliony","bilionów"],5:["biliard","biliardy","biliardów"],6:["trylion","tryliony","trylionów"],7:["tryliard","tryliardy","tryliardów"],8:["kwadrylion","kwadryliony","kwadrylionów"],9:["kwaryliard","kwadryliardy","kwadryliardów"],10:["kwintylion","kwintyliony","kwintylionów"]},t}return e=u,(r=[{key:"pluralize",value:function(t,e){var r=2;return 1==t?r=0:t%10<5&&t%10>1&&(t%100<10||t%100>20)&&(r=1),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];if(n-=1,0!=i){var u=ve(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];s>0&&e.push(this.hundreds[s]),c>1&&e.push(this.twenties[c]),1==c?e.push(this.tens[a]):a>0&&!(n>0&&1==i)&&e.push(this.ones[a]),n>0&&e.push(this.pluralize(i,this.thousands[n]))}}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==he(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===he(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function je(t){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(t)}function Oe(t,e,r){return(e=Se(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Se(t){var e=function(t){if("object"!==je(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===je(e)?e:String(e)}function xe(t,e){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xe(t,e)}function Pe(t){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pe(t)}r(4723),r(4603),r(8450),r(8386);var Ee=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xe(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Pe(n);if(o){var r=Pe(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="menos",t.separatorWord="vírgula",t.zero="zero",t.cards=[{"1000000000000000000000000":"quatrilião"},{1e18:"trilião"},{1e12:"bilião"},{1e6:"milião"},{1e3:"mil"},{100:"cem"},{90:"noventa"},{80:"oitenta"},{70:"setenta"},{60:"sessenta"},{50:"cinquenta"},{40:"quarenta"},{30:"trinta"},{20:"vinte"},{19:"dezanove"},{18:"dezoito"},{17:"dezassete"},{16:"dezasseis"},{15:"quinze"},{14:"catorze"},{13:"treze"},{12:"doze"},{11:"onze"},{10:"dez"},{9:"nove"},{8:"oito"},{7:"sete"},{6:"seis"},{5:"cinco"},{4:"quatro"},{3:"três"},{2:"dois"},{1:"um"},{0:"zero"}],t.hundreds={1:"cento",2:"duzentos",3:"trezentos",4:"quatrocentos",5:"quinhentos",6:"seiscentos",7:"setecentos",8:"oitocentos",9:"novecentos"},t}return e=u,(r=[{key:"postClean",value:function(t){for(var e=["mil","milhão","milhões","mil milhões","bilião","biliões","mil biliões"],r=0;r<e.length;r++){var n=e[r];t.match(new RegExp(".*".concat(n," e \\w*entos? (?=.*e)")))&&(t=t.replace(new RegExp("".concat(n," e"),"g"),"".concat(n)))}return t}},{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);if(1==o){if(i<1e6)return Oe({},n,i);r="um"}else 100==o&&i%1e3!=0&&(r="cento");return i<o?Oe({},"".concat(r," e ").concat(n),o+i):(i%1e9==0&&o>1?n=n.slice(0,-4)+"liões":i%1e6==0&&o>1&&(n=n.slice(0,-4)+"lhões"),"milião"==n&&(n="milhão"),100==i?(r=this.hundreds[o],n=""):n=" "+n,Oe({},"".concat(r).concat(n),o*i))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Se(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function ke(t){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke(t)}function Ce(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Te(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Te(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(t,e){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_e(t,e)}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}var Ie=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Re(n);if(o){var r=Re(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ke(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="minus",t.separatorWord="zapeta",t.zero="nula",t.ones={1:["jedan","jedna"],2:["dva","dve"],3:["tri","tri"],4:["četiri","četiri"],5:["pet","pet"],6:["šest","šest"],7:["sedam","sedam"],8:["osam","osam"],9:["devet","devet"]},t.tens={0:"deset",1:"jedanaest",2:"dvanaest",3:"trinaest",4:"četrnaest",5:"petnaest",6:"šesnaest",7:"sedamnaest",8:"osamnaest",9:"devetnaest"},t.twenties={2:"dvadeset",3:"trideset",4:"četrdeset",5:"pedeset",6:"šezdeset",7:"sedamdeset",8:"osamdeset",9:"devedeset"},t.hundreds={1:"sto",2:"dvesta",3:"trista",4:"četiristo",5:"petsto",6:"šesto",7:"sedamsto",8:"osamsto",9:"devetsto"},t.SCALE={0:["","","",!1],1:["hiljada","hiljade","hiljada",!0],2:["milion","miliona","miliona",!1],3:["milijarda","milijarde","milijarda",!1],4:["bilion","biliona","biliona",!1],5:["bilijarda","bilijarde","bilijarda",!1],6:["trilion","triliona","triliona",!1],7:["trilijarda","trilijarde","trilijarda",!1],8:["kvadrilion","kvadriliona","kvadriliona",!1],9:["kvadrilijarda","kvadrilijarde","kvadrilijarda",!1],10:["kvintilion","kvintiliona","kvintiliona",!1]},t.feminine=!1,t}return e=u,(r=[{key:"pluralize",value:function(t,e){var r=2;return(t%100<10||t%100>20)&&(t%10==1?r=0:t%10>1&&t%10<5&&(r=1)),e[r]}},{key:"toCardinal",value:function(t){if(0==parseInt(t))return this.zero;for(var e=[],r=this.splitByX(JSON.stringify(t),3),n=r.length,o=0;o<r.length;o++){var i=r[o];n-=1;var u=Ce(this.getDigits(i),3),a=u[0],c=u[1],s=u[2];if(s>0&&e.push(this.hundreds[s]),c>1&&e.push(this.twenties[c]),1==c)e.push(this.tens[a]);else if(a>0){var l=this.feminine||this.SCALE[n][3]?1:0;e.push(this.ones[a][l])}n>0&&0!=i&&e.push(this.pluralize(i,this.SCALE[n]))}return e.join(" ")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==ke(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===ke(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(P);function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function ze(t,e,r){return(e=Fe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fe(t){var e=function(t){if("object"!==Ae(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ae(e)?e:String(e)}function De(t,e){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},De(t,e)}function Ne(t){return Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ne(t)}var Le=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&De(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Ne(n);if(o){var r=Ne(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this)).options=Object.assign({dropSpaces:!1},t),e.negativeWord="eksi",e.separatorWord="virgül",e.zero="sıfır",e.spaceSeparator=e.options.dropSpaces?"":" ",e.cards=[{1e18:"kentilyon"},{1e15:"katrilyon"},{1e12:"trilyon"},{1e9:"milyar"},{1e6:"milyon"},{1e3:"bin"},{100:"yüz"},{90:"doksan"},{80:"seksen"},{70:"yetmiş"},{60:"altmış"},{50:"elli"},{40:"kırk"},{30:"otuz"},{20:"yirmi"},{10:"on"},{9:"dokuz"},{8:"sekiz"},{7:"yedi"},{6:"altı"},{5:"beş"},{4:"dört"},{3:"üç"},{2:"iki"},{1:"bir"},{0:"sıfır"}],e}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=Object.keys(e)[0],o=parseInt(Object.values(t)[0]),i=parseInt(Object.values(e)[0]);return 1==o&&(i<=100||1e3==i)?ze({},n,i):ze({},"".concat(r).concat(this.spaceSeparator).concat(n),i>o?o*i:o+i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fe(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y);function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Me(t,e)}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},We(t)}var $e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Me(t,e)}(i,t);var e,r,n,o=(r=i,n=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(t){return!1}}(),function(){var t,e=We(r);if(n){var o=We(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).negativeWord="мiнус",t.separatorWord="кома",t.zero="нуль",t.feminine=!1,t.ones={1:"один",2:"два",3:"три",4:"чотири",5:"п'ять",6:"шiсть",7:"сiм",8:"вiсiм",9:"дев'ять"},t.onesFeminine={1:"одна",2:"двi",3:"три",4:"чотири",5:"п'ять",6:"шiсть",7:"сiм",8:"вiсiм",9:"дев'ять"},t.tens={0:"десять",1:"одинадцять",2:"дванадцять",3:"тринадцять",4:"чотирнадцять",5:"п'ятнадцять",6:"шiстнадцять",7:"сiмнадцять",8:"вiсiмнадцять",9:"дев'ятнадцять"},t.twenties={2:"двадцять",3:"тридцять",4:"сорок",5:"п'ятдесят",6:"шiстдесят",7:"сiмдесят",8:"вiсiмдесят",9:"дев'яносто"},t.hundreds={1:"сто",2:"двiстi",3:"триста",4:"чотириста",5:"п'ятсот",6:"шiстсот",7:"сiмсот",8:"вiсiмсот",9:"дев'ятсот"},t.thousands={1:["тисяча","тисячi","тисяч"],2:["мiльйон","мiльйони","мiльйонiв"],3:["мiльярд","мiльярди","мiльярдiв"],4:["трильйон","трильйони","трильйонiв"],5:["квадрильйон","квадрильйони","квадрильйонiв"],6:["квiнтильйон","квiнтильйони","квiнтильйонiв"],7:["секстильйон","секстильйони","секстильйонiв"],8:["септильйон","септильйони","септильйонiв"],9:["октильйон","октильйони","октильйонiв"],10:["нонiльйон","нонiльйони","нонiльйонiв"]},t}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(P);function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}function Ge(t){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ge(t)}var Ve=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ue(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Ge(n);if(o){var r=Ge(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="âm",t.separatorWord="phẩy",t.zero="không",t.base={0:"không",1:"một",2:"hai",3:"ba",4:"bốn",5:"năm",6:"sáu",7:"bảy",8:"tám",9:"chín",10:"mười",11:"mười một",12:"mười hai",13:"mười ba",14:"mười bốn",15:"mười lăm",16:"mười sáu",17:"mười bảy",18:"mười tám",19:"mười chín"},t.tens={20:"hai mươi",30:"ba mươi",40:"bốn mươi",50:"năm mươi",60:"sáu mươi",70:"bảy mươi",80:"tám mươi",90:"chín mươi"},t.thousands={1:"nghìn",2:"triệu",3:"tỷ",4:"nghìn tỷ",5:"trăm nghìn tỷ",6:"Quintillion",7:"Sextillion",8:"Septillion",9:"Octillion",10:"Nonillion",11:"Decillion",12:"Undecillion",13:"Duodecillion",14:"Tredecillion",15:"Quattuordecillion",16:"Sexdecillion",17:"Septendecillion",18:"Octodecillion",19:"Novemdecillion",20:"Vigintillion"},t}return e=u,(r=[{key:"convertLess100",value:function(t){var e=t%10,r=t-e,n=this.tens[r];if(0===e)return n;var o=this.base[e];return 1===e&&(o="mốt"),5===e&&(o="lăm"),n+" "+o}},{key:"convertLess1000",value:function(t){var e=[],r=t%100,n=t-r;return n>0&&e.push(this.base[n/100],"trăm"),0<r&&r<10&&(e.length>0&&e.push("lẻ"),5===r?e.push("năm"):e.push(this.base[r])),r>=10&&e.push(this.toCardinal(r)),e.join(" ")}},{key:"convertMore1000",value:function(t){for(var e=[],r=Math.floor(t/1e3),n=1;r>=1e3;)r=Math.floor(r/1e3),n+=1;var o=t-r*Math.pow(1e3,n);return e.push(this.toCardinal(r),this.thousands[n]),o>0&&(o<=99&&e.push("lẻ"),e.push(this.toCardinal(o))),e.join(" ")}},{key:"toCardinal",value:function(t){return t<20?this.base[t]:t<100?this.convertLess100(t):t<1e3?this.convertLess1000(t):this.convertMore1000(t)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=function(t){if("object"!==qe(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===qe(o)?o:String(o)),n)}var o}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(e);function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function Je(t,e,r){return(e=Xe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xe(t){var e=function(t){if("object"!==He(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===He(e)?e:String(e)}function Ke(t,e){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ke(t,e)}function Ye(t){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(t)}r(7327);var Ze=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(u,t);var e,r,n,o,i=(n=u,o=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(t){return!1}}(),function(){var t,e=Ye(n);if(o){var r=Ye(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===He(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).negativeWord="负",t.separatorWord="点",t.zero="零",t.spaceSeparator="",t.cards=[{1e12:"万"},{1e8:"亿"},{1e4:"万"},{1e3:"仟"},{100:"佰"},{10:"拾"},{9:"玖"},{8:"捌"},{7:"柒"},{6:"陆"},{5:"伍"},{4:"肆"},{3:"叁"},{2:"贰"},{1:"壹"},{0:"零"}],t}return e=u,(r=[{key:"merge",value:function(t,e){var r=Object.keys(t)[0],n=parseInt(Object.values(t)[0]),o=Object.keys(e)[0],i=parseInt(Object.values(e)[0]),u=Je({},"".concat(r).concat(o),n+i);return 1==n&&i<10?u=Je({},o,i):i>n?u=Je({},"".concat(r).concat(o),n*i):this.zeroDigit(n)>this.digit(i)&&(u=Je({},"".concat(r).concat(this.zero).concat(o),n+i)),u}},{key:"toDecimal",value:function(t){var e=this;return Array.from(t).map((function(t){return e.getValueFromCards(t)})).join(this.spaceSeparator)}},{key:"digit",value:function(t){return t.toString().length}},{key:"zeroDigit",value:function(t){return Array.from(t.toString()).filter((function(t){return"0"===t})).length}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xe(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(y),Qe=["en","fr","es","de","pt","it","tr","ru","cz","no","dk","pl","uk","lt","lv","ar","he","ko","nl","sr","fa","zh","hu","id","hr","vi","az"];function tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{lang:"en"},r="EN";if(e&&e.lang){if(-1===Qe.indexOf(e.lang))throw Error("ERROR: Unsupported language. Supported languages are: "+Qe.sort().join(", "));r=e.lang.toUpperCase()}return"EN"===r?K(t):"FR"===r?function(t){return(new pt).floatToCardinal(t)}(t):"ES"===r?function(t){return(new rt).floatToCardinal(t)}(t):"DE"===r?function(t){return(new N).floatToCardinal(t)}(t):"PT"===r?function(t){return(new Ee).floatToCardinal(t)}(t):"ID"===r?function(t){return(new It).floatToCardinal(t)}(t):"IT"===r?function(t){return(new Nt).floatToCardinal(t)}(t):"TR"===r?function(t){return new Le(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).floatToCardinal(t)}(t,e):"RU"===r?function(t){return(new P).floatToCardinal(t)}(t):"CZ"===r?function(t){return(new R).floatToCardinal(t)}(t):"NO"===r?function(t){return(new de).floatToCardinal(t)}(t):"DK"===r?function(t){return(new q).floatToCardinal(t)}(t):"PL"===r?function(t){return(new we).floatToCardinal(t)}(t):"UK"===r?function(t){return(new $e).floatToCardinal(t)}(t):"LT"===r?function(t){return(new Xt).floatToCardinal(t)}(t):"LV"===r?function(t){return(new ee).floatToCardinal(t)}(t):"AR"===r?function(t){return(new a).floatToCardinal(t)}(t):"HE"===r?function(t){return(new mt).floatToCardinal(t)}(t):"HR"===r?function(t){return(new xt).floatToCardinal(t)}(t):"HU"===r?function(t){return(new Ct).floatToCardinal(t)}(t):"KO"===r?function(t){return(new qt).floatToCardinal(t)}(t):"NL"===r?function(t){return new ce(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).floatToCardinal(t)}(t,e):"SR"===r?function(t){return(new Ie).floatToCardinal(t)}(t):"FA"===r?function(t){return(new ut).floatToCardinal(t)}(t):"ZH"===r?function(t){return(new Ze).floatToCardinal(t)}(t):"VI"===r?function(t){return(new Ve).floatToCardinal(t)}(t):"AZ"===r?function(t){return(new g).floatToCardinal(t)}(t):K(t)}})(),n.default})(),t.exports=e()},907:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,c=[],s=!1,l=-1;function f(){s&&a&&(s=!1,a.length?c=a.concat(c):l=-1,c.length&&p())}function p(){if(!s){var t=u(f);s=!0;for(var e=c.length;e;){for(a=c,c=[];++l<e;)a&&a[l].run();l=-1,e=c.length}a=null,s=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new y(t,e)),1!==c.length||s||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},431:t=>{"use strict";t.exports=t=>{const e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}},237:(t,e,r)=>{"use strict";const n=r(599),o=r(133),i=r(168),u=r(996),a=r(546),c=r(990),s=r(25),l=r(926),f=r(64),p=r(95),y=r(530),d=r(545),h=r(717),v=r(911),b=r(721),m=r(673),g=r(328),w=r(894),j=r(361);t.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:u,DefaultFileLoader:a,GitHubFileLoader:c,HTTPFileLoader:s,Writer:l,FileWriter:f,InMemoryWriter:y,ModelWriter:p,Logger:d,TypedStack:h,Label:v,Identifiers:b,ErrorCodes:m,NullUtil:g,MonetaryUtil:w,Warning:j}},833:(t,e,r)=>{var n=r(907);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==n&&"env"in n&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return"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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})(),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=r(736)(e);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},736:(t,e,r)=>{t.exports=function(t){function e(t){let r,o,i,u=null;function a(...t){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";u++;const i=e.formatters[o];if("function"==typeof i){const e=t[u];r=i.call(n,e),t.splice(u,1),u--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{u=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(250),e.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(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},686:()=>{},558:()=>{},330:t=>{"use strict";t.exports=JSON.parse('{"name":"@accordproject/concerto-util","description":"Utilities for Concerto Modeling Language","version":"3.26.0","author":"accordproject.org","browser":"dist/concerto-util.js","browserslist":"> 0.25%, not dead","dependencies":{"@supercharge/promise-pool":"1.7.0","debug":"4.3.7","n2words":"1.13.0","slash":"3.0.0"},"devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.57.1","jsdoc":"4.0.4","mocha":"10.8.2","node-polyfill-webpack-plugin":"4.0.0","nyc":"17.1.0","sinon":"19.0.2","tmp-promise":"3.0.3","typescript":"5.7.2","undici":"7.16.0","webpack":"5.96.1"},"engines":{"node":">=18","npm":">=10"},"homepage":"https://github.com/accordproject/concerto","keywords":["blockchain","hyperledger","solutions"],"license":"Apache-2.0","main":"index.js","nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"scripts":{"build":"npm run build:types","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types","doc":"jsdoc --pedantic --recurse -c jsdoc.json","lint":"eslint .","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","postbuild":"npm run webpack","prepublishOnly":"npm run webpack","pretest":"npm run lint && npm run doc","test":"nyc mocha --require test/setup.js --recursive -t 10000","test:watch":"nyc mocha --require test/setup.js --watch --recursive -t 10000","webpack":"webpack --config webpack.config.js --mode production"},"typings":"types/index.d.ts"}')}},e={},function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}(237);var t,e}));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Concerto Util v3.25.6
2
+ * Concerto Util v3.26.0
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
package/index.js CHANGED
@@ -58,6 +58,9 @@ const ErrorCodes = require('./lib/errorcodes');
58
58
  // NullUtil
59
59
  const NullUtil = require('./lib/null');
60
60
 
61
+ // MonetaryUtil
62
+ const MonetaryUtil = require('./lib/monetary');
63
+
61
64
  // Warning
62
65
  const Warning = require('./lib/warning');
63
66
 
@@ -79,5 +82,6 @@ module.exports = {
79
82
  Identifiers,
80
83
  ErrorCodes,
81
84
  NullUtil,
85
+ MonetaryUtil,
82
86
  Warning
83
- };
87
+ };
@@ -14,6 +14,8 @@
14
14
 
15
15
  'use strict';
16
16
 
17
+ const debug = require('debug')('concerto:HTTPFileLoader');
18
+
17
19
  /**
18
20
  * Loads Files from an HTTP(S) URL using fetch.
19
21
  * @class
@@ -55,7 +57,7 @@ class HTTPFileLoader {
55
57
  };
56
58
  }
57
59
 
58
- console.log(requestUrl);
60
+ debug('loading', requestUrl);
59
61
  const response = await fetch(requestUrl, options);
60
62
  if (!response.ok) {
61
63
  throw new Error(`HTTP request failed with status: ${response.status}`);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+
15
+ 'use strict';
16
+
17
+ const n2words = require('n2words');
18
+
19
+ /**
20
+ * Utilities for monetary and number formatting.
21
+ * @class
22
+ * @memberof module:concerto-util
23
+ */
24
+ class MonetaryUtil {
25
+
26
+ /**
27
+ * Converts a number to its written word representation.
28
+ * @param {number} number - The number to convert (e.g. 100)
29
+ * @param {string} [lang='en'] - The language code (default 'en')
30
+ * @returns {string} The written string (e.g. "one hundred")
31
+ */
32
+ static toWords(number, lang = 'en') {
33
+ return n2words(number, { lang: lang });
34
+ }
35
+ }
36
+
37
+ module.exports = MonetaryUtil;
package/lib/warning.js CHANGED
@@ -25,7 +25,7 @@ let isWarningEmitted = false;
25
25
  * @param {string} detail - detail of the deprecation warning
26
26
  */
27
27
  function printDeprecationWarning(message, type, code, detail) {
28
- // This will get pollyfilled in the webpack.config.js as process.emitWarning is not available in the browser
28
+ // This will get polyfilled in the webpack.config.js as process.emitWarning is not available in the browser
29
29
  const customEmitWarning = process.emitWarning;
30
30
  if (!isWarningEmitted) {
31
31
  isWarningEmitted = true;
package/package.json CHANGED
@@ -1,41 +1,16 @@
1
1
  {
2
2
  "name": "@accordproject/concerto-util",
3
- "version": "3.25.6",
4
3
  "description": "Utilities for Concerto Modeling Language",
5
- "homepage": "https://github.com/accordproject/concerto",
6
- "engines": {
7
- "node": ">=18",
8
- "npm": ">=10"
9
- },
10
- "main": "index.js",
4
+ "version": "3.26.0",
5
+ "author": "accordproject.org",
11
6
  "browser": "dist/concerto-util.js",
12
- "typings": "types/index.d.ts",
13
- "scripts": {
14
- "prepublishOnly": "npm run webpack",
15
- "pretest": "npm run lint && npm run doc",
16
- "lint": "eslint .",
17
- "doc": "jsdoc --pedantic --recurse -c jsdoc.json",
18
- "test": "nyc mocha --require test/setup.js --recursive -t 10000",
19
- "test:watch": "nyc mocha --require test/setup.js --watch --recursive -t 10000",
20
- "mocha": "mocha --recursive -t 10000",
21
- "nyc": "nyc mocha --recursive -t 10000",
22
- "build": "npm run build:types",
23
- "postbuild": "npm run webpack",
24
- "webpack": "webpack --config webpack.config.js --mode production",
25
- "build:types": "tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/accordproject/concerto.git",
30
- "directory": "packages/concerto-util"
7
+ "browserslist": "> 0.25%, not dead",
8
+ "dependencies": {
9
+ "@supercharge/promise-pool": "1.7.0",
10
+ "debug": "4.3.7",
11
+ "n2words": "1.13.0",
12
+ "slash": "3.0.0"
31
13
  },
32
- "keywords": [
33
- "blockchain",
34
- "hyperledger",
35
- "solutions"
36
- ],
37
- "author": "accordproject.org",
38
- "license": "Apache-2.0",
39
14
  "devDependencies": {
40
15
  "chai": "4.3.6",
41
16
  "chai-as-promised": "7.1.1",
@@ -51,12 +26,18 @@
51
26
  "undici": "7.16.0",
52
27
  "webpack": "5.96.1"
53
28
  },
54
- "dependencies": {
55
- "@supercharge/promise-pool": "1.7.0",
56
- "debug": "4.3.7",
57
- "slash": "3.0.0"
29
+ "engines": {
30
+ "node": ">=18",
31
+ "npm": ">=10"
58
32
  },
59
- "browserslist": "> 0.25%, not dead",
33
+ "homepage": "https://github.com/accordproject/concerto",
34
+ "keywords": [
35
+ "blockchain",
36
+ "hyperledger",
37
+ "solutions"
38
+ ],
39
+ "license": "Apache-2.0",
40
+ "main": "index.js",
60
41
  "nyc": {
61
42
  "produce-source-map": "true",
62
43
  "sourceMap": "inline",
@@ -75,5 +56,25 @@
75
56
  "branches": 93,
76
57
  "functions": 98,
77
58
  "lines": 99
78
- }
59
+ },
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/accordproject/concerto.git",
63
+ "directory": "packages/concerto-util"
64
+ },
65
+ "scripts": {
66
+ "build": "npm run build:types",
67
+ "build:types": "tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types",
68
+ "doc": "jsdoc --pedantic --recurse -c jsdoc.json",
69
+ "lint": "eslint .",
70
+ "mocha": "mocha --recursive -t 10000",
71
+ "nyc": "nyc mocha --recursive -t 10000",
72
+ "postbuild": "npm run webpack",
73
+ "prepublishOnly": "npm run webpack",
74
+ "pretest": "npm run lint && npm run doc",
75
+ "test": "nyc mocha --require test/setup.js --recursive -t 10000",
76
+ "test:watch": "nyc mocha --require test/setup.js --watch --recursive -t 10000",
77
+ "webpack": "webpack --config webpack.config.js --mode production"
78
+ },
79
+ "typings": "types/index.d.ts"
79
80
  }
package/types/index.d.ts CHANGED
@@ -15,5 +15,6 @@ import Label = require("./lib/label");
15
15
  import Identifiers = require("./lib/identifiers");
16
16
  import ErrorCodes = require("./lib/errorcodes");
17
17
  import NullUtil = require("./lib/null");
18
+ import MonetaryUtil = require("./lib/monetary");
18
19
  import Warning = require("./lib/warning");
19
- export { BaseException, BaseFileException, FileDownloader, CompositeFileLoader, DefaultFileLoader, GitHubFileLoader, HTTPFileLoader, Writer, FileWriter, InMemoryWriter, ModelWriter, Logger, TypedStack, Label, Identifiers, ErrorCodes, NullUtil, Warning };
20
+ export { BaseException, BaseFileException, FileDownloader, CompositeFileLoader, DefaultFileLoader, GitHubFileLoader, HTTPFileLoader, Writer, FileWriter, InMemoryWriter, ModelWriter, Logger, TypedStack, Label, Identifiers, ErrorCodes, NullUtil, MonetaryUtil, Warning };
@@ -0,0 +1,15 @@
1
+ export = MonetaryUtil;
2
+ /**
3
+ * Utilities for monetary and number formatting.
4
+ * @class
5
+ * @memberof module:concerto-util
6
+ */
7
+ declare class MonetaryUtil {
8
+ /**
9
+ * Converts a number to its written word representation.
10
+ * @param {number} number - The number to convert (e.g. 100)
11
+ * @param {string} [lang='en'] - The language code (default 'en')
12
+ * @returns {string} The written string (e.g. "one hundred")
13
+ */
14
+ static toWords(number: number, lang?: string): string;
15
+ }