Files
appco_dist/.output/public/_nuxt/B764G_GY.js
T
2026-02-01 17:38:39 +03:30

2 lines
40 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as nt,r as Ce,cA as it,bb as at,k as Ge,$ as lt,y as je,z as ze,A as Te,S as ot}from"./D9_UoUeZ.js";import{_ as st}from"./DlAUqK2U.js";const Or="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%233797EF'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%3e%3cpath%20d='M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z%20M16,13h-3v3c0,0.552-0.448,1-1,1h0%20c-0.552,0-1-0.448-1-1v-3H8c-0.552,0-1-0.448-1-1v0c0-0.552,0.448-1,1-1h3V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v3h3%20c0.552,0,1,0.448,1,1v0C17,12.552,16.552,13,16,13z'/%3e%3c/svg%3e",ut=["width","height","viewBox"],ft=["width","height"],ct=["transform"],ht=["width","height"],pt=nt({__name:"CustomProgressBar",props:{percent:{type:Number,required:!0},barHeight:{type:Number,default:2},rtl:{type:Boolean,default:!1}},setup(n){const t=Ce(null),{width:p}=it(t),g=n,y=Ce(0);at(()=>{p.value>0&&(y.value=p.value)});const v=Ce(0),O=Ge(()=>y.value*Math.min(Math.max(g.percent,0),100)/100),$=Ge(()=>g.rtl?`translate(${y.value},0) scale(-1,1)`:void 0);return lt(O,()=>{(g.percent===100||g.percent===0)&&v.value++}),(w,d)=>(je(),ze("div",{ref_key:"el",ref:t,class:"progress-container"},[y.value>0?(je(),ze("svg",{key:0,width:y.value,height:n.barHeight,viewBox:`0 0 ${y.value} ${n.barHeight}`,class:"progress-bar"},[Te("rect",{x:"0",y:"0",width:y.value,height:n.barHeight,fill:"rgba(255,255,255,0.3)",rx:"1",ry:"1"},null,8,ft),Te("g",{transform:$.value},[Te("rect",{x:"0",y:"0",width:O.value,height:n.barHeight,fill:"white",rx:"1",ry:"1",class:"progress-fill"},null,8,ht)],8,ct)],8,ut)):ot("",!0)],512))}}),Nr=st(pt,[["__scopeId","data-v-9b1dc5d5"]]),Br=""+new URL("story_loading.Cuvmkir-.gif",import.meta.url).href;var gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Le,Ze;function mt(){return Ze||(Ze=1,Le={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}}}),Le}var ke,He;function Ye(){if(He)return ke;He=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,d,S,C,A,D,X){if(!isNaN(+w))return+w;let k="",_=w.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(_!==w)return-1*p(_,d,S,C,A,D);for(let N=0;N<n.length;N++){let x=n[N];if(k=w.replace(RegExp(`([0-9 ])(${x.key})$`),"$1"),k!==w)return p(k,d,S,C,A,D)*x.factor}if(k=w.replace("%",""),k!==w)return p(k,d,S,C,A,D)/100;let F=parseFloat(w);if(isNaN(F))return;let T=C(F);if(T&&T!=="."&&(k=w.replace(new RegExp(`${t(T)}$`),""),k!==w))return p(k,d,S,C,A,D);let Q={};Object.keys(D).forEach(N=>{Q[D[N]]=N});let te=Object.keys(Q).sort().reverse(),R=te.length;for(let N=0;N<R;N++){let x=te[N],L=Q[x];if(k=w.replace(x,""),k!==w){let I;switch(L){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(k,d,S,C,A,D)*I}}}function g(w,d,S){let C=w.replace(S,"");return C=C.replace(new RegExp(`([0-9])${t(d.thousands)}([0-9])`,"g"),"$1$2"),C=C.replace(d.decimal,"."),C}function y(w,d,S="",C,A,D,X){if(w==="")return;if(w===A)return 0;let k=g(w,d,S);return p(k,d,S,C,A,D)}function v(w,d){if(!(w.indexOf(":")&&d.thousands!==":"))return!1;let C=w.split(":");if(C.length!==3)return!1;let A=+C[0],D=+C[1],X=+C[2];return!isNaN(A)&&!isNaN(D)&&!isNaN(X)}function O(w){let d=w.split(":"),S=+d[0],C=+d[1];return+d[2]+60*C+3600*S}function $(w,d){const S=Fe();let C=S.currentDelimiters(),A=S.currentCurrency().symbol,D=S.currentOrdinal(),X=S.getZeroFormat(),k=S.currentAbbreviations(),_;if(typeof w=="string")v(w,C)?_=O(w):_=y(w,C,A,D,X,k);else if(typeof w=="number")_=w;else return;if(_!==void 0)return _}return ke={unformat:$},ke}var Pe,We;function Re(){if(We)return Pe;We=1;let n=Ye();const t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,p=["currency","percent","byte","time","ordinal","number"],g=["trillion","billion","million","thousand"],y=["prefix","infix","postfix"],v=["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},d={output:{type:"string",validValues:p},base:{type:"string",validValues:["decimal","binary","general"],restriction:(_,F)=>F.output==="byte",message:"`base` must be provided only when the output is `byte`",mandatory:_=>_.output==="byte"},characteristic:{type:"number",restriction:_=>_>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:g},average:"boolean",lowPrecision:{type:"boolean",restriction:(_,F)=>F.average===!0,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:y},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:_=>_>=0,message:"value must be positive"},{restriction:(_,F)=>!F.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:_=>_>=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:v},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(_,F)=>F.output==="percent",message:"`prefixSymbol` can be provided only when the output is `percent`"}},S={languageTag:{type:"string",mandatory:!0,restriction:_=>_.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 C(_,F){let T=A(_),Q=X(F);return T&&Q}function A(_){return n.unformat(_)!==void 0}function D(_,F,T,Q=!1){let te=Object.keys(_).map(R=>{if(!F[R])return console.error(`${T} Invalid key: ${R}`),!1;let N=_[R],x=F[R];if(typeof x=="string"&&(x={type:x}),x.type==="format"){if(!D(N,d,`[Validate ${R}]`,!0))return!1}else if(typeof N!==x.type)return console.error(`${T} ${R} type mismatched: "${x.type}" expected, "${typeof N}" provided`),!1;if(x.restrictions&&x.restrictions.length){let L=x.restrictions.length;for(let I=0;I<L;I++){let{restriction:B,message:H}=x.restrictions[I];if(!B(N,_))return console.error(`${T} ${R} invalid value: ${H}`),!1}}return x.restriction&&!x.restriction(N,_)?(console.error(`${T} ${R} invalid value: ${x.message}`),!1):x.validValues&&x.validValues.indexOf(N)===-1?(console.error(`${T} ${R} invalid value: must be among ${JSON.stringify(x.validValues)}, "${N}" provided`),!1):!(x.children&&!D(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(_)),x&&_[R]===void 0)return console.error(`${T} Missing mandatory key "${R}"`),!1}return!0})),te.reduce((R,N)=>R&&N,!0)}function X(_){return D(_,d,"[Validate format]")}function k(_){return D(_,S,"[Validate language]")}return Pe={validate:C,validateFormat:X,validateInput:A,validateLanguage:k},Pe}function yt(n,t){let p=n.match(/^{([^}]*)}/);return p?(t.prefix=p[1],n.slice(p[0].length)):n}function vt(n,t){let p=n.match(/{([^}]*)}$/);return p?(t.postfix=p[1],n.slice(0,-p[0].length)):n}function wt(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 bt(n,t){n.indexOf(",")!==-1&&(t.thousandSeparated=!0)}function xt(n,t){n.indexOf(" ")!==-1&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0))}function Ot(n,t){let p=n.match(/[1-9]+[0-9]*/);p&&(t.totalLength=+p[0])}function Nt(n,t){let g=n.split(".")[0].match(/0+/);g&&(t.characteristic=g[0].length)}function Bt(n,t){let p=n.split(".")[1];if(p){let g=p.match(/0+/);g&&(t.mantissa=g[0].length)}}function St(n,t){const p=n.split(".")[1];p&&(t.trimMantissa=p.indexOf("[")!==-1)}function $t(n,t){n.indexOf("a")!==-1&&(t.average=!0)}function Mt(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 Et(n,t){n.match(/\[\.]/)?t.optionalMantissa=!0:n.match(/\./)&&(t.optionalMantissa=!1)}function _t(n,t){if(n.indexOf(".")!==-1){let p=n.split(".")[0];t.optionalCharacteristic=p.indexOf("0")===-1}}function Dt(n,t){n.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),n.match(/^\+?-/)&&(t.negative="sign")}function At(n,t){n.match(/^\+/)&&(t.forceSign=!0)}function Ct(n,t={}){return typeof n!="string"?n:(n=yt(n,t),n=vt(n,t),wt(n,t),Ot(n,t),Nt(n,t),_t(n,t),$t(n,t),Mt(n,t),Bt(n,t),Et(n,t),St(n,t),bt(n,t),xt(n,t),Dt(n,t),At(n,t),t)}var Ie={parseFormat:Ct};var Ue,Xe;function Fe(){if(Xe)return Ue;Xe=1;const n=mt(),t=Re(),p=Ie;let g={},y,v={},O=null,$={};function w(S){y=S}function d(){return v[y]}return g.languages=()=>Object.assign({},v),g.currentLanguage=()=>y,g.currentBytes=()=>d().bytes||{},g.currentCurrency=()=>d().currency,g.currentAbbreviations=()=>d().abbreviations,g.currentDelimiters=()=>d().delimiters,g.currentOrdinal=()=>d().ordinal,g.currentDefaults=()=>Object.assign({},d().defaults,$),g.currentOrdinalDefaultFormat=()=>Object.assign({},g.currentDefaults(),d().ordinalFormat),g.currentByteDefaultFormat=()=>Object.assign({},g.currentDefaults(),d().byteFormat),g.currentPercentageDefaultFormat=()=>Object.assign({},g.currentDefaults(),d().percentageFormat),g.currentCurrencyDefaultFormat=()=>Object.assign({},g.currentDefaults(),d().currencyFormat),g.currentTimeDefaultFormat=()=>Object.assign({},g.currentDefaults(),d().timeFormat),g.setDefaults=S=>{S=p.parseFormat(S),t.validateFormat(S)&&($=S)},g.getZeroFormat=()=>O,g.setZeroFormat=S=>O=typeof S=="string"?S:null,g.hasZeroFormat=()=>O!==null,g.languageData=S=>{if(S){if(v[S])return v[S];throw new Error(`Unknown tag "${S}"`)}return d()},g.registerLanguage=(S,C=!1)=>{if(!t.validateLanguage(S))throw new Error("Invalid language data");v[S.languageTag]=S,C&&w(S.languageTag)},g.setLanguage=(S,C=n.languageTag)=>{if(!v[S]){let A=S.split("-")[0],D=Object.keys(v).find(X=>X.split("-")[0]===A);if(!v[D]){w(C);return}w(D);return}w(S)},g.registerLanguage(n),y=n.languageTag,Ue=g,Ue}function Tt(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.')}function Lt(n,t){n.forEach(p=>{let g;try{g=Tt(`../languages/${p}`)}catch{console.error(`Unable to load "${p}". No matching language file found.`)}g&&t.registerLanguage(g)})}var kt=n=>({loadLanguagesInNode:t=>Lt(t,n)}),Ke={exports:{}};(function(n){(function(t){var p,g=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,v=Math.floor,O="[BigNumber Error] ",$=O+"Number primitive has more than 15 significant digits: ",w=1e14,d=14,S=9007199254740991,C=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,D=1e9;function X(N){var x,L,I,B=b.prototype={constructor:b,toString:null,valueOf:null},H=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(!g.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(T(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($+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=L(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>S||e!==v(e)))throw Error($+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)%d,s<0&&(h+=d),h<o){for(h&&u.c.push(+c.slice(0,h)),o-=d;h<o;)u.c.push(+c.slice(h,h+=d));h=d-(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],T(i,0,D,r),q=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],T(i,0,8,r),G=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(T(i[0],-D,0,r),T(i[1],0,D,r),ee=i[0],re=i[1]):(T(i,-D,D,r),ee=-(re=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)T(i[0],-D,-1,r),T(i[1],1,D,r),he=i[0],ae=i[1];else if(T(i,-D,D,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],T(i,0,9,r),ve=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],T(i,0,D,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,s=e.s;e:if({}.toString.call(f)=="[object Array]"){if((s===1||s===-1)&&l>=-D&&l<=D&&l===v(l)){if(f[0]===0){if(l===0&&f.length===1)return!0;break e}if(r=(l+1)%d,r<1&&(r+=d),String(f[0]).length==r){for(r=0;r<f.length;r++)if(i=f[r],i<0||i>=w||i!==v(i))break e;if(i!==0)return!0}}}else if(f===null&&l===null&&(s===null||s===1||s===-1))return!0;throw Error(O+"Invalid BigNumber: "+e)},b.maximum=b.max=function(){return qe(arguments,-1)},b.minimum=b.min=function(){return qe(arguments,1)},b.random=(function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return v(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(i){var f,l,s,h,a,o=0,c=[],u=new b(H);if(i==null?i=q:T(i,0,D),h=y(i/d),pe)if(crypto.getRandomValues){for(f=crypto.getRandomValues(new Uint32Array(h*=2));o<h;)a=f[o]*131072+(f[o+1]>>>11),a>=9e15?(l=crypto.getRandomValues(new Uint32Array(2)),f[o]=l[0],f[o+1]=l[1]):(c.push(a%1e14),o+=2);o=h/2}else if(crypto.randomBytes){for(f=crypto.randomBytes(h*=7);o<h;)a=(f[o]&31)*281474976710656+f[o+1]*1099511627776+f[o+2]*4294967296+f[o+3]*16777216+(f[o+4]<<16)+(f[o+5]<<8)+f[o+6],a>=9e15?crypto.randomBytes(7).copy(f,o):(c.push(a%1e14),o+=7);o=h/7}else throw pe=!1,Error(O+"crypto unavailable");if(!pe)for(;o<h;)a=r(),a<9e15&&(c[o++]=a%1e14);for(h=c[--o],i%=d,h&&i&&(a=C[d-i],c[o]=v(h/a)*a);c[o]===0;c.pop(),o--);if(o<0)c=[s=0];else{for(s=-1;c[0]===0;c.splice(0,1),s-=d);for(o=1,a=c[0];a>=10;a/=10,o++);o<d&&(s-=d-o)}return u.e=s,u.c=c,u}})(),b.sum=function(){for(var e=1,r=arguments,i=new b(r[0]);e<r.length;)i=i.plus(r[e++]);return i},L=(function(){var e="0123456789";function r(i,f,l,s){for(var h,a=[0],o,c=0,u=i.length;c<u;){for(o=a.length;o--;a[o]*=f);for(a[0]+=s.indexOf(i.charAt(c++)),h=0;h<a.length;h++)a[h]>l-1&&(a[h+1]==null&&(a[h+1]=0),a[h+1]+=a[h]/l|0,a[h]%=l)}return a.reverse()}return function(i,f,l,s,h){var a,o,c,u,m,M,E,U,j=i.indexOf("."),W=q,P=G;for(j>=0&&(u=ce,ce=0,i=i.replace(".",""),U=new b(f),M=U.pow(i.length-j),ce=u,U.c=r(R(_(M.c),M.e,"0"),10,l,e),U.e=U.c.length),E=r(i,f,l,h?(a=ge,e):(a=e,ge)),c=u=E.length;E[--u]==0;E.pop());if(!E[0])return a.charAt(0);if(j<0?--c:(M.c=E,M.e=c,M.s=s,M=x(M,U,W,P,l),E=M.c,m=M.r,c=M.e),o=c+W+1,j=E[o],u=l/2,m=m||o<0||E[o+1]!=null,m=P<4?(j!=null||m)&&(P==0||P==(M.s<0?3:2)):j>u||j==u&&(P==4||m||P==6&&E[o-1]&1||P==(M.s<0?8:7)),o<1||!E[0])i=m?R(a.charAt(1),-W,a.charAt(0)):a.charAt(0);else{if(E.length=o,m)for(--l;++E[--o]>l;)E[o]=0,o||(++c,E=[1].concat(E));for(u=E.length;!E[--u];);for(j=0,i="";j<=u;i+=a.charAt(E[j++]));i=R(i,c,a.charAt(0))}return i}})(),x=(function(){function e(f,l,s){var h,a,o,c,u=0,m=f.length,M=l%A,E=l/A|0;for(f=f.slice();m--;)o=f[m]%A,c=f[m]/A|0,h=E*o+c*M,a=M*o+h%A*A+u,u=(a/s|0)+(h/A|0)+E*c,f[m]=a%s;return u&&(f=[u].concat(f)),f}function r(f,l,s,h){var a,o;if(s!=h)o=s>h?1:-1;else for(a=o=0;a<s;a++)if(f[a]!=l[a]){o=f[a]>l[a]?1:-1;break}return o}function i(f,l,s,h){for(var a=0;s--;)f[s]-=a,a=f[s]<l[s]?1:0,f[s]=a*h+f[s]-l[s];for(;!f[0]&&f.length>1;f.splice(0,1));}return function(f,l,s,h,a){var o,c,u,m,M,E,U,j,W,P,V,K,Oe,De,Ae,oe,we,ie=f.s==l.s?1:-1,J=f.c,z=l.c;if(!J||!J[0]||!z||!z[0])return new b(!f.s||!l.s||(J?z&&J[0]==z[0]:!z)?NaN:J&&J[0]==0||!z?ie*0:ie/0);for(j=new b(ie),W=j.c=[],c=f.e-l.e,ie=s+c+1,a||(a=w,c=k(f.e/d)-k(l.e/d),ie=ie/d|0),u=0;z[u]==(J[u]||0);u++);if(z[u]>(J[u]||0)&&c--,ie<0)W.push(1),m=!0;else{for(De=J.length,oe=z.length,u=0,ie+=2,M=v(a/(z[0]+1)),M>1&&(z=e(z,M,a),J=e(J,M,a),oe=z.length,De=J.length),Oe=oe,P=J.slice(0,oe),V=P.length;V<oe;P[V++]=0);we=z.slice(),we=[0].concat(we),Ae=z[0],z[1]>=a/2&&Ae++;do{if(M=0,o=r(z,P,oe,V),o<0){if(K=P[0],oe!=V&&(K=K*a+(P[1]||0)),M=v(K/Ae),M>1)for(M>=a&&(M=a-1),E=e(z,M,a),U=E.length,V=P.length;r(E,P,U,V)==1;)M--,i(E,oe<U?we:z,U,a),U=E.length,o=1;else M==0&&(o=M=1),E=z.slice(),U=E.length;if(U<V&&(E=[0].concat(E)),i(P,E,V,a),V=P.length,o==-1)for(;r(z,P,oe,V)<1;)M++,i(P,oe<V?we:z,V,a),V=P.length}else o===0&&(M++,P=[0]);W[u++]=M,P[0]?P[V++]=J[Oe]||0:(P=[J[Oe]],V=1)}while((Oe++<De||P[0]!=null)&&ie--);m=P[0]!=null,W[0]||W.splice(0,1)}if(a==w){for(u=1,ie=W[0];ie>=10;ie/=10,u++);ne(j,s+(j.e=u+c*d-1)+1,h,m)}else j.e=c,j.r=+m;return j}})();function Ee(e,r,i,f){var l,s,h,a,o;if(i==null?i=G:T(i,0,8),!e.c)return e.toString();if(l=e.c[0],h=e.e,r==null)o=_(e.c),o=f==1||f==2&&(h<=ee||h>=re)?te(o,h):R(o,h,"0");else if(e=ne(new b(e),r,i),s=e.e,o=_(e.c),a=o.length,f==1||f==2&&(r<=s||s<=ee)){for(;a<r;o+="0",a++);o=te(o,s)}else if(r-=h,o=R(o,s,"0"),s+1>a){if(--r>0)for(o+=".";r--;o+="0");}else if(r+=s-a,r>0)for(s+1==a&&(o+=".");r--;o+="0");return e.s<0&&l?"-"+o:o}function qe(e,r){for(var i,f,l=1,s=new b(e[0]);l<e.length;l++)f=new b(e[l]),(!f.s||(i=F(s,f))===r||i===0&&s.s===r)&&(s=f);return s}function _e(e,r,i){for(var f=1,l=r.length;!r[--l];r.pop());for(l=r[0];l>=10;l/=10,f++);return(i=f+i*d-1)>ae?e.c=e.e=null:i<he?e.c=[e.e=0]:(e.e=i,e.c=r),e}I=(function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,f=/^-?(Infinity|NaN)$/,l=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,h,a,o){var c,u=a?h:h.replace(l,"");if(f.test(u))s.s=isNaN(u)?null:u<0?-1:1;else{if(!a&&(u=u.replace(e,function(m,M,E){return c=(E=E.toLowerCase())=="x"?16:E=="b"?2:8,!o||o==c?M:m}),o&&(c=o,u=u.replace(r,"$1").replace(i,"0.$1")),h!=u))return new b(u,c);if(b.DEBUG)throw Error(O+"Not a"+(o?" base "+o:"")+" number: "+h);s.s=null}s.c=s.e=null}})();function ne(e,r,i,f){var l,s,h,a,o,c,u,m=e.c,M=C;if(m){e:{for(l=1,a=m[0];a>=10;a/=10,l++);if(s=r-l,s<0)s+=d,h=r,o=m[c=0],u=v(o/M[l-h-1]%10);else if(c=y((s+1)/d),c>=m.length)if(f){for(;m.length<=c;m.push(0));o=u=0,l=1,s%=d,h=s-d+1}else break e;else{for(o=a=m[c],l=1;a>=10;a/=10,l++);s%=d,h=s-d+l,u=h<0?0:v(o/M[l-h-1]%10)}if(f=f||r<0||m[c+1]!=null||(h<0?o:o%M[l-h-1]),f=i<4?(u||f)&&(i==0||i==(e.s<0?3:2)):u>5||u==5&&(i==4||f||i==6&&(s>0?h>0?o/M[l-h]:0:m[c-1])%10&1||i==(e.s<0?8:7)),r<1||!m[0])return m.length=0,f?(r-=e.e+1,m[0]=M[(d-r%d)%d],e.e=-r||0):m[0]=e.e=0,e;if(s==0?(m.length=c,a=1,c--):(m.length=c+1,a=M[d-s],m[c]=h>0?v(o/M[l-h]%M[h])*a:0),f)for(;;)if(c==0){for(s=1,h=m[0];h>=10;h/=10,s++);for(h=m[0]+=a,a=1;h>=10;h/=10,a++);s!=a&&(e.e++,m[0]==w&&(m[0]=1));break}else{if(m[c]+=a,m[c]!=w)break;m[c--]=0,a=1}for(s=m.length;m[--s]===0;m.pop());}e.e>ae?e.c=e.e=null:e.e<he&&(e.c=[e.e=0])}return e}function ue(e){var r,i=e.e;return i===null?e.toString():(r=_(e.c),r=i<=ee||i>=re?te(r,i):R(r,i,"0"),e.s<0?"-"+r:r)}return B.absoluteValue=B.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},B.comparedTo=function(e,r){return F(this,new b(e,r))},B.decimalPlaces=B.dp=function(e,r){var i,f,l,s=this;if(e!=null)return T(e,0,D),r==null?r=G:T(r,0,8),ne(new b(s),e+s.e+1,r);if(!(i=s.c))return null;if(f=((l=i.length-1)-k(this.e/d))*d,l=i[l])for(;l%10==0;l/=10,f--);return f<0&&(f=0),f},B.dividedBy=B.div=function(e,r){return x(this,new b(e,r),q,G)},B.dividedToIntegerBy=B.idiv=function(e,r){return x(this,new b(e,r),0,1)},B.exponentiatedBy=B.pow=function(e,r){var i,f,l,s,h,a,o,c,u,m=this;if(e=new b(e),e.c&&!e.isInteger())throw Error(O+"Exponent not an integer: "+ue(e));if(r!=null&&(r=new b(r)),a=e.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!e.c||!e.c[0])return u=new b(Math.pow(+ue(m),a?e.s*(2-Q(e)):+ue(e))),r?u.mod(r):u;if(o=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new b(NaN);f=!o&&m.isInteger()&&r.isInteger(),f&&(m=m.mod(r))}else{if(e.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||a&&m.c[1]>=24e7:m.c[0]<8e13||a&&m.c[0]<=9999975e7)))return s=m.s<0&&Q(e)?-0:0,m.e>-1&&(s=1/s),new b(o?1/s:s);ce&&(s=y(ce/d+2))}for(a?(i=new b(.5),o&&(e.s=1),c=Q(e)):(l=Math.abs(+ue(e)),c=l%2),u=new b(H);;){if(c){if(u=u.times(m),!u.c)break;s?u.c.length>s&&(u.c.length=s):f&&(u=u.mod(r))}if(l){if(l=v(l/2),l===0)break;c=l%2}else if(e=e.times(i),ne(e,e.e+1,1),e.e>14)c=Q(e);else{if(l=+ue(e),l===0)break;c=l%2}m=m.times(m),s?m.c&&m.c.length>s&&(m.c.length=s):f&&(m=m.mod(r))}return f?u:(o&&(u=H.div(u)),r?u.mod(r):s?ne(u,ce,G,h):u)},B.integerValue=function(e){var r=new b(this);return e==null?e=G:T(e,0,8),ne(r,r.e+1,e)},B.isEqualTo=B.eq=function(e,r){return F(this,new b(e,r))===0},B.isFinite=function(){return!!this.c},B.isGreaterThan=B.gt=function(e,r){return F(this,new b(e,r))>0},B.isGreaterThanOrEqualTo=B.gte=function(e,r){return(r=F(this,new b(e,r)))===1||r===0},B.isInteger=function(){return!!this.c&&k(this.e/d)>this.c.length-2},B.isLessThan=B.lt=function(e,r){return F(this,new b(e,r))<0},B.isLessThanOrEqualTo=B.lte=function(e,r){return(r=F(this,new b(e,r)))===-1||r===0},B.isNaN=function(){return!this.s},B.isNegative=function(){return this.s<0},B.isPositive=function(){return this.s>0},B.isZero=function(){return!!this.c&&this.c[0]==0},B.minus=function(e,r){var i,f,l,s,h=this,a=h.s;if(e=new b(e,r),r=e.s,!a||!r)return new b(NaN);if(a!=r)return e.s=-r,h.plus(e);var o=h.e/d,c=e.e/d,u=h.c,m=e.c;if(!o||!c){if(!u||!m)return u?(e.s=-r,e):new b(m?h:NaN);if(!u[0]||!m[0])return m[0]?(e.s=-r,e):new b(u[0]?h:G==3?-0:0)}if(o=k(o),c=k(c),u=u.slice(),a=o-c){for((s=a<0)?(a=-a,l=u):(c=o,l=m),l.reverse(),r=a;r--;l.push(0));l.reverse()}else for(f=(s=(a=u.length)<(r=m.length))?a:r,a=r=0;r<f;r++)if(u[r]!=m[r]){s=u[r]<m[r];break}if(s&&(l=u,u=m,m=l,e.s=-e.s),r=(f=m.length)-(i=u.length),r>0)for(;r--;u[i++]=0);for(r=w-1;f>a;){if(u[--f]<m[f]){for(i=f;i&&!u[--i];u[i]=r);--u[i],u[f]+=w}u[f]-=m[f]}for(;u[0]==0;u.splice(0,1),--c);return u[0]?_e(e,u,c):(e.s=G==3?-1:1,e.c=[e.e=0],e)},B.modulo=B.mod=function(e,r){var i,f,l=this;return e=new b(e,r),!l.c||!e.s||e.c&&!e.c[0]?new b(NaN):!e.c||l.c&&!l.c[0]?new b(l):(ve==9?(f=e.s,e.s=1,i=x(l,e,0,3),e.s=f,i.s*=f):i=x(l,e,0,ve),e=l.minus(i.times(e)),!e.c[0]&&ve==1&&(e.s=l.s),e)},B.multipliedBy=B.times=function(e,r){var i,f,l,s,h,a,o,c,u,m,M,E,U,j,W,P=this,V=P.c,K=(e=new b(e,r)).c;if(!V||!K||!V[0]||!K[0])return!P.s||!e.s||V&&!V[0]&&!K||K&&!K[0]&&!V?e.c=e.e=e.s=null:(e.s*=P.s,!V||!K?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(f=k(P.e/d)+k(e.e/d),e.s*=P.s,o=V.length,m=K.length,o<m&&(U=V,V=K,K=U,l=o,o=m,m=l),l=o+m,U=[];l--;U.push(0));for(j=w,W=A,l=m;--l>=0;){for(i=0,M=K[l]%W,E=K[l]/W|0,h=o,s=l+h;s>l;)c=V[--h]%W,u=V[h]/W|0,a=E*c+u*M,c=M*c+a%W*W+U[s]+i,i=(c/j|0)+(a/W|0)+E*u,U[s--]=c%j;U[s]=i}return i?++f:U.splice(0,1),_e(e,U,f)},B.negated=function(){var e=new b(this);return e.s=-e.s||null,e},B.plus=function(e,r){var i,f=this,l=f.s;if(e=new b(e,r),r=e.s,!l||!r)return new b(NaN);if(l!=r)return e.s=-r,f.minus(e);var s=f.e/d,h=e.e/d,a=f.c,o=e.c;if(!s||!h){if(!a||!o)return new b(l/0);if(!a[0]||!o[0])return o[0]?e:new b(a[0]?f:l*0)}if(s=k(s),h=k(h),a=a.slice(),l=s-h){for(l>0?(h=s,i=o):(l=-l,i=a),i.reverse();l--;i.push(0));i.reverse()}for(l=a.length,r=o.length,l-r<0&&(i=o,o=a,a=i,r=l),l=0;r;)l=(a[--r]=a[r]+o[r]+l)/w|0,a[r]=w===a[r]?0:a[r]%w;return l&&(a=[l].concat(a),++h),_e(e,a,h)},B.precision=B.sd=function(e,r){var i,f,l,s=this;if(e!=null&&e!==!!e)return T(e,1,D),r==null?r=G:T(r,0,8),ne(new b(s),e,r);if(!(i=s.c))return null;if(l=i.length-1,f=l*d+1,l=i[l]){for(;l%10==0;l/=10,f--);for(l=i[0];l>=10;l/=10,f++);}return e&&s.e+1>f&&(f=s.e+1),f},B.shiftedBy=function(e){return T(e,-S,S),this.times("1e"+e)},B.squareRoot=B.sqrt=function(){var e,r,i,f,l,s=this,h=s.c,a=s.s,o=s.e,c=q+4,u=new b("0.5");if(a!==1||!h||!h[0])return new b(!a||a<0&&(!h||h[0])?NaN:h?s:1/0);if(a=Math.sqrt(+ue(s)),a==0||a==1/0?(r=_(h),(r.length+o)%2==0&&(r+="0"),a=Math.sqrt(+r),o=k((o+1)/2)-(o<0||o%2),a==1/0?r="5e"+o:(r=a.toExponential(),r=r.slice(0,r.indexOf("e")+1)+o),i=new b(r)):i=new b(a+""),i.c[0]){for(o=i.e,a=o+c,a<3&&(a=0);;)if(l=i,i=u.times(l.plus(x(s,l,c,1))),_(l.c).slice(0,a)===(r=_(i.c)).slice(0,a))if(i.e<o&&--a,r=r.slice(a-3,a+1),r=="9999"||!f&&r=="4999"){if(!f&&(ne(l,l.e+q+2,0),l.times(l).eq(s))){i=l;break}c+=4,a+=4,f=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(ne(i,i.e+q+2,1),e=!i.times(i).eq(s));break}}return ne(i,i.e+q+1,G,e)},B.toExponential=function(e,r){return e!=null&&(T(e,0,D),e++),Ee(this,e,r,1)},B.toFixed=function(e,r){return e!=null&&(T(e,0,D),e=e+this.e+1),Ee(this,e,r)},B.toFormat=function(e,r,i){var f,l=this;if(i==null)e!=null&&r&&typeof r=="object"?(i=r,r=null):e&&typeof e=="object"?(i=e,e=r=null):i=$e;else if(typeof i!="object")throw Error(O+"Argument not an object: "+i);if(f=l.toFixed(e,r),l.c){var s,h=f.split("."),a=+i.groupSize,o=+i.secondaryGroupSize,c=i.groupSeparator||"",u=h[0],m=h[1],M=l.s<0,E=M?u.slice(1):u,U=E.length;if(o&&(s=a,a=o,o=s,U-=s),a>0&&U>0){for(s=U%a||a,u=E.substr(0,s);s<U;s+=a)u+=c+E.substr(s,a);o>0&&(u+=c+E.slice(s)),M&&(u="-"+u)}f=m?u+(i.decimalSeparator||"")+((o=+i.fractionGroupSize)?m.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):m):u}return(i.prefix||"")+f+(i.suffix||"")},B.toFraction=function(e){var r,i,f,l,s,h,a,o,c,u,m,M,E=this,U=E.c;if(e!=null&&(a=new b(e),!a.isInteger()&&(a.c||a.s!==1)||a.lt(H)))throw Error(O+"Argument "+(a.isInteger()?"out of range: ":"not an integer: ")+ue(a));if(!U)return new b(E);for(r=new b(H),c=i=new b(H),f=o=new b(H),M=_(U),s=r.e=M.length-E.e-1,r.c[0]=C[(h=s%d)<0?d+h:h],e=!e||a.comparedTo(r)>0?s>0?r:c:a,h=ae,ae=1/0,a=new b(M),o.c[0]=0;u=x(a,r,0,1),l=i.plus(u.times(f)),l.comparedTo(e)!=1;)i=f,f=l,c=o.plus(u.times(l=c)),o=l,r=a.minus(u.times(l=r)),a=l;return l=x(e.minus(i),f,0,1),o=o.plus(l.times(c)),i=i.plus(l.times(f)),o.s=c.s=E.s,s=s*2,m=x(c,f,s,G).minus(E).abs().comparedTo(x(o,i,s,G).minus(E).abs())<1?[c,f]:[o,i],ae=h,m},B.toNumber=function(){return+ue(this)},B.toPrecision=function(e,r){return e!=null&&T(e,1,D),Ee(this,e,r,2)},B.toString=function(e){var r,i=this,f=i.s,l=i.e;return l===null?f?(r="Infinity",f<0&&(r="-"+r)):r="NaN":(e==null?r=l<=ee||l>=re?te(_(i.c),l):R(_(i.c),l,"0"):e===10&&Me?(i=ne(new b(i),q+l+1,G),r=R(_(i.c),i.e,"0")):(T(e,2,ge.length,"Base"),r=L(R(_(i.c),l,"0"),10,e,f,!0)),f<0&&i.c[0]&&(r="-"+r)),r},B.valueOf=B.toJSON=function(){return ue(this)},B._isBigNumber=!0,N!=null&&b.set(N),b}function k(N){var x=N|0;return N>0||N===x?x:x-1}function _(N){for(var x,L,I=1,B=N.length,H=N[0]+"";I<B;){for(x=N[I++]+"",L=d-x.length;L--;x="0"+x);H+=x}for(B=H.length;H.charCodeAt(--B)===48;);return H.slice(0,B+1||1)}function F(N,x){var L,I,B=N.c,H=x.c,q=N.s,G=x.s,ee=N.e,re=x.e;if(!q||!G)return null;if(L=B&&!B[0],I=H&&!H[0],L||I)return L?I?0:-G:q;if(q!=G)return q;if(L=q<0,I=ee==re,!B||!H)return I?0:!B^L?1:-1;if(!I)return ee>re^L?1:-1;for(G=(ee=B.length)<(re=H.length)?ee:re,q=0;q<G;q++)if(B[q]!=H[q])return B[q]>H[q]^L?1:-1;return ee==re?0:ee>re^L?1:-1}function T(N,x,L,I){if(N<x||N>L||N!==v(N))throw Error(O+(I||"Argument")+(typeof N=="number"?N<x||N>L?" out of range: ":" not an integer: ":" not a primitive number: ")+String(N))}function Q(N){var x=N.c.length-1;return k(N.e/d)==x&&N.c[x]%2!=0}function te(N,x){return(N.length>1?N.charAt(0)+"."+N.slice(1):N)+(x<0?"e":"e+")+x}function R(N,x,L){var I,B;if(x<0){for(B=L+".";++x;B+=L);N=B+N}else if(I=N.length,++x>I){for(B=L,x-=I;--x;B+=L);N+=B}else x<I&&(N=N.slice(0,x)+"."+N.slice(x));return N}p=X(),p.default=p.BigNumber=p,n.exports?n.exports=p:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=p)})(gt)})(Ke);var Je=Ke.exports;const le=Fe(),Pt=Re(),Ut=Ie,Rt=Je,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:Qe,decimalSuffixes:Be}=le.currentBytes(),Ve={general:{scale:1024,suffixes:Be},binary:{scale:1024,suffixes:Qe},decimal:{scale:1e3,suffixes:Be}};function It(n,t={},p){if(typeof t=="string"&&(t=Ut.parseFormat(t)),!Pt.validateFormat(t))return"ERROR: invalid format";let y=t.prefix||"",v=t.postfix||"",O=Ft(n,t,p);return O=ar(O,y),O=lr(O,v),O}function Ft(n,t,p){switch(t.output){case"currency":return t=ye(t,le.currentCurrencyDefaultFormat()),Wt(n,t,le);case"percent":return t=ye(t,le.currentPercentageDefaultFormat()),Ht(n,t,le,p);case"byte":return t=ye(t,le.currentByteDefaultFormat()),jt(n,t,le,p);case"time":return t=ye(t,le.currentTimeDefaultFormat()),Zt(n);case"ordinal":return t=ye(t,le.currentOrdinalDefaultFormat()),zt(n,t,le);default:return xe({instance:n,providedFormat:t})}}function Vt(n){let t=Ve.decimal;return Se(n._value,t.suffixes,t.scale).suffix}function qt(n){let t=Ve.binary;return Se(n._value,t.suffixes,t.scale).suffix}function Gt(n){let t=Ve.general;return Se(n._value,t.suffixes,t.scale).suffix}function Se(n,t,p){let g=t[0],y=Math.abs(n);if(y>=p){for(let v=1;v<t.length;++v){let O=Math.pow(p,v),$=Math.pow(p,v+1);if(y>=O&&y<$){g=t[v],n=n/O;break}}g===t[0]&&(n=n/Math.pow(p,t.length-1),g=t[t.length-1])}return{value:n,suffix:g}}function jt(n,t,p,g){let y=t.base||"binary",v=Object.assign({},be,t);const{binarySuffixes:O,decimalSuffixes:$}=p.currentBytes();let d={general:{scale:1024,suffixes:$||Be,marker:"bd"},binary:{scale:1024,suffixes:O||Qe,marker:"b"},decimal:{scale:1e3,suffixes:$||Be,marker:"d"}}[y],{value:S,suffix:C}=Se(n._value,d.suffixes,d.scale);return`${xe({instance:g(S),providedFormat:t,state:p,defaults:p.currentByteDefaultFormat()})}${v.spaceSeparated?" ":""}${C}`}function zt(n,t,p){let g=p.currentOrdinal(),y=Object.assign({},be,t),v=xe({instance:n,providedFormat:t,state:p}),O=g(n._value);return`${v}${y.spaceSeparated?" ":""}${O}`}function Zt(n){let t=Math.floor(n._value/60/60),p=Math.floor((n._value-t*60*60)/60),g=Math.round(n._value-t*60*60-p*60);return`${t}:${p<10?"0":""}${p}:${g<10?"0":""}${g}`}function Ht(n,t,p,g){let y=t.prefixSymbol,v=xe({instance:g(n._value*100),providedFormat:t,state:p}),O=Object.assign({},be,t);return y?`%${O.spaceSeparated?" ":""}${v}`:`${v}${O.spaceSeparated?" ":""}%`}function Wt(n,t,p){const g=p.currentCurrency();let y=Object.assign({},t),v=Object.assign({},be,y),O,$="",w=!!v.totalLength||!!v.forceAverage||v.average,d=y.currencyPosition||g.position,S=y.currencySymbol||g.symbol;const C=v.spaceSeparatedCurrency!==void 0?v.spaceSeparatedCurrency:v.spaceSeparated;y.lowPrecision===void 0&&(y.lowPrecision=!1),C&&($=" "),d==="infix"&&(O=$+S+$);let A=xe({instance:n,providedFormat:y,state:p,decimalSeparator:O});return d==="prefix"&&(n._value<0&&v.negative==="sign"?A=`-${$}${S}${A.slice(1)}`:n._value>0&&v.forceSign?A=`+${$}${S}${A.slice(1)}`:A=S+$+A),(!d||d==="postfix")&&($=!v.spaceSeparatedAbbreviation&&w?"":$,A=A+$+S),A}function Xt({value:n,forceAverage:t,lowPrecision:p=!0,abbreviations:g,spaceSeparated:y=!1,totalLength:v=0,roundingFunction:O=Math.round}){let $="",w=Math.abs(n),d=-1;if(t&&g[t]&&Y[t]?($=g[t],n=n/Y[t]):w>=Y.trillion||p&&O(w/Y.trillion)===1?($=g.trillion,n=n/Y.trillion):w<Y.trillion&&w>=Y.billion||p&&O(w/Y.billion)===1?($=g.billion,n=n/Y.billion):w<Y.billion&&w>=Y.million||p&&O(w/Y.million)===1?($=g.million,n=n/Y.million):(w<Y.million&&w>=Y.thousand||p&&O(w/Y.thousand)===1)&&($=g.thousand,n=n/Y.thousand),$&&($=(y?" ":"")+$),v){let C=n<0,A=n.toString().split(".")[0],D=C?A.length-1:A.length;d=Math.max(v-D,0)}return{value:n,abbreviation:$,mantissaPrecision:d}}function Yt({value:n,characteristicPrecision:t}){let[p,g]=n.toExponential().split("e"),y=+p;if(!t)return{value:y,abbreviation:`e${g}`};let v=1;return v<t&&(y=y*Math.pow(10,t-v),g=+g-(t-v),g=g>=0?`+${g}`:g),{value:y,abbreviation:`e${g}`}}function Ne(n){let t="";for(let p=0;p<n;p++)t+="0";return t}function Kt(n,t){let p=n.toString(),[g,y]=p.split("e"),[v,O=""]=g.split(".");if(+y>0)p=v+O+Ne(y-O.length);else{let $=".";+v<0?$=`-0${$}`:$=`0${$}`;let w=(Ne(-y-1)+Math.abs(v)+O).substr(0,t);w.length<t&&(w+=Ne(t-w.length)),p=$+w}return+y>0&&t>0&&(p+=`.${Ne(t)}`),p}function Jt(n,t,p=Math.round){return n.toString().indexOf("e")!==-1?Kt(n,t):new Rt(p(+`${n}e+${t}`)/Math.pow(10,t)).toFixed(t)}function Qt(n,t,p,g,y,v){if(g===-1)return n;let O=Jt(t,g,v),[$,w=""]=O.toString().split(".");if(w.match(/^0+$/)&&(p||y))return $;let d=w.match(/0+$/);return y&&d?`${$}.${w.toString().slice(0,d.index)}`:O.toString()}function er(n,t,p,g){let y=n,[v,O]=y.toString().split(".");if(v.match(/^-?0$/)&&p)return O?`${v.replace("0","")}.${O}`:v.replace("0","");const $=t<0&&v.indexOf("-")===0;if($&&(v=v.slice(1),y=y.slice(1)),v.length<g){let w=g-v.length;for(let d=0;d<w;d++)y=`0${y}`}return $&&(y=`-${y}`),y.toString()}function tr(n,t){let p=[],g=0;for(let y=n;y>0;y--)g===t&&(p.unshift(y),g=0),g++;return p}function rr(n,t,p,g,y){let v=g.currentDelimiters(),O=v.thousands;y=y||v.decimal;let $=v.thousandsSize||3,w=n.toString(),d=w.split(".")[0],S=w.split(".")[1];const C=t<0&&d.indexOf("-")===0;return p&&(C&&(d=d.slice(1)),tr(d.length,$).forEach((D,X)=>{d=d.slice(0,D+X)+O+d.slice(D+X)}),C&&(d=`-${d}`)),S?w=d+y+S:w=d,w}function nr(n,t){return n+t}function ir(n,t,p){return t===0?n:+n==0?n.replace("-",""):t>0?`+${n}`:p==="sign"?n:`(${n.replace("-","")})`}function ar(n,t){return t+n}function lr(n,t){return n+t}function xe({instance:n,providedFormat:t,state:p=le,decimalSeparator:g,defaults:y=p.currentDefaults()}){let v=n._value;if(v===0&&p.hasZeroFormat())return p.getZeroFormat();if(!isFinite(v))return v.toString();let O=Object.assign({},be,y,t),$=O.totalLength,w=$?0:O.characteristic,d=O.optionalCharacteristic,S=O.forceAverage,C=O.lowPrecision,A=!!$||!!S||O.average,D=$?-1:A&&t.mantissa===void 0?0:O.mantissa,X=$?!1:t.optionalMantissa===void 0?D===-1:O.optionalMantissa,k=O.trimMantissa,_=O.thousandSeparated,F=O.spaceSeparated,T=O.negative,Q=O.forceSign,te=O.exponential,R=O.roundingFunction,N="";if(A){let L=Xt({value:v,forceAverage:S,lowPrecision:C,abbreviations:p.currentAbbreviations(),spaceSeparated:F,roundingFunction:R,totalLength:$});v=L.value,N+=L.abbreviation,$&&(D=L.mantissaPrecision)}if(te){let L=Yt({value:v,characteristicPrecision:w});v=L.value,N=L.abbreviation+N}let x=Qt(v.toString(),v,X,D,k,R);return x=er(x,v,d,w),x=rr(x,v,_,p,g),(A||te)&&(x=nr(x,N)),(Q||v<0)&&(x=ir(x,v,T)),x}function ye(n,t){if(!n)return t;let p=Object.keys(n);return p.length===1&&p[0]==="output"?t:n}var or=n=>({format:(...t)=>It(...t,n),getByteUnit:(...t)=>Gt(...t,n),getBinaryByteUnit:(...t)=>qt(...t,n),getDecimalByteUnit:(...t)=>Vt(...t,n),formatOrDefault:ye});const fe=Je;function sr(n,t,p){let g=new fe(n._value),y=t;return p.isNumbro(t)&&(y=t._value),y=new fe(y),n._value=g.plus(y).toNumber(),n}function et(n,t,p){let g=new fe(n._value),y=t;return p.isNumbro(t)&&(y=t._value),y=new fe(y),n._value=g.minus(y).toNumber(),n}function ur(n,t,p){let g=new fe(n._value),y=t;return p.isNumbro(t)&&(y=t._value),y=new fe(y),n._value=g.times(y).toNumber(),n}function fr(n,t,p){let g=new fe(n._value),y=t;return p.isNumbro(t)&&(y=t._value),y=new fe(y),n._value=g.dividedBy(y).toNumber(),n}function cr(n,t,p){let g=t;return p.isNumbro(t)&&(g=t._value),n._value=g,n}function hr(n,t,p){let g=p(n._value);return et(g,t,p),Math.abs(g._value)}var pr=n=>({add:(t,p)=>sr(t,p,n),subtract:(t,p)=>et(t,p,n),multiply:(t,p)=>ur(t,p,n),divide:(t,p)=>fr(t,p,n),set:(t,p)=>cr(t,p,n),difference:(t,p)=>hr(t,p,n),BigNumber:fe});const gr="2.5.0",se=Fe(),dr=Re(),mr=kt(Z),yr=Ye();let de=or(Z),me=pr(Z);const vr=Ie;class tt{constructor(t){this._value=t}clone(){return Z(this._value)}format(t={}){return de.format(this,t)}formatCurrency(t){return typeof t=="string"&&(t=vr.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,rt(t))}value(){return this._value}valueOf(){return this._value}}function rt(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 tt(rt(n))}Z.version=gr;Z.isNumbro=function(n){return n instanceof tt};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=dr.validate;Z.loadLanguagesInNode=mr.loadLanguagesInNode;Z.unformat=yr.unformat;Z.BigNumber=me.BigNumber;var wr=Z,Sr=dt(wr);export{Nr as C,Or as _,Br as i,Sr as n};