From 6742972fe7a90cd8f78d63776782caae752efd56 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 28 Feb 2021 18:20:42 +0100 Subject: [PATCH] Removed line break at end of file for same hash with original file (#285) --- resources/ethjs/0.3.4/ethjs.min.jsm | 2 +- .../videojs-seek-buttons/1.6.0/videojs-seek-buttons.min.css | 2 +- resources/vue-i18n/9.0.0/vue-i18n.min.jsm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/ethjs/0.3.4/ethjs.min.jsm b/resources/ethjs/0.3.4/ethjs.min.jsm index b7d8c762..93c16c5e 100644 --- a/resources/ethjs/0.3.4/ethjs.min.jsm +++ b/resources/ethjs/0.3.4/ethjs.min.jsm @@ -9,4 +9,4 @@ if(Array.isArray(r)!==!0)throw Error("[ethjs-util] method arrayContainsArray req * @license MIT */ !function(i){"use strict";function n(t,r,e){this.blocks=[],this.s=[],this.padding=r,this.outputBits=e,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=e>>5,this.extraBytes=(31&e)>>3;for(var i=0;50>i;++i)this.s[i]=0}var o="object"==typeof r&&r.versions&&r.versions.node;o&&(i=e);for(var s=!i.JS_SHA3_TEST&&"object"==typeof t&&t.exports,h="0123456789abcdef".split(""),u=[31,7936,2031616,520093696],a=[1,256,65536,16777216],f=[6,1536,393216,100663296],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],d=[128,256],m=["hex","buffer","arrayBuffer","array"],g=function(t,r,e){return function(i){return new n(t,r,t).update(i)[e]()}},v=function(t,r,e){return function(i,o){return new n(t,r,o).update(i)[e]()}},y=function(t,r){var e=g(t,r,"hex");e.create=function(){return new n(t,r,t)},e.update=function(t){return e.create().update(t)};for(var i=0;m.length>i;++i){var o=m[i];e[o]=g(t,r,o)}return e},w=function(t,r){var e=v(t,r,"hex");e.create=function(e){return new n(t,r,e)},e.update=function(t,r){return e.create(r).update(t)};for(var i=0;m.length>i;++i){var o=m[i];e[o]=v(t,r,o)}return e},M=[{name:"keccak",padding:a,bits:p,createMethod:y},{name:"sha3",padding:f,bits:p,createMethod:y},{name:"shake",padding:u,bits:d,createMethod:w}],b={},_=0;M.length>_;++_)for(var E=M[_],A=E.bits,x=0;A.length>x;++x)b[E.name+"_"+A[x]]=E.createMethod(A[x],E.padding);n.prototype.update=function(t){var r="string"!=typeof t;r&&t.constructor==i.ArrayBuffer&&(t=new Uint8Array(t));for(var e,n,o=t.length,s=this.blocks,h=this.byteCount,u=this.blockCount,a=0,f=this.s;o>a;){if(this.reset)for(this.reset=!1,s[0]=this.block,e=1;u+1>e;++e)s[e]=0;if(r)for(e=this.start;o>a&&h>e;++a)s[e>>2]|=t[a]<a&&h>e;++a)n=t.charCodeAt(a),128>n?s[e>>2]|=n<n?(s[e>>2]|=(192|n>>6)<>2]|=(128|63&n)<n||n>=57344?(s[e>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<e)this.start=e;else{for(this.start=e-h,this.block=s[u],e=0;u>e;++e)f[e]^=s[e];S(f),this.reset=!0}}return this},n.prototype.finalize=function(){var t=this.blocks,r=this.lastByteIndex,e=this.blockCount,i=this.s;if(t[r>>2]|=this.padding[3&r],this.lastByteIndex==this.byteCount)for(t[0]=t[e],r=1;e+1>r;++r)t[r]=0;for(t[e-1]|=2147483648,r=0;e>r;++r)i[r]^=t[r];S(i)},n.prototype.toString=n.prototype.hex=function(){this.finalize();for(var t,r=this.blockCount,e=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,u="";i>s;){for(o=0;r>o&&i>s;++o,++s)t=e[o],u+=h[t>>4&15]+h[15&t]+h[t>>12&15]+h[t>>8&15]+h[t>>20&15]+h[t>>16&15]+h[t>>28&15]+h[t>>24&15];s%r==0&&(S(e),o=0)}return n&&(t=e[o],n>0&&(u+=h[t>>4&15]+h[15&t]),n>1&&(u+=h[t>>12&15]+h[t>>8&15]),n>2&&(u+=h[t>>20&15]+h[t>>16&15])),u},n.prototype.arrayBuffer=function(){this.finalize();var t,r=this.blockCount,e=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,h=this.outputBits>>3;t=n?new ArrayBuffer(i+1<<2):new ArrayBuffer(h);for(var u=new Uint32Array(t);i>s;){for(o=0;r>o&&i>s;++o,++s)u[s]=e[o];s%r==0&&S(e)}return n&&(u[o]=e[o],t=t.slice(0,h)),t},n.prototype.buffer=n.prototype.arrayBuffer,n.prototype.digest=n.prototype.array=function(){this.finalize();for(var t,r,e=this.blockCount,i=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,h=0,u=[];n>h;){for(s=0;e>s&&n>h;++s,++h)t=h<<2,r=i[s],u[t]=255&r,u[t+1]=r>>8&255,u[t+2]=r>>16&255,u[t+3]=r>>24&255;h%e==0&&S(i)}return o&&(t=h<<2,r=i[s],o>0&&(u[t]=255&r),o>1&&(u[t+1]=r>>8&255),o>2&&(u[t+2]=r>>16&255)),u};var S=function(t){var r,e,i,n,o,s,h,u,a,f,l,p,d,m,g,v,y,w,M,b,_,E,A,x,S,B,T,k,j,D,P,R,O,C,I,Q,N,U,q,L,F,H,Y,z,Z,J,K,$,W,V,G,X,tt,rt,et,it,nt,ot,st,ht,ut,at,ft;for(i=0;48>i;i+=2)n=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],h=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],p=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],r=p^(s<<1|h>>>31),e=d^(h<<1|s>>>31),t[0]^=r,t[1]^=e,t[10]^=r,t[11]^=e,t[20]^=r,t[21]^=e,t[30]^=r,t[31]^=e,t[40]^=r,t[41]^=e,r=n^(u<<1|a>>>31),e=o^(a<<1|u>>>31),t[2]^=r,t[3]^=e,t[12]^=r,t[13]^=e,t[22]^=r,t[23]^=e,t[32]^=r,t[33]^=e,t[42]^=r,t[43]^=e,r=s^(f<<1|l>>>31),e=h^(l<<1|f>>>31),t[4]^=r,t[5]^=e,t[14]^=r,t[15]^=e,t[24]^=r,t[25]^=e,t[34]^=r,t[35]^=e,t[44]^=r,t[45]^=e,r=u^(p<<1|d>>>31),e=a^(d<<1|p>>>31),t[6]^=r,t[7]^=e,t[16]^=r,t[17]^=e,t[26]^=r,t[27]^=e,t[36]^=r,t[37]^=e,t[46]^=r,t[47]^=e,r=f^(n<<1|o>>>31),e=l^(o<<1|n>>>31),t[8]^=r,t[9]^=e,t[18]^=r,t[19]^=e,t[28]^=r,t[29]^=e,t[38]^=r,t[39]^=e,t[48]^=r,t[49]^=e,m=t[0],g=t[1],J=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,k=t[20]<<3|t[21]>>>29,j=t[21]<<3|t[20]>>>29,ht=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,Y=t[41]<<18|t[40]>>>14,C=t[2]<<1|t[3]>>>31,I=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,$=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,D=t[33]<<13|t[32]>>>19,P=t[32]<<13|t[33]>>>19,at=t[42]<<2|t[43]>>>30,ft=t[43]<<2|t[42]>>>30,rt=t[5]<<30|t[4]>>>2,et=t[4]<<30|t[5]>>>2,Q=t[14]<<6|t[15]>>>26,N=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,M=t[24]<<11|t[25]>>>21,V=t[34]<<15|t[35]>>>17,G=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,O=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,it=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,q=t[27]<<25|t[26]>>>7,b=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,z=t[8]<<27|t[9]>>>5,Z=t[9]<<27|t[8]>>>5,B=t[18]<<20|t[19]>>>12,T=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,F=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=m^~v&w,t[1]=g^~y&M,t[10]=x^~B&k,t[11]=S^~T&j,t[20]=C^~Q&U,t[21]=I^~N&q,t[30]=z^~J&$,t[31]=Z^~K&W,t[40]=rt^~it&ot,t[41]=et^~nt&st,t[2]=v^~w&b,t[3]=y^~M&_,t[12]=B^~k&D,t[13]=T^~j&P,t[22]=Q^~U&L,t[23]=N^~q&F,t[32]=J^~$&V,t[33]=K^~W&G,t[42]=it^~ot&ht,t[43]=nt^~st&ut,t[4]=w^~b&E,t[5]=M^~_&A,t[14]=k^~D&R,t[15]=j^~P&O,t[24]=U^~L&H,t[25]=q^~F&Y,t[34]=$^~V&X,t[35]=W^~G&tt,t[44]=ot^~ht&at,t[45]=st^~ut&ft,t[6]=b^~E&m,t[7]=_^~A&g,t[16]=D^~R&x,t[17]=P^~O&S,t[26]=L^~H&C,t[27]=F^~Y&I,t[36]=V^~X&z,t[37]=G^~tt&Z,t[46]=ht^~at&rt,t[47]=ut^~ft&et,t[8]=E^~m&v,t[9]=A^~g&y,t[18]=R^~x&B,t[19]=O^~S&T,t[28]=H^~C&Q,t[29]=Y^~I&N,t[38]=X^~z&J,t[39]=tt^~Z&K,t[48]=at^~rt&it,t[49]=ft^~et&nt,t[0]^=c[i],t[1]^=c[i+1]};if(s)t.exports=b;else if(i)for(var B in b)i[B]=b[B]}(this)}).call(r,e(23),e(9))},function(t,r,e){var i=e(8);t.exports=function(t){return"string"!=typeof t?t:i(t)?t.slice(2):t}},function(t,r,e){"use strict";(function(r){function i(){}function n(t,e){function i(t){return parseInt(32*Math.ceil(t/32))}if(t.length!==e.length)throw Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+t.length+" types (arguments), and you passed in "+e.length);var n=[];t.forEach(function(t,r){var i=m(t);n.push({dynamic:i.dynamic,value:i.encode(e[r])})});var o=0,s=0;n.forEach(function(t){t.dynamic?(o+=32,s+=i(t.value.length)):o+=i(t.value.length)});var h=0,u=o,a=new r(o+s);return n.forEach(function(t,r){t.dynamic?(d.encode(u).copy(a,h),h+=32,t.value.copy(a,u),u+=i(t.value.length)):(t.value.copy(a,h),h+=i(t.value.length))}),"0x"+a.toString("hex")}function o(t,r,e){var n=3>=arguments.length||void 0===arguments[3]||arguments[3];3>arguments.length&&(e=r,r=t,t=[]),e=p.hexOrBuffer(e);var o=new i,s=0;return r.forEach(function(r,i){var h=m(r);if(h.dynamic){var u=d.decode(e,s),a=h.decode(e,u.value.toNumber());s+=u.consumed}else{var a=h.decode(e,s);s+=a.consumed}n&&(o[i]=a.value),t[i]&&(o[t[i]]=a.value)}),o}function s(t,e){var i=t.name+"("+p.getKeys(t.inputs,"type").join(",")+")",o="0x"+new r(p.keccak256(i),"hex").slice(0,4).toString("hex"),s=n(p.getKeys(t.inputs,"type"),e).substring(2);return""+o+s}function h(t,r){var e=p.getKeys(t.outputs,"name",!0),i=p.getKeys(t.outputs,"type");return o(e,i,p.hexOrBuffer(r))}function u(t,r){return s(t,r)}function a(t){var r=t.name+"("+p.getKeys(t.inputs,"type").join(",")+")";return"0x"+p.keccak256(r)}function f(t,e,i){var n=3>=arguments.length||void 0===arguments[3]||arguments[3],s=t.inputs.filter(function(t){return!t.indexed}),h=p.getKeys(s,"name",!0),u=p.getKeys(s,"type"),a=o(h,u,p.hexOrBuffer(e),n),f=t.anonymous?0:1;return t.inputs.filter(function(t){return t.indexed}).map(function(t,e){var n=new r(i[e+f].slice(2),"hex"),o=m(t.type);a[t.name]=o.decode(n,0).value}),a._eventName=t.name,a}function l(t,r){var e=2>=arguments.length||void 0===arguments[2]||arguments[2];if(t&&r.topics[0]===a(t))return f(t,r.data,r.topics,e)}function c(t){var r=1>=arguments.length||void 0===arguments[1]||arguments[1],e={};return t.filter(function(t){return"event"===t.type}).map(function(t){e[a(t)]=t}),function(t){return t.map(function(t){return l(e[t.topics[0]],t,r)}).filter(function(t){return t})}}var p=e(13),d=p.uint256Coder,m=p.getParamCoder;t.exports={encodeParams:n,decodeParams:o,encodeMethod:s,decodeMethod:h,encodeEvent:u,decodeEvent:f,decodeLogItem:l,logDecoder:c,eventSignature:a}}).call(r,e(0).Buffer)},function(t,r){"use strict";function e(t,r){function e(t){var e=this;e.filterId=null,e.options=Object.assign({delay:300,decoder:function(t){return t},defaultFilterObject:{}},t||{}),e.watchers={},e.interval=setInterval(function(){null!==e.filterId&&Object.keys(e.watchers).length>0&&r.getFilterChanges(e.filterId,function(t,r){var i=[],n=null;if(!t)try{r.forEach(function(t,n){i[n]=r[n],i[n].data=e.options.decoder(i[n].data)})}catch(o){n=Error("[ethjs-filter] while decoding filter change event data from RPC '"+JSON.stringify(i)+"': "+o)}Object.keys(e.watchers).forEach(function(o){var s=e.watchers[o];return s.stop===!0?void delete e.watchers[o]:void(n?(s.reject(n),s.callback(n,null)):(t?s.reject(t):Array.isArray(i)&&r.length>0&&s.resolve(i),s.callback(t,i)))})})},e.options.delay)}return e.prototype.at=function(t){var r=this;r.filterId=t},e.prototype.watch=function(t){var r=t||function(){},e=this,i=Math.random().toString(36).substring(7),n=new Promise(function(t,n){e.watchers[i]={resolve:t,reject:n,callback:r,stop:!1}});return n.stopWatching=function(){e.watchers[i].stop=!0},n},e.prototype.uninstall=function(t){var e=this,i=t||function(){};return e.watchers=Object.assign({}),clearInterval(e.interval),new Promise(function(t,n){r.uninstallFilter(e.filterId,function(r,e){r?n(r):t(e),i(r,e)})})},e.prototype["new"]=function(){var e=function(){},i=this,n=[],o=[].slice.call(arguments);return"function"==typeof o[o.length-1]&&(e=o.pop()),"Filter"===t&&n.push(Object.assign(i.options.defaultFilterObject,o[o.length-1]||{})),new Promise(function(o,s){n.push(function(t,r){t?s(t):(i.filterId=r,o(r)),e(t,r)}),r["new"+t].apply(r,n)})},e}function i(t){var r=this;if(!(r instanceof i))throw Error("the EthFilter object must be instantiated with `new` flag.. (e.g. `const filters = new EthFilter(query);`)");if("object"!=typeof t)throw Error("the EthFilter object must be instantiated with an EthQuery instance (e.g. `const filters = new EthFilter(new EthQuery(provider));`). See github.com/ethjs/ethjs-query for more details..");r.Filter=e("Filter",t),r.BlockFilter=e("BlockFilter",t),r.PendingTransactionFilter=e("PendingTransactionFilter",t)}t.exports=i},function(t,r){t.exports=function(t){if("string"!=typeof t)throw Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";(function(r){function i(t,r){if(!(this instanceof i))throw Error('[ethjs] the Eth object requires you construct it with the "new" flag (i.e. `const eth = new Eth(...);`).');var e=this;e.options=r||{};var h=new n(t,e.options.query);Object.keys(Object.getPrototypeOf(h)).forEach(function(t){e[t]=function(){for(var r=arguments.length,e=Array(r),i=0;r>i;i++)e[i]=arguments[i];return h[t].apply(h,e)}}),e.filter=new o(h,e.options.query),e.contract=new s(h,e.options.query),e.currentProvider=h.rpc.currentProvider,e.setProvider=h.setProvider,e.getTransactionSuccess=d(e)}var n=e(17),o=e(7),s=e(14),h=e(16),u=e(6),a=e(19),f=e(4).keccak_256,l=e(3),c=e(1),p=e(2),d=e(11);t.exports=i,i.BN=c,i.isAddress=function(t){return p.isHexString(t,20)},i.keccak256=function(t){return"0x"+f(t)},i.Buffer=r,i.isHexString=p.isHexString,i.fromWei=a.fromWei,i.toWei=a.toWei,i.toBN=l,i.abi=u,i.fromAscii=p.fromAscii,i.toAscii=p.toAscii,i.fromUtf8=p.fromUtf8,i.toUtf8=p.toUtf8,i.HttpProvider=h}).call(r,e(0).Buffer)},function(t,r){"use strict";t.exports=function(t){return function(r,e){var i=0,n=t.options.timeout||8e5,o=t.options.interval||7e3,s=function(){},h=e||s;return new Promise(function(e,s){var u=setInterval(function(){if(t.getTransactionReceipt(r,function(t,r){t&&(clearInterval(u),h(t,null),s(t)),!t&&r&&(clearInterval(u),h(null,r),e(r))}),i>=n){clearInterval(u);var a="Receipt timeout waiting for tx hash: "+r;h(a,null),s(a)}i+=o},o)})}}},function(t,r){"use strict";function e(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");return"="===t[r-2]?2:"="===t[r-1]?1:0}function i(t){return 3*t.length/4-e(t)}function n(t){var r,i,n,o,s,h=t.length;o=e(t),s=new f(3*h/4-o),i=o>0?h-4:h;var u=0;for(r=0;i>r;r+=4)n=a[t.charCodeAt(r)]<<18|a[t.charCodeAt(r+1)]<<12|a[t.charCodeAt(r+2)]<<6|a[t.charCodeAt(r+3)],s[u++]=n>>16&255,s[u++]=n>>8&255,s[u++]=255&n;return 2===o?(n=a[t.charCodeAt(r)]<<2|a[t.charCodeAt(r+1)]>>4,s[u++]=255&n):1===o&&(n=a[t.charCodeAt(r)]<<10|a[t.charCodeAt(r+1)]<<4|a[t.charCodeAt(r+2)]>>2,s[u++]=n>>8&255,s[u++]=255&n),s}function o(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,r,e){for(var i,n=[],s=r;e>s;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),n.push(o(i));return n.join("")}function h(t){for(var r,e=t.length,i=e%3,n="",o=[],h=16383,a=0,f=e-i;f>a;a+=h)o.push(s(t,a,a+h>f?f:a+h));return 1===i?(r=t[e-1],n+=u[r>>2],n+=u[r<<4&63],n+="=="):2===i&&(r=(t[e-2]<<8)+t[e-1],n+=u[r>>10],n+=u[r>>4&63],n+=u[r<<2&63],n+="="),o.push(n),o.join("")}r.byteLength=i,r.toByteArray=n,r.fromByteArray=h;for(var u=[],a=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,p=l.length;p>c;++c)u[c]=l[c],a[l.charCodeAt(c)]=c;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(t,r,e){"use strict";(function(r){function i(t){for(var r=t,e=r[0];r.length>0&&""+e=="0";)r=r.slice(1),e=r[0];return r}function n(t){var e=t,n=e.toString(16);return n.length%2&&(n="0"+n),i(new r(n,"hex"))}function o(t,r){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!r||t.length===2+2*r)}function s(t,e){var i=t;if(!r.isBuffer(i)){if(!o(i)){var n=Error(e?"[ethjs-abi] invalid "+e:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw n.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",n.value=i,n}i=i.substring(2),i.length%2&&(i="0"+i),i=new r(i,"hex")}return i}function h(t){return"number"==typeof t?"0x"+n(new m(t)).toString("hex"):t.mod||t.modulo?"0x"+n(t).toString("hex"):"0x"+s(t).toString("hex")}function u(t,r,e){var i=[];if(!Array.isArray(t))throw Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(t));for(var n=0;t.length>n;n++){var o=t[n][r];if(e&&!o)o="";else if("string"!=typeof o)throw Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");i.push(o)}return i}function a(t,e){return{encode:function(i){var n=i;return"object"==typeof n&&n.toString&&(n.toTwos||n.dividedToIntegerBy)&&(n=n.toString(10).split(".")[0]),"string"!=typeof n&&"number"!=typeof n||(n=(n+"").split(".")[0]),n=g(n),n=n.toTwos(8*t).maskn(8*t),e&&(n=n.fromTwos(8*t).toTwos(256)),n.toArrayLike(r,"be",32)},decode:function(r,i){var n=32-t,o=new m(r.slice(i+n,i+32));return o=e?o.fromTwos(8*t):o.maskn(8*t),{consumed:32,value:new m(o.toString(10))}}}}function f(t){return{encode:function(t){var e=t;if(e=s(e),32===e.length)return e;var i=new r(32);return i.fill(0),e.copy(i),i},decode:function(r,e){if(0!==r.length&&e+32>r.length)throw Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+t);return{consumed:32,value:"0x"+r.slice(e,e+t).toString("hex")}}}}function l(t){var e=parseInt(32*Math.ceil(t.length/32)),i=new r(e-t.length);return i.fill(0),r.concat([y.encode(t.length),t,i])}function c(t,r){if(0!==t.length&&r+32>t.length)throw Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(r+32));var e=y.decode(t,r).value;if(e=e.toNumber(),0!==t.length&&r+32+e>t.length)throw Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(r+32+e));return{consumed:parseInt(32+32*Math.ceil(e/32),10),value:t.slice(r+32,r+32+e)}}function p(t,e){return{encode:function(i){var n=new r(0),o=e;if(!Array.isArray(i))throw Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(o===-1&&(o=i.length,n=y.encode(o)),o!==i.length)throw Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+i.length);return i.forEach(function(e){n=r.concat([n,t.encode(e)])}),n},decode:function(r,i){var n,o=e,s=i,h=0;o===-1&&(n=y.decode(r,s),o=n.value.toNumber(),h+=n.consumed,s+=n.consumed);for(var u=[],a=0;o>a;a++){var f=t.decode(r,s);h+=f.consumed,s+=f.consumed,u.push(f.value)}return{consumed:h,value:u}},dynamic:e===-1}}function d(t){for(var r=t,e=null,i="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(r)+" is either invalid or unsupported by ethjs-abi.";r;){var n=r.match(E);if(!n)throw Error(i);r=r.substring(n[0].length);var o=n[2]||n[4]||n[5];switch(o){case"int":case"uint":if(e)throw Error(i);var s=parseInt(n[3]||256);if(0===s||s>256||s%8!==0)throw Error("[ethjs-abi] while getting param coder for type "+r+", invalid "+o+" width: "+r);e=a(s/8,"int"===o);break;case"bool":if(e)throw Error(i);e=w;break;case"string":if(e)throw Error(i);e=_;break;case"bytes":if(e)throw Error(i);if(n[3]){var h=parseInt(n[3]);if(0===h||h>32)throw Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+r+", size "+h+" should be 0 or greater than 32");e=f(h)}else e=b;break;case"address":if(e)throw Error(i);e=M;break;case"[]":if(!e||e.dynamic)throw Error(i);e=p(e,-1);break;default:if(!e||e.dynamic)throw Error(i);var u=parseInt(n[6]);e=p(e,u)}}if(!e)throw Error(i);return e}var m=e(1),g=e(3),v=e(4).keccak_256,y=a(32,!1),w={encode:function(t){return y.encode(t?1:0)},decode:function(t,r){var e=y.decode(t,r);return{consumed:e.consumed,value:!e.value.isZero()}}},M={encode:function(t){var e=t,i=new r(32);if(!o(e,20))throw Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return e=s(e),i.fill(0),e.copy(i,12),i},decode:function(t,r){if(0===t.length)return{consumed:32,value:"0x"};if(0!==t.length&&r+32>t.length)throw Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+t.length);return{consumed:32,value:"0x"+t.slice(r+12,r+32).toString("hex")}}},b={encode:function(t){return l(s(t))},decode:function(t,r){var e=c(t,r);return e.value="0x"+e.value.toString("hex"),e},dynamic:!0},_={encode:function(t){return l(new r(t,"utf8"))},decode:function(t,r){var e=c(t,r);return e.value=e.value.toString("utf8"),e},dynamic:!0},E=RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:m,bnToBuffer:n,isHexString:o,hexOrBuffer:s,hexlify:h,stripZeros:i,keccak256:v,getKeys:u,numberToBN:g,coderNumber:a,uint256Coder:y,coderBoolean:w,coderFixedBytes:f,coderAddress:M,coderDynamicBytes:b,coderString:_,coderArray:p,paramTypePart:E,getParamCoder:d}}).call(r,e(0).Buffer)},function(t,r,e){"use strict";function i(t){var r=["from","to","data","value","gasPrice","gas"];return!("object"!=typeof t||Array.isArray(t)!==!0||0>=t.length||"object"!=typeof t[t.length-1]||0!==Object.keys(t[t.length-1]).length&&!c(Object.keys(t[t.length-1]),r,!0))}function n(t){return t.filter(function(t){return"constructor"===t.type})[0]}function o(t){return t.filter(function(t){return("function"===t.type||"event"===t.type)&&t.name.length>0})}function s(t){return function(r,e,s){if(!Array.isArray(r))throw Error("[ethjs-contract] Contract ABI must be type Array, got type "+typeof r);if(void 0!==e&&"string"!=typeof e)throw Error("[ethjs-contract] Contract bytecode must be type String, got type "+typeof e);if(void 0!==s&&"object"!=typeof s)throw Error("[ethjs-contract] Contract default tx object must be type Object, got type "+typeof r);var h={};return h.at=function(n){function h(){var h=this;h.abi=r||[],h.query=t,h.address=n||"0x",h.bytecode=e||"0x",h.defaultTxObject=s||{},h.filters=new f(t),o(r).forEach(function(r){h[r.name]=function(){var e="call",n={},o=function(){},s=[].slice.call(arguments);if("function"==typeof s[s.length-1]&&(o=s.pop()),"function"===r.type)return new Promise(function(a,f){function l(t,i){if("call"!==e||t)"sendTransaction"!==e||t?(f(t),o(t,null)):(a(i),o(null,i));else try{var n=u.decodeMethod(r,i);a(n),o(null,n)}catch(s){var h=Error("[ethjs-contract] while formatting incoming raw call data "+JSON.stringify(i)+" "+s);f(h),o(h,null)}}i(s)&&(n=s.pop());var c=Object.assign({},h.defaultTxObject,n,{to:h.address});c.data=u.encodeMethod(r,s),r.constant===!1&&(e="sendTransaction"),t[e](c,l)});if("event"===r.type){var f=function(){var t=l(r.inputs,"type",!1),e="0x"+a(r.name+"("+t.join(",")+")"),i=[e],n=Object.assign({},s[0])||{};return{v:new h.filters.Filter(Object.assign({},n,{decoder:function(t){return u.decodeEvent(r,t,i)},defaultFilterObject:Object.assign({},s[0]||{},{to:h.address,topics:i})}))}}();if("object"==typeof f)return f.v}}})}return new h},h["new"]=function(){var o={},h=function(){},a=[].slice.call(arguments);"function"==typeof a[a.length-1]&&(h=a.pop()),i(a)&&(o=a.pop());var f=n(r),c=Object.assign({},s,o);if(e&&(c.data=e),f){var p=u.encodeParams(l(f.inputs,"type"),a).substring(2);c.data=""+c.data+p}return t.sendTransaction(c,h)},h}}function h(t){return s(t)}var u=e(6),a=e(4).keccak_256,f=e(7),l=e(2).getKeys,c=e(2).arrayContainsArray;t.exports=h},function(t,r,e){"use strict";function i(t,r){if(["string","number","object"].indexOf(typeof t)===-1||null===t)return t;var e=p(t);if(p(t).isNeg())throw Error("[ethjs-format] while formatting quantity '"+e.toString(10)+"', invalid negative number. Number must be positive or zero.");return r?"0x"+e.toString(16):e}function n(t,r){var e=t;return l.tags.indexOf(t)===-1&&(e=i(t,r)),e}function o(t,r){var e=t,i=0;if("string"==typeof t&&(e="0x"+m(d(t)),i=v(e)),"0x00"===e&&(e="0x0"),"number"==typeof r&&null!==t&&"0x"!==e&&"0x0"!==e&&(!/^[0-9A-Fa-f]+$/.test(d(e))||i!==2+2*r))throw Error("[ethjs-format] hex string '"+e+"' must be an alphanumeric "+(2+2*r)+" utf8 byte hex (chars: a-fA-F) string, is "+i+" bytes");return e}function s(t,r,e){var i=Object.assign({},r),n=null;if("string"==typeof t&&(n="Boolean|EthSyncing"===t?Object.assign({},l.objects.EthSyncing):"DATA|Transaction"===t?Object.assign({},l.objects.Transaction):Object.assign({},l.objects[t])),!g(Object.keys(r),n.__required))throw Error("[ethjs-format] object "+JSON.stringify(r)+" must contain properties: "+n.__required.join(", "));return Object.keys(n).forEach(function(t){"__required"!==t&&void 0!==r[t]&&(i[t]=u(n[t],r[t],e))}),i}function h(t,r,e,i){var n=r.slice(),o=t;if("Array|DATA"===t&&(o=["D"]),"FilterChange"===t&&"string"==typeof r[0]&&(o=["D32"]),e===!0&&"number"==typeof i&&i>r.length)throw Error("array "+JSON.stringify(r)+" must contain at least "+i+" params, but only contains "+r.length+".");return o=o.slice(),r.forEach(function(t,r){var i=0;o.length>1&&(i=r),n[r]=u(o[i],t,e)}),n}function u(t,r,e,u){var a=r;return"Q"===t?a=i(r,e):"Q|T"===t?a=n(r,e):"D"===t?a=o(r):"D20"===t?a=o(r,20):"D32"===t?a=o(r,32):"object"==typeof r&&null!==r&&Array.isArray(r)===!1?a=s(t,r,e):Array.isArray(r)&&(a=h(t,r,e,u)),a}function a(t,r){return u(l.methods[t][0],r,!0,l.methods[t][2])}function f(t,r){return u(l.methods[t][1],r,!1)}var l=e(22),c=e(2),p=e(3),d=e(5),m=c.padToEven,g=c.arrayContainsArray,v=c.getBinarySize;t.exports={schema:l,formatQuantity:i,formatQuantityOrTag:n,formatObject:s,formatArray:h,format:u,formatInputs:a,formatOutputs:f}},function(t,r,e){"use strict";function i(t,r){var e=Error("[ethjs-provider-http] Invalid JSON RPC response from provider\n host: "+r+"\n response: "+(t.responseText+"")+" "+JSON.stringify(t.responseText,null,2)+"\n responseURL: "+t.responseURL+"\n status: "+t.status+"\n statusText: "+t.statusText+"\n ");return e.value=t,e}function n(t,r){if(!(this instanceof n))throw Error('[ethjs-provider-http] the HttpProvider instance requires the "new" flag in order to function normally (e.g. `const eth = new Eth(new HttpProvider());`).');if("string"!=typeof t)throw Error('[ethjs-provider-http] the HttpProvider instance requires that the host be specified (e.g. `new HttpProvider("http://localhost:8545")` or via service like infura `new HttpProvider("http://ropsten.infura.io")`)');var e=this;e.host=t,e.timeout=r||0}var o=e(25);n.prototype.sendAsync=function(t,r){var e=this,n=new o;n.timeout=e.timeout,n.open("POST",e.host,!0),n.setRequestHeader("Content-Type","application/json"),n.onreadystatechange=function(){if(4===n.readyState&&1!==n.timeout){var t=n.responseText,o=null;try{t=JSON.parse(t)}catch(s){o=i(n,e.host)}r(o,t)}},n.ontimeout=function(){r("[ethjs-provider-http] CONNECTION TIMEOUT: http request timeout after "+e.timeout+" ms. (i.e. your connect has timed out for whatever reason, check your provider).",null)};try{n.send(JSON.stringify(t))}catch(s){r("[ethjs-provider-http] CONNECTION ERROR: Couldn't connect to node '"+e.host+"': "+JSON.stringify(s,null,2),null)}},t.exports=n},function(t,r,e){"use strict";function i(t,r){var e=this,n=r||{};if(!(this instanceof i))throw Error('[ethjs-query] the Eth object requires the "new" flag in order to function normally (i.e. `const eth = new Eth(provider);`).');if("object"!=typeof t)throw Error("[ethjs-query] the Eth object requires that the first input 'provider' must be an object, got '"+typeof t+"' (i.e. 'const eth = new Eth(provider);')");e.options=Object.assign({debug:n.debug||!1,logger:n.logger||console,jsonSpace:n.jsonSpace||0}),e.rpc=new s(t),e.setProvider=e.rpc.setProvider}function n(t,r){return function(){var e=null,i=null,n=this,s=[].slice.call(arguments),h=t.replace("eth_","");s.length>0&&"function"==typeof s[s.length-1]&&(e=s.pop());var u=new Promise(function(e,u){var a=function(r,i){if(r)u(r);else try{n.log("attempting method formatting for '"+h+"' with raw outputs: "+JSON.stringify(i,null,n.options.jsonSpace));var s=o.formatOutputs(t,i);n.log("method formatting success for '"+h+"' formatted result: "+JSON.stringify(s,null,n.options.jsonSpace)),e(s)}catch(a){var f=Error("[ethjs-query] while formatting outputs from RPC '"+JSON.stringify(i,null,n.options.jsonSpace)+"' for method '"+h+"' "+a);u(f)}};if(r[2]>s.length)return a(Error("[ethjs-query] method '"+h+"' requires at least "+r[2]+" input (format type "+r[0][0]+"), "+s.length+" provided. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));if(s.length>r[0].length)return a(Error("[ethjs-query] method '"+h+"' requires at most "+r[0].length+" params, "+s.length+" provided '"+JSON.stringify(s,null,n.options.jsonSpace)+"'. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));r[3]&&r[3]>s.length&&s.push("latest"),n.log("attempting method formatting for '"+h+"' with inputs "+JSON.stringify(s,null,n.options.jsonSpace));try{i=o.formatInputs(t,s),n.log("method formatting success for '"+h+"' with formatted result: "+JSON.stringify(i,null,n.options.jsonSpace))}catch(f){return a(Error("[ethjs-query] while formatting inputs '"+JSON.stringify(s,null,n.options.jsonSpace)+"' for method '"+h+"' error: "+f))}return n.rpc.sendAsync({method:t,params:i},a)});return e?void u.then(function(t){return e(null,t)})["catch"](function(t){return e(t,null)}):u}}var o=e(15),s=e(18);t.exports=i,i.prototype.log=function(t){var r=this;r.options.debug&&r.options.logger.log("[ethjs-query log] "+t)},Object.keys(o.schema.methods).forEach(function(t){Object.defineProperty(i.prototype,t.replace("eth_",""),{enumerable:!0,value:n(t,o.schema.methods[t])})})},function(t,r){"use strict";function e(t,r){var i=this,n=r||{};if(!(this instanceof e))throw Error('[ethjs-rpc] the EthRPC object requires the "new" flag in order to function normally (i.e. `const eth = new EthRPC(provider);`).');i.options=Object.assign({jsonSpace:n.jsonSpace||0,max:n.max||9999999999999}),i.idCounter=Math.floor(Math.random()*i.options.max),(i.setProvider=function(t){if("object"!=typeof t)throw Error("[ethjs-rpc] the EthRPC object requires that the first input 'provider' must be an object, got '"+typeof t+"' (i.e. 'const eth = new EthRPC(provider);')");i.currentProvider=t})(t)}function i(t,r){return Object.assign({},{id:r,jsonrpc:"2.0",params:[]},t)}t.exports=e,e.prototype.sendAsync=function(t,r){var e=this;e.idCounter=e.idCounter%e.options.max;var n=i(t,e.idCounter++),o=new Promise(function(t,r){e.currentProvider.sendAsync(n,function(i,o){var s=o||{};if(i||s.error){var h="[ethjs-rpc] "+(s.error&&"rpc"||"")+" error with payload "+JSON.stringify(n,null,e.options.jsonSpace)+" "+(i?i+"":JSON.stringify(s.error,null,e.options.jsonSpace)),u=Error(h);return u.value=i||s.error,void r(u)}t(s.result)})});return r?void o.then(function(t){r(null,t)})["catch"](function(t){r(t)}):o}},function(t,r,e){"use strict";function i(t){var r=t?t.toLowerCase():"ether",e=l[r];if("string"!=typeof e)throw Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(l,null,2));return new h(e,10)}function n(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return t+"";if("object"==typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?t.toPrecision()+"":t.toString(10);throw Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}function o(t,r,e){var n=u(t),o=n.lt(a),s=i(r),h=l[r].length-1||1,c=e||{};o&&(n=n.mul(f));for(var p=n.mod(s).toString(10);h>p.length;)p="0"+p;c.pad||(p=p.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var d=n.div(s).toString(10);c.commify&&(d=d.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=""+d+("0"==p?"":"."+p);return o&&(m="-"+m),m}function s(t,r){var e=n(t),o=i(r),s=l[r].length-1||1,u="-"===e.substring(0,1);if(u&&(e=e.substring(1)),"."===e)throw Error("[ethjs-unit] while converting number "+t+" to wei, invalid value");var a=e.split(".");if(a.length>2)throw Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var c=a[0],p=a[1];if(c||(c="0"),p||(p="0"),p.length>s)throw Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;s>p.length;)p+="0";c=new h(c),p=new h(p);var d=c.mul(o).add(p);return u&&(d=d.mul(f)),new h(d.toString(10),10)}var h=e(1),u=e(3),a=new h(0),f=new h((-1)),l={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000", -Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};t.exports={unitMap:l,numberToString:n,getValueOfUnit:i,fromWei:o,toWei:s}},function(t,r){r.read=function(t,r,e,i,n){var o,s,h=8*n-i-1,u=(1<>1,f=-7,l=e?n-1:0,c=e?-1:1,p=t[r+l];for(l+=c,o=p&(1<<-f)-1,p>>=-f,f+=h;f>0;o=256*o+t[r+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=i;f>0;s=256*s+t[r+l],l+=c,f-=8);if(0===o)o=1-a;else{if(o===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,i),o-=a}return(p?-1:1)*s*Math.pow(2,o-i)},r.write=function(t,r,e,i,n,o){var s,h,u,a=8*o-n-1,f=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,m=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),r+=1>s+l?c*Math.pow(2,1-l):c/u,2>r*u||(s++,u/=2),f>s+l?1>s+l?(h=r*Math.pow(2,l-1)*Math.pow(2,n),s=0):(h=(r*u-1)*Math.pow(2,n),s+=l):(h=0,s=f));n>=8;t[e+p]=255&h,p+=d,h/=256,n-=8);for(s=s<0;t[e+p]=255&s,p+=d,s/=256,a-=8);t[e+p-d]|=128*m}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D","D20","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],eth_protocolVersion:[[],"S"],eth_syncing:[[],"B|EthSyncing"],eth_coinbase:[[],"D20"],eth_mining:[[],"B"],eth_hashrate:[[],"Q"],eth_gasPrice:[[],"Q"],eth_accounts:[[],["D20"]],eth_blockNumber:[[],"Q"],eth_getBalance:[["D20","Q|T"],"Q",1,2],eth_getStorageAt:[["D20","Q","Q|T"],"D",2,2],eth_getTransactionCount:[["D20","Q|T"],"Q",1,2],eth_getBlockTransactionCountByHash:[["D32"],"Q",1],eth_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],eth_getUncleCountByBlockHash:[["D32"],"Q",1],eth_getUncleCountByBlockNumber:[["Q"],"Q",1],eth_getCode:[["D20","Q|T"],"D",1,2],eth_sign:[["D20","D"],"D",2],eth_signTypedData:[["Array|DATA","D20"],"D",1],eth_sendTransaction:[["SendTransaction"],"D",1],eth_sendRawTransaction:[["D"],"D32",1],eth_call:[["CallTransaction","Q|T"],"D",1,2],eth_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],eth_getBlockByHash:[["D32","B"],"Block",2],eth_getBlockByNumber:[["Q|T","B"],"Block",2],eth_getTransactionByHash:[["D32"],"Transaction",1],eth_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],eth_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],eth_getTransactionReceipt:[["D32"],"Receipt",1],eth_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],eth_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],eth_getCompilers:[[],["S"]],eth_compileLLL:[["S"],"D",1],eth_compileSolidity:[["S"],"D",1],eth_compileSerpent:[["S"],"D",1],eth_newFilter:[["Filter"],"Q",1],eth_newBlockFilter:[[],"Q"],eth_newPendingTransactionFilter:[[],"Q"],eth_uninstallFilter:[["Q"],"B",1],eth_getFilterChanges:[["Q"],["FilterChange"],1],eth_getFilterLogs:[["Q"],["FilterChange"],1],eth_getLogs:[["Filter"],["FilterChange"],1],eth_getWork:[[],["D"]],eth_submitWork:[["D","D32","D32"],"B",3],eth_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{EthSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"D20",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},function(t,r){function e(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function n(t){if(f===setTimeout)return setTimeout(t,0);if((f===e||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(r){try{return f.call(null,t,0)}catch(r){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===i||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(r){try{return l.call(null,t)}catch(r){return l.call(this,t)}}}function s(){m&&p&&(m=!1,p.length?d=p.concat(d):g=-1,d.length&&h())}function h(){if(!m){var t=n(s);m=!0;for(var r=d.length;r;){for(p=d,d=[];++g1)for(var e=1;arguments.length>e;e++)r[e-1]=arguments[e];d.push(new u(t,r)),1!==d.length||m||n(h)},u.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.prependListener=a,c.prependOnceListener=a,c.listeners=function(t){return[]},c.binding=function(t){throw Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw Error("process.chdir is not supported")},c.umask=function(){return 0}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,configurable:!1,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,configurable:!1,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r){t.exports=XMLHttpRequest},function(t,r,e){t.exports=e(10)}])}); +Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};t.exports={unitMap:l,numberToString:n,getValueOfUnit:i,fromWei:o,toWei:s}},function(t,r){r.read=function(t,r,e,i,n){var o,s,h=8*n-i-1,u=(1<>1,f=-7,l=e?n-1:0,c=e?-1:1,p=t[r+l];for(l+=c,o=p&(1<<-f)-1,p>>=-f,f+=h;f>0;o=256*o+t[r+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=i;f>0;s=256*s+t[r+l],l+=c,f-=8);if(0===o)o=1-a;else{if(o===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,i),o-=a}return(p?-1:1)*s*Math.pow(2,o-i)},r.write=function(t,r,e,i,n,o){var s,h,u,a=8*o-n-1,f=(1<>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,m=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),r+=1>s+l?c*Math.pow(2,1-l):c/u,2>r*u||(s++,u/=2),f>s+l?1>s+l?(h=r*Math.pow(2,l-1)*Math.pow(2,n),s=0):(h=(r*u-1)*Math.pow(2,n),s+=l):(h=0,s=f));n>=8;t[e+p]=255&h,p+=d,h/=256,n-=8);for(s=s<0;t[e+p]=255&s,p+=d,s/=256,a-=8);t[e+p-d]|=128*m}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D","D20","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],eth_protocolVersion:[[],"S"],eth_syncing:[[],"B|EthSyncing"],eth_coinbase:[[],"D20"],eth_mining:[[],"B"],eth_hashrate:[[],"Q"],eth_gasPrice:[[],"Q"],eth_accounts:[[],["D20"]],eth_blockNumber:[[],"Q"],eth_getBalance:[["D20","Q|T"],"Q",1,2],eth_getStorageAt:[["D20","Q","Q|T"],"D",2,2],eth_getTransactionCount:[["D20","Q|T"],"Q",1,2],eth_getBlockTransactionCountByHash:[["D32"],"Q",1],eth_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],eth_getUncleCountByBlockHash:[["D32"],"Q",1],eth_getUncleCountByBlockNumber:[["Q"],"Q",1],eth_getCode:[["D20","Q|T"],"D",1,2],eth_sign:[["D20","D"],"D",2],eth_signTypedData:[["Array|DATA","D20"],"D",1],eth_sendTransaction:[["SendTransaction"],"D",1],eth_sendRawTransaction:[["D"],"D32",1],eth_call:[["CallTransaction","Q|T"],"D",1,2],eth_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],eth_getBlockByHash:[["D32","B"],"Block",2],eth_getBlockByNumber:[["Q|T","B"],"Block",2],eth_getTransactionByHash:[["D32"],"Transaction",1],eth_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],eth_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],eth_getTransactionReceipt:[["D32"],"Receipt",1],eth_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],eth_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],eth_getCompilers:[[],["S"]],eth_compileLLL:[["S"],"D",1],eth_compileSolidity:[["S"],"D",1],eth_compileSerpent:[["S"],"D",1],eth_newFilter:[["Filter"],"Q",1],eth_newBlockFilter:[[],"Q"],eth_newPendingTransactionFilter:[[],"Q"],eth_uninstallFilter:[["Q"],"B",1],eth_getFilterChanges:[["Q"],["FilterChange"],1],eth_getFilterLogs:[["Q"],["FilterChange"],1],eth_getLogs:[["Filter"],["FilterChange"],1],eth_getWork:[[],["D"]],eth_submitWork:[["D","D32","D32"],"B",3],eth_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{EthSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"D20",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},function(t,r){function e(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function n(t){if(f===setTimeout)return setTimeout(t,0);if((f===e||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(r){try{return f.call(null,t,0)}catch(r){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===i||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(r){try{return l.call(null,t)}catch(r){return l.call(this,t)}}}function s(){m&&p&&(m=!1,p.length?d=p.concat(d):g=-1,d.length&&h())}function h(){if(!m){var t=n(s);m=!0;for(var r=d.length;r;){for(p=d,d=[];++g1)for(var e=1;arguments.length>e;e++)r[e-1]=arguments[e];d.push(new u(t,r)),1!==d.length||m||n(h)},u.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.prependListener=a,c.prependOnceListener=a,c.listeners=function(t){return[]},c.binding=function(t){throw Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw Error("process.chdir is not supported")},c.umask=function(){return 0}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,configurable:!1,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,configurable:!1,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r){t.exports=XMLHttpRequest},function(t,r,e){t.exports=e(10)}])}); \ No newline at end of file diff --git a/resources/videojs-seek-buttons/1.6.0/videojs-seek-buttons.min.css b/resources/videojs-seek-buttons/1.6.0/videojs-seek-buttons.min.css index d3ccc1bc..fba4927b 100644 --- a/resources/videojs-seek-buttons/1.6.0/videojs-seek-buttons.min.css +++ b/resources/videojs-seek-buttons/1.6.0/videojs-seek-buttons.min.css @@ -1,2 +1,2 @@ /*! @name videojs-seek-buttons @version 1.6.0 @license Apache-2.0 */ -@import url(https://fonts.googleapis.com/css?family=Material+Icons);.video-js .vjs-seek-button{font-family:'Material Icons';cursor:pointer}.video-js .vjs-seek-button.skip-back::before{content:'\e042'}.video-js .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-10 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-10 .vjs-icon-placeholder::before{content:'\e059'}.video-js .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-5 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-5 .vjs-icon-placeholder::before{content:'\e05b'}.video-js .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-30 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-30 .vjs-icon-placeholder::before{content:'\e05a'}.video-js .vjs-seek-button.skip-forward::before{content:'\e5d5'}.video-js .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-10 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-10 .vjs-icon-placeholder::before{content:'\e056'}.video-js .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-5 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-5 .vjs-icon-placeholder::before{content:'\e058'}.video-js .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-30 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-30 .vjs-icon-placeholder::before{content:'\e057'}.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-back::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v7 .vjs-seek-button.skip-back::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward::before{content:none}.video-js.vjs-v6 .vjs-seek-button.skip-back .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back .vjs-icon-placeholder::before{content:'\e042'}.video-js.vjs-v6 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before{content:'\e5d5'} +@import url(https://fonts.googleapis.com/css?family=Material+Icons);.video-js .vjs-seek-button{font-family:'Material Icons';cursor:pointer}.video-js .vjs-seek-button.skip-back::before{content:'\e042'}.video-js .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-10 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-10 .vjs-icon-placeholder::before{content:'\e059'}.video-js .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-5 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-5 .vjs-icon-placeholder::before{content:'\e05b'}.video-js .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-30 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-30 .vjs-icon-placeholder::before{content:'\e05a'}.video-js .vjs-seek-button.skip-forward::before{content:'\e5d5'}.video-js .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-10 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-10 .vjs-icon-placeholder::before{content:'\e056'}.video-js .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-5 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-5 .vjs-icon-placeholder::before{content:'\e058'}.video-js .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-30 .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-30 .vjs-icon-placeholder::before{content:'\e057'}.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-back::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-10::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-30::before,.video-js.vjs-v7 .vjs-seek-button.skip-back.skip-5::before,.video-js.vjs-v7 .vjs-seek-button.skip-back::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-10::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-30::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward.skip-5::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward::before{content:none}.video-js.vjs-v6 .vjs-seek-button.skip-back .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back .vjs-icon-placeholder::before{content:'\e042'}.video-js.vjs-v6 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before{content:'\e5d5'} \ No newline at end of file diff --git a/resources/vue-i18n/9.0.0/vue-i18n.min.jsm b/resources/vue-i18n/9.0.0/vue-i18n.min.jsm index df36682f..4a3dfa3c 100644 --- a/resources/vue-i18n/9.0.0/vue-i18n.min.jsm +++ b/resources/vue-i18n/9.0.0/vue-i18n.min.jsm @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var shared=require("@intlify/shared"),coreBase=require("@intlify/core-base"),vue=require("vue");const VERSION="9.0.0";function initDev(){shared.getGlobalThis().__INTLIFY__=!0}const warnMessages={6:"Fall back to {type} '{key}' with root locale.",7:"Not supported 'preserve'.",8:"Not supported 'formatter'.",9:"Not supported 'preserveDirectiveContent'.",10:"Not supported 'getChoiceIndex'.",11:"Component name legacy compatible: '{name}' -> 'i18n'",12:"Not found parent scope. use the global scope."};function getWarnMessage(e,...a){return shared.format(warnMessages[e],...a)}function createI18nError(e,...a){return coreBase.createCompileError(e,null,{messages:errorMessages,args:a})}const errorMessages={14:"Unexpected return type in composer",15:"Invalid argument",16:"Must be called at the top of a `setup` function",17:"Need to install with `app.use` function",22:"Unexpected error",18:"Not available in legacy mode",19:"Required in value: {0}",20:"Invalid value",21:"Cannot setup vue-devtools plugin"},TransrateVNodeSymbol=shared.makeSymbol("__transrateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");let composerID=0;function defineCoreMissingHandler(e){return(a,t,r,s)=>e(t,r,vue.getCurrentInstance()||void 0,s)}function getLocaleMessages(e,a){const{messages:t,__i18n:r}=a,s=shared.isPlainObject(t)?t:shared.isArray(r)?{}:{[e]:{}};return shared.isArray(r)&&r.forEach(({locale:e,resource:a})=>{e?(s[e]=s[e]||{},deepCopy(a,s[e])):deepCopy(a,s)}),s}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,a){return hasOwnProperty.call(e,a)}const isNotObjectOrIsArray=e=>!shared.isObject(e)||shared.isArray(e);function deepCopy(e,a){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(a))throw createI18nError(20);for(const t in e)hasOwn(e,t)&&(isNotObjectOrIsArray(e[t])||isNotObjectOrIsArray(a[t])?a[t]=e[t]:deepCopy(e[t],a[t]))}function createComposer(e={}){const{__root:a}=e,t=void 0===a;let r=!shared.isBoolean(e.inheritLocale)||e.inheritLocale;const s=vue.ref(a&&r?a.locale.value:shared.isString(e.locale)?e.locale:"en-US"),n=vue.ref(a&&r?a.fallbackLocale.value:shared.isString(e.fallbackLocale)||shared.isArray(e.fallbackLocale)||shared.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),o=vue.ref(getLocaleMessages(s.value,e)),l=vue.ref(shared.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),i=vue.ref(shared.isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let c=a?a.missingWarn:!shared.isBoolean(e.missingWarn)&&!shared.isRegExp(e.missingWarn)||e.missingWarn,m=a?a.fallbackWarn:!shared.isBoolean(e.fallbackWarn)&&!shared.isRegExp(e.fallbackWarn)||e.fallbackWarn,u=a?a.fallbackRoot:!shared.isBoolean(e.fallbackRoot)||e.fallbackRoot,g=!!e.fallbackFormat,d=shared.isFunction(e.missing)?e.missing:null,b=shared.isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,p=shared.isFunction(e.postTranslation)?e.postTranslation:null,f=!shared.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,h=!!e.escapeParameter;const _=a?a.modifiers:shared.isPlainObject(e.modifiers)?e.modifiers:{};let v,y=e.pluralRules||a&&a.pluralRules;function F(){return coreBase.createCoreContext({locale:s.value,fallbackLocale:n.value,messages:o.value,datetimeFormats:l.value,numberFormats:i.value,modifiers:_,pluralRules:y,missing:null===b?void 0:b,missingWarn:c,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:null===p?void 0:p,warnHtmlMessage:f,escapeParameter:h,__datetimeFormatters:shared.isPlainObject(v)?v.__datetimeFormatters:void 0,__numberFormatters:shared.isPlainObject(v)?v.__numberFormatters:void 0,__emitter:shared.isPlainObject(v)?v.__emitter:void 0})}v=F(),coreBase.updateFallbackLocale(v,s.value,n.value);const k=vue.computed({get:()=>s.value,set:e=>{s.value=e,v.locale=s.value}}),M=vue.computed({get:()=>n.value,set:e=>{n.value=e,v.fallbackLocale=n.value,coreBase.updateFallbackLocale(v,s.value,e)}}),I=vue.computed(()=>o.value),S=vue.computed(()=>l.value),O=vue.computed(()=>i.value);function E(e,t,r,s,n,o){const l=F(),i=e(l);if(shared.isNumber(i)&&i===coreBase.NOT_REOSLVED){const e=t();if(a){u||shared.warn(getWarnMessage(6,{key:e,type:r}));{const{__emitter:a}=l;a&&a.emit("fallback",{type:r,key:e,to:"global",groupId:`${r}:${e}`})}}return a&&u?s(a):n(e)}if(o(i))return i;throw createI18nError(14)}const T={normalize:function(e){return e.map(e=>shared.isString(e)?vue.createVNode(vue.Text,null,e,0):e)},interpolate:e=>e,type:"vnode"};function L(e){return o.value[e]||{}}composerID++,a&&(vue.watch(a.locale,e=>{r&&(s.value=e,v.locale=e,coreBase.updateFallbackLocale(v,s.value,n.value))}),vue.watch(a.fallbackLocale,e=>{r&&(n.value=e,v.fallbackLocale=e,coreBase.updateFallbackLocale(v,s.value,n.value))}));const P={id:composerID,locale:k,fallbackLocale:M,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&a&&(s.value=a.locale.value,n.value=a.fallbackLocale.value,coreBase.updateFallbackLocale(v,s.value,n.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:I,datetimeFormats:S,numberFormats:O,get modifiers(){return _},get pluralRules(){return y||{}},get isGlobal(){return t},get missingWarn(){return c},set missingWarn(e){c=e,v.missingWarn=c},get fallbackWarn(){return m},set fallbackWarn(e){m=e,v.fallbackWarn=m},get fallbackRoot(){return u},set fallbackRoot(e){u=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,v.fallbackFormat=g},get warnHtmlMessage(){return f},set warnHtmlMessage(e){f=e,v.warnHtmlMessage=e},get escapeParameter(){return h},set escapeParameter(e){h=e,v.escapeParameter=e},t:function(...e){return E(a=>coreBase.translate(a,...e),()=>coreBase.parseTranslateArgs(...e)[0],"translate",a=>a.t(...e),e=>e,e=>shared.isString(e))},d:function(...e){return E(a=>coreBase.datetime(a,...e),()=>coreBase.parseDateTimeArgs(...e)[0],"datetime format",a=>a.d(...e),()=>coreBase.MISSING_RESOLVE_VALUE,e=>shared.isString(e))},n:function(...e){return E(a=>coreBase.number(a,...e),()=>coreBase.parseNumberArgs(...e)[0],"number format",a=>a.n(...e),()=>coreBase.MISSING_RESOLVE_VALUE,e=>shared.isString(e))},te:function(e,a){const t=L(shared.isString(a)?a:s.value);return null!==coreBase.resolveValue(t,e)},tm:function(e){const t=o.value[s.value]||{},r=coreBase.resolveValue(t,e);return null!=r?r:a&&a.tm(e)||{}},getLocaleMessage:L,setLocaleMessage:function(e,a){o.value[e]=a,v.messages=o.value},mergeLocaleMessage:function(e,a){o.value[e]=o.value[e]||{},deepCopy(a,o.value[e]),v.messages=o.value},getDateTimeFormat:function(e){return l.value[e]||{}},setDateTimeFormat:function(e,a){l.value[e]=a,v.datetimeFormats=l.value,coreBase.clearDateTimeFormat(v,e,a)},mergeDateTimeFormat:function(e,a){l.value[e]=Object.assign(l.value[e]||{},a),v.datetimeFormats=l.value,coreBase.clearDateTimeFormat(v,e,a)},getNumberFormat:function(e){return i.value[e]||{}},setNumberFormat:function(e,a){i.value[e]=a,v.numberFormats=i.value,coreBase.clearNumberFormat(v,e,a)},mergeNumberFormat:function(e,a){i.value[e]=Object.assign(i.value[e]||{},a),v.numberFormats=i.value,coreBase.clearNumberFormat(v,e,a)},getPostTranslationHandler:function(){return shared.isFunction(p)?p:null},setPostTranslationHandler:function(e){p=e,v.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(b=defineCoreMissingHandler(e)),d=e,v.missing=b},[TransrateVNodeSymbol]:function(...e){return E(a=>{let t;const r=a;try{r.processor=T,t=coreBase.translate(r,...e)}finally{r.processor=null}return t},()=>coreBase.parseTranslateArgs(...e)[0],"translate",a=>a[TransrateVNodeSymbol](...e),e=>[vue.createVNode(vue.Text,null,e,0)],e=>shared.isArray(e))},[NumberPartsSymbol]:function(...e){return E(a=>coreBase.number(a,...e),()=>coreBase.parseNumberArgs(...e)[0],"number format",a=>a[NumberPartsSymbol](...e),()=>[],e=>shared.isString(e)||shared.isArray(e))},[DatetimePartsSymbol]:function(...e){return E(a=>coreBase.datetime(a,...e),()=>coreBase.parseDateTimeArgs(...e)[0],"datetime format",a=>a[DatetimePartsSymbol](...e),()=>[],e=>shared.isString(e)||shared.isArray(e))},[SetPluralRulesSymbol]:function(e){y=e,v.pluralRules=y}};return P[EnableEmitter]=(e=>{v.__emitter=e}),P[DisableEmitter]=(()=>{v.__emitter=void 0}),P}function convertComposerOptions(e){const a=shared.isString(e.locale)?e.locale:"en-US",t=shared.isString(e.fallbackLocale)||shared.isArray(e.fallbackLocale)||shared.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,r=shared.isFunction(e.missing)?e.missing:void 0,s=!shared.isBoolean(e.silentTranslationWarn)&&!shared.isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,n=!shared.isBoolean(e.silentFallbackWarn)&&!shared.isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!shared.isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=shared.isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,m=shared.isFunction(e.postTranslation)?e.postTranslation:void 0,u=!shared.isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,d=!shared.isBoolean(e.sync)||e.sync;e.formatter&&shared.warn(getWarnMessage(8)),e.preserveDirectiveContent&&shared.warn(getWarnMessage(9));let b=e.messages;if(shared.isPlainObject(e.sharedMessages)){const a=e.sharedMessages;b=Object.keys(a).reduce((e,t)=>{const r=e[t]||(e[t]={});return Object.assign(r,a[t]),e},b||{})}const{__i18n:p,__root:f}=e;return{locale:a,fallbackLocale:t,messages:b,datetimeFormats:e.datetimeFormats,numberFormats:e.numberFormats,missing:r,missingWarn:s,fallbackWarn:n,fallbackRoot:o,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:m,warnHtmlMessage:u,escapeParameter:g,inheritLocale:d,__i18n:p,__root:f}}function createVueI18n(e={}){const a=createComposer(convertComposerOptions(e)),t={id:a.id,get locale(){return a.locale.value},set locale(e){a.locale.value=e},get fallbackLocale(){return a.fallbackLocale.value},set fallbackLocale(e){a.fallbackLocale.value=e},get messages(){return a.messages.value},get datetimeFormats(){return a.datetimeFormats.value},get numberFormats(){return a.numberFormats.value},get availableLocales(){return a.availableLocales},get formatter(){return shared.warn(getWarnMessage(8)),{interpolate:()=>[]}},set formatter(e){shared.warn(getWarnMessage(8))},get missing(){return a.getMissingHandler()},set missing(e){a.setMissingHandler(e)},get silentTranslationWarn(){return shared.isBoolean(a.missingWarn)?!a.missingWarn:a.missingWarn},set silentTranslationWarn(e){a.missingWarn=shared.isBoolean(e)?!e:e},get silentFallbackWarn(){return shared.isBoolean(a.fallbackWarn)?!a.fallbackWarn:a.fallbackWarn},set silentFallbackWarn(e){a.fallbackWarn=shared.isBoolean(e)?!e:e},get modifiers(){return a.modifiers},get formatFallbackMessages(){return a.fallbackFormat},set formatFallbackMessages(e){a.fallbackFormat=e},get postTranslation(){return a.getPostTranslationHandler()},set postTranslation(e){a.setPostTranslationHandler(e)},get sync(){return a.inheritLocale},set sync(e){a.inheritLocale=e},get warnHtmlInMessage(){return a.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){a.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return a.escapeParameter},set escapeParameterHtml(e){a.escapeParameter=e},get preserveDirectiveContent(){return shared.warn(getWarnMessage(9)),!0},set preserveDirectiveContent(e){shared.warn(getWarnMessage(9))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...e){const[t,r,s]=e,n={};let o=null,l=null;if(!shared.isString(t))throw createI18nError(15);const i=t;return shared.isString(r)?n.locale=r:shared.isArray(r)?o=r:shared.isPlainObject(r)&&(l=r),shared.isArray(s)?o=s:shared.isPlainObject(s)&&(l=s),a.t(i,o||l||{},n)},tc(...e){const[t,r,s]=e,n={plural:1};let o=null,l=null;if(!shared.isString(t))throw createI18nError(15);const i=t;return shared.isString(r)?n.locale=r:shared.isNumber(r)?n.plural=r:shared.isArray(r)?o=r:shared.isPlainObject(r)&&(l=r),shared.isString(s)?n.locale=s:shared.isArray(s)?o=s:shared.isPlainObject(s)&&(l=s),a.t(i,o||l||{},n)},te:(e,t)=>a.te(e,t),tm:e=>a.tm(e),getLocaleMessage:e=>a.getLocaleMessage(e),setLocaleMessage(e,t){a.setLocaleMessage(e,t)},mergeLocaleMessage(e,t){a.mergeLocaleMessage(e,t)},d:(...e)=>a.d(...e),getDateTimeFormat:e=>a.getDateTimeFormat(e),setDateTimeFormat(e,t){a.setDateTimeFormat(e,t)},mergeDateTimeFormat(e,t){a.mergeDateTimeFormat(e,t)},n:(...e)=>a.n(...e),getNumberFormat:e=>a.getNumberFormat(e),setNumberFormat(e,t){a.setNumberFormat(e,t)},mergeNumberFormat(e,t){a.mergeNumberFormat(e,t)},getChoiceIndex:(e,a)=>(shared.warn(getWarnMessage(10)),-1),__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:r}=e;r&&r(a,t)},__enableEmitter:e=>{const t=a;t[EnableEmitter]&&t[EnableEmitter](e)},__disableEmitter:()=>{const e=a;e[DisableEmitter]&&e[DisableEmitter]()}};return t}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"}},Translation={name:"i18n-t",props:{...baseFormatProps,keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>shared.isNumber(e)||!isNaN(e)}},setup(e,a){const{slots:t,attrs:r}=a,s=useI18n({useScope:e.scope}),n=Object.keys(t).filter(e=>"_"!==e);return()=>{const t={};e.locale&&(t.locale=e.locale),void 0!==e.plural&&(t.plural=shared.isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(a,n),l=s[TransrateVNodeSymbol](e.keypath,o,t);return shared.isString(e.tag)?vue.h(e.tag,{...r},l):shared.isObject(e.tag)?vue.h(e.tag,{...r},l):vue.h(vue.Fragment,{...r},l)}}};function getInterpolateArg({slots:e},a){return 1===a.length&&"default"===a[0]?e.default?e.default():[]:a.reduce((a,t)=>{const r=e[t];return r&&(a[t]=r()),a},{})}function renderFormatter(e,a,t,r){const{slots:s,attrs:n}=a;return()=>{const a={part:!0};let o={};e.locale&&(a.locale=e.locale),shared.isString(e.format)?a.key=e.format:shared.isObject(e.format)&&(shared.isString(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((a,r)=>t.includes(r)?Object.assign({},a,{[r]:e.format[r]}):a,{}));const l=r(...[e.value,a,o]);let i=[a.key];return shared.isArray(l)?i=l.map((e,a)=>{const t=s[e.type];return t?t({[e.type]:e.value,index:a,parts:l}):[e.value]}):shared.isString(l)&&(i=[l]),shared.isString(e.tag)?vue.h(e.tag,{...n},i):shared.isObject(e.tag)?vue.h(e.tag,{...n},i):vue.h(vue.Fragment,{...n},i)}}const NUMBER_FORMAT_KEYS=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],NumberFormat={name:"i18n-n",props:{...baseFormatProps,value:{type:Number,required:!0},format:{type:[String,Object]}},setup(e,a){const t=useI18n({useScope:"parent"});return renderFormatter(e,a,NUMBER_FORMAT_KEYS,(...e)=>t[NumberPartsSymbol](...e))}},DATETIME_FORMAT_KEYS=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],DatetimeFormat={name:"i18n-d",props:{...baseFormatProps,value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},setup(e,a){const t=useI18n({useScope:"parent"});return renderFormatter(e,a,DATETIME_FORMAT_KEYS,(...e)=>t[DatetimePartsSymbol](...e))}};function getComposer(e,a){const t=e;if("composition"===e.mode)return t.__getInstance(a)||e.global;{const r=t.__getInstance(a);return null!=r?r.__composer:e.global.__composer}}function vTDirective(e){const a=(a,{instance:t,value:r,modifiers:s})=>{if(!t||!t.$)throw createI18nError(22);const n=getComposer(e,t.$);s.preserve&&shared.warn(getWarnMessage(7));const o=parseValue(r);a.textContent=n.t(...makeParams(o))};return{beforeMount:a,beforeUpdate:a}}function parseValue(e){if(shared.isString(e))return{path:e};if(shared.isPlainObject(e)){if(!("path"in e))throw createI18nError(19,"path");return e}throw createI18nError(20)}function makeParams(e){const{path:a,locale:t,args:r,choice:s,plural:n}=e,o={},l=r||{};return shared.isString(t)&&(o.locale=t),shared.isNumber(s)&&(o.plural=s),shared.isNumber(n)&&(o.plural=n),[a,l,o]}function apply(e,a,...t){const r=shared.isPlainObject(t[0])?t[0]:{},s=!!r.useI18nComponentName,n=!shared.isBoolean(r.globalInstall)||r.globalInstall;n&&s&&shared.warn(getWarnMessage(11,{name:Translation.name})),n&&(e.component(s?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(a))}function defineMixin(e,a,t){return{beforeCreate(){const r=vue.getCurrentInstance();if(!r)throw createI18nError(22);const s=this.$options;if(s.i18n){const t=s.i18n;s.__i18n&&(t.__i18n=s.__i18n),t.__root=a,this===this.$root?this.$i18n=mergeToRoot(e,t):this.$i18n=createVueI18n(t)}else s.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,s):this.$i18n=createVueI18n({__i18n:s.__i18n,__root:a}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),t.__setInstance(r,this.$i18n),this.$t=((...e)=>this.$i18n.t(...e)),this.$tc=((...e)=>this.$i18n.tc(...e)),this.$te=((e,a)=>this.$i18n.te(e,a)),this.$d=((...e)=>this.$i18n.d(...e)),this.$n=((...e)=>this.$i18n.n(...e)),this.$tm=(e=>this.$i18n.tm(e))},mounted(){},beforeUnmount(){const e=vue.getCurrentInstance();if(!e)throw createI18nError(22);delete this.$t,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(e,a){e.locale=a.locale||e.locale,e.fallbackLocale=a.fallbackLocale||e.fallbackLocale,e.missing=a.missing||e.missing,e.silentTranslationWarn=a.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=a.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=a.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=a.postTranslation||e.postTranslation,e.warnHtmlInMessage=a.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=a.escapeParameterHtml||e.escapeParameterHtml,e.sync=a.sync||e.sync,e.__composer[SetPluralRulesSymbol](a.pluralizationRules||e.pluralizationRules);const t=getLocaleMessages(e.locale,{messages:a.messages,__i18n:a.__i18n});return Object.keys(t).forEach(a=>e.mergeLocaleMessage(a,t[a])),a.datetimeFormats&&Object.keys(a.datetimeFormats).forEach(t=>e.mergeDateTimeFormat(t,a.datetimeFormats[t])),a.numberFormats&&Object.keys(a.numberFormats).forEach(t=>e.mergeNumberFormat(t,a.numberFormats[t])),e}function createI18n(e={}){const a=!shared.isBoolean(e.legacy)||e.legacy,t=!!e.globalInjection,r=new Map,s=a?createVueI18n(e):createComposer(e),n=shared.makeSymbol("vue-i18n"),o={get mode(){return a?"legacy":"composition"},async install(e,...r){e.__VUE_I18N_SYMBOL__=n,e.provide(e.__VUE_I18N_SYMBOL__,o),!a&&t&&injectGlobalFields(e,o.global),apply(e,o,...r),a&&e.mixin(defineMixin(s,s.__composer,o))},get global(){return s},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,a){r.set(e,a)},__deleteInstance(e){r.delete(e)}};return o}function useI18n(e={}){const a=vue.getCurrentInstance();if(null==a)throw createI18nError(16);if(!a.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(17);const t=vue.inject(a.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(22);const r="composition"===t.mode?t.global:t.global.__composer,s=shared.isEmptyObject(e)?"__i18n"in a.type?"local":"global":e.useScope?e.useScope:"local";if("global"===s){let t=shared.isObject(e.messages)?e.messages:{};"__i18nGlobal"in a.type&&(t=getLocaleMessages(r.locale.value,{messages:t,__i18n:a.type.__i18nGlobal}));const s=Object.keys(t);if(s.length&&s.forEach(e=>{r.mergeLocaleMessage(e,t[e])}),shared.isObject(e.datetimeFormats)){const a=Object.keys(e.datetimeFormats);a.length&&a.forEach(a=>{r.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(shared.isObject(e.numberFormats)){const a=Object.keys(e.numberFormats);a.length&&a.forEach(a=>{r.mergeNumberFormat(a,e.numberFormats[a])})}return r}if("parent"===s){let e=getComposer$1(t,a);return null==e&&(shared.warn(getWarnMessage(12)),e=r),e}if("legacy"===t.mode)throw createI18nError(18);const n=t;let o=n.__getInstance(a);if(null==o){const t=a.type,s={...e};t.__i18n&&(s.__i18n=t.__i18n),r&&(s.__root=r),o=createComposer(s),setupLifeCycle(n,a),n.__setInstance(a,o)}return o}function getComposer$1(e,a){let t=null;const r=a.root;let s=a.parent;for(;null!=s;){const a=e;if("composition"===e.mode)t=a.__getInstance(s);else{const e=a.__getInstance(s);null!=e&&(t=e.__composer)}if(null!=t)break;if(r===s)break;s=s.parent}return t}function setupLifeCycle(e,a,t){vue.onMounted(()=>{},a),vue.onUnmounted(()=>{e.__deleteInstance(a)},a)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","d","n","tm"];function injectGlobalFields(e,a){const t=Object.create(null);globalExportProps.forEach(e=>{const r=Object.getOwnPropertyDescriptor(a,e);if(!r)throw createI18nError(22);const s=vue.isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(t,e,s)}),e.config.globalProperties.$i18n=t,globalExportMethods.forEach(t=>{const r=Object.getOwnPropertyDescriptor(a,t);if(!r)throw createI18nError(22);Object.defineProperty(e.config.globalProperties,`$${t}`,r)})}coreBase.registerMessageCompiler(coreBase.compileToFunction),initDev(),exports.DatetimeFormat=DatetimeFormat,exports.NumberFormat=NumberFormat,exports.Translation=Translation,exports.VERSION="9.0.0",exports.createI18n=createI18n,exports.useI18n=useI18n,exports.vTDirective=vTDirective; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var shared=require("@intlify/shared"),coreBase=require("@intlify/core-base"),vue=require("vue");const VERSION="9.0.0";function initDev(){shared.getGlobalThis().__INTLIFY__=!0}const warnMessages={6:"Fall back to {type} '{key}' with root locale.",7:"Not supported 'preserve'.",8:"Not supported 'formatter'.",9:"Not supported 'preserveDirectiveContent'.",10:"Not supported 'getChoiceIndex'.",11:"Component name legacy compatible: '{name}' -> 'i18n'",12:"Not found parent scope. use the global scope."};function getWarnMessage(e,...a){return shared.format(warnMessages[e],...a)}function createI18nError(e,...a){return coreBase.createCompileError(e,null,{messages:errorMessages,args:a})}const errorMessages={14:"Unexpected return type in composer",15:"Invalid argument",16:"Must be called at the top of a `setup` function",17:"Need to install with `app.use` function",22:"Unexpected error",18:"Not available in legacy mode",19:"Required in value: {0}",20:"Invalid value",21:"Cannot setup vue-devtools plugin"},TransrateVNodeSymbol=shared.makeSymbol("__transrateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");let composerID=0;function defineCoreMissingHandler(e){return(a,t,r,s)=>e(t,r,vue.getCurrentInstance()||void 0,s)}function getLocaleMessages(e,a){const{messages:t,__i18n:r}=a,s=shared.isPlainObject(t)?t:shared.isArray(r)?{}:{[e]:{}};return shared.isArray(r)&&r.forEach(({locale:e,resource:a})=>{e?(s[e]=s[e]||{},deepCopy(a,s[e])):deepCopy(a,s)}),s}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,a){return hasOwnProperty.call(e,a)}const isNotObjectOrIsArray=e=>!shared.isObject(e)||shared.isArray(e);function deepCopy(e,a){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(a))throw createI18nError(20);for(const t in e)hasOwn(e,t)&&(isNotObjectOrIsArray(e[t])||isNotObjectOrIsArray(a[t])?a[t]=e[t]:deepCopy(e[t],a[t]))}function createComposer(e={}){const{__root:a}=e,t=void 0===a;let r=!shared.isBoolean(e.inheritLocale)||e.inheritLocale;const s=vue.ref(a&&r?a.locale.value:shared.isString(e.locale)?e.locale:"en-US"),n=vue.ref(a&&r?a.fallbackLocale.value:shared.isString(e.fallbackLocale)||shared.isArray(e.fallbackLocale)||shared.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),o=vue.ref(getLocaleMessages(s.value,e)),l=vue.ref(shared.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),i=vue.ref(shared.isPlainObject(e.numberFormats)?e.numberFormats:{[s.value]:{}});let c=a?a.missingWarn:!shared.isBoolean(e.missingWarn)&&!shared.isRegExp(e.missingWarn)||e.missingWarn,m=a?a.fallbackWarn:!shared.isBoolean(e.fallbackWarn)&&!shared.isRegExp(e.fallbackWarn)||e.fallbackWarn,u=a?a.fallbackRoot:!shared.isBoolean(e.fallbackRoot)||e.fallbackRoot,g=!!e.fallbackFormat,d=shared.isFunction(e.missing)?e.missing:null,b=shared.isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,p=shared.isFunction(e.postTranslation)?e.postTranslation:null,f=!shared.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,h=!!e.escapeParameter;const _=a?a.modifiers:shared.isPlainObject(e.modifiers)?e.modifiers:{};let v,y=e.pluralRules||a&&a.pluralRules;function F(){return coreBase.createCoreContext({locale:s.value,fallbackLocale:n.value,messages:o.value,datetimeFormats:l.value,numberFormats:i.value,modifiers:_,pluralRules:y,missing:null===b?void 0:b,missingWarn:c,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:null===p?void 0:p,warnHtmlMessage:f,escapeParameter:h,__datetimeFormatters:shared.isPlainObject(v)?v.__datetimeFormatters:void 0,__numberFormatters:shared.isPlainObject(v)?v.__numberFormatters:void 0,__emitter:shared.isPlainObject(v)?v.__emitter:void 0})}v=F(),coreBase.updateFallbackLocale(v,s.value,n.value);const k=vue.computed({get:()=>s.value,set:e=>{s.value=e,v.locale=s.value}}),M=vue.computed({get:()=>n.value,set:e=>{n.value=e,v.fallbackLocale=n.value,coreBase.updateFallbackLocale(v,s.value,e)}}),I=vue.computed(()=>o.value),S=vue.computed(()=>l.value),O=vue.computed(()=>i.value);function E(e,t,r,s,n,o){const l=F(),i=e(l);if(shared.isNumber(i)&&i===coreBase.NOT_REOSLVED){const e=t();if(a){u||shared.warn(getWarnMessage(6,{key:e,type:r}));{const{__emitter:a}=l;a&&a.emit("fallback",{type:r,key:e,to:"global",groupId:`${r}:${e}`})}}return a&&u?s(a):n(e)}if(o(i))return i;throw createI18nError(14)}const T={normalize:function(e){return e.map(e=>shared.isString(e)?vue.createVNode(vue.Text,null,e,0):e)},interpolate:e=>e,type:"vnode"};function L(e){return o.value[e]||{}}composerID++,a&&(vue.watch(a.locale,e=>{r&&(s.value=e,v.locale=e,coreBase.updateFallbackLocale(v,s.value,n.value))}),vue.watch(a.fallbackLocale,e=>{r&&(n.value=e,v.fallbackLocale=e,coreBase.updateFallbackLocale(v,s.value,n.value))}));const P={id:composerID,locale:k,fallbackLocale:M,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&a&&(s.value=a.locale.value,n.value=a.fallbackLocale.value,coreBase.updateFallbackLocale(v,s.value,n.value))},get availableLocales(){return Object.keys(o.value).sort()},messages:I,datetimeFormats:S,numberFormats:O,get modifiers(){return _},get pluralRules(){return y||{}},get isGlobal(){return t},get missingWarn(){return c},set missingWarn(e){c=e,v.missingWarn=c},get fallbackWarn(){return m},set fallbackWarn(e){m=e,v.fallbackWarn=m},get fallbackRoot(){return u},set fallbackRoot(e){u=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,v.fallbackFormat=g},get warnHtmlMessage(){return f},set warnHtmlMessage(e){f=e,v.warnHtmlMessage=e},get escapeParameter(){return h},set escapeParameter(e){h=e,v.escapeParameter=e},t:function(...e){return E(a=>coreBase.translate(a,...e),()=>coreBase.parseTranslateArgs(...e)[0],"translate",a=>a.t(...e),e=>e,e=>shared.isString(e))},d:function(...e){return E(a=>coreBase.datetime(a,...e),()=>coreBase.parseDateTimeArgs(...e)[0],"datetime format",a=>a.d(...e),()=>coreBase.MISSING_RESOLVE_VALUE,e=>shared.isString(e))},n:function(...e){return E(a=>coreBase.number(a,...e),()=>coreBase.parseNumberArgs(...e)[0],"number format",a=>a.n(...e),()=>coreBase.MISSING_RESOLVE_VALUE,e=>shared.isString(e))},te:function(e,a){const t=L(shared.isString(a)?a:s.value);return null!==coreBase.resolveValue(t,e)},tm:function(e){const t=o.value[s.value]||{},r=coreBase.resolveValue(t,e);return null!=r?r:a&&a.tm(e)||{}},getLocaleMessage:L,setLocaleMessage:function(e,a){o.value[e]=a,v.messages=o.value},mergeLocaleMessage:function(e,a){o.value[e]=o.value[e]||{},deepCopy(a,o.value[e]),v.messages=o.value},getDateTimeFormat:function(e){return l.value[e]||{}},setDateTimeFormat:function(e,a){l.value[e]=a,v.datetimeFormats=l.value,coreBase.clearDateTimeFormat(v,e,a)},mergeDateTimeFormat:function(e,a){l.value[e]=Object.assign(l.value[e]||{},a),v.datetimeFormats=l.value,coreBase.clearDateTimeFormat(v,e,a)},getNumberFormat:function(e){return i.value[e]||{}},setNumberFormat:function(e,a){i.value[e]=a,v.numberFormats=i.value,coreBase.clearNumberFormat(v,e,a)},mergeNumberFormat:function(e,a){i.value[e]=Object.assign(i.value[e]||{},a),v.numberFormats=i.value,coreBase.clearNumberFormat(v,e,a)},getPostTranslationHandler:function(){return shared.isFunction(p)?p:null},setPostTranslationHandler:function(e){p=e,v.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(b=defineCoreMissingHandler(e)),d=e,v.missing=b},[TransrateVNodeSymbol]:function(...e){return E(a=>{let t;const r=a;try{r.processor=T,t=coreBase.translate(r,...e)}finally{r.processor=null}return t},()=>coreBase.parseTranslateArgs(...e)[0],"translate",a=>a[TransrateVNodeSymbol](...e),e=>[vue.createVNode(vue.Text,null,e,0)],e=>shared.isArray(e))},[NumberPartsSymbol]:function(...e){return E(a=>coreBase.number(a,...e),()=>coreBase.parseNumberArgs(...e)[0],"number format",a=>a[NumberPartsSymbol](...e),()=>[],e=>shared.isString(e)||shared.isArray(e))},[DatetimePartsSymbol]:function(...e){return E(a=>coreBase.datetime(a,...e),()=>coreBase.parseDateTimeArgs(...e)[0],"datetime format",a=>a[DatetimePartsSymbol](...e),()=>[],e=>shared.isString(e)||shared.isArray(e))},[SetPluralRulesSymbol]:function(e){y=e,v.pluralRules=y}};return P[EnableEmitter]=(e=>{v.__emitter=e}),P[DisableEmitter]=(()=>{v.__emitter=void 0}),P}function convertComposerOptions(e){const a=shared.isString(e.locale)?e.locale:"en-US",t=shared.isString(e.fallbackLocale)||shared.isArray(e.fallbackLocale)||shared.isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,r=shared.isFunction(e.missing)?e.missing:void 0,s=!shared.isBoolean(e.silentTranslationWarn)&&!shared.isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,n=!shared.isBoolean(e.silentFallbackWarn)&&!shared.isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!shared.isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=shared.isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,m=shared.isFunction(e.postTranslation)?e.postTranslation:void 0,u=!shared.isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,d=!shared.isBoolean(e.sync)||e.sync;e.formatter&&shared.warn(getWarnMessage(8)),e.preserveDirectiveContent&&shared.warn(getWarnMessage(9));let b=e.messages;if(shared.isPlainObject(e.sharedMessages)){const a=e.sharedMessages;b=Object.keys(a).reduce((e,t)=>{const r=e[t]||(e[t]={});return Object.assign(r,a[t]),e},b||{})}const{__i18n:p,__root:f}=e;return{locale:a,fallbackLocale:t,messages:b,datetimeFormats:e.datetimeFormats,numberFormats:e.numberFormats,missing:r,missingWarn:s,fallbackWarn:n,fallbackRoot:o,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:m,warnHtmlMessage:u,escapeParameter:g,inheritLocale:d,__i18n:p,__root:f}}function createVueI18n(e={}){const a=createComposer(convertComposerOptions(e)),t={id:a.id,get locale(){return a.locale.value},set locale(e){a.locale.value=e},get fallbackLocale(){return a.fallbackLocale.value},set fallbackLocale(e){a.fallbackLocale.value=e},get messages(){return a.messages.value},get datetimeFormats(){return a.datetimeFormats.value},get numberFormats(){return a.numberFormats.value},get availableLocales(){return a.availableLocales},get formatter(){return shared.warn(getWarnMessage(8)),{interpolate:()=>[]}},set formatter(e){shared.warn(getWarnMessage(8))},get missing(){return a.getMissingHandler()},set missing(e){a.setMissingHandler(e)},get silentTranslationWarn(){return shared.isBoolean(a.missingWarn)?!a.missingWarn:a.missingWarn},set silentTranslationWarn(e){a.missingWarn=shared.isBoolean(e)?!e:e},get silentFallbackWarn(){return shared.isBoolean(a.fallbackWarn)?!a.fallbackWarn:a.fallbackWarn},set silentFallbackWarn(e){a.fallbackWarn=shared.isBoolean(e)?!e:e},get modifiers(){return a.modifiers},get formatFallbackMessages(){return a.fallbackFormat},set formatFallbackMessages(e){a.fallbackFormat=e},get postTranslation(){return a.getPostTranslationHandler()},set postTranslation(e){a.setPostTranslationHandler(e)},get sync(){return a.inheritLocale},set sync(e){a.inheritLocale=e},get warnHtmlInMessage(){return a.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){a.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return a.escapeParameter},set escapeParameterHtml(e){a.escapeParameter=e},get preserveDirectiveContent(){return shared.warn(getWarnMessage(9)),!0},set preserveDirectiveContent(e){shared.warn(getWarnMessage(9))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...e){const[t,r,s]=e,n={};let o=null,l=null;if(!shared.isString(t))throw createI18nError(15);const i=t;return shared.isString(r)?n.locale=r:shared.isArray(r)?o=r:shared.isPlainObject(r)&&(l=r),shared.isArray(s)?o=s:shared.isPlainObject(s)&&(l=s),a.t(i,o||l||{},n)},tc(...e){const[t,r,s]=e,n={plural:1};let o=null,l=null;if(!shared.isString(t))throw createI18nError(15);const i=t;return shared.isString(r)?n.locale=r:shared.isNumber(r)?n.plural=r:shared.isArray(r)?o=r:shared.isPlainObject(r)&&(l=r),shared.isString(s)?n.locale=s:shared.isArray(s)?o=s:shared.isPlainObject(s)&&(l=s),a.t(i,o||l||{},n)},te:(e,t)=>a.te(e,t),tm:e=>a.tm(e),getLocaleMessage:e=>a.getLocaleMessage(e),setLocaleMessage(e,t){a.setLocaleMessage(e,t)},mergeLocaleMessage(e,t){a.mergeLocaleMessage(e,t)},d:(...e)=>a.d(...e),getDateTimeFormat:e=>a.getDateTimeFormat(e),setDateTimeFormat(e,t){a.setDateTimeFormat(e,t)},mergeDateTimeFormat(e,t){a.mergeDateTimeFormat(e,t)},n:(...e)=>a.n(...e),getNumberFormat:e=>a.getNumberFormat(e),setNumberFormat(e,t){a.setNumberFormat(e,t)},mergeNumberFormat(e,t){a.mergeNumberFormat(e,t)},getChoiceIndex:(e,a)=>(shared.warn(getWarnMessage(10)),-1),__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:r}=e;r&&r(a,t)},__enableEmitter:e=>{const t=a;t[EnableEmitter]&&t[EnableEmitter](e)},__disableEmitter:()=>{const e=a;e[DisableEmitter]&&e[DisableEmitter]()}};return t}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"}},Translation={name:"i18n-t",props:{...baseFormatProps,keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>shared.isNumber(e)||!isNaN(e)}},setup(e,a){const{slots:t,attrs:r}=a,s=useI18n({useScope:e.scope}),n=Object.keys(t).filter(e=>"_"!==e);return()=>{const t={};e.locale&&(t.locale=e.locale),void 0!==e.plural&&(t.plural=shared.isString(e.plural)?+e.plural:e.plural);const o=getInterpolateArg(a,n),l=s[TransrateVNodeSymbol](e.keypath,o,t);return shared.isString(e.tag)?vue.h(e.tag,{...r},l):shared.isObject(e.tag)?vue.h(e.tag,{...r},l):vue.h(vue.Fragment,{...r},l)}}};function getInterpolateArg({slots:e},a){return 1===a.length&&"default"===a[0]?e.default?e.default():[]:a.reduce((a,t)=>{const r=e[t];return r&&(a[t]=r()),a},{})}function renderFormatter(e,a,t,r){const{slots:s,attrs:n}=a;return()=>{const a={part:!0};let o={};e.locale&&(a.locale=e.locale),shared.isString(e.format)?a.key=e.format:shared.isObject(e.format)&&(shared.isString(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((a,r)=>t.includes(r)?Object.assign({},a,{[r]:e.format[r]}):a,{}));const l=r(...[e.value,a,o]);let i=[a.key];return shared.isArray(l)?i=l.map((e,a)=>{const t=s[e.type];return t?t({[e.type]:e.value,index:a,parts:l}):[e.value]}):shared.isString(l)&&(i=[l]),shared.isString(e.tag)?vue.h(e.tag,{...n},i):shared.isObject(e.tag)?vue.h(e.tag,{...n},i):vue.h(vue.Fragment,{...n},i)}}const NUMBER_FORMAT_KEYS=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],NumberFormat={name:"i18n-n",props:{...baseFormatProps,value:{type:Number,required:!0},format:{type:[String,Object]}},setup(e,a){const t=useI18n({useScope:"parent"});return renderFormatter(e,a,NUMBER_FORMAT_KEYS,(...e)=>t[NumberPartsSymbol](...e))}},DATETIME_FORMAT_KEYS=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],DatetimeFormat={name:"i18n-d",props:{...baseFormatProps,value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},setup(e,a){const t=useI18n({useScope:"parent"});return renderFormatter(e,a,DATETIME_FORMAT_KEYS,(...e)=>t[DatetimePartsSymbol](...e))}};function getComposer(e,a){const t=e;if("composition"===e.mode)return t.__getInstance(a)||e.global;{const r=t.__getInstance(a);return null!=r?r.__composer:e.global.__composer}}function vTDirective(e){const a=(a,{instance:t,value:r,modifiers:s})=>{if(!t||!t.$)throw createI18nError(22);const n=getComposer(e,t.$);s.preserve&&shared.warn(getWarnMessage(7));const o=parseValue(r);a.textContent=n.t(...makeParams(o))};return{beforeMount:a,beforeUpdate:a}}function parseValue(e){if(shared.isString(e))return{path:e};if(shared.isPlainObject(e)){if(!("path"in e))throw createI18nError(19,"path");return e}throw createI18nError(20)}function makeParams(e){const{path:a,locale:t,args:r,choice:s,plural:n}=e,o={},l=r||{};return shared.isString(t)&&(o.locale=t),shared.isNumber(s)&&(o.plural=s),shared.isNumber(n)&&(o.plural=n),[a,l,o]}function apply(e,a,...t){const r=shared.isPlainObject(t[0])?t[0]:{},s=!!r.useI18nComponentName,n=!shared.isBoolean(r.globalInstall)||r.globalInstall;n&&s&&shared.warn(getWarnMessage(11,{name:Translation.name})),n&&(e.component(s?"i18n":Translation.name,Translation),e.component(NumberFormat.name,NumberFormat),e.component(DatetimeFormat.name,DatetimeFormat)),e.directive("t",vTDirective(a))}function defineMixin(e,a,t){return{beforeCreate(){const r=vue.getCurrentInstance();if(!r)throw createI18nError(22);const s=this.$options;if(s.i18n){const t=s.i18n;s.__i18n&&(t.__i18n=s.__i18n),t.__root=a,this===this.$root?this.$i18n=mergeToRoot(e,t):this.$i18n=createVueI18n(t)}else s.__i18n?this===this.$root?this.$i18n=mergeToRoot(e,s):this.$i18n=createVueI18n({__i18n:s.__i18n,__root:a}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),t.__setInstance(r,this.$i18n),this.$t=((...e)=>this.$i18n.t(...e)),this.$tc=((...e)=>this.$i18n.tc(...e)),this.$te=((e,a)=>this.$i18n.te(e,a)),this.$d=((...e)=>this.$i18n.d(...e)),this.$n=((...e)=>this.$i18n.n(...e)),this.$tm=(e=>this.$i18n.tm(e))},mounted(){},beforeUnmount(){const e=vue.getCurrentInstance();if(!e)throw createI18nError(22);delete this.$t,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__deleteInstance(e),delete this.$i18n}}}function mergeToRoot(e,a){e.locale=a.locale||e.locale,e.fallbackLocale=a.fallbackLocale||e.fallbackLocale,e.missing=a.missing||e.missing,e.silentTranslationWarn=a.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=a.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=a.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=a.postTranslation||e.postTranslation,e.warnHtmlInMessage=a.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=a.escapeParameterHtml||e.escapeParameterHtml,e.sync=a.sync||e.sync,e.__composer[SetPluralRulesSymbol](a.pluralizationRules||e.pluralizationRules);const t=getLocaleMessages(e.locale,{messages:a.messages,__i18n:a.__i18n});return Object.keys(t).forEach(a=>e.mergeLocaleMessage(a,t[a])),a.datetimeFormats&&Object.keys(a.datetimeFormats).forEach(t=>e.mergeDateTimeFormat(t,a.datetimeFormats[t])),a.numberFormats&&Object.keys(a.numberFormats).forEach(t=>e.mergeNumberFormat(t,a.numberFormats[t])),e}function createI18n(e={}){const a=!shared.isBoolean(e.legacy)||e.legacy,t=!!e.globalInjection,r=new Map,s=a?createVueI18n(e):createComposer(e),n=shared.makeSymbol("vue-i18n"),o={get mode(){return a?"legacy":"composition"},async install(e,...r){e.__VUE_I18N_SYMBOL__=n,e.provide(e.__VUE_I18N_SYMBOL__,o),!a&&t&&injectGlobalFields(e,o.global),apply(e,o,...r),a&&e.mixin(defineMixin(s,s.__composer,o))},get global(){return s},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,a){r.set(e,a)},__deleteInstance(e){r.delete(e)}};return o}function useI18n(e={}){const a=vue.getCurrentInstance();if(null==a)throw createI18nError(16);if(!a.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(17);const t=vue.inject(a.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(22);const r="composition"===t.mode?t.global:t.global.__composer,s=shared.isEmptyObject(e)?"__i18n"in a.type?"local":"global":e.useScope?e.useScope:"local";if("global"===s){let t=shared.isObject(e.messages)?e.messages:{};"__i18nGlobal"in a.type&&(t=getLocaleMessages(r.locale.value,{messages:t,__i18n:a.type.__i18nGlobal}));const s=Object.keys(t);if(s.length&&s.forEach(e=>{r.mergeLocaleMessage(e,t[e])}),shared.isObject(e.datetimeFormats)){const a=Object.keys(e.datetimeFormats);a.length&&a.forEach(a=>{r.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(shared.isObject(e.numberFormats)){const a=Object.keys(e.numberFormats);a.length&&a.forEach(a=>{r.mergeNumberFormat(a,e.numberFormats[a])})}return r}if("parent"===s){let e=getComposer$1(t,a);return null==e&&(shared.warn(getWarnMessage(12)),e=r),e}if("legacy"===t.mode)throw createI18nError(18);const n=t;let o=n.__getInstance(a);if(null==o){const t=a.type,s={...e};t.__i18n&&(s.__i18n=t.__i18n),r&&(s.__root=r),o=createComposer(s),setupLifeCycle(n,a),n.__setInstance(a,o)}return o}function getComposer$1(e,a){let t=null;const r=a.root;let s=a.parent;for(;null!=s;){const a=e;if("composition"===e.mode)t=a.__getInstance(s);else{const e=a.__getInstance(s);null!=e&&(t=e.__composer)}if(null!=t)break;if(r===s)break;s=s.parent}return t}function setupLifeCycle(e,a,t){vue.onMounted(()=>{},a),vue.onUnmounted(()=>{e.__deleteInstance(a)},a)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","d","n","tm"];function injectGlobalFields(e,a){const t=Object.create(null);globalExportProps.forEach(e=>{const r=Object.getOwnPropertyDescriptor(a,e);if(!r)throw createI18nError(22);const s=vue.isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(t,e,s)}),e.config.globalProperties.$i18n=t,globalExportMethods.forEach(t=>{const r=Object.getOwnPropertyDescriptor(a,t);if(!r)throw createI18nError(22);Object.defineProperty(e.config.globalProperties,`$${t}`,r)})}coreBase.registerMessageCompiler(coreBase.compileToFunction),initDev(),exports.DatetimeFormat=DatetimeFormat,exports.NumberFormat=NumberFormat,exports.Translation=Translation,exports.VERSION="9.0.0",exports.createI18n=createI18n,exports.useI18n=useI18n,exports.vTDirective=vTDirective; \ No newline at end of file