Files
appco_dist/.output/public/_nuxt/C3HY3wZp.js
T

182 lines
49 KiB
JavaScript
Raw Normal View History

2025-07-26 22:08:43 +03:30
var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var Te,Ve;function et(){return Ve||(Ve=1,Te={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(n){let t=n%10;return~~(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),Te}/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var Le,qe;function Ze(){if(qe)return Le;qe=1;const n=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function t(w){return w.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function p(w,g,B,_,A,T,X){if(!isNaN(+w))return+w;let P="",D=w.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(D!==w)return-1*p(D,g,B,_,A,T);for(let N=0;N<n.length;N++){let x=n[N];if(P=w.replace(RegExp(`([0-9 ])(${x.key})$`),"$1"),P!==w)return p(P,g,B,_,A,T)*x.factor}if(P=w.replace("%",""),P!==w)return p(P,g,B,_,A,T)/100;let F=parseFloat(w);if(isNaN(F))return;let L=_(F);if(L&&L!=="."&&(P=w.replace(new RegExp(`${t(L)}$`),""),P!==w))return p(P,g,B,_,A,T);let Q={};Object.keys(T).forEach(N=>{Q[T[N]]=N});let te=Object.keys(Q).sort().reverse(),R=te.length;for(let N=0;N<R;N++){let x=te[N],C=Q[x];if(P=w.replace(x,""),P!==w){let I;switch(C){case"thousand":I=Math.pow(10,3);break;case"million":I=Math.pow(10,6);break;case"billion":I=Math.pow(10,9);break;case"trillion":I=Math.pow(10,12);break}return p(P,g,B,_,A,T)*I}}}function d(w,g,B){let _=w.replace(B,"");return _=_.replace(new RegExp(`([0-9])${t(g.thousands)}([0-9])`,"g"),"$1$2"),_=_.replace(g.decimal,"."),_}function v(w,g,B="",_,A,T,X){if(w==="")return;if(w===A)return 0;let P=d(w,g,B);return p(P,g,B,_,A,T)}function y(w,g){if(!(w.indexOf(":")&&g.thousands!==":"))return!1;let _=w.split(":");if(_.length!==3)return!1;let A=+_[0],T=+_[1],X=+_[2];return!isNaN(A)&&!isNaN(T)&&!isNaN(X)}function O(w){let g=w.split(":"),B=+g[0],_=+g[1];return+g[2]+60*_+3600*B}function M(w,g){const B=Re();let _=B.currentDelimiters(),A=B.currentCurrency().symbol,T=B.currentOrdinal(),X=B.getZeroFormat(),P=B.currentAbbreviations(),D;if(typeof w=="string")y(w,_)?D=O(w):D=v(w,_,A,T,X,P);else if(typeof w=="number")D=w;else return;if(D!==void 0)return D}return Le={unformat:M},Le}/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var Ce,Ge;function ke(){if(Ge)return Ce;Ge=1;let n=Ze();const t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,p=["currency","percent","byte","time","ordinal","number"],d=["trillion","billion","million","thousand"],v=["prefix","infix","postfix"],y=["sign","parenthesis"],O={type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},g={output:{type:"string",validValues:p},base:{type:"string",validValues:["decimal","binary","general"],restriction:(D,F)=>F.output==="byte",message:"`base` must be provided only when the output is `byte`",mandatory:D=>D.output==="byte"},characteristic:{type:"number",restriction:D=>D>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:d},average:"boolean",lowPrecision:{type:"boolean",restriction:(D,F)=>F.average===!0,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:v},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:D=>D>=0,message:"value must be positive"},{restriction:(D,F)=>!F.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:D=>D>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:y},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(D,F)=>F.output==="percent",message:"`prefixSymbol` can be provided only when the output is `percent`"}},B={languageTag:{type:"string",mandatory:!0,restriction:D=>D.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:O,spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function _(D,F){let L=A(D),Q=X(F);return L&&Q}function A(D){return n.unformat(D)!==void 0}function T(D,F,L,Q=!1){let te=Object.keys(D).map(R=>{if(!F[R])return console.error(`${L} Invalid key: ${R}`),!1;let N=D[R],x=F[R];if(typeof x=="string"&&(x={type:x}),x.type==="format"){if(!T(N,g,`[Validate ${R}]`,!0))return!1}else if(typeof N!==x.type)return console.error(`${L} ${R} type mismatched: "${x.type}" expected, "${typeof N}" provided`),!1;if(x.restrictions&&x.restrictions.length){let C=x.restrictions.length;for(let I=0;I<C;I++){let{restriction:S,message:W}=x.restrictions[I];if(!S(N,D))return console.error(`${L} ${R} invalid value: ${W}`),!1}}return x.restriction&&!x.restriction(N,D)?(console.error(`${L} ${R} invalid value: ${x.message}`),!1):x.validValues&&x.validValues.indexOf(N)===-1?(console.error(`${L} ${R} invalid value: must be among ${JSON.stringify(x.validValues)}, "${N}" provided`),!1):!(x.children&&!T(N,x.children,`[Validate ${R}]`))});return Q||te.push(...Object.keys(F).map(R=>{let N=F[R];if(typeof N=="string"&&(N={type:N}),N.mandatory){let x=N.mandatory;if(typeof x=="function"&&(x=x(D)),x&&D[R]===void 0)return console.error(`${L} Missing mandatory key "${R}"`),!1}return!0})
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/function tt(n,t){let p=n.match(/^{([^}]*)}/);return p?(t.prefix=p[1],n.slice(p[0].length)):n}function rt(n,t){let p=n.match(/{([^}]*)}$/);return p?(t.postfix=p[1],n.slice(0,-p[0].length)):n}function nt(n,t){if(n.indexOf("$")!==-1){t.output="currency";return}if(n.indexOf("%")!==-1){t.output="percent";return}if(n.indexOf("bd")!==-1){t.output="byte",t.base="general";return}if(n.indexOf("b")!==-1){t.output="byte",t.base="binary";return}if(n.indexOf("d")!==-1){t.output="byte",t.base="decimal";return}if(n.indexOf(":")!==-1){t.output="time";return}n.indexOf("o")!==-1&&(t.output="ordinal")}function it(n,t){n.indexOf(",")!==-1&&(t.thousandSeparated=!0)}function at(n,t){n.indexOf(" ")!==-1&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0))}function lt(n,t){let p=n.match(/[1-9]+[0-9]*/);p&&(t.totalLength=+p[0])}function ot(n,t){let d=n.split(".")[0].match(/0+/);d&&(t.characteristic=d[0].length)}function st(n,t){let p=n.split(".")[1];if(p){let d=p.match(/0+/);d&&(t.mantissa=d[0].length)}}function ut(n,t){const p=n.split(".")[1];p&&(t.trimMantissa=p.indexOf("[")!==-1)}function ft(n,t){n.indexOf("a")!==-1&&(t.average=!0)}function ct(n,t){n.indexOf("K")!==-1?t.forceAverage="thousand":n.indexOf("M")!==-1?t.forceAverage="million":n.indexOf("B")!==-1?t.forceAverage="billion":n.indexOf("T")!==-1&&(t.forceAverage="trillion")}function ht(n,t){n.match(/\[\.]/)?t.optionalMantissa=!0:n.match(/\./)&&(t.optionalMantissa=!1)}function pt(n,t){if(n.indexOf(".")!==-1){let p=n.split(".")[0];t.optionalCharacteristic=p.indexOf("0")===-1}}function gt(n,t){n.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),n.match(/^\+?-/)&&(t.negative="sign")}function dt(n,t){n.match(/^\+/)&&(t.forceSign=!0)}function mt(n,t={}){return typeof n!="string"?n:(n=tt(n,t),n=rt(n,t),nt(n,t),lt(n,t),ot(n,t),pt(n,t),ft(n,t),ct(n,t),st(n,t),ht(n,t),ut(n,t),it(n,t),at(n,t),gt(n,t),dt(n,t),t)}var Ue={parseFormat:mt};/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var Pe,je;function Re(){if(je)return Pe;je=1;const n=et(),t=ke(),p=Ue;let d={},v,y={},O=null,M={};function w(B){v=B}function g(){return y[v]}return d.languages=()=>Object.assign({},y),d.currentLanguage=()=>v,d.currentBytes=()=>g().bytes||{},d.currentCurrency=()=>g().currency,d.currentAbbreviations=()=>g().abbreviations,d.currentDelimiters=()=>g().delimiters,d.currentOrdinal=()=>g().ordinal,d.currentDefaults=()=>Object.assign({},g().defaults,M),d.currentOrdinalDefaultFormat=()=>Object.assign({},d.currentDefaults(),g().ordinalFormat),d.currentByteDefaultFormat=()=>Object.assign({},d.currentDefaults(),g().byteFormat),d.currentPercentageDefaultFormat=()=>Object.assign({},d.currentDefaults(),g().percentageFormat),d.currentCurrencyDefaultFormat=()=>Object.assign({},d.currentDefaults(),g().currencyFormat),d.currentTimeDefaultFormat=()=>Object.assign({},d.currentDefaults(),g().timeFormat),d.setDefaults=B=>{B=p.parseFormat(B),t.validateFormat(B)&&(M=B)},d.getZeroFormat=()=>O,d.setZeroFormat=B=>O=typeof B=="string"?B:null,d.hasZeroFormat=()=>O!==null,d.languageData=B=>{if(B){if(y[B])return y[B];throw new Error(`Unknown tag "${B}"`)}return g()},d.registerLanguage=(B,_=!1)=>{if(!t.validateLanguage(B))throw new Error("Invalid language data");y[B.languageTag]=B,_&&w(B.languageTag)},d.setLanguage=(B,_=n.languageTag)=>{if(!y[B]){let A=B.split("-")[0],T=Object.keys(y).find(X=>X.split("-")[0]===A);if(!y[T]){w(_);return}w(T);return}w(B)},d.registerLanguage(n),v=n.languageTag,Pe=d,Pe}function yt(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/function vt(n,t){n.forEach(p=>{let d;try{d=yt(`../languages/${p}`)}catch{console.error(`Unable to load "${p}". No matching language file found.`)}d&&t.registerLanguage(d)})}var wt=n=>({loadLanguagesInNode:t=>vt(t,n)}),ze={exports:{}};(function(n){(function(t){var p,d=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,v=Math.ceil,y=Math.floor,O="[BigNumber Error] ",M=O+"Number primitive has more than 15 significant digits: ",w=1e14,g=14,B=9007199254740991,_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,T=1e9;function X(N){var x,C,I,S=b.prototype={constructor:b,toString:null,valueOf:null},W=new b(1),q=20,G=4,ee=-7,re=21,he=-1e7,ae=1e7,pe=!1,ve=1,ce=0,$e={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},ge="0123456789abcdefghijklmnopqrstuvwxyz",Me=!0;function b(e,r){var i,f,l,s,h,a,o,c,u=this;if(!(u instanceof b))return new b(e,r);if(r==null){if(e&&e._isBigNumber===!0){u.s=e.s,!e.c||e.e>ae?u.c=u.e=null:e.e<he?u.c=[u.e=0]:(u.e=e.e,u.c=e.c.slice());return}if((a=typeof e=="number")&&e*0==0){if(u.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,h=e;h>=10;h/=10,s++);s>ae?u.c=u.e=null:(u.e=s,u.c=[e]);return}c=String(e)}else{if(!d.test(c=String(e)))return I(u,c,a);u.s=c.charCodeAt(0)==45?(c=c.slice(1),-1):1}(s=c.indexOf("."))>-1&&(c=c.replace(".","")),(h=c.search(/e/i))>0?(s<0&&(s=h),s+=+c.slice(h+1),c=c.substring(0,h)):s<0&&(s=c.length)}else{if(L(r,2,ge.length,"Base"),r==10&&Me)return u=new b(e),ne(u,q+u.e+1,G);if(c=String(e),a=typeof e=="number"){if(e*0!=0)return I(u,c,a,r);if(u.s=1/e<0?(c=c.slice(1),-1):1,b.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(M+e)}else u.s=c.charCodeAt(0)===45?(c=c.slice(1),-1):1;for(i=ge.slice(0,r),s=h=0,o=c.length;h<o;h++)if(i.indexOf(f=c.charAt(h))<0){if(f=="."){if(h>s){s=o;continue}}else if(!l&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){l=!0,h=-1,s=0;continue}return I(u,String(e),a,r)}a=!1,c=C(c,r,10,u.s),(s=c.indexOf("."))>-1?c=c.replace(".",""):s=c.length}for(h=0;c.charCodeAt(h)===48;h++);for(o=c.length;c.charCodeAt(--o)===48;);if(c=c.slice(h,++o)){if(o-=h,a&&b.DEBUG&&o>15&&(e>B||e!==y(e)))throw Error(M+u.s*e);if((s=s-h-1)>ae)u.c=u.e=null;else if(s<he)u.c=[u.e=0];else{if(u.e=s,u.c=[],h=(s+1)%g,s<0&&(h+=g),h<o){for(h&&u.c.push(+c.slice(0,h)),o-=g;h<o;)u.c.push(+c.slice(h,h+=g));h=g-(c=c.slice(h)).length}else h-=o;for(;h--;c+="0");u.c.push(+c)}}else u.c=[u.e=0]}b.clone=X,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var r,i;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(i=e[r],L(i,0,T,r),q=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],L(i,0,8,r),G=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(L(i[0],-1e9,0,r),L(i[1],0,T,r),ee=i[0],re=i[1]):(L(i,-1e9,T,r),ee=-(re=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)L(i[0],-1e9,-1,r),L(i[1],1,T,r),he=i[0],ae=i[1];else if(L(i,-1e9,T,r),i)he=-(ae=i<0?-i:i);else throw Error(O+r+" cannot be zero: "+i);if(e.hasOwnProperty(r="CRYPTO"))if(i=e[r],i===!!i)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))pe=i;else throw pe=!i,Error(O+"crypto unavailable");else pe=i;else throw Error(O+r+" not true or false: "+i);if(e.hasOwnProperty(r="MODULO_MODE")&&(i=e[r],L(i,0,9,r),ve=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],L(i,0,T,r),ce=i),e.hasOwnProperty(r="FORMAT"))if(i=e[r],typeof i=="object")$e=i;else throw Error(O+r+" not an object: "+i);if(e.hasOwnProperty(r="ALPHABET"))if(i=e[r],typeof i=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(i))Me=i.slice(0,10)=="0123456789",ge=i;else throw Error(O+r+" invalid: "+i)}else throw Error(O+"Object expected: "+e);return{DECIMAL_PLACES:q,ROUNDING_MODE:G,EXPONENTIAL_AT:[ee,re],RANGE:[he,ae],CRYPTO:pe,MODULO_MODE:ve,POW_PRECISION:ce,FORMAT:$e,ALPHABET:ge}},b.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!b.DEBUG)return!0;var r,i,f=e.c,l=e.e,
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/const le=Re(),bt=ke(),xt=Ue,Ot=We,Y={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},be={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:He,decimalSuffixes:Se}=le.currentBytes(),Ie={general:{scale:1024,suffixes:Se},binary:{scale:1024,suffixes:He},decimal:{scale:1e3,suffixes:Se}};function Nt(n,t={},p){if(typeof t=="string"&&(t=xt.parseFormat(t)),!bt.validateFormat(t))return"ERROR: invalid format";let v=t.prefix||"",y=t.postfix||"",O=St(n,t,p);return O=Gt(O,v),O=jt(O,y),O}function St(n,t,p){switch(t.output){case"currency":return t=ye(t,le.currentCurrencyDefaultFormat()),Tt(n,t,le);case"percent":return t=ye(t,le.currentPercentageDefaultFormat()),_t(n,t,le,p);case"byte":return t=ye(t,le.currentByteDefaultFormat()),Et(n,t,le,p);case"time":return t=ye(t,le.currentTimeDefaultFormat()),At(n);case"ordinal":return t=ye(t,le.currentOrdinalDefaultFormat()),Dt(n,t,le);case"number":default:return xe({instance:n,providedFormat:t})}}function Bt(n){let t=Ie.decimal;return Be(n._value,t.suffixes,t.scale).suffix}function $t(n){let t=Ie.binary;return Be(n._value,t.suffixes,t.scale).suffix}function Mt(n){let t=Ie.general;return Be(n._value,t.suffixes,t.scale).suffix}function Be(n,t,p){let d=t[0],v=Math.abs(n);if(v>=p){for(let y=1;y<t.length;++y){let O=Math.pow(p,y),M=Math.pow(p,y+1);if(v>=O&&v<M){d=t[y],n=n/O;break}}d===t[0]&&(n=n/Math.pow(p,t.length-1),d=t[t.length-1])}return{value:n,suffix:d}}function Et(n,t,p,d){let v=t.base||"binary",y=Object.assign({},be,t);const{binarySuffixes:O,decimalSuffixes:M}=p.currentBytes();let g={general:{scale:1024,suffixes:M||Se,marker:"bd"},binary:{scale:1024,suffixes:O||He,marker:"b"},decimal:{scale:1e3,suffixes:M||Se,marker:"d"}}[v],{value:B,suffix:_}=Be(n._value,g.suffixes,g.scale);return`${xe({instance:d(B),providedFormat:t,state:p,defaults:p.currentByteDefaultFormat()})}${y.spaceSeparated?" ":""}${_}`}function Dt(n,t,p){let d=p.currentOrdinal(),v=Object.assign({},be,t),y=xe({instance:n,providedFormat:t,state:p}),O=d(n._value);return`${y}${v.spaceSeparated?" ":""}${O}`}function At(n){let t=Math.floor(n._value/60/60),p=Math.floor((n._value-t*60*60)/60),d=Math.round(n._value-t*60*60-p*60);return`${t}:${p<10?"0":""}${p}:${d<10?"0":""}${d}`}function _t(n,t,p,d){let v=t.prefixSymbol,y=xe({instance:d(n._value*100),providedFormat:t,state:p}),O=Object.assign({},be,t);return v?`%${O.spaceSeparated?" ":""}${y}`:`${y}${O.spaceSeparated?" ":""}%`}function Tt(n,t,p){const d=p.currentCurrency();let v=Object.assign({},t),y=Object.assign({},be,v),O,M="",w=!!y.totalLength||!!y.forceAverage||y.average,g=v.currencyPosition||d.position,B=v.currencySymbol||d.symbol;const _=y.spaceSeparatedCurrency!==void 0?y.spaceSeparatedCurrency:y.spaceSeparated;v.lowPrecision===void 0&&(v.lowPrecision=!1),_&&(M=" "),g==="infix"&&(O=M+B+M);let A=xe({instance:n,providedFormat:v,state:p,decimalSeparator:O});return g==="prefix"&&(n._value<0&&y.negative==="sign"?A=`-${M}${B}${A.slice(1)}`:n._value>0&&y.forceSign?A=`+${M}${B}${A.slice(1)}`:A=B+M+A),(!g||g==="postfix")&&(M=!y.spaceSeparatedAbbreviation&&w?"":M,A=A+M+B),A}function Lt({value:n,forceAverage:t,lowPrecision:p=!0,abbreviations:d,spaceSeparated:v=!1,totalLength:y=0,roundingFunction:O=Math.round}){let M="",w=Math.abs(n),g=-1;if(t&&d[t]&&Y[t]?(M=d[t],n=n/Y[t]):w>=Y.trillion||p&&O(w/Y.trillion)===1?(M=d.trillion,n=n/Y.trillion):w<Y.trillion&&w>=Y.billion||p&&O(w/Y.billion)===1?(M=d.billion,n=n/Y.billion):w<Y.billion&&w>=Y.million||p&&O(w/Y.million)===1?(M=d.million,n=n/Y.million):(w<Y.million&&w>=Y.thousand||p&&O(w/Y.thousand)===1)&&(M=d.thousand,n=n/Y.thousand),M&&(M=(v?" ":"")+M),y){let _=n<0,A=n.toString().split(".")[0],T=_?A.length-1:A.length;g=Math.max(y-T,0)}return{value:n,abbreviation:M,mantissaPrecision:g}}function Ct({value:n,characteristicPrecision:t}){let[p,d]=n.toExponential().split("e"),v=+p;if(!t)return{value:v,abbreviation:`e${d}`};let y=1;r
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/const fe=We;function zt(n,t,p){let d=new fe(n._value),v=t;return p.isNumbro(t)&&(v=t._value),v=new fe(v),n._value=d.plus(v).toNumber(),n}function Xe(n,t,p){let d=new fe(n._value),v=t;return p.isNumbro(t)&&(v=t._value),v=new fe(v),n._value=d.minus(v).toNumber(),n}function Wt(n,t,p){let d=new fe(n._value),v=t;return p.isNumbro(t)&&(v=t._value),v=new fe(v),n._value=d.times(v).toNumber(),n}function Ht(n,t,p){let d=new fe(n._value),v=t;return p.isNumbro(t)&&(v=t._value),v=new fe(v),n._value=d.dividedBy(v).toNumber(),n}function Xt(n,t,p){let d=t;return p.isNumbro(t)&&(d=t._value),n._value=d,n}function Yt(n,t,p){let d=p(n._value);return Xe(d,t,p),Math.abs(d._value)}var Kt=n=>({add:(t,p)=>zt(t,p,n),subtract:(t,p)=>Xe(t,p,n),multiply:(t,p)=>Wt(t,p,n),divide:(t,p)=>Ht(t,p,n),set:(t,p)=>Xt(t,p,n),difference:(t,p)=>Yt(t,p,n),BigNumber:fe});/*!
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/const Jt="2.5.0",se=Re(),Qt=ke(),er=wt(z),tr=Ze();let de=Zt(z),me=Kt(z);const rr=Ue;class Ye{constructor(t){this._value=t}clone(){return z(this._value)}format(t={}){return de.format(this,t)}formatCurrency(t){return typeof t=="string"&&(t=rr.parseFormat(t)),t=de.formatOrDefault(t,se.currentCurrencyDefaultFormat()),t.output="currency",de.format(this,t)}formatTime(t={}){return t.output="time",de.format(this,t)}binaryByteUnits(){return de.getBinaryByteUnit(this)}decimalByteUnits(){return de.getDecimalByteUnit(this)}byteUnits(){return de.getByteUnit(this)}difference(t){return me.difference(this,t)}add(t){return me.add(this,t)}subtract(t){return me.subtract(this,t)}multiply(t){return me.multiply(this,t)}divide(t){return me.divide(this,t)}set(t){return me.set(this,Ke(t))}value(){return this._value}valueOf(){return this._value}}function Ke(n){let t=n;return z.isNumbro(n)?t=n._value:typeof n=="string"?t=z.unformat(n):isNaN(n)&&(t=NaN),t}function z(n){return new Ye(Ke(n))}z.version=Jt;z.isNumbro=function(n){return n instanceof Ye};z.language=se.currentLanguage;z.registerLanguage=se.registerLanguage;z.setLanguage=se.setLanguage;z.languages=se.languages;z.languageData=se.languageData;z.zeroFormat=se.setZeroFormat;z.defaultFormat=se.currentDefaults;z.setDefaults=se.setDefaults;z.defaultCurrencyFormat=se.currentCurrencyDefaultFormat;z.validate=Qt.validate;z.loadLanguagesInNode=er.loadLanguagesInNode;z.unformat=tr.unformat;z.BigNumber=me.BigNumber;var nr=z,ir=Qe(nr);export{ir as n};