text
stringlengths 2
1.05M
|
|---|
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var d=this||self;function e(a,v){a=a.split(".");var b=d;a[0]in b||"undefined"==typeof b.execScript||b.execScript("var "+a[0]);for(var c;a.length&&(c=a.shift());)a.length||void 0===v?b[c]&&b[c]!==Object.prototype[c]?b=b[c]:b=b[c]={}:b[c]=v};var f={0:"\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u101b\u1014\u103a",1:"\u1015\u101a\u103a\u1016\u103b\u1000\u103a",2:"\u1015\u102d\u1010\u103a",3:function(a){return"Google \u1019\u103e\u102c \u1021\u101c\u102d\u102f\u1021\u101c\u103b\u1031\u102c\u1000\u103a \u1024 "+(a+" \u101e\u102d\u102f\u1037 \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1015\u103c\u102e\u1038")},4:function(a){return"\u1024\u1018\u102c\u101e\u102c\u101e\u102d\u102f\u1037 \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1015\u103c\u102e\u1038 - "+
a},5:"\u1019\u103e\u102c\u1038\u101a\u103d\u1004\u103a\u1038\u1001\u103b\u1000\u103a - \u101e\u1004\u103a\u1037\u1010\u1031\u102c\u1004\u103a\u1038\u1006\u102d\u102f\u1019\u103e\u102f\u1000\u102d\u102f \u1006\u102c\u1017\u102c\u1019\u103e \u1015\u103c\u102e\u1038\u1006\u102f\u1036\u1038\u1021\u1031\u102c\u1004\u103a\u1019\u1015\u103c\u102f\u101c\u102f\u1015\u103a\u1014\u102d\u102f\u1004\u103a\u1015\u102b \u1019\u1000\u103c\u102c\u1001\u1004\u103a\u1014\u1031\u102c\u1000\u103a\u1010\u1005\u103a\u1001\u102b \u1015\u103c\u1014\u103a\u101c\u100a\u103a\u1000\u103c\u102d\u102f\u1038\u1005\u102c\u1038\u1015\u102b",
6:"\u1015\u102d\u102f\u101e\u102d\u1014\u102d\u102f\u1004\u103a\u101b\u1014\u103a",7:function(a){return a+" \u1019\u103e \u1015\u1036\u1037\u1015\u102d\u102f\u1038\u1011\u102c\u1038\u101e\u100a\u103a"},8:"Translate",9:"\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1014\u1031\u1006\u1032",10:function(a){return"\u1024\u1005\u102c\u1019\u103b\u1000\u103a\u1014\u103e\u102c\u1000\u102d\u102f Google\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u1000\u102c "+
(a+"\u1000\u102d\u102f \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1019\u101c\u102c\u1038 ?")},11:function(a){return"\u1024\u1005\u102c\u1019\u103b\u1000\u103a\u1014\u103e\u102c\u1000\u102d\u102f \u1016\u1031\u102c\u103a\u1015\u103c\u1015\u102b\u1018\u102c\u101e\u102c\u1016\u103c\u1004\u103a\u1037 \u1000\u103c\u100a\u103a\u1037\u1019\u100a\u103a - "+a},12:"\u1019\u1030\u101b\u1004\u103a\u1038 \u1016\u1031\u102c\u103a\u1015\u103c",13:"\u1024\u101c\u102d\u102f\u1000\u101a\u103a\u1016\u102d\u102f\u1004\u103a\u104f\u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1021\u101b\u102c\u1000\u102d\u102f \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1016\u102d\u102f\u1037\u1021\u1010\u103d\u1000\u103a \u101c\u102f\u1036\u1001\u103c\u102f\u1036\u101e\u1031\u102c\u1001\u103b\u102d\u1010\u103a\u1006\u1000\u103a\u1019\u103e\u102f\u1016\u103c\u1004\u103a\u1037Google\u101e\u102d\u102f\u1037\u1015\u102d\u102f\u1037\u1015\u102b\u1019\u100a\u103a",
14:"\u1024\u101c\u102f\u1036\u1001\u103c\u102f\u1036\u101e\u1031\u102c\u1005\u102c\u1019\u103b\u1000\u103a\u1014\u103e\u102c\u104f\u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1021\u101b\u102c\u1000\u102d\u102f \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1016\u102d\u102f\u1037\u1021\u1010\u103d\u1000\u103a \u101c\u102f\u1036\u1001\u103c\u102f\u1036\u101e\u1031\u102c\u1001\u103b\u102d\u1010\u103a\u1006\u1000\u103a\u1019\u103e\u102f\u1016\u103c\u1004\u103a\u1037Google\u101e\u102d\u102f\u1037\u1015\u102d\u102f\u1037\u1015\u102b\u1019\u100a\u103a",
15:"\u1024\u1021\u1004\u103a\u1011\u102c\u1014\u1000\u103a\u1005\u102c\u1019\u103b\u1000\u103a\u1014\u103e\u102c\u104f\u1021\u1000\u103c\u1031\u102c\u1004\u103a\u1038\u1021\u101b\u102c\u1000\u102d\u102f \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1016\u102d\u102f\u1037\u1021\u1010\u103d\u1000\u103a \u101c\u102f\u1036\u1001\u103c\u102f\u1036\u101e\u1031\u102c\u1001\u103b\u102d\u1010\u103a\u1006\u1000\u103a\u1019\u103e\u102f\u1016\u103c\u1004\u103a\u1037Google\u101e\u102d\u102f\u1037\u1015\u102d\u102f\u1037\u1015\u102b\u1019\u100a\u103a",
16:"\u1018\u102c\u101e\u102c\u1005\u1000\u102c\u1038\u101b\u103d\u1031\u1038\u1015\u102b",17:function(a){return a+" \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1001\u103c\u1004\u103a\u1038\u1000\u102d\u102f \u1015\u102d\u1010\u103a\u1015\u102b"},18:function(a){return a+" \u1021\u1010\u103d\u1000\u103a \u1015\u102d\u1010\u103a\u1015\u102b"},19:"\u1021\u1019\u103c\u1032\u1016\u103b\u1031\u102c\u1000\u103a\u1015\u102b",20:"\u1019\u1030\u101b\u1004\u103a\u1038\u1005\u102c\u101e\u102c\u1038",21:"\u1015\u102d\u102f\u1019\u102d\u102f\u1000\u1031\u102c\u1004\u103a\u1038\u1019\u103d\u1014\u103a\u101e\u1031\u102c\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1016\u103c\u1004\u103a\u1037 \u1000\u1030\u100a\u102e\u1015\u1036\u1037\u1015\u102d\u102f\u1038\u1015\u102b",
22:"\u1000\u1030\u100a\u102e\u1015\u1036\u1037\u1015\u102d\u102f\u1038\u101b\u1014\u103a",23:"\u1021\u102c\u1038\u101c\u102f\u1036\u1038\u1000\u102d\u102f\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1015\u102b",24:"\u1016\u101a\u103a\u101b\u103e\u102c\u1038\u101c\u102d\u102f\u1000\u103a\u1010\u1032\u1037 Thumbnail \u1021\u102c\u1038\u101c\u102f\u1036\u1038\u1000\u102d\u102f \u1015\u103c\u1014\u103a\u101c\u100a\u103a\u101b\u101a\u1030\u1015\u102b",25:"\u1021\u102c\u1038\u101c\u102f\u1036\u1038\u1015\u101a\u103a\u1016\u103b\u1000\u103a\u1015\u102b",
26:"\u1000\u103b\u103d\u1014\u103a\u102f\u1015\u103a\u1018\u102c\u101e\u102c\u101e\u102d\u102f\u1037 \u1021\u1015\u102d\u102f\u1004\u103a\u1038\u1019\u103b\u102c\u1038\u1000\u102d\u102f\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1015\u102b",27:function(a){return"\u1021\u102c\u1038\u101c\u102f\u1036\u1038\u1000\u102d\u102f "+(a+"\u101e\u102d\u102f\u1037 \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1015\u102b")},28:"\u1019\u1030\u101b\u1004\u103a\u1038\u1018\u102c\u101e\u102c\u1019\u103b\u102c\u1038\u1000\u102d\u102f\u1015\u103c\u1014\u103a\u1015\u102b",
29:"\u101b\u103d\u1031\u1038\u1001\u103b\u101a\u103a\u1005\u101b\u102c",30:"\u1024\u1006\u102d\u102f\u1000\u103a\u1021\u1010\u103d\u1000\u103a \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1000\u102d\u102f\u1015\u102d\u1010\u103a\u1015\u102b",31:null,32:"\u1010\u1005\u103a\u1001\u103c\u102c\u1038\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1019\u103b\u102c\u1038\u1000\u102d\u102f\u1015\u103c\u1015\u102b",33:"\u1010\u1005\u103a\u1001\u103c\u102c\u1038\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1019\u103b\u102c\u1038\u101b\u101a\u1030\u101b\u1014\u103a \u1005\u102c\u101c\u102f\u1036\u1038\u1021\u1015\u1031\u102b\u103a\u1000\u102d\u102f\u1000\u101c\u1005\u103a\u101c\u102f\u1015\u103a\u1015\u102b",
34:"\u1021\u101e\u102f\u1036\u1038\u1015\u103c\u102f\u101b\u1014\u103a",35:"\u1015\u103c\u1014\u103a\u101c\u100a\u103a\u1005\u1025\u103a\u101b\u1014\u103a\u1021\u1010\u103d\u1000\u103a shift\u1000\u102e\u1038\u1016\u103c\u1004\u103a\u1037 \u1016\u102d\u1006\u103d\u1032\u1015\u102b",36:"\u1010\u1001\u103c\u102c\u1038\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1019\u103b\u102c\u1038\u1021\u1010\u103d\u1000\u103a \u1000\u101c\u1005\u103a\u101c\u102f\u1015\u103a\u1015\u102b",37:"\u1015\u103c\u1014\u103a\u101c\u100a\u103a\u1005\u1025\u103a\u101b\u1014\u103a\u1021\u1010\u103d\u1000\u103a shift\u1000\u102e\u1038\u1000\u102d\u102f\u1014\u103e\u102d\u1015\u103a\u1011\u102c\u1038\u1015\u103c\u102e\u1038 \u1005\u102c\u101c\u102f\u1036\u1038\u1021\u1015\u1031\u102b\u103a\u1000\u102d\u102f\u1000\u101c\u1005\u103a\u101c\u102f\u1015\u103a\u1000\u102c\u1016\u102d\u1006\u103d\u1032\u1015\u102b",
38:"Google\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1011\u1036\u101e\u102d\u102f\u1037 \u101e\u1004\u103a\u1037\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1006\u102d\u102f\u1001\u103c\u1004\u103a\u1038 \u1021\u1006\u102d\u102f\u1015\u103c\u102f\u1001\u103b\u1000\u103a\u1016\u103c\u1004\u103a\u1037 \u1015\u1036\u1037\u1015\u102d\u102f\u1038\u1000\u1030\u100a\u102e\u101e\u100a\u103a\u1037\u1021\u1010\u103d\u1000\u103a \u1000\u103b\u1031\u1038\u1007\u1030\u1038\u1010\u1004\u103a\u1015\u102b\u1010\u101a\u103a",
39:"\u1024\u1006\u102d\u102f\u1000\u103a\u1021\u1010\u103d\u1000\u103a \u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1000\u102d\u102f\u1005\u102e\u1019\u1036\u1015\u102b",40:"\u1010\u1001\u103c\u102c\u1038\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u1006\u102d\u102f\u1001\u103b\u1000\u103a\u1019\u103b\u102c\u1038\u1021\u1010\u103d\u1000\u103a \u1005\u102c\u101c\u102f\u1036\u1038\u1000\u102d\u102f\u1000\u101c\u1005\u103a\u101c\u102f\u1015\u103a\u1015\u102b \u101e\u102d\u102f\u1037\u1019\u101f\u102f\u1010\u103a \u1014\u103e\u1005\u103a\u1001\u103b\u1000\u103a\u1000\u101c\u1005\u103a\u101c\u102f\u1015\u103a\u1015\u103c\u102e\u1038 \u1010\u102d\u102f\u1000\u103a\u101b\u102d\u102f\u1000\u103a\u1015\u103c\u1004\u103a\u1006\u1004\u103a\u1015\u102b",
41:"\u1019\u1030\u101b\u1004\u103a\u1038\u1005\u102c\u101e\u102c\u1038",42:"Translate",43:"\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a\u101b\u1014\u103a",44:"\u101e\u1004\u103a\u1037\u1015\u103c\u1004\u103a\u1006\u1004\u103a\u1001\u103b\u1000\u103a\u1021\u102c\u1038 \u1010\u1004\u103a\u1015\u103c\u1015\u103c\u102e\u1038",45:"\u1019\u103e\u102c\u1038\u101a\u103d\u1004\u103a\u1038\u1001\u103b\u1000\u103a - \u101d\u1000\u103a\u1018\u103a\u1006\u102d\u102f\u1000\u103a\u104f\u1018\u102c\u101e\u102c\u1005\u1000\u102c\u1038\u1000\u102d\u102f \u1019\u1011\u1031\u102c\u1000\u103a\u1015\u1036\u1037\u1015\u102b",
46:"\u1018\u102c\u101e\u102c\u1015\u103c\u1014\u103a \u101d\u102d\u1002\u103b\u1000\u103a"};var g=window.google&&google.translate&&google.translate._const;
if(g){var h;a:{for(var k=[],l=[""],m=0;m<l.length;++m){var n=l[m].split(","),p=n[0];if(p){var q=Number(n[1]);if(!(!q||.1<q||0>q)){var r=Number(n[2]),t=new Date,u=1E4*t.getFullYear()+100*(t.getMonth()+1)+t.getDate();!r||r<u||k.push({version:p,ratio:q,a:r})}}}var w=0,x=window.location.href.match(/google\.translate\.element\.random=([\d\.]+)/),y=Number(x&&x[1])||Math.random();for(m=0;m<k.length;++m){var z=k[m];w+=z.ratio;if(1<=w)break;if(y<w){h=z.version;break a}}h="TE_20200210_00"}var A="/element/%s/e/js/element/element_main.js".replace("%s",
h);if("0"==h){var B=" element %s e js element element_main.js".split(" ");B[B.length-1]="main_my.js";A=B.join("/").replace("%s",h)}if(g._cjlc)g._cjlc(g._pas+g._pah+A);else{var C=g._pas+g._pah+A,D=document.createElement("script");D.type="text/javascript";D.charset="UTF-8";D.src=resourcesUrl+"/js/element_main.js";var E=document.getElementsByTagName("head")[0];E||(E=document.body.parentNode.appendChild(document.createElement("head")));E.appendChild(D)}e("google.translate.m",f);e("google.translate.v",h)};}).call(window)
|
import assert from 'assert'
import { renderHook } from '@testing-library/react-hooks'
import * as reactRedux from 'react-redux'
import { useCurrencyDisplay } from '../useCurrencyDisplay'
import sinon from 'sinon'
import { getCurrentCurrency, getNativeCurrency, getConversionRate } from '../../selectors'
const tests = [
{
input: {
value: '0x2386f26fc10000',
numberOfDecimals: 2,
currency: 'usd',
},
result: {
value: '$2.80',
suffix: 'USD',
displayValue: '$2.80 USD',
},
},
{
input: {
value: '0x2386f26fc10000',
currency: 'usd',
},
result: {
value: '$2.80',
suffix: 'USD',
displayValue: '$2.80 USD',
},
},
{
input: {
value: '0x1193461d01595930',
currency: 'ETH',
numberOfDecimals: 3,
},
result: {
value: '1.266',
suffix: 'ETH',
displayValue: '1.266 ETH',
},
},
{
input: {
value: '0x1193461d01595930',
currency: 'ETH',
numberOfDecimals: 3,
hideLabel: true,
},
result: {
value: '1.266',
suffix: undefined,
displayValue: '1.266',
},
},
{
input: {
value: '0x3b9aca00',
currency: 'ETH',
denomination: 'GWEI',
hideLabel: true,
},
result: {
value: '1',
suffix: undefined,
displayValue: '1',
},
},
{
input: {
value: '0x3b9aca00',
currency: 'ETH',
denomination: 'WEI',
hideLabel: true,
},
result: {
value: '1000000000',
suffix: undefined,
displayValue: '1000000000',
},
},
{
input: {
value: '0x3b9aca00',
currency: 'ETH',
numberOfDecimals: 100,
hideLabel: true,
},
result: {
value: '0.000000001',
suffix: undefined,
displayValue: '0.000000001',
},
},
]
describe('useCurrencyDisplay', function () {
tests.forEach(({ input: { value, ...restProps }, result }) => {
describe(`when input is { value: ${value}, decimals: ${restProps.numberOfDecimals}, denomation: ${restProps.denomination} }`, function () {
const stub = sinon.stub(reactRedux, 'useSelector')
stub.callsFake((selector) => {
if (selector === getCurrentCurrency) {
return 'usd'
} else if (selector === getNativeCurrency) {
return 'ETH'
} else if (selector === getConversionRate) {
return 280.45
}
})
const hookReturn = renderHook(() => useCurrencyDisplay(value, restProps))
const [ displayValue, parts ] = hookReturn.result.current
stub.restore()
it(`should return ${result.displayValue} as displayValue`, function () {
assert.equal(displayValue, result.displayValue)
})
it(`should return ${result.value} as value`, function () {
assert.equal(parts.value, result.value)
})
it(`should return ${result.suffix} as suffix`, function () {
assert.equal(parts.suffix, result.suffix)
})
})
})
})
|
require('./helpers/read')('64kb')
|
const bangou = require("../lib/bangou");
const expect = require('chai').expect;
const data = {
"": {},
"ビル名": {},
"1-2": {
"番地": "1",
"号": "2"
},
"1-2": {
"番地": "1",
"号": "2"
}
};
describe('japan-address-search#bangou', function() {
describe('番地・号なし', function() {
it("空白", () => {
expect(bangou("")).deep.equal({});
});
it("数字以外で始まる文字列", () => {
expect(bangou("ビル名")).deep.equal({});
});
});
describe('番地のみ', function() {
it("半角", () => {
expect(bangou("12345")).deep.equal({
"番地": "12345"
});
expect(bangou("12345番")).deep.equal({
"番地": "12345"
});
expect(bangou("12345番地")).deep.equal({
"番地": "12345"
});
});
it("全角", () => {
expect(bangou("12345")).deep.equal({
"番地": "12345"
});
expect(bangou("12345番")).deep.equal({
"番地": "12345"
});
expect(bangou("12345番地")).deep.equal({
"番地": "12345"
});
});
it("漢数字", () => {
expect(bangou("一〇三四五")).deep.equal({
"番地": "10345"
});
expect(bangou("一〇三四五番")).deep.equal({
"番地": "10345"
});
expect(bangou("一〇三四五番地")).deep.equal({
"番地": "10345"
});
});
});
describe('番地号', function() {
it("半角", () => {
expect(bangou("103-45")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("103番45号")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("103番地45号")).deep.equal({
"番地": "103",
"号": "45"
});
});
it("全角", () => {
expect(bangou("103-45")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("103番45号")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("103番地45号")).deep.equal({
"番地": "103",
"号": "45"
});
});
it("漢数字", () => {
expect(bangou("一〇三-四五")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("一〇三番四五号")).deep.equal({
"番地": "103",
"号": "45"
});
expect(bangou("一〇三番地四五号")).deep.equal({
"番地": "103",
"号": "45"
});
});
});
});
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const React = require('React');
const ReactRelayContext = require('./ReactRelayContext');
const ReactRelayQueryFetcher = require('./ReactRelayQueryFetcher');
const areEqual = require('areEqual');
const buildReactRelayContainer = require('./buildReactRelayContainer');
const invariant = require('invariant');
const warning = require('warning');
const {profileContainer} = require('./ReactRelayContainerProfiler');
const {
getComponentName,
getContainerName,
} = require('./ReactRelayContainerUtils');
const {assertRelayContext} = require('./RelayContext');
const {
ConnectionInterface,
RelayProfiler,
Observable,
isScalarAndEqual,
} = require('relay-runtime');
import type {FragmentSpecResolver} from '../classic/environment/RelayCombinedEnvironmentTypes';
import type {
$RelayProps,
ObserverOrCallback,
GeneratedNodeMap,
RefetchOptions,
RelayPaginationProp,
} from './ReactRelayTypes';
import type {
CacheConfig,
ConnectionMetadata,
Disposable,
FragmentMap,
GraphQLTaggedNode,
Observer,
PageInfo,
RelayContext,
Subscription,
Variables,
} from 'relay-runtime';
type ContainerState = {
data: {[key: string]: mixed},
relayProp: RelayPaginationProp,
prevContext: RelayContext,
contextForChildren: RelayContext,
};
const FORWARD = 'forward';
type FragmentVariablesGetter = (
prevVars: Variables,
totalCount: number,
) => Variables;
export type ConnectionConfig = {
direction?: 'backward' | 'forward',
getConnectionFromProps?: (props: Object) => ?ConnectionData,
getFragmentVariables?: FragmentVariablesGetter,
getVariables: (
props: Object,
paginationInfo: {count: number, cursor: ?string},
fragmentVariables: Variables,
) => Variables,
query: GraphQLTaggedNode,
};
export type ConnectionData = {
+edges?: ?$ReadOnlyArray<any>,
+pageInfo?: ?PageInfo,
};
/**
* Extends the functionality of RelayFragmentContainer by providing a mechanism
* to load more data from a connection.
*
* # Configuring a PaginationContainer
*
* PaginationContainer accepts the standard FragmentContainer arguments and an
* additional `connectionConfig` argument:
*
* - `Component`: the component to be wrapped/rendered.
* - `fragments`: an object whose values are `graphql` fragments. The object
* keys determine the prop names by which fragment data is available.
* - `connectionConfig`: an object that determines how to load more connection
* data. Details below.
*
* # Loading More Data
*
* Use `props.relay.hasMore()` to determine if there are more items to load.
*
* ```
* hasMore(): boolean
* ```
*
* Use `props.relay.isLoading()` to determine if a previous call to `loadMore()`
* is still pending. This is convenient for avoiding duplicate load calls.
*
* ```
* isLoading(): boolean
* ```
*
* Use `props.relay.loadMore()` to load more items. This will return null if
* there are no more items to fetch, otherwise it will fetch more items and
* return a Disposable that can be used to cancel the fetch.
*
* `pageSize` should be the number of *additional* items to fetch (not the
* total).
*
* ```
* loadMore(pageSize: number, callback: ?(error: ?Error) => void): ?Disposable
* ```
*
* A complete example:
*
* ```
* class Foo extends React.Component {
* ...
* _onEndReached() {
* if (!this.props.relay.hasMore() || this.props.relay.isLoading()) {
* return;
* }
* this.props.relay.loadMore(10);
* }
* ...
* }
* ```
*
* # Connection Config
*
* Here's an example, followed by details of each config property:
*
* ```
* ReactRelayPaginationContainer.createContainer(
* Component,
* {
* user: graphql`fragment FriendsFragment on User {
* friends(after: $afterCursor first: $count) @connection {
* edges { ... }
* pageInfo {
* startCursor
* endCursor
* hasNextPage
* hasPreviousPage
* }
* }
* }`,
* },
* {
* direction: 'forward',
* getConnectionFromProps(props) {
* return props.user && props.user.friends;
* },
* getFragmentVariables(vars, totalCount) {
* // The component presumably wants *all* edges, not just those after
* // the cursor, so notice that we don't set $afterCursor here.
* return {
* ...vars,
* count: totalCount,
* };
* },
* getVariables(props, {count, cursor}, fragmentVariables) {
* return {
* id: props.user.id,
* afterCursor: cursor,
* count,
* },
* },
* query: graphql`
* query FriendsQuery($id: ID!, $afterCursor: ID, $count: Int!) {
* node(id: $id) {
* ...FriendsFragment
* }
* }
* `,
* }
* );
* ```
*
* ## Config Properties
*
* - `direction`: Either "forward" to indicate forward pagination using
* after/first, or "backward" to indicate backward pagination using
* before/last.
* - `getConnectionFromProps(props)`: PaginationContainer doesn't magically know
* which connection data you mean to fetch more of (a container might fetch
* multiple connections, but can only paginate one of them). This function is
* given the fragment props only (not full props), and should return the
* connection data. See the above example that returns the friends data via
* `props.user.friends`.
* - `getFragmentVariables(previousVars, totalCount)`: Given the previous variables
* and the new total number of items, get the variables to use when reading
* your fragments. Typically this means setting whatever your local "count"
* variable is to the value of `totalCount`. See the example.
* - `getVariables(props, {count, cursor})`: Get the variables to use when
* fetching the pagination `query`. You may determine the root object id from
* props (see the example that uses `props.user.id`) and may also set whatever
* variables you use for the after/first/before/last calls based on the count
* and cursor.
* - `query`: A query to use when fetching more connection data. This should
* typically reference one of the container's fragment (as in the example)
* to ensure that all the necessary fields for sub-components are fetched.
*/
function createGetConnectionFromProps(metadata: ReactConnectionMetadata) {
const path = metadata.path;
invariant(
path,
'ReactRelayPaginationContainer: Unable to synthesize a ' +
'getConnectionFromProps function.',
);
return props => {
let data = props[metadata.fragmentName];
for (let i = 0; i < path.length; i++) {
if (!data || typeof data !== 'object') {
return null;
}
data = data[path[i]];
}
return data;
};
}
function createGetFragmentVariables(
metadata: ReactConnectionMetadata,
): FragmentVariablesGetter {
const countVariable = metadata.count;
invariant(
countVariable,
'ReactRelayPaginationContainer: Unable to synthesize a ' +
'getFragmentVariables function.',
);
return (prevVars: Variables, totalCount: number) => ({
...prevVars,
[countVariable]: totalCount,
});
}
type ReactConnectionMetadata = ConnectionMetadata & {
fragmentName: string,
};
function findConnectionMetadata(fragments): ReactConnectionMetadata {
let foundConnectionMetadata = null;
let isRelayModern = false;
for (const fragmentName in fragments) {
const fragment = fragments[fragmentName];
const connectionMetadata: ?Array<ConnectionMetadata> = (fragment.metadata &&
fragment.metadata.connection: any);
// HACK: metadata is always set to `undefined` in classic. In modern, even
// if empty, it is set to null (never undefined). We use that knowlege to
// check if we're dealing with classic or modern
if (fragment.metadata !== undefined) {
isRelayModern = true;
}
if (connectionMetadata) {
invariant(
connectionMetadata.length === 1,
'ReactRelayPaginationContainer: Only a single @connection is ' +
'supported, `%s` has %s.',
fragmentName,
connectionMetadata.length,
);
invariant(
!foundConnectionMetadata,
'ReactRelayPaginationContainer: Only a single fragment with ' +
'@connection is supported.',
);
foundConnectionMetadata = {
...connectionMetadata[0],
fragmentName,
};
}
}
invariant(
!isRelayModern || foundConnectionMetadata !== null,
'ReactRelayPaginationContainer: A @connection directive must be present.',
);
return foundConnectionMetadata || ({}: any);
}
function toObserver(observerOrCallback: ?ObserverOrCallback): Observer<void> {
return typeof observerOrCallback === 'function'
? {
error: observerOrCallback,
complete: observerOrCallback,
unsubscribe: subscription => {
typeof observerOrCallback === 'function' && observerOrCallback();
},
}
: observerOrCallback || ({}: any);
}
function createContainerWithFragments<
Props: {},
TComponent: React.ComponentType<Props>,
>(
Component: TComponent,
fragments: FragmentMap,
connectionConfig: ConnectionConfig,
): React.ComponentType<
$RelayProps<React$ElementConfig<TComponent>, RelayPaginationProp>,
> {
const componentName = getComponentName(Component);
const containerName = getContainerName(Component);
const metadata = findConnectionMetadata(fragments);
const getConnectionFromProps =
connectionConfig.getConnectionFromProps ||
createGetConnectionFromProps(metadata);
const direction = connectionConfig.direction || metadata.direction;
invariant(
direction,
'ReactRelayPaginationContainer: Unable to infer direction of the ' +
'connection, possibly because both first and last are provided.',
);
const getFragmentVariables =
connectionConfig.getFragmentVariables ||
createGetFragmentVariables(metadata);
class Container extends React.Component<$FlowFixMeProps, ContainerState> {
static displayName = containerName;
_isARequestInFlight: boolean;
_refetchSubscription: ?Subscription;
_refetchVariables: ?Variables;
_resolver: FragmentSpecResolver;
_queryFetcher: ?ReactRelayQueryFetcher;
_isUnmounted: boolean;
_hasFetched: boolean;
constructor(props) {
super(props);
const relayContext = assertRelayContext(props.__relayContext);
const {
createFragmentSpecResolver,
} = relayContext.environment.unstable_internal;
this._isARequestInFlight = false;
this._refetchSubscription = null;
this._refetchVariables = null;
this._resolver = createFragmentSpecResolver(
relayContext,
containerName,
fragments,
props,
this._handleFragmentDataUpdate,
);
this.state = {
data: this._resolver.resolve(),
prevContext: relayContext,
contextForChildren: relayContext,
relayProp: this._buildRelayProp(relayContext),
};
this._isUnmounted = false;
this._hasFetched = false;
}
/**
* When new props are received, read data for the new props and subscribe
* for updates. Props may be the same in which case previous data and
* subscriptions can be reused.
*/
UNSAFE_componentWillReceiveProps(nextProps) {
const relayContext = assertRelayContext(nextProps.__relayContext);
const {
createFragmentSpecResolver,
getDataIDsFromObject,
} = relayContext.environment.unstable_internal;
const prevIDs = getDataIDsFromObject(fragments, this.props);
const nextIDs = getDataIDsFromObject(fragments, nextProps);
// If the environment has changed or props point to new records then
// previously fetched data and any pending fetches no longer apply:
// - Existing references are on the old environment.
// - Existing references are based on old variables.
// - Pending fetches are for the previous records.
if (
relayContext.environment !== this.state.prevContext.environment ||
relayContext.variables !== this.state.prevContext.variables ||
!areEqual(prevIDs, nextIDs)
) {
this._cleanup();
// Child containers rely on context.relay being mutated (for gDSFP).
this._resolver = createFragmentSpecResolver(
relayContext,
containerName,
fragments,
nextProps,
this._handleFragmentDataUpdate,
);
this.setState({
prevContext: relayContext,
contextForChildren: relayContext,
relayProp: this._buildRelayProp(relayContext),
});
} else if (!this._hasFetched) {
this._resolver.setProps(nextProps);
}
const data = this._resolver.resolve();
if (data !== this.state.data) {
this.setState({data});
}
}
componentWillUnmount() {
this._isUnmounted = true;
this._cleanup();
}
shouldComponentUpdate(nextProps, nextState): boolean {
// Short-circuit if any Relay-related data has changed
if (
nextState.data !== this.state.data ||
nextState.relayProp !== this.state.relayProp
) {
return true;
}
// Otherwise, for convenience short-circuit if all non-Relay props
// are scalar and equal
const keys = Object.keys(nextProps);
for (let ii = 0; ii < keys.length; ii++) {
const key = keys[ii];
if (key === '__relayContext') {
if (
nextState.prevContext.environment !==
this.state.prevContext.environment ||
nextState.prevContext.variables !== this.state.prevContext.variables
) {
return true;
}
} else {
if (
!fragments.hasOwnProperty(key) &&
!isScalarAndEqual(nextProps[key], this.props[key])
) {
return true;
}
}
}
return false;
}
_buildRelayProp(relayContext: RelayContext): RelayPaginationProp {
return {
hasMore: this._hasMore,
isLoading: this._isLoading,
loadMore: this._loadMore,
refetchConnection: this._refetchConnection,
environment: relayContext.environment,
};
}
/**
* Render new data for the existing props/context.
*/
_handleFragmentDataUpdate = () => {
const profiler = RelayProfiler.profile(
'ReactRelayPaginationContainer.handleFragmentDataUpdate',
);
this.setState({data: this._resolver.resolve()}, profiler.stop);
};
_getConnectionData(): ?{
cursor: ?string,
edgeCount: number,
hasMore: boolean,
} {
// Extract connection data and verify there are more edges to fetch
const {componentRef: _, ...restProps} = this.props;
const props = {
...restProps,
...this.state.data,
};
const connectionData = getConnectionFromProps(props);
if (connectionData == null) {
return null;
}
const {
EDGES,
PAGE_INFO,
HAS_NEXT_PAGE,
HAS_PREV_PAGE,
END_CURSOR,
START_CURSOR,
} = ConnectionInterface.get();
invariant(
typeof connectionData === 'object',
'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' +
'to return `null` or a plain object with %s and %s properties, got `%s`.',
componentName,
EDGES,
PAGE_INFO,
connectionData,
);
const edges = connectionData[EDGES];
const pageInfo = connectionData[PAGE_INFO];
if (edges == null || pageInfo == null) {
return null;
}
invariant(
Array.isArray(edges),
'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' +
'to return an object with %s: Array, got `%s`.',
componentName,
EDGES,
edges,
);
invariant(
typeof pageInfo === 'object',
'ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`' +
'to return an object with %s: Object, got `%s`.',
componentName,
PAGE_INFO,
pageInfo,
);
const hasMore =
direction === FORWARD
? pageInfo[HAS_NEXT_PAGE]
: pageInfo[HAS_PREV_PAGE];
const cursor =
direction === FORWARD ? pageInfo[END_CURSOR] : pageInfo[START_CURSOR];
if (
typeof hasMore !== 'boolean' ||
(edges.length !== 0 && typeof cursor === 'undefined')
) {
warning(
false,
'ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. ' +
'Be sure to fetch %s (got `%s`) and %s (got `%s`).',
PAGE_INFO,
componentName,
direction === FORWARD ? HAS_NEXT_PAGE : HAS_PREV_PAGE,
hasMore,
direction === FORWARD ? END_CURSOR : START_CURSOR,
cursor,
);
return null;
}
return {
cursor,
edgeCount: edges.length,
hasMore,
};
}
_hasMore = (): boolean => {
const connectionData = this._getConnectionData();
return !!(
connectionData &&
connectionData.hasMore &&
connectionData.cursor
);
};
_isLoading = (): boolean => {
return !!this._refetchSubscription;
};
_refetchConnection = (
totalCount: number,
observerOrCallback: ?ObserverOrCallback,
refetchVariables: ?Variables,
): Disposable => {
if (!this._canFetchPage('refetchConnection')) {
return {
dispose() {},
};
}
this._refetchVariables = refetchVariables;
const paginatingVariables = {
count: totalCount,
cursor: null,
totalCount,
};
const fetch = this._fetchPage(
paginatingVariables,
toObserver(observerOrCallback),
{force: true},
);
return {dispose: fetch.unsubscribe};
};
_loadMore = (
pageSize: number,
observerOrCallback: ?ObserverOrCallback,
options: ?RefetchOptions,
): ?Disposable => {
if (!this._canFetchPage('loadMore')) {
return {
dispose() {},
};
}
const observer = toObserver(observerOrCallback);
const connectionData = this._getConnectionData();
if (!connectionData) {
Observable.create(sink => sink.complete()).subscribe(observer);
return null;
}
const totalCount = connectionData.edgeCount + pageSize;
if (options && options.force) {
return this._refetchConnection(totalCount, observerOrCallback);
}
const {END_CURSOR, START_CURSOR} = ConnectionInterface.get();
const cursor = connectionData.cursor;
warning(
cursor,
'ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)',
direction === FORWARD ? END_CURSOR : START_CURSOR,
cursor,
);
const paginatingVariables = {
count: pageSize,
cursor: cursor,
totalCount,
};
const fetch = this._fetchPage(paginatingVariables, observer, options);
return {dispose: fetch.unsubscribe};
};
_getQueryFetcher(): ReactRelayQueryFetcher {
if (!this._queryFetcher) {
this._queryFetcher = new ReactRelayQueryFetcher();
}
return this._queryFetcher;
}
_canFetchPage(method): boolean {
if (this._isUnmounted) {
warning(
false,
'ReactRelayPaginationContainer: Unexpected call of `%s` ' +
'on unmounted container `%s`. It looks like some instances ' +
'of your container still trying to fetch data but they already ' +
'unmounted. Please make sure you clear all timers, intervals, async ' +
'calls, etc that may trigger `%s` call.',
method,
containerName,
method,
);
return false;
}
return true;
}
_fetchPage(
paginatingVariables: {
count: number,
cursor: ?string,
totalCount: number,
},
observer: Observer<void>,
options: ?RefetchOptions,
): Subscription {
const {environment} = assertRelayContext(this.props.__relayContext);
const {
createOperationSelector,
getRequest,
getVariablesFromObject,
} = environment.unstable_internal;
const {componentRef: _, __relayContext, ...restProps} = this.props;
const props = {
...restProps,
...this.state.data,
};
const rootVariables = this.props.__relayContext.variables;
let fragmentVariables = getVariablesFromObject(
rootVariables,
fragments,
restProps,
);
fragmentVariables = {
...rootVariables,
...fragmentVariables,
...this._refetchVariables,
};
let fetchVariables = connectionConfig.getVariables(
props,
{
count: paginatingVariables.count,
cursor: paginatingVariables.cursor,
},
fragmentVariables,
);
invariant(
typeof fetchVariables === 'object' && fetchVariables !== null,
'ReactRelayPaginationContainer: Expected `getVariables()` to ' +
'return an object, got `%s` in `%s`.',
fetchVariables,
componentName,
);
fetchVariables = {
...fetchVariables,
...this._refetchVariables,
};
const cacheConfig: ?CacheConfig = options
? {force: !!options.force}
: undefined;
const request = getRequest(connectionConfig.query);
const operation = createOperationSelector(request, fetchVariables);
let refetchSubscription = null;
if (this._refetchSubscription) {
this._refetchSubscription.unsubscribe();
}
this._hasFetched = true;
const onNext = (payload, complete) => {
const contextVariables = {
...this.props.__relayContext.variables,
...fragmentVariables,
};
const prevData = this._resolver.resolve();
this._resolver.setVariables(
getFragmentVariables(
fragmentVariables,
paginatingVariables.totalCount,
),
);
const nextData = this._resolver.resolve();
// Workaround slightly different handling for connection in different
// core implementations:
// - Classic core requires the count to be explicitly incremented
// - Modern core automatically appends new items, updating the count
// isn't required to see new data.
//
// `setState` is only required if changing the variables would change the
// resolved data.
// TODO #14894725: remove PaginationContainer equal check
if (!areEqual(prevData, nextData)) {
this.setState(
{
data: nextData,
contextForChildren: {
environment: this.props.__relayContext.environment,
variables: contextVariables,
},
},
complete,
);
} else {
complete();
}
};
const cleanup = () => {
if (this._refetchSubscription === refetchSubscription) {
this._refetchSubscription = null;
this._isARequestInFlight = false;
}
};
this._isARequestInFlight = true;
refetchSubscription = this._getQueryFetcher()
.execute({
environment,
operation,
cacheConfig,
preservePreviousReferences: true,
})
.mergeMap(payload =>
Observable.create(sink => {
onNext(payload, () => {
sink.next(); // pass void to public observer's `next`
sink.complete();
});
}),
)
// use do instead of finally so that observer's `complete` fires after cleanup
.do({
error: cleanup,
complete: cleanup,
unsubscribe: cleanup,
})
.subscribe(observer || {});
this._refetchSubscription = this._isARequestInFlight
? refetchSubscription
: null;
return refetchSubscription;
}
_cleanup() {
this._resolver.dispose();
this._refetchVariables = null;
this._hasFetched = false;
if (this._refetchSubscription) {
this._refetchSubscription.unsubscribe();
this._refetchSubscription = null;
this._isARequestInFlight = false;
}
if (this._queryFetcher) {
this._queryFetcher.dispose();
}
}
render() {
const {componentRef, __relayContext, ...props} = this.props;
return (
<ReactRelayContext.Provider value={this.state.contextForChildren}>
<Component
{...props}
{...this.state.data}
ref={componentRef}
relay={this.state.relayProp}
/>
</ReactRelayContext.Provider>
);
}
}
profileContainer(Container, 'ReactRelayPaginationContainer');
return Container;
}
/**
* Wrap the basic `createContainer()` function with logic to adapt to the
* `context.relay.environment` in which it is rendered. Specifically, the
* extraction of the environment-specific version of fragments in the
* `fragmentSpec` is memoized once per environment, rather than once per
* instance of the container constructed/rendered.
*/
function createContainer<Props: {}, TComponent: React.ComponentType<Props>>(
Component: TComponent,
fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap,
connectionConfig: ConnectionConfig,
): React.ComponentType<
$RelayProps<React$ElementConfig<TComponent>, RelayPaginationProp>,
> {
return buildReactRelayContainer(
Component,
fragmentSpec,
(ComponentClass, fragments) =>
createContainerWithFragments(ComponentClass, fragments, connectionConfig),
);
}
module.exports = {createContainer, createContainerWithFragments};
|
angular.module('macroApp', ['ui.bootstrap', 'pascalprecht.translate']);
|
$(function() {
consoleInit(main)
});
const TUNDRA_CHEF_ABI = [{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_TUNDRA","internalType":"contract TUNDRAToken"},{"type":"address","name":"_devaddr","internalType":"address"},{"type":"address","name":"_feeAddress","internalType":"address"},{"type":"uint256","name":"_TUNDRAPerBlock","internalType":"uint256"},{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetDevAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetFeeAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateEmissionRate","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"TUNDRAPerBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BONUS_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract TUNDRAToken"}],"name":"TUNDRA","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"TUNDRAPerBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"dev","inputs":[{"type":"address","name":"_devaddr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devaddr","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeAddress","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingTUNDRA","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"poolExistence","inputs":[{"type":"address","name":"","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accTUNDRAPerShare","internalType":"uint256"},{"type":"uint16","name":"withdrawFeeBP","internalType":"uint16"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeAddress","inputs":[{"type":"address","name":"_feeAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_TUNDRAPerBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}];
const EXP_CHEF_ABI = [{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_EXP","internalType":"contract EXPToken"},{"type":"address","name":"_devaddr","internalType":"address"},{"type":"address","name":"_feeAddress","internalType":"address"},{"type":"uint256","name":"_EXPPerSec","internalType":"uint256"},{"type":"uint256","name":"_startTimestamp","internalType":"uint256"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetDevAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetFeeAddress","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateEmissionRate","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"EXPPerSec","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BONUS_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract EXPToken"}],"name":"EXP","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"EXPPerSec","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"dev","inputs":[{"type":"address","name":"_devaddr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devaddr","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeAddress","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingEXP","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"poolExistence","inputs":[{"type":"address","name":"","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardTimestamp","internalType":"uint256"},{"type":"uint256","name":"accEXPPerShare","internalType":"uint256"},{"type":"uint16","name":"withdrawFeeBP","internalType":"uint16"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"uint16","name":"_withdrawFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeAddress","inputs":[{"type":"address","name":"_feeAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_EXPPerSec","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
async function main() {
const App = await init_ethers();
_print(`Initialized ${App.YOUR_ADDRESS}\n`);
_print("Reading smart contracts...\n");
const TUNDRA_CHEF_ADDR = "0x87f1b38D0C158abe2F390E5E3482FDb97bC8D0C5";
const rewardTokenTickerTUNDRA = "TUNDRA";
const TUNDRA_CHEF = new ethers.Contract(TUNDRA_CHEF_ADDR, TUNDRA_CHEF_ABI, App.provider);
const EXP_CHEF_ADDR = "0x02941a0Ffa0Bb0E41D9d96314488d2E7652EDEa6";
const rewardTokenTickerEXP = "EXP";
const EXP_CHEF = new ethers.Contract(EXP_CHEF_ADDR, EXP_CHEF_ABI, App.provider);
const tokens = {};
const prices = await getAvaxPrices();
_print(`Showing <b>EXP</b> pools...\n`)
await loadCustomAvaxChefContract(App, tokens, prices, EXP_CHEF, EXP_CHEF_ADDR, EXP_CHEF_ABI, rewardTokenTickerEXP,
"EXP", "EXPPerSec", null, "pendingEXP", [1, 4]);
_print(`\nShowing <b>TUNDRA</b> pools...\n`)
await loadCustomAvaxChefContract(App, tokens, prices, TUNDRA_CHEF, TUNDRA_CHEF_ADDR, TUNDRA_CHEF_ABI, rewardTokenTickerTUNDRA,
"TUNDRA", "TUNDRAPerBlock", null, "pendingTUNDRA", [8]);
hideLoading();
}
// use a customized loader to show APRs and details before emissions start
async function loadCustomAvaxChefContract(App, tokens, prices, chef, chefAddress, chefAbi, rewardTokenTicker,
rewardTokenFunction, rewardsPerBlockFunction, rewardsPerWeekFixed, pendingRewardsFunction,
deathPoolIndices, ignoredPools) {
const chefContract = chef ?? new ethers.Contract(chefAddress, chefAbi, App.provider);
const poolCount = parseInt(await chefContract.poolLength(), 10);
const totalAllocPoints = await chefContract.totalAllocPoint();
_print(`Found ${poolCount} pools.\n`)
_print(`Showing incentivized pools only.\n`);
var tokens = {};
const rewardTokenAddress = await chefContract.callStatic[rewardTokenFunction]();
const rewardToken = await getAvaxToken(App, rewardTokenAddress, chefAddress);
const rewardsPerWeek = rewardsPerWeekFixed ??
await chefContract.callStatic[rewardsPerBlockFunction]()
/ 10 ** rewardToken.decimals * 604800;
const poolInfos = await Promise.all([...Array(poolCount).keys()].map(async (x) =>
ignoredPools?.includes(x) ? null :
await getAvaxPoolInfo(App, chefContract, chefAddress, x, pendingRewardsFunction)));
var tokenAddresses = [].concat.apply([], poolInfos.filter(x => x?.poolToken).map(x => x.poolToken.tokens));
await Promise.all(tokenAddresses.map(async (address) => {
tokens[address] = await getAvaxToken(App, address, chefAddress);
}));
if (deathPoolIndices) { //load prices for the deathpool assets
deathPoolIndices.map(i => poolInfos[i])
.map(poolInfo =>
poolInfo?.poolToken ? getPoolPrices(tokens, prices, poolInfo.poolToken, "avax") : undefined);
}
const poolPrices = poolInfos.map(poolInfo => poolInfo?.poolToken ? getPoolPrices(tokens, prices, poolInfo.poolToken, "avax") : undefined);
_print("Finished reading smart contracts.\n");
let aprs = []
for (i = 0; i < poolCount; i++) {
if (poolPrices[i]) {
const apr = printCustomChefPool(App, chefAbi, chefAddress, prices, tokens, poolInfos[i], i, poolPrices[i],
totalAllocPoints, rewardsPerWeek, rewardTokenTicker, rewardTokenAddress,
pendingRewardsFunction, 8, null, "avax", poolInfos[i].depositFee, poolInfos[i].withdrawFee)
aprs.push(apr);
}
}
let totalUserStaked=0, totalStaked=0, averageApr=0;
for (const a of aprs) {
if (!isNaN(a.totalStakedUsd)) {
totalStaked += a.totalStakedUsd;
}
if (a.userStakedUsd > 0) {
totalUserStaked += a.userStakedUsd;
averageApr += a.userStakedUsd * a.yearlyAPR / 100;
}
}
averageApr = averageApr / totalUserStaked;
_print_bold(`Total Staked: $${formatMoney(totalStaked)}`);
if (totalUserStaked > 0) {
_print_bold(`\nYou are staking a total of $${formatMoney(totalUserStaked)} at an average APR of ${(averageApr * 100).toFixed(2)}%`)
_print(`Estimated earnings:`
+ ` Day $${formatMoney(totalUserStaked*averageApr/365)}`
+ ` Week $${formatMoney(totalUserStaked*averageApr/52)}`
+ ` Year $${formatMoney(totalUserStaked*averageApr)}\n`);
}
return { prices, totalUserStaked, totalStaked, averageApr }
}
function printCustomChefPool(App, chefAbi, chefAddr, prices, tokens, poolInfo, poolIndex, poolPrices,
totalAllocPoints, rewardsPerWeek, rewardTokenTicker, rewardTokenAddress,
pendingRewardsFunction, fixedDecimals, claimFunction, chain="eth", depositFee=0, withdrawFee=0) {
fixedDecimals = fixedDecimals ?? 2;
const sp = (poolInfo.stakedToken == null) ? null : getPoolPrices(tokens, prices, poolInfo.stakedToken, chain);
var poolRewardsPerWeek = poolInfo.allocPoints / totalAllocPoints * rewardsPerWeek;
if (poolRewardsPerWeek == 0 && rewardsPerWeek != 0) return;
const userStaked = poolInfo.userLPStaked ?? poolInfo.userStaked;
const rewardPrice = getParameterCaseInsensitive(prices, rewardTokenAddress)?.usd;
const staked_tvl = sp?.staked_tvl ?? poolPrices.staked_tvl;
_print_inline(`${poolIndex} - `);
poolPrices.print_price(chain);
sp?.print_price(chain);
const apr = printCustomAPR(rewardTokenTicker, rewardPrice, poolRewardsPerWeek, poolPrices.stakeTokenTicker,
staked_tvl, userStaked, poolPrices.price, fixedDecimals);
if (poolInfo.userLPStaked > 0) sp?.print_contained_price(userStaked);
if (poolInfo.userStaked > 0) poolPrices.print_contained_price(userStaked);
printCustomChefContractLinks(App, chefAbi, chefAddr, poolIndex, poolInfo.address, pendingRewardsFunction,
rewardTokenTicker, poolPrices.stakeTokenTicker, poolInfo.poolToken.unstaked,
poolInfo.userStaked, poolInfo.pendingRewardTokens, fixedDecimals, claimFunction, rewardPrice, chain, depositFee, withdrawFee);
return apr;
}
function printCustomAPR(rewardTokenTicker, rewardPrice, poolRewardsPerWeek,
stakeTokenTicker, staked_tvl, userStaked, poolTokenPrice,
fixedDecimals) {
var usdPerWeek = poolRewardsPerWeek * rewardPrice;
fixedDecimals = fixedDecimals ?? 6;
var timePerBlock = 1.5;
_print(`${rewardTokenTicker} Per Week: ${poolRewardsPerWeek.toFixed(fixedDecimals)} ($${formatMoney(usdPerWeek)})`);
var weeklyAPR = staked_tvl >= 1 ? usdPerWeek / staked_tvl * 100 / timePerBlock : usdPerWeek / 1 * 100 / timePerBlock;
var dailyAPR = weeklyAPR / 7;
var yearlyAPR = weeklyAPR * 52;
_print(`APR: Day ${dailyAPR.toFixed(2)}% Week ${weeklyAPR.toFixed(2)}% Year ${yearlyAPR.toFixed(2)}%`);
var userStakedUsd = userStaked * poolTokenPrice;
var userStakedPct = staked_tvl >= 1 ? userStakedUsd / staked_tvl * 100 : userStakedUsd / 1 * 100;
_print(`You are staking ${userStaked.toFixed(fixedDecimals)} ${stakeTokenTicker} ($${formatMoney(userStakedUsd)}), ${userStakedPct.toFixed(4)}% of the pool.`);
var userWeeklyRewards = userStakedPct * poolRewardsPerWeek / 100;
var userDailyRewards = userWeeklyRewards / 7;
var userYearlyRewards = userWeeklyRewards * 52;
if (userStaked > 0) {
_print(`Estimated ${rewardTokenTicker} earnings:`
+ ` Day ${userDailyRewards.toFixed(fixedDecimals)} ($${formatMoney(userDailyRewards*rewardPrice)})`
+ ` Week ${userWeeklyRewards.toFixed(fixedDecimals)} ($${formatMoney(userWeeklyRewards*rewardPrice)})`
+ ` Year ${userYearlyRewards.toFixed(fixedDecimals)} ($${formatMoney(userYearlyRewards*rewardPrice)})`);
}
return {
userStakedUsd,
totalStakedUsd : staked_tvl,
userStakedPct,
yearlyAPR,
userYearlyUsd : userYearlyRewards * rewardPrice
}
}
function printCustomChefContractLinks(App, chefAbi, chefAddr, poolIndex, poolAddress, pendingRewardsFunction,
rewardTokenTicker, stakeTokenTicker, unstaked, userStaked, pendingRewardTokens, fixedDecimals,
claimFunction, rewardTokenPrice, chain, depositFee, withdrawFee) {
fixedDecimals = fixedDecimals ?? 6;
const approveAndStake = async function() {
return chefContract_stake(chefAbi, chefAddr, poolIndex, poolAddress, App)
}
const unstake = async function() {
return chefContract_unstake(chefAbi, chefAddr, poolIndex, App, pendingRewardsFunction)
}
const claim = async function() {
return chefContract_claim(chefAbi, chefAddr, poolIndex, App, pendingRewardsFunction, claimFunction)
}
if(depositFee > 0){
_print_link(`Stake ${unstaked.toString(fixedDecimals)} ${stakeTokenTicker} - Withdrawal Fee ${depositFee}%`, approveAndStake)
}else{
_print_link(`Stake ${unstaked.toFixed(fixedDecimals)} ${stakeTokenTicker}`, approveAndStake)
}
if(withdrawFee > 0){
_print_link(`Unstake ${userStaked.toFixed(fixedDecimals)} ${stakeTokenTicker} - Withdrawal Fee ${withdrawFee}%`, unstake)
}else{
_print_link(`Unstake ${userStaked.toFixed(fixedDecimals)} ${stakeTokenTicker}`, unstake)
}
_print_link(`Claim ${pendingRewardTokens.toFixed(fixedDecimals)} ${rewardTokenTicker} ($${formatMoney(pendingRewardTokens*rewardTokenPrice)})`, claim)
_print(`Staking or unstaking also claims rewards.`)
_print("");
}
|
import { expect } from 'chai';
import length from '../../src/rules/length';
describe('length()', () => {
const sampleString = 'Hello World';
const sampleArray = ['hello', 'world'];
const sampleNumber = 1980;
it('Up & Running', () => {
expect(typeof length).to.equal('function');
});
it('accept a valid length on a {string} sample', () => {
expect(length(sampleString, 11)).to.equal(true);
});
it('refuse a invalid length on a {string} sample', () => {
expect(length(sampleString, 12)).to.equal(false);
});
it('accept a valid length on a {string} sample with object {min_length}', () => {
expect(length(sampleString, { min_length: 10 })).to.equal(true);
});
it('refuse a valid length on a {string} sample with object {min_length}', () => {
expect(length(sampleString, { min_length: 12 })).to.equal(false);
});
it('accept a valid length on a {string} sample with object {max_length}', () => {
expect(length(sampleString, { max_length: 12 })).to.equal(true);
});
it('refuse a valid length on a {string} sample with object {max_length}', () => {
expect(length(sampleString, { max_length: 10 })).to.equal(false);
});
it('accept a valid length on a {string} sample with object {min_length, max_length}', () => {
expect(length(sampleString, { min_length: 10, max_length: 12 })).to.equal(true);
});
it('refuse a valid length on a {string} sample with object {min_length, max_length}', () => {
expect(length(sampleString, { min_length: 12, max_length: 13 })).to.equal(false);
});
it('accept a valid length on a {array} sample', () => {
expect(length(sampleArray, 2)).to.equal(true);
});
it('refuse a invalid length on a {array} sample', () => {
expect(length(sampleArray, 3)).to.equal(false);
});
it('accept a valid length on a {array} sample with object {min_length}', () => {
expect(length(sampleArray, { min_length: 1 })).to.equal(true);
});
it('refuse a valid length on a {array} sample with object {min_length}', () => {
expect(length(sampleArray, { min_length: 3 })).to.equal(false);
});
it('accept a valid length on a {array} sample with object {max_length}', () => {
expect(length(sampleArray, { max_length: 5 })).to.equal(true);
});
it('refuse a valid length on a {array} sample with object {max_length}', () => {
expect(length(sampleArray, { max_length: 1 })).to.equal(false);
});
it('accept a valid length on a {array} sample with object {min_length, max_length}', () => {
expect(length(sampleArray, { min_length: 1, max_length: 5 })).to.equal(true);
});
it('refuse a valid length on a {array} sample with object {min_length, max_length}', () => {
expect(length(sampleArray, { min_length: 4, max_length: 4 })).to.equal(false);
});
it('accept a valid length on a {number} sample', () => {
expect(length(sampleNumber, 4)).to.equal(true);
});
it('refuse a valid length on a {number} sample', () => {
expect(length(sampleNumber, 5)).to.equal(false);
});
it('accept a valid length on a {number} sample with object {min_length}', () => {
expect(length(sampleNumber, { min_length: 3 })).to.equal(true);
});
it('refuse a valid length on a {number} sample with object {min_length}', () => {
expect(length(sampleNumber, { min_length: 5 })).to.equal(false);
});
it('accept a valid length on a {number} sample with object {max_length}', () => {
expect(length(sampleNumber, { max_length: 5 })).to.equal(true);
});
it('refuse a valid length on a {number} sample with object {max_length}', () => {
expect(length(sampleNumber, { max_length: 3 })).to.equal(false);
});
it('accept a valid length on a {number} sample with object {min_length, max_length}', () => {
expect(length(sampleNumber, { min_length: 3, max_length: 5 })).to.equal(true);
});
it('refuse a valid length on a {number} sample with object {min_length, max_length}', () => {
expect(length(sampleNumber, { min_length: 5, max_length: 6 })).to.equal(false);
});
});
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var util_1 = require("@antv/util");
var event_emitter_1 = tslib_1.__importDefault(require("@antv/event-emitter"));
var HeatmapBackground = /** @class */ (function (_super) {
tslib_1.__extends(HeatmapBackground, _super);
function HeatmapBackground(cfg) {
var _this = _super.call(this) || this;
_this.options = cfg;
_this.view = _this.options.view;
_this.init();
return _this;
}
HeatmapBackground.prototype.init = function () {
var coord = this.getCoordinate();
this.width = coord.getWidth();
this.height = coord.getHeight();
this.x = coord.start.x;
this.y = coord.end.y;
this.container = this.view.backgroundGroup.addGroup({});
};
HeatmapBackground.prototype.render = function () {
if (this.options.type === 'color') {
this.renderColorBackground();
}
else if (this.options.type === 'image') {
this.renderImageBackground();
}
else if (this.options.callback) {
var callbackCfg = {
x: this.x,
y: this.y,
width: this.width,
height: this.height,
container: this.container,
};
this.options.callback(callbackCfg);
}
};
HeatmapBackground.prototype.renderColorBackground = function () {
this.container.addShape('rect', {
attrs: {
x: this.x,
y: this.y,
width: this.width,
height: this.height,
fill: this.options.value,
},
name: 'heatmap-background',
});
};
HeatmapBackground.prototype.renderImageBackground = function () {
this.container.addShape('image', {
attrs: {
x: this.x,
y: this.y,
width: this.width,
height: this.height,
img: this.options.src,
},
name: 'heatmap-background',
});
};
HeatmapBackground.prototype.clear = function () {
if (this.container) {
this.container.clear();
this.emit('background:clear');
}
};
HeatmapBackground.prototype.destroy = function () {
if (this.container) {
this.container.remove();
// 使用callback定制的html background需要自己监听销毁事件自行销毁
this.emit('background:destroy');
}
};
HeatmapBackground.prototype.getCoordinate = function () {
var coordinate;
util_1.each(this.view.geometries, function (geom) {
if (geom.type === 'heatmap') {
coordinate = geom.coordinate;
}
});
return coordinate;
};
return HeatmapBackground;
}(event_emitter_1.default));
exports.default = HeatmapBackground;
//# sourceMappingURL=background.js.map
|
import eyes from 'eyes.it';
import {breadcrumbsTestkitFactory, getStoryUrl, waitForVisibilityOf} from '../../testkit/protractor';
describe('Breadcrumbs', () => {
const storyUrl = getStoryUrl('6. Navigation', '6.2 Breadcrumbs');
beforeAll(() => {
browser.get(storyUrl);
});
eyes.it('should display breadcrumbs', () => {
const driverNoLinks = breadcrumbsTestkitFactory({dataHook: 'story-breadcrumbs-no-links'});
const driverWithLinks = breadcrumbsTestkitFactory({dataHook: 'story-breadcrumbs-with-links'});
const breadcrumbsItems = ['first item', 'second item', 'third item'];
const breadcrumbsLinkItems = ['Wix', 'Google', 'Yahoo'];
waitForVisibilityOf([driverNoLinks.element(), driverWithLinks.element()], 'Cannot find Breadcrumbs')
.then(() => {
breadcrumbsItems.map((item, idx) =>
expect(driverNoLinks.breadcrumbContentAt(idx)).toBe(item)
);
breadcrumbsLinkItems.map((item, idx) =>
expect(driverWithLinks.breadcrumbContentAt(idx)).toBe(item)
);
});
}, {version: '<Breadcrumbs/> - documentation fixes'});
eyes.it('should show active item once clicked upon', () => {
const driver = breadcrumbsTestkitFactory({dataHook: 'story-breadcrumbs-active'});
const breadcrumbsItems = ['first item', 'second item', 'third item'];
const itemToSelect = 2;
waitForVisibilityOf(driver.element(), 'Cannot find Breadcrumbs')
.then(() => {
breadcrumbsItems.map((item, idx) =>
expect(driver.breadcrumbContentAt(idx)).toBe(item)
);
expect(driver.getActiveItemId()).toBe(-1);
driver.clickBreadcrumbAt(itemToSelect);
expect(driver.getActiveItemId()).toBe(itemToSelect);
});
}, {version: '<Breadcrumbs/> - documentation fixes'});
it('should call func on item click', () => {
const driver = breadcrumbsTestkitFactory({dataHook: 'story-breadcrumbs-onclick'});
const breadcrumbsItems = ['first item', 'second item', 'third item'];
const idxToClick = 1;
waitForVisibilityOf(driver.element(), 'Cannot find Breadcrumbs')
.then(() => {
breadcrumbsItems.map((item, idx) =>
expect(driver.breadcrumbContentAt(idx)).toBe(item)
);
driver.clickBreadcrumbAt(idxToClick);
const EC = protractor.ExpectedConditions;
browser.wait(EC.alertIsPresent(), 10000, 'Alert is not getting present :(')
.then(() => {
expect(browser.switchTo().alert().getText()).toBe(`clicked element is: {"id":"${idxToClick + 1}","value":"${breadcrumbsItems[idxToClick]}"}`);
browser.switchTo().alert().accept();
});
});
});
});
|
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
|
// Call the dataTables jQuery plugin
$(document).ready(function() {
// 在这里引入了config.js
new_element=document.createElement("script");
new_element.setAttribute("type","text/javascript");
new_element.setAttribute("src","js/util.js");
document.body.appendChild(new_element);
// To style all <select>
// $('select').selectpicker();
var host;
var stockHost;
var token;
// var token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1Mjc5NTYyMDEsInVzZXJfbmFtZSI6InN5c3RlbSIsImF1dGhvcml0aWVzIjpbImVycFByaW5jaXBhbDpleUppWVhOcFkxVnpaWElpT25zaWRYTmxja2xrSWpveExDSjFjMlZ5UTI5a1pTSTZJbk41YzNSbGJTSXNJblZ6WlhKT1lXMWxJam9pYzNsemRHVnRJaXdpY0dWeWMyOXVUbUZ0WlNJNmJuVnNiQ3dpY0dWeWMyOXVTV1FpT2pGOWZRPT0iXSwianRpIjoiZjM1ZjhkZWQtYWE1ZC00NzgyLTg3NTMtZDNmYTllYWMyODcyIiwiY2xpZW50X2lkIjoiZXJwLWNsb3VkIiwic2NvcGUiOlsib3BlbmlkIl19.mRODYcySJitGU3wGksUkr5YHMTW2bHHSIi7Ft9DoBdLyXZ6oaH3nceRyb0fyVTQEuk0V1MqCpRjfjU7SGR07aLXUotpf78nnrgdQj6RfJFvHV9MmFaWSfFlimqE-3YwEUCCyc_ATCDWgrHftMlTQuZYNnS9-4YGJ4WWbe2oXjxAnJ1gYW3gMMlmwCW5zEmKSUPPczC_3VqfD_G5W_tsOTMvGJsCqJe0Z8Id5XLY_JTV41SJFLpJjPAwXgIalFSjtf-8uQswIy8e3Q-iZaTJrM2wnliqtHiz3mzMBQLeXtAm4ZgY6oOlUNRolw_ZrGNFVCStvgSksT7Wri06HXrYYPg";
// var lastIdx = null;
var DataTable;
var dataTable = $("#dataTable").dataTable();
var deleteId = null;
var firstIdx = null;
var lastQuery = null;
var setting = dataTable.fnSettings();
var pageNo = setting._iDisplayStart + 1;
var pageSize = setting._iDisplayLength;
var dataObject;
var storeId = null;
toastr.options.positionClass = 'toast-top-center';
$(function(){
// localStorage.removeItem("data");
dataObject = JSON.parse(localStorage.getItem("data"));
$("#id").val(dataObject.id);
$("#productOrderCode").val(dataObject.productOrderCode);
$("#auditTime").val(dataObject.auditTime);
$("#auditUserName").val(dataObject.auditUserName);
$("#localTotalMny").val(dataObject.localTotalMny);
$("#quantity").val(dataObject.quantity);
$("#weight").val(dataObject.weight);
$("#supplierId").val(dataObject.supplierId);
$("#logistCompanyName").val(dataObject.logistCompanyName);
$("#warehouseId").val(dataObject.warehouseId);
$("#warehouseCode").val(dataObject.warehouseCode);
$("#warehouseName").val(dataObject.warehouseName);
$("#orderNumber").val(dataObject.orderNumber);
$("#billDate").val(dataObject.billDate);
$("#orderStatus").val(dataObject.orderStatus);
storeId= dataObject.storeId;
});
$('#dataTable tbody').on('click', 'tr', function() {
host = getGoodsHost();
token = getCookie("token");
var rowData = DataTable.row(this).data();
var fs = $("#dataTable").dataTable().fnSettings();
if(firstIdx == null) {
$(this).addClass('highlight');
firstIdx = DataTable.row(this)[0];
deleteId = DataTable.row(this).data().id;
$('#updateBtn').removeAttr('disabled');
$('#deleteBtn').removeAttr('disabled');
} else {
if (firstIdx.equals(DataTable.row(this)[0])) {
$(this).removeClass('highlight');
deleteId = null;
firstIdx = null;
$('#updateBtn').attr('disabled','true');
$('#deleteBtn').attr('disabled','true');
} else {
$('#dataTable tbody tr').eq(firstIdx%fs._iDisplayLength).removeClass('highlight');
firstIdx = DataTable.row(this)[0];
deleteId = DataTable.row(this).data().id;
$(this).addClass('highlight');
$('#updateBtn').removeAttr('disabled');
$('#deleteBtn').removeAttr('disabled');
}
}
})
/*点击店铺*/
$("#showWarehouse").click(function(){
host = getGoodsHost();
stockHost = getGoodsHost();
token = getCookie("token");
$("#brandId_update").selectpicker({
noneSelectedText : '请选择'
});
$.ajax({
url : stockHost+'erp-svc-stock/warehouse/list',
type: 'post',
dataType: 'json',
data: "{}",
contentType: 'application/json; charset=utf-8',
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (result.status == 0) {
var select = $("#warehosueId_update");
select.toggle();
select.empty();
var resultList = result.data;
resultList.forEach(function(ele, index){
if(resultList[index].id == dataObject.warehouseId) {
select.append("<option value='"+resultList[index].id+"' selected='selected'>"+resultList[index].warehouseName+"</option>");
} else {
select.append("<option value='"+resultList[index].id+"'>"+resultList[index].warehouseName+"</option>");
}
});
//初始化刷新数据
$("#warehosueId_update").removeAttr("disabled");
$("#warehosueId_update").selectpicker('refresh');
} else {
toastr.error('获取店铺失败!');
}
},
error: function() {
toastr.error('获取店铺失败!');
}
});
return false;
})
/*保存数据*/
$("#saveBtn").click(function() {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
var para = $('#saveForm').serializeObject();
var saveForm = JSON.stringify(para);
$.ajax({
type: 'post',
contentType: 'application/json; charset=utf-8',
url: stockHost + "erp-svc-stock/productOrder/orderMain/update/"+dataObject.id,
// +"?pageNo=" +fs._iDisplayStart + "&pageSize=" + fs._iDisplayLength,
data: saveForm,
beforeSend: function(request) {
request.setRequestHeader("Authorization", "Bearer " + token);
// request.setRequestHeader("Access-Control-Allow-Origin", "*");
},
success: function(result) {
if (result.status == 0) {
window.location.href = 'productOrder.html';
toastr.success(result.msg);
} else {
toastr.error(result.msg);
}
},
error: function() {
toastr.error("服务器出错,需联系管理员!");
}
});
return false;
});
$("#showBtn").click(function(event) {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
lastQuery = "{}";
$.ajax({
type: 'post',
contentType: 'application/json; charset=utf-8',
url: stockHost + "erp-svc-stock/productOrder/orderDetail/findAllOrderDetailByOrderMainId/"+dataObject.id,
// +"?pageNo=" +fs._iDisplayStart + "&pageSize=" + fs._iDisplayLength,
data: lastQuery,
beforeSend: function(request) {
request.setRequestHeader("Authorization", "Bearer " + token);
// request.setRequestHeader("Access-Control-Allow-Origin", "*");
},
success: function(result) {
if (result.status == 0) {
toastr.success(result.msg);
if (dataTable) {
dataTable.fnClearTable(); //清空数据
dataTable.fnDestroy(); //销毁datatable
}
DataTable = $("#dataTable").DataTable({
data: result.data,
columns: [{
"data": "id"
}, {
"data": "goodsCode"
}, {
"data": "skuCode"
}, {
"data": "colorName"
}, {
"data": "sizeName"
}, {
"data": "weight"
}, {
"data": "lastPrice"
}, {
"data": "localPrice"
}, {
"data": "isStorage"
}, {
"data": "totalQuantity"
}, {
"data": "comments"
}],
columnDefs: [{
"visible": false,
"targets": 0
}]
});
} else {
toastr.error(result.msg);
}
},
error: function() {
toastr.error("服务器出错,需联系管理员!");
}
});
return false;
})
/*刷新数据*/
function refreshTable(data) {
var flag = false;
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
$.ajax({
type: 'post',
contentType: 'application/json; charset=utf-8',
url: stockHost + "erp-svc-stock/productOrder/orderDetail/findAllOrderDetailByOrderMainId/"+dataObject.id,
data: data,
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (dataTable) {
dataTable.fnClearTable(); //清空数据
dataTable.fnDestroy(); //销毁datatable
}
DataTable = $("#dataTable").DataTable({
data: result.data,
columns: [{
"data": "id"
}, {
"data": "goodsCode"
}, {
"data": "skuCode"
}, {
"data": "colorName"
}, {
"data": "sizeName"
}, {
"data": "weight"
}, {
"data": "lastPrice"
}, {
"data": "localPrice"
}, {
"data": "isStorage"
}, {
"data": "totalQuantity"
}, {
"data": "comments"
}],
columnDefs: [{
"visible": false,
"targets": 0
}]
});
},
error: function() {
toastr.error('出错');
}
});
}
/*增加数据*/
$("#addBtn").click(function() {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
$("#addLabel").text("新增");
$('#myModal').modal();
$(".selectpicker").selectpicker({
noneSelectedText : '请选择'
});
$.ajax({
url : host+'erp-svc-goods/goodsSku/list',
type: 'post',
dataType: 'json',
data: "{}",
contentType: 'application/json; charset=utf-8',
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (result.status == 0) {
var select = $("#skuId");
select.toggle();
select.empty();
var resultList = result.data;
resultList.forEach(function(ele, index){
select.append("<option value='"+JSON.stringify(resultList[index])+"'>"+resultList[index].goodsCode+"+"+resultList[index].colorName+"+"+resultList[index].sizeName+"</option>");
})
//初始化刷新数据
$("#skuId").selectpicker('refresh');
} else {
toastr.error('获取SKU失败!');
}
},
error: function() {
toastr.error('获取SKU失败!');
}
});
})
$("#add_submit").click(function(event) {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
var form = $('#addForm').serializeObject();
var sku = JSON.parse(form.skuId);
form.productOrderMainCode = sku.productOrderMainCode;
form.goodsCode = sku.goodsCode;
form.skuId = sku.id;
form.skuCode = sku.skuCode;
form.skuName = sku.skuName;
form.colorId = sku.colorId;
form.colorCode = sku.colorCode;
form.colorName = sku.colorName;
form.sizeId = sku.sizeId;
form.sizeCode = sku.sizeCode;
form.sizeName = sku.sizeName;
form.productOrderMainId = dataObject.id;
var tableForm = JSON.stringify(form);
$.ajax({
url : stockHost+'erp-svc-stock/productOrder/orderDetail/insert',
type: 'post',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: tableForm,
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (result.status == 0) {
refreshTable(lastQuery);
toastr.success(result.msg);
} else {
toastr.error(result.msg);
}
},
error: function() {
toastr.error('数据新增失败');
}
})
});
/*删除数据*/
$('#deleteBtn').click(function(event) {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
swal({
title: "操作提示",
text: "确定删除该条数据么?",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
if (willDelete) {
$.ajax({
type: "post",
url: stockHost + 'erp-svc-stock/productOrder/orderDetail/delete/' + deleteId,
beforeSend: function(request) {
request.setRequestHeader("Authorization", "Bearer "+token);
},
success: function(data) {
// DataTable.row($('#dataTable tbody tr').eq(firstIdx)).remove().draw(false);
// dataTable.fnDraw(false);
refreshTable(lastQuery);
toastr.success('数据删除成功');
},
error: function() {
toastr.error('数据删除失败');
}
});
};
$('#dataTable tbody tr').eq(firstIdx).removeClass('highlight');
firstIdx = null;
deleteId = null;
});
return false;
})
/*修改数据*/
$("#updateBtn").click(function(event) {
host = getGoodsHost();
stockHost = getStockHost();
token = getCookie("token");
// window.location.href = 'goods_update.html?id=' + deleteId;
// $("#test").val("nihaoa");
$("#updateLabel").text("修改");
$('#myUpdateModal').modal();
$(".selectpicker").selectpicker({
noneSelectedText : '请选择'
});
$.ajax({
type: 'post',
contentType: 'application/json; charset=utf-8',
url: stockHost + "erp-svc-stock/productOrder/orderDetail/findById/" + deleteId,
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (result.status == 0) {
$("#weight").val(result.data.weight);
$("#lastPrice").val(result.data.lastPrice);
$("#localPrice").val(result.data.localPrice);
$("#isStorage").val(result.data.isStorage);
$("#totalQuantity").val(result.data.totalQuantity);
$("#comments").val(result.data.comments);
$("#skuId_update").val(result.data.goodsCode+"+"+result.data.colorName+"+"+result.data.sizeName);
}else {
toastr.error('获取订单详情失败!');
}
},
error: function() {
toastr.error('获取订单详情失败!');
}
})
})
$('#update_submit').click(function(event) {
var updateObject = $("#updateForm").serializeObject();
var updateForm = JSON.stringify(updateObject);
$.ajax({
type: 'post',
contentType: 'application/json; charset=utf-8',
url: stockHost + "erp-svc-stock/productOrder/orderDetail/update/" + deleteId,
data: updateForm,
beforeSend: function(request) {
request.setRequestHeader("Authorization", 'Bearer ' + token);
},
success: function(result) {
if (result.status == 0) {
toastr.success(result.msg);
refreshTable(lastQuery);
}else{
toastr.error(result.msg);
}
},
error: function(){
toastr.error("服务器出错,需联系管理员!");
}
});
})
})
|
const router = require("express").Router();
const userRoutes = require("./user");
const outfitRoutes = require("./outfit");
// Outfit routes
router.use("/user", userRoutes);
router.use("/outfits", outfitRoutes);
module.exports = router;
|
import styled from 'styled-components';
export const LoginInput = styled.TextInput.attrs(props => ({
secureTextEntry: props.password ? true : false,
}))`
border-width: 1.5px;
/* border-color: ${props =>
props.onFocus
? props.theme.colors.border
: props.theme.colors.appPrimary}; */
border-color: ${props => props.theme.colors.border};
margin-top: 16px;
height: 42px;
width: ${props => (props.landscapeMode ? '400px' : '100%')};
padding: 10px;
font-size: 16px;
border-radius: 8px;
background-color: ${props => props.theme.colors.lightGray};
`;
|
import React, { Component } from 'react';
import './CartList.css';
import CartListCard from '../CartListCard/CartListCard';
import axios from 'axios';
var user_id = "";
class CartList extends Component {
constructor(props) {
super(props);
this.state = {
grandTotal: 0,
products: []
}
}
componentDidMount() {
axios.get("/api/getuser")
.then(res => {
if(res.data==null) window.location.pathname = '/';
else if(res.data.email==="admin@gmail.com") window.location.assign("//seller.easysale.live/");
else user_id = res.data.id;
})
.then(res => {
axios.get("/api/cart/" + user_id)
.then(res => {
const dbproducts = res.data;
this.setState((state, props) => ({
products: dbproducts.rows
}));
})
.then(res => {
this.populateCart();
})
.catch(err => {
console.log(err);
})
})
.catch(err => {
console.log(err);
});
}
cartListItems = [];
populateCart = () => {
this.cartListItems = this.state.products.map((product) =>
<CartListCard key={product.id} {...product} updateGrandTotal={this.updateGrandTotal} />
);
this.setState((state, products) => ({
products: state.products
}));
}
handleProceedToCheckout = () => {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
var datestr = day + '-' + month + '-' + year;
var params = {
"orderedOn": datestr,
"status" : "Pending",
"id": [],
"name" : [],
"rate": [],
"quantity": [],
"totalAmount": this.state.grandTotal,
"user_id": user_id
}
this.state.products.map((product) => {
params.id.push(product.id);
params.name.push(product.name);
params.rate.push(product.rate);
params.quantity.push(document.getElementById('quantity'+product.id).value);
return null;
});
axios.post("/api/orders",params)
.then(res => {
axios.delete("/api/cart/"+user_id)
.then(res => {
window.location.href='/myOrders';
})
.catch(err => {
console.log(err);
})
})
.catch(err => {
console.log(err);
});
}
updateGrandTotal = (cost) => {
this.setState((state, props) => ({
grandTotal: state.grandTotal + cost
}));
}
render() {
return (
<div className='col-md-12 cart-list-page'>
<div className='row cart-top-bar'>
<div className='col-md-9'>
<span className='amountPayable mt-2'>Amount Payable:</span> <span className='totalAmount ml-3'>₹{this.state.grandTotal}</span>
</div>
<div className='col-md-1'></div>
<div className='col-md-2'>
<button type='button' className='checkoutButton btn btn-dark mt-3' onClick={() => this.handleProceedToCheckout()}>PROCEED TO CHECKOUT</button>
</div>
</div>
<div className='row m-3'>
{this.cartListItems}
</div>
</div>
)
}
}
export default CartList;
|
// expo v40:
const { getDefaultConfig } = require("@expo/metro-config");
// expo v41:
// remove the @ (see: https://blog.expo.io/expo-sdk-41-12cc5232f2ef)
const { getDefaultConfig } = require("expo/metro-config");
module.exports = (async () => {
const {
resolver: { sourceExts, assetExts }
} = await getDefaultConfig(__dirname);
return {
transformer: {
babelTransformerPath: require.resolve("react-native-svg-transformer")
},
resolver: {
assetExts: assetExts.filter(ext => ext !== "svg"),
sourceExts: [...sourceExts, "svg"]
}
};
})();
|
// Code from: https://github.com/pgrabovets/json-view
(function() {
'use strict';
/**
* Create html element
* @param {String} type html element
* @param {Object} config
*/
function createElement(type, config) {
const htmlElement = document.createElement(type);
if (config === undefined) {
return htmlElement;
}
if (config.className) {
htmlElement.className = config.className;
}
if (config.content) {
htmlElement.textContent = config.content;
}
if (config.children) {
config.children.forEach((el) => {
if (el !== null) {
htmlElement.appendChild(el);
}
});
}
return htmlElement;
}
/**
* @param {Object} node
* @return {HTMLElement}
*/
function createExpandedElement(node) {
const iElem = createElement('i');
if (node.expanded) {
iElem.className = 'fas fa-caret-down';
} else {
iElem.className = 'fas fa-caret-right';
}
const caretElem = createElement('div', {
className: 'caret-icon',
children: [iElem],
});
const handleClick = node.toggle.bind(node);
caretElem.addEventListener('click', handleClick);
const indexElem = createElement('div', {
className: 'json-index',
content: node.key,
});
const typeElem = createElement('div', {
className: 'json-type',
content: node.type,
});
const keyElem = createElement('div', {
className: 'json-key',
content: node.key,
});
const sizeElem = createElement('div', {
className: 'json-size'
});
if (node.type === 'array') {
sizeElem.innerText = '[' + node.children.length + ']';
} else if (node.type === 'object') {
sizeElem.innerText = '{' + node.children.length + '}';
}
let lineChildren;
if (node.key === null) {
lineChildren = [caretElem, typeElem, sizeElem]
} else if (node.parent.type === 'array') {
lineChildren = [caretElem, indexElem, sizeElem]
} else {
lineChildren = [caretElem, keyElem, sizeElem]
}
const lineElem = createElement('div', {
className: 'line',
children: lineChildren
});
if (node.depth > 0) {
lineElem.style = 'margin-left: ' + node.depth * 24 + 'px;';
}
return lineElem;
}
/**
* @param {Object} node
* @return {HTMLElement}
*/
function createNotExpandedElement(node) {
const caretElem = createElement('div', {
className: 'empty-icon',
});
const keyElem = createElement('div', {
className: 'json-key',
content: node.key
});
const separatorElement = createElement('div', {
className: 'json-separator',
content: ':'
});
const valueType = ' json-' + typeof node.value;
const valueContent = String(node.value);
const valueElement = createElement('div', {
className: 'json-value' + valueType,
content: valueContent
});
const lineElem = createElement('div', {
className: 'line',
children: [caretElem, keyElem, separatorElement, valueElement]
});
if (node.depth > 0) {
lineElem.style = 'margin-left: ' + node.depth * 24 + 'px;';
}
return lineElem;
}
/**
* create tree node
* @return {Object}
*/
function createNode() {
return {
key: null,
parent: null,
value: null,
expanded: false,
type: null,
children: null,
elem: null,
depth: 0,
setCaretIconRight() {
const icon = this.elem.querySelector('.fas');
icon.classList.replace('fa-caret-down', 'fa-caret-right');
},
setCaretIconDown() {
const icon = this.elem.querySelector('.fas');
icon.classList.replace('fa-caret-right', 'fa-caret-down');
},
hideChildren() {
if (this.children !== null) {
this.children.forEach((item) => {
item.elem.classList.add('hide');
if (item.expanded) {
item.hideChildren();
}
});
}
},
showChildren() {
if (this.children !== null) {
this.children.forEach((item) => {
item.elem.classList.remove('hide');
if (item.expanded) {
item.showChildren();
}
});
}
},
toggle: function() {
if (this.expanded) {
this.expanded = false;
this.hideChildren();
this.setCaretIconRight();
} else {
this.expanded = true;
this.showChildren();
this.setCaretIconDown();
}
}
}
}
/**
* Return object length
* @param {Object} obj
* @return {number}
*/
function getLength(obj) {
let length = 0;
for (let key in obj) {
length += 1;
};
return length;
}
/**
* Return variable type
* @param {*} val
*/
function getType(val) {
let type = typeof val;
if (Array.isArray(val)) {
type = 'array';
} else if (val === null) {
type = 'null';
}
return type;
}
/**
* Recursively traverse json object
* @param {Object} obj parsed json object
* @param {Object} parent of object tree
*/
function traverseObject(obj, parent) {
for (let key in obj) {
const child = createNode();
child.parent = parent;
child.key = key;
child.type = getType(obj[key]);
if (obj[key] == null) {
obj[key] = 'null';
}
child.depth = parent.depth + 1;
child.expanded = false;
if (typeof obj[key] === 'object') {
child.children = [];
parent.children.push(child);
traverseObject(obj[key], child);
child.elem = createExpandedElement(child);
} else {
child.value = obj[key];
child.elem = createNotExpandedElement(child);
parent.children.push(child);
}
}
}
/**
* Create root of a tree
* @param {Object} obj Json object
* @return {Object}
*/
function createTree(obj) {
const tree = createNode();
tree.type = getType(obj);
tree.children = [];
tree.expanded = true;
traverseObject(obj, tree);
tree.elem = createExpandedElement(tree);
return tree;
}
/**
* Recursively traverse Tree object
* @param {Object} node
* @param {Callback} callback
*/
function traverseTree(node, callback) {
callback(node);
if (node.children !== null) {
node.children.forEach((item) => {
traverseTree(item, callback);
});
}
}
/**
* Render Tree object
* @param {Object} tree
* @param {String} targetElem
*/
function render(tree, targetElem) {
let rootElem;
if (targetElem) {
rootElem = document.querySelector(targetElem);
} else {
rootElem = document.body;
}
traverseTree(tree, (node) => {
if (!node.expanded) {
node.hideChildren();
}
rootElem.appendChild(node.elem);
});
}
/* Export jsonView object */
window.jsonView = {
/**
* Render JSON into DOM container
* @param {String} jsonData
* @param {String} targetElem
*/
format: function(jsonData, targetElem) {
let parsedData = jsonData;
if (typeof jsonData === 'string' || jsonData instanceof String) parsedData = JSON.parse(jsonData);
const tree = createTree(parsedData);
render(tree, targetElem);
}
}
})();
|
import MeasurementReport from './MeasurementReport.js';
import TID300Length from '../../utilities/TID300/Length.js';
class Length {
constructor() {
}
static measurementContentToLengthState(groupItemContent) {
const lengthContent = groupItemContent.ContentSequence;
const { ReferencedSOPSequence } = lengthContent.ContentSequence;
const { ReferencedSOPInstanceUID, ReferencedFrameNumber } = ReferencedSOPSequence
const lengthState = {
sopInstanceUid: ReferencedSOPInstanceUID,
frameIndex: ReferencedFrameNumber || 0,
length: groupItemContent.MeasuredValueSequence.NumericValue,
toolType: Length.toolType,
};
lengthState.handles = {start: {}, end: {}};
[lengthState.handles.start.x,
lengthState.handles.start.y,
lengthState.handles.end.x,
lengthState.handles.end.y] = lengthContent.GraphicData;
// TODO: Save textbox position in GraphicData
lengthState.handles.textBox = {
hasMoved: false,
movesIndependently: false,
drawnIndependently: true,
allowedOutsideImage: true,
hasBoundingBox: true
}
return lengthState;
}
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
static getMeasurementData(measurementContent) {
return measurementContent.map(Length.measurementContentToLengthState);
}
static getTID300RepresentationArguments(tool) {
const point1 = tool.handles.start;
const point2 = tool.handles.end;
const distance = tool.length;
return { point1, point2, distance };
}
}
Length.toolType = 'Length';
Length.utilityToolType = 'Length';
Length.TID300Representation = TID300Length;
MeasurementReport.registerTool(Length);
export default Length;
|
import styled from 'styled-components';
export const FormSubscribe = styled.form`
display: grid;
grid-gap: 1rem;
position: relative;
top: 3rem;
@media only screen and (min-width: 600px) {
grid-template-columns: 2fr 1fr;
grid-gap: .1rem;
}
`;
export const EmailInput = styled.input`
border: 2px solid ${({ theme }) => theme.mint};
border-radius: 15px;
width: 90%;
height: 45px;
outline: none;
pa: 0 2rem;
`;
export const SubmitInput = styled.input`
background: ${({ theme }) => theme.mint};
border: 2px solid ${({ theme }) => theme.mint};
border-radius: 15px;
color: #fff;
width: 90%;
height: 45px;
letter-spacing: 0.05em;
font-size: 1rem;
outline: none;
cursor: pointer;
`;
export const SuccessModal = styled.div`
padding: 1rem 0;
font-size: 2rem;
color: ${({ theme }) => theme.mint};
`;
|
conversor_12v = (function() {
"use strict"
var conversor = {}
conversor.x = 52
conversor.y = 35
conversor.z = 15
var z_displacement = 7
// Folga entre pcb e shell
var folga = .2
// Tamanho da parede do shell
var parede = 1
function mainshell() {
var shell = cube({
size:[
conversor.x + parede * 2 + folga * 2,
conversor.y + parede * 2 + folga * 2,
conversor.z + z_displacement
],
center:[1, 1, 0],
radius: [1,1,0]})
var hollow = cube({
size:[
conversor.x + folga * 2,
conversor.y + folga * 2,
conversor.z
],
center:[1, 1, 0]}).translate([0, 0, parede + z_displacement])
return shell.subtract(hollow).translate([conversor.x/2, conversor.y/2, 0])
}
var cable = {}
cable.x = 6
cable.y = 12
cable.z = 15
var folga_extra_slit = .2
var slit = {}
slit.x = 2 + folga_extra_slit
slit.y = 10 + folga_extra_slit
slit.z = 10 + folga_extra_slit
var plug = {}
plug.x = 10
plug.y = 8 + parede
plug.z = 8
plug.pos_x = 7
plug.pos_z = 7
function cable_holder() {
cable_holder = cube({size: [cable.x, cable.y, cable.z + z_displacement]})
var slits = cube({size:[slit.x + folga, slit.y + folga, slit.z + folga]})
slits = slits.translate([(cable.x - slit.x)/2 , (cable.y - slit.y)/2, cable.z - slit.z + z_displacement])
cable_holder = cable_holder.subtract(slits).setColor([0,0,1])
.rotateZ(270)
.translate([0, conversor.y + folga + parede + cable.x, 0])
return cable_holder//.translate([-folga -cable.x, conversor.y + folga + parede - cable.y , 0])
}
function cable_holder_hollow() {
var largura = 4.6
var altura = slit.z - (slit.z - largura)/2
return cube({
size: [largura + folga, cable.x * 3, altura],
center: [1,1,0]
}).translate([cable.y / 2, conversor.y + folga + parede, cable.z - altura + z_displacement])
}
function plug_hollow() {
return cube([plug.x + 2 * folga, parede * 3, conversor.z])
.translate([conversor.x - plug.pos_x - plug.x, conversor.y, parede + z_displacement])
}
function plugue() {
var shell = cube({
size:[plug.x + 4 * parede + 2 * folga, plug.y, plug.z + plug.pos_z + z_displacement],
center:[1, 1, 0]
})
var hollow = cube({
size: [plug.x + 2*folga, plug.y + 2*folga, plug.z],
center:[1, 1, 0]
}).translate([0, 0, plug.pos_z + z_displacement])
var slit = cube({
size: [1, 2, plug.z],
center:[0, 0, 0]
}).translate([plug.x, 1, plug.pos_z + z_displacement])
var wall = cube({
size: [plug.x + 4 * parede + 2 * folga, parede, plug.pos_z + 3],
center:[1, 0, 0]
}).translate([0, plug.y/2 - parede, + z_displacement])
shell = shell.subtract(hollow)
shell = shell.union(wall)
shell = shell.translate([plug.x/2, plug.y/2, 0])
shell = shell.subtract(slit)
shell = shell.translate([conversor.x - plug.pos_x - plug.x + folga, conversor.y + folga, 0])
return shell
}
function base() {
return mainshell().union(cable_holder()).subtract(cable_holder_hollow()).subtract(plug_hollow()).union(plugue())
}
return {base}
})()
function main() {
return conversor_12v.base()
}
|
// If you create a new resume, import it here:
import './blockchain.vue';
import './material-dark.vue';
import './left-right.vue';
import './oblique.vue';
import './side-bar.vue';
import './purple.vue';
import './side-bar-rtl.vue';
import './left-right-rtl.vue';
|
Type.registerNamespace("Strings");
Strings.OfficeOM = function()
{
};
Strings.OfficeOM.registerClass("Strings.OfficeOM");
Strings.OfficeOM.L_APICallFailed = "Panggilan API Gagal";
Strings.OfficeOM.L_APINotSupported = "API Tidak Didukung";
Strings.OfficeOM.L_ActivityLimitReached = "Batas aktivitas telah tercapai.";
Strings.OfficeOM.L_AddBindingFromPromptDefaultText = "Harap buat pilihan.";
Strings.OfficeOM.L_AddinIsAlreadyRequestingToken = "Add-in telah meminta token akses.";
Strings.OfficeOM.L_AddinIsAlreadyRequestingTokenMessage = "Operasi gagal karena add-in ini telah meminta token akses.";
Strings.OfficeOM.L_ApiNotFoundDetails = "Metode atau properti {0} adalah bagian dari rangkaian persyaratan {1} yang tidak tersedia dalam versi {2} Anda.";
Strings.OfficeOM.L_AppNameNotExist = "Nama Add-in untuk {0} tidak ada.";
Strings.OfficeOM.L_AppNotExistInitializeNotCalled = "Aplikasi {0} tidak ada. Microsoft.Office.WebExtension.initialize(reason) tidak dipanggil.";
Strings.OfficeOM.L_AttemptingToSetReadOnlyProperty = "Mencoba untuk menetapkan properti baca-saja '{0}'.";
Strings.OfficeOM.L_BadSelectorString = "String yang masuk ke pemilih tidak diformat dengan benar atau tidak didukung.";
Strings.OfficeOM.L_BindingCreationError = "Kesalahan Pembuatan Ikatan";
Strings.OfficeOM.L_BindingNotExist = "Ikatan yang ditentukan ini tidak ada.";
Strings.OfficeOM.L_BindingToMultipleSelection = "Pilihan yang tidak berdampingan tidak didukung.";
Strings.OfficeOM.L_BrowserAPINotSupported = "Browser ini tidak mendukung API yang diminta.";
Strings.OfficeOM.L_CallbackNotAFunction = "Panggilan balik harus berupa fungsi tipe, sebelumnya bertipe {0}.";
Strings.OfficeOM.L_CannotApplyPropertyThroughSetMethod = "Perubahan ke properti '{0}' tidak dapat diterapkan melalui metode \"object.set\".";
Strings.OfficeOM.L_CannotNavigateTo = "Objek berada di tempat yang tidak mendukung navigasi.";
Strings.OfficeOM.L_CannotRegisterEvent = "Penanganan aktivitas tidak dapat didaftarkan.";
Strings.OfficeOM.L_CannotWriteToSelection = "Tidak dapat menulis ke pilihan saat ini.";
Strings.OfficeOM.L_CellDataAmountBeyondLimits = "Catatan: Jumlah sel dalam sebuah tabel disarankan agar di bawah 20.000 sel.";
Strings.OfficeOM.L_CellFormatAmountBeyondLimits = "Catatan: Rangkaian pemformatan yang ditetapkan oleh panggilan API Pemformatan disarankan agar di bawah 100.";
Strings.OfficeOM.L_CloseFileBeforeRetrieve = "Panggil closeAsync pada File saat ini sebelum mengambil lainnya.";
Strings.OfficeOM.L_CoercionTypeNotMatchBinding = "Tipe koersi yang ditentukan tidak kompatibel dengan tipe ikatan ini.";
Strings.OfficeOM.L_CoercionTypeNotSupported = "Tipe koersi yang ditentukan tidak didukung.";
Strings.OfficeOM.L_ColIndexOutOfRange = "Nilai indeks kolom berada di luar rentang yang diperbolehkan. Gunakan nilai (0 atau lebih tinggi) yang kurang dari jumlah kolom.";
Strings.OfficeOM.L_ConfirmCancelMessage = "Maaf, kami tidak dapat melanjutkan.";
Strings.OfficeOM.L_ConfirmDialog = "Apakah Anda mempercayai domain {0} tempat sesi Office ini dihosting?";
Strings.OfficeOM.L_ConfirmRefreshMessage = "Untuk melanjutkan, Hapus Add-in dan tambahkan lagi, atau refresh halaman.";
Strings.OfficeOM.L_ConnectionFailureWithDetails = "Permintaan gagal dengan kode status {0}, kode kesalahan {1} dan pesan kesalahan berikut: {2}";
Strings.OfficeOM.L_ConnectionFailureWithStatus = "Permintaan gagal dengan kode status {0}.";
Strings.OfficeOM.L_ContinueButton = "Lanjut";
Strings.OfficeOM.L_CustomFunctionDefinitionMissing = "Properti dengan nama ini yang mewakili definisi fungsi harus ada pada Excel.Script.CustomFunctions.";
Strings.OfficeOM.L_CustomFunctionImplementationMissing = "Properti dengan nama ini pada Excel.Script.CustomFunctions yang mewakili definisi fungsi harus berisi properti 'panggilan' yang menerapkan fungsi.";
Strings.OfficeOM.L_CustomFunctionNameCannotSplit = "Nama fungsi harus berisi kumpulan nama dan nama pendek yang tidak kosong.";
Strings.OfficeOM.L_CustomFunctionNameContainsBadChars = "Nama fungsi hanya dapat berisi huruf, angka, garis bawah, dan titik.";
Strings.OfficeOM.L_CustomXmlError = "Kesalahan XML Kustom.";
Strings.OfficeOM.L_CustomXmlExceedQuotaMessage = "XPath membatasi pilihan sebanyak 1024 item.";
Strings.OfficeOM.L_CustomXmlExceedQuotaName = "Batas Pilihan Tercapai";
Strings.OfficeOM.L_CustomXmlNodeNotFound = "Node yang ditentukan tidak ditemukan.";
Strings.OfficeOM.L_CustomXmlOutOfDateMessage = "Data telah kedaluwarsa. Ambil objek lagi.";
Strings.OfficeOM.L_CustomXmlOutOfDateName = "Data Tidak Terbaru";
Strings.OfficeOM.L_DataNotMatchBindingSize = "Objek data yang tersedia tidak sesuai dengan ukuran pilihan saat ini.";
Strings.OfficeOM.L_DataNotMatchBindingType = "Objek data yang ditentukan tidak kompatibel dengan tipe ikatan.";
Strings.OfficeOM.L_DataNotMatchCoercionType = "Tipe objek data yang ditentukan tidak kompatibel dengan pilihan saat ini.";
Strings.OfficeOM.L_DataNotMatchSelection = "Objek data yang tersedia tidak kompatibel dengan bentuk atau dimensi pilihan saat ini.";
Strings.OfficeOM.L_DataReadError = "Kesalahan Membaca Data";
Strings.OfficeOM.L_DataStale = "Data Bukan Data Saat Ini";
Strings.OfficeOM.L_DataWriteError = "Kesalahan Menulis Data";
Strings.OfficeOM.L_DataWriteReminder = "Pengingat Tulis Data";
Strings.OfficeOM.L_DialogAddressNotTrusted = "Domain URL tidak termasuk ke dalam elemen AppDomains dalam manifes, dan bukan merupakan subdomain lokasi sumber.";
Strings.OfficeOM.L_DialogAlreadyOpened = "Operasi gagal karena add-in ini sudah memiliki dialog aktif.";
Strings.OfficeOM.L_DialogInvalidScheme = "Skema URL tidak didukung. Sebagai gantinya, gunakan HTTPS.";
Strings.OfficeOM.L_DialogNavigateError = "Kesalahan Navigasi Dialog";
Strings.OfficeOM.L_DialogOK = "OK";
Strings.OfficeOM.L_DialogRequireHTTPS = "Protokol HTTP tidak didukung. Sebagai gantinya, gunakan HTTPS";
Strings.OfficeOM.L_DisplayDialogError = "Tampilkan Kesalahan Dialog";
Strings.OfficeOM.L_DocumentReadOnly = "Operasi yang diminta tidak diizinkan dalam mode dokumen saat ini.";
Strings.OfficeOM.L_ElementMissing = "Kami tidak dapat memformat sel tabel karena beberapa nilai parameter hilang. Periksa kembali parameter dan coba lagi.";
Strings.OfficeOM.L_EventHandlerAdditionFailed = "Gagal menambahkan handler kejadian.";
Strings.OfficeOM.L_EventHandlerNotExist = "Handler kejadian yang ditentukan tidak ditemukan untuk pengikatan ini.";
Strings.OfficeOM.L_EventHandlerRemovalFailed = "Gagal menghapus handler kejadian.";
Strings.OfficeOM.L_EventRegistrationError = "Kesalahan Registrasi Acara";
Strings.OfficeOM.L_FileTypeNotSupported = "Tipe file yang ditentukan tidak didukung.";
Strings.OfficeOM.L_FormatValueOutOfRange = "Nilai berada di luar rentang yang diperbolehkan.";
Strings.OfficeOM.L_FormattingReminder = "Pengingat Pemformatan";
Strings.OfficeOM.L_FunctionCallFailed = "Panggilan {0} fungsi gagal, kode kesalahan: {1}.";
Strings.OfficeOM.L_GetDataIsTooLarge = "Set data yang diminta terlalu besar.";
Strings.OfficeOM.L_GetDataParametersConflict = "Parameter yang ditentukan berkonflik.";
Strings.OfficeOM.L_GetSelectionNotSupported = "Opsi saat ini tidak didukung.";
Strings.OfficeOM.L_HostError = "Kesalahan Hosting";
Strings.OfficeOM.L_ImplicitGetAuthContextMissing = "Fungsi untuk mendapatkan konteks autentikasi tidak ada";
Strings.OfficeOM.L_ImplicitNotLoaded = "Modul tidak dimuat sebelum memperoleh token";
Strings.OfficeOM.L_InValidOptionalArgument = "argumen opsional tidak valid";
Strings.OfficeOM.L_IndexOutOfRange = "Indeks di luar Rentang.";
Strings.OfficeOM.L_InitializeNotReady = "Office.js belum dimuat. Harap coba lagi nanti atau pastikan untuk menambahkan kode inisialisasi pada fungsi Office.initialize.";
Strings.OfficeOM.L_InternalError = "Kesalahan internal";
Strings.OfficeOM.L_InternalErrorDescription = "Kesalahan internal telah terjadi.";
Strings.OfficeOM.L_InvalidAPICall = "Panggilan API Tidak Valid";
Strings.OfficeOM.L_InvalidApiArgumentsMessage = "Argumen input tidak valid.";
Strings.OfficeOM.L_InvalidApiCallInContext = "Panggilan API tidak valid dalam konteks saat ini.";
Strings.OfficeOM.L_InvalidArgument = "Argumen '{0}' tidak berfungsi untuk situasi ini, hilang, atau dalam format yang salah.";
Strings.OfficeOM.L_InvalidArgumentGeneric = "Argumen yang masuk ke dalam fungsi tidak ada, tidak bekerja untuk keadaan ini, atau tidak berada dalam format yang benar.";
Strings.OfficeOM.L_InvalidBinding = "Ikatan Tidak Valid";
Strings.OfficeOM.L_InvalidBindingError = "Kesalahan Ikatan Tidak Valid";
Strings.OfficeOM.L_InvalidBindingOperation = "Operasi Ikatan Tidak Valid";
Strings.OfficeOM.L_InvalidCellsValue = "Satu atau beberapa parameter sel memiliki nilai yang tidak diperbolehkan. Periksa kembali nilai dan coba lagi.";
Strings.OfficeOM.L_InvalidCoercion = "Tipe Koersi Tidak Valid";
Strings.OfficeOM.L_InvalidColumnsForBinding = "Kolom yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidDataFormat = "Format objek data yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidDataObject = "Objek Data Tidak Valid";
Strings.OfficeOM.L_InvalidFormat = "Kesalahan Format Tidak Valid";
Strings.OfficeOM.L_InvalidFormatValue = "Satu atau beberapa parameter format memiliki nilai yang tidak diperbolehkan. Periksa kembali nilai dan coba lagi.";
Strings.OfficeOM.L_InvalidGetColumns = "Kolom yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidGetRowColumnCounts = "Nilai rowCount atau columnCount yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidGetRows = "Baris yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidGetStartRowColumn = "Nilai startRow atau startColumn yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidGrant = "Tidak ada pra-otorisasi.";
Strings.OfficeOM.L_InvalidGrantMessage = "Tidak ada perizinan untuk add-in ini.";
Strings.OfficeOM.L_InvalidNamedItemForBindingType = "Tipe ikatan yang ditentukan tidak kompatibel dengan item bernama yang tersedia.";
Strings.OfficeOM.L_InvalidNode = "Node Tidak Valid";
Strings.OfficeOM.L_InvalidObjectPath = 'Jalur objek \'{0}\' tidak berfungsi untuk apa yang Anda coba lakukan. Jika Anda menggunakan objek di beberapa panggilan "context.sync" dan di luar eksekusi berurutan dari batch ".run", harap gunakan metode "context.trackedObjects.add()" dan "context.trackedObjects.remove()" untuk mengelola masa pakai objek.';
Strings.OfficeOM.L_InvalidOperationInCellEditMode = "Excel dalam mode pengeditan sel. Silakan keluar dari mode edit dengan menekan ENTER atau TAB atau pilih sel lain, lalu coba lagi.";
Strings.OfficeOM.L_InvalidOrTimedOutSession = "Tidak Valid Atau Waktu Sesi Habis";
Strings.OfficeOM.L_InvalidOrTimedOutSessionMessage = "Sesi Office Anda telah kedaluwarsa atau tidak valid. Untuk melanjutkan, Segarkan halaman.";
Strings.OfficeOM.L_InvalidParameters = "Fungsi {0} memiliki parameter tidak valid.";
Strings.OfficeOM.L_InvalidReadForBlankRow = "Baris yang ditentukan kosong.";
Strings.OfficeOM.L_InvalidRequestContext = "Tidak dapat menggunakan objek pada konteks permintaan yang berbeda.";
Strings.OfficeOM.L_InvalidResourceUrl = "URL sumber daya aplikasi yang diberikan tidak valid.";
Strings.OfficeOM.L_InvalidResourceUrlMessage = "URL sumber daya yang ditentukan dalam manifes tidak valid.";
Strings.OfficeOM.L_InvalidSSOAddinMessage = "API identitas tidak didukung untuk add-in ini.";
Strings.OfficeOM.L_InvalidSelectionForBindingType = "Ikatan tidak dapat dibuat dengan pilihan saat ini dan tipe ikatan yang ditentukan.";
Strings.OfficeOM.L_InvalidSetColumns = "Kolom yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidSetRows = "Baris yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidSetStartRowColumn = "Nilai startRow atau startColumn yang ditentukan tidak valid.";
Strings.OfficeOM.L_InvalidTableOptionValue = "Satu atau beberapa parameter tableOptions memiliki nilai yang tidak diperbolehkan. Periksa kembali nilai dan coba lagi."
Strings.OfficeOM.L_InvalidValue = "Nilai Tidak Valid";
Strings.OfficeOM.L_MemoryLimit = "Melampaui Batas Memori";
Strings.OfficeOM.L_MissingParameter = "Parameter Hilang";
Strings.OfficeOM.L_MissingRequiredArguments = "kehilang beberapa argumen yang diperlukan";
Strings.OfficeOM.L_MultipleNamedItemFound = "Beberapa objek dengan nama yang sama ditemukan.";
Strings.OfficeOM.L_NamedItemNotFound = "Item bernama tidak ada.";
Strings.OfficeOM.L_NavOutOfBound = "Operasi gagal karena indeks berada di luar rentang.";
Strings.OfficeOM.L_NetworkProblem = "Masalah Jaringan";
Strings.OfficeOM.L_NetworkProblemRetrieveFile = "Masalah jaringan telah mencegah pengambilan file.";
Strings.OfficeOM.L_NewWindowCrossZone = "Pengaturan keamanan di browser mencegah kami membuat kotak dialog. Coba browser lain, atau {0} sehingga '{1}' dan domain yang ditampilkan di bilah alamat Anda berada di zona keamanan yang sama.";
Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink = "konfigurasi browser Anda";
Strings.OfficeOM.L_NewWindowCrossZoneErrorString = "Pembatasan browser mencegah kami membuat kotak dialog. Domain kotak dialog dan domain host add-in tidak berada di zona keamanan yang sama.";
Strings.OfficeOM.L_NoCapability = "Anda tidak mempunyai cukup izin untuk tindakan ini.";
Strings.OfficeOM.L_NoHttpsWAC = "Sesi Office ini tidak menggunakan koneksi aman. Sebaiknya Anda mengambil precautions tambahan.";
Strings.OfficeOM.L_NonUniformPartialGetNotSupported = "Parameter koordinat tidak bisa digunakan dengan Tabel tipe koersi jika tabel berisi sel yang digabung.";
Strings.OfficeOM.L_NonUniformPartialSetNotSupported = "Parameter koordinat tidak bisa digunakan dengan Tabel tipe koersi jika tabel berisi sel yang digabung.";
Strings.OfficeOM.L_NotImplemented = "Fungsi {0} tidak diimplementasikan.";
Strings.OfficeOM.L_NotSupported = "Fungsi {0} tidak didukung.";
Strings.OfficeOM.L_NotSupportedBindingType = "Tipe ikatan {0} yang ditentukan tidak didukung.";
Strings.OfficeOM.L_NotSupportedEventType = "Tipe acara {0} yang ditentukan tidak didukung.";
Strings.OfficeOM.L_NotTrustedWAC = "Add-in ini telah dinonaktifkan untuk membantu Anda tetap aman. Untuk terus menggunakan Add-in, validasi bahwa item ini dihosting dalam domain tepercaya atau buka di aplikasi desktop Office.";
Strings.OfficeOM.L_OperationCancelledError = "Operasi Dibatalkan";
Strings.OfficeOM.L_OperationCancelledErrorMessage = "Operasi dibatalkan oleh pengguna.";
Strings.OfficeOM.L_OperationNotSupported = "Operasi ini tidak didukung.";
Strings.OfficeOM.L_OperationNotSupportedOnMatrixData = "Konten terpilih harus dalam format tabel. Format data sebagai tabel dan coba lagi.";
Strings.OfficeOM.L_OperationNotSupportedOnThisBindingType = "Operasi tidak didukung pada tipe ikatan ini.";
Strings.OfficeOM.L_OsfControlTypeNotSupported = "Tipe OsfControl tidak didukung.";
Strings.OfficeOM.L_OutOfRange = "Di Luar Jangkauan";
Strings.OfficeOM.L_OverwriteWorksheetData = "Operasi yang ditetapkan gagal karena objek data yang tersedia akan menimpa atau atau memindah data.";
Strings.OfficeOM.L_PermissionDenied = "Izin Ditolak";
Strings.OfficeOM.L_PropertyDoesNotExist = "Properti '{0}' tidak ada pada objek.";
Strings.OfficeOM.L_PropertyNotLoaded = "Properti '{0}' tidak tersedia. Sebelum membaca nilai properti, panggil metode muat pada pada objek yang terkandung dan panggil \"context.sync()\" pada konteks permintaan yang terkait.";
Strings.OfficeOM.L_ReadSettingsError = "Kesalahan Pengaturan Membaca";
Strings.OfficeOM.L_RedundantCallbackSpecification = "Panggilan kembali tidak dapat ditentukan baik dalam daftar argumen maupun objek pilihan.";
Strings.OfficeOM.L_RequestPayloadSizeLimitExceededMessage = 'Ukuran payload permintaan melampaui batas. Silakan lihat dokumentasi: "https://docs.microsoft.com/office/dev/add-ins/concepts/resource-limits-and-performance-optimization#excel-add-ins".';
Strings.OfficeOM.L_RequestTimeout = "Panggilan terlalu lama untuk dieksekusi.";
Strings.OfficeOM.L_RequestTokenUnavailable = "API ini telah disempitkan untuk memperlambat frekuensi panggilan.";
Strings.OfficeOM.L_ResponsePayloadSizeLimitExceededMessage = 'Ukuran payload respons melampaui batas. Silakan lihat dokumentasi: "https://docs.microsoft.com/office/dev/add-ins/concepts/resource-limits-and-performance-optimization#excel-add-ins".';
Strings.OfficeOM.L_RowIndexOutOfRange = "Nilai indeks baris berada di luar rentang yang diperbolehkan. Gunakan nilai (0 atau lebih tinggi) yang kurang dari jumlah baris.";
Strings.OfficeOM.L_RunMustReturnPromise = 'Fungsi batch yang dilewatkan ke metode ".run" tidak mengembalikan promise. Fungsi tersebut harus mengembalikan promise, sehingga setiap objek yang dilacak otomatis dapat dirilis di penyelesaian dari operasi batch. Biasanya, Anda mengembalikan promise dengan mengembalikan respons dari "context.sync()".';
Strings.OfficeOM.L_SSOClientError = "Terjadi kesalahan dalam permintaan autentikasi dari Office.";
Strings.OfficeOM.L_SSOClientErrorMessage = "Terjadi kesalahan tak terduga di klien.";
Strings.OfficeOM.L_SSOConnectionLostError = "Koneksi hilang selama proses masuk.";
Strings.OfficeOM.L_SSOConnectionLostErrorMessage = "Koneksi hilang selama proses masuk, dan pengguna tidak dapat masuk. Hal ini mungkin karena pengaturan konfigurasi browser pengguna, seperti zona keamanan.";
Strings.OfficeOM.L_SSOServerError = "Terjadi kesalahan dalam penyedia autentikasi.";
Strings.OfficeOM.L_SSOServerErrorMessage = "Terjadi kesalahan tak terduga di server.";
Strings.OfficeOM.L_SSOUnsupportedPlatform = "API tidak didukung pada platform ini.";
Strings.OfficeOM.L_SSOUserConsentNotSupportedByCurrentAddinCategory = "Add-in ini tidak mendukung persetujuan pengguna.";
Strings.OfficeOM.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage = "Operasi gagal karena add-in ini tidak mendukung persetujuan pengguna pada kategori ini";
Strings.OfficeOM.L_SaveSettingsError = "Kesalahan Pengaturan Penyimpanan";
Strings.OfficeOM.L_SelectionCannotBound = "Tidak dapat terikat ke pilihan saat ini.";
Strings.OfficeOM.L_SelectionNotSupportCoercionType = "Pilihan saat ini tidak kompatibel dengan tipe koersi yang ditentukan.";
Strings.OfficeOM.L_SetDataIsTooLarge = "Objek data yang ditentukan terlalu besar.";
Strings.OfficeOM.L_SetDataParametersConflict = "Parameter yang ditentukan berkonflik.";
Strings.OfficeOM.L_SettingNameNotExist = "Nama pengaturan yang ditentukan tidak ada.";
Strings.OfficeOM.L_SettingsAreStale = "Pengaturan tidak bisa disimpan karena bukan pengaturan saat ini.";
Strings.OfficeOM.L_SettingsCannotSave = "Pengaturan tidak dapat disimpan.";
Strings.OfficeOM.L_SettingsStaleError = "Kesalahan Pengaturan Tidak Valid";
Strings.OfficeOM.L_ShowWindowDialogNotification = "{0} ingin menampilkan jendela baru.";
Strings.OfficeOM.L_ShowWindowDialogNotificationAllow = "Izinkan";
Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore = "Abaikan";
Strings.OfficeOM.L_ShuttingDown = "Operasi gagal karena data pada server bukan data saat ini.";
Strings.OfficeOM.L_SliceSizeNotSupported = "Ukuran iris yang ditentukan tidak didukung.";
Strings.OfficeOM.L_SpecifiedIdNotExist = "ID yang ditentukan tidak ada.";
Strings.OfficeOM.L_Timeout = "Waktu operasi habis.";
Strings.OfficeOM.L_TooManyArguments = "terlalu banyak argumen";
Strings.OfficeOM.L_TooManyIncompleteRequests = "Tunggu hingga panggilan sebelumnya selesai.";
Strings.OfficeOM.L_TooManyOptionalFunction = "beberapa fungsi opsional dalam daftar parameter";
Strings.OfficeOM.L_TooManyOptionalObjects = "beberapa objek opsional dalam daftar parameter";
Strings.OfficeOM.L_UnknownBindingType = "Tipe ikatan tidak didukung.";
Strings.OfficeOM.L_UnsupportedDataObject = "Tipe objek data yang tersedia tidak didukung.";
Strings.OfficeOM.L_UnsupportedEnumeration = "Enumerasi Tidak Didukung";
Strings.OfficeOM.L_UnsupportedEnumerationMessage = "Pencacahan tidak didukung dalam aplikasi host saat ini.";
Strings.OfficeOM.L_UnsupportedUserIdentity = "Tipe identitas pengguna tidak didukung.";
Strings.OfficeOM.L_UnsupportedUserIdentityMessage = "Tipe identitas pengguna tidak didukung.";
Strings.OfficeOM.L_UserAborted = "Pengguna membatalkan permintaan persetujuan.";
Strings.OfficeOM.L_UserAbortedMessage = "Pengguna tidak menyetujui izin add-in.";
Strings.OfficeOM.L_UserClickIgnore = "Pengguna memilih untuk mengabaikan kotak dialog.";
Strings.OfficeOM.L_UserNotSignedIn = "Tidak ada pengguna yang masuk ke Office.";
Strings.OfficeOM.L_ValueNotLoaded = 'Nilai dari objek hasil belum dimuat. Sebelum membaca properti nilai, panggil "context.sync()" di konteks permintaan terkait.';
Strings.OfficeOM.L_WorkbookHiddenMessage = "JavaScript API permintaan gagal karena buku kerja tersembunyi. Silakan unhide buku kerja dan coba lagi.";
Strings.OfficeOM.L_WriteNotSupportedWhenModalDialogOpen = "Operasi penulisan tidak didukung untuk Office saat dialog modal terbuka.";
|
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
import fn from '../../getDaysInYear/index'
import convertToFP from '../_lib/convertToFP/index'
var getDaysInYear = convertToFP(fn, 1)
export default getDaysInYear
|
const fetch = require('node-fetch');
const { version } = require('../package.json');
const ClientError = require('../errors/ClientError');
const ServerError = require('../errors/ServerError');
module.exports = class Hastebin {
/**
* @param {ClientOptions} [options] Client options
*/
constructor(options = {}) {
/**
* Client options
* @type {object}
*/
this.options = options;
/**
* Whether or not to use hasteb.in
* @type {Boolean}
* @deprecated No longer used, will be removed in a future version.
*/
this.dev = options.dev || false;
/**
* Supplied Haste client URL.
* @type {String}
*/
this.url = options.url;
/**
* Base URL for Hastebin client.
* @type {string}
*/
this.baseURL = this.url ? this.url : 'https://hasteb.in';
}
/**
* @param {any} code Code to post.
* @returns {Promise<pending>}
*/
async post(code, extension) {
return this._post(code, extension);
}
/**
* @param {string} key File to fetch.
* @returns {Promise<pending>}
*/
async get(key) {
return this._get(key);
}
async _post(code, extension) {
const validExtensions = ['bat', 'c', 'cpp', 'css', 'html', 'ini', 'java', 'js', 'jsx', 'json', 'lua', 'md', 'php', 'py', 'pyc', 'scss', 'sql', 'xml', 'yaml'];
if (typeof(this.baseURL) !== 'string') throw new Error('The haste service must be a string.');
if (!code) throw new Error('You must supply code to upload to a haste service.');
if (!extension) extension = 'js';
if (!validExtensions.includes(extension)) throw new Error(`Invalid file type, please use one of the following. ${validExtensions.join(', ')}`);
const res = await fetch(`${this.baseURL}/documents`, {
method: 'POST',
body: code,
headers: {
'User-Agent': `hastebin.js/${version} Node.js/10.15.3`
}
});
await this.checkStatus(res);
const json = await res.json();
const url = `${this.baseURL}/${json.key}.${extension}`;
return url;
}
async _get(key) {
if (typeof(this.baseURL) !== 'string') throw new Error('The haste service must be a string.');
const res = await fetch(`${this.baseURL}/raw/${key}`, {
headers: {
'User-Agent': `hastebin.js/${version} Node.js/10.15.3`
}
});
await this.checkStatus(res);
const json = await res.text();
return json;
}
async checkStatus(res) {
switch (res.status) {
case 401:
throw new ClientError('Error 401:', 'Something went wrong, and the request was not authorized. Please try again later.');
case 403:
throw new ClientError('Error 403:', 'Something went wrong, and we were not able to access the document. Please try again later.');
case 404:
throw new ClientError('Error 404:', 'The document you are trying to get no longer exists. Please check your spelling and try again.');
case 408:
throw new ClientError('Error 408:', 'The request timed out, please try again later.');
case 429:
throw new ClientError('Error 429:', 'The server received too many requests, and has ratelimited the client. Please try again later.');
case 451:
throw new ClientError('Error 451:', 'The server administrator has denied access to this document due to legal reasons.');
case 500:
throw new ServerError('Error 500:', 'Something went wrong, please try again later.');
case 501:
throw new ServerError('Error 501:', 'Something went wrong, please try again later.');
case 502:
throw new ServerError('Error 502:', 'Bad gateway. Please try again later.');
case 503:
throw new ServerError('Error 503:', 'The server could not handle the request at this time. Please try again later.');
case 504:
throw new ServerError('Error 504:', 'The gateway timed out, please try again later.');
}
}
};
process.on('uncaughtException', (err) => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, 'g'), './');
console.error('Uncaught Exception: ', errorMsg);
process.exit(1);
});
process.on('unhandledRejection', err => {
console.error('Uncaught Promise Error: ', err);
});
|
// get DOM elements
var dataChannelLog = document.getElementById('data-channel'),
iceConnectionLog = document.getElementById('ice-connection-state'),
iceGatheringLog = document.getElementById('ice-gathering-state'),
signalingLog = document.getElementById('signaling-state');
// peer connection
var pc = null;
// data channel
var dc = null, dcInterval = null;
function createPeerConnection() {
var config = {
sdpSemantics: 'unified-plan'
};
if (document.getElementById('use-stun').checked) {
config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];
}
pc = new RTCPeerConnection(config);
// register some listeners to help debugging
pc.addEventListener('icegatheringstatechange', function() {
iceGatheringLog.textContent += ' -> ' + pc.iceGatheringState;
}, false);
iceGatheringLog.textContent = pc.iceGatheringState;
pc.addEventListener('iceconnectionstatechange', function() {
iceConnectionLog.textContent += ' -> ' + pc.iceConnectionState;
}, false);
iceConnectionLog.textContent = pc.iceConnectionState;
pc.addEventListener('signalingstatechange', function() {
signalingLog.textContent += ' -> ' + pc.signalingState;
}, false);
signalingLog.textContent = pc.signalingState;
// connect audio / video
pc.addEventListener('track', function(evt) {
if (evt.track.kind == 'video')
document.getElementById('video').srcObject = evt.streams[0];
else
document.getElementById('audio').srcObject = evt.streams[0];
});
return pc;
}
function negotiate() {
return pc.createOffer().then(function(offer) {
return pc.setLocalDescription(offer);
}).then(function() {
// wait for ICE gathering to complete
return new Promise(function(resolve) {
if (pc.iceGatheringState === 'complete') {
resolve();
} else {
function checkState() {
if (pc.iceGatheringState === 'complete') {
pc.removeEventListener('icegatheringstatechange', checkState);
resolve();
}
}
pc.addEventListener('icegatheringstatechange', checkState);
}
});
}).then(function() {
var offer = pc.localDescription;
var codec;
codec = document.getElementById('audio-codec').value;
if (codec !== 'default') {
offer.sdp = sdpFilterCodec('audio', codec, offer.sdp);
}
codec = document.getElementById('video-codec').value;
if (codec !== 'default') {
offer.sdp = sdpFilterCodec('video', codec, offer.sdp);
}
document.getElementById('offer-sdp').textContent = offer.sdp;
return fetch('/offer', {
body: JSON.stringify({
sdp: offer.sdp,
type: offer.type,
video_transform: document.getElementById('video-transform')
}),
headers: {
'Content-Type': 'application/json'
},
method: 'POST'
});
}).then(function(response) {
return response.json();
}).then(function(answer) {
document.getElementById('answer-sdp').textContent = answer.sdp;
return pc.setRemoteDescription(answer);
}).catch(function(e) {
alert(e);
});
}
function start() {
document.getElementById('start').style.display = 'none';
pc = createPeerConnection();
var time_start = null;
function current_stamp() {
if (time_start === null) {
time_start = new Date().getTime();
return 0;
} else {
return new Date().getTime() - time_start;
}
}
if (document.getElementById('use-datachannel').checked) {
var parameters = JSON.parse(document.getElementById('datachannel-parameters').value);
dc = pc.createDataChannel('chat', parameters);
dc.onclose = function() {
clearInterval(dcInterval);
dataChannelLog.textContent += '- close\n';
};
dc.onopen = function() {
dataChannelLog.textContent += '- open\n';
dcInterval = setInterval(function() {
var message = 'ping ' + current_stamp();
dataChannelLog.textContent += '> ' + message + '\n';
dc.send(message);
}, 1000);
};
dc.onmessage = function(evt) {
dataChannelLog.textContent += '< ' + evt.data + '\n';
if (evt.data.substring(0, 4) === 'pong') {
var elapsed_ms = current_stamp() - parseInt(evt.data.substring(5), 10);
dataChannelLog.textContent += ' RTT ' + elapsed_ms + ' ms\n';
}
};
}
var constraints = {
audio: document.getElementById('use-audio').checked,
video: false
};
if (document.getElementById('use-video').checked) {
var resolution = document.getElementById('video-resolution').value;
if (resolution) {
resolution = resolution.split('x');
constraints.video = {
width: parseInt(resolution[0], 0),
height: parseInt(resolution[1], 0)
};
} else {
constraints.video = true;
}
}
if (constraints.audio || constraints.video) {
if (constraints.video) {
document.getElementById('media').style.display = 'block';
}
navigator.mediaDevices.getUserMedia(constraints).then(function(stream) {
stream.getTracks().forEach(function(track) {
pc.addTrack(track, stream);
});
return negotiate();
}, function(err) {
alert('Could not acquire media: ' + err);
});
} else {
negotiate();
}
document.getElementById('stop').style.display = 'inline-block';
}
function stop() {
document.getElementById('stop').style.display = 'none';
// close data channel
if (dc) {
dc.close();
}
// close transceivers
if (pc.getTransceivers) {
pc.getTransceivers().forEach(function(transceiver) {
if (transceiver.stop) {
transceiver.stop();
}
});
}
// close local audio / video
pc.getSenders().forEach(function(sender) {
sender.track.stop();
});
// close peer connection
setTimeout(function() {
pc.close();
}, 500);
}
function sdpFilterCodec(kind, codec, realSdp) {
var allowed = []
var rtxRegex = new RegExp('a=fmtp:(\\d+) apt=(\\d+)\r$');
var codecRegex = new RegExp('a=rtpmap:([0-9]+) ' + escapeRegExp(codec))
var videoRegex = new RegExp('(m=' + kind + ' .*?)( ([0-9]+))*\\s*$')
var lines = realSdp.split('\n');
var isKind = false;
for (var i = 0; i < lines.length; i++) {
if (lines[i].startsWith('m=' + kind + ' ')) {
isKind = true;
} else if (lines[i].startsWith('m=')) {
isKind = false;
}
if (isKind) {
var match = lines[i].match(codecRegex);
if (match) {
allowed.push(parseInt(match[1]));
}
match = lines[i].match(rtxRegex);
if (match && allowed.includes(parseInt(match[2]))) {
allowed.push(parseInt(match[1]));
}
}
}
var skipRegex = 'a=(fmtp|rtcp-fb|rtpmap):([0-9]+)';
var sdp = '';
isKind = false;
for (var i = 0; i < lines.length; i++) {
if (lines[i].startsWith('m=' + kind + ' ')) {
isKind = true;
} else if (lines[i].startsWith('m=')) {
isKind = false;
}
if (isKind) {
var skipMatch = lines[i].match(skipRegex);
if (skipMatch && !allowed.includes(parseInt(skipMatch[2]))) {
continue;
} else if (lines[i].match(videoRegex)) {
sdp += lines[i].replace(videoRegex, '$1 ' + allowed.join(' ')) + '\n';
} else {
sdp += lines[i] + '\n';
}
} else {
sdp += lines[i] + '\n';
}
}
return sdp;
}
function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}
|
if(_typeface_js&&_typeface_js.loadFace)_typeface_js.loadFace({glyphs:{ο:{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},Τ:{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},Π:{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},ΐ:{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},Κ:{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},ƒ:{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},ό:{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},ώ:{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},ÿ:{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},µ:{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},Ι:{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},Ύ:{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},Ν:{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},ς:{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},Ψ:{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},ι:{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},Ά:{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},ε:{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},Δ:{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},ρ:{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},Η:{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},Α:{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},ν:{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},β:{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},Μ:{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},Ό:{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},Ή:{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},γ:{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},α:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},Χ:{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},Ξ:{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},Ϋ:{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},Ί:{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},Β:{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},υ:{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},χ:{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},ί:{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},Ζ:{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},δ:{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},έ:{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},ω:{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},ϋ:{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},Ω:{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},ύ:{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},ή:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},Θ:{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},Ε:{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},σ:{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},ζ:{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},θ:{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},Ο:{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},Γ:{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},Έ:{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},Ώ:{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},Ϊ:{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},Ρ:{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},ª:{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},Φ:{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},Σ:{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},λ:{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},τ:{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},ξ:{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},Λ:{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},ΰ:{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},Υ:{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},μ:{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},φ:{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},ϊ:{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},π:{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},ά:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},κ:{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},ψ:{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},η:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50});
|
const plugins = ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount']
const toolbar = ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen']
var tinyMce={
template:'#tiny',
props: {
id: {
type: String,
default: function() {
return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '')
}
},
value: {
type: String,
default: ''
},
toolbar: {
type: Array,
required: false,
default() {
return []
}
},
menubar: {
type: String,
default: 'file edit insert view format table'
},
height: {
type: Number,
required: false,
default: 360
}
},
data() {
return {
hasChange: false,
hasInit: false,
tinymceId: this.id,
fullscreen: false,
languageTypeList: {
'en': 'en',
'zh': 'zh_CN'
}
}
},
computed: {
language() {
return this.languageTypeList['zh']
}
},
watch: {
value(val) {
if (!this.hasChange && this.hasInit) {
this.$nextTick(() =>
window.tinymce.get(this.tinymceId).setContent(val || ''))
}
},
language() {
this.destroyTinymce()
this.$nextTick(() => this.initTinymce())
}
},
mounted() {
this.initTinymce()
},
activated() {
this.initTinymce()
},
deactivated() {
this.destroyTinymce()
},
destroyed() {
this.destroyTinymce()
},
methods: {
initTinymce() {
const _this = this
console.log(window.tinymce)
window.tinymce.init({
language: this.language,
selector: `#${this.tinymceId}`,
height: this.height,
body_class: 'panel-body ',
object_resizing: false,
toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar,
menubar: this.menubar,
plugins: plugins,
end_container_on_empty_block: true,
powerpaste_word_import: 'clean',
code_dialog_height: 200,
code_dialog_width: 1000,
advlist_bullet_styles: 'square',
advlist_number_styles: 'default',
imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
default_link_target: '_blank',
link_title: false,
nonbreaking_force_tab: true, // inserting nonbreaking space need Nonbreaking Space Plugin
init_instance_callback: editor => {
if (_this.value) {
editor.setContent(_this.value)
}
_this.hasInit = true
editor.on('NodeChange Change KeyUp SetContent', () => {
this.hasChange = true
this.$emit('input', editor.getContent())
})
},
setup(editor) {
editor.on('FullscreenStateChanged', (e) => {
_this.fullscreen = e.state
})
}
// 整合七牛上传
// images_dataimg_filter(img) {
// setTimeout(() => {
// const $image = $(img);
// $image.removeAttr('width');
// $image.removeAttr('height');
// if ($image[0].height && $image[0].width) {
// $image.attr('data-wscntype', 'image');
// $image.attr('data-wscnh', $image[0].height);
// $image.attr('data-wscnw', $image[0].width);
// $image.addClass('wscnph');
// }
// }, 0);
// return img
// },
// images_upload_handler(blobInfo, success, failure, progress) {
// progress(0);
// const token = _this.$store.getters.token;
// getToken(token).then(response => {
// const url = response.data.qiniu_url;
// const formData = new FormData();
// formData.append('token', response.data.qiniu_token);
// formData.append('key', response.data.qiniu_key);
// formData.append('file', blobInfo.blob(), url);
// upload(formData).then(() => {
// success(url);
// progress(100);
// })
// }).catch(err => {
// failure('出现未知问题,刷新页面,或者联系程序员')
// console.log(err);
// });
// },
})
},
destroyTinymce() {
if (window.tinymce.get(this.tinymceId)) {
window.tinymce.get(this.tinymceId).destroy()
}
},
setContent(value) {
window.tinymce.get(this.tinymceId).setContent(value)
},
getContent() {
window.tinymce.get(this.tinymceId).getContent()
},
imageSuccessCBK(arr) {
const _this = this
arr.forEach(v => {
window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" >`)
})
}
},
}
|
var callbackArguments = [];
var argument1 = {"403":618,"":"","5.663514604625947e+307":1.131746083181326e+307,"Y":1.5916161624622947e+306,"t$":"^}","'":"Gi","7.788703034167418e+307":607,"8.659773426801515e+307":";"};
var base_0 = [49,607]
var r_0= undefined
try {
r_0 = base_0.map(argument1)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.map(function(a){
if (a === null || a == undefined) return a;
var name = a.constructor.name;
if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String')
return JSON.stringify(a);
return name;
});
}
setTimeout(function(){
require("fs").writeFileSync("./experiments/map/mapRandom/test58.json",JSON.stringify({"baseObjects":serialize([base_0]),"returnObjects":serialize([r_0]),"callbackArgs":callbackArguments}))
},300)
|
import stringify from 'ember-aframe/utils/stringify';
import { module, test } from 'qunit';
module('Unit | Utility | stringify', function() {
test('it works', function(assert) {
let result = stringify({
dir: 'alternate',
dur: undefined
});
assert.strictEqual(result, 'dir: alternate; dur: undefined');
});
});
|
const { PhoneNumber } = require('./PhoneNumber');
describe('Restaurant class', () => {
it('test1', () => {
const ph = new PhoneNumber('+1(858)775-2868');
expect(ph.getOriginalText()).toBe('+1(858)775-2868');
expect(ph.getStrippedNumber()).toBe('+18587752868');
expect(ph.getValueAsNorthAmerican()).toBe('(858)775-2868');
expect(ph.getValueAsInternational()).toBe('+1.858.775.2868');
});
it('test2', () => {
const ph = new PhoneNumber('+1(858)775-2868x123');
expect(ph.getOriginalText()).toBe('+1(858)775-2868x123');
expect(ph.getStrippedNumber()).toBe('+18587752868x123');
expect(ph.getValueAsNorthAmerican()).toBe('(858)775-2868x123');
expect(ph.getValueAsInternational()).toBe('+1(858)775-2868x123');
});
it('test3', () => {
const ph = new PhoneNumber('+598.123.4567x858');
expect(ph.getOriginalText()).toBe('+598.123.4567x858');
expect(ph.getStrippedNumber()).toBe('+5981234567x858');
expect(ph.getValueAsNorthAmerican()).toBe(null);
expect(ph.getValueAsInternational()).toBe('+598.123.456.7x858');
});
it('test4', () => {
const ph = new PhoneNumber('+27 1234 5678 ext 4');
expect(ph.getOriginalText()).toBe('+27 1234 5678 ext 4');
expect(ph.getStrippedNumber()).toBe('+2712345678x4');
expect(ph.getValueAsNorthAmerican()).toBe(null);
expect(ph.getValueAsInternational()).toBe('+27 1234 5678 ext 4');
});
it('test5', () => {
const ph = new PhoneNumber('858-775-2868');
expect(ph.getOriginalText()).toBe('858-775-2868');
expect(ph.getStrippedNumber()).toBe('+18587752868');
expect(ph.getValueAsNorthAmerican()).toBe('(858)775-2868');
expect(ph.getValueAsInternational()).toBe('+1.858.775.2868');
});
});
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.H2 = void 0;
var _react = _interopRequireDefault(require("react"));
var _core = require("@material-ui/core");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// eslint-disable-next-line no-restricted-imports
const H2 = props => /*#__PURE__*/_react.default.createElement(_core.SvgIcon, props, /*#__PURE__*/_react.default.createElement("path", {
d: "M12.1152 7.15169V16H10.0674V12.3722H6.04775V16H4V7.15169H6.04775V10.6404H10.0674V7.15169H12.1152Z"
}), /*#__PURE__*/_react.default.createElement("path", {
d: "M20.5162 14.3315V16H13.8294V14.6728L17.2424 11.4494C17.6047 11.1039 17.8491 10.809 17.9755 10.5646C18.1019 10.3118 18.1651 10.0632 18.1651 9.81882C18.1651 9.46489 18.0429 9.19522 17.7985 9.00983C17.5626 8.81601 17.2129 8.7191 16.7494 8.7191C16.3617 8.7191 16.012 8.79494 15.7002 8.94663C15.3884 9.08989 15.1272 9.30899 14.9165 9.60393L13.4249 8.64326C13.7704 8.12921 14.2466 7.72893 14.8533 7.44242C15.46 7.14747 16.1553 7 16.939 7C17.5963 7 18.1693 7.10955 18.6581 7.32865C19.1553 7.53933 19.5387 7.8427 19.8084 8.23876C20.0865 8.6264 20.2255 9.08567 20.2255 9.61657C20.2255 10.0969 20.1244 10.5478 19.9221 10.9691C19.7199 11.3904 19.328 11.8708 18.7466 12.4101L16.7115 14.3315H20.5162Z"
}));
exports.H2 = H2;
|
const router = require('express').Router();
const { Tag, Product, ProductTag } = require('../../models');
// The `/api/tags` endpoint
router.get('/', (req, res) => {
// find all tags
Tag.findAll({
// be sure to include its associated Product data
include: [
{
model: Product,
through: ProductTag,
as: "products",
},
],
})
.then((dbTagData) => res.json(dbTagData))
.catch((err) => {
console.log(err);
res.status(500).json(err);
});
});
router.get('/:id', (req, res) => {
// find a single tag by its `id`
Tag.findOne({
where: {
id: req.params.id
},
// be sure to include its associated Product data
include: [
{
model: Product,
through: ProductTag,
as: "products",
},
],
})
.then((dbTagData) => {
if (!dbTagData) {
res.status(404).json({ message: "No tag found with this id" });
return;
}
res.json(dbTagData);
})
.catch((err) => {
console.log(err);
res.status(500).json(err);
});
});
router.post('/', (req, res) => {
// create a new tag
Tag.create({
id: req.body.id,
tag_name: req.body.tag_name,
})
.then((dbTagData) => res.json(dbTagData))
.catch((err) => {
console.log(err);
res.status(500).json(err);
});
});
router.put('/:id', (req, res) => {
// update a tag's name by its `id` value
Tag.update(
{
tag_name: req.body.tag_name,
},
{
where: {
id: req.params.id
},
}
)
.then((dbTagData) => {
if (!dbTagData) {
res.status(404).json({ message: "No tag found with this id" });
return;
}
res.json(dbTagData);
})
.catch((err) => {
console.log(err);
res.status(500).json(err);
});
});
router.delete('/:id', (req, res) => {
// delete on tag by its `id` value
Tag.destroy({
where: {
id: req.params.id,
},
})
.then((dbTagData) => {
if (!dbTagData) {
res.status(404).json({ message: "No tag found with this id" });
return;
}
res.json(dbTagData);
})
.catch((err) => {
console.log(err);
res.status(500).json(err);
});
});
module.exports = router;
|
/*! For license information please see component---src-pages-index-js-f0624a850608eec7f99c.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+6XX":function(t,e,n){var r=n("y1pI");t.exports=function(t){return r(this.__data__,t)>-1}},"+71K":function(t,e,n){n("E9XD");var r=n("kbA8");function o(t,e,n){var i=t;return function(t,e){var n=[],o="string"==typeof e?new RegExp("\\b("+e+")\\("):e;do{var i=o.exec(t);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var a=i[1],c=i.index,u=r("(",")",t.substring(c));if(!u||u.start!==i[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+t+"'");n.push({matches:u,functionIdentifier:a}),t=u.post}while(o.test(t));return n}(t,e).reduce((function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,i){return n(o(t,i,n),e,r)}(r.matches.body,r.functionIdentifier,n,i,e))}),t)}t.exports=o},"+c4W":function(t,e,n){var r=n("711d"),o=n("4/ic"),i=n("9ggG"),a=n("9Nap");t.exports=function(t){return i(t)?r(a(t)):o(t)}},"+qE3":function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function c(){c.init.call(this)}t.exports=c,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?c.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var o,i,a,c;if(s(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),a=i[e]),void 0===a)a=i[e]=n,++t._eventsCount;else if("function"==typeof a?a=i[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(t))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function d(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):y(o,o.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var s=u.length,l=y(u,s);for(n=0;n<s;++n)i(l[n],this,e)}return!0},c.prototype.addListener=function(t,e){return f(this,t,e,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(t,e){return f(this,t,e,!0)},c.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},c.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},c.prototype.removeListener=function(t,e){var n,r,o,i,a;if(s(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},c.prototype.listeners=function(t){return d(this,t,!0)},c.prototype.rawListeners=function(t){return d(this,t,!1)},c.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"/5zm":function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.cosh,a=Math.abs,c=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(t){var e=o(a(t)-1)+1;return(e+1/(e*c*c))*(c/2)}})},"/9aa":function(t,e,n){var r=n("NykK"),o=n("ExA7");t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},"/b8u":function(t,e,n){var r=n("STAE");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"03A+":function(t,e,n){var r=n("JTzB"),o=n("ExA7"),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},"0Cz8":function(t,e,n){var r=n("Xi7e"),o=n("ebwN"),i=n("e4Nc");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},"0XPj":function(t,e,n){var r=n("eUgh"),o=n("s+kx"),i=n("EA7m"),a=n("XzbM"),c=i((function(t){var e=r(t,a);return e.length&&e[0]===t[0]?o(e):[]}));t.exports=c},"0rvr":function(t,e,n){var r=n("glrk"),o=n("O741");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},"0ycA":function(t,e){t.exports=function(){return[]}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1LK5":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"1hJj":function(t,e,n){var r=n("e4Nc"),o=n("ftKO"),i=n("3A9y");function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},"2ajD":function(t,e){t.exports=function(t){return t!=t}},"2gN3":function(t,e,n){var r=n("Kz5y")["__core-js_shared__"];t.exports=r},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3A9y":function(t,e){t.exports=function(t){return this.__data__.has(t)}},"3BBL":function(t,e,n){var r,o=n("7OJN"),i=n("+71K"),a=n("n48v"),c=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,i,u){if(r++>100)throw r=0,new Error("Call stack overflow for "+u);if(""===t)throw new Error(i+"(): '"+u+"' must contain a non-whitespace string");var s=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(t);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(e.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(t));return e}(t=function(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=t;for(;r=c.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var u=o("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+t+"' must contain a non-whitespace string");var s=n(u.body,"",e);i+=u.pre+s,a=u.post}return i+a}(t,u));if(s.length>1||t.indexOf("var(")>-1)return i+"("+t+")";var l=s[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,(function(t){return.01*parseFloat(t.slice(0,-1))})));var f,p=t.replace(new RegExp(l,"gi"),"");try{f=a.eval(p)}catch(h){return i+"("+t+")"}return"%"===l&&(f*=100),(i.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),i(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},"3Fdi":function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},"3L66":function(t,e,n){var r=n("MMmD"),o=n("ExA7");t.exports=function(t){return o(t)&&r(t)}},"3WF5":function(t,e,n){var r=n("eUgh"),o=n("ut/Y"),i=n("l9OW"),a=n("Z0cm");t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},"4/ic":function(t,e,n){var r=n("ZWtO");t.exports=function(t){return function(e){return r(e,t)}}},"44Ds":function(t,e,n){var r=n("e4Nc");function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},"4kuk":function(t,e,n){var r=n("SfRM"),o=n("Hvzi"),i=n("u8Dt"),a=n("ekgI"),c=n("JSQU");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4pcU":function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var o=r(n("94fu"));t.exports=e.default},"4qC0":function(t,e,n){var r=n("NykK"),o=n("Z0cm"),i=n("ExA7");t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},"4sDh":function(t,e,n){var r=n("4uTw"),o=n("03A+"),i=n("Z0cm"),a=n("wJg7"),c=n("shjB"),u=n("9Nap");t.exports=function(t,e,n){for(var s=-1,l=(e=r(e,t)).length,f=!1;++s<l;){var p=u(e[s]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(p,l)&&(i(t)||o(t))}},"4uTw":function(t,e,n){var r=n("Z0cm"),o=n("9ggG"),i=n("GNiM"),a=n("dt0z");t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"6ajc":function(t,e,n){var r=n("XGnz"),o=n("3WF5");t.exports=function(t,e){return r(o(t,e),1)}},"6hpn":function(t,e,n){n("Uydy"),n("eajv"),n("n/mU"),n("PqOI"),n("QNnp"),n("/5zm"),n("CsgD"),n("9mRW"),n("QFcT"),n("vAFs"),n("a5NK"),n("yiG3"),n("kNcU"),n("KvGi"),n("AmFO"),n("eJiR"),n("I9xj"),n("tl/u");var r=n("Qo9l");t.exports=r.Math},"6sVZ":function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},"711d":function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},"76vg":function(t,e,n){"use strict";var r=n("TqRt");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("q1tI")),i=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");e.default=i},"77Zs":function(t,e,n){var r=n("Xi7e");t.exports=function(){this.__data__=new r,this.size=0}},"7GkX":function(t,e,n){var r=n("b80T"),o=n("A90E"),i=n("MMmD");t.exports=function(t){return i(t)?r(t):o(t)}},"7OJN":function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var i=o(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var r,o,i,a,c,u=n.indexOf(t),s=n.indexOf(e,u+1),l=u;if(u>=0&&s>0){for(r=[],i=n.length;l>=0&&!c;)l==u?(r.push(l),u=n.indexOf(t,l+1)):1==r.length?c=[r.pop(),s]:((o=r.pop())<i&&(i=o,a=s),s=n.indexOf(e,l+1)),l=u<s&&u>=0?u:s;r.length&&(c=[i,a])}return c}t.exports=n,n.range=o},"7fqy":function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},"7sbD":function(t,e,n){n("qePV"),n("NbN+"),n("8AyJ"),n("i6QF"),n("kSko"),n("WDsR"),n("r/Vq"),n("5uH8"),n("w1rZ"),n("JevA"),n("toAj"),n("VC3L");var r=n("Qo9l");t.exports=r.Number},"8/g6":function(t,e,n){"use strict";var r=n("TqRt");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=i.default.memo(i.default.forwardRef((function(e,n){return i.default.createElement(a.default,(0,o.default)({ref:n},e),t)})));0;return n.muiName=a.default.muiName,n};var o=r(n("pVnL")),i=r(n("q1tI")),a=r(n("UJJ5"))},"88Gu":function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},"8AyJ":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isFinite:n("4oU/")})},"8oxB":function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,s=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&h())}function h(){if(!l){var t=c(p);l=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new d(t,e)),1!==s.length||l||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"9/5/":function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,s=c||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return s.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=d(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var c=o.test(t);return c||i.test(t)?a(t.slice(2),c?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,o,i,a,c,u,s=0,l=!1,y=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=r,i=o;return r=o=void 0,s=e,a=t.apply(i,n)}function b(t){return s=t,c=setTimeout(w,e),l?g(t):a}function x(t){var n=t-u;return void 0===u||n>=e||n<0||y&&t-s>=i}function w(){var t=h();if(x(t))return O(t);c=setTimeout(w,function(t){var n=e-(t-u);return y?p(n,i-(t-s)):n}(t))}function O(t){return c=void 0,m&&r?g(t):(r=o=void 0,a)}function E(){var t=h(),n=x(t);if(r=arguments,o=this,u=t,n){if(void 0===c)return b(u);if(y)return c=setTimeout(w,e),g(u)}return void 0===c&&(c=setTimeout(w,e)),a}return e=v(e)||0,d(n)&&(l=!!n.leading,i=(y="maxWait"in n)?f(v(n.maxWait)||0,e):i,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==c&&clearTimeout(c),s=0,r=u=o=c=void 0},E.flush=function(){return void 0===c?a:O(h())},E}}).call(this,n("yLpj"))},"90hW":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},"94fu":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},"9Nap":function(t,e,n){var r=n("/9aa");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},"9ggG":function(t,e,n){var r=n("Z0cm"),o=n("/9aa"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},A90E:function(t,e,n){var r=n("6sVZ"),o=n("V6Ve"),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},AE40:function(t,e,n){var r=n("dunj"),o=n("jSBL"),i=n("zZ0H");t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},AP2z:function(t,e,n){var r=n("nmnc"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(u){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},B8du:function(t,e){t.exports=function(){return!1}},BiGR:function(t,e,n){var r=n("nmnc"),o=n("03A+"),i=n("Z0cm"),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},C9rL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n("lpLs")},CH3K:function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},CMye:function(t,e,n){var r=n("GoyQ");t.exports=function(t){return t==t&&!r(t)}},CZoQ:function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},CsgD:function(t,e,n){var r=n("I+eb"),o=n("jrUv");r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},Cwc5:function(t,e,n){var r=n("NKxu"),o=n("Npjl");t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},DSRE:function(t,e,n){(function(t){var r=n("Kz5y"),o=n("B8du"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u}).call(this,n("YuTi")(t))},DzJC:function(t,e,n){var r=n("sEfC"),o=n("GoyQ");t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},E2jh:function(t,e,n){var r,o=n("2gN3"),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},EA7m:function(t,e,n){var r=n("zZ0H"),o=n("Ioao"),i=n("wclG");t.exports=function(t,e){return i(o(t,e,r),t+"")}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},Ecnz:function(t,e,n){var r=n("f7Mu");r.prototype.toPostfix=function(){"use strict";for(var t,e,n,o,i,a=[],c=[{value:"(",type:4,pre:0}],u=this.value,s=1;s<u.length;s++)if(1===u[s].type||3===u[s].type||13===u[s].type)1===u[s].type&&(u[s].value=Number(u[s].value)),a.push(u[s]);else if(4===u[s].type)c.push(u[s]);else if(5===u[s].type)for(;4!==(e=c.pop()).type;)a.push(e);else if(11===u[s].type){for(;4!==(e=c.pop()).type;)a.push(e);c.push(e)}else{o=(t=u[s]).pre,n=(i=c[c.length-1]).pre;var l="Math.pow"==i.value&&"Math.pow"==t.value;if(o>n)c.push(t);else{for(;n>=o&&!l||l&&o<n;)e=c.pop(),i=c[c.length-1],a.push(e),n=i.pre,l="Math.pow"==t.value&&"Math.pow"==i.value;c.push(t)}}return new r(a)},t.exports=r},EpBk:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},FyPc:function(t,e,n){var r=n("dunj"),o=n("V9xz"),i=n("ut/Y");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},GDhZ:function(t,e,n){var r=n("wF/u"),o=n("mwIZ"),i=n("hgQt"),a=n("9ggG"),c=n("CMye"),u=n("IOzZ"),s=n("9Nap");t.exports=function(t,e){return a(t)&&c(e)?u(s(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},GNiM:function(t,e,n){var r=n("I01J"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},GODc:function(t,e,n){var r=n("UB5X");t.exports=function(t){return r(t)&&t!=+t}},Gj0f:function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var c=o(t.children),u=i(e,c);return Object.keys(u).forEach((function(o){var i=u[o];if((0,r.isValidElement)(i)){var s=o in e,l=o in c,f=e[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),u};var r=n("q1tI");function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];c[o[u][r]]=n(s)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},H0h1:function(t,e,n){var r=n("SKAX");t.exports=function(t,e){var n=!0;return r(t,(function(t,r,o){return n=!!e(t,r,o)})),n}},H8j4:function(t,e,n){var r=n("QkVE");t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},HDyB:function(t,e,n){var r=n("nmnc"),o=n("JHRd"),i=n("ljhN"),a=n("or5M"),c=n("7fqy"),u=n("rEGp"),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;t.exports=function(t,e,n,r,s,f,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var d=1&r;if(h||(h=u),t.size!=e.size&&!d)return!1;var v=p.get(t);if(v)return v==e;r|=2,p.set(t,e);var y=a(h(t),h(e),r,s,f,p);return p.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},HLqC:function(t,e,n){var r=n("R5Y4"),o=n("mv/X"),i=n("ZCgT");t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},HOxn:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Promise");t.exports=r},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},Hvzi:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},I01J:function(t,e,n){var r=n("44Ds");t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},IOzZ:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},IWTy:function(t,e,n){var r=n("yue5");t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=n.length;++o<c;){var s=r(i[o],a[o]);if(s)return o>=u?s:s*("desc"==n[o]?-1:1)}return t.index-e.index}},Ioao:function(t,e,n){var r=n("heNW"),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},J2iB:function(t,e){t.exports=function(t){return null==t}},J2m7:function(t,e,n){var r=n("XKAG")(n("UfWW"));t.exports=r},JC6p:function(t,e,n){var r=n("cq/+"),o=n("7GkX");t.exports=function(t,e){return t&&r(t,e,o)}},JHRd:function(t,e,n){var r=n("Kz5y").Uint8Array;t.exports=r},JHgL:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).get(t)}},JSQU:function(t,e,n){var r=n("YESw");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},JTzB:function(t,e,n){var r=n("NykK"),o=n("ExA7");t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},Jlc5:function(t,e,n){var r=n("ZirO"),o=n("H0h1"),i=n("ut/Y"),a=n("Z0cm"),c=n("mv/X");t.exports=function(t,e,n){var u=a(t)?r:o;return n&&c(t,e,n)&&(e=void 0),u(t,i(e,3))}},Juji:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},KMkd:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},KwMD:function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},Kz5y:function(t,e,n){var r=n("WFqU"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},L8xA:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},LGYb:function(t,e,n){var r=n("1hJj"),o=n("jbM+"),i=n("Xt/L"),a=n("xYSL"),c=n("dQpi"),u=n("rEGp");t.exports=function(t,e,n){var s=-1,l=o,f=t.length,p=!0,h=[],d=h;if(n)p=!1,l=i;else if(f>=200){var v=e?null:c(t);if(v)return u(v);p=!1,l=a,d=new r}else d=e?[]:h;t:for(;++s<f;){var y=t[s],m=e?e(y):y;if(y=n||0!==y?y:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue t;e&&d.push(m),h.push(y)}else l(d,m,n)||(d!==h&&d.push(m),h.push(y))}return h}},LXxW:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},LcsW:function(t,e,n){var r=n("kekF")(Object.getPrototypeOf,Object);t.exports=r},MJIl:function(t,e,n){var r=n("QoRX"),o=n("ut/Y"),i=n("Nh2a"),a=n("Z0cm"),c=n("mv/X");t.exports=function(t,e,n){var u=a(t)?r:i;return n&&c(t,e,n)&&(e=void 0),u(t,o(e,3))}},MMmD:function(t,e,n){var r=n("lSCD"),o=n("shjB");t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},MdjF:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("q1tI"),i=l(o),a=l(n("17x9")),c=l(n("bdgK")),u=l(n("9/5/")),s=l(n("hKI/"));function l(t){return t&&t.__esModule?t:{default:t}}var f={debounce:u.default,throttle:s.default},p={position:"absolute",width:0,height:0,visibility:"hidden",display:"none"},h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.createResizeObserver=function(t){var e=n.props,r=e.handleWidth,o=e.handleHeight,i=e.onResize;t.forEach((function(t){var e=t.contentRect,a=e.width,c=e.height,u=r&&n.width!==a,s=o&&n.height!==c;n.skipOnMount||!u&&!s||i(a,c),n.width=a,n.height=c,n.skipOnMount=!1}))};var r=t.skipOnMount,o=t.refreshMode,i=t.refreshRate;n.width=void 0,n.height=void 0,n.skipOnMount=r;var a=f[o]&&f[o](n.createResizeObserver,i)||n.createResizeObserver;return n.ro=new c.default(a),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"componentDidMount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.unobserve(e)}},{key:"render",value:function(){var t=this;return i.default.createElement("div",{style:p,ref:function(e){t.el=e}})}}]),e}(o.PureComponent);e.default=h,h.propTypes={handleWidth:a.default.bool,handleHeight:a.default.bool,skipOnMount:a.default.bool,refreshRate:a.default.number,refreshMode:a.default.string,resizableElementId:a.default.string,onResize:a.default.func},h.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,resizableElementId:"",onResize:function(t){return t}}},Mtft:function(t,e,n){"use strict";var r=n("TqRt");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("q1tI")),i=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53C16.17 17.98 14.21 19 12 19z"}),"DataUsage");e.default=i},MvSz:function(t,e,n){var r=n("LXxW"),o=n("0ycA"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NKxu:function(t,e,n){var r=n("lSCD"),o=n("E2jh"),i=n("GoyQ"),a=n("3Fdi"),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:c).test(a(t))}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},Nh2a:function(t,e,n){var r=n("SKAX");t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},Npjl:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},NqtD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("TrhM");function o(t){if("string"!=typeof t)throw new Error(Object(r.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},NykK:function(t,e,n){var r=n("nmnc"),o=n("AP2z"),i=n("KfNM"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},O0oS:function(t,e,n){var r=n("Cwc5"),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=o},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},O7RO:function(t,e,n){var r=n("CMye"),o=n("7GkX");t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},"Of+w":function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"WeakMap");t.exports=r},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,c=0,u=arguments.length,s=0;c<u;)s<(n=i(arguments[c++]))?(o=o*(r=s/n)*r+1,s=n):o+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QIyF:function(t,e,n){var r=n("Kz5y");t.exports=function(){return r.Date.now()}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QkVE:function(t,e,n){var r=n("EpBk");t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},QoRX:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},QqLw:function(t,e,n){var r=n("tadb"),o=n("ebwN"),i=n("HOxn"),a=n("yGk4"),c=n("Of+w"),u=n("NykK"),s=n("3Fdi"),l=s(r),f=s(o),p=s(i),h=s(a),d=s(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=v},"R/W3":function(t,e,n){var r=n("KwMD"),o=n("2ajD"),i=n("CZoQ");t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},R5Y4:function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,o,i){for(var a=-1,c=r(n((e-t)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=t,t+=o;return u}},RBan:function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},RXBc:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return _m}));var r={};n.r(r),n.d(r,"scaleBand",(function(){return bi})),n.d(r,"scalePoint",(function(){return wi})),n.d(r,"scaleIdentity",(function(){return Ga})),n.d(r,"scaleLinear",(function(){return Wa})),n.d(r,"scaleLog",(function(){return $a})),n.d(r,"scaleSymlog",(function(){return ec})),n.d(r,"scaleOrdinal",(function(){return gi})),n.d(r,"scaleImplicit",(function(){return mi})),n.d(r,"scalePow",(function(){return ac})),n.d(r,"scaleSqrt",(function(){return cc})),n.d(r,"scaleQuantile",(function(){return uc})),n.d(r,"scaleQuantize",(function(){return sc})),n.d(r,"scaleThreshold",(function(){return lc})),n.d(r,"scaleTime",(function(){return xs})),n.d(r,"scaleUtc",(function(){return Ss})),n.d(r,"scaleSequential",(function(){return Ts})),n.d(r,"scaleSequentialLog",(function(){return Ps})),n.d(r,"scaleSequentialPow",(function(){return Ns})),n.d(r,"scaleSequentialSqrt",(function(){return Is})),n.d(r,"scaleSequentialSymlog",(function(){return Cs})),n.d(r,"scaleSequentialQuantile",(function(){return Ds})),n.d(r,"scaleDiverging",(function(){return Ls})),n.d(r,"scaleDivergingLog",(function(){return Bs})),n.d(r,"scaleDivergingPow",(function(){return Fs})),n.d(r,"scaleDivergingSqrt",(function(){return Ws})),n.d(r,"scaleDivergingSymlog",(function(){return zs})),n.d(r,"tickFormat",(function(){return za}));var o=n("q1tI"),i=n.n(o),a=n("iuhU"),c=n("wx14"),u=n("RD7I"),s=n("cNwE");var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(u.a)(t,Object(c.a)({defaultTheme:s.a},e))},f=n("5CWz"),p=n("Ff2n"),h=n("i8i4"),d=n.n(h),v=n("aXM8"),y=n("A+CX");function m(t){return t&&t.ownerDocument||document}function g(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function b(t,e){return o.useMemo((function(){return null==t&&null==e?null:function(n){g(t,n),g(e,n)}}),[t,e])}var x="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;var w=o.forwardRef((function(t,e){var n=t.children,r=t.container,i=t.disablePortal,a=void 0!==i&&i,c=t.onRendered,u=o.useState(null),s=u[0],l=u[1],f=b(o.isValidElement(n)?n.ref:null,e);return x((function(){a||l(function(t){return t="function"==typeof t?t():t,h.findDOMNode(t)}(r)||document.body)}),[r,a]),x((function(){if(s&&!a)return g(e,s),function(){g(e,null)}}),[e,s,a]),x((function(){c&&(s||a)&&c()}),[c,s,a]),a?o.isValidElement(n)?o.cloneElement(n,{ref:f}):n:s?h.createPortal(n,s):s}));n("E9XD");function O(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return null==e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.apply(this,r),e.apply(this,r)}}),(function(){}))}var E="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function k(t){var e=o.useRef(t);return E((function(){e.current=t})),o.useCallback((function(){return e.current.apply(void 0,arguments)}),[])}var j=n("HwzS"),M=n("1OyB"),S=n("vuIU"),_=n("KQm4");function A(t){var e,n=m(t);return n.body===t?(e=n,m(e).defaultView||window).innerWidth>n.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function T(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function P(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function C(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[e,n].concat(Object(_.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===i.indexOf(t)&&-1===a.indexOf(t.tagName)&&T(t,o)}))}function N(t,e){var n=-1;return t.some((function(t,r){return!!e(t)&&(n=r,!0)})),n}function I(t,e){var n,r=[],o=[],i=t.container;if(!e.disableScrollLock){if(A(i)){var a=function(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(P(i)+a,"px"),n=m(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(t){o.push(t.style.paddingRight),t.style.paddingRight="".concat(P(t)+a,"px")}))}var c=i.parentElement,u="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(t,e){o[e]?t.style.paddingRight=o[e]:t.style.removeProperty("padding-right")})),r.forEach((function(t){var e=t.value,n=t.el,r=t.key;e?n.style.setProperty(r,e):n.style.removeProperty(r)}))}}var D=function(){function t(){Object(M.a)(this,t),this.modals=[],this.containers=[]}return Object(S.a)(t,[{key:"add",value:function(t,e){var n=this.modals.indexOf(t);if(-1!==n)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&T(t.modalRef,!1);var r=function(t){var e=[];return[].forEach.call(t.children,(function(t){t.getAttribute&&"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);C(e,t.mountNode,t.modalRef,r,!0);var o=N(this.containers,(function(t){return t.container===e}));return-1!==o?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(t,e){var n=N(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];r.restore||(r.restore=I(r,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var n=N(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(e,1),0===r.modals.length)r.restore&&r.restore(),t.modalRef&&T(t.modalRef,!0),C(r.container,t.mountNode,t.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&T(o.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}();var R=function(t){var e=t.children,n=t.disableAutoFocus,r=void 0!==n&&n,i=t.disableEnforceFocus,a=void 0!==i&&i,c=t.disableRestoreFocus,u=void 0!==c&&c,s=t.getDoc,l=t.isEnabled,f=t.open,p=o.useRef(),d=o.useRef(null),v=o.useRef(null),y=o.useRef(),g=o.useRef(null),x=o.useCallback((function(t){g.current=h.findDOMNode(t)}),[]),w=b(e.ref,x),O=o.useRef();return o.useEffect((function(){O.current=f}),[f]),!O.current&&f&&"undefined"!=typeof window&&(y.current=s().activeElement),o.useEffect((function(){if(f){var t=m(g.current);r||!g.current||g.current.contains(t.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var e=function(){t.hasFocus()&&!a&&l()&&!p.current?g.current&&!g.current.contains(t.activeElement)&&g.current.focus():p.current=!1},n=function(e){!a&&l()&&9===e.keyCode&&t.activeElement===g.current&&(p.current=!0,e.shiftKey?v.current.focus():d.current.focus())};t.addEventListener("focus",e,!0),t.addEventListener("keydown",n,!0);var o=setInterval((function(){e()}),50);return function(){clearInterval(o),t.removeEventListener("focus",e,!0),t.removeEventListener("keydown",n,!0),u||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,a,u,l,f]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),o.cloneElement(e,{ref:w}),o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},L={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},B=o.forwardRef((function(t,e){var n=t.invisible,r=void 0!==n&&n,i=t.open,a=Object(p.a)(t,["invisible","open"]);return i?o.createElement("div",Object(c.a)({"aria-hidden":!0,ref:e},a,{style:Object(c.a)({},L.root,r?L.invisible:{},a.style)})):null}));var z=new D,F=o.forwardRef((function(t,e){var n=Object(v.a)(),r=Object(y.a)({name:"MuiModal",props:Object(c.a)({},t),theme:n}),i=r.BackdropComponent,a=void 0===i?B:i,u=r.BackdropProps,s=r.children,l=r.closeAfterTransition,f=void 0!==l&&l,d=r.container,g=r.disableAutoFocus,x=void 0!==g&&g,E=r.disableBackdropClick,M=void 0!==E&&E,S=r.disableEnforceFocus,_=void 0!==S&&S,A=r.disableEscapeKeyDown,P=void 0!==A&&A,C=r.disablePortal,N=void 0!==C&&C,I=r.disableRestoreFocus,D=void 0!==I&&I,L=r.disableScrollLock,F=void 0!==L&&L,W=r.hideBackdrop,G=void 0!==W&&W,U=r.keepMounted,V=void 0!==U&&U,H=r.manager,X=void 0===H?z:H,q=r.onBackdropClick,K=r.onClose,Y=r.onEscapeKeyDown,Z=r.onRendered,$=r.open,J=Object(p.a)(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),tt=Q[0],et=Q[1],nt=o.useRef({}),rt=o.useRef(null),ot=o.useRef(null),it=b(ot,e),at=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(r),ct=function(){return m(rt.current)},ut=function(){return nt.current.modalRef=ot.current,nt.current.mountNode=rt.current,nt.current},st=function(){X.mount(ut(),{disableScrollLock:F}),ot.current.scrollTop=0},lt=k((function(){var t=function(t){return t="function"==typeof t?t():t,h.findDOMNode(t)}(d)||ct().body;X.add(ut(),t),ot.current&&st()})),ft=o.useCallback((function(){return X.isTopModal(ut())}),[X]),pt=k((function(t){rt.current=t,t&&(Z&&Z(),$&&ft()?st():T(ot.current,!0))})),ht=o.useCallback((function(){X.remove(ut())}),[X]);if(o.useEffect((function(){return function(){ht()}}),[ht]),o.useEffect((function(){$?lt():at&&f||ht()}),[$,ht,at,f,lt]),!V&&!$&&(!at||tt))return null;var dt=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:j.a}),vt={};return void 0===s.props.tabIndex&&(vt.tabIndex=s.props.tabIndex||"-1"),at&&(vt.onEnter=O((function(){et(!1)}),s.props.onEnter),vt.onExited=O((function(){et(!0),f&&ht()}),s.props.onExited)),o.createElement(w,{ref:pt,container:d,disablePortal:N},o.createElement("div",Object(c.a)({ref:it,onKeyDown:function(t){"Escape"===t.key&&ft()&&(Y&&Y(t),P||(t.stopPropagation(),K&&K(t,"escapeKeyDown")))},role:"presentation"},J,{style:Object(c.a)({},dt.root,!$&&tt?dt.hidden:{},J.style)}),G?null:o.createElement(a,Object(c.a)({open:$,onClick:function(t){t.target===t.currentTarget&&(q&&q(t),!M&&K&&K(t,"backdropClick"))}},u)),o.createElement(R,{disableEnforceFocus:_,disableAutoFocus:x,disableRestoreFocus:D,getDoc:ct,isEnabled:ft,open:$},o.cloneElement(s,vt))))})),W=n("H2TA"),G=n("ODXe"),U=n("zLVn"),V=n("dI71"),H=!1,X=i.a.createContext(null),q=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(V.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[d.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!t&&!n||H?this.safeSetState({status:"entered"},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(i,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:d.a.findDOMNode(this);e&&!H?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:d.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(U.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.a.createElement(X.Provider,{value:null},"function"==typeof n?n(t,r):i.a.cloneElement(i.a.Children.only(n),r))},e}(i.a.Component);function K(){}q.contextType=X,q.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:K,onEntering:K,onEntered:K,onExit:K,onExiting:K,onExited:K},q.UNMOUNTED="unmounted",q.EXITED="exited",q.ENTERING="entering",q.ENTERED="entered",q.EXITING="exiting";var Y=q,Z=n("wpWl");function $(){return Object(v.a)()||s.a}var J=function(t){return t.scrollTop};function Q(t,e){var n=t.timeout,r=t.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[e.mode]||0,delay:o.transitionDelay}}var tt={entering:{opacity:1},entered:{opacity:1}},et={enter:Z.b.enteringScreen,exit:Z.b.leavingScreen},nt=o.forwardRef((function(t,e){var n=t.children,r=t.disableStrictModeCompat,i=void 0!==r&&r,a=t.in,u=t.onEnter,s=t.onEntered,l=t.onEntering,f=t.onExit,h=t.onExited,d=t.onExiting,v=t.style,y=t.TransitionComponent,m=void 0===y?Y:y,g=t.timeout,x=void 0===g?et:g,w=Object(p.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),O=$(),E=O.unstable_strictMode&&!i,k=o.useRef(null),j=b(n.ref,e),M=b(E?k:void 0,j),S=function(t){return function(e,n){if(t){var r=E?[k.current,e]:[e,n],o=Object(G.a)(r,2),i=o[0],a=o[1];void 0===a?t(i):t(i,a)}}},_=S(l),A=S((function(t,e){J(t);var n=Q({style:v,timeout:x},{mode:"enter"});t.style.webkitTransition=O.transitions.create("opacity",n),t.style.transition=O.transitions.create("opacity",n),u&&u(t,e)})),T=S(s),P=S(d),C=S((function(t){var e=Q({style:v,timeout:x},{mode:"exit"});t.style.webkitTransition=O.transitions.create("opacity",e),t.style.transition=O.transitions.create("opacity",e),f&&f(t)})),N=S(h);return o.createElement(m,Object(c.a)({appear:!0,in:a,nodeRef:E?k:void 0,onEnter:A,onEntered:T,onEntering:_,onExit:C,onExited:N,onExiting:P,timeout:x},w),(function(t,e){return o.cloneElement(n,Object(c.a)({style:Object(c.a)({opacity:0,visibility:"exited"!==t||a?void 0:"hidden"},tt[t],v,n.props.style),ref:M},e))}))})),rt=o.forwardRef((function(t,e){var n=t.children,r=t.classes,i=t.className,u=t.invisible,s=void 0!==u&&u,l=t.open,f=t.transitionDuration,h=t.TransitionComponent,d=void 0===h?nt:h,v=Object(p.a)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(d,Object(c.a)({in:l,timeout:f},v),o.createElement("div",{className:Object(a.a)(r.root,i,s&&r.invisible),"aria-hidden":!0,ref:e},n))})),ot=Object(W.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(rt);function it(t,e){var n=function(t,e){var n,r=e.getBoundingClientRect();if(e.fakeTransform)n=e.fakeTransform;else{var o=window.getComputedStyle(e);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),a=parseInt(c[5],10)}return"left"===t?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===t?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===t?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(t,e);n&&(e.style.webkitTransform=n,e.style.transform=n)}var at={enter:Z.b.enteringScreen,exit:Z.b.leavingScreen},ct=o.forwardRef((function(t,e){var n=t.children,r=t.direction,i=void 0===r?"down":r,a=t.in,u=t.onEnter,s=t.onEntered,l=t.onEntering,f=t.onExit,d=t.onExited,v=t.onExiting,y=t.style,m=t.timeout,g=void 0===m?at:m,x=t.TransitionComponent,w=void 0===x?Y:x,O=Object(p.a)(t,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=$(),k=o.useRef(null),j=o.useCallback((function(t){k.current=h.findDOMNode(t)}),[]),M=b(n.ref,j),S=b(M,e),_=function(t){return function(e){t&&(void 0===e?t(k.current):t(k.current,e))}},A=_((function(t,e){it(i,t),J(t),u&&u(t,e)})),T=_((function(t,e){var n=Q({timeout:g,style:y},{mode:"enter"});t.style.webkitTransition=E.transitions.create("-webkit-transform",Object(c.a)({},n,{easing:E.transitions.easing.easeOut})),t.style.transition=E.transitions.create("transform",Object(c.a)({},n,{easing:E.transitions.easing.easeOut})),t.style.webkitTransform="none",t.style.transform="none",l&&l(t,e)})),P=_(s),C=_(v),N=_((function(t){var e=Q({timeout:g,style:y},{mode:"exit"});t.style.webkitTransition=E.transitions.create("-webkit-transform",Object(c.a)({},e,{easing:E.transitions.easing.sharp})),t.style.transition=E.transitions.create("transform",Object(c.a)({},e,{easing:E.transitions.easing.sharp})),it(i,t),f&&f(t)})),I=_((function(t){t.style.webkitTransition="",t.style.transition="",d&&d(t)})),D=o.useCallback((function(){k.current&&it(i,k.current)}),[i]);return o.useEffect((function(){if(!a&&"down"!==i&&"right"!==i){var t=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,c=function(){t.apply(a,o)};clearTimeout(e),e=setTimeout(c,n)}return r.clear=function(){clearTimeout(e)},r}((function(){k.current&&it(i,k.current)}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[i,a]),o.useEffect((function(){a||D()}),[a,D]),o.createElement(w,Object(c.a)({nodeRef:k,onEnter:A,onEntered:P,onEntering:T,onExit:N,onExited:I,onExiting:C,appear:!0,in:a,timeout:g},O),(function(t,e){return o.cloneElement(n,Object(c.a)({ref:S,style:Object(c.a)({visibility:"exited"!==t||a?void 0:"hidden"},y,n.props.style)},e))}))})),ut=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=t.component,u=void 0===i?"div":i,s=t.square,l=void 0!==s&&s,f=t.elevation,h=void 0===f?1:f,d=t.variant,v=void 0===d?"elevation":d,y=Object(p.a)(t,["classes","className","component","square","elevation","variant"]);return o.createElement(u,Object(c.a)({className:Object(a.a)(n.root,r,"outlined"===v?n.outlined:n["elevation".concat(h)],!l&&n.rounded),ref:e},y))})),st=Object(W.a)((function(t){var e={};return t.shadows.forEach((function(t,n){e["elevation".concat(n)]={boxShadow:t}})),Object(c.a)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)}),{name:"MuiPaper"})(ut),lt=n("NqtD"),ft={left:"right",right:"left",top:"down",bottom:"up"};var pt={enter:Z.b.enteringScreen,exit:Z.b.leavingScreen},ht=o.forwardRef((function(t,e){var n=t.anchor,r=void 0===n?"left":n,i=t.BackdropProps,u=t.children,s=t.classes,l=t.className,f=t.elevation,h=void 0===f?16:f,d=t.ModalProps,v=(d=void 0===d?{}:d).BackdropProps,y=Object(p.a)(d,["BackdropProps"]),m=t.onClose,g=t.open,b=void 0!==g&&g,x=t.PaperProps,w=void 0===x?{}:x,O=t.SlideProps,E=t.TransitionComponent,k=void 0===E?ct:E,j=t.transitionDuration,M=void 0===j?pt:j,S=t.variant,_=void 0===S?"temporary":S,A=Object(p.a)(t,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),T=$(),P=o.useRef(!1);o.useEffect((function(){P.current=!0}),[]);var C=function(t,e){return"rtl"===t.direction&&function(t){return-1!==["left","right"].indexOf(t)}(e)?ft[e]:e}(T,r),N=o.createElement(st,Object(c.a)({elevation:"temporary"===_?h:0,square:!0},w,{className:Object(a.a)(s.paper,s["paperAnchor".concat(Object(lt.a)(C))],w.className,"temporary"!==_&&s["paperAnchorDocked".concat(Object(lt.a)(C))])}),u);if("permanent"===_)return o.createElement("div",Object(c.a)({className:Object(a.a)(s.root,s.docked,l),ref:e},A),N);var I=o.createElement(k,Object(c.a)({in:b,direction:ft[C],timeout:M,appear:P.current},O),N);return"persistent"===_?o.createElement("div",Object(c.a)({className:Object(a.a)(s.root,s.docked,l),ref:e},A),I):o.createElement(F,Object(c.a)({BackdropProps:Object(c.a)({},i,v,{transitionDuration:M}),BackdropComponent:ot,className:Object(a.a)(s.root,s.modal,l),open:b,onClose:m,ref:e},A,y),I)})),dt=Object(W.a)((function(t){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:t.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(t.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(t.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(t.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(t.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(ht),vt=n("17x9"),yt=n.n(vt),mt=n("bv9d");var gt=function(t){var e=function(e){var n=t(e);return e.css?Object(c.a)(Object(c.a)({},Object(mt.a)(n,t(Object(c.a)({theme:e.theme},e.css)))),function(t,e){var n={};return Object.keys(t).forEach((function(r){-1===e.indexOf(r)&&(n[r]=t[r])})),n}(e.css,[t.filterProps])):n};return e.propTypes={},e.filterProps=["css"].concat(Object(_.a)(t.filterProps)),e};var bt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=function(t){return e.reduce((function(e,n){var r=n(t);return r?Object(mt.a)(e,r):e}),{})};return r.propTypes={},r.filterProps=e.reduce((function(t,e){return t.concat(e.filterProps)}),[]),r},xt=n("rePB"),wt=n("LybE");function Ot(t,e){return e&&"string"==typeof e?e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:null}),t):null}var Et=function(t){var e=t.prop,n=t.cssProperty,r=void 0===n?t.prop:n,o=t.themeKey,i=t.transform,a=function(t){if(null==t[e])return null;var n=t[e],a=Ot(t.theme,o)||{};return Object(wt.a)(t,n,(function(t){var e;return"function"==typeof a?e=a(t):Array.isArray(a)?e=a[t]||t:(e=Ot(a,t)||t,i&&(e=i(e))),!1===r?e:Object(xt.a)({},r,e)}))};return a.propTypes={},a.filterProps=[e],a};function kt(t){return"number"!=typeof t?t:"".concat(t,"px solid")}var jt=bt(Et({prop:"border",themeKey:"borders",transform:kt}),Et({prop:"borderTop",themeKey:"borders",transform:kt}),Et({prop:"borderRight",themeKey:"borders",transform:kt}),Et({prop:"borderBottom",themeKey:"borders",transform:kt}),Et({prop:"borderLeft",themeKey:"borders",transform:kt}),Et({prop:"borderColor",themeKey:"palette"}),Et({prop:"borderRadius",themeKey:"shape"})),Mt=bt(Et({prop:"displayPrint",cssProperty:!1,transform:function(t){return{"@media print":{display:t}}}}),Et({prop:"display"}),Et({prop:"overflow"}),Et({prop:"textOverflow"}),Et({prop:"visibility"}),Et({prop:"whiteSpace"})),St=bt(Et({prop:"flexBasis"}),Et({prop:"flexDirection"}),Et({prop:"flexWrap"}),Et({prop:"justifyContent"}),Et({prop:"alignItems"}),Et({prop:"alignContent"}),Et({prop:"order"}),Et({prop:"flex"}),Et({prop:"flexGrow"}),Et({prop:"flexShrink"}),Et({prop:"alignSelf"}),Et({prop:"justifyItems"}),Et({prop:"justifySelf"})),_t=bt(Et({prop:"gridGap"}),Et({prop:"gridColumnGap"}),Et({prop:"gridRowGap"}),Et({prop:"gridColumn"}),Et({prop:"gridRow"}),Et({prop:"gridAutoFlow"}),Et({prop:"gridAutoColumns"}),Et({prop:"gridAutoRows"}),Et({prop:"gridTemplateColumns"}),Et({prop:"gridTemplateRows"}),Et({prop:"gridTemplateAreas"}),Et({prop:"gridArea"})),At=bt(Et({prop:"position"}),Et({prop:"zIndex",themeKey:"zIndex"}),Et({prop:"top"}),Et({prop:"right"}),Et({prop:"bottom"}),Et({prop:"left"})),Tt=bt(Et({prop:"color",themeKey:"palette"}),Et({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),Pt=Et({prop:"boxShadow",themeKey:"shadows"});function Ct(t){return t<=1?"".concat(100*t,"%"):t}var Nt=Et({prop:"width",transform:Ct}),It=Et({prop:"maxWidth",transform:Ct}),Dt=Et({prop:"minWidth",transform:Ct}),Rt=Et({prop:"height",transform:Ct}),Lt=Et({prop:"maxHeight",transform:Ct}),Bt=Et({prop:"minHeight",transform:Ct}),zt=(Et({prop:"size",cssProperty:"width",transform:Ct}),Et({prop:"size",cssProperty:"height",transform:Ct}),bt(Nt,It,Dt,Rt,Lt,Bt,Et({prop:"boxSizing"}))),Ft=n("+Hmc"),Wt=bt(Et({prop:"fontFamily",themeKey:"typography"}),Et({prop:"fontSize",themeKey:"typography"}),Et({prop:"fontStyle",themeKey:"typography"}),Et({prop:"fontWeight",themeKey:"typography"}),Et({prop:"letterSpacing"}),Et({prop:"lineHeight"}),Et({prop:"textAlign"})),Gt=n("/P46"),Ut=function(t){var e=Object(Gt.a)(t);return function(t,n){return e(t,Object(c.a)({defaultTheme:s.a},n))}},Vt=gt(bt(jt,Mt,St,_t,At,Tt,Pt,zt,Ft.b,Wt)),Ht=Ut("div")(Vt,{name:"MuiBox"}),Xt=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=t.color,u=void 0===i?"primary":i,s=t.position,l=void 0===s?"fixed":s,f=Object(p.a)(t,["classes","className","color","position"]);return o.createElement(st,Object(c.a)({square:!0,component:"header",elevation:4,className:Object(a.a)(n.root,n["position".concat(Object(lt.a)(l))],n["color".concat(Object(lt.a)(u))],r,"fixed"===l&&"mui-fixed"),ref:e},f))})),qt=Object(W.a)((function(t){var e="light"===t.palette.type?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:e,color:t.palette.getContrastText(e)},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(Xt),Kt=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=t.component,u=void 0===i?"div":i,s=t.disableGutters,l=void 0!==s&&s,f=t.variant,h=void 0===f?"regular":f,d=Object(p.a)(t,["classes","className","component","disableGutters","variant"]);return o.createElement(u,Object(c.a)({className:Object(a.a)(n.root,n[h],r,!l&&n.gutters),ref:e},d))})),Yt=Object(W.a)((function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(xt.a)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(Kt);var Zt=o.createContext({}),$t=o.forwardRef((function(t,e){var n=t.children,r=t.classes,i=t.className,u=t.component,s=void 0===u?"ul":u,l=t.dense,f=void 0!==l&&l,h=t.disablePadding,d=void 0!==h&&h,v=t.subheader,y=Object(p.a)(t,["children","classes","className","component","dense","disablePadding","subheader"]),m=o.useMemo((function(){return{dense:f}}),[f]);return o.createElement(Zt.Provider,{value:m},o.createElement(s,Object(c.a)({className:Object(a.a)(r.root,i,f&&r.dense,!d&&r.padding,v&&r.subheader),ref:e},y),v,n))})),Jt=Object(W.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})($t),Qt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},te=o.forwardRef((function(t,e){var n=t.align,r=void 0===n?"inherit":n,i=t.classes,u=t.className,s=t.color,l=void 0===s?"initial":s,f=t.component,h=t.display,d=void 0===h?"initial":h,v=t.gutterBottom,y=void 0!==v&&v,m=t.noWrap,g=void 0!==m&&m,b=t.paragraph,x=void 0!==b&&b,w=t.variant,O=void 0===w?"body1":w,E=t.variantMapping,k=void 0===E?Qt:E,j=Object(p.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),M=f||(x?"p":k[O]||Qt[O])||"span";return o.createElement(M,Object(c.a)({className:Object(a.a)(i.root,u,"inherit"!==O&&i[O],"initial"!==l&&i["color".concat(Object(lt.a)(l))],g&&i.noWrap,y&&i.gutterBottom,x&&i.paragraph,"inherit"!==r&&i["align".concat(Object(lt.a)(r))],"initial"!==d&&i["display".concat(Object(lt.a)(d))]),ref:e},j))})),ee=Object(W.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(te),ne=n("ye/S"),re=o.forwardRef((function(t,e){var n=t.absolute,r=void 0!==n&&n,i=t.classes,u=t.className,s=t.component,l=void 0===s?"hr":s,f=t.flexItem,h=void 0!==f&&f,d=t.light,v=void 0!==d&&d,y=t.orientation,m=void 0===y?"horizontal":y,g=t.role,b=void 0===g?"hr"!==l?"separator":void 0:g,x=t.variant,w=void 0===x?"fullWidth":x,O=Object(p.a)(t,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(l,Object(c.a)({className:Object(a.a)(i.root,u,"fullWidth"!==w&&i[w],r&&i.absolute,h&&i.flexItem,v&&i.light,"vertical"===m&&i.vertical),role:b,ref:e},O))})),oe=Object(W.a)((function(t){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:t.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(ne.b)(t.palette.divider,.08)},middle:{marginLeft:t.spacing(2),marginRight:t.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(re),ie=!0,ae=!1,ce=null,ue={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function se(t){t.metaKey||t.altKey||t.ctrlKey||(ie=!0)}function le(){ie=!1}function fe(){"hidden"===this.visibilityState&&ae&&(ie=!0)}function pe(t){var e,n,r,o=t.target;try{return o.matches(":focus-visible")}catch(i){}return ie||(n=(e=o).type,!("INPUT"!==(r=e.tagName)||!ue[n]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable)}function he(){ae=!0,window.clearTimeout(ce),ce=window.setTimeout((function(){ae=!1}),100)}function de(){return{isFocusVisible:pe,onBlurVisible:he,ref:o.useCallback((function(t){var e,n=h.findDOMNode(t);null!=n&&((e=n.ownerDocument).addEventListener("keydown",se,!0),e.addEventListener("mousedown",le,!0),e.addEventListener("pointerdown",le,!0),e.addEventListener("touchstart",le,!0),e.addEventListener("visibilitychange",fe,!0))}),[])}}var ve=n("JX7q");function ye(t,e){var n=Object.create(null);return t&&o.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&Object(o.isValidElement)(t)?e(t):t}(t)})),n}function me(t,e,n){return null!=n[e]?n[e]:t.props[e]}function ge(t,e,n){var r=ye(t.children),i=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];c[o[u][r]]=n(s)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(e,r);return Object.keys(i).forEach((function(a){var c=i[a];if(Object(o.isValidElement)(c)){var u=a in e,s=a in r,l=e[a],f=Object(o.isValidElement)(l)&&!l.props.in;!s||u&&!f?s||!u||f?s&&u&&Object(o.isValidElement)(l)&&(i[a]=Object(o.cloneElement)(c,{onExited:n.bind(null,c),in:l.props.in,exit:me(c,"exit",t),enter:me(c,"enter",t)})):i[a]=Object(o.cloneElement)(c,{in:!1}):i[a]=Object(o.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:me(c,"exit",t),enter:me(c,"enter",t)})}})),i}var be=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},xe=function(t){function e(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(Object(ve.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(V.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,r,i=e.children,a=e.handleExited;return{children:e.firstRender?(n=t,r=a,ye(n.children,(function(t){return Object(o.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:me(t,"appear",n),enter:me(t,"enter",n),exit:me(t,"exit",n)})}))):ge(t,i,a),firstRender:!1}},n.handleExited=function(t,e){var n=ye(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=Object(c.a)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=Object(U.a)(t,["component","childFactory"]),o=this.state.contextValue,a=be(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i.a.createElement(X.Provider,{value:o},a):i.a.createElement(X.Provider,{value:o},i.a.createElement(e,r,a))},e}(i.a.Component);xe.defaultProps={component:"div",childFactory:function(t){return t}};var we=xe,Oe="undefined"==typeof window?o.useEffect:o.useLayoutEffect;var Ee=function(t){var e=t.classes,n=t.pulsate,r=void 0!==n&&n,i=t.rippleX,c=t.rippleY,u=t.rippleSize,s=t.in,l=t.onExited,f=void 0===l?function(){}:l,p=t.timeout,h=o.useState(!1),d=h[0],v=h[1],y=Object(a.a)(e.ripple,e.rippleVisible,r&&e.ripplePulsate),m={width:u,height:u,top:-u/2+c,left:-u/2+i},g=Object(a.a)(e.child,d&&e.childLeaving,r&&e.childPulsate),b=k(f);return Oe((function(){if(!s){v(!0);var t=setTimeout(b,p);return function(){clearTimeout(t)}}}),[b,s,p]),o.createElement("span",{className:y,style:m},o.createElement("span",{className:g}))},ke=o.forwardRef((function(t,e){var n=t.center,r=void 0!==n&&n,i=t.classes,u=t.className,s=Object(p.a)(t,["center","classes","className"]),l=o.useState([]),f=l[0],h=l[1],d=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var y=o.useRef(!1),m=o.useRef(null),g=o.useRef(null),b=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var x=o.useCallback((function(t){var e=t.pulsate,n=t.rippleX,r=t.rippleY,a=t.rippleSize,c=t.cb;h((function(t){return[].concat(Object(_.a)(t),[o.createElement(Ee,{key:d.current,classes:i,timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:a})])})),d.current+=1,v.current=c}),[i]),w=o.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=e.pulsate,i=void 0!==o&&o,a=e.center,c=void 0===a?r||e.pulsate:a,u=e.fakeElement,s=void 0!==u&&u;if("mousedown"===t.type&&y.current)y.current=!1;else{"touchstart"===t.type&&(y.current=!0);var l,f,p,h=s?null:b.current,d=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(c||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(d.width/2),f=Math.round(d.height/2);else{var v=t.touches?t.touches[0]:t,w=v.clientX,O=v.clientY;l=Math.round(w-d.left),f=Math.round(O-d.top)}if(c)(p=Math.sqrt((2*Math.pow(d.width,2)+Math.pow(d.height,2))/3))%2==0&&(p+=1);else{var E=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,k=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(k,2))}t.touches?null===g.current&&(g.current=function(){x({pulsate:i,rippleX:l,rippleY:f,rippleSize:p,cb:n})},m.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):x({pulsate:i,rippleX:l,rippleY:f,rippleSize:p,cb:n})}}),[r,x]),O=o.useCallback((function(){w({},{pulsate:!0})}),[w]),E=o.useCallback((function(t,e){if(clearTimeout(m.current),"touchend"===t.type&&g.current)return t.persist(),g.current(),g.current=null,void(m.current=setTimeout((function(){E(t,e)})));g.current=null,h((function(t){return t.length>0?t.slice(1):t})),v.current=e}),[]);return o.useImperativeHandle(e,(function(){return{pulsate:O,start:w,stop:E}}),[O,w,E]),o.createElement("span",Object(c.a)({className:Object(a.a)(i.root,u),ref:b},s),o.createElement(we,{component:null,exit:!0},f))})),je=Object(W.a)((function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(ke)),Me=o.forwardRef((function(t,e){var n=t.action,r=t.buttonRef,i=t.centerRipple,u=void 0!==i&&i,s=t.children,l=t.classes,f=t.className,d=t.component,v=void 0===d?"button":d,y=t.disabled,m=void 0!==y&&y,g=t.disableRipple,x=void 0!==g&&g,w=t.disableTouchRipple,O=void 0!==w&&w,E=t.focusRipple,j=void 0!==E&&E,M=t.focusVisibleClassName,S=t.onBlur,_=t.onClick,A=t.onFocus,T=t.onFocusVisible,P=t.onKeyDown,C=t.onKeyUp,N=t.onMouseDown,I=t.onMouseLeave,D=t.onMouseUp,R=t.onTouchEnd,L=t.onTouchMove,B=t.onTouchStart,z=t.onDragLeave,F=t.tabIndex,W=void 0===F?0:F,G=t.TouchRippleProps,U=t.type,V=void 0===U?"button":U,H=Object(p.a)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=o.useRef(null);var q=o.useRef(null),K=o.useState(!1),Y=K[0],Z=K[1];m&&Y&&Z(!1);var $=de(),J=$.isFocusVisible,Q=$.onBlurVisible,tt=$.ref;function et(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return k((function(r){return e&&e(r),!n&&q.current&&q.current[t](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),X.current.focus()}}}),[]),o.useEffect((function(){Y&&j&&!x&&q.current.pulsate()}),[x,j,Y]);var nt=et("start",N),rt=et("stop",z),ot=et("stop",D),it=et("stop",(function(t){Y&&t.preventDefault(),I&&I(t)})),at=et("start",B),ct=et("stop",R),ut=et("stop",L),st=et("stop",(function(t){Y&&(Q(t),Z(!1)),S&&S(t)}),!1),lt=k((function(t){X.current||(X.current=t.currentTarget),J(t)&&(Z(!0),T&&T(t)),A&&A(t)})),ft=function(){var t=h.findDOMNode(X.current);return v&&"button"!==v&&!("A"===t.tagName&&t.href)},pt=o.useRef(!1),ht=k((function(t){j&&!pt.current&&Y&&q.current&&" "===t.key&&(pt.current=!0,t.persist(),q.current.stop(t,(function(){q.current.start(t)}))),t.target===t.currentTarget&&ft()&&" "===t.key&&t.preventDefault(),P&&P(t),t.target===t.currentTarget&&ft()&&"Enter"===t.key&&!m&&(t.preventDefault(),_&&_(t))})),dt=k((function(t){j&&" "===t.key&&q.current&&Y&&!t.defaultPrevented&&(pt.current=!1,t.persist(),q.current.stop(t,(function(){q.current.pulsate(t)}))),C&&C(t),_&&t.target===t.currentTarget&&ft()&&" "===t.key&&!t.defaultPrevented&&_(t)})),vt=v;"button"===vt&&H.href&&(vt="a");var yt={};"button"===vt?(yt.type=V,yt.disabled=m):("a"===vt&&H.href||(yt.role="button"),yt["aria-disabled"]=m);var mt=b(r,e),gt=b(tt,X),bt=b(mt,gt),xt=o.useState(!1),wt=xt[0],Ot=xt[1];o.useEffect((function(){Ot(!0)}),[]);var Et=wt&&!x&&!m;return o.createElement(vt,Object(c.a)({className:Object(a.a)(l.root,f,Y&&[l.focusVisible,M],m&&l.disabled),onBlur:st,onClick:_,onFocus:lt,onKeyDown:ht,onKeyUp:dt,onMouseDown:nt,onMouseLeave:it,onMouseUp:ot,onDragLeave:rt,onTouchEnd:ct,onTouchMove:ut,onTouchStart:at,ref:bt,tabIndex:m?-1:W},yt,H),s,Et?o.createElement(je,Object(c.a)({ref:q,center:u},G)):null)})),Se=Object(W.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Me),_e=o.forwardRef((function(t,e){var n=t.edge,r=void 0!==n&&n,i=t.children,u=t.classes,s=t.className,l=t.color,f=void 0===l?"default":l,h=t.disabled,d=void 0!==h&&h,v=t.disableFocusRipple,y=void 0!==v&&v,m=t.size,g=void 0===m?"medium":m,b=Object(p.a)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(Se,Object(c.a)({className:Object(a.a)(u.root,s,"default"!==f&&u["color".concat(Object(lt.a)(f))],d&&u.disabled,"small"===g&&u["size".concat(Object(lt.a)(g))],{start:u.edgeStart,end:u.edgeEnd}[r]),centerRipple:!0,focusRipple:!y,disabled:d,ref:e},b),o.createElement("span",{className:u.label},i))})),Ae=Object(W.a)((function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(ne.b)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(ne.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(ne.b)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(_e),Te=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=t.component,u=void 0===i?"div":i,s=t.disableGutters,l=void 0!==s&&s,f=t.fixed,h=void 0!==f&&f,d=t.maxWidth,v=void 0===d?"lg":d,y=Object(p.a)(t,["classes","className","component","disableGutters","fixed","maxWidth"]);return o.createElement(u,Object(c.a)({className:Object(a.a)(n.root,r,h&&n.fixed,l&&n.disableGutters,!1!==v&&n["maxWidth".concat(Object(lt.a)(String(v)))]),ref:e},y))})),Pe=Object(W.a)((function(t){return{root:Object(xt.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:t.spacing(2),paddingRight:t.spacing(2),display:"block"},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(t.breakpoints.values).reduce((function(e,n){var r=t.breakpoints.values[n];return 0!==r&&(e[t.breakpoints.up(n)]={maxWidth:r}),e}),{}),maxWidthXs:Object(xt.a)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),maxWidthSm:Object(xt.a)({},t.breakpoints.up("sm"),{maxWidth:t.breakpoints.values.sm}),maxWidthMd:Object(xt.a)({},t.breakpoints.up("md"),{maxWidth:t.breakpoints.values.md}),maxWidthLg:Object(xt.a)({},t.breakpoints.up("lg"),{maxWidth:t.breakpoints.values.lg}),maxWidthXl:Object(xt.a)({},t.breakpoints.up("xl"),{maxWidth:t.breakpoints.values.xl})}}),{name:"MuiContainer"})(Te),Ce=[0,1,2,3,4,5,6,7,8,9,10],Ne=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Ie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(t);return"".concat(n/e).concat(String(t).replace(String(n),"")||"px")}var De=o.forwardRef((function(t,e){var n=t.alignContent,r=void 0===n?"stretch":n,i=t.alignItems,u=void 0===i?"stretch":i,s=t.classes,l=t.className,f=t.component,h=void 0===f?"div":f,d=t.container,v=void 0!==d&&d,y=t.direction,m=void 0===y?"row":y,g=t.item,b=void 0!==g&&g,x=t.justify,w=void 0===x?"flex-start":x,O=t.lg,E=void 0!==O&&O,k=t.md,j=void 0!==k&&k,M=t.sm,S=void 0!==M&&M,_=t.spacing,A=void 0===_?0:_,T=t.wrap,P=void 0===T?"wrap":T,C=t.xl,N=void 0!==C&&C,I=t.xs,D=void 0!==I&&I,R=t.zeroMinWidth,L=void 0!==R&&R,B=Object(p.a)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),z=Object(a.a)(s.root,l,v&&[s.container,0!==A&&s["spacing-xs-".concat(String(A))]],b&&s.item,L&&s.zeroMinWidth,"row"!==m&&s["direction-xs-".concat(String(m))],"wrap"!==P&&s["wrap-xs-".concat(String(P))],"stretch"!==u&&s["align-items-xs-".concat(String(u))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==w&&s["justify-xs-".concat(String(w))],!1!==D&&s["grid-xs-".concat(String(D))],!1!==S&&s["grid-sm-".concat(String(S))],!1!==j&&s["grid-md-".concat(String(j))],!1!==E&&s["grid-lg-".concat(String(E))],!1!==N&&s["grid-xl-".concat(String(N))]);return o.createElement(h,Object(c.a)({className:z,ref:e},B))})),Re=Object(W.a)((function(t){return Object(c.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(t,e){var n={};return Ce.forEach((function(r){var o=t.spacing(r);0!==o&&(n["spacing-".concat(e,"-").concat(r)]={margin:"-".concat(Ie(o,2)),width:"calc(100% + ".concat(Ie(o),")"),"& > $item":{padding:Ie(o,2)}})})),n}(t,"xs"),t.breakpoints.keys.reduce((function(e,n){return function(t,e,n){var r={};Ne.forEach((function(t){var e="grid-".concat(n,"-").concat(t);if(!0!==t)if("auto"!==t){var o="".concat(Math.round(t/12*1e8)/1e6,"%");r[e]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[e]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[e]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(c.a)(t,r):t[e.breakpoints.up(n)]=r}(e,t,n),e}),{}))}),{name:"MuiGrid"})(De),Le=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=t.color,u=void 0===i?"primary":i,s=t.component,l=void 0===s?"a":s,f=t.onBlur,h=t.onFocus,d=t.TypographyClasses,v=t.underline,y=void 0===v?"hover":v,m=t.variant,g=void 0===m?"inherit":m,x=Object(p.a)(t,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),w=de(),O=w.isFocusVisible,E=w.onBlurVisible,k=w.ref,j=o.useState(!1),M=j[0],S=j[1],_=b(e,k);return o.createElement(ee,Object(c.a)({className:Object(a.a)(n.root,n["underline".concat(Object(lt.a)(y))],r,M&&n.focusVisible,"button"===l&&n.button),classes:d,color:u,component:l,onBlur:function(t){M&&(E(),S(!1)),f&&f(t)},onFocus:function(t){O(t)&&S(!0),h&&h(t)},ref:_,variant:g},x))})),Be=Object(W.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(Le),ze=n("uniG"),Fe=n.n(ze),We=n("76vg"),Ge=n.n(We);var Ue="undefined"==typeof window?o.useEffect:o.useLayoutEffect,Ve=o.forwardRef((function(t,e){var n=t.alignItems,r=void 0===n?"center":n,i=t.autoFocus,u=void 0!==i&&i,s=t.button,l=void 0!==s&&s,f=t.children,d=t.classes,v=t.className,y=t.component,m=t.ContainerComponent,g=void 0===m?"li":m,x=t.ContainerProps,w=(x=void 0===x?{}:x).className,O=Object(p.a)(x,["className"]),E=t.dense,k=void 0!==E&&E,j=t.disabled,M=void 0!==j&&j,S=t.disableGutters,_=void 0!==S&&S,A=t.divider,T=void 0!==A&&A,P=t.focusVisibleClassName,C=t.selected,N=void 0!==C&&C,I=Object(p.a)(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=o.useContext(Zt),R={dense:k||D.dense||!1,alignItems:r},L=o.useRef(null);Ue((function(){u&&L.current&&L.current.focus()}),[u]);var B,z,F=o.Children.toArray(f),W=F.length&&(B=F[F.length-1],z=["ListItemSecondaryAction"],o.isValidElement(B)&&-1!==z.indexOf(B.type.muiName)),G=b(o.useCallback((function(t){L.current=h.findDOMNode(t)}),[]),e),U=Object(c.a)({className:Object(a.a)(d.root,v,R.dense&&d.dense,!_&&d.gutters,T&&d.divider,M&&d.disabled,l&&d.button,"center"!==r&&d.alignItemsFlexStart,W&&d.secondaryAction,N&&d.selected),disabled:M},I),V=y||"li";return l&&(U.component=y||"div",U.focusVisibleClassName=Object(a.a)(d.focusVisible,P),V=Se),W?(V=U.component||y?V:"div","li"===g&&("li"===V?V="div":"li"===U.component&&(U.component="div")),o.createElement(Zt.Provider,{value:R},o.createElement(g,Object(c.a)({className:Object(a.a)(d.container,w),ref:G},O),o.createElement(V,U,F),F.pop()))):o.createElement(Zt.Provider,{value:R},o.createElement(V,Object(c.a)({ref:G},U),F))})),He=Object(W.a)((function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Ve),Xe=o.forwardRef((function(t,e){var n=t.classes,r=t.className,i=Object(p.a)(t,["classes","className"]),u=o.useContext(Zt);return o.createElement("div",Object(c.a)({className:Object(a.a)(n.root,r,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:e},i))})),qe=Object(W.a)((function(t){return{root:{minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Xe),Ke=o.forwardRef((function(t,e){var n=t.children,r=t.classes,i=t.className,u=t.disableTypography,s=void 0!==u&&u,l=t.inset,f=void 0!==l&&l,h=t.primary,d=t.primaryTypographyProps,v=t.secondary,y=t.secondaryTypographyProps,m=Object(p.a)(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),g=o.useContext(Zt).dense,b=null!=h?h:n;null==b||b.type===ee||s||(b=o.createElement(ee,Object(c.a)({variant:g?"body2":"body1",className:r.primary,component:"span",display:"block"},d),b));var x=v;return null==x||x.type===ee||s||(x=o.createElement(ee,Object(c.a)({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},y),x)),o.createElement("div",Object(c.a)({className:Object(a.a)(r.root,i,g&&r.dense,f&&r.inset,b&&x&&r.multiline),ref:e},m),b,x)})),Ye=Object(W.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ke),Ze=n("Mtft"),$e=n.n(Ze);var Je=Object(W.a)((function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Object(c.a)({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(t){var e=t.children,n=t.classes,r=t.className,i=t.open,c=t.value,u=t.valueLabelDisplay;return"off"===u?e:o.cloneElement(e,{className:Object(a.a)(e.props.className,(i||"on"===u)&&n.open,n.thumb)},o.createElement("span",{className:Object(a.a)(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},c))))}));function Qe(t,e){return t-e}function tn(t,e,n){return Math.min(Math.max(e,t),n)}function en(t,e){return t.reduce((function(t,n,r){var o=Math.abs(e-n);return null===t||o<t.distance||o===t.distance?{distance:o,index:r}:t}),null).index}function nn(t,e){if(void 0!==e.current&&t.changedTouches){for(var n=0;n<t.changedTouches.length;n+=1){var r=t.changedTouches[n];if(r.identifier===e.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:t.clientX,y:t.clientY}}function rn(t,e,n){return 100*(t-e)/(n-e)}function on(t,e,n){var r=Math.round((t-n)/e)*e+n;return Number(r.toFixed(function(t){if(Math.abs(t)<1){var e=t.toExponential().split("e-"),n=e[0].split(".")[1];return(n?n.length:0)+parseInt(e[1],10)}var r=t.toString().split(".")[1];return r?r.length:0}(e)))}function an(t){var e=t.values,n=t.source,r=t.newValue,o=t.index;if(e[o]===r)return n;var i=e.slice();return i[o]=r,i}function cn(t){var e=t.sliderRef,n=t.activeIndex,r=t.setActive;e.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||e.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var un={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}},sn=function(t){return t},ln=o.forwardRef((function(t,e){var n=t["aria-label"],r=t["aria-labelledby"],i=t["aria-valuetext"],u=t.classes,s=t.className,l=t.color,f=void 0===l?"primary":l,h=t.component,d=void 0===h?"span":h,v=t.defaultValue,y=t.disabled,g=void 0!==y&&y,x=t.getAriaLabel,w=t.getAriaValueText,O=t.marks,E=void 0!==O&&O,j=t.max,M=void 0===j?100:j,S=t.min,A=void 0===S?0:S,T=t.name,P=t.onChange,C=t.onChangeCommitted,N=t.onMouseDown,I=t.orientation,D=void 0===I?"horizontal":I,R=t.scale,L=void 0===R?sn:R,B=t.step,z=void 0===B?1:B,F=t.ThumbComponent,W=void 0===F?"span":F,U=t.track,V=void 0===U?"normal":U,H=t.value,X=t.ValueLabelComponent,q=void 0===X?Je:X,K=t.valueLabelDisplay,Y=void 0===K?"off":K,Z=t.valueLabelFormat,J=void 0===Z?sn:Z,Q=Object(p.a)(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),tt=$(),et=o.useRef(),nt=o.useState(-1),rt=nt[0],ot=nt[1],it=o.useState(-1),at=it[0],ct=it[1],ut=function(t){var e=t.controlled,n=t.default,r=(t.name,t.state,o.useRef(void 0!==e).current),i=o.useState(n),a=i[0],c=i[1];return[r?e:a,o.useCallback((function(t){r||c(t)}),[])]}({controlled:H,default:v,name:"Slider"}),st=Object(G.a)(ut,2),ft=st[0],pt=st[1],ht=Array.isArray(ft),dt=ht?ft.slice().sort(Qe):[ft];dt=dt.map((function(t){return tn(t,A,M)}));var vt=!0===E&&null!==z?Object(_.a)(Array(Math.floor((M-A)/z)+1)).map((function(t,e){return{value:A+z*e}})):E||[],yt=de(),mt=yt.isFocusVisible,gt=yt.onBlurVisible,bt=yt.ref,xt=o.useState(-1),wt=xt[0],Ot=xt[1],Et=o.useRef(),kt=b(bt,Et),jt=b(e,kt),Mt=k((function(t){var e=Number(t.currentTarget.getAttribute("data-index"));mt(t)&&Ot(e),ct(e)})),St=k((function(){-1!==wt&&(Ot(-1),gt()),ct(-1)})),_t=k((function(t){var e=Number(t.currentTarget.getAttribute("data-index"));ct(e)})),At=k((function(){ct(-1)})),Tt="rtl"===tt.direction,Pt=k((function(t){var e,n=Number(t.currentTarget.getAttribute("data-index")),r=dt[n],o=(M-A)/10,i=vt.map((function(t){return t.value})),a=i.indexOf(r),c=Tt?"ArrowLeft":"ArrowRight",u=Tt?"ArrowRight":"ArrowLeft";switch(t.key){case"Home":e=A;break;case"End":e=M;break;case"PageUp":z&&(e=r+o);break;case"PageDown":z&&(e=r-o);break;case c:case"ArrowUp":e=z?r+z:i[a+1]||i[i.length-1];break;case u:case"ArrowDown":e=z?r-z:i[a-1]||i[0];break;default:return}if(t.preventDefault(),z&&(e=on(e,z,A)),e=tn(e,A,M),ht){var s=e;e=an({values:dt,source:ft,newValue:e,index:n}).sort(Qe),cn({sliderRef:Et,activeIndex:e.indexOf(s)})}pt(e),Ot(n),P&&P(t,e),C&&C(t,e)})),Ct=o.useRef(),Nt=D;Tt&&"vertical"!==D&&(Nt+="-reverse");var It=function(t){var e,n,r=t.finger,o=t.move,i=void 0!==o&&o,a=t.values,c=t.source,u=Et.current.getBoundingClientRect(),s=u.width,l=u.height,f=u.bottom,p=u.left;if(e=0===Nt.indexOf("vertical")?(f-r.y)/l:(r.x-p)/s,-1!==Nt.indexOf("-reverse")&&(e=1-e),n=function(t,e,n){return(n-e)*t+e}(e,A,M),z)n=on(n,z,A);else{var h=vt.map((function(t){return t.value}));n=h[en(h,n)]}n=tn(n,A,M);var d=0;if(ht){var v=n;d=(n=an({values:a,source:c,newValue:n,index:d=i?Ct.current:en(a,n)}).sort(Qe)).indexOf(v),Ct.current=d}return{newValue:n,activeIndex:d}},Dt=k((function(t){var e=nn(t,et);if(e){var n=It({finger:e,move:!0,values:dt,source:ft}),r=n.newValue,o=n.activeIndex;cn({sliderRef:Et,activeIndex:o,setActive:ot}),pt(r),P&&P(t,r)}})),Rt=k((function(t){var e=nn(t,et);if(e){var n=It({finger:e,values:dt,source:ft}).newValue;ot(-1),"touchend"===t.type&&ct(-1),C&&C(t,n),et.current=void 0;var r=m(Et.current);r.removeEventListener("mousemove",Dt),r.removeEventListener("mouseup",Rt),r.removeEventListener("touchmove",Dt),r.removeEventListener("touchend",Rt)}})),Lt=k((function(t){t.preventDefault();var e=t.changedTouches[0];null!=e&&(et.current=e.identifier);var n=nn(t,et),r=It({finger:n,values:dt,source:ft}),o=r.newValue,i=r.activeIndex;cn({sliderRef:Et,activeIndex:i,setActive:ot}),pt(o),P&&P(t,o);var a=m(Et.current);a.addEventListener("touchmove",Dt),a.addEventListener("touchend",Rt)}));o.useEffect((function(){var t=Et.current;t.addEventListener("touchstart",Lt);var e=m(t);return function(){t.removeEventListener("touchstart",Lt),e.removeEventListener("mousemove",Dt),e.removeEventListener("mouseup",Rt),e.removeEventListener("touchmove",Dt),e.removeEventListener("touchend",Rt)}}),[Rt,Dt,Lt]);var Bt=k((function(t){N&&N(t),t.preventDefault();var e=nn(t,et),n=It({finger:e,values:dt,source:ft}),r=n.newValue,o=n.activeIndex;cn({sliderRef:Et,activeIndex:o,setActive:ot}),pt(r),P&&P(t,r);var i=m(Et.current);i.addEventListener("mousemove",Dt),i.addEventListener("mouseup",Rt)})),zt=rn(ht?dt[0]:A,A,M),Ft=rn(dt[dt.length-1],A,M)-zt,Wt=Object(c.a)({},un[Nt].offset(zt),un[Nt].leap(Ft));return o.createElement(d,Object(c.a)({ref:jt,className:Object(a.a)(u.root,u["color".concat(Object(lt.a)(f))],s,g&&u.disabled,vt.length>0&&vt.some((function(t){return t.label}))&&u.marked,!1===V&&u.trackFalse,"vertical"===D&&u.vertical,"inverted"===V&&u.trackInverted),onMouseDown:Bt},Q),o.createElement("span",{className:u.rail}),o.createElement("span",{className:u.track,style:Wt}),o.createElement("input",{value:dt.join(","),name:T,type:"hidden"}),vt.map((function(t,e){var n,r=rn(t.value,A,M),i=un[Nt].offset(r);return n=!1===V?-1!==dt.indexOf(t.value):"normal"===V&&(ht?t.value>=dt[0]&&t.value<=dt[dt.length-1]:t.value<=dt[0])||"inverted"===V&&(ht?t.value<=dt[0]||t.value>=dt[dt.length-1]:t.value>=dt[0]),o.createElement(o.Fragment,{key:t.value},o.createElement("span",{style:i,"data-index":e,className:Object(a.a)(u.mark,n&&u.markActive)}),null!=t.label?o.createElement("span",{"aria-hidden":!0,"data-index":e,style:i,className:Object(a.a)(u.markLabel,n&&u.markLabelActive)},t.label):null)})),dt.map((function(t,e){var c=rn(t,A,M),s=un[Nt].offset(c);return o.createElement(q,{key:e,valueLabelFormat:J,valueLabelDisplay:Y,className:u.valueLabel,value:"function"==typeof J?J(L(t),e):J,index:e,open:at===e||rt===e||"on"===Y,disabled:g},o.createElement(W,{className:Object(a.a)(u.thumb,u["thumbColor".concat(Object(lt.a)(f))],rt===e&&u.active,g&&u.disabled,wt===e&&u.focusVisible),tabIndex:g?null:0,role:"slider",style:s,"data-index":e,"aria-label":x?x(e):n,"aria-labelledby":r,"aria-orientation":D,"aria-valuemax":L(M),"aria-valuemin":L(A),"aria-valuenow":L(t),"aria-valuetext":w?w(L(t),e):i,onKeyDown:Pt,onFocus:Mt,onBlur:St,onMouseOver:_t,onMouseLeave:At}))})))})),fn=Object(W.a)((function(t){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:t.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:t.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:t.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===t.palette.type?Object(ne.d)(t.palette.primary.main,.62):Object(ne.a)(t.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow"],{duration:t.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(ne.b)(t.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(ne.b)(t.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(ne.b)(t.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(ne.b)(t.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:t.palette.background.paper,opacity:.8},markLabel:Object(c.a)({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:t.palette.text.primary}}}),{name:"MuiSlider"})(ln),pn=l({root:{width:200}});function hn(){var t=pn(),e=i.a.useState(30),n=e[0],r=e[1];return i.a.createElement("div",{className:t.root},i.a.createElement(ee,{id:"continuous-slider",gutterBottom:!0},"Volume"),i.a.createElement(Re,{container:!0},i.a.createElement(Re,{item:!0,xs:!0},i.a.createElement(fn,{value:n,onChange:function(t,e){r(e)},"aria-labelledby":"continuous-slider"}))))}var dn=i.a.createElement("div",null,i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 1"}),i.a.createElement(hn,null)),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 2"})),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 3"})),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 4"})),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 5"})),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 6"})),i.a.createElement(He,{button:!0},i.a.createElement(qe,null,i.a.createElement($e.a,null)),i.a.createElement(Ye,{primary:"Category 7"})));function vn(t){return i.a.createElement(ee,{component:"h2",variant:"h6",color:"primary",gutterBottom:!0},t.children)}n("6hpn"),n("7sbD");if(!Object.setPrototypeOf&&!{}.__proto__){var yn=Object.getPrototypeOf;Object.getPrototypeOf=function(t){return t.__proto__?t.__proto__:yn.call(Object,t)}}var mn=n("sEfC"),gn=n.n(mn),bn=n("TSYQ"),xn=n.n(bn),wn=n("mdaS"),On=n.n(wn),En=n("mwIZ"),kn=n.n(En),jn=n("Z0cm"),Mn=n.n(jn),Sn=n("GODc"),_n=n.n(Sn),An=n("UB5X"),Tn=n.n(An),Pn=n("4qC0"),Cn=n.n(Pn),Nn=function(t){return 0===t?0:t>0?1:-1},In=function(t){return Cn()(t)&&t.indexOf("%")===t.length-1},Dn=function(t){return Tn()(t)&&!_n()(t)},Rn=function(t){return Dn(t)||Cn()(t)},Ln=0,Bn=function(t){var e=++Ln;return"".concat(t||"").concat(e)},zn=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Dn(t)&&!Cn()(t))return r;if(In(t)){var i=t.indexOf("%");n=e*parseFloat(t.slice(0,i))/100}else n=+t;return _n()(n)&&(n=r),o&&n>e&&(n=e),n},Fn=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Wn=function(t,e){return Dn(t)&&Dn(e)?function(n){return t+n*(e-t)}:function(){return e}},Gn=function(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):kn()(t,e))===n})):null};function Un(t){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hn(t,e){return!e||"object"!==Un(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xn(t){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qn(t,e){return(qn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Kn=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Hn(this,Xn(e).call(this,t))).updateDimensionsImmediate=function(){if(n.mounted){var t=n.getContainerSize();if(t){var e=n.state,r=e.containerWidth,o=e.containerHeight,i=t.containerWidth,a=t.containerHeight;i===r&&a===o||n.setState({containerWidth:i,containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=t.debounce>0?gn()(n.updateDimensionsImmediate,t.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qn(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.getContainerSize();t&&this.setState(t)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var t=this.state,e=t.containerWidth,n=t.containerHeight;if(e<0||n<0)return null;var r=this.props,o=r.aspect,a=r.width,c=r.height,u=(r.minWidth,r.minHeight,r.maxHeight),s=r.children;In(a)||In(c);var l=In(a)?e:a,f=In(c)?n:c;return o&&o>0&&(l?f=l/o:f&&(l=f*o),u&&f>u&&(f=u)),i.a.cloneElement(s,{width:l,height:f})}},{key:"render",value:function(){var t=this,e=this.props,n=e.minWidth,r=e.minHeight,o=e.width,a=e.height,c=e.maxHeight,u=e.id,s=e.className,l={width:o,height:a,minWidth:n,minHeight:r,maxHeight:c};return i.a.createElement("div",{id:u,className:xn()("recharts-responsive-container",s),style:l,ref:function(e){t.container=e}},this.renderChart(),i.a.createElement(On.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&Vn(n.prototype,r),o&&Vn(n,o),e}(o.Component);Kn.displayName="ResponsiveContainer",Kn.defaultProps={width:"100%",height:"100%",debounce:0};var Yn=Kn,Zn=n("Y+p1"),$n=n.n(Zn),Jn=n("YO3V"),Qn=n.n(Jn),tr=n("lSCD"),er=n.n(tr),nr=n("J2iB"),rr=n.n(nr),or=n("xEkU"),ir=n.n(or);function ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>e?(t(o),n=-1):ir()(r)};ir()(r)}function cr(t){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ur(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function sr(){var t=function(){return null},e=!1;return{stop:function(){e=!0},start:function(n){e=!1,function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var o=ur(r),i=o[0],a=o.slice(1);return"number"==typeof i?void ar(n.bind(null,a),i):(n(i),void ar(n.bind(null,a)))}"object"===cr(r)&&t(r),"function"==typeof r&&r()}}(n)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}var lr=n("0XPj"),fr=n.n(lr);function pr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){hr(t,e,n[e])}))}return t}function hr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dr=["Webkit","Moz","O","ms"],vr=["-webkit-","-moz-","-o-","-ms-"],yr=["transform","transformOrigin","transition"],mr=function(t){return t},gr=function(t,e){return Object.keys(e).reduce((function(n,r){return pr({},n,hr({},r,t(r,e[r])))}),{})},br=function(t){return Object.keys(t).reduce((function(t,e){return pr({},t,function(t,e){if(-1===yr.indexOf(t))return hr({},t,e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return dr.reduce((function(t,i,a){return n&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(vr[a],"$1"))),pr({},t,hr({},i+r,o))}),{})}(e,t[e]))}),t)},xr=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function wr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Or(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Er=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},kr=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},jr=function(t,e){return function(n){var r=Er(t,e);return kr(r,n)}},Mr=function(t,e){return function(n){var r=Or(Er(t,e).map((function(t,e){return t*e})).slice(1)).concat([0]);return kr(r,n)}},Sr=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),s=wr(u,4);r=s[0],o=s[1],i=s[2],a=s[3]}}[r,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l=jr(r,i),f=jr(o,a),p=Mr(r,i),h=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var o=l(n)-e,i=p(n);if(Math.abs(o-e)<1e-4||i<1e-4)return f(n);n=h(n-o/i)}return f(n)};return d.isStepper=!1,d},_r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,o=void 0===r?8:r,i=t.dt,a=void 0===i?17:i,c=function(t,e,r){var i=r+(-(t-e)*n-r*o)*a/1e3,c=r*a/1e3+t;return Math.abs(c-e)<1e-4&&Math.abs(i)<1e-4?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c},Ar=n("k4Da"),Tr=n.n(Ar);function Pr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Nr(t,e,n[e])}))}return t}function Nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ir(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Dr=function(t,e,n){return t+(e-t)*n},Rr=function(t){return t.from!==t.to},Lr=function(t,e,n,r,o){var i,a,c,u,s=(i=t,a=e,fr()(Object.keys(i),Object.keys(a))),l=s.reduce((function(n,r){return Cr({},n,Nr({},r,[t[r],e[r]]))}),{}),f=s.reduce((function(n,r){return Cr({},n,Nr({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),p=-1,h=function(){return null};return h=n.isStepper?function(r){c||(c=r);var i=(r-c)/n.dt;f=function t(e,n,r){var o=gr((function(t,n){if(Rr(n)){var r=Ir(e(n.from,n.to,n.velocity),2);return Cr({},n,{from:r[0],velocity:r[1]})}return n}),n);return r<1?gr((function(t,e){return Rr(e)?Cr({},e,{velocity:Dr(e.velocity,o[t].velocity,r),from:Dr(e.from,o[t].from,r)}):e}),n):t(e,o,r-1)}(n,f,i),o(Cr({},t,e,gr((function(t,e){return e.from}),f))),c=r,Tr()(f,Rr).length&&(p=ir()(h))}:function(i){u||(u=i);var a=(i-u)/r,c=gr((function(t,e){return Dr.apply(void 0,Pr(e).concat([n(a)]))}),l);if(o(Cr({},t,e,c)),a<1)p=ir()(h);else{var s=gr((function(t,e){return Dr.apply(void 0,Pr(e).concat([n(1)]))}),l);o(Cr({},t,e,s))}},function(){return ir()(h),function(){Object(or.cancel)(p)}}};function Br(t){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zr(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Fr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Gr(t,e,n[e])}))}return t}function Gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ur(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vr(t,e){return!e||"object"!==Br(e)&&"function"!=typeof e?qr(t):e}function Hr(t){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xr(t,e){return(Xr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kr=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=(r=Vr(this,Hr(e).call(this,t,n))).props,i=o.isActive,a=o.attributeName,c=o.from,u=o.to,s=o.steps,l=o.children;if(r.handleStyleChange=r.handleStyleChange.bind(qr(qr(r))),r.changeStyle=r.changeStyle.bind(qr(qr(r))),!i)return r.state={style:{}},"function"==typeof l&&(r.state={style:u}),Vr(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof l)return r.state={style:c},Vr(r);r.state={style:a?Gr({},a,c):c}}else r.state={style:{}};return r}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,o=e.attributeName,i=e.shouldReAnimate;if(r)if(n){if(!($n()(t.to,this.props.to)&&t.canBegin&&t.isActive)){var a=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=a||i?this.props.from:t.to;this.setState({style:o?Gr({},o,c):c}),this.runAnimation(Wr({},this.props,{from:c,begin:0}))}}else this.setState({style:o?Gr({},o,this.props.to):this.props.to})}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,s=Lr(n,r,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Sr(r);case"spring":return _r();default:if("cubic-bezier"===r.split("(")[0])return Sr(r)}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=s()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,o=t.onAnimationStart,i=n[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(Fr(n.reduce((function(t,r,o){if(0===o)return t;var i=r.duration,a=r.easing,c=void 0===a?"ease":a,u=r.style,s=r.properties,l=r.onAnimationEnd,f=o>0?n[o-1]:r,p=s||Object.keys(u);if("function"==typeof c||"spring"===c)return Fr(t).concat([e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=xr(p,i,c),d=Wr({},f.style,u,{transition:h});return Fr(t).concat([d,i,l]).filter(mr)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=sr());var e=t.begin,n=t.duration,r=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,s=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=r?Gr({},r,o):o,p=xr(Object.keys(f),n,i);l.start([a,e,Wr({},f,{transition:p}),n,c])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,zr(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=o.Children.count(e),c=br(this.state.style);if("function"==typeof e)return e(c);if(!n||0===a)return e;var u=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return Object(o.cloneElement)(t,Wr({},r,{style:Wr({},i,c),className:a}))};return 1===a?u(o.Children.only(e)):i.a.createElement("div",null,o.Children.map(e,(function(t){return u(t)})))}}])&&Ur(n.prototype,r),a&&Ur(n,a),e}(o.PureComponent);Kr.displayName="Animate",Kr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var Yr=Kr,Zr=n("dpRl");function $r(t){return($r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jr(){return(Jr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Qr(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function to(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function no(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ro(t,e){return!e||"object"!==$r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function oo(t){return(oo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function io(t,e){return(io=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ao=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Tn()(e.duration)&&e.duration>0?e.duration:0)}),0):Tn()(n)?n:0},co=function(t){function e(){var t,n;eo(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=ro(this,(t=oo(e)).call.apply(t,[this].concat(o)))).state={isActive:!1},n.handleEnter=function(t,e){var r=n.props,o=r.appearOptions,i=r.enterOptions;n.handleStyleActive(e?o:i)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&io(t,e)}(e,t),n=e,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){to(t,e,n[e])}))}return t}({},t,{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return ao(e)+ao(n)+ao(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=(e.appearOptions,e.enterOptions,e.leaveOptions,Qr(e,["children","appearOptions","enterOptions","leaveOptions"]));return i.a.createElement(Zr.Transition,Jr({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return i.a.createElement(Yr,t.state,o.Children.only(n))}))}}])&&no(n.prototype,r),a&&no(n,a),e}(o.Component);function uo(t){var e=t.component,n=t.children,r=t.appear,a=t.enter,c=t.leave;return i.a.createElement(Zr.TransitionGroup,{component:e},o.Children.map(n,(function(t,e){return i.a.createElement(co,{appearOptions:r,enterOptions:a,leaveOptions:c,key:"child-".concat(e)},t)})))}uo.defaultProps={component:"span"};var so=Yr;function lo(){return(lo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function fo(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var po=function(t){var e=t.children,n=t.className,r=fo(t,["children","className"]),o=xn()("recharts-layer",n);return i.a.createElement("g",lo({className:o},r),e)},ho=n("GoyQ"),vo=n.n(ho);function yo(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function mo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function go(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var bo={"aria-current":yt.a.string,"aria-details":yt.a.any,"aria-disabled":yt.a.any,"aria-hidden":yt.a.any,"aria-invalid":yt.a.any,"aria-keyshortcuts":yt.a.any,"aria-label":yt.a.any,"aria-roledescription":yt.a.any,"aria-autocomplete":yt.a.any,"aria-checked":yt.a.any,"aria-expanded":yt.a.any,"aria-haspopup":yt.a.any,"aria-level":yt.a.any,"aria-modal":yt.a.any,"aria-multiline":yt.a.any,"aria-multiselectable":yt.a.any,"aria-orientation":yt.a.any,"aria-placeholder":yt.a.any,"aria-pressed":yt.a.any,"aria-readonly":yt.a.any,"aria-required":yt.a.any,"aria-selected":yt.a.any,"aria-sort":yt.a.any,"aria-valuemax":yt.a.any,"aria-valuemin":yt.a.any,"aria-valuenow":yt.a.any,"aria-valuetext":yt.a.any,"aria-atomic":yt.a.any,"aria-busy":yt.a.any,"aria-live":yt.a.any,"aria-relevant":yt.a.any,"aria-dropeffect":yt.a.any,"aria-grabbed":yt.a.any,"aria-activedescendant":yt.a.any,"aria-colcount":yt.a.any,"aria-colindex":yt.a.any,"aria-colspan":yt.a.any,"aria-controls":yt.a.any,"aria-describedby":yt.a.any,"aria-errormessage":yt.a.any,"aria-flowto":yt.a.any,"aria-labelledby":yt.a.any,"aria-owns":yt.a.any,"aria-posinset":yt.a.any,"aria-rowcount":yt.a.any,"aria-rowindex":yt.a.any,"aria-rowspan":yt.a.any,"aria-setsize":yt.a.any,alignmentBaseline:yt.a.string,angle:yt.a.number,baselineShift:yt.a.string,clip:yt.a.string,clipPath:yt.a.string,clipRule:yt.a.string,color:yt.a.string,colorInterpolation:yt.a.string,colorInterpolationFilters:yt.a.string,colorProfile:yt.a.string,colorRendering:yt.a.string,cursor:yt.a.string,direction:yt.a.oneOf(["ltr","rtl","inherit"]),display:yt.a.string,dominantBaseline:yt.a.string,enableBackground:yt.a.string,fill:yt.a.string,fillOpacity:yt.a.oneOfType([yt.a.string,yt.a.number]),fillRule:yt.a.oneOf(["nonzero","evenodd","inherit"]),filter:yt.a.string,floodColor:yt.a.string,floodOpacity:yt.a.oneOfType([yt.a.string,yt.a.number]),font:yt.a.string,fontFamily:yt.a.string,fontSize:yt.a.oneOfType([yt.a.number,yt.a.string]),fontSizeAdjust:yt.a.oneOfType([yt.a.number,yt.a.string]),fontStretch:yt.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:yt.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:yt.a.oneOf(["normal","small-caps","inherit"]),fontWeight:yt.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:yt.a.string,glyphOrientationVertical:yt.a.string,imageRendering:yt.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:yt.a.oneOfType([yt.a.number,yt.a.string]),letterSpacing:yt.a.oneOfType([yt.a.number,yt.a.string]),lightingColor:yt.a.string,lineHeight:yt.a.oneOfType([yt.a.number,yt.a.string]),markerEnd:yt.a.string,markerMid:yt.a.string,markerStart:yt.a.string,mask:yt.a.string,opacity:yt.a.oneOfType([yt.a.number,yt.a.string]),overflow:yt.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:yt.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:yt.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:yt.a.string,stopOpacity:yt.a.oneOfType([yt.a.number,yt.a.string]),stroke:yt.a.oneOfType([yt.a.number,yt.a.string]),strokeDasharray:yt.a.string,strokeDashoffset:yt.a.oneOfType([yt.a.number,yt.a.string]),strokeLinecap:yt.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:yt.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:yt.a.oneOfType([yt.a.number,yt.a.string]),strokeOpacity:yt.a.oneOfType([yt.a.number,yt.a.string]),strokeWidth:yt.a.oneOfType([yt.a.number,yt.a.string]),textAnchor:yt.a.oneOf(["start","middle","end","inherit"]),textDecoration:yt.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:yt.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:yt.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:yt.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:yt.a.oneOfType([yt.a.number,yt.a.string]),writingMode:yt.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:yt.a.string,role:yt.a.string,focusable:yt.a.string,tabIndex:yt.a.string,style:yt.a.object,width:yt.a.number,height:yt.a.number,dx:yt.a.number,dy:yt.a.number,x:yt.a.number,y:yt.a.number,r:yt.a.number,radius:yt.a.oneOfType([yt.a.number,yt.a.array])},xo={onClick:yt.a.func,onMouseDown:yt.a.func,onMouseUp:yt.a.func,onMouseOver:yt.a.func,onMouseMove:yt.a.func,onMouseOut:yt.a.func,onMouseEnter:yt.a.func,onMouseLeave:yt.a.func,onTouchEnd:yt.a.func,onTouchMove:yt.a.func,onTouchStart:yt.a.func,onTouchCancel:yt.a.func},wo={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Oo=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Eo=function(t,e){var n=[],r=[];return r=Mn()(e)?e.map((function(t){return Oo(t)})):[Oo(e)],i.a.Children.forEach(t,(function(t){var e=t&&t.type&&(t.type.displayName||t.type.name);-1!==r.indexOf(e)&&n.push(t)})),n},ko=function(t,e){var n=Eo(t,e);return n&&n[0]},jo=function(t){if(!t||er()(t))return null;var e=i.a.isValidElement(t)?t.props:t;if(!vo()(e))return null;var n=null;for(var r in e)({}).hasOwnProperty.call(e,r)&&bo[r]&&(n||(n={}),n[r]=e[r]);return n},Mo=function(t,e){return function(n){return t(e,n),null}},So=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||er()(t))return null;var r=i.a.isValidElement(t)?t.props:t;if(!vo()(r))return null;var o=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&xo[a]&&(o||(o={}),o[a]=e||(n?Mo(r[a],r):r[a]));return o},_o=function(t,e,n){return function(r){return t(e,n,r),null}},Ao=function(t,e,n){if(!vo()(t))return null;var r=null;for(var o in t)({}).hasOwnProperty.call(t,o)&&xo[o]&&er()(t[o])&&(r||(r={}),r[o]=_o(t[o],e,n));return r},To=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Dn(n)||n<=0||!Dn(r)||r<=0)},Po=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},Co=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],No=function(t,e){if(rr()(t)&&rr()(e))return!0;if(!rr()(t)&&!rr()(e)){var n=t.props||{},r=n.children,o=go(n,["children"]),i=e.props||{},a=i.children,c=go(i,["children"]);return r&&a?yo(o,c)&&Io(r,a):!r&&!a&&yo(o,c)}return!1},Io=function t(e,n){if(e===n)return!0;if(o.Children.count(e)!==o.Children.count(n))return!1;var r=o.Children.count(e);if(0===r)return!0;if(1===r)return No(Mn()(e)?e[0]:e,Mn()(n)?n[0]:n);for(var i=0;i<r;i++){var a=e[i],c=n[i];if(Mn()(a)||Mn()(c)){if(!t(a,c))return!1}else if(!No(a,c))return!1}return!0},Do=function(t,e){var n=[],r={};return o.Children.forEach(t,(function(t,o){if(t&&function(t){return t&&t.type&&Cn()(t.type)&&Co.indexOf(t.type)>=0}(t))n.push(t);else if(t&&e[Oo(t.type)]){var i=Oo(t.type),a=e[i],c=a.handler,u=a.once;if(u&&!r[i]||!u){var s=c(t,i,o);Mn()(s)?n=[n].concat(mo(s)):n.push(s),r[i]=!0}}})),n},Ro=n("xweI"),Lo=n.n(Ro),Bo=n("q92V"),zo=n.n(Bo),Fo=n("AE40"),Wo=n.n(Fo),Go=n("6ajc"),Uo=n.n(Go),Vo=n("C9rL"),Ho=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Xo=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Ho(e(t),n)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)>0?o=i:r=i+1}return r}}};var qo=Xo(Ho),Ko=qo.right,Yo=(qo.left,Ko);var Zo=function(t){return null===t?NaN:+t},$o=Array.prototype,Jo=($o.slice,$o.map,function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}),Qo=Math.sqrt(50),ti=Math.sqrt(10),ei=Math.sqrt(2),ni=function(t,e,n){var r,o,i,a,c=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=ri(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),i=new Array(o=Math.ceil(e-t+1));++c<o;)i[c]=(t+c)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),i=new Array(o=Math.ceil(t-e+1));++c<o;)i[c]=(t-c)/a;return r&&i.reverse(),i};function ri(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Qo?10:i>=ti?5:i>=ei?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Qo?10:i>=ti?5:i>=ei?2:1)}function oi(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Qo?o*=10:i>=ti?o*=5:i>=ei&&(o*=2),e<t?-o:o}var ii=function(t,e,n){if(null==n&&(n=Zo),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}};function ai(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ci(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}function ui(){}function si(t,e){var n=new ui;if(t instanceof ui)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,o=-1,i=t.length;if(null==e)for(;++o<i;)n.set(o,t[o]);else for(;++o<i;)n.set(e(r=t[o],o,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}ui.prototype=si.prototype={constructor:ui,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var li=si;function fi(){}var pi=li.prototype;function hi(t,e){var n=new fi;if(t instanceof fi)t.each((function(t){n.add(t)}));else if(t){var r=-1,o=t.length;if(null==e)for(;++r<o;)n.add(t[r]);else for(;++r<o;)n.add(e(t[r],r,t))}return n}fi.prototype=hi.prototype={constructor:fi,has:pi.has,add:function(t){return this["$"+(t+="")]=t,this},remove:pi.remove,clear:pi.clear,values:pi.keys,size:pi.size,empty:pi.empty,each:pi.each};var di=Array.prototype,vi=di.map,yi=di.slice,mi={name:"implicit"};function gi(){var t=li(),e=[],n=[],r=mi;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==mi)return r;t.set(i,a=e.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=li();for(var r,i,a=-1,c=n.length;++a<c;)t.has(i=(r=n[a])+"")||t.set(i,e.push(r));return o},o.range=function(t){return arguments.length?(n=yi.call(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return gi(e,n).unknown(r)},ai.apply(o,arguments),o}function bi(){var t,e,n=gi().unknown(void 0),r=n.domain,o=n.range,i=[0,1],a=!1,c=0,u=0,s=.5;function l(){var n=r().length,l=i[1]<i[0],f=i[l-0],p=i[1-l];t=(p-f)/Math.max(1,n-c+2*u),a&&(t=Math.floor(t)),f+=(p-f-t*(n-c))*s,e=t*(1-c),a&&(f=Math.round(f),e=Math.round(e));var h=Jo(n).map((function(e){return f+t*e}));return o(l?h.reverse():h)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(i=[+t[0],+t[1]],l()):i.slice()},n.rangeRound=function(t){return i=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),l()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},n.copy=function(){return bi(r(),i).round(a).paddingInner(c).paddingOuter(u).align(s)},ai.apply(l(),arguments)}function xi(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return xi(e())},t}function wi(){return xi(bi.apply(null,arguments).paddingInner(1))}var Oi=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ei(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ki(){}var ji="\\s*([+-]?\\d+)\\s*",Mi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Si="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_i=/^#([0-9a-f]{3,8})$/,Ai=new RegExp("^rgb\\("+[ji,ji,ji]+"\\)$"),Ti=new RegExp("^rgb\\("+[Si,Si,Si]+"\\)$"),Pi=new RegExp("^rgba\\("+[ji,ji,ji,Mi]+"\\)$"),Ci=new RegExp("^rgba\\("+[Si,Si,Si,Mi]+"\\)$"),Ni=new RegExp("^hsl\\("+[Mi,Si,Si]+"\\)$"),Ii=new RegExp("^hsla\\("+[Mi,Si,Si,Mi]+"\\)$"),Di={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ri(){return this.rgb().formatHex()}function Li(){return this.rgb().formatRgb()}function Bi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=_i.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?zi(e):3===n?new Ui(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Fi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Fi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ai.exec(t))?new Ui(e[1],e[2],e[3],1):(e=Ti.exec(t))?new Ui(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pi.exec(t))?Fi(e[1],e[2],e[3],e[4]):(e=Ci.exec(t))?Fi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ni.exec(t))?qi(e[1],e[2]/100,e[3]/100,1):(e=Ii.exec(t))?qi(e[1],e[2]/100,e[3]/100,e[4]):Di.hasOwnProperty(t)?zi(Di[t]):"transparent"===t?new Ui(NaN,NaN,NaN,0):null}function zi(t){return new Ui(t>>16&255,t>>8&255,255&t,1)}function Fi(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ui(t,e,n,r)}function Wi(t){return t instanceof ki||(t=Bi(t)),t?new Ui((t=t.rgb()).r,t.g,t.b,t.opacity):new Ui}function Gi(t,e,n,r){return 1===arguments.length?Wi(t):new Ui(t,e,n,null==r?1:r)}function Ui(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Vi(){return"#"+Xi(this.r)+Xi(this.g)+Xi(this.b)}function Hi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function qi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yi(t,e,n,r)}function Ki(t){if(t instanceof Yi)return new Yi(t.h,t.s,t.l,t.opacity);if(t instanceof ki||(t=Bi(t)),!t)return new Yi;if(t instanceof Yi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(n-r)/c+6*(n<r):n===i?(r-e)/c+2:(e-n)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new Yi(a,c,u,t.opacity)}function Yi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Zi(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function $i(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}Oi(ki,Bi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ri,formatHex:Ri,formatHsl:function(){return Ki(this).formatHsl()},formatRgb:Li,toString:Li}),Oi(Ui,Gi,Ei(ki,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ui(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ui(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vi,formatHex:Vi,formatRgb:Hi,toString:Hi})),Oi(Yi,(function(t,e,n,r){return 1===arguments.length?Ki(t):new Yi(t,e,n,null==r?1:r)}),Ei(ki,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Yi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Yi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Ui(Zi(t>=240?t-240:t+120,o,r),Zi(t,o,r),Zi(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ji=function(t){return function(){return t}};function Qi(t,e){return function(n){return t+n*e}}function ta(t){return 1==(t=+t)?ea:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ji(isNaN(e)?n:e)}}function ea(t,e){var n=e-t;return n?Qi(t,n):Ji(isNaN(t)?e:t)}var na=function t(e){var n=ta(e);function r(t,e){var r=n((t=Gi(t)).r,(e=Gi(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ea(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ra(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(n=0;n<o;++n)r=Gi(e[n]),i[n]=r.r||0,a[n]=r.g||0,c[n]=r.b||0;return i=t(i),a=t(a),c=t(c),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=c(t),r+""}}}ra((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,c=r<e-1?t[r+2]:2*i-o;return $i((n-r/e)*e,a,o,i,c)}})),ra((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],c=t[(r+2)%e];return $i((n-r/e)*e,o,i,a,c)}}));var oa=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}};function ia(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function aa(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=ha(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}var ca=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},ua=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},sa=function(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=ha(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}},la=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fa=new RegExp(la.source,"g");var pa=function(t,e){var n,r,o,i=la.lastIndex=fa.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=la.exec(t))&&(r=fa.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:ua(n,r)})),i=fa.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)c[(n=u[r]).i]=n.x(t);return c.join("")})},ha=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ji(e):("number"===r?ua:"string"===r?(n=Bi(e))?(e=n,na):pa:e instanceof Bi?na:e instanceof Date?ca:ia(e)?oa:Array.isArray(e)?aa:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?sa:ua)(t,e)},da=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},va=function(t){return+t},ya=[0,1];function ma(t){return t}function ga(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function ba(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function xa(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=ga(o,r),i=n(a,i)):(r=ga(r,o),i=n(i,a)),function(t){return i(r(t))}}function wa(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=ga(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=Yo(t,e,1,r)-1;return i[n](o[n](e))}}function Oa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ea(){var t,e,n,r,o,i,a=ya,c=ya,u=ha,s=ma;function l(){return r=Math.min(a.length,c.length)>2?wa:xa,o=i=null,f}function f(e){return isNaN(e=+e)?n:(o||(o=r(a.map(t),c,u)))(t(s(e)))}return f.invert=function(n){return s(e((i||(i=r(c,a.map(t),ua)))(n)))},f.domain=function(t){return arguments.length?(a=vi.call(t,va),s===ma||(s=ba(a)),l()):a.slice()},f.range=function(t){return arguments.length?(c=yi.call(t),l()):c.slice()},f.rangeRound=function(t){return c=yi.call(t),u=da,l()},f.clamp=function(t){return arguments.length?(s=t?ba(a):ma,f):s!==ma},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function ka(t,e){return Ea()(t,e)}var ja=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ma(t){if(!(e=ja.exec(t)))throw new Error("invalid format: "+t);var e;return new Sa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Sa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ma.prototype=Sa.prototype,Sa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function _a(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}var Aa,Ta,Pa,Ca,Na=function(t){return(t=_a(Math.abs(t)))?t[1]:NaN},Ia=function(t,e){var n=_a(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Da={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ia(100*t,e)},r:Ia,s:function(t,e){var n=_a(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Aa=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+_a(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ra=function(t){return t},La=Array.prototype.map,Ba=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ta=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ra:(e=La.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Ra:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(La.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Ma(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,v=t.comma,y=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):Da[g]||(void 0===y&&(y=12),m=!0,g="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?u:"",w=Da[g],O=/[defgprs%]/.test(g);function E(t){var o,i,u,p=b,E=x;if("c"===g)E=w(t)+E,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),p=(k?"("===f?f:s:"-"===f||"("===f?"":f)+p,E=("s"===g?Ba[8+Aa/3]:"")+E+(k&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){E=(46===u?a+t.slice(o+1):t.slice(o))+E,t=t.slice(0,o);break}}v&&!h&&(t=r(t,1/0));var j=p.length+t.length+E.length,M=j<d?new Array(d-j+1).join(e):"";switch(v&&h&&(t=r(M+t,M.length?d-E.length:1/0),M=""),n){case"<":t=p+t+E+M;break;case"=":t=p+M+t+E;break;case"^":t=M.slice(0,j=M.length>>1)+p+t+E+M.slice(j);break;default:t=M+p+t+E}return c(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),E.toString=function(){return t+""},E}return{format:f,formatPrefix:function(t,e){var n=f(((t=Ma(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Na(e)/3))),o=Math.pow(10,-r),i=Ba[8+r/3];return function(t){return n(o*t)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Pa=Ta.format,Ca=Ta.formatPrefix;var za=function(t,e,n,r){var o,i=oi(t,e,n);switch((r=Ma(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Na(e)/3)))-Na(Math.abs(t)))}(i,a))||(r.precision=o),Ca(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Na(e)-Na(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Na(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Pa(r)};function Fa(t){var e=t.domain;return t.ticks=function(t){var n=e();return ni(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return za(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o=e(),i=0,a=o.length-1,c=o[i],u=o[a];return u<c&&(r=c,c=u,u=r,r=i,i=a,a=r),(r=ri(c,u,n))>0?r=ri(c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=ri(c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r,n)),r>0?(o[i]=Math.floor(c/r)*r,o[a]=Math.ceil(u/r)*r,e(o)):r<0&&(o[i]=Math.ceil(c*r)/r,o[a]=Math.floor(u*r)/r,e(o)),t},t}function Wa(){var t=ka(ma,ma);return t.copy=function(){return Oa(t,Wa())},ai.apply(t,arguments),Fa(t)}function Ga(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=vi.call(e,va),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Ga(t).unknown(e)},t=arguments.length?vi.call(t,va):[0,1],Fa(n)}var Ua=function(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t};function Va(t){return Math.log(t)}function Ha(t){return Math.exp(t)}function Xa(t){return-Math.log(-t)}function qa(t){return-Math.exp(-t)}function Ka(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ya(t){return function(e){return-t(-e)}}function Za(t){var e,n,r=t(Va,Ha),o=r.domain,i=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(i),n=function(t){return 10===t?Ka:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(i),o()[0]<0?(e=Ya(e),n=Ya(n),t(Xa,qa)):t(Va,Ha),r}return r.base=function(t){return arguments.length?(i=+t,a()):i},r.domain=function(t){return arguments.length?(o(t),a()):o()},r.ticks=function(t){var r,a=o(),c=a[0],u=a[a.length-1];(r=u<c)&&(p=c,c=u,u=p);var s,l,f,p=e(c),h=e(u),d=null==t?10:+t,v=[];if(!(i%1)&&h-p<d){if(p=Math.round(p)-1,h=Math.round(h)+1,c>0){for(;p<h;++p)for(l=1,s=n(p);l<i;++l)if(!((f=s*l)<c)){if(f>u)break;v.push(f)}}else for(;p<h;++p)for(l=i-1,s=n(p);l>=1;--l)if(!((f=s*l)<c)){if(f>u)break;v.push(f)}}else v=ni(p,h,Math.min(h-p,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Pa(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,i*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*i<i-.5&&(r*=i),r<=a?o(t):""}},r.nice=function(){return o(Ua(o(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function $a(){var t=Za(Ea()).domain([1,10]);return t.copy=function(){return Oa(t,$a()).base(t.base())},ai.apply(t,arguments),t}function Ja(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Qa(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tc(t){var e=1,n=t(Ja(e),Qa(e));return n.constant=function(n){return arguments.length?t(Ja(e=+n),Qa(e)):e},Fa(n)}function ec(){var t=tc(Ea());return t.copy=function(){return Oa(t,ec()).constant(t.constant())},ai.apply(t,arguments)}function nc(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function rc(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function oc(t){return t<0?-t*t:t*t}function ic(t){var e=t(ma,ma),n=1;function r(){return 1===n?t(ma,ma):.5===n?t(rc,oc):t(nc(n),nc(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},Fa(e)}function ac(){var t=ic(Ea());return t.copy=function(){return Oa(t,ac()).exponent(t.exponent())},ai.apply(t,arguments),t}function cc(){return ac.apply(null,arguments).exponent(.5)}function uc(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=ii(e,t/o);return i}function i(e){return isNaN(e=+e)?t:n[Yo(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,i=t.length;r<i;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(Ho),o()},i.range=function(t){return arguments.length?(n=yi.call(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return uc().domain(e).range(n).unknown(t)},ai.apply(i,arguments)}function sc(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return e<=e?i[Yo(o,e,0,r)]:t}function c(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],c()):[e,n]},a.range=function(t){return arguments.length?(r=(i=yi.call(t)).length-1,c()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return sc().domain([e,n]).range(i).unknown(t)},ai.apply(Fa(a),arguments)}function lc(){var t,e=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Yo(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=yi.call(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=yi.call(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return lc().domain(e).range(n).unknown(t)},ai.apply(o,arguments)}var fc=new Date,pc=new Date;function hc(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,c=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return c;do{c.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return c},o.filter=function(n){return hc((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return fc.setTime(+e),pc.setTime(+r),t(fc),t(pc),Math.floor(n(fc,pc))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var dc=hc((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));dc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hc((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var vc=dc,yc=(dc.range,hc((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),mc=yc;yc.range;function gc(t){return hc((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var bc=gc(0),xc=gc(1),wc=gc(2),Oc=gc(3),Ec=gc(4),kc=gc(5),jc=gc(6),Mc=(bc.range,xc.range,wc.range,Oc.range,Ec.range,kc.range,jc.range,hc((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),Sc=Mc,_c=(Mc.range,hc((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),Ac=_c,Tc=(_c.range,hc((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),Pc=Tc,Cc=(Tc.range,hc((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),Nc=Cc,Ic=(Cc.range,hc((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Ic.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hc((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ic:null};var Dc=Ic;Ic.range;function Rc(t){return hc((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var Lc=Rc(0),Bc=Rc(1),zc=Rc(2),Fc=Rc(3),Wc=Rc(4),Gc=Rc(5),Uc=Rc(6),Vc=(Lc.range,Bc.range,zc.range,Fc.range,Wc.range,Gc.range,Uc.range,hc((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),Hc=Vc,Xc=(Vc.range,hc((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Xc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hc((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var qc=Xc;Xc.range;function Kc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Yc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Zc(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $c,Jc,Qc,tu={"-":"",_:" ",0:"0"},eu=/^\s*\d+/,nu=/^%/,ru=/[\\^$*+?|[\]().{}]/g;function ou(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function iu(t){return t.replace(ru,"\\$&")}function au(t){return new RegExp("^(?:"+t.map(iu).join("|")+")","i")}function cu(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function uu(t,e,n){var r=eu.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function su(t,e,n){var r=eu.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function lu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function fu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function pu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function hu(t,e,n){var r=eu.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function du(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function vu(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function yu(t,e,n){var r=eu.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function mu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function gu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function bu(t,e,n){var r=eu.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function xu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function wu(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ou(t,e,n){var r=eu.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Eu(t,e,n){var r=eu.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ku(t,e,n){var r=eu.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ju(t,e,n){var r=nu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Mu(t,e,n){var r=eu.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Su(t,e,n){var r=eu.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function _u(t,e){return ou(t.getDate(),e,2)}function Au(t,e){return ou(t.getHours(),e,2)}function Tu(t,e){return ou(t.getHours()%12||12,e,2)}function Pu(t,e){return ou(1+Sc.count(vc(t),t),e,3)}function Cu(t,e){return ou(t.getMilliseconds(),e,3)}function Nu(t,e){return Cu(t,e)+"000"}function Iu(t,e){return ou(t.getMonth()+1,e,2)}function Du(t,e){return ou(t.getMinutes(),e,2)}function Ru(t,e){return ou(t.getSeconds(),e,2)}function Lu(t){var e=t.getDay();return 0===e?7:e}function Bu(t,e){return ou(bc.count(vc(t)-1,t),e,2)}function zu(t){var e=t.getDay();return e>=4||0===e?Ec(t):Ec.ceil(t)}function Fu(t,e){return t=zu(t),ou(Ec.count(vc(t),t)+(4===vc(t).getDay()),e,2)}function Wu(t){return t.getDay()}function Gu(t,e){return ou(xc.count(vc(t)-1,t),e,2)}function Uu(t,e){return ou(t.getFullYear()%100,e,2)}function Vu(t,e){return ou((t=zu(t)).getFullYear()%100,e,2)}function Hu(t,e){return ou(t.getFullYear()%1e4,e,4)}function Xu(t,e){var n=t.getDay();return ou((t=n>=4||0===n?Ec(t):Ec.ceil(t)).getFullYear()%1e4,e,4)}function qu(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ou(e/60|0,"0",2)+ou(e%60,"0",2)}function Ku(t,e){return ou(t.getUTCDate(),e,2)}function Yu(t,e){return ou(t.getUTCHours(),e,2)}function Zu(t,e){return ou(t.getUTCHours()%12||12,e,2)}function $u(t,e){return ou(1+Hc.count(qc(t),t),e,3)}function Ju(t,e){return ou(t.getUTCMilliseconds(),e,3)}function Qu(t,e){return Ju(t,e)+"000"}function ts(t,e){return ou(t.getUTCMonth()+1,e,2)}function es(t,e){return ou(t.getUTCMinutes(),e,2)}function ns(t,e){return ou(t.getUTCSeconds(),e,2)}function rs(t){var e=t.getUTCDay();return 0===e?7:e}function os(t,e){return ou(Lc.count(qc(t)-1,t),e,2)}function is(t){var e=t.getUTCDay();return e>=4||0===e?Wc(t):Wc.ceil(t)}function as(t,e){return t=is(t),ou(Wc.count(qc(t),t)+(4===qc(t).getUTCDay()),e,2)}function cs(t){return t.getUTCDay()}function us(t,e){return ou(Bc.count(qc(t)-1,t),e,2)}function ss(t,e){return ou(t.getUTCFullYear()%100,e,2)}function ls(t,e){return ou((t=is(t)).getUTCFullYear()%100,e,2)}function fs(t,e){return ou(t.getUTCFullYear()%1e4,e,4)}function ps(t,e){var n=t.getUTCDay();return ou((t=n>=4||0===n?Wc(t):Wc.ceil(t)).getUTCFullYear()%1e4,e,4)}function hs(){return"+0000"}function ds(){return"%"}function vs(t){return+t}function ys(t){return Math.floor(+t/1e3)}!function(t){$c=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,s=au(o),l=cu(o),f=au(i),p=cu(i),h=au(a),d=cu(a),v=au(c),y=cu(c),m=au(u),g=cu(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:_u,e:_u,f:Nu,g:Vu,G:Xu,H:Au,I:Tu,j:Pu,L:Cu,m:Iu,M:Du,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:vs,s:ys,S:Ru,u:Lu,U:Bu,V:Fu,w:Wu,W:Gu,x:null,X:null,y:Uu,Y:Hu,Z:qu,"%":ds},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Ku,e:Ku,f:Qu,g:ls,G:ps,H:Yu,I:Zu,j:$u,L:Ju,m:ts,M:es,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:vs,s:ys,S:ns,u:rs,U:os,V:as,w:cs,W:us,x:null,X:null,y:ss,Y:fs,Z:hs,"%":ds},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:gu,e:gu,f:ku,g:du,G:hu,H:xu,I:xu,j:bu,L:Eu,m:mu,M:wu,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:yu,Q:Mu,s:Su,S:Ou,u:su,U:lu,V:fu,w:uu,W:pu,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:du,Y:hu,Z:vu,"%":ju};function O(t,e){return function(n){var r,o,i,a=[],c=-1,u=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++c<s;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=tu[r=t.charAt(++c)])?r=t.charAt(++c):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function E(t,e){return function(n){var r,o,i=Zc(1900,void 0,1);if(k(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Yc(Zc(i.y,0,1))).getUTCDay(),r=o>4||0===o?Bc.ceil(r):Bc(r),r=Hc.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Kc(Zc(i.y,0,1))).getDay(),r=o>4||0===o?xc.ceil(r):xc(r),r=Sc.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Yc(Zc(i.y,0,1)).getUTCDay():Kc(Zc(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Yc(i)):Kc(i)}}function k(t,e,n,r){for(var o,i,a=0,c=e.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in tu?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}(t),Jc=$c.format,$c.parse,Qc=$c.utcFormat,$c.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ms(t){return new Date(t)}function gs(t){return t instanceof Date?+t:+new Date(+t)}function bs(t,e,n,r,o,i,a,c,u){var s=ka(ma,ma),l=s.invert,f=s.domain,p=u(".%L"),h=u(":%S"),d=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),m=u("%b %d"),g=u("%B"),b=u("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function w(c){return(a(c)<c?p:i(c)<c?h:o(c)<c?d:r(c)<c?v:e(c)<c?n(c)<c?y:m:t(c)<c?g:b)(c)}function O(e,n,r,o){if(null==e&&(e=10),"number"==typeof e){var i=Math.abs(r-n)/e,a=Xo((function(t){return t[2]})).right(x,i);a===x.length?(o=oi(n/31536e6,r/31536e6,e),e=t):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],e=a[0]):(o=Math.max(oi(n,r,e),1),e=c)}return null==o?e:e.every(o)}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?f(vi.call(t,gs)):f().map(ms)},s.ticks=function(t,e){var n,r=f(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=O(t,o,i,e))?n.range(o,i+1):[],a?n.reverse():n},s.tickFormat=function(t,e){return null==e?w:u(e)},s.nice=function(t,e){var n=f();return(t=O(t,n[0],n[n.length-1],e))?f(Ua(n,t)):s},s.copy=function(){return Oa(s,bs(t,e,n,r,o,i,a,c,u))},s}var xs=function(){return ai.apply(bs(vc,mc,bc,Sc,Ac,Pc,Nc,Dc,Jc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},ws=hc((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Os=ws,Es=(ws.range,hc((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),ks=Es,js=(Es.range,hc((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()}))),Ms=js,Ss=(js.range,function(){return ai.apply(bs(qc,Os,Lc,Hc,ks,Ms,Nc,Dc,Qc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)});function _s(){var t,e,n,r,o,i=0,a=1,c=ma,u=!1;function s(e){return isNaN(e=+e)?o:c(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}return s.domain=function(o){return arguments.length?(t=r(i=+o[0]),e=r(a=+o[1]),n=t===e?0:1/(e-t),s):[i,a]},s.clamp=function(t){return arguments.length?(u=!!t,s):u},s.interpolator=function(t){return arguments.length?(c=t,s):c},s.unknown=function(t){return arguments.length?(o=t,s):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),s}}function As(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ts(){var t=Fa(_s()(ma));return t.copy=function(){return As(t,Ts())},ci.apply(t,arguments)}function Ps(){var t=Za(_s()).domain([1,10]);return t.copy=function(){return As(t,Ps()).base(t.base())},ci.apply(t,arguments)}function Cs(){var t=tc(_s());return t.copy=function(){return As(t,Cs()).constant(t.constant())},ci.apply(t,arguments)}function Ns(){var t=ic(_s());return t.copy=function(){return As(t,Ns()).exponent(t.exponent())},ci.apply(t,arguments)}function Is(){return Ns.apply(null,arguments).exponent(.5)}function Ds(){var t=[],e=ma;function n(n){if(!isNaN(n=+n))return e((Yo(t,n)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var r,o=0,i=e.length;o<i;++o)null==(r=e[o])||isNaN(r=+r)||t.push(r);return t.sort(Ho),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Ds(e).domain(t)},ci.apply(n,arguments)}function Rs(){var t,e,n,r,o,i,a,c=0,u=.5,s=1,l=ma,f=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(t<e?r:o),l(f?Math.max(0,Math.min(1,t)):t))}return p.domain=function(a){return arguments.length?(t=i(c=+a[0]),e=i(u=+a[1]),n=i(s=+a[2]),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),p):[c,u,s]},p.clamp=function(t){return arguments.length?(f=!!t,p):f},p.interpolator=function(t){return arguments.length?(l=t,p):l},p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return i=a,t=a(c),e=a(u),n=a(s),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),p}}function Ls(){var t=Fa(Rs()(ma));return t.copy=function(){return As(t,Ls())},ci.apply(t,arguments)}function Bs(){var t=Za(Rs()).domain([.1,1,10]);return t.copy=function(){return As(t,Bs()).base(t.base())},ci.apply(t,arguments)}function zs(){var t=tc(Rs());return t.copy=function(){return As(t,zs()).constant(t.constant())},ci.apply(t,arguments)}function Fs(){var t=ic(Rs());return t.copy=function(){return As(t,Fs()).exponent(t.exponent())},ci.apply(t,arguments)}function Ws(){return Fs.apply(null,arguments).exponent(.5)}var Gs=function(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},Us=Array.prototype.slice,Vs=function(t){return function(){return t}},Hs=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function Xs(t,e){return t[e]}function qs(t){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ks(){return(Ks=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ys(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zs(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function $s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qs(t,e){return!e||"object"!==qs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tl(t){return(tl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function el(t,e){return(el=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var nl=function(t){function e(){return $s(this,e),Qs(this,tl(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&el(t,e)}(e,t),n=e,(r=[{key:"renderErrorBars",value:function(){var t=this.props,e=t.offset,n=t.layout,r=t.width,o=t.dataKey,a=t.data,c=t.dataPointFormatter,u=t.xAxis,s=t.yAxis,l=Zs(t,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=jo(l);return a.map((function(t,a){var l,p,h,d,v,y,m,g,b,x,w,O,E=c(t,o),k=E.x,j=E.y,M=E.value,S=E.errorVal;if(!S)return null;if(Array.isArray(S)){var _=Ys(S,2);w=_[0],O=_[1]}else w=O=S;return"vertical"===n?(m=u.scale,p=j+e,h=m((l=M)-w),d=p+r,g={x1:v=m(l+O),y1:d,x2:v,y2:y=p-r},b={x1:h,y1:p,x2:v,y2:p},x={x1:h,y1:d,x2:h,y2:y}):"horizontal"===n&&(m=s.scale,h=(l=k+e)-r,v=l+r,d=m((p=M)-w),g={x1:h,y1:y=m(p+O),x2:v,y2:y},b={x1:l,y1:d,x2:l,y2:y},x={x1:h,y1:d,x2:v,y2:d}),i.a.createElement(po,Ks({className:"recharts-errorBar",key:"bar-".concat(a)},f),i.a.createElement("line",g),i.a.createElement("line",b),i.a.createElement("line",x))}))}},{key:"render",value:function(){return i.a.createElement(po,{className:"recharts-errorBars"},this.renderErrorBars())}}])&&Js(n.prototype,r),o&&Js(n,o),e}(o.Component);nl.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};var rl=nl,ol=n("qPyV"),il=n.n(ol);function al(){return(al=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function cl(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var ul=function(t){var e=t.children,n=t.width,r=t.height,o=t.viewBox,a=t.className,c=t.style,u=cl(t,["children","width","height","viewBox","className","style"]),s=o||{width:n,height:r,x:0,y:0},l=xn()("recharts-surface",a),f=jo(u);return i.a.createElement("svg",al({},f,{className:l,width:n,height:r,style:c,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height),version:"1.1"}),e)},sl=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),ll=2*sl;var fl={draw:function(t,e){var n=Math.sqrt(e/sl);t.moveTo(n,0),t.arc(0,0,n,0,ll)}},pl={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},hl=Math.sqrt(1/3),dl=2*hl,vl={draw:function(t,e){var n=Math.sqrt(e/dl),r=n*hl;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},yl={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},ml=Math.sin(sl/10)/Math.sin(7*sl/10),gl=Math.sin(ll/10)*ml,bl=-Math.cos(ll/10)*ml,xl={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=gl*n,o=bl*n;t.moveTo(0,-n),t.lineTo(r,o);for(var i=1;i<5;++i){var a=ll*i/5,c=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-c*n),t.lineTo(c*r-u*o,u*r+c*o)}t.closePath()}},wl=Math.sqrt(3),Ol={draw:function(t,e){var n=-Math.sqrt(e/(3*wl));t.moveTo(0,2*n),t.lineTo(-wl*n,-n),t.lineTo(wl*n,-n),t.closePath()}},El=Math.sqrt(3)/2,kl=1/Math.sqrt(12),jl=3*(kl/2+1),Ml={draw:function(t,e){var n=Math.sqrt(e/jl),r=n/2,o=n*kl,i=r,a=n*kl+n,c=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(-.5*r-El*o,El*r+-.5*o),t.lineTo(-.5*i-El*a,El*i+-.5*a),t.lineTo(-.5*c-El*u,El*c+-.5*u),t.lineTo(-.5*r+El*o,-.5*o-El*r),t.lineTo(-.5*i+El*a,-.5*a-El*i),t.lineTo(-.5*c+El*u,-.5*u-El*c),t.closePath()}},Sl=Math.PI,_l=2*Sl,Al=_l-1e-6;function Tl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Pl(){return new Tl}Tl.prototype=Pl.prototype={constructor:Tl,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,c=n-t,u=r-e,s=i-t,l=a-e,f=s*s+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(l*c-u*s)>1e-6&&o){var p=n-i,h=r-a,d=c*c+u*u,v=p*p+h*h,y=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((Sl-Math.acos((d+f-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*s)+","+(e+b*l)),this._+="A"+o+","+o+",0,0,"+ +(l*p>s*h)+","+(this._x1=t+x*c)+","+(this._y1=e+x*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,o,i){t=+t,e=+e,i=!!i;var a=(n=+n)*Math.cos(r),c=n*Math.sin(r),u=t+a,s=e+c,l=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%_l+_l),f>Al?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-c)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Sl)+","+l+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Cl=Pl;function Nl(t){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Il(){return(Il=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Dl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ll(t,e){return!e||"object"!==Nl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bl(t){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zl(t,e){return(zl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Fl={symbolCircle:fl,symbolCross:pl,symbolDiamond:vl,symbolSquare:yl,symbolStar:xl,symbolTriangle:Ol,symbolWye:Ml},Wl=Math.PI/180,Gl=function(t){function e(){return Dl(this,e),Ll(this,Bl(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zl(t,e)}(e,t),n=e,(r=[{key:"getPath",value:function(){var t=this.props,e=t.size,n=t.sizeType,r=t.type,o=function(t){var e="symbol".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return Fl[e]||fl}(r);return function(){var t=Vs(fl),e=Vs(64),n=null;function r(){var r;if(n||(n=r=Cl()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:Vs(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Vs(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}().type(o).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*Wl;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(e,n,r))()}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.cx,r=t.cy,o=t.size;return n===+n&&r===+r&&o===+o?i.a.createElement("path",Il({},jo(this.props),So(this.props),{className:xn()("recharts-symbols",e),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}])&&Rl(n.prototype,r),o&&Rl(n,o),e}(o.PureComponent);Gl.displayName="Symbols",Gl.defaultProps={type:"circle",size:64,sizeType:"area"};var Ul=Gl;function Vl(t){return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hl(){return(Hl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Xl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yl(t,e){return!e||"object"!==Vl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zl(t){return(Zl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $l(t,e){return($l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Jl=function(t){function e(){return ql(this,e),Yl(this,Zl(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$l(t,e)}(e,t),n=e,(r=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=t.inactive?e:t.color;return"plainline"===t.type?i.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"}):"line"===t.type?i.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n H").concat(32,"M").concat(32/3*2,",").concat(16,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"}):"rect"===t.type?i.a.createElement("path",{stroke:"none",fill:n,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):i.a.createElement(Ul,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,o=e.layout,a=e.formatter,c={x:0,y:0,width:32,height:32},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var o,l=e.formatter||a,f=xn()((Xl(o={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Xl(o,"inactive",e.inactive),o));return"none"===e.type?null:i.a.createElement("li",Hl({className:f,style:u,key:"legend-item-".concat(n)},Ao(t.props,e,n)),i.a.createElement(ul,{width:r,height:r,viewBox:c,style:s},t.renderIcon(e)),i.a.createElement("span",{className:"recharts-legend-item-text"},l?l(e.value,e,n):e.value))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return i.a.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])&&Kl(n.prototype,r),o&&Kl(n,o),e}(o.PureComponent);Jl.displayName="Legend",Jl.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var Ql=Jl;function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ef(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ef(n,!0).forEach((function(e){rf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ef(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function of(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function af(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cf(t,e){return!e||"object"!==tf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uf(t){return(uf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sf(t,e){return(sf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var lf=function(t){return t.value},ff=function(t,e){return!0===t?il()(e,lf):er()(t)?il()(e,t):e},pf=function(t){function e(){var t,n;of(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=cf(this,(t=uf(e)).call.apply(t,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sf(t,e)}(e,t),n=e,o=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&Dn(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;return e>=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,s=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),nf({},e,{},n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-e)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,o=e.height,a=e.wrapperStyle,c=e.paylodUniqBy,u=e.payload,s=nf({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a),{},a);return i.a.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(e){t.wrapperNode=e}},function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(Ql,e)}(n,nf({},this.props,{payload:ff(c,u)})))}}])&&af(n.prototype,r),o&&af(n,o),e}(o.PureComponent);pf.displayName="Legend",pf.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var hf=pf;function df(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vf(n,!0).forEach((function(e){mf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vf(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gf=function(t,e,n){return rr()(t)||rr()(e)?n:Rn(e)?kn()(t,e,n):er()(e)?e(t):n},bf=function(t,e,n,r){var o=Uo()(t,(function(t){return gf(t,e)}));if("number"===n){var i=o.filter((function(t){return Dn(t)||parseFloat(t,10)}));return i.length?[Wo()(i),zo()(i)]:[1/0,-1/0]}return(r?o.filter((function(t){return!rr()(t)})):o).map((function(t){return Rn(t)?t:""}))},xf=function(t){var e,n=t.type.displayName,r=t.props,o=r.stroke,i=r.fill;switch(n){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},wf=function(t){var e,n=t.children,r=t.formatedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=ko(n,hf);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,o=r.sectors||r.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:xf(e),value:o||r,payload:e.props}})),yf({},a.props,{},hf.getWithHeight(a,o),{payload:e,item:a})):null},Of=function(t,e,n,r){var o=e.props.children,i=Eo(o,rl).filter((function(t){var e=t.props.direction;return!(!rr()(e)&&!rr()(r))||r.indexOf(e)>=0}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=gf(e,n,0),o=Mn()(r)?[Wo()(r),zo()(r)]:[r,r],i=a.reduce((function(t,n){var r=gf(e,n,0),i=o[0]-Math.abs(Mn()(r)?r[0]:r),a=o[1]+Math.abs(Mn()(r)?r[1]:r);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Ef=function(t,e,n,r){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&Of(t,e,o)||bf(t,o,n,r)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)i[e[n]]||(i[e[n]]=!0,t.push(e[n]));return t}),[])},kf=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},jf=function(t,e,n){var r,o,i=t.map((function(t){return t.coordinate===e&&(r=!0),t.coordinate===n&&(o=!0),t.coordinate}));return r||i.push(e),o||i.push(n),i},Mf=function(t,e,n){if(!t)return null;var r=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c=(e||n)&&"category"===i&&r.bandwidth?r.bandwidth()/2:0;return c="angleAxis"===t.axisType?2*Nn(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:r(e)+c,value:t,offset:c}})):t.isCategorial&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t),value:t,index:e,offset:c}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+c,value:t,offset:c}})):r.domain().map((function(t,e){return{coordinate:r(t)+c,value:o?o[t]:t,index:e,offset:c}}))},Sf=function(t,e,n){var r;return er()(n)?r=n:er()(e)&&(r=e),er()(t)||r?function(e,n,o,i){er()(t)&&t(e,n,o,i),er()(r)&&r(e,n,o,i)}:null},_f=function(t,e){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:bi(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Wa(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0)?{scale:wi(),realScaleType:"point"}:"category"===o?{scale:bi(),realScaleType:"band"}:{scale:Wa(),realScaleType:"linear"};if(Cn()(n)){var c="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[c]||wi)(),realScaleType:r[c]?c:"point"}}return er()(n)?{scale:n}:{scale:wi(),realScaleType:"point"}},Af=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=t(e[0]),c=t(e[n-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[n-1]])}},Tf={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var o=0,i=0,a=0;a<e;++a){var c=_n()(t[a][n][1])?t[a][n][0]:t[a][n][1];c>=0?(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1]):(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}Gs(t,e)}},none:Gs,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,c=0;a<n;++a)c+=t[a][r][1]||0;o[r][1]+=o[r][0]=-c/2}Gs(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var c=0,u=0,s=0;c<o;++c){for(var l=t[e[c]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,s+=p*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=s/u)}n[a-1][1]+=n[a-1][0]=i,Gs(t,e)}}},Pf=function(t,e,n){var r=e.map((function(t){return t.props.dataKey}));return function(){var t=Vs([]),e=Hs,n=Gs,r=Xs;function o(o){var i,a,c=t.apply(this,arguments),u=o.length,s=c.length,l=new Array(s);for(i=0;i<s;++i){for(var f,p=c[i],h=l[i]=new Array(u),d=0;d<u;++d)h[d]=f=[0,+r(o[d],p,d,o)],f.data=o[d];h.key=p}for(i=0,a=e(l);i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Vs(Us.call(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:Vs(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Hs:"function"==typeof t?t:Vs(Us.call(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?Gs:t,o):n},o}().keys(r).value((function(t,e){return+gf(t,e,0)})).order(Hs).offset(Tf[n])(t)},Cf=function(t,e){var n=e.realScaleType,r=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=n||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain(),s=Object(Vo.getNiceTickValues)(u,o,a);return t.domain(function(t,e){return"number"===e?[Wo()(t),zo()(t)]:t}(s,r)),{niceTicks:s}}if(o&&"number"===r){var l=t.domain();return{niceTicks:Object(Vo.getTickValuesFixedDomain)(l,o,a)}}return null},Nf=function(t,e,n){return Object.keys(t).reduce((function(r,o){var i=t[o].stackedData.reduce((function(t,r){var o=r.slice(e,n+1).reduce((function(t,e){return[Wo()(e.concat([t[0]]).filter(Dn)),zo()(e.concat([t[1]]).filter(Dn))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},If=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Df=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rf=function(t,e,n){if(!Mn()(t))return e;var r=[];if(Dn(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(If.test(t[0])){var o=+If.exec(t[0])[1];r[0]=e[0]-o}else er()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(Dn(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(Df.test(t[1])){var i=+Df.exec(t[1])[1];r[1]=e[1]+i}else er()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Lf=function(t,e){if(t&&t.scale&&t.scale.bandwidth)return t.scale.bandwidth();if(t&&e&&e.length>=2){for(var n=Lo()(e,(function(t){return t.coordinate})),r=1/0,o=1,i=n.length;o<i;o++){var a=n[o],c=n[o-1];r=Math.min((a.coordinate||0)-(c.coordinate||0),r)}return r===1/0?0:r}return 0},Bf=function(t,e,n){return t&&t.length?$n()(t,kn()(n,"type.defaultProps.domain"))?e:t:e};function zf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zf(n,!0).forEach((function(e){Wf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zf(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Uf=Math.PI/180,Vf=function(t){return 180*t/Math.PI},Hf=function(t,e,n,r){return{x:t+Math.cos(-Uf*r)*n,y:e+Math.sin(-Uf*r)*n}},Xf=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(e-(n.top||0)-(n.bottom||0)))/2},qf=function(t,e){var n,r,o,i,a,c,u=t.x,s=t.y,l=e.cx,f=e.cy,p=(r={x:l,y:f},o=(n={x:u,y:s}).x,i=n.y,a=r.x,c=r.y,Math.sqrt(Math.pow(o-a,2)+Math.pow(i-c,2)));if(p<=0)return{radius:p};var h=(u-l)/p,d=Math.acos(h);return s>f&&(d=2*Math.PI-d),{radius:p,angle:Vf(d),angleInRadian:d}},Kf=function(t,e){var n=e.startAngle,r=e.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return t+360*Math.min(o,i)},Yf=function(t,e){var n=t.x,r=t.y,o=qf({x:n,y:r},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var s,l=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:e-360*i,endAngle:n-360*i}}(e),f=l.startAngle,p=l.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;s=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;s=h>=p&&h<=f}return s?Ff({},e,{radius:i,angle:Kf(h,e)}):null};function Zf(t){return(Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $f(){return($f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Jf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tp(t,e){return!e||"object"!==Zf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ep(t){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function np(t,e){return(np=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var rp=function(t){var e=t.cx,n=t.cy,r=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,s=c*(a?1:-1)+r,l=Math.asin(c/s)/Uf,f=u?o:o+i*l,p=u?o-i*l:o;return{center:Hf(e,n,s,f),circleTangency:Hf(e,n,r,f),lineTangency:Hf(e,n,s*Math.cos(l*Uf),p),theta:l}},op=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return Nn(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Hf(e,n,o,i),s=Hf(e,n,o,c),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(s.x,",").concat(s.y,"\n ");if(r>0){var f=Hf(e,n,r,i),p=Hf(e,n,r,c);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},ip=function(t){function e(){return Jf(this,e),tp(this,ep(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&np(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,l=t.endAngle,f=t.className;if(o<r||s===l)return null;var p,h=xn()("recharts-sector",f),d=o-r,v=zn(a,d,0,!0);return p=v>0&&Math.abs(s-l)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,s=t.endAngle,l=Nn(s-u),f=rp({cx:e,cy:n,radius:o,angle:u,sign:l,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,v=rp({cx:e,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i,cornerIsExternal:c}),y=v.circleTangency,m=v.lineTangency,g=v.theta,b=Math.abs(u-s)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):op({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:s});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=rp({cx:e,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,E=w.lineTangency,k=w.theta,j=rp({cx:e,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),M=j.circleTangency,S=j.lineTangency,_=j.theta,A=Math.abs(u-s)-k-_;if(A<0)return"".concat(x,"L").concat(e,",").concat(n,"Z");x+="L".concat(S.x,",").concat(S.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(e,",").concat(n,"Z");return x}({cx:e,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(v,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:s,endAngle:l}):op({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:l}),i.a.createElement("path",$f({},jo(this.props),So(this.props),{className:h,d:p}))}}])&&Qf(n.prototype,r),o&&Qf(n,o),e}(o.PureComponent);ip.displayName="Sector",ip.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var ap=ip,cp=function(){};function up(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function sp(t){this._context=t}sp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:up(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:up(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function lp(t){this._context=t}lp.prototype={areaStart:cp,areaEnd:cp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:up(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fp(t){this._context=t}fp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:up(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pp(t){this._context=t}pp.prototype={areaStart:cp,areaEnd:cp,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function hp(t){this._context=t}hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var dp=function(t){return new hp(t)};function vp(t){return t<0?-1:1}function yp(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),c=(i*o+a*r)/(r+o);return(vp(i)+vp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function mp(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function gp(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-r)/3;t._context.bezierCurveTo(r+c,o+c*e,i-c,a-c*n,i,a)}function bp(t){this._context=t}function xp(t){this._context=new wp(t)}function wp(t){this._context=t}function Op(t){this._context=t}function Ep(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gp(this,this._t0,mp(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gp(this,mp(this,n=yp(this,t,e)),n);break;default:gp(this,this._t0,n=yp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(xp.prototype=Object.create(bp.prototype)).point=function(t,e){bp.prototype.point.call(this,e,t)},wp.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},Op.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ep(t),o=Ep(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function kp(t,e){this._context=t,this._t=e}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};function jp(t){return t[0]}function Mp(t){return t[1]}var Sp=function(){var t=jp,e=Mp,n=Vs(!0),r=null,o=dp,i=null;function a(a){var c,u,s,l=a.length,f=!1;for(null==r&&(i=o(s=Cl())),c=0;c<=l;++c)!(c<l&&n(u=a[c],c,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+t(u,c,a),+e(u,c,a));if(s)return i=null,s+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:Vs(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Vs(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:Vs(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),a):o},a.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),a):r},a},_p=function(){var t=jp,e=null,n=Vs(0),r=Mp,o=Vs(!0),i=null,a=dp,c=null;function u(u){var s,l,f,p,h,d=u.length,v=!1,y=new Array(d),m=new Array(d);for(null==i&&(c=a(h=Cl())),s=0;s<=d;++s){if(!(s<d&&o(p=u[s],s,u))===v)if(v=!v)l=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=s-1;f>=l;--f)c.point(y[f],m[f]);c.lineEnd(),c.areaEnd()}v&&(y[s]=+t(p,s,u),m[s]=+n(p,s,u),c.point(e?+e(p,s,u):y[s],r?+r(p,s,u):m[s]))}if(h)return c=null,h+""||null}function s(){return Sp().defined(o).curve(a).context(i)}return u.x=function(n){return arguments.length?(t="function"==typeof n?n:Vs(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:Vs(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Vs(+t),u):e},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Vs(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"==typeof t?t:Vs(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Vs(+t),u):r},u.lineX0=u.lineY0=function(){return s().x(t).y(n)},u.lineY1=function(){return s().x(t).y(r)},u.lineX1=function(){return s().x(e).y(n)},u.defined=function(t){return arguments.length?(o="function"==typeof t?t:Vs(!!t),u):o},u.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),u):a},u.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),u):i},u};function Ap(t){return(Ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tp(){return(Tp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Pp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Np(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ip(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dp(t,e){return!e||"object"!==Ap(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rp(t){return(Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Lp(t,e){return(Lp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Bp={curveBasisClosed:function(t){return new lp(t)},curveBasisOpen:function(t){return new fp(t)},curveBasis:function(t){return new sp(t)},curveLinearClosed:function(t){return new pp(t)},curveLinear:dp,curveMonotoneX:function(t){return new bp(t)},curveMonotoneY:function(t){return new xp(t)},curveNatural:function(t){return new Op(t)},curveStep:function(t){return new kp(t,.5)},curveStepAfter:function(t){return new kp(t,1)},curveStepBefore:function(t){return new kp(t,0)}},zp=function(t){return t.x===+t.x&&t.y===+t.y},Fp=function(t){return t.x},Wp=function(t){return t.y},Gp=function(t){function e(){return Np(this,e),Dp(this,Rp(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lp(t,e)}(e,t),n=e,(r=[{key:"getPath",value:function(){var t,e=this.props,n=e.type,r=e.points,o=e.baseLine,i=e.layout,a=e.connectNulls,c=function(t,e){if(er()(t))return t;var n="curve".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return"curveMonotone"===n&&e?Bp["".concat(n).concat("vertical"===e?"Y":"X")]:Bp[n]||dp}(n,i),u=a?r.filter((function(t){return zp(t)})):r;if(Mn()(o)){var s=a?o.filter((function(t){return zp(t)})):o,l=u.map((function(t,e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pp(n,!0).forEach((function(e){Cp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pp(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{base:s[e]})}));return(t="vertical"===i?_p().y(Wp).x1(Fp).x0((function(t){return t.base.x})):_p().x(Fp).y1(Wp).y0((function(t){return t.base.y}))).defined(zp).curve(c),t(l)}return(t="vertical"===i&&Dn(o)?_p().y(Wp).x1(Fp).x0(o):Dn(o)?_p().x(Fp).y1(Wp).y0(o):Sp().x(Fp).y(Wp)).defined(zp).curve(c),t(u)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.points,r=t.path,o=t.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.a.createElement("path",Tp({},jo(this.props),So(this.props,null,!0),{className:xn()("recharts-curve",e),d:a,ref:o}))}}])&&Ip(n.prototype,r),o&&Ip(n,o),e}(o.PureComponent);Gp.displayName="Curve",Gp.defaultProps={type:"linear",points:[],connectNulls:!1};var Up=Gp,Vp=n("3BBL"),Hp=n.n(Vp);function Xp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xp(n,!0).forEach((function(e){Kp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xp(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yp(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Zp={widthCache:{},cacheCount:0},$p={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Jp=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Qp=function(t){return Object.keys(t).reduce((function(e,n){return"".concat(e).concat((i=n,i.split("").reduce((function(t,e){return e===e.toUpperCase()?[].concat(Yp(t),["-",e.toLowerCase()]):[].concat(Yp(t),[e])}),[]).join("")),":").concat((r=n,o=t[n],Jp.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},th=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Po())return{width:0,height:0};var n="".concat(t),r=Qp(e),o="".concat(n,"-").concat(r);if(Zp.widthCache[o])return Zp.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=qp({},$p,{},e);Object.keys(a).map((function(t){return i.style[t]=a[t],t})),i.textContent=n;var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Zp.widthCache[o]=u,++Zp.cacheCount>2e3&&(Zp.cacheCount=0,Zp.widthCache={}),u}catch(s){return{width:0,height:0}}};function eh(t){return(eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nh(){return(nh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function rh(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function oh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ih(t,e){return!e||"object"!==eh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ah(t){return(ah=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ch(t,e){return(ch=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var uh=/[ \f\n\r\t\v\u2028\u2029]+/,sh=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ih(this,ah(e).call(this,t))).getWordsWithoutCalculate=function(t){return[{words:rr()(t.children)?[]:t.children.toString().split(uh)}]},n.state={wordsByLines:n.getWordsByLines(t,!0)},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ch(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentDidUpdate",value:function(t){if(t.width!==this.props.width||t.scaleToFit!==this.props.scaleToFit||t.children!==this.props.children||t.style!==this.props.style){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(this.props,e)}}},{key:"updateWordsByLines",value:function(t,e){this.setState({wordsByLines:this.getWordsByLines(t,e)})}},{key:"getWordsByLines",value:function(t,e){if((t.width||t.scaleToFit)&&!Po()){if(e){var n=function(t){try{return{wordsWithComputedWidth:(rr()(t.children)?[]:t.children.toString().split(uh)).map((function(e){return{word:e,width:th(e,t.style).width}})),spaceWidth:th(" ",t.style).width}}catch(e){return null}}(t);if(!n)return this.getWordsWithoutCalculate(t);var r=n.wordsWithComputedWidth,o=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=o}return this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width)}return this.getWordsWithoutCalculate(t)}},{key:"calculateWordsByLines",value:function(t,e,n){var r=this.props.scaleToFit;return(t||[]).reduce((function(t,o){var i=o.word,a=o.width,c=t[t.length-1];if(c&&(null==n||r||c.width+a+e<n))c.words.push(i),c.width+=a+e;else{var u={words:[i],width:a};t.push(u)}return t}),[])}},{key:"render",value:function(){var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,o=t.verticalAnchor,a=t.scaleToFit,c=t.angle,u=t.lineHeight,s=t.capHeight,l=t.className,f=rh(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),p=this.state.wordsByLines;if(!Rn(f.x)||!Rn(f.y))return null;var h,d=f.x+(Dn(e)?e:0),v=f.y+(Dn(n)?n:0);switch(o){case"start":h=Hp()("calc(".concat(s,")"));break;case"middle":h=Hp()("calc(".concat((p.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:h=Hp()("calc(".concat(p.length-1," * -").concat(u,")"))}var y=[];if(a){var m=p[0].width;y.push("scale(".concat(this.props.width/m,")"))}return c&&y.push("rotate(".concat(c,", ").concat(d,", ").concat(v,")")),y.length&&(f.transform=y.join(" ")),i.a.createElement("text",nh({},jo(f),So(f),{x:d,y:v,className:xn()("recharts-text",l),textAnchor:r}),p.map((function(t,e){return i.a.createElement("tspan",{x:d,dy:0===e?h:u,key:e},t.words.join(" "))})))}}])&&oh(n.prototype,r),o&&oh(n,o),e}(o.Component);sh.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var lh=sh;function fh(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ph(){return(ph=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var hh=function(t,e,n){var r,o,a=t.position,c=t.viewBox,u=t.offset,s=t.className,l=c.cx,f=c.cy,p=c.innerRadius,h=c.outerRadius,d=c.startAngle,v=c.endAngle,y=c.clockWise,m=(p+h)/2,g=function(t,e){return Nn(e-t)*Math.min(Math.abs(e-t),360)}(d,v),b=g>=0?1:-1;"insideStart"===a?(r=d+b*u,o=y):"insideEnd"===a?(r=v-b*u,o=!y):"end"===a&&(r=v+b*u,o=y),o=g<=0?o:!o;var x=Hf(l,f,m,r),w=Hf(l,f,m,r+359*(o?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(w.x,",").concat(w.y),E=rr()(t.id)?Bn("recharts-radial-line-"):t.id;return i.a.createElement("text",ph({},n,{dominantBaseline:"central",className:xn()("recharts-radial-bar-label",s)}),i.a.createElement("defs",null,i.a.createElement("path",{id:E,d:O})),i.a.createElement("textPath",{xlinkHref:"#".concat(E)},e))};function dh(t){var e,n=t.viewBox,r=t.position,a=t.value,c=t.children,u=t.content,s=t.className,l=void 0===s?"":s;if(!n||rr()(a)&&rr()(c)&&!Object(o.isValidElement)(u)&&!er()(u))return null;if(Object(o.isValidElement)(u))return Object(o.cloneElement)(u,t);if(er()(u)){if(e=u(t),Object(o.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=rr()(t.children)?e:t.children;return er()(n)?n(r):r}(t);var f=function(t){return Dn(t.cx)}(n),p=jo(t),h=So(t);if(f&&("insideStart"===r||"insideEnd"===r||"end"===r))return hh(t,e,p);var d=f?function(t){var e=t.viewBox,n=t.offset,r=t.position,o=e.cx,i=e.cy,a=e.innerRadius,c=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===r){var s=Hf(o,i,c+n,u),l=s.x;return{x:l,y:s.y,textAnchor:l>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=Hf(o,i,(a+c)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.offset,r=t.position,o=e.x,i=e.y,a=e.width,c=e.height,u=c>=0?1:-1;return"top"===r?{x:o+a/2,y:i-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+c+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+c/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+c/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+c/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+c-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+c-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+c-u*n,textAnchor:"end",verticalAnchor:"end"}:vo()(r)&&(Dn(r.x)||In(r.x))&&(Dn(r.y)||In(r.y))?{x:o+zn(r.x,a),y:i+zn(r.y,c),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+c/2,textAnchor:"middle",verticalAnchor:"middle"}}(t);return i.a.createElement(lh,ph({className:xn()("recharts-label",l)},p,d,h),e)}dh.displayName="Label",dh.defaultProps={offset:5};var vh=function(t){var e=t.cx,n=t.cy,r=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,s=t.outerRadius,l=t.x,f=t.y,p=t.top,h=t.left,d=t.width,v=t.height,y=t.clockWise;if(Dn(d)&&Dn(v)){if(Dn(l)&&Dn(f))return{x:l,y:f,width:d,height:v};if(Dn(p)&&Dn(h))return{x:p,y:h,width:d,height:v}}return Dn(l)&&Dn(f)?{x:l,y:f,width:0,height:0}:Dn(e)&&Dn(n)?{cx:e,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||c||a||0,clockWise:y}:t.viewBox?t.viewBox:{}},yh=function(t,e){return t?!0===t?i.a.createElement(dh,{key:"label-implicit",viewBox:e}):Rn(t)?i.a.createElement(dh,{key:"label-implicit",viewBox:e,value:t}):Object(o.isValidElement)(t)?t.type===dh?Object(o.cloneElement)(t,{key:"label-implicit",viewBox:e}):i.a.createElement(dh,{key:"label-implicit",content:t,viewBox:e}):er()(t)?i.a.createElement(dh,{key:"label-implicit",content:t,viewBox:e}):vo()(t)?i.a.createElement(dh,ph({viewBox:e},t,{key:"label-implicit"})):null:null};dh.parseViewBox=vh,dh.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=vh(t),a=Eo(r,dh).map((function(t,n){return Object(o.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return a;var c=yh(t.label,e||i);return[c].concat(fh(a))};var mh=dh,gh=n("RBan"),bh=n.n(gh);function xh(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function wh(){return(wh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Oh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Eh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oh(n,!0).forEach((function(e){kh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oh(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jh(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Mh={valueAccessor:function(t){return Mn()(t.value)?bh()(t.value):t.value}};function Sh(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,o=t.clockWise,a=t.id,c=jh(t,["data","valueAccessor","dataKey","clockWise","id"]);return e&&e.length?i.a.createElement(po,{className:"recharts-label-list"},e.map((function(t,e){var u=rr()(r)?n(t,e):gf(t&&t.payload,r),s=rr()(a)?{}:{id:"".concat(a,"-").concat(e)};return i.a.createElement(mh,wh({},jo(t),c,s,{index:e,value:u,viewBox:mh.parseViewBox(rr()(o)?t:Eh({},t,{clockWise:o})),key:"label-".concat(e)}))}))):null}Sh.displayName="LabelList";var _h=function(t,e){return t?!0===t?i.a.createElement(Sh,{key:"labelList-implicit",data:e}):i.a.isValidElement(t)||er()(t)?i.a.createElement(Sh,{key:"labelList-implicit",data:e,content:t}):vo()(t)?i.a.createElement(Sh,wh({data:e},t,{key:"labelList-implicit"})):null:null};Sh.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=Eo(r,Sh).map((function(t,n){return Object(o.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return i;var a=_h(t.label,e);return[a].concat(xh(i))},Sh.defaultProps=Mh;var Ah=Sh;function Th(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ph(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ch(){return null}Ch.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Th(n,!0).forEach((function(e){Ph(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Th(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},bo),Ch.displayName="Cell";var Nh=Ch;function Ih(t){return(Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dh(){return(Dh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rh(n,!0).forEach((function(e){Bh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rh(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wh(t,e){return!e||"object"!==Ih(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gh(t){return(Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Uh(t,e){return(Uh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Vh=function(t){function e(){var t,n;zh(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Wh(this,(t=Gh(e)).call.apply(t,[this].concat(o)))).state={isAnimationFinished:!1},n.id=Bn("recharts-pie-"),n.cachePrevData=function(t){n.setState({prevSectors:t})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),er()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),er()(t)&&t()},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uh(t,e)}(e,t),n=e,o=[{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(Up,Dh({},e,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,e,n){if(i.a.isValidElement(t))return i.a.cloneElement(t,e);var r=n;return er()(t)&&(r=t(e),i.a.isValidElement(r))?r:i.a.createElement(lh,Dh({},e,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):Qn()(t)?i.a.createElement(ap,Dh({},e,t)):i.a.createElement(ap,e)}}],(r=[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.sectors;t.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):t.animationId!==n&&this.cachePrevData(r)}},{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderLabels",value:function(t){var e=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,a=n.dataKey,c=n.valueKey,u=jo(this.props),s=jo(r),l=jo(o),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,h=Hf(t.cx,t.cy,t.outerRadius+f,p),d=Lh({},u,{},t,{stroke:"none"},s,{index:n,textAnchor:e.constructor.getTextAnchor(h.x,t.cx)},h),v=Lh({},u,{},t,{fill:"none",stroke:t.fill},l,{index:n,points:[Hf(t.cx,t.cy,t.outerRadius,p),h],key:"line"}),y=a;return rr()(a)&&rr()(c)?y="value":rr()(a)&&(y=c),i.a.createElement(po,{key:"label-".concat(n)},o&&e.constructor.renderLabelLineItem(o,v),e.constructor.renderLabelItem(r,d,gf(t,y)))}));return i.a.createElement(po,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,r=n.activeShape,o=n.blendStroke;return t.map((function(t,n){var a=e.isActiveIndex(n)?r:null,c=Lh({},t,{stroke:o?t.fill:t.stroke});return i.a.createElement(po,Dh({className:"recharts-pie-sector"},Ao(e.props,t,n),{key:"sector-".concat(n)}),e.constructor.renderSectorItem(a,c))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.sectors,r=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,s=this.state.prevSectors;return i.a.createElement(so,{begin:o,duration:a,isActive:r,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var r=e.t,o=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var n=s&&s[e],i=e>0?kn()(t,"paddingAngle",0):0;if(n){var c=Wn(n.endAngle-n.startAngle,t.endAngle-t.startAngle),u=Lh({},t,{startAngle:a+i,endAngle:a+c(r)+i});o.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=Wn(0,l-f)(r),h=Lh({},t,{startAngle:a+i,endAngle:a+p+i});o.push(h),a=h.endAngle}})),i.a.createElement(po,null,t.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,n=t.isAnimationActive,r=this.state.prevSectors;return!(n&&e&&e.length)||r&&$n()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.sectors,r=t.className,o=t.label,a=t.cx,c=t.cy,u=t.innerRadius,s=t.outerRadius,l=t.isAnimationActive,f=t.prevSectors;if(e||!n||!n.length||!Dn(a)||!Dn(c)||!Dn(u)||!Dn(s))return null;var p=xn()("recharts-pie",r);return i.a.createElement(po,{className:p},this.renderSectors(),o&&this.renderLabels(n),mh.renderCallByParent(this.props,null,!1),(!l||f&&$n()(f,n))&&Ah.renderCallByParent(this.props,n,!1))}}])&&Fh(n.prototype,r),o&&Fh(n,o),e}(o.PureComponent);Vh.displayName="Pie",Vh.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Po(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},Vh.parseDeltaAngle=function(t){var e=t.startAngle,n=t.endAngle;return Nn(n-e)*Math.min(Math.abs(n-e),360)},Vh.getRealPieData=function(t){var e=t.props,n=e.data,r=e.children,o=jo(t.props),i=Eo(r,Nh);return n&&n.length?n.map((function(t,e){return Lh({payload:t},o,{},t,{},i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return Lh({},o,{},t.props)})):[]},Vh.parseCoordinateOfPie=function(t,e){var n=e.top,r=e.left,o=e.width,i=e.height,a=Xf(o,i);return{cx:r+zn(t.props.cx,o,o/2),cy:n+zn(t.props.cy,i,i/2),innerRadius:zn(t.props.innerRadius,a,0),outerRadius:zn(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}},Vh.getComposedData=function(t){var e=t.item,n=t.offset,r=t.onItemMouseLeave,o=t.onItemMouseEnter,i=Vh.getRealPieData(e);if(!i||!i.length)return[];var a=e.props,c=a.cornerRadius,u=a.startAngle,s=a.endAngle,l=a.paddingAngle,f=a.dataKey,p=a.nameKey,h=a.valueKey,d=a.tooltipType,v=Math.abs(e.props.minAngle),y=Vh.parseCoordinateOfPie(e,n),m=i.length,g=Vh.parseDeltaAngle({startAngle:u,endAngle:s}),b=Math.abs(g),x=b-m*v-(b>=360?m:m-1)*l,w=f;rr()(f)&&rr()(h)?w="value":rr()(f)&&(w=h);var O,E,k=i.reduce((function(t,e){var n=gf(e,w,0);return t+(Dn(n)?n:0)}),0);k>0&&(O=i.map((function(t,e){var n,r=gf(t,w,0),o=gf(t,p,e),i=(Dn(r)?r:0)/k,a=(n=e?E.endAngle+Nn(g)*l:u)+Nn(g)*(v+i*x),s=(n+a)/2,f=(y.innerRadius+y.outerRadius)/2,h=[{name:o,value:r,payload:t,dataKey:w,type:d}],m=Hf(y.cx,y.cy,f,s);return E=Lh({percent:i,cornerRadius:c,name:o,tooltipPayload:h,midAngle:s,middleRadius:f,tooltipPosition:m},t,{},y,{value:gf(t,w),startAngle:n,endAngle:a,payload:t,paddingAngle:Nn(g)*l})})));return Lh({},y,{sectors:O,data:i,onMouseLeave:r,onMouseEnter:o})};var Hh=Vh,Xh=n("Jlc5"),qh=n.n(Xh),Kh=n("J2m7"),Yh=n.n(Kh),Zh=n("WjpJ"),$h=n.n(Zh),Jh=n("DzJC"),Qh=n.n(Jh);function td(t){return(td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ed(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function nd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nd(n,!0).forEach((function(e){od(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nd(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function od(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function id(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cd(t,e){return!e||"object"!==td(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ud(t){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sd(t,e){return(sd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ld=function(t){return Mn()(t)&&Rn(t[0])&&Rn(t[1])?t.join(" ~ "):t},fd=function(t){function e(){return id(this,e),cd(this,ud(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sd(t,e)}(e,t),n=e,(r=[{key:"renderContent",value:function(){var t=this.props,e=t.payload,n=t.separator,r=t.formatter,o=t.itemStyle,a=t.itemSorter;if(e&&e.length){var c=(a?Lo()(e,a):e).map((function(t,e){if("none"===t.type)return null;var a=rd({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},o),c=t.formatter||r||ld,u=t.name,s=t.value;if(c){var l=c(s,u,t,e);if(Array.isArray(l)){var f=ed(l,2);s=f[0],u=f[1]}else s=l}return i.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:a},Rn(u)?i.a.createElement("span",{className:"recharts-tooltip-item-name"},u):null,Rn(u)?i.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,i.a.createElement("span",{className:"recharts-tooltip-item-value"},s),i.a.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return i.a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},c)}return null}},{key:"render",value:function(){var t=this.props,e=t.wrapperClassName,n=t.contentStyle,r=t.labelClassName,o=t.labelStyle,a=t.label,c=t.labelFormatter,u=rd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),s=rd({margin:0},o),l=Rn(a),f=l?a:"",p=xn()("recharts-default-tooltip",e),h=xn()("recharts-tooltip-label",r);return l&&c&&(f=c(a)),i.a.createElement("div",{className:p,style:u},i.a.createElement("p",{className:h,style:s},f),this.renderContent())}}])&&ad(n.prototype,r),o&&ad(n,o),e}(o.PureComponent);fd.displayName="DefaultTooltipContent",fd.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var pd=fd;function hd(t){return(hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dd(n,!0).forEach((function(e){yd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dd(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function md(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bd(t,e){return!e||"object"!==hd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xd(t){return(xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wd(t,e){return(wd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Od="recharts-tooltip-wrapper",Ed=function(t){return t.dataKey},kd={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!Po(),animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},jd=function(t){function e(){var t,n;md(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=bd(this,(t=xd(e)).call.apply(t,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n.getTranslate=function(t){var e=t.key,r=t.tooltipDimension,o=t.viewBoxDimension,i=n.props,a=i.allowEscapeViewBox,c=i.coordinate,u=i.offset,s=i.position,l=i.viewBox;if(s&&Dn(s[e]))return s[e];var f=c[e]-r-u,p=c[e]+u;return a[e]?p:c[e]+r+u>l[e]+o?Math.max(f,l[e]):Math.max(p,l[e])},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wd(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,o=this.props,a=o.payload,c=o.isAnimationActive,u=o.animationDuration,s=o.animationEasing,l=o.filterNull,f=function(t,e){return!0===t?il()(e,Ed):er()(t)?il()(e,t):e}(o.paylodUniqBy,l&&a&&a.length?a.filter((function(t){return!rr()(t.value)})):a),p=f&&f.length,h=this.props,d=h.content,v=h.viewBox,y=h.coordinate,m=h.position,g=h.active,b=vd({pointerEvents:"none",visibility:g&&p?"visible":"hidden",position:"absolute",top:0},h.wrapperStyle);if(m&&Dn(m.x)&&Dn(m.y))e=m.x,n=m.y;else{var x=this.state,w=x.boxWidth,O=x.boxHeight;w>0&&O>0&&y?(e=this.getTranslate({key:"x",tooltipDimension:w,viewBoxDimension:v.width}),n=this.getTranslate({key:"y",tooltipDimension:O,viewBoxDimension:v.height})):b.visibility="hidden"}b=vd({},br({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}),{},b),c&&g&&(b=vd({},br({transition:"transform ".concat(u,"ms ").concat(s)}),{},b));var E=xn()(Od,(yd(t={},"".concat(Od,"-right"),Dn(e)&&y&&Dn(y.x)&&e>=y.x),yd(t,"".concat(Od,"-left"),Dn(e)&&y&&Dn(y.x)&&e<y.x),yd(t,"".concat(Od,"-bottom"),Dn(n)&&y&&Dn(y.y)&&n>=y.y),yd(t,"".concat(Od,"-top"),Dn(n)&&y&&Dn(y.y)&&n<y.y),t));return i.a.createElement("div",{className:E,style:b,ref:function(t){r.wrapperNode=t}},function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(pd,e)}(d,vd({},this.props,{payload:f})))}}])&&gd(n.prototype,r),o&&gd(n,o),e}(o.PureComponent);jd.displayName="Tooltip",jd.defaultProps=kd;var Md=jd;function Sd(t){return(Sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _d(){return(_d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ad(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Td(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pd(t,e){return!e||"object"!==Sd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cd(t){return(Cd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nd(t,e){return(Nd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Id=function(t){function e(){return Ad(this,e),Pd(this,Cd(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nd(t,e)}(e,t),n=e,o=[{key:"getPath",value:function(t,e,n,r,o,i){return"M".concat(t,",").concat(o,"v").concat(r,"M").concat(i,",").concat(e,"h").concat(n)}}],(r=[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,a=t.top,c=t.left,u=t.className;return Dn(e)&&Dn(n)&&Dn(r)&&Dn(o)&&Dn(a)&&Dn(c)?i.a.createElement("path",_d({},jo(this.props),{className:xn()("recharts-cross",u),d:this.constructor.getPath(e,n,r,o,a,c)})):null}}])&&Td(n.prototype,r),o&&Td(n,o),e}(o.PureComponent);Id.displayName="Cross",Id.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Dd=Id;function Rd(t){return(Rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ld(){return(Ld=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Bd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fd(t,e){return!e||"object"!==Rd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wd(t){return(Wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Gd(t,e){return(Gd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ud=function(t){function e(){return Bd(this,e),Fd(this,Wd(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gd(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.r,o=t.className,a=xn()("recharts-dot",o);return e===+e&&n===+n&&r===+r?i.a.createElement("circle",Ld({},jo(this.props),So(this.props,null,!0),{className:a,cx:e,cy:n,r:r})):null}}])&&zd(n.prototype,r),o&&zd(n,o),e}(o.PureComponent);Ud.displayName="Dot";var Vd=Ud;function Hd(t){return(Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xd(){return(Xd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function qd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yd(t,e){return!e||"object"!==Hd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zd(t){return(Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $d(t,e){return($d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Jd=function(t,e,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,u=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+u*l[0],",").concat(e)),i+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(t+n,",").concat(e+c*l[1])),i+="L ".concat(t+n,",").concat(e+r-c*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(t+n-u*l[2],",").concat(e+r)),i+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(t,",").concat(e+r-c*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n,",").concat(e+c*p,"\n L ").concat(t+n,",").concat(e+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t,",").concat(e+r-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Qd=function(t){function e(){var t,n;qd(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Yd(this,(t=Zd(e)).call.apply(t,[this].concat(o)))).state={totalLength:-1},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$d(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({totalLength:t})}catch(e){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,r=e.y,o=e.width,a=e.height,c=e.radius,u=e.className,s=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,h=l.animationBegin,d=l.isAnimationActive,v=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var y=xn()("recharts-rectangle",u);return v?i.a.createElement(so,{canBegin:s>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:v},(function(e){var n=e.width,r=e.height,o=e.x,a=e.y;return i.a.createElement(so,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:d,easing:f},i.a.createElement("path",Xd({},jo(t.props),So(t.props),{className:y,d:Jd(o,a,n,r,c),ref:function(e){t.node=e}})))})):i.a.createElement("path",Xd({},jo(this.props),So(this.props),{className:y,d:Jd(n,r,o,a,c)}))}}])&&Kd(n.prototype,r),o&&Kd(n,o),e}(o.PureComponent);Qd.displayName="Rectangle",Qd.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var tv=Qd;function ev(t){return(ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nv(){return(nv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function rv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ov(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rv(n,!0).forEach((function(e){iv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rv(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function av(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function cv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sv(t,e){return!e||"object"!==ev(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lv(t){return(lv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fv(t,e){return(fv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var pv=function(t){function e(){return cv(this,e),sv(this,lv(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fv(t,e)}(e,t),n=e,o=[{key:"getTicks",value:function(t){var n=t.tick,r=t.ticks,o=t.viewBox,i=t.minTickGap,a=t.orientation,c=t.interval,u=t.tickFormatter,s=t.unit;return r&&r.length&&n?Dn(c)||Po()?e.getNumberIntervalTicks(r,Dn(c)?c:0):"preserveStartEnd"===c?e.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s},!0):"preserveStart"===c?e.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s}):e.getTicksEnd({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(t,e){return t.filter((function(t,n){return n%(e+1)==0}))}},{key:"getTicksStart",value:function(t,e){var n,r,o=t.ticks,i=t.tickFormatter,a=t.viewBox,c=t.orientation,u=t.minTickGap,s=t.unit,l=a.x,f=a.y,p=a.width,h=a.height,d="top"===c||"bottom"===c?"width":"height",v=(o||[]).slice(),y=s&&"width"===d?th(s)[d]:0,m=v.length,g=m>=2?Nn(v[1].coordinate-v[0].coordinate):1;if(1===g?(n="width"===d?l:f,r="width"===d?l+p:f+h):(n="width"===d?l+p:f+h,r="width"===d?l:f),e){var b=o[m-1],x=er()(i)?i(b.value):b.value,w=th(x)[d]+y,O=g*(b.coordinate+g*w/2-r);v[m-1]=b=ov({},b,{tickCoord:O>0?b.coordinate-O*g:b.coordinate}),g*(b.tickCoord-g*w/2-n)>=0&&g*(b.tickCoord+g*w/2-r)<=0&&(r=b.tickCoord-g*(w/2+u),v[m-1]=ov({},b,{isShow:!0}))}for(var E=e?m-1:m,k=0;k<E;k++){var j=v[k],M=er()(i)?i(j.value):j.value,S=th(M)[d]+y;if(0===k){var _=g*(j.coordinate-g*S/2-n);v[k]=j=ov({},j,{tickCoord:_<0?j.coordinate-_*g:j.coordinate})}else v[k]=j=ov({},j,{tickCoord:j.coordinate});g*(j.tickCoord-g*S/2-n)>=0&&g*(j.tickCoord+g*S/2-r)<=0&&(n=j.tickCoord+g*(S/2+u),v[k]=ov({},j,{isShow:!0}))}return v.filter((function(t){return t.isShow}))}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,o=t.tickFormatter,i=t.viewBox,a=t.orientation,c=t.minTickGap,u=t.unit,s=i.x,l=i.y,f=i.width,p=i.height,h="top"===a||"bottom"===a?"width":"height",d=u&&"width"===h?th(u)[h]:0,v=(r||[]).slice(),y=v.length,m=y>=2?Nn(v[1].coordinate-v[0].coordinate):1;1===m?(e="width"===h?s:l,n="width"===h?s+f:l+p):(e="width"===h?s+f:l+p,n="width"===h?s:l);for(var g=y-1;g>=0;g--){var b=v[g],x=er()(o)?o(b.value):b.value,w=th(x)[h]+d;if(g===y-1){var O=m*(b.coordinate+m*w/2-n);v[g]=b=ov({},b,{tickCoord:O>0?b.coordinate-O*m:b.coordinate})}else v[g]=b=ov({},b,{tickCoord:b.coordinate});m*(b.tickCoord-m*w/2-e)>=0&&m*(b.tickCoord+m*w/2-n)<=0&&(n=b.tickCoord-m*(w/2+c),v[g]=ov({},b,{isShow:!0}))}return v.filter((function(t){return t.isShow}))}},{key:"renderTickItem",value:function(t,e,n){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(lh,nv({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=av(t,["viewBox"]),o=this.props,i=o.viewBox,a=av(o,["viewBox"]);return!yo(n,i)||!yo(r,a)||!yo(e,this.state)}},{key:"getTickLineCoord",value:function(t){var e,n,r,o,i,a,c=this.props,u=c.x,s=c.y,l=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,v=c.tickMargin,y=d?-1:1,m=t.tickSize||h,g=Dn(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(o=s+!d*f)-y*m)-y*v,i=g;break;case"left":r=o=t.coordinate,i=(e=(n=u+!d*l)-y*m)-y*v,a=g;break;case"right":r=o=t.coordinate,i=(e=(n=u+d*l)+y*m)+y*v,a=g;break;default:e=n=t.coordinate,a=(r=(o=s+d*f)+y*m)+y*v,i=g}return{line:{x1:e,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,a=t.orientation,c=t.axisLine,u=t.mirror,s=ov({},jo(this.props),{fill:"none"},jo(c));if("top"===a||"bottom"===a){var l="top"===a&&!u||"bottom"===a&&u;s=ov({},s,{x1:e,y1:n+l*o,x2:e+r,y2:n+l*o})}else{var f="left"===a&&!u||"right"===a&&u;s=ov({},s,{x1:e+f*r,y1:n,x2:e+f*r,y2:n+o})}return i.a.createElement("line",nv({className:"recharts-cartesian-axis-line"},s))}},{key:"renderTicks",value:function(t){var n=this,r=this.props,o=r.tickLine,a=r.stroke,c=r.tick,u=r.tickFormatter,s=r.unit,l=e.getTicks(ov({},this.props,{ticks:t})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),h=jo(this.props),d=jo(c),v=ov({},h,{fill:"none"},jo(o)),y=l.map((function(t,e){var r=n.getTickLineCoord(t),y=r.line,m=r.tick,g=ov({textAnchor:f,verticalAnchor:p},h,{stroke:"none",fill:a},d,{},m,{index:e,payload:t,visibleTicksCount:l.length});return i.a.createElement(po,nv({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Ao(n.props,t,e)),o&&i.a.createElement("line",nv({className:"recharts-cartesian-axis-tick-line"},v,y)),c&&n.constructor.renderTickItem(c,g,"".concat(er()(u)?u(t.value):t.value).concat(s||"")))}));return i.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,o=t.ticksGenerator,a=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,s=av(c,["ticks"]),l=u;return er()(o)&&(l=u&&u.length>0?o(this.props):o(s)),n<=0||r<=0||!l||!l.length?null:i.a.createElement(po,{className:xn()("recharts-cartesian-axis",a)},e&&this.renderAxisLine(),this.renderTicks(l),mh.renderCallByParent(this.props))}}])&&uv(n.prototype,r),o&&uv(n,o),e}(o.Component);pv.displayName="CartesianAxis",pv.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var hv=pv;function dv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yv=["Webkit","Moz","O","ms"],mv=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=yv.reduce((function(t,r){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dv(n,!0).forEach((function(e){vv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dv(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,vv({},r+n,e))}),{});return r[t]=e,r};function gv(t){return(gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bv(){return(bv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function xv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ov(t){return(Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ev(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kv(t,e){return(kv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var jv=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==gv(e)&&"function"!=typeof e?Ev(t):e}(this,Ov(e).call(this,t))).handleDrag=function(t){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(t):n.state.isSlideMoving&&n.handleSlideDrag(t)},n.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleDrag(t.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(t){var e=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Ev(n),"startX"),endX:n.handleTravellerDragStart.bind(Ev(n),"endX")},n.state=t.data&&t.data.length?n.updateScale(t):{},n}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kv(t,e)}(e,t),n=e,a=[{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o}return e>=t[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,c=n.updateId;(t.data!==r||t.updateId!==c)&&t.data&&t.data.length?this.setState(this.updateScale(t)):t.width===o&&t.x===i&&t.travellerWidth===a||(this.scale.range([t.x,t.x+t.width-t.travellerWidth]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),this.setState({startX:this.scale(t.startIndex),endX:this.scale(t.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(e,n),c=Math.max(e,n),u=this.constructor.getIndexInRange(this.scaleValues,a),s=this.constructor.getIndexInRange(this.scaleValues,c);return{startIndex:u-u%o,endIndex:s===i?i:s-s%o}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,o=e.dataKey,i=gf(n[t],o,t);return er()(r)?r(i):i}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,s=i.startIndex,l=i.endIndex,f=i.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+c-u-o,a+c-u-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===s&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,c=this.state[o],u=this.props,s=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,d=u.data,v={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,s+l-f-c):y<0&&(y=Math.max(y,s-c)),v[o]=c+y;var m=this.getIndex(v),g=m.startIndex,b=m.endIndex;this.setState((xv(e={},o,c+y),xv(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===o&&(i>a?g%h==0:b%h==0)||i<a&&b===t||"endX"===o&&(i>a?b%h==0:g%h==0)||i>a&&b===t)&&p(m))}))}},{key:"updateScale",value:function(t){var e=this,n=t.data,r=t.startIndex,o=t.endIndex,i=t.x,a=t.width,c=t.travellerWidth,u=n.length;return this.scale=wi().domain($h()(0,u)).range([i,i+a-c]),this.scaleValues=this.scale.domain().map((function(t){return e.scale(t)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,a=t.fill,c=t.stroke;return i.a.createElement("rect",{stroke:c,fill:a,x:e,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,a=t.height,c=t.data,u=t.children,s=t.padding,l=o.Children.only(u);return l?i.a.cloneElement(l,{x:e,y:n,width:r,height:a,margin:s,compact:!0,data:c}):null}},{key:"renderTraveller",value:function(t,e){var n=this.props,r=n.y,o=n.travellerWidth,a=n.height,c=n.stroke,u=Math.floor(r+a/2)-1,s=Math.max(t,this.props.x);return i.a.createElement(po,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},i.a.createElement("rect",{x:s,y:r,width:o,height:a,fill:c,stroke:"none"}),i.a.createElement("line",{x1:s+1,y1:u,x2:s+o-1,y2:u,fill:"none",stroke:"#fff"}),i.a.createElement("line",{x1:s+1,y1:u+2,x2:s+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,o=n.height,a=n.stroke;return i.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(t,e),y:r,width:Math.abs(e-t),height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,o=t.height,a=t.travellerWidth,c=t.stroke,u=this.state,s=u.startX,l=u.endX,f={pointerEvents:"none",fill:c};return i.a.createElement(po,{className:"recharts-brush-texts"},i.a.createElement(lh,bv({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:r+o/2},f),this.getTextOfTick(e)),i.a.createElement(lh,bv({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,o=t.x,a=t.y,c=t.width,u=t.height,s=t.alwaysShowText,l=this.state,f=l.startX,p=l.endX,h=l.isTextActive,d=l.isSlideMoving,v=l.isTravellerMoving;if(!e||!e.length||!Dn(o)||!Dn(a)||!Dn(c)||!Dn(u)||c<=0||u<=0)return null;var y=xn()("recharts-brush",n),m=1===i.a.Children.count(r),g=mv("userSelect","none");return i.a.createElement(po,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,p),this.renderTraveller(f,"startX"),this.renderTraveller(p,"endX"),(h||d||v||s)&&this.renderText())}}])&&wv(n.prototype,r),a&&wv(n,a),e}(o.PureComponent);jv.displayName="Brush",jv.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var Mv=jv,Sv=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},_v=n("noZS"),Av=n.n(_v);function Tv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cv(t,e,n){return e&&Pv(t.prototype,e),n&&Pv(t,n),t}var Nv=function(t,e){var n=t.x,r=t.y,o=e.x,i=e.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},Iv=function(){function t(e){Tv(this,t),this.scale=e}return Cv(t,null,[{key:"create",value:function(e){return new t(e)}}]),Cv(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i;default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),t}();Iv.EPS=1e-4;var Dv=function(){function t(e){Tv(this,t),this.scales=Av()(e,Iv.create),Object.assign(this,this.scales)}return Cv(t,null,[{key:"create",value:function(t){return new this(t)}}]),Cv(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=this.scales;return Av()(t,(function(t,e){return r[e].apply(t,{bandAware:n})}))}},{key:"isInRange",value:function(t){var e=this.scales;return qh()(t,(function(t,n){return e[n].isInRange(t)}))}}]),t}();function Rv(t){return(Rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lv(){return(Lv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Bv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gv(t,e){return!e||"object"!==Rv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uv(t){return(Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vv(t,e){return(Vv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Hv=function(t){function e(){return Fv(this,e),Gv(this,Uv(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vv(t,e)}(e,t),n=e,o=[{key:"renderDot",value:function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(Vd,Lv({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}}],(r=[{key:"getCoordinate",value:function(){var t=this.props,e=t.x,n=t.y,r=t.xAxis,o=t.yAxis,i=Dv.create({x:r.scale,y:o.scale}),a=i.apply({x:e,y:n},{bandAware:!0});return Sv(this.props,"discard")&&!i.isInRange(a)?null:a}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.r,o=(t.alwaysShow,t.clipPathId),a=Rn(e),c=Rn(n);if(!a||!c)return null;var u=this.getCoordinate();if(!u)return null;var s=u.x,l=u.y,f=this.props,p=f.shape,h=f.className,d=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bv(n,!0).forEach((function(e){zv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bv(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({clipPath:Sv(this.props,"hidden")?"url(#".concat(o,")"):void 0},jo(this.props),{},So(this.props),{cx:s,cy:l});return i.a.createElement(po,{className:xn()("recharts-reference-dot",h)},this.constructor.renderDot(p,d),mh.renderCallByParent(this.props,{x:s-r,y:l-r,width:2*r,height:2*r}))}}])&&Wv(n.prototype,r),o&&Wv(n,o),e}(o.PureComponent);Hv.displayName="ReferenceDot",Hv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};var Xv=Hv,qv=n("MJIl"),Kv=n.n(qv);function Yv(t){return(Yv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Qv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ty(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ey(t,e){return!e||"object"!==Yv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ny(t){return(ny=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ry(t,e){return(ry=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function oy(){return(oy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var iy=function(t){function e(){return Qv(this,e),ey(this,ny(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ry(t,e)}(e,t),n=e,(r=[{key:"getEndPoints",value:function(t,e,n,r){var o=this.props,i=o.viewBox,a=i.x,c=i.y,u=i.width,s=i.height,l=o.position;if(n){var f=this.props,p=f.y,h=f.yAxis.orientation,d=t.y.apply(p,{position:l});if(Sv(this.props,"discard")&&!t.y.isInRange(d))return null;var v=[{x:a+u,y:d},{x:a,y:d}];return"left"===h?v.reverse():v}if(e){var y=this.props,m=y.x,g=y.xAxis.orientation,b=t.x.apply(m,{position:l});if(Sv(this.props,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:c+s},{x:b,y:c}];return"top"===g?x.reverse():x}if(r){var w=this.props.segment.map((function(e){return t.apply(e,{position:l})}));return Sv(this.props,"discard")&&Kv()(w,(function(e){return!t.isInRange(e)}))?null:w}return null}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.segment,o=t.xAxis,a=t.yAxis,c=t.shape,u=t.className,s=(t.alwaysShow,t.clipPathId),l=Dv.create({x:o.scale,y:a.scale}),f=Rn(e),p=Rn(n),h=r&&2===r.length,d=this.getEndPoints(l,f,p,h);if(!d)return null;var v=Jv(d,2),y=v[0],m=y.x,g=y.y,b=v[1],x=b.x,w=b.y,O=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zv(n,!0).forEach((function(e){$v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zv(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({clipPath:Sv(this.props,"hidden")?"url(#".concat(s,")"):void 0},jo(this.props),{},So(this.props),{x1:m,y1:g,x2:x,y2:w});return i.a.createElement(po,{className:xn()("recharts-reference-line",u)},function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement("line",oy({},e,{className:"recharts-reference-line-line"}))}(c,O),mh.renderCallByParent(this.props,function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return Nv({x:e,y:n},{x:r,y:o})}({x1:m,y1:g,x2:x,y2:w})))}}])&&ty(n.prototype,r),o&&ty(n,o),e}(o.PureComponent);iy.displayName="ReferenceLine",iy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var ay=iy;function cy(t){return(cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uy(){return(uy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function sy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ly(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function py(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hy(t,e){return!e||"object"!==cy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dy(t){return(dy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vy(t,e){return(vy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var yy=function(t){function e(){return fy(this,e),hy(this,dy(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vy(t,e)}(e,t),n=e,o=[{key:"renderRect",value:function(t,e){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(tv,uy({},e,{className:"recharts-reference-area-rect"}))}}],(r=[{key:"getRect",value:function(t,e,n,r){var o=this.props,i=o.x1,a=o.x2,c=o.y1,u=o.y2,s=o.xAxis,l=o.yAxis,f=Dv.create({x:s.scale,y:l.scale}),p={x:t?f.x.apply(i):f.x.rangeMin,y:n?f.y.apply(c):f.y.rangeMin},h={x:e?f.x.apply(a):f.x.rangeMax,y:r?f.y.apply(u):f.y.rangeMax};return!Sv(this.props,"discard")||f.isInRange(p)&&f.isInRange(h)?Nv(p,h):null}},{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,r=t.y1,o=t.y2,a=t.className,c=(t.alwaysShow,t.clipPathId),u=Rn(e),s=Rn(n),l=Rn(r),f=Rn(o),p=this.props.shape;if(!(u||s||l||f||p))return null;var h=this.getRect(u,s,l,f);if(!h&&!p)return null;var d=Sv(this.props,"hidden")?"url(#".concat(c,")"):void 0;return i.a.createElement(po,{className:xn()("recharts-reference-area",a)},this.constructor.renderRect(p,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sy(n,!0).forEach((function(e){ly(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sy(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({clipPath:d},this.props,{},h)),mh.renderCallByParent(this.props,h))}}])&&py(n.prototype,r),o&&py(n,o),e}(o.PureComponent);yy.displayName="ReferenceArea",yy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};var my=yy,gy=function(t,e,n,r,o){var i=Eo(t,ay),a=Eo(t,Xv),c=i.concat(a),u=Eo(t,my),s="".concat(r,"Id"),l=r[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[s]===n&&Sv(e.props,"extendDomain")&&Dn(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),f)),u.length){var p="".concat(l,"1"),h="".concat(l,"2");f=u.reduce((function(t,e){if(e.props[s]===n&&Sv(e.props,"extendDomain")&&Dn(e.props[p])&&Dn(e.props[h])){var r=e.props[p],o=e.props[h];return[Math.min(t[0],r,o),Math.max(t[1],r,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return Dn(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},by=n("+qE3"),xy=new(n.n(by).a);xy.setMaxListeners&&xy.setMaxListeners(10);var wy="recharts.syncMouseEvents";function Oy(t){return(Oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ey(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ky(){return(ky=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function jy(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function My(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?My(n,!0).forEach((function(e){_y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):My(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ay(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ty(t){return(Ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Py(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cy(t,e){return(Cy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ny={xAxis:["bottom","top"],yAxis:["left","right"]},Iy={x:0,y:0},Dy=function(t){var e=t.chartName,n=t.GraphicalChild,r=t.eventType,a=void 0===r?"axis":r,c=t.axisComponents,u=t.legendContent,s=t.formatAxisMap,l=t.defaultProps,f=(t.propTypes,function(t){function r(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(t,e){return!e||"object"!==Oy(e)&&"function"!=typeof e?Py(t):e}(this,Ty(r).call(this,t))).handleLegendBBoxUpdate=function(t){if(t&&n.legendInstance){var e=n.state,r=e.dataStartIndex,o=e.dataEndIndex,i=e.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i}))}},n.handleReceiveSyncEvent=function(t,e,r){var o=n.props,i=o.syncId,a=o.layout,c=n.state.updateId;if(i===t&&e!==n.uniqueChartId){var u=r.dataStartIndex,s=r.dataEndIndex;if(rr()(r.dataStartIndex)&&rr()(r.dataEndIndex))if(rr()(r.activeTooltipIndex))n.setState(r);else{var l=r.chartX,f=r.chartY,p=r.activeTooltipIndex,h=n.state,d=h.offset,v=h.tooltipTicks;if(!d)return;var y=Sy({},d,{x:d.left,y:d.top}),m=Math.min(l,y.x+y.width),g=Math.min(f,y.y+y.height),b=v[p]&&v[p].value,x=n.getTooltipContent(p),w=v[p]?{x:"horizontal"===a?v[p].coordinate:m,y:"horizontal"===a?g:v[p].coordinate}:Iy;n.setState(Sy({},r,{activeLabel:b,activeCoordinate:w,activePayload:x}))}else n.setState(Sy({dataStartIndex:u,dataEndIndex:s},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:u,dataEndIndex:s,updateId:c})))}},n.handleBrushChange=function(t){var e=t.startIndex,r=t.endIndex;if(e!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return Sy({dataStartIndex:e,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:e,dataEndIndex:r,updateId:o}))})),n.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}},n.handleMouseEnter=function(t){var e=n.props.onMouseEnter,r=n.getMouseInfo(t);if(r){var o=Sy({},r,{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),er()(e)&&e(o,t)}},n.triggeredAfterMouseMove=function(t){var e=n.props.onMouseMove,r=n.getMouseInfo(t),o=r?Sy({},r,{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),er()(e)&&e(o,t)},n.handleItemMouseEnter=function(t){n.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(t){t&&er()(t.persist)&&t.persist(),n.triggeredAfterMouseMove(t)},n.handleMouseLeave=function(t){var e=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),er()(e)&&e(r,t)},n.handleOuterEvent=function(t){var e=function(t){var e=t&&t.type;return e&&wo[e]?wo[e]:null}(t);if(e&&er()(n.props[e])){var r=n.getMouseInfo(t);(0,n.props[e])(r,t)}},n.handleClick=function(t){var e=n.props.onClick;er()(e)&&e(n.getMouseInfo(t),t)},n.handleMouseDown=function(t){var e=n.props.onMouseDown;er()(e)&&e(n.getMouseInfo(t),t)},n.handleMouseUp=function(t){var e=n.props.onMouseUp;er()(e)&&e(n.getMouseInfo(t),t)},n.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseMove(t.changedTouches[0])},n.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseDown(t.changedTouches[0])},n.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseUp(t.changedTouches[0])},n.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,o=t.offset;return jf(hv.getTicks(Sy({},hv.defaultProps,{},e,{ticks:Mf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,o=t.offset;return jf(hv.getTicks(Sy({},hv.defaultProps,{},e,{ticks:Mf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(t){return Mf(t,!0)},n.tooltipTicksGenerator=function(t){var e=Fn(t),n=Mf(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Lo()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:Lf(e)}},n.renderCursor=function(t){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset;if(!(t&&t.props.cursor&&i&&a))return null;var s,l=n.props.layout,f=Up;if("ScatterChart"===e)s=a,f=Dd;else if("BarChart"===e)s=n.getCursorRectangle(),f=tv;else if("radial"===l){var p=n.getCursorPoints(),h=p.cx,d=p.cy,v=p.radius;s={cx:h,cy:d,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},f=ap}else s={points:n.getCursorPoints()},f=Up;var y=t.key||"_recharts-cursor",m=Sy({stroke:"#ccc",pointerEvents:"none"},u,{},s,{},jo(t.props.cursor),{payload:c,key:y,className:"recharts-tooltip-cursor"});return Object(o.isValidElement)(t.props.cursor)?Object(o.cloneElement)(t.props.cursor,m):Object(o.createElement)(f,m)},n.renderPolarAxis=function(t,e,r){var i=t.type.axisType,a=n.state["".concat(i,"Map")][t.props["".concat(i,"Id")]];return Object(o.cloneElement)(t,Sy({},a,{className:i,key:t.key||"".concat(e,"-").concat(r),ticks:Mf(a,!0)}))},n.renderXAxis=function(t,e,r){var o=n.state.xAxisMap[t.props.xAxisId];return n.renderAxis(o,t,e,r)},n.renderYAxis=function(t,e,r){var o=n.state.yAxisMap[t.props.yAxisId];return n.renderAxis(o,t,e,r)},n.renderGrid=function(t){var e=n.state,r=e.xAxisMap,i=e.yAxisMap,a=e.offset,c=n.props,u=c.width,s=c.height,l=Fn(r),f=Yh()(i,(function(t){return qh()(t.domain,Number.isFinite)}))||Fn(i),p=t.props||{};return Object(o.cloneElement)(t,{key:t.key||"grid",x:Dn(p.x)?p.x:a.left,y:Dn(p.y)?p.y:a.top,width:Dn(p.width)?p.width:a.width,height:Dn(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(t){var e=n.state,r=e.radiusAxisMap,i=e.angleAxisMap,a=Fn(r),c=Fn(i),u=c.cx,s=c.cy,l=c.innerRadius,f=c.outerRadius;return Object(o.cloneElement)(t,{polarAngles:Mf(c,!0).map((function(t){return t.coordinate})),polarRadius:Mf(a,!0).map((function(t){return t.coordinate})),cx:u,cy:s,innerRadius:l,outerRadius:f,key:t.key||"polar-grid"})},n.renderBrush=function(t){var e=n.props,r=e.margin,i=e.data,a=n.state,c=a.offset,u=a.dataStartIndex,s=a.dataEndIndex,l=a.updateId;return Object(o.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Sf(n.handleBrushChange,null,t.props.onChange),data:i,x:Dn(t.props.x)?t.props.x:c.left,y:Dn(t.props.y)?t.props.y:c.top+c.height+c.brushBottom-(r.bottom||0),width:Dn(t.props.width)?t.props.width:c.width,startIndex:u,endIndex:s,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(t,e,r){if(!t)return null;var i=Py(n).clipPathId,a=n.state,c=a.xAxisMap,u=a.yAxisMap,s=a.offset,l=t.props,f=l.xAxisId,p=l.yAxisId;return Object(o.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:c[f],yAxis:u[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})},n.renderGraphicChild=function(t,e,r){var i=n.filterFormatItem(t,e,r);if(!i)return null;var a=Object(o.cloneElement)(t,i.props),c=n.state,u=c.isTooltipActive,s=c.tooltipAxis,l=c.activeTooltipIndex,f=c.activeLabel,p=n.props.children,h=ko(p,Md),d=i.props,v=d.points,y=d.isRange,m=d.baseLine,g=i.item.props,b=g.activeDot;if(!g.hide&&u&&h&&b&&l>=0){var x,w;if(s.dataKey&&!s.allowDuplicatedCategory){var O="function"==typeof s.dataKey?function(t){return s.dataKey(t.payload)}:"payload.".concat(s.dataKey);x=Gn(v,O,f),w=y&&m&&Gn(m,O,f)}else x=v[l],w=y&&m&&m[l];if(!rr()(x))return[a].concat(jy(n.renderActivePoints({item:i,activePoint:x,basePoint:w,childIndex:l,isRange:y})))}return y?[a,null,null]:[a,null]},n.renderCustomized=function(t){return Object(o.cloneElement)(t,Sy({},n.props,{},n.state))};var i=n.constructor.createDefaultState(t);return n.state=Sy({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Sy({props:t},i,{updateId:0}))),n.uniqueChartId=rr()(t.id)?Bn("recharts"):t.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),t.throttleDelay&&(n.triggeredAfterMouseMove=Qh()(n.triggeredAfterMouseMove,t.throttleDelay)),n}var l,f,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cy(t,e)}(r,t),l=r,p=[{key:"getAxisNameByLayout",value:function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(t,e){var n;return n=Object(o.isValidElement)(t)?Object(o.cloneElement)(t,e):er()(t)?t(e):i.a.createElement(Vd,e),i.a.createElement(po,{className:"recharts-active-dot",key:e.key},n)}}],(f=[{key:"componentDidMount",value:function(){rr()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,c=n.layout,u=n.stackOffset,s=n.margin,l=this.state.updateId;if(t.data===r&&t.width===i&&t.height===a&&t.layout===c&&t.stackOffset===u&&yo(t.margin,s)){if(!Io(t.children,o)){var f=rr()(t.data)?l+1:l;this.setState((function(n){return Sy({updateId:f},e.updateStateOfAxisMapsOffsetAndStackGroups(Sy({props:t},n,{updateId:f})))}))}}else{var p=this.constructor.createDefaultState(t);this.setState(Sy({},p,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Sy({props:t},p,{updateId:l+1}))))}rr()(this.props.syncId)&&!rr()(t.syncId)&&this.addListener(),!rr()(this.props.syncId)&&rr()(t.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){rr()(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,s=t.children,l="".concat(r,"Id"),f=Eo(s,o),p={};return f&&f.length?p=this.getAxisMapByAxes(t,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=this.getAxisMapByItems(t,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p}},{key:"getAxisMapByAxes",value:function(t,e){var n=this,r=e.axes,o=e.graphicalItems,i=e.axisType,a=e.axisIdKey,c=e.stackGroups,u=e.dataStartIndex,s=e.dataEndIndex,l=t.layout,f=t.children,p=t.stackOffset,h=kf(l,i);return r.reduce((function(e,r){var d=r.props,v=d.type,y=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,x=d.ticks,w=r.props[a],O=n.constructor.getDisplayedData(t,{graphicalItems:o.filter((function(t){return t.props[a]===w})),dataStartIndex:u,dataEndIndex:s}),E=O.length;if(!e[w]){var k,j,M;if(y){if(k=bf(O,y,v),"category"===v&&h){var S=function(t){if(!Mn()(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1}(k);g&&S?(j=k,k=$h()(0,E)):g||(k=Bf(r.props.domain,k,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(jy(t),[e])}),[]))}else if("category"===v)k=g?k.filter((function(t){return""!==t&&!rr()(t)})):Bf(r.props.domain,k,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||rr()(e)?t:[].concat(jy(t),[e])}),[]);else if("number"===v){var _=function(t,e,n,r){var o=e.map((function(e){return Of(t,e,n,r)})).filter((function(t){return!rr()(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(O,o.filter((function(t){return t.props[a]===w&&!t.props.hide})),y,i);_&&(k=_)}!h||"number"!==v&&"auto"===b||(M=bf(O,y,"category"))}else k=h?$h()(0,E):c&&c[w]&&c[w].hasStack&&"number"===v?"expand"===p?[0,1]:Nf(c[w].stackGroups,u,s):Ef(O,o.filter((function(t){return t.props[a]===w&&!t.props.hide})),v,!0);return"number"===v&&(k=gy(f,k,w,i,x),r.props.domain&&(k=Rf(r.props.domain,k,m))),Sy({},e,_y({},w,Sy({},r.props,{axisType:i,domain:k,categoricalDomain:M,duplicateDomain:j,originalDomain:r.props.domain,isCategorial:h,layout:l})))}return e}),{})}},{key:"getAxisMapByItems",value:function(t,e){var n=e.graphicalItems,r=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,s=t.layout,l=t.children,f=this.constructor.getDisplayedData(t,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=kf(s,o),d=-1;return n.reduce((function(t,e){var v,y=e.props[i];return t[y]?t:(d++,h?v=$h()(0,p):a&&a[y]&&a[y].hasStack?(v=Nf(a[y].stackGroups,c,u),v=gy(l,v,y,o)):(v=Rf(r.defaultProps.domain,Ef(f,n.filter((function(t){return t.props[i]===y&&!t.props.hide})),"number"),r.defaultProps.allowDataOverflow),v=gy(l,v,y,o)),Sy({},t,_y({},y,Sy({axisType:o},r.defaultProps,{hide:!0,orientation:Ny[o]&&Ny[o][d%2],domain:v,originalDomain:r.defaultProps.domain,isCategorial:h,layout:s}))))}),{})}},{key:"getActiveCoordinate",value:function(t,e,n){var r=this.props.layout,o=t.find((function(t){return t&&t.index===e}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return Sy({},n,{},Hf(n.cx,n.cy,a,i),{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Sy({},n,{},Hf(n.cx,n.cy,c,u),{angle:u,radius:c})}return Iy}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,n,r,o=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,(e=this.container,n=e.ownerDocument.documentElement,r={top:0,left:0},void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var c=this.state,u=c.xAxisMap,s=c.yAxisMap;if("axis"!==a&&u&&s){var l=Fn(u).scale,f=Fn(s).scale;return Sy({},o,{xValue:l&&l.invert?l.invert(o.chartX):null,yValue:f&&f.invert?f.invert(o.chartY):null})}var p=this.state,h=p.orderedTooltipTicks,d=p.tooltipAxis,v=p.tooltipTicks,y=function(t,e,n,r){var o=-1,i=e.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,c=0;c<i;c++){var u=c>0?n[c-1].coordinate:n[i-1].coordinate,s=n[c].coordinate,l=c>=i-1?n[0].coordinate:n[c+1].coordinate,f=void 0;if(Nn(s-u)!==Nn(l-s)){var p=[];if(Nn(l-s)===Nn(a[1]-a[0])){f=l;var h=s+a[1]-a[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{f=u;var d=l+a[1]-a[0];p[0]=Math.min(s,(d+s)/2),p[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=n[c].index;break}}else{var y=Math.min(u,l),m=Math.max(u,l);if(t>(y+s)/2&&t<=(m+s)/2){o=n[c].index;break}}}else for(var g=0;g<i;g++)if(0===g&&t<=(e[g].coordinate+e[g+1].coordinate)/2||g>0&&g<i-1&&t>(e[g].coordinate+e[g-1].coordinate)/2&&t<=(e[g].coordinate+e[g+1].coordinate)/2||g===i-1&&t>(e[g].coordinate+e[g-1].coordinate)/2){o=e[g].index;break}}else o=0;return o}(this.calculateTooltipPos(i),h,v,d);if(y>=0&&v){var m=v[y]&&v[y].value;return Sy({},o,{activeTooltipIndex:y,activeLabel:m,activePayload:this.getTooltipContent(y,m),activeCoordinate:this.getActiveCoordinate(h,y,i)})}return null}},{key:"getTooltipContent",value:function(t,e){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return t<0||!r||!r.length||t>=i.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,c=r.props,u=c.dataKey,s=c.name,l=c.unit,f=c.formatter,p=c.data,h=c.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?Gn(p||i,o.dataKey,e):p&&p[t]||i[t])?[].concat(jy(n),[Sy({},jo(r),{dataKey:u,unit:l,formatter:f,name:s||u,color:xf(r),value:gf(a,u),type:h,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(t,e){var n=this,r=e.graphicalItems,i=e.stackGroups,a=e.offset,u=e.updateId,s=e.dataStartIndex,l=e.dataEndIndex,f=t.barSize,p=t.layout,h=t.barGap,d=t.barCategoryGap,v=t.maxBarSize,y=this.constructor.getAxisNameByLayout(p),m=y.numericAxisName,g=y.cateAxisName,b=this.constructor.hasBar(r),x=b&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,c=i.length;a<c;a++)for(var u=r[i[a]].stackGroups,s=Object.keys(u),l=0,f=s.length;l<f;l++){var p=u[s[l]],h=p.items,d=p.cateAxisId,v=h.filter((function(t){return Oo(t.type).indexOf("Bar")>=0}));if(v&&v.length){var y=v[0].props.barSize,m=v[0].props[d];o[m]||(o[m]=[]),o[m].push({item:v[0],stackList:v.slice(1),barSize:rr()(y)?e:y})}}return o}({barSize:f,stackGroups:i}),w=[];return r.forEach((function(r,f){var y,O,E,k,j=n.constructor.getDisplayedData(t,{dataStartIndex:s,dataEndIndex:l},r),M=r.props,S=M.dataKey,_=M.maxBarSize,A=r.props["".concat(m,"Id")],T=r.props["".concat(g,"Id")],P=c.reduce((function(t,n){var o,i=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],c=i&&i[a];return Sy({},t,(_y(o={},n.axisType,c),_y(o,"".concat(n.axisType,"Ticks"),Mf(c)),o))}),{}),C=P[g],N=P["".concat(g,"Ticks")],I=i&&i[A]&&i[A].hasStack&&function(t,e){var n=t.props.stackId;if(Rn(n)){var r=e[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===t){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(r,i[A].stackGroups),D=Lf(C,N),R=rr()(_)?v:_,L=b&&function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,s=zn(e,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/c,p=i.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*s)>=r&&(p-=(c-1)*s,s=0),p>=r&&f>0&&(l=!0,p=c*(f*=.9));var h={offset:((r-p)/2>>0)-s,size:0};u=i.reduce((function(t,e){var n=[].concat(df(t),[{item:e.item,position:{offset:h.offset+h.size+s,size:l?f:e.barSize}}]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),[])}else{var d=zn(n,r,0,!0);r-2*d-(c-1)*s<=0&&(s=0);var v=(r-2*d-(c-1)*s)/c;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,n){var r=[].concat(df(t),[{item:e.item,position:{offset:d+(v+s)*n+(v-y)/2,size:y}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return u}({barGap:h,barCategoryGap:d,bandSize:D,sizeList:x[T],maxBarSize:R}),B=r&&r.type&&r.type.getComposedData;B&&w.push({props:Sy({},B(Sy({},P,{displayedData:j,props:t,dataKey:S,item:r,bandSize:D,barPosition:L,offset:a,stackedData:I,layout:p,dataStartIndex:s,dataEndIndex:l,onItemMouseLeave:Sf(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Sf(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(f)},_y(y,m,P[m]),_y(y,g,P[g]),_y(y,"animationId",u),y)),childIndex:(O=r,E=t.children,k=-1,o.Children.forEach(E,(function(t,e){t===O&&(k=e)})),k),item:r})})),w}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,o=e.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-i,width:"horizontal"===t?o:r.width-1,height:"horizontal"===t?r.height-1:o}}},{key:"getCursorPoints",value:function(){var t,e,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,c=i.offset;if("horizontal"===o)n=t=a.x,e=c.top,r=c.top+c.height;else if("vertical"===o)r=e=a.y,t=c.left,n=c.left+c.width;else if(!rr()(a.cx)||!rr()(a.cy)){if("centric"!==o){var u=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Hf(u,s,l,f),Hf(u,s,l,p)],cx:u,cy:s,radius:l,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,v=a.innerRadius,y=a.outerRadius,m=a.angle,g=Hf(h,d,v,m),b=Hf(h,d,y,m);t=g.x,e=g.y,n=b.x,r=b.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(t){var e=this.props.layout;return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var c=Fn(i);return Yf({x:t,y:e},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=ko(t,Md)&&"axis"===a?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Sy({},So(this.props,this.handleOuterEvent),{},e)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(t){var r=this,o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!To({props:o}))return null;var l=o.children,f=o.layout,p=o.stackOffset,h=o.data,d=o.reverseStackOrder,v=this.constructor.getAxisNameByLayout(f),y=v.numericAxisName,m=v.cateAxisName,g=Eo(l,n),b=function(t,e,n,r,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[n],c=t[a]||{hasStack:!1,stackGroups:{}};if(Rn(i)){var u=c.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[Bn("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return yf({},t,mf({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return yf({},e,mf({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Pf(t,a.items,o)}))}),{})),yf({},e,mf({},i,c))}),{})}(h,g,"".concat(y,"Id"),"".concat(m,"Id"),p,d),x=c.reduce((function(t,e){return Sy({},t,_y({},"".concat(e.axisType,"Map"),r.getAxisMap(o,Sy({},e,{graphicalItems:g,stackGroups:e.axisType===y&&b,dataStartIndex:i,dataEndIndex:a}))))}),{}),w=this.calculateOffset(Sy({},x,{props:o,graphicalItems:g}));Object.keys(x).forEach((function(t){x[t]=s(o,x[t],w,t.replace("Map",""),e)}));var O=x["".concat(m,"Map")],E=this.tooltipTicksGenerator(O),k=this.getFormatItems(o,Sy({},x,{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:g,stackGroups:b,offset:w}));return Sy({formatedGraphicalItems:k,graphicalItems:g,offset:w,stackGroups:b},E,{},x)}},{key:"addListener",value:function(){xy.on(wy,this.handleReceiveSyncEvent),xy.setMaxListeners&&xy._maxListeners&&xy.setMaxListeners(xy._maxListeners+1)}},{key:"removeListener",value:function(){xy.removeListener(wy,this.handleReceiveSyncEvent),xy.setMaxListeners&&xy._maxListeners&&xy.setMaxListeners(xy._maxListeners-1)}},{key:"calculateOffset",value:function(t){var e=t.props,n=t.graphicalItems,r=t.xAxisMap,o=void 0===r?{}:r,i=t.yAxisMap,a=void 0===i?{}:i,c=e.width,u=e.height,s=e.children,l=e.margin||{},f=ko(s,Mv),p=ko(s,hf),h=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:Sy({},t,_y({},r,t[r]+n.width))}),{left:l.left||0,right:l.right||0}),d=Object.keys(o).reduce((function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:Sy({},t,_y({},r,t[r]+n.height))}),{top:l.top||0,bottom:l.bottom||0}),v=Sy({},d,{},h),y=v.bottom;return f&&(v.bottom+=f.props.height||Mv.defaultProps.height),p&&this.legendInstance&&(v=function(t,e,n,r){var o=n.children,i=n.width,a=n.height,c=n.margin,u=i-(c.left||0)-(c.right||0),s=a-(c.top||0)-(c.bottom||0),l=wf({children:o,items:e,legendWidth:u,legendHeight:s}),f=t;if(l){var p=r||{},h=l.align,d=l.verticalAlign,v=l.layout;("vertical"===v||"horizontal"===v&&"center"===d)&&Dn(t[h])&&(f=yf({},t,mf({},h,f[h]+(p.width||0)))),("horizontal"===v||"vertical"===v&&"center"===h)&&Dn(t[d])&&(f=yf({},t,mf({},d,f[d]+(p.height||0))))}return f}(v,n,e,this.legendInstance.getBBox())),Sy({brushBottom:y},v,{width:c-v.left-v.right,height:u-v.top-v.bottom})}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;rr()(e)||xy.emit(wy,e,this.uniqueChartId,t)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===t||a.props.key===t.key||e===Oo(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var o=this.props,a=o.width,c=o.height;return i.a.createElement(hv,ky({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var t=this,e=this.state.formatedGraphicalItems,n=this.props,r=n.children,i=n.width,a=n.height,c=this.props.margin||{},s=i-(c.left||0)-(c.right||0),l=a-(c.top||0)-(c.bottom||0),f=wf({children:r,formatedGraphicalItems:e,legendWidth:s,legendHeight:l,legendContent:u});if(!f)return null;var p=f.item,h=Ey(f,["item"]);return Object(o.cloneElement)(p,Sy({},h,{chartWidth:i,chartHeight:a,margin:c,ref:function(e){t.legendInstance=e},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var t=this.props.children,e=ko(t,Md);if(!e)return null;var n=this.state,r=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,c=n.activeLabel,u=n.offset;return Object(o.cloneElement)(e,{viewBox:Sy({},u,{x:u.left,y:u.top}),active:r,label:c,payload:r?a:[],coordinate:i})}},{key:"renderActivePoints",value:function(t){var e=t.item,n=t.activePoint,r=t.basePoint,o=t.childIndex,i=t.isRange,a=[],c=e.props.key,u=e.item.props,s=u.activeDot,l=Sy({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:xf(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(o)},jo(s),{},So(s));return a.push(this.constructor.renderActiveDot(s,l,o)),r?a.push(this.constructor.renderActiveDot(s,Sy({},l,{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(o)}),o)):i&&a.push(null),a}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,o=e.height,a=e.width;return i.a.createElement("defs",null,i.a.createElement("clipPath",{id:t},i.a.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"render",value:function(){var t=this;if(!To(this))return null;var e=this.props,n=e.children,r=e.className,o=e.width,a=e.height,c=e.style,u=e.compact,s=Ey(e,["children","className","width","height","style","compact"]),l=jo(s),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return i.a.createElement(ul,ky({},l,{width:o,height:a}),this.renderClipPath(),Do(n,f));var p=this.parseEventsOfWrapper();return i.a.createElement("div",ky({className:xn()("recharts-wrapper",r),style:Sy({position:"relative",cursor:"default",width:o,height:a},c)},p,{ref:function(e){t.container=e}}),i.a.createElement(ul,ky({},l,{width:o,height:a}),this.renderClipPath(),Do(n,f)),this.renderLegend(),this.renderTooltip())}}])&&Ay(l.prototype,f),p&&Ay(l,p),r}(o.Component));return f.displayName=e,f.defaultProps=Sy({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1},l),f.createDefaultState=function(t){var e=t.children,n=t.defaultShowTooltip,r=ko(e,Mv);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!rr()(n)&&n}},f.hasBar=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Oo(t&&t.type);return e&&e.indexOf("Bar")>=0}))},f.getDisplayedData=function(t,e,n){var r=e.graphicalItems,o=e.dataStartIndex,i=e.dataEndIndex,a=(r||[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(jy(t),jy(n)):t}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var c=t.data;return c&&c.length&&Dn(o)&&Dn(i)?c.slice(o,i+1):[]},f};function Ry(t){return(Ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ly(){return(Ly=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function By(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fy(t,e){return!e||"object"!==Ry(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wy(t){return(Wy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Gy(t,e){return(Gy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Uy=function(t){return t.reduce((function(t,e){return e.x===+e.x&&e.y===+e.y&&t.push([e.x,e.y]),t}),[]).join(" ")},Vy=function(t){function e(){return By(this,e),Fy(this,Wy(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gy(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.points,n=t.className;if(!e||!e.length)return null;var r=xn()("recharts-polygon",n);return i.a.createElement("polygon",Ly({},jo(this.props),So(this.props),{className:r,points:Uy(e)}))}}])&&zy(n.prototype,r),o&&zy(n,o),e}(o.PureComponent);Vy.displayName="Polygon";var Hy=Vy;function Xy(t){return(Xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qy(){return(qy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ky(n,!0).forEach((function(e){Zy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ky(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qy(t,e){return!e||"object"!==Xy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tm(t){return(tm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function em(t,e){return(em=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var nm=Math.PI/180,rm=function(t){function e(){return $y(this,e),Qy(this,tm(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&em(t,e)}(e,t),n=e,o=[{key:"renderTickItem",value:function(t,e,n){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(lh,qy({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],(r=[{key:"getTickLineCoord",value:function(t){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.orientation,a=e.tickLine,c=a&&a.size||8,u=Hf(n,r,o,t.coordinate),s=Hf(n,r,o+("inner"===i?-1:1)*c,t.coordinate);return{x1:u.x,y1:u.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,n=Math.cos(-t.coordinate*nm);return n>1e-5?"outer"===e?"start":"end":n<-1e-5?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.radius,o=t.axisLine,a=t.axisLineType,c=Yy({},jo(this.props),{fill:"none"},jo(o));if("circle"===a)return i.a.createElement(Vd,qy({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:n,r:r}));var u=this.props.ticks.map((function(t){return Hf(e,n,r,t.coordinate)}));return i.a.createElement(Hy,qy({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,o=e.tickLine,a=e.tickFormatter,c=e.stroke,u=jo(this.props),s=jo(r),l=Yy({},u,{fill:"none"},jo(o)),f=n.map((function(e,n){var f=t.getTickLineCoord(e),p=Yy({textAnchor:t.getTickTextAnchor(e)},u,{stroke:"none",fill:c},s,{index:n,payload:e,x:f.x2,y:f.y2});return i.a.createElement(po,qy({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Ao(t.props,e,n)),o&&i.a.createElement("line",qy({className:"recharts-polar-angle-axis-tick-line"},l,f)),r&&t.constructor.renderTickItem(r,p,a?a(e.value):e.value))}));return i.a.createElement(po,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,r=t.axisLine;return n<=0||!e||!e.length?null:i.a.createElement(po,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&Jy(n.prototype,r),o&&Jy(n,o),e}(o.PureComponent);rm.displayName="PolarAngleAxis",rm.axisType="angleAxis",rm.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0};var om=rm,im=n("gPaA"),am=n.n(im),cm=n("FyPc"),um=n.n(cm);function sm(t){return(sm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lm(){return(lm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fm(n,!0).forEach((function(e){hm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fm(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dm(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function vm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ym(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mm(t,e){return!e||"object"!==sm(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gm(t){return(gm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bm(t,e){return(bm=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var xm=function(t){function e(){return vm(this,e),mm(this,gm(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bm(t,e)}(e,t),n=e,o=[{key:"renderTickItem",value:function(t,e,n){return i.a.isValidElement(t)?i.a.cloneElement(t,e):er()(t)?t(e):i.a.createElement(lh,lm({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],(r=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return Hf(o,i,e,r)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,o=t.ticks,i=um()(o,(function(t){return t.coordinate||0}));return{cx:e,cy:n,startAngle:r,endAngle:r,innerRadius:am()(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,o=t.ticks,a=t.axisLine,c=dm(t,["cx","cy","angle","ticks","axisLine"]),u=o.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),s=Hf(e,n,u[0],r),l=Hf(e,n,u[1],r),f=pm({},jo(c),{fill:"none"},jo(a),{x1:s.x,y1:s.y,x2:l.x,y2:l.y});return i.a.createElement("line",lm({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,o=e.angle,a=e.tickFormatter,c=e.stroke,u=dm(e,["ticks","tick","angle","tickFormatter","stroke"]),s=this.getTickTextAnchor(),l=jo(u),f=jo(r),p=n.map((function(e,n){var u=t.getTickValueCoord(e),p=pm({textAnchor:s,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},l,{stroke:"none",fill:c},f,{index:n},u,{payload:e});return i.a.createElement(po,lm({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Ao(t.props,e,n)),t.constructor.renderTickItem(r,p,a?a(e.value):e.value))}));return i.a.createElement(po,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,r=t.tick;return e&&e.length?i.a.createElement(po,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),mh.renderCallByParent(this.props,this.getViewBox())):null}}])&&ym(n.prototype,r),o&&ym(n,o),e}(o.PureComponent);xm.displayName="PolarRadiusAxis",xm.axisType="radiusAxis",xm.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var wm=Dy({chartName:"PieChart",GraphicalChild:Hh,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:om},{axisType:"radiusAxis",AxisComp:xm}],formatAxisMap:function(t,e,n,r,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,s=zn(t.cx,i,i/2),l=zn(t.cy,a,a/2),f=Xf(i,a,n),p=zn(t.innerRadius,f,0),h=zn(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,n){var i,a=e[n],f=a.domain,d=a.reversed;if(rr()(a.range))"angleAxis"===r?i=[c,u]:"radiusAxis"===r&&(i=[p,h]),d&&(i=[i[1],i[0]]);else{var v=Gf(i=a.range,2);c=v[0],u=v[1]}var y=_f(a,o),m=y.realScaleType,g=y.scale;g.domain(f).range(i),Af(g);var b=Cf(g,Ff({},a,{realScaleType:m})),x=Ff({},a,{},b,{range:i,radius:h,realScaleType:m,scale:g,cx:s,cy:l,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return Ff({},t,Wf({},n,x))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:yt.a.oneOf(["centric"]),startAngle:yt.a.number,endAngle:yt.a.number,cx:yt.a.oneOfType([yt.a.number,yt.a.string]),cy:yt.a.oneOfType([yt.a.number,yt.a.string]),innerRadius:yt.a.oneOfType([yt.a.number,yt.a.string]),outerRadius:yt.a.oneOfType([yt.a.number,yt.a.string])}}),Om=[{name:"Group A",value:400},{name:"Group B",value:300}],Em=[{name:"A1",value:100},{name:"A2",value:300},{name:"B1",value:100},{name:"B2",value:80}];function km(){$();return i.a.createElement(i.a.Fragment,null,i.a.createElement(vn,null,"Market Segment"),i.a.createElement(Yn,null,i.a.createElement(wm,{width:200,height:200},i.a.createElement(Hh,{data:Om,dataKey:"value",cx:"50%",cy:"50%",outerRadius:60,fill:"#8884d8"}),i.a.createElement(Hh,{data:Em,dataKey:"value",cx:"50%",cy:"50%",innerRadius:70,outerRadius:90,fill:"#82ca9d",label:!0}),i.a.createElement(Hh,{data:Om,dataKey:"value",cx:"50%",cy:"50%",innerRadius:100,outerRadius:120,fill:"#8884d8",label:!0}),i.a.createElement(Hh,{data:Em,dataKey:"value",cx:"50%",cy:"50%",innerRadius:130,outerRadius:150,fill:"#82ca9d",label:!0}),i.a.createElement(Hh,{data:Om,dataKey:"value",cx:"50%",cy:"50%",innerRadius:160,outerRadius:180,fill:"#8884d8",label:!0}),i.a.createElement(Hh,{data:Em,dataKey:"value",cx:"50%",cy:"50%",innerRadius:190,outerRadius:210,fill:"#82ca9d",label:!0}),i.a.createElement(Hh,{data:Om,dataKey:"value",cx:"50%",cy:"50%",innerRadius:220,outerRadius:240,fill:"#8884d8",label:!0}))))}function jm(){return i.a.createElement(ee,{variant:"body2",color:"textSecondary",align:"center"}," ",i.a.createElement(Be,{color:"inherit",href:"https://asa55.github.io/"},"Click here to visit my homepage")," ")}var Mm=l((function(t){var e;return{root:{display:"flex"},toolbar:{paddingRight:24},toolbarIcon:Object.assign({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0 8px"},t.mixins.toolbar),appBar:{zIndex:t.zIndex.drawer+1,transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen})},appBarShift:{marginLeft:240,width:"calc(100% - 240px)",transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})},menuButton:{marginRight:36},menuButtonHidden:{display:"none"},title:{flexGrow:1},drawerPaper:{position:"relative",whiteSpace:"nowrap",width:240,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})},drawerPaperClose:(e={overflowX:"hidden",transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),width:t.spacing(7)},e[t.breakpoints.up("sm")]={width:t.spacing(9)},e),appBarSpacer:t.mixins.toolbar,content:{flexGrow:1,height:"100vh",overflow:"auto"},container:{paddingTop:t.spacing(4),paddingBottom:t.spacing(4)},paper:{padding:t.spacing(2),display:"flex",flexDirection:"column"},fixedHeight:{height:"80vh"}}}));function Sm(){var t=Mm(),e=i.a.useState(!0),n=e[0],r=e[1],o=Object(a.a)(t.paper,t.fixedHeight);return i.a.createElement("div",{className:t.root},i.a.createElement(f.a,null),i.a.createElement(qt,{position:"absolute",className:Object(a.a)(t.appBar,n&&t.appBarShift)},i.a.createElement(Yt,{className:t.toolbar},i.a.createElement(Ae,{edge:"start",color:"inherit","aria-label":"open drawer",onClick:function(){r(!0)},className:Object(a.a)(t.menuButton,n&&t.menuButtonHidden)},i.a.createElement(Fe.a,null)),i.a.createElement(ee,{component:"h1",variant:"h6",color:"inherit",noWrap:!0,className:t.title},"market-segmentation-tool"))),i.a.createElement(dt,{variant:"permanent",classes:{paper:Object(a.a)(t.drawerPaper,!n&&t.drawerPaperClose)},open:n},i.a.createElement("div",{className:t.toolbarIcon},i.a.createElement(Ae,{onClick:function(){r(!1)}},i.a.createElement(Ge.a,null))),i.a.createElement(oe,null),i.a.createElement(Jt,null,dn)),i.a.createElement("main",{className:t.content},i.a.createElement("div",{className:t.appBarSpacer}),i.a.createElement(Pe,{className:t.container},i.a.createElement(Re,{container:!0,spacing:3},i.a.createElement(Re,{item:!0,xs:12,md:12,lg:12},i.a.createElement(st,{className:o},i.a.createElement(km,null)))),i.a.createElement(Ht,{pt:4},i.a.createElement(jm,null)))))}function _m(){return i.a.createElement(Sm,null)}},SKAX:function(t,e,n){var r=n("JC6p"),o=n("lQqw")(r);t.exports=o},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SfRM:function(t,e,n){var r=n("YESw");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},Sxd8:function(t,e,n){var r=n("ZCgT");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},TSYQ:function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},UB5X:function(t,e,n){var r=n("NykK"),o=n("ExA7");t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},UJJ5:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n("wx14"),o=n("Ff2n"),i=n("q1tI"),a=n("iuhU"),c=n("H2TA"),u=n("NqtD"),s=i.forwardRef((function(t,e){var n=t.children,c=t.classes,s=t.className,l=t.color,f=void 0===l?"inherit":l,p=t.component,h=void 0===p?"svg":p,d=t.fontSize,v=void 0===d?"default":d,y=t.htmlColor,m=t.titleAccess,g=t.viewBox,b=void 0===g?"0 0 24 24":g,x=Object(o.a)(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,Object(r.a)({className:Object(a.a)(c.root,s,"inherit"!==f&&c["color".concat(Object(u.a)(f))],"default"!==v&&c["fontSize".concat(Object(u.a)(v))]),focusable:"false",viewBox:b,color:y,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:e},x),n,m?i.createElement("title",null,m):null)}));s.muiName="SvgIcon";var l=Object(c.a)((function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s)},"UNi/":function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},UfWW:function(t,e,n){var r=n("KwMD"),o=n("ut/Y"),i=n("Sxd8"),a=Math.max;t.exports=function(t,e,n){var c=null==t?0:t.length;if(!c)return-1;var u=null==n?0:i(n);return u<0&&(u=a(c+u,0)),r(t,o(e,3),u)}},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},V6Ve:function(t,e,n){var r=n("kekF")(Object.keys,Object);t.exports=r},V9xz:function(t,e){t.exports=function(t,e){return t>e}},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VLnT:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n("17x9"));var r=c(n("4pcU")),o=c(n("uXtZ")),i=c(n("q1tI")),a=c(n("ymJY"));n("aDLZ");function c(t){return t&&t.__esModule?t:{default:t}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),s(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=n?r+" "+o:o;e.removeClasses(t,n?"appear":"enter"),s(t,i),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),s(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),s(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{className:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(t,r),o&&l(t,o),i&&l(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,s(t,e))},o.render=function(){var t=u({},this.props);return delete t.classNames,i.default.createElement(a.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},VaNO:function(t,e){t.exports=function(t){return this.__data__.has(t)}},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WFqU:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("yLpj"))},WJkJ:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},WjpJ:function(t,e,n){var r=n("HLqC")();t.exports=r},XGnz:function(t,e,n){var r=n("CH3K"),o=n("BiGR");t.exports=function t(e,n,i,a,c){var u=-1,s=e.length;for(i||(i=o),c||(c=[]);++u<s;){var l=e[u];n>0&&i(l)?n>1?t(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},XKAG:function(t,e,n){var r=n("ut/Y"),o=n("MMmD"),i=n("7GkX");t.exports=function(t){return function(e,n,a){var c=Object(e);if(!o(e)){var u=r(n,3);e=i(e),n=function(t){return u(c[t],t,c)}}var s=t(e,n,a);return s>-1?c[u?e[s]:s]:void 0}}},Xi7e:function(t,e,n){var r=n("KMkd"),o=n("adU4"),i=n("tMB7"),a=n("+6XX"),c=n("Z8oC");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},"Xt/L":function(t,e){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},XzbM:function(t,e,n){var r=n("3L66");t.exports=function(t){return r(t)?t:[]}},"Y+p1":function(t,e,n){var r=n("wF/u");t.exports=function(t,e){return r(t,e)}},YESw:function(t,e,n){var r=n("Cwc5")(Object,"create");t.exports=r},YO3V:function(t,e,n){var r=n("NykK"),o=n("LcsW"),i=n("ExA7"),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Z0cm:function(t,e){var n=Array.isArray;t.exports=n},Z8oC:function(t,e,n){var r=n("y1pI");t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},ZCgT:function(t,e,n){var r=n("tLB3");t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},ZCpW:function(t,e,n){var r=n("lm/5"),o=n("O7RO"),i=n("IOzZ");t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},ZKJj:function(t,e){var n=function(t){this.value=t};n.math={isDegree:!0,acos:function(t){return n.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,e){return t+e},asin:function(t){return n.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){return n.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,e){var r=1,o=t-e,i=e;i<o&&(i=o,o=e);for(var a=i+1;a<=t;a++)r*=a;return r/n.math.fact(o)},changeSign:function(t){return-t},cos:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},div:function(t,e){return t/e},fact:function(t){if(t%1!=0)return"NaN";for(var e=1,n=2;n<=t;n++)e*=n;return e},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,e){return t%e},mul:function(t,e){return t*e},P:function(t,e){for(var n=1,r=Math.floor(t)-Math.floor(e)+1;r<=Math.floor(t);r++)n*=r;return n},Pi:function(t,e,n){for(var r=1,o=t;o<=e;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(t){for(var e=1;t--;)e*=10;return e},sigma:function(t,e,n){for(var r=0,o=t;o<=e;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,e){return t-e},tan:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.tan(t)},tanh:function(t){return n.sinha(t)/n.cosha(t)},toRadian:function(t){return t*Math.PI/180}},n.Exception=function(t){this.message=t},t.exports=n},ZPYa:function(t,e,n){var r=n("Ecnz");r.prototype.postfixEval=function(t){"use strict";(t=t||{}).PI=Math.PI,t.E=Math.E;for(var e,n,o,i=[],a=this.value,c=void 0!==t.n,u=0;u<a.length;u++)1===a[u].type?i.push({value:a[u].value,type:1}):3===a[u].type?i.push({value:t[a[u].value],type:1}):0===a[u].type||7===a[u].type?void 0===i[i.length-1].type?i[i.length-1].value.push(a[u]):i[i.length-1].value=a[u].value(i[i.length-1].value):8===a[u].type?(e=i.pop(),n=i.pop(),i.push({type:1,value:a[u].value(n.value,e.value)})):10===a[u].type?(e=i.pop(),void 0===(n=i.pop()).type?(n.value=n.concat(e),n.value.push(a[u]),i.push(n)):void 0===e.type?(e.unshift(n),e.push(a[u]),i.push(e)):i.push({type:1,value:a[u].value(n.value,e.value)})):2===a[u].type||9===a[u].type?(e=i.pop(),void 0===(n=i.pop()).type?(console.log(n),(n=n.concat(e)).push(a[u]),i.push(n)):void 0===e.type?(e.unshift(n),e.push(a[u]),i.push(e)):i.push({type:1,value:a[u].value(n.value,e.value)})):12===a[u].type?(void 0!==(e=i.pop()).type&&(e=[e]),n=i.pop(),o=i.pop(),i.push({type:1,value:a[u].value(o.value,n.value,new r(e))})):13===a[u].type&&(c?i.push({value:t[a[u].value],type:3}):i.push([a[u]]));if(i.length>1)throw new r.exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(t,e,n){return void 0===e?this.lex(t).toPostfix().postfixEval():void 0===n?void 0!==e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},ZWtO:function(t,e,n){var r=n("4uTw"),o=n("9Nap");t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},ZirO:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},aDLZ:function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n("17x9"))&&r.__esModule;e.timeoutsShape=null;e.classNamesShape=null},adU4:function(t,e,n){var r=n("y1pI"),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},alwl:function(t,e,n){var r=n("eUgh"),o=n("ZWtO"),i=n("ut/Y"),a=n("l9OW"),c=n("1LK5"),u=n("sEf8"),s=n("IWTy"),l=n("zZ0H"),f=n("Z0cm");t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[l];var p=-1;e=r(e,u(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return c(h,(function(t,e){return s(t,e,n)}))}},b80T:function(t,e,n){var r=n("UNi/"),o=n("03A+"),i=n("Z0cm"),a=n("DSRE"),c=n("wJg7"),u=n("c6wG"),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),p=!n&&!l&&!f&&u(t),h=n||l||f||p,d=h?r(t.length,String):[],v=d.length;for(var y in t)!e&&!s.call(t,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||d.push(y);return d}},bQgK:function(t,e,n){(function(e){(function(){var n,r,o,i,a,c;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,i=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),c=1e9*e.uptime(),a=i-c):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n("8oxB"))},bdgK:function(t,e,n){"use strict";n.r(e),function(t){n("E9XD");var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&u()}function c(){a(i)}function u(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,e);o=t}return u}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=g(0,0,0,0);function h(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+h(t["border-"+n+"-width"])}),0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=h(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,c=h(r.width),u=h(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==e&&(c-=d(r,"left","right")+i),Math.round(u+a)!==n&&(u-=d(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var s=Math.round(c+i)-e,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return g(o.left,o.top,c,u)}var y="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function m(t){return o?y(t)?function(t){var e=t.getBBox();return g(0,0,e.width,e.height)}(t):v(t):p}function g(t,e,n,r){return{x:t,y:e,width:n,height:r}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),x=function(t,e){var n,r,o,i,a,c,u,s=(r=(n=e).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:t,contentRect:s})},w=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new x(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,E=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(e,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));var k=void 0!==i.ResizeObserver?i.ResizeObserver:E;e.default=k}.call(this,n("yLpj"))},c6wG:function(t,e,n){var r=n("dD9F"),o=n("sEf8"),i=n("mdPL"),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"cq/+":function(t,e,n){var r=n("mc0g")();t.exports=r},cvCv:function(t,e){t.exports=function(t){return function(){return t}}},dD9F:function(t,e,n){var r=n("NykK"),o=n("shjB"),i=n("ExA7"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},dF2P:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;a(n("17x9"));var r=a(n("q1tI")),o=n("i8i4"),i=a(n("gs0p"));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var c=a.prototype;return c.handleLifecycle=function(t,e,n){var i,a=this.props.children,c=r.default.Children.toArray(a)[e];c.props[t]&&(i=c.props)[t].apply(i,n),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},c.render=function(){var t=this.props,e=t.children,n=t.in,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),c=a[0],u=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(c,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);c.propTypes={};var u=c;e.default=u,t.exports=e.default},dQpi:function(t,e,n){var r=n("yGk4"),o=n("vN+2"),i=n("rEGp"),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},dpRl:function(t,e,n){"use strict";var r=c(n("VLnT")),o=c(n("dF2P")),i=c(n("gs0p")),a=c(n("ymJY"));function c(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},dt0z:function(t,e,n){var r=n("zoYe");t.exports=function(t){return null==t?"":r(t)}},dunj:function(t,e,n){var r=n("/9aa");t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===u?c==c&&!r(c):n(c,u)))var u=c,s=a}return s}},e4Nc:function(t,e,n){var r=n("fGT3"),o=n("k+1r"),i=n("JHgL"),a=n("pSRY"),c=n("H8j4");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},e5cp:function(t,e,n){var r=n("fmRc"),o=n("or5M"),i=n("HDyB"),a=n("seXi"),c=n("QqLw"),u=n("Z0cm"),s=n("DSRE"),l=n("c6wG"),f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,d,v){var y=u(t),m=u(e),g=y?"[object Array]":c(t),b=m?"[object Array]":c(e),x=(g="[object Arguments]"==g?f:g)==f,w=(b="[object Arguments]"==b?f:b)==f,O=g==b;if(O&&s(t)){if(!s(e))return!1;y=!0,x=!1}if(O&&!x)return v||(v=new r),y||l(t)?o(t,e,n,h,d,v):i(t,e,g,n,h,d,v);if(!(1&n)){var E=x&&p.call(t,"__wrapped__"),k=w&&p.call(e,"__wrapped__");if(E||k){var j=E?t.value():t,M=k?e.value():e;return v||(v=new r),d(j,M,n,h,v)}}return!!O&&(v||(v=new r),a(t,e,n,h,d,v))}},eJiR:function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},eUgh:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},eajv:function(t,e,n){var r=n("I+eb"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},ebwN:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Map");t.exports=r},ekgI:function(t,e,n){var r=n("YESw"),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},f7Mu:function(t,e,n){var r=n("ZKJj");function o(t,e){for(var n=0;n<t.length;n++)t[n]+=e;return t}var i=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],a=["sin","cos","tan","π","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","÷","!","tanh","atanh"," Mod ","1","2","3","×","sinh","asinh","e"," log","0",".","+","-",",","Σ","n","Π","pow"],c=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],u={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},s=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],l={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},f={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},p={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},h={},d={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},v={1:!0},y=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function m(t,e,n,r){for(var o=0;o<r;o++)if(t[n+o]!==e[o])return!1;return!0}r.addToken=function(t){for(var e=0;e<t.length;e++){var n=t[e].token.length,r=-1;if(n<y.length)for(var o=0;o<y[n].length;o++)if(t[e].token===y[n][o]){r=i.indexOf(y[n][o]);break}-1===r?(i.push(t[e].token),s.push(t[e].type),y.length<=t[e].token.length&&(y[t[e].token.length]=[]),y[t[e].token.length].push(t[e].token),c.push(t[e].value),a.push(t[e].show)):(i[r]=t[e].token,s[r]=t[e].type,c[r]=t[e].value,a[r]=t[e].show)}},r.lex=function(t,e){"use strict";var n,g,b,x,w={value:r.math.changeSign,type:0,pre:21,show:"-"},O={value:")",show:")",type:5,pre:0},E={value:"(",type:4,pre:0,show:"("},k=[E],j=[],M=t,S=l,_=0,A=h,T="";void 0!==e&&r.addToken(e);var P={};for(g=0;g<M.length;g++)if(" "!==M[g]){for(n="",b=M.length-g>y.length-2?y.length-1:M.length-g;b>0;b--)if(void 0!==y[b])for(x=0;x<y[b].length;x++)m(M,y[b][x],g,b)&&(n=y[b][x],x=y[b].length,b=0);if(g+=n.length-1,""===n)throw new r.Exception("Can't understand after "+M.slice(g));var C,N=i.indexOf(n),I=n,D=s[N],R=c[N],L=u[D],B=a[N],z=k[k.length-1];for(C=j.length;C--&&0===j[C];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(D)){if(!0!==S[D])throw new r.Exception(n+" is not allowed after "+T);k.push(O),S=f,A=d,o(j,-1).pop()}if(!0!==S[D])throw new r.Exception(n+" is not allowed after "+T);if(!0===A[D]&&(D=2,R=r.math.mul,B="×",L=3,g-=n.length),P={value:R,type:D,pre:L,show:B},0===D)S=l,A=h,o(j,2).push(2),k.push(P),k.push(E);else if(1===D)1===z.type?(z.value+=R,o(j,1)):k.push(P),S=f,A=p;else if(2===D)S=l,A=h,o(j,2),k.push(P);else if(3===D)k.push(P),S=f,A=d;else if(4===D)o(j,1),_++,S=l,A=h,k.push(P);else if(5===D){if(!_)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");_--,S=f,A=d,k.push(P)}else if(6===D){if(z.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==z.type&&(z={value:0,type:1,pre:0},k.push(z),o(j,-1)),S=v,o(j,1),A=h,z.value+=R,z.hasDec=!0}else 7===D&&(S=f,A=d,o(j,1),k.push(P));8===D?(S=l,A=h,o(j,4).push(4),k.push(P),k.push(E)):9===D?(9===z.type?z.value===r.math.add?(z.value=R,z.show=B,o(j,1)):z.value===r.math.sub&&"-"===B&&(z.value=r.math.add,z.show="+",o(j,1)):5!==z.type&&7!==z.type&&1!==z.type&&3!==z.type&&13!==z.type?"-"===I&&(S=l,A=h,o(j,2).push(2),k.push(w),k.push(E)):(k.push(P),o(j,2)),S=l,A=h):10===D?(S=l,A=h,o(j,2),k.push(P)):11===D?(S=l,A=h,k.push(P)):12===D?(S=l,A=h,o(j,6).push(6),k.push(P),k.push(E)):13===D&&(S=f,A=d,k.push(P)),o(j,-1),T=n}for(C=j.length;C--&&0===j[C];)k.push(O),o(j,-1).pop();if(!0!==S[5])throw new r.Exception("complete the expression");for(;_--;)k.push(O);return k.push(O),new r(k)},t.exports=r},fGT3:function(t,e,n){var r=n("4kuk"),o=n("Xi7e"),i=n("ebwN");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),l=n("93I0"),f=l("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var t,e;d=r?function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[f]=t):n=d(),void 0===e?n:i(n,e)}},"fR/l":function(t,e,n){var r=n("CH3K"),o=n("Z0cm");t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},fhKU:function(t,e,n){var r=n("2oRo"),o=n("WKiH").trim,i=n("WJkJ"),a=r.parseFloat,c=1/a(i+"-0")!=-1/0;t.exports=c?function(t){var e=o(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},fmRc:function(t,e,n){var r=n("Xi7e"),o=n("77Zs"),i=n("L8xA"),a=n("gCq4"),c=n("VaNO"),u=n("0Cz8");function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},ftKO:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},gCq4:function(t,e){t.exports=function(t){return this.__data__.get(t)}},gPaA:function(t,e,n){var r=n("dunj"),o=n("ut/Y"),i=n("jSBL");t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},gs0p:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=c(n("17x9")),o=c(n("q1tI")),i=n("94VI"),a=n("Gj0f");function c(t){return t&&t.__esModule?t:{default:t}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,n;function r(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},i.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=u({},e.children);return delete n[t.key],{children:n}})))},i.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},"hKI/":function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,s=c||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return s.Date.now()};function d(t,e,n){var r,o,i,a,c,u,s=0,l=!1,d=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=r,i=o;return r=o=void 0,s=e,a=t.apply(i,n)}function b(t){return s=t,c=setTimeout(w,e),l?g(t):a}function x(t){var n=t-u;return void 0===u||n>=e||n<0||d&&t-s>=i}function w(){var t=h();if(x(t))return O(t);c=setTimeout(w,function(t){var n=e-(t-u);return d?p(n,i-(t-s)):n}(t))}function O(t){return c=void 0,m&&r?g(t):(r=o=void 0,a)}function E(){var t=h(),n=x(t);if(r=arguments,o=this,u=t,n){if(void 0===c)return b(u);if(d)return c=setTimeout(w,e),g(u)}return void 0===c&&(c=setTimeout(w,e)),a}return e=y(e)||0,v(n)&&(l=!!n.leading,i=(d="maxWait"in n)?f(y(n.maxWait)||0,e):i,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==c&&clearTimeout(c),s=0,r=u=o=c=void 0},E.flush=function(){return void 0===c?a:O(h())},E}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var c=o.test(t);return c||i.test(t)?a(t.slice(2),c?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return v(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),d(t,e,{leading:r,maxWait:e,trailing:o})}}).call(this,n("yLpj"))},haXk:function(t,e,n){var r;!function(o){"use strict";var i,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,u="[DecimalError] ",s=u+"Invalid argument: ",l=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,v=f(1286742750677284.5),y={};function m(t,e){var n,r,o,i,a,u,s,l,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?S(e,p):e;if(s=t.d,l=e.d,a=t.e,o=e.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,u=l.length):(r=l,o=a,u=s.length),i>(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=s.length)-(i=l.length)<0&&(i=u,r=l,l=s,s=r),n=0;i;)n=(s[--i]=s[i]+l[i]+n)/d|0,s[i]%=d;for(n&&(s.unshift(n),++o),u=s.length;0==s[--u];)s.pop();return e.d=s,e.e=o,c?S(e,p):e}function g(t,e,n){if(t!==~~t||t<e||t>n)throw Error(s+t)}function b(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(n=7-(r=t[e]+"").length)&&(i+=k(n)),i+=r;(n=7-(r=(a=t[e])+"").length)&&(i+=k(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}y.absoluteValue=y.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},y.comparedTo=y.cmp=function(t){var e,n,r,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,n=(r=i.d.length)<(o=t.d.length)?r:o;e<n;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(t){return x(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return S(x(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return this.cmp(t)<0},y.lessThanOrEqualTo=y.lte=function(t){return this.cmp(t)<1},y.logarithm=y.log=function(t){var e,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(c=!1,e=x(j(n,a),j(t,a),a),c=!0,S(e,o))},y.minus=y.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_(e,t):m(e,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this,r=n.constructor,o=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return n.s?(c=!1,e=x(n,t,0,1).times(t),c=!0,n.minus(e)):S(new r(n),o)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return j(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?m(e,t):_(e,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(s+t);if(e=O(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(u+"NaN")}for(t=O(s),c=!1,0==(o=Math.sqrt(+s))||o==1/0?(((e=b(s.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(x(s,i,a+2)).times(.5),b(i.d).slice(0,a)===(e=b(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(S(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=e)break;a+=4}return c=!0,S(r,n)},y.times=y.mul=function(t){var e,n,r,o,i,a,u,s,l,f=this,p=f.constructor,h=f.d,v=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.e,(s=h.length)<(l=v.length)&&(i=h,h=v,v=i,a=s,s=l,l=a),i=[],r=a=s+l;r--;)i.push(0);for(r=l;--r>=0;){for(e=0,o=s+r;o>r;)u=i[o]+v[r]*h[o-r-1]+e,i[o--]=u%d|0,e=u/d|0;i[o]=(i[o]+e)%d|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=n,c?S(t,p.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(g(t,0,1e9),void 0===e?e=r.rounding:g(e,0,8),S(n,t+O(n)+1,e))},y.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=A(r,!0):(g(t,0,1e9),void 0===e?e=o.rounding:g(e,0,8),n=A(r=S(new o(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?A(o):(g(t,0,1e9),void 0===e?e=i.rounding:g(e,0,8),n=A((r=S(new i(o),t+O(o)+1,e)).abs(),!1,t+O(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this,e=t.constructor;return S(new e(t),O(t)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,o,a,s,l=this,p=l.constructor,h=+(t=new p(t));if(!t.s)return new p(i);if(!(l=new p(l)).s){if(t.s<1)throw Error(u+"Infinity");return l}if(l.eq(i))return l;if(r=p.precision,t.eq(i))return S(l,r);if(s=(e=t.e)>=(n=t.d.length-1),a=l.s,s){if((n=h<0?-h:h)<=9007199254740991){for(o=new p(i),e=Math.ceil(r/7+4),c=!1;n%2&&T((o=o.times(l)).d,e),0!==(n=f(n/2));)T((l=l.times(l)).d,e);return c=!0,t.s<0?new p(i).div(o):S(o,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,c=!1,o=t.times(j(l,r+12)),c=!0,(o=w(o)).s=a,o},y.toPrecision=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?r=A(o,(n=O(o))<=i.toExpNeg||n>=i.toExpPos):(g(t,1,1e9),void 0===e?e=i.rounding:g(e,0,8),r=A(o=S(new i(o),t,e),t<=(n=O(o))||n<=i.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(g(t,1,1e9),void 0===e?e=n.rounding:g(e,0,8)),S(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=this,e=O(t),n=t.constructor;return A(t,e<=n.toExpNeg||e>=n.toExpPos)};var x=function(){function t(t,e){var n,r=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+r,t[o]=n%d|0,r=n/d|0;return r&&t.unshift(r),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*d+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,o,i,a){var c,s,l,f,p,h,v,y,m,g,b,x,w,E,k,j,M,_,A=r.constructor,T=r.s==o.s?1:-1,P=r.d,C=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(u+"Division by zero");for(s=r.e-o.e,M=C.length,k=P.length,y=(v=new A(T)).d=[],l=0;C[l]==(P[l]||0);)++l;if(C[l]>(P[l]||0)&&--s,(x=null==i?i=A.precision:a?i+(O(r)-O(o))+1:i)<0)return new A(0);if(x=x/7+2|0,l=0,1==M)for(f=0,C=C[0],x++;(l<k||f)&&x--;l++)w=f*d+(P[l]||0),y[l]=w/C|0,f=w%C|0;else{for((f=d/(C[0]+1)|0)>1&&(C=t(C,f),P=t(P,f),M=C.length,k=P.length),E=M,g=(m=P.slice(0,M)).length;g<M;)m[g++]=0;(_=C.slice()).unshift(0),j=C[0],C[1]>=d/2&&++j;do{f=0,(c=e(C,m,M,g))<0?(b=m[0],M!=g&&(b=b*d+(m[1]||0)),(f=b/j|0)>1?(f>=d&&(f=d-1),1==(c=e(p=t(C,f),m,h=p.length,g=m.length))&&(f--,n(p,M<h?_:C,h))):(0==f&&(c=f=1),p=C.slice()),(h=p.length)<g&&p.unshift(0),n(m,p,g),-1==c&&(c=e(C,m,M,g=m.length))<1&&(f++,n(m,M<g?_:C,g)),g=m.length):0===c&&(f++,m=[0]),y[l++]=f,c&&m[0]?m[g++]=P[E]||0:(m=[P[E]],g=1)}while((E++<k||void 0!==m[0])&&x--)}return y[0]||y.shift(),v.e=s,S(v,a?i+O(v)+1:i)}}();function w(t,e){var n,r,o,a,u,s=0,f=0,h=t.constructor,d=h.precision;if(O(t)>16)throw Error(l+O(t));if(!t.s)return new h(i);for(null==e?(c=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new h(i),h.precision=u;;){if(r=S(r.times(t),u),n=n.times(++s),b((a=o.plus(x(r,n,u))).d).slice(0,u)===b(o.d).slice(0,u)){for(;f--;)o=S(o.times(o),u);return h.precision=d,null==e?(c=!0,S(o,d)):o}o=a}}function O(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function E(t,e,n){if(e>t.LN10.sd())throw c=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return S(new t(t.LN10),e)}function k(t){for(var e="";t--;)e+="0";return e}function j(t,e){var n,r,o,a,s,l,f,p,h,d=1,v=t,y=v.d,m=v.constructor,g=m.precision;if(v.s<1)throw Error(u+(v.s?"NaN":"-Infinity"));if(v.eq(i))return new m(0);if(null==e?(c=!1,p=g):p=e,v.eq(10))return null==e&&(c=!0),E(m,p);if(p+=10,m.precision=p,r=(n=b(y)).charAt(0),a=O(v),!(Math.abs(a)<15e14))return f=E(m,p+2,g).times(a+""),v=j(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=g,null==e?(c=!0,S(v,g)):v;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((v=v.times(t)).d)).charAt(0),d++;for(a=O(v),r>1?(v=new m("0."+n),a++):v=new m(r+"."+n.slice(1)),l=s=v=x(v.minus(i),v.plus(i),p),h=S(v.times(v),p),o=3;;){if(s=S(s.times(h),p),b((f=l.plus(x(s,new m(o),p))).d).slice(0,p)===b(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(E(m,p+2,g).times(a+""))),l=x(l,new m(d),p),m.precision=g,null==e?(c=!0,S(l,g)):l;l=f,o+=2}}function M(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(r,o)){if(o-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&t.d.push(+e.slice(0,r)),o-=7;r<o;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=o;for(;r--;)e+="0";if(t.d.push(+e),c&&(t.e>v||t.e<-v))throw Error(l+n)}else t.s=0,t.e=0,t.d=[0];return t}function S(t,e,n){var r,o,i,a,u,s,h,y,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=e-a)<0)r+=7,o=e,h=m[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=m.length))return t;for(h=i=m[y],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(u=h/(i=p(10,a-o-1))%10|0,s=e<0||void 0!==m[y+1]||h%i,s=n<4?(u||s)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||s||6==n&&(r>0?o>0?h/p(10,a-o):0:m[y-1])%10&1||n==(t.s<0?8:7))),e<1||!m[0])return s?(i=O(t),m.length=1,e=e-i-1,m[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==r?(m.length=y,i=1,y--):(m.length=y+1,i=p(10,7-r),m[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),s)for(;;){if(0==y){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[y]+=i,m[y]!=d)break;m[y--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(c&&(t.e>v||t.e<-v))throw Error(l+O(t));return t}function _(t,e){var n,r,o,i,a,u,s,l,f,p,h=t.constructor,v=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?S(e,v):e;if(s=t.d,p=e.d,r=e.e,l=t.e,s=s.slice(),a=l-r){for((f=a<0)?(n=s,a=-a,u=p.length):(n=p,r=l,u=s.length),a>(o=Math.max(Math.ceil(v/7),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(s[o]!=p[o]){f=s[o]<p[o];break}a=0}for(f&&(n=s,s=p,p=n,e.s=-e.s),u=s.length,o=p.length-u;o>0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]<p[o]){for(i=o;i&&0===s[--i];)s[i]=d-1;--s[i],s[o]+=d}s[o]-=p[o]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(e.d=s,e.e=r,c?S(e,v):e):new h(0)}function A(t,e,n){var r,o=O(t),i=b(t.d),a=i.length;return e?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+k(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+k(-o-1)+i,n&&(r=n-a)>0&&(i+=k(r))):o>=a?(i+=k(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+k(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=k(r))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function P(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(r=t[n=o[e]])){if(!(f(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(s+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(s+n+": "+r);this[n]=new this(r)}return this}(a=function t(e){var n,r,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(s+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):M(e,t.toString())}if("string"!=typeof t)throw Error(s+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!h.test(t))throw Error(s+t);M(e,t)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=P,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return i.config(e),i}(a)).default=a.Decimal=a,i=new a(1),void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},heNW:function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},hgQt:function(t,e,n){var r=n("Juji"),o=n("4sDh");t.exports=function(t,e){return null!=t&&o(t,e,r)}},hypo:function(t,e,n){var r=n("O0oS");t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},i6QF:function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isInteger:n("Xol8")})},iSSB:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n("E9XD"),Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=e.reverse=e.compose=e.map=e.range=e.curry=e.PLACE_HOLDER=void 0;var o=function(t){return t},i={"@@functional/placeholder":!0};e.PLACE_HOLDER=i;var a=function(t){return t===i},c=function(t){return function e(){return 0===arguments.length||1===arguments.length&&a(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},u=function(t){return function t(e,n){return 1===e?n:c((function(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];var l=u.filter((function(t){return t!==i})).length;return l>=e?n.apply(void 0,u):t(e-l,c((function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];var i=u.map((function(t){return a(t)?e.shift():t}));return n.apply(void 0,r(i).concat(e))})))}))}(t.length,t)};e.curry=u;e.range=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n};var s=u((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)}));e.map=s;e.compose=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return o;var r=e.reverse(),i=r[0],a=r.slice(1);return function(){return a.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}};e.reverse=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")};e.memoize=function(t){var e=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e&&o.every((function(t,n){return t===e[n]}))?n:(e=o,n=t.apply(void 0,o))}}},jSBL:function(t,e){t.exports=function(t,e){return t<e}},"jbM+":function(t,e,n){var r=n("R/W3");t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},jrUv:function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},"k+1r":function(t,e,n){var r=n("QkVE");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},k4Da:function(t,e,n){var r=n("LXxW"),o=n("n3Sm"),i=n("ut/Y"),a=n("Z0cm");t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},kNcU:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},kSko:function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},kbA8:function(t,e,n){"use strict";function r(t,e,n){t instanceof RegExp&&(t=o(t,n)),e instanceof RegExp&&(e=o(e,n));var r=i(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function o(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var r,o,i,a,c,u=n.indexOf(t),s=n.indexOf(e,u+1),l=u;if(u>=0&&s>0){for(r=[],i=n.length;l>=0&&!c;)l==u?(r.push(l),u=n.indexOf(t,l+1)):1==r.length?c=[r.pop(),s]:((o=r.pop())<i&&(i=o,a=s),s=n.indexOf(e,l+1)),l=u<s&&u>=0?u:s;r.length&&(c=[i,a])}return c}t.exports=r,r.range=i},kekF:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},l9OW:function(t,e,n){var r=n("SKAX"),o=n("MMmD");t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},lQqw:function(t,e,n){var r=n("MMmD");t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,c=Object(n);(e?a--:++a<i)&&!1!==o(c[a],a,c););return n}}},lSCD:function(t,e,n){var r=n("NykK"),o=n("GoyQ");t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},ljhN:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},"lm/5":function(t,e,n){var r=n("fmRc"),o=n("wF/u");t.exports=function(t,e,n,i){var a=n.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var s=n[a];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<c;){var l=(s=n[a])[0],f=t[l],p=s[1];if(u&&s[2]){if(void 0===f&&!(l in t))return!1}else{var h=new r;if(i)var d=i(f,p,l,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},lpLs:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickValuesFixedDomain=e.getTickValues=e.getNiceTickValues=void 0;var r=a(n("haXk")),o=n("iSSB"),i=a(n("wmdK"));function a(t){return t&&t.__esModule?t:{default:t}}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(t){var e=u(t,2),n=e[0],r=e[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function l(t,e,n){if(t.lte(0))return new r.default(0);var o=i.default.getDigitCount(t.toNumber()),a=new r.default(10).pow(o),c=t.div(a),u=1!==o?.05:.1,s=new r.default(Math.ceil(c.div(u).toNumber())).add(n).mul(u).mul(a);return e?s:new r.default(Math.ceil(s))}function f(t,e,n){var a=1,c=new r.default(t);if(!c.isint()&&n){var u=Math.abs(t);u<1?(a=new r.default(10).pow(i.default.getDigitCount(t)-1),c=new r.default(Math.floor(c.div(a).toNumber())).mul(a)):u>1&&(c=new r.default(Math.floor(t)))}else 0===t?c=new r.default(Math.floor((e-1)/2)):n||(c=new r.default(Math.floor(t)));var s=Math.floor((e-1)/2);return(0,o.compose)((0,o.map)((function(t){return c.add(new r.default(t-s).mul(a)).toNumber()})),o.range)(0,e)}function p(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new r.default(0),tickMin:new r.default(0),tickMax:new r.default(0)};var a,c=l(new r.default(e).sub(t).div(n-1),o,i);a=t<=0&&e>=0?new r.default(0):(a=new r.default(t).add(e).div(2)).sub(new r.default(a).mod(c));var u=Math.ceil(a.sub(t).div(c).toNumber()),s=Math.ceil(new r.default(e).sub(a).div(c).toNumber()),f=u+s+1;return f>n?p(t,e,n,o,i+1):(f<n&&(s=e>0?s+(n-f):s,u=e>0?u:u+(n-f)),{step:c,tickMin:a.sub(new r.default(u).mul(c)),tickMax:a.add(new r.default(s).mul(c))})}var h=(0,o.memoize)((function(t){var e=u(t,2),n=e[0],a=e[1],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(l,2),v=s([n,a]),y=u(v,2),m=y[0],g=y[1];if(m===-1/0||g===1/0){var b=g===1/0?[m].concat(c((0,o.range)(0,l-1).map((function(){return 1/0})))):c((0,o.range)(0,l-1).map((function(){return-1/0}))).concat([g]);return n>a?(0,o.reverse)(b):b}if(m===g)return f(m,l,h);var x=p(m,g,d,h),w=x.step,O=x.tickMin,E=x.tickMax,k=i.default.rangeStep(O,E.add(new r.default(.1).mul(w)),w);return n>a?(0,o.reverse)(k):k}));e.getNiceTickValues=h;var d=(0,o.memoize)((function(t){var e=u(t,2),n=e[0],i=e[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],p=Math.max(a,2),h=s([n,i]),d=u(h,2),v=d[0],y=d[1];if(v===-1/0||y===1/0)return[n,i];if(v===y)return f(v,a,c);var m=l(new r.default(y).sub(v).div(p-1),c,0),g=(0,o.compose)((0,o.map)((function(t){return new r.default(v).add(new r.default(t).mul(m)).toNumber()})),o.range),b=g(0,p).filter((function(t){return t>=v&&t<=y}));return n>i?(0,o.reverse)(b):b}));e.getTickValues=d;var v=(0,o.memoize)((function(t,e){var n=u(t,2),a=n[0],f=n[1],p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=s([a,f]),d=u(h,2),v=d[0],y=d[1];if(v===-1/0||y===1/0)return[a,f];if(v===y)return[v];var m=Math.max(e,2),g=l(new r.default(y).sub(v).div(m-1),p,0),b=c(i.default.rangeStep(new r.default(v),new r.default(y).sub(new r.default(.99).mul(g)),g)).concat([y]);return a>f?(0,o.reverse)(b):b}));e.getTickValuesFixedDomain=v},mc0g:function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}},mdPL:function(t,e,n){(function(t){var r=n("WFqU"),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=c}).call(this,n("YuTi")(t))},mdaS:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n("MdjF"),i=(r=o)&&r.__esModule?r:{default:r};e.default=i.default},"mv/X":function(t,e,n){var r=n("ljhN"),o=n("MMmD"),i=n("wJg7"),a=n("GoyQ");t.exports=function(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?o(n)&&i(e,n.length):"string"==c&&e in n)&&r(n[e],t)}},mwIZ:function(t,e,n){var r=n("ZWtO");t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},"n/mU":function(t,e,n){var r=n("I+eb"),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:i((1+t)/(1-t))/2}})},n3Sm:function(t,e,n){var r=n("SKAX");t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},n48v:function(t,e,n){var r=n("ZPYa");r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],o=this.value,i=0;i<o.length;i++)1===o[i].type||3===o[i].type?r.push({value:3===o[i].type?o[i].show:o[i].value,type:1}):13===o[i].type?r.push({value:o[i].show,type:1}):0===o[i].type?r[r.length-1]={value:o[i].show+("-"!=o[i].show?"(":"")+r[r.length-1].value+("-"!=o[i].show?")":""),type:0}:7===o[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+o[i].show,type:7}:10===o[i].type?(t=r.pop(),e=r.pop(),"P"===o[i].show||"C"===o[i].show?r.push({value:"<sup>"+e.value+"</sup>"+o[i].show+"<sub>"+t.value+"</sub>",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+"<sup>"+t.value+"</sup>",type:1})):2===o[i].type||9===o[i].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+o[i].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:o[i].type})):12===o[i].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:o[i].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},nmnc:function(t,e,n){var r=n("Kz5y").Symbol;t.exports=r},noZS:function(t,e,n){var r=n("hypo"),o=n("JC6p"),i=n("ut/Y");t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},or5M:function(t,e,n){var r=n("1hJj"),o=n("QoRX"),i=n("xYSL");t.exports=function(t,e,n,a,c,u){var s=1&n,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,v=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d<l;){var m=t[d],g=e[d];if(a)var b=s?a(g,m,d,e,t,u):a(m,g,d,t,e,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(m===t||c(m,t,n,a,u)))return y.push(e)}))){v=!1;break}}else if(m!==g&&!c(m,g,n,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},pFRH:function(t,e,n){var r=n("cvCv"),o=n("O0oS"),i=n("zZ0H"),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},pSRY:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).has(t)}},q92V:function(t,e,n){var r=n("dunj"),o=n("V9xz"),i=n("zZ0H");t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},qPyV:function(t,e,n){var r=n("ut/Y"),o=n("LGYb");t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},qZTm:function(t,e,n){var r=n("fR/l"),o=n("MvSz"),i=n("7GkX");t.exports=function(t){return r(t,i,o)}},qePV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("UTVS"),u=n("xrYK"),s=n("cVYH"),l=n("wE6v"),f=n("0Dky"),p=n("fHMY"),h=n("JBy8").f,d=n("Bs8V").f,v=n("m/L8").f,y=n("WKiH").trim,m=o.Number,g=m.prototype,b="Number"==u(p(g)),x=function(t){var e,n,r,o,i,a,c,u,s=l(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?f((function(){g.valueOf.call(n)})):"Number"!=u(n))?s(new m(x(e)),n,O):x(e)},E=r?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;E.length>k;k++)c(m,w=E[k])&&!c(O,w)&&v(O,w,d(m,w));O.prototype=g,g.constructor=O,a(o,"Number",O)}},"r/Vq":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},rEGp:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},"s+kx":function(t,e,n){var r=n("1hJj"),o=n("jbM+"),i=n("Xt/L"),a=n("eUgh"),c=n("sEf8"),u=n("xYSL"),s=Math.min;t.exports=function(t,e,n){for(var l=n?i:o,f=t[0].length,p=t.length,h=p,d=Array(p),v=1/0,y=[];h--;){var m=t[h];h&&e&&(m=a(m,c(e))),v=s(m.length,v),d[h]=!n&&(e||f>=120&&m.length>=120)?new r(h&&m):void 0}m=t[0];var g=-1,b=d[0];t:for(;++g<f&&y.length<v;){var x=m[g],w=e?e(x):x;if(x=n||0!==x?x:0,!(b?u(b,w):l(y,w,n))){for(h=p;--h;){var O=d[h];if(!(O?u(O,w):l(t[h],w,n)))continue t}b&&b.push(w),y.push(x)}}return y}},sEf8:function(t,e){t.exports=function(t){return function(e){return t(e)}}},sEfC:function(t,e,n){var r=n("GoyQ"),o=n("QIyF"),i=n("tLB3"),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,l,f,p,h,d=0,v=!1,y=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=u,r=s;return u=s=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,p=setTimeout(w,e),v?g(t):f}function x(t){var n=t-h;return void 0===h||n>=e||n<0||y&&t-d>=l}function w(){var t=o();if(x(t))return O(t);p=setTimeout(w,function(t){var n=e-(t-h);return y?c(n,l-(t-d)):n}(t))}function O(t){return p=void 0,m&&u?g(t):(u=s=void 0,f)}function E(){var t=o(),n=x(t);if(u=arguments,s=this,h=t,n){if(void 0===p)return b(h);if(y)return clearTimeout(p),p=setTimeout(w,e),g(h)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,r(n)&&(v=!!n.leading,l=(y="maxWait"in n)?a(i(n.maxWait)||0,e):l,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=s=p=void 0},E.flush=function(){return void 0===p?f:O(o())},E}},seXi:function(t,e,n){var r=n("qZTm"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,c){var u=1&n,s=r(t),l=s.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var p=s[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var v=!0;c.set(t,e),c.set(e,t);for(var y=u;++f<l;){var m=t[p=s[f]],g=e[p];if(i)var b=u?i(g,m,p,e,t,c):i(m,g,p,t,e,c);if(!(void 0===b?m===g||a(m,g,n,i,c):b)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(v=!1)}return c.delete(t),c.delete(e),v}},shjB:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},tLB3:function(t,e,n){var r=n("GoyQ"),o=n("/9aa"),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||u.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},tMB7:function(t,e,n){var r=n("y1pI");t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},tadb:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"DataView");t.exports=r},tiKp:function(t,e,n){var r=n("2oRo"),o=n("VpIT"),i=n("UTVS"),a=n("kOOl"),c=n("STAE"),u=n("/b8u"),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(s,t)||(c&&i(l,t)?s[t]=l[t]:s[t]=f("Symbol."+t)),s[t]}},"tl/u":function(t,e,n){var r=n("I+eb"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},toAj:function(t,e,n){"use strict";var r=n("I+eb"),o=n("ppGB"),i=n("QIpd"),a=n("EUja"),c=n("0Dky"),u=1..toFixed,s=Math.floor,l=function(t,e,n){return 0===e?n:e%2==1?l(t,e-1,n*t):l(t*t,e/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){u.call({})}))},{toFixed:function(t){var e,n,r,c,u=i(this),f=o(t),p=[0,0,0,0,0,0],h="",d="0",v=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*p[n],p[n]=r%1e7,r=s(r/1e7)},y=function(t){for(var e=6,n=0;--e>=0;)n+=p[e],p[e]=s(n/t),n=n%t*1e7},m=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var n=String(p[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*l(2,69,1))-69)<0?u*l(2,-e,1):u/l(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(0,n),r=f;r>=7;)v(1e7,0),r-=7;for(v(l(10,r,1),0),r=e-1;r>=23;)y(1<<23),r-=23;y(1<<r),v(1,1),y(2),d=m()}else v(0,n),v(1<<-e,0),d=m()+a.call("0",f);return d=f>0?h+((c=d.length)<=f?"0."+a.call("0",f-c)+d:d.slice(0,c-f)+"."+d.slice(c-f)):h+d}})},u8Dt:function(t,e,n){var r=n("YESw"),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},uXtZ:function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},uniG:function(t,e,n){"use strict";var r=n("TqRt");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("q1tI")),i=(0,r(n("8/g6")).default)(o.default.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");e.default=i},"ut/Y":function(t,e,n){var r=n("ZCpW"),o=n("GDhZ"),i=n("zZ0H"),a=n("Z0cm"),c=n("+c4W");t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):c(t)}},vAFs:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},"vN+2":function(t,e){t.exports=function(){}},vo4V:function(t,e,n){var r=n("90hW"),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),l=r(t);return i<s?l*(i/s/c+1/a-1/a)*s*c:(n=(e=(1+c/a)*i)-(e-i))>u||n!=n?l*(1/0):l*n}},w1rZ:function(t,e,n){var r=n("I+eb"),o=n("fhKU");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},"wF/u":function(t,e,n){var r=n("e5cp"),o=n("ExA7");t.exports=function t(e,n,i,a,c){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,c))}},wJg7:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},wclG:function(t,e,n){var r=n("pFRH"),o=n("88Gu")(r);t.exports=o},wg0c:function(t,e,n){var r=n("2oRo"),o=n("WKiH").trim,i=n("WJkJ"),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},wmdK:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n("haXk"))&&r.__esModule?r:{default:r},i=n("iSSB");var a={rangeStep:function(t,e,n){for(var r=new o.default(t),i=0,a=[];r.lt(e)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a},getDigitCount:function(t){return 0===t?1:Math.floor(new o.default(t).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)((function(t,e,n){var r=+t;return r+n*(+e-r)})),uninterpolateNumber:(0,i.curry)((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),uninterpolateTruncation:(0,i.curry)((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}))};e.default=a},xEkU:function(t,e,n){(function(e){for(var r=n("bQgK"),o="undefined"==typeof window?e:window,i=["moz","webkit"],a="AnimationFrame",c=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],s=0;!c&&s<i.length;s++)c=o[i[s]+"Request"+a],u=o[i[s]+"Cancel"+a]||o[i[s]+"CancelRequest"+a];if(!c||!u){var l=0,f=0,p=[];c=function(t){if(0===p.length){var e=r(),n=Math.max(0,1e3/60-(e-l));l=n+e,setTimeout((function(){var t=p.slice(0);p.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++f,callback:t,cancelled:!1}),f},u=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}t.exports=function(t){return c.call(o,t)},t.exports.cancel=function(){u.apply(o,arguments)},t.exports.polyfill=function(t){t||(t=o),t.requestAnimationFrame=c,t.cancelAnimationFrame=u}}).call(this,n("yLpj"))},xYSL:function(t,e){t.exports=function(t,e){return t.has(e)}},xweI:function(t,e,n){var r=n("XGnz"),o=n("alwl"),i=n("EA7m"),a=n("mv/X"),c=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=c},y1pI:function(t,e,n){var r=n("ljhN");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},yGk4:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Set");t.exports=r},yiG3:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{log1p:n("HsHA")})},ymJY:function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n("17x9")),o=c(n("q1tI")),i=c(n("i8i4")),a=n("94VI");n("aDLZ");function c(t){return t&&t.__esModule?t:{default:t}}e.UNMOUNTED="unmounted";e.EXITED="exited";e.ENTERING="entering";e.ENTERED="entered";e.EXITING="exiting";var u=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);"entering"===e?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function s(){}u.contextTypes={transitionGroup:r.object},u.childContextTypes={transitionGroup:function(){}},u.propTypes={},u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},u.UNMOUNTED=0,u.EXITED=1,u.ENTERING=2,u.ENTERED=3,u.EXITING=4;var l=(0,a.polyfill)(u);e.default=l},yue5:function(t,e,n){var r=n("/9aa");t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),c=void 0!==e,u=null===e,s=e==e,l=r(e);if(!u&&!l&&!a&&t>e||a&&c&&s&&!u&&!l||o&&c&&s||!n&&s||!i)return 1;if(!o&&!a&&!l&&t<e||l&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!s)return-1}return 0}},zZ0H:function(t,e){t.exports=function(t){return t}},zoYe:function(t,e,n){var r=n("nmnc"),o=n("eUgh"),i=n("Z0cm"),a=n("/9aa"),c=r?r.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}}}]);
//# sourceMappingURL=component---src-pages-index-js-f0624a850608eec7f99c.js.map
|
import fetch from 'dva/fetch';
import { notification, message } from 'antd';
import { routerRedux } from 'dva/router';
import router from 'umi/router';
import { getAuthority, setAuthority } from './authority';
import { cookie } from './utils';
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
202: '一个请求已经进入后台排队(异步任务)。',
204: '删除数据成功。',
400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。',
401: '用户没有权限(令牌、用户名、密码错误)。',
403: '用户得到授权,但是访问是被禁止的。',
404: '发出的请求针对的是不存在的记录,服务器没有进行操作。',
406: '请求的格式不可得。',
410: '请求的资源被永久删除,且不会再得到的。',
422: '当创建一个对象时,发生一个验证错误。',
500: '服务器发生错误,请检查服务器。',
502: '网关错误。',
503: '服务不可用,服务器暂时过载或维护。',
504: '网关超时。',
};
function checkStatus(response) {
if (response.status >= 200 && response.status < 300) {
return response;
}
const errortext = codeMessage[response.status] || response.statusText;
notification.error({
message: `请求错误 ${response.status}: ${response.url}`,
description: errortext,
});
const error = new Error(errortext);
error.name = response.status;
error.response = response;
throw error;
}
/**
* Requests a URL, returning a promise.
*
* @param {string} url The URL we want to request
* @param {object} [options] The options we want to pass to "fetch"
* @return {object} An object containing either "data" or "err"
*/
export default function request(url, options,params) {
// 有操作请求的时候就重新存储一下cookie
if (getAuthority()) setAuthority(getAuthority())
const defaultOptions = {
credentials: 'include',
};
const newOptions = { ...defaultOptions, ...options };
if (newOptions.method === 'POST' || newOptions.method === 'PUT') {
if (!(newOptions.body instanceof FormData)) {
newOptions.headers = {
Accept: 'application/json',
Cookies: getAuthority(),
'Content-Type': 'application/json; charset=utf-8',
...newOptions.headers,
};
newOptions.body = JSON.stringify(newOptions.body);
} else {
// newOptions.body is FormData
newOptions.headers = {
Accept: 'application/json',
Cookies: getAuthority(),
...newOptions.headers,
};
}
}else{
let dataStr = ''; //数据拼接字符串
params&&Object.keys(params).forEach(key => {
dataStr += key + '=' +params[key] + '&';
})
if (dataStr !== '') {
dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
url = url + '?' + dataStr;
}
newOptions.headers = {
Cookies: getAuthority(),
...newOptions.headers
}
}
return fetch(url, newOptions)
.then(checkStatus)
.then(async (response) => {
if (newOptions.method === 'DELETE' || response.status === 204) {
return response.text();
}
const r = await response.blob();
const blob = new Blob([r], {type: "application/vnd.ms-excel"});
if (r.size < 100) {
let reader = new FileReader();
reader.onload = e => {
const data = JSON.parse(e.target.result);
// 验证登录是否失效
if (data.status && data.status === 999) {
message.error('登录失效,请重新登录!')
// 登陆失效以后清除所有用户信息
cookie().delete("hyjf-admin-id")
window.localStorage.removeItem("permission")
window.localStorage.removeItem("userInfo")
// 登陆失效以后记录失效之前的路径 以便登陆成功以后定位失效页面
if (location.pathname !== '/user/login') {
localStorage.setItem('last-visit-url', location.pathname)
}
router.push('/user/login');
return;
} else if (data.status) {
message.error(data.statusDesc)
}
};
reader.readAsText(blob)
return;
}
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = decodeURIComponent(response.headers.get("content-disposition").split("=")[1]);
document.body.appendChild(a);
a.click();
return;
})
.catch(e => {
const status = e.name;
if (status === 401) {
// @HACK
/* eslint-disable no-underscore-dangle */
window.g_app._store.dispatch({
type: 'login/logout',
});
return;
}
// environment should not be used
if (status === 403) {
router.push('/exception/403');
return;
}
if (status <= 504 && status >= 500) {
router.push('/exception/500');
return;
}
if (status >= 404 && status < 422) {
router.push('/exception/404');
}
});
}
|
#!/usr/bin/env node
const { Command } = require('commander');
const program = new Command();
const package = require('../package.json')
const spectaql = require('../app')
//
//= Process CLI input
program.version(package.version)
.usage('[options] <config.yml>')
.description(package.description)
.option('-N, --noop', 'This option does nothing, but may be useful in complex CLI scenarios to get argument parsing correct')
.option('-C, --disable-css', 'omit CSS generation (default: false)')
.option('-c, --css-build-mode <mode>', 'full: build with very opinionated css; basic: build with minimal layout-focused css (default: full)', String)
.option('-J, --disable-js', 'omit JavaScript generation (default: false)')
// This option lets you build a minimal version of the documentation without the HTML `<body>` tags, so you can embed
// SpectaQL into your own website template.
.option('-e, --embeddable', 'omit the HTML <body/> and generate the documentation content only (default: false)')
.option('-1, --one-file', 'Embed all resources (CSS and JS) into the same file (default: false)')
.option('-d, --development-mode', 'start HTTP server with the file watcher (default: false)')
.option('-D, --development-mode-live', 'start HTTP server with the file watcher and live reload (default: false)')
.option('-s, --start-server', 'start the HTTP server without any development features')
.option('-p, --port <port>', 'the port number for the HTTP server to listen on (default: 4400)', Number)
.option('-P, --port-live <port>', 'the port number for the live reload to listen on (default: 4401)', Number)
.option('-t, --target-dir <dir>', 'the target build directory (default: public)', String)
// This option specifies where the generated documentation HTML files will be output.
.option('-f, --target-file <file>', 'the target build HTML file (default: index.html)', String)
// This option overrides the default directory which contains all the Handlebars templates, SCSS, and JavaScript
// source files. This option is useful if you've copied the contents of `app` to a remote location or a separate
// repo and customized it. Probably not something you need to use if you have cloned/forked the repo and customized
// it
.option('-a, --app-dir <dir>', 'the application source directory (default: app)', String)
.option('--logo-file <file>', 'specify a custom logo file (default: null)', String)
.option('--no-logo-file', 'do not use a custom logo file, overriding what may be in the config')
.option('--favicon-file <file>', 'specify a custom favicon file (default: null)', String)
.option('--no-favicon-file', 'do not use a custom favicon file, overriding what may be in the config')
.option('--schema-file <file...>', 'specify a file, files or glob to files that contain a GraphQL Schema Definitions written in SDL to be used instead of an Introspection Query call (default: none)')
.option('--introspection-url <url>', 'specify a URL for an Introspection Query(default: none)', String)
.option('--introspection-file <file>', 'specify a file that contains an Introspection Query response (default: none)', String)
.option('--introspection-metadata-file <file>', 'specify a file that contains metadata to be added to the Introspection Query response (default: none)', String)
.option('--dynamic-examples-processing-module <file>', 'specify a JS module that will dynamically generate schema examples (default: /customizations/examples', String)
.option('-g, --grunt-config-file <file>', 'specify a custom Grunt configuration file (default: app/lib/gruntConfig.js)', String)
// TODO: remove this option in favor of --headers as part of a breaking change
.option('-H, --header <header>', 'specify a custom auth token for the header (default: none)')
.option('-A, --headers <headers>', 'specify arbitrary headers for the Introspection Query as a JSON string (default: none)', String)
.option('-q, --quiet', 'Silence the output from the generator (default: false)')
// .option('-f, --spec-file <file>', 'the input OpenAPI/Swagger spec file (default: test/fixtures/petstore.json)', String, 'test/fixtures/petstore.json')
.parse(process.argv)
// Show help if no specfile or options are specified
if (program.args.length < 1) { // && program.rawArgs.length < 1
program.help()
}
const options = program.opts()
options.specFile = program.args[0]
// Run the main app with parsed options
spectaql(options).catch(console.warn)
|
/*
YUI 3.8.0pr1 (build 140)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatype-number-format', function (Y, NAME) {
/**
* The Number Utility provides type-conversion and string-formatting
* convenience methods for Numbers.
*
* @module datatype-number
* @main datatype-number
*/
/**
* Format number submodule.
*
* @module datatype-number
* @submodule datatype-number-format
*/
/**
* Number provides a set of utility functions to operate against Number objects.
*
* @class Number
* @static
*/
var LANG = Y.Lang;
Y.mix(Y.namespace("Number"), {
/**
* Takes a Number and formats to string for display to user.
*
* @method format
* @param data {Number} Number.
* @param config {Object} (Optional) Optional configuration values:
* <dl>
* <dt>prefix {HTML}</dd>
* <dd>String prepended before each number, like a currency designator "$"</dd>
* <dt>decimalPlaces {Number}</dd>
* <dd>Number of decimal places to round. Must be a number 0 to 20.</dd>
* <dt>decimalSeparator {HTML}</dd>
* <dd>Decimal separator</dd>
* <dt>thousandsSeparator {HTML}</dd>
* <dd>Thousands separator</dd>
* <dt>suffix {HTML}</dd>
* <dd>String appended after each number, like " items" (note the space)</dd>
* </dl>
* @return {HTML} Formatted number for display. Note, the following values
* return as "": null, undefined, NaN, "".
*/
format: function(data, config) {
if(LANG.isNumber(data)) {
config = config || {};
var isNeg = (data < 0),
output = data + "",
decPlaces = config.decimalPlaces,
decSep = config.decimalSeparator || ".",
thouSep = config.thousandsSeparator,
decIndex,
newOutput, count, i;
// Decimal precision
if(LANG.isNumber(decPlaces) && (decPlaces >= 0) && (decPlaces <= 20)) {
// Round to the correct decimal place
output = data.toFixed(decPlaces);
}
// Decimal separator
if(decSep !== "."){
output = output.replace(".", decSep);
}
// Add the thousands separator
if(thouSep) {
// Find the dot or where it would be
decIndex = output.lastIndexOf(decSep);
decIndex = (decIndex > -1) ? decIndex : output.length;
// Start with the dot and everything to the right
newOutput = output.substring(decIndex);
// Working left, every third time add a separator, every time add a digit
for (count = 0, i=decIndex; i>0; i--) {
if ((count%3 === 0) && (i !== decIndex) && (!isNeg || (i > 1))) {
newOutput = thouSep + newOutput;
}
newOutput = output.charAt(i-1) + newOutput;
count++;
}
output = newOutput;
}
// Prepend prefix
output = (config.prefix) ? config.prefix + output : output;
// Append suffix
output = (config.suffix) ? output + config.suffix : output;
return output;
}
// Not a Number, just return as string
else {
return (LANG.isValue(data) && data.toString) ? data.toString() : "";
}
}
});
Y.namespace("DataType");
Y.DataType.Number = Y.Number;
}, '3.8.0pr1');
|
import { moveRcvBuf, popRcvContent, getPeeksize } from '../recv'
import { createTestKCP } from './utils'
describe('recv.js', () => {
let kcp
beforeEach(() => {
kcp = createTestKCP()
})
describe('getPeeksize', () => {
it('should return the first seg `len` if the its `frg` is 0', () => {
kcp.rcv_queue = [{
len: 100,
frg: 0,
}, {
len: 200,
frg: 1,
}]
expect(getPeeksize(kcp)).toBe(100)
})
it('should plus all `rcv_queue` elements size utils it encounts one with the `frg` of 0', () => {
kcp.rcv_queue = [{
len: 300,
frg: 2,
}, {
len: 300,
frg: 1,
}, {
len: 400,
frg: 0,
}, {
len: 100,
frg: 0,
}, {
len: 500,
frg: 1,
}, {
len: 777,
frg: 0,
}]
kcp.nrcv_que = kcp.rcv_queue.length
expect(getPeeksize(kcp)).toBe(1000)
})
})
describe('popRcvContent', () => {
it('should pop buffer from the `rcv_queue` ', () => {
kcp.rcv_queue = [{
len: 2,
data: Buffer.from('FFFF', 'hex'),
frg: 2,
}, {
len: 2,
data: Buffer.from('EEEE', 'hex'),
frg: 1,
}, {
len: 2,
data: Buffer.from('DDDD', 'hex'),
frg: 0,
}, {
len: 2,
data: Buffer.from('CCCC', 'hex'),
frg: 0,
}]
kcp.nrcv_que = kcp.rcv_queue.length
const buffer = popRcvContent(kcp)
expect(buffer.length).toBe(6)
expect(buffer.toString('hex')).toBe('ffffeeeedddd')
expect(kcp.rcv_queue.length).toBe(1)
})
})
describe('moveRcvBuf', () => {
it('should move those buf whose sn is smaller than ' +
'the `rcv_nxt` while `nrcv_que` is smaller than the `rcv_wnd`', () => {
kcp.rcv_buf = [{
len: 2,
data: Buffer.from('FFFF', 'hex'),
frg: 2,
sn: 0,
}, {
len: 2,
data: Buffer.from('EEEE', 'hex'),
frg: 1,
sn: 1,
}, {
len: 2,
data: Buffer.from('DDDD', 'hex'),
frg: 0,
sn: 2,
}, {
len: 2,
data: Buffer.from('CCCC', 'hex'),
frg: 0,
sn: 3,
}]
kcp.rcv_nxt = 0
kcp.nrcv_buf = kcp.rcv_buf.length
kcp.rcv_queue = []
kcp.nrcv_que = 0
kcp.rcv_wnd = 3
moveRcvBuf(kcp)
expect(kcp.rcv_queue.map(seg => seg.sn)).toEqual([0, 1, 2])
expect(kcp.rcv_buf.map(seg => seg.sn)).toEqual([3])
expect(kcp.rcv_nxt).toBe(3)
})
it('should respect the rcv_nxt', () => {
kcp.rcv_buf = [{
len: 2,
data: Buffer.from('FFFF', 'hex'),
frg: 2,
sn: 0,
}, {
len: 2,
data: Buffer.from('EEEE', 'hex'),
frg: 1,
sn: 1,
}, {
len: 2,
data: Buffer.from('DDDD', 'hex'),
frg: 0,
sn: 2,
}, {
len: 2,
data: Buffer.from('CCCC', 'hex'),
frg: 0,
sn: 3,
}]
kcp.rcv_nxt = 1
kcp.nrcv_buf = kcp.rcv_buf.length
kcp.rcv_queue = []
kcp.nrcv_que = 0
kcp.rcv_wnd = 3
moveRcvBuf(kcp)
expect(kcp.rcv_queue.map(seg => seg.sn)).toEqual([])
expect(kcp.rcv_buf.map(seg => seg.sn)).toEqual([0, 1, 2, 3])
expect(kcp.rcv_nxt).toBe(1)
})
it('should respect the `rcv_wnd`', () => {
kcp.rcv_buf = [{
len: 2,
data: Buffer.from('FFFF', 'hex'),
frg: 2,
sn: 0,
}, {
len: 2,
data: Buffer.from('EEEE', 'hex'),
frg: 1,
sn: 1,
}, {
len: 2,
data: Buffer.from('DDDD', 'hex'),
frg: 0,
sn: 2,
}, {
len: 2,
data: Buffer.from('CCCC', 'hex'),
frg: 0,
sn: 3,
}]
kcp.rcv_nxt = 0
kcp.nrcv_buf = kcp.rcv_buf.length
kcp.rcv_queue = []
kcp.nrcv_que = 0
kcp.rcv_wnd = 2
moveRcvBuf(kcp)
expect(kcp.rcv_queue.map(seg => seg.sn)).toEqual([0, 1])
expect(kcp.rcv_buf.map(seg => seg.sn)).toEqual([2, 3])
expect(kcp.rcv_nxt).toBe(2)
})
})
})
|
webpackJsonp([16],{"+7W0":function(t,e){t.exports="data:image/png;base64,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"},"+BTi":function(t,e){},"+emz":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1QUQyMzE0RDdDNjYxMUU5OUNDQUJDODJEMEZDQjM5QiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1QUQyMzE0RTdDNjYxMUU5OUNDQUJDODJEMEZDQjM5QiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjVBRDIzMTRCN0M2NjExRTk5Q0NBQkM4MkQwRkNCMzlCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjVBRDIzMTRDN0M2NjExRTk5Q0NBQkM4MkQwRkNCMzlCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+AdtDaQAAAmRJREFUeNqslUtoE1EUhv+ZTF6mNVVKkBb7CFWpguALlKoIEioKunHZhRvdFFvERbsQQRHUleJC3FlQEQQXumoXFqmVbuwiUgolsRqLFBRpG20yiZNJ/5m5E6btTNDYAx/Mff33nnPPuSMtjkTgYTtIFzlL2gSGZchn8pqMk7TbYslFOESukkukBdXtC3lE7pNCNeF2MkSO499sjFwQnpgmOwbjZLQGUYg1o0JjlXCUPHPEsRYz1j4lYadwLzmM/7cjpM+OcVzEqHn91foRbL8C3+Z9bJStPl1jvw+F2dso/ZpyE58jJxQRn2bXlPFvQSg+gOzbOMraUqU/sv8lgvFB5JI9bsu2G5pGKM55+VUufkfx2xNs2vuYuyhmn9LYzc8G5Kf7qoXklCxSzNUkpR7F+efQc0YW6dZth5rgix4iB6oJ75K9ikDyRVDXNWmGQ/10C8HWy5ACjWZ7+cNpejGEYJvnqVtkr5HwnofQsx+h/Rg2xfzbzqP+aJLiMWgL4/j9/iA36/d01hD+6jYi13UiN3XRapRUM96SEoUuMkEvzENN3/ASzsjOMlx1cX8WyYK1fWAr5DCvoqxxw92VOaVs0kt4xhB+5XriYAyBJiudjHxV0zd5kS+gpq7b3iLUcc1LeFgRxTEn8q9i+el+hDvvQWIWaD/foLQ0CX05BV9kp1kwSuwMdOGRS4GM2a/bALmDjbFBctfOigdkYgNEJ4RW5RHKkx7xcNdqKaGRX/sez5KT5F0NosaahNBY99Db4gkRp8xfCGbE3MTa+VKVn2kHOUa6jdonrQ6xGTIiTur6M10RYADhp6pc44wmKQAAAABJRU5ErkJggg=="},"/7ay":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgEAYAAAAj6qa3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAATxJREFUaN5jYBgFo2AUjIJRMHIB40A7AB1E7c56X63s7/9/JsPu/+2FhQw3//syiJmYMOgwFjPs4uYmpH/58mnT2toYifYXy0B7GAYiKrK9qiI7Ov7P+1/9X7G8nIGVgYHhAgMDgw7jAVrayzTQHofFOOPD/woMiuXl9LZ/wAMAntQHCAx8FjBn2MPQZWzMcI6BhcENU/r/2//NjNLW1it2TRduzT52jNrWD3gKgHichweXNK08PngCYIDBiA8AmrcDIiOzsqqq/v+nuUcCGRwYDBITl4VNC2sLW7CAWH3DJgX8Df0b+jf0wAFS9Q39ADBkiGCIfvBgJeNMxk7GBw9GXAD8Z2ZoZGgnPeZhYMD7AoTKCFLb9qSCIZ8CRgNgNABGA2A0AEYDYDQARgNgNABGA2A0AEYDYDQAyAEA6UJYZ+RsZAsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDQtMjNUMDk6MTc6NDQrMDg6MDDR+PiPAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA0LTIzVDA5OjE3OjQ0KzA4OjAwoKVAMwAAAEp0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vaG9tZS9hZG1pbi9pY29uLWZvbnQvdG1wL2ljb25fam53MTA0dGZxbC9mYWNlYm9vay5zdme6RnPrAAAAAElFTkSuQmCC"},"/hN2":function(t,e){t.exports="data:image/png;base64,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"},"/i/W":function(t,e){},"0K3A":function(t,e){t.exports="data:image/png;base64,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"},"0aKs":function(t,e){},"1AEq":function(t,e){},"1UUR":function(t,e){},"1VvR":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAASFBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/T////Y5/3s9P76/P+Ds/fo8f6nyfnh7P1wp/bR4/yew/lpht/lAAAADHRSTlMAIKdO8alXdR6+WeK/6R0qAAAAnklEQVQoz3WS3Q7DIAiF7WZL3ah1s9ve/00HaCVN4FwY4Ys/OYfQtUKKiM8Ek5SjPePQvGr/jhc9zj5QUcsmKj8qoPUXJBXq1brTytUi96OAd5cA5HdussvYtbcf8AED8BGwAYRkgxSiDWJAG6AL3Kvcx/3vTjagWFoUx6urWzJM3Ej5y+tpotq+fRir7RrUkTkUDcqN1h8GHZ+o4/MHgq8WkW9sheQAAAAASUVORK5CYII="},"1YwK":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAgCAYAAABU1PscAAACBUlEQVRYR+2Vz2rUUBSHv3vzxyETR6mVjlpEcSUuXIo78QF8BcF1X6EqFXGhuO0DCD6IKxeCoAjWhSja1o6UapvpZCbJPZIURGumYUzIUM1dn3Pu+f2+c+5V7y8eFw7rEVlR/60A5QrOGYM9Z9h97kyHYREB5QkSAkblNCjML+8Q9zS9hx4m0PWLKBLgXx+RbCkGL/90WLUEqyNoTxh9sOpvPr2xSED3bkC0odlc9gob9K5GRGua6JMeQ6ywxOQB+wWkI3PkQpIVUpbQXeqTbCp6j9t7xQXCtxbEv4+U9g1zi30sX/i8cBQkb+Qm768wI49A58aQE7cGsG9qTKCyWR+8yF/Y1qWYeEuRfNPI7hQFpKrd8wmn7gfoY3tfRPRRs37HJ/k6hUU9CMPYHXCEc0+/Q2qkBdGqZnWhU0BUsliSmtw/aIm9KxEzNwd8uddGudC93Wd9sU28lv/aWDMG/9oIGSqCZw5mpyZS4wi0LkeEb+yfy5outzufMHxn51NwhNMPApJtxcZSuvA1USh6RgtfgV8CrFmT9V3rnpQRkH5k6SdmnzQMV8aQmcSBv4ktJcAVzj7ZJnxl03vkZfNf+ykjQLcF3THYs0L4+hASqN3tvAvLEGgEVOFAQ6AKF8vUaAiUca+K3IZAFS6WqdEQKONeFbkNgSpcLFOjIVDGvSpy/wUCPwCxCynQnAuR5wAAAABJRU5ErkJggg=="},"1z8t":function(t,e){},"21hD":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAMAAAArteDzAAABJlBMVEUAAABJWXEwP1IxQFI/TmU+TmQ5SF09TGI9TGIvPlE9TWMxQFMxQVRGVm01RFk1RVhJWnJJWXJDU2pKWnI7Sl9LXHVCUmg8TGEwP1I9TWJJWXFLW3RDU2o5SV1MXHUtPE5LW3RBUWdMXHVMXHX///82RVpKW3MwP1ItPE4/T2VIWHBCUWhFVWw7Sl88TGJHV29GV240Q1dlcYLk5un4+fqgqLJ8h5bw8vNDUWT7/PyIkZ+8wch0fozCx83q7O6nrrjd4ORteYqyucKZoa3Q1NlVYnVIVmhcaXw0Q1dAUGY8TGI/T2U0Q1c0Q1YzQ1YvPVA0Q1Y9TGI0Q1Y+TmRLW3QvPlBKW3NAT2Y/T2VLW3QuPVBAT2Y/T2RLW3RAUGYvPlBKW3NKW3PDzsOVAAAAOXRSTlMAzKm3GiIyEAPPKmpcanujtdijXcigUeOSCJF3tPbr4qj19/z///////////////////////////5HrZd9AAADn0lEQVRYw6zQXWviQBgF4DOQmCCk5KOxVEXaZchFIqyYD1DZrqYtZS+XBnYv/P+/o03TUpl5zUwSH+8O7zlkhJI5mYXM+1G9W3gsnE1MDGME4aKSLMLAQE+Ww6qzmGOhu3FYKYRjdDNyKw3uCPqMu0rTnQE99izqYGZDg8miTpgJpSDqLFA9fRr1MLXR4taNenFvcZbFop6YdXbTi3vzrHPfGQ9Af6vtxoO4NmTTeKApJEE8WACB+fMCTOEP9S4x6tk45axUDml6UB45OGEoz4uM82yrPDPwzVfcRr/5h7JSHPrfm6Nlu2LPP6WF4nSEL/O2s1XxxE88Fau26zk+jVuO1nnKBWm+bimM0fCXhOp5XTzuHjjp4ddjsX6uqJ6PD9ZSlmdcQ5YTVQs1J5FtuJaMqDqosSRZCr+EayKqDO+MRKY/SjDq1w8bpd8/v/ToHMD9pUfvAfMPhWsiyyYmeqObcrstN3qjE1z9o0ibhzo9SKtk+Qr+fwoX7Jp4J+Zk2cf1kcIFeRPnYk6Wr3HzSuGCsolLMSfLNzhqje6beK8zejziL4mLXur0RYrJ8qvuaF6nuTxKeiud7noTBaIwAL/hGyFwY1p70fSGWTZLzg2wkirabrSmMdnZ+00T//+/2KU2aWXOwKjPBGMm57weHDANrbrdyjh0z8kU5X5fZoo9C7fEyRRPRE+Zgjj3xqFboq1h6C2mhqENUWMYOkVKnFo9KaKK+SVOioQ4ldl/WhEnwQ2RUBatsp76G9EPZf4t23wDlzgbZlCin8orQRwXuBeMUnlMNbuMewCWEKSuda990ZUveptr4lotALHg9O+0XhTFou7fveDEAJzuC/UusauzUfVOdOj0Qzj4byo4m2zURnCm6ESCQ8/ZiGcSnAgdX7BemmxQ8yJYPt6lglU+ZgMeW8FKceS98n7VA4fUapo8fLA1BeU601iXmhYb6I2qKFYZa1W8jg0KpL915g1zRHNteYpPjtTarZQxd1LLwReR1Js3p2NKvQhfBaHUK5afmctC6oUBTkykzLVLtuuPQ2+7Xm3ZBD2x1JV219vyfcy3Y5FGDMUsH9RWVZsPmkEV2HkutetIDiw7AMMP8yuEPsCnXpvJp16Xybuz84vYdxgQzA4XmAUYFp+fGWPUJDwvMpzAQJD8OUMSwIxr/TVkuTDn2SaRtofzeOnolB7O50fhd60w8nEhJ7JyNTC3IgfXcePECh8OXdrhIbSS2MWYf0vhUEYK+1Z+AAAAAElFTkSuQmCC"},"2e81":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAARVBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/TGe+7xAAAAFnRSTlMAGae18cJnC+pFjEw4btElX9+Z9TxPHEKyzgAAAIdJREFUGNN10EkOwyAUA1AnkDAPGfrvf9TyqUQoKG/hhREWAu+WICSRFGFplbLUWIUqHdQ5Ur2q6Y/miY0GAjA0MVjncoXmPEucfGxFCQmeBiJFQPMcFTWc4aUPkfS5lhtNNoS53KGusZMKcPMzi328XOWu0jd+7lbFXeEpr+yd8wqPxF/b+wIrtBZ23AwJagAAAABJRU5ErkJggg=="},"4AGf":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAM1BMVEUAAABVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGdVoGcRdZp6AAAAEHRSTlMAzw6DRSgBPp3m1MQp0mojqsVkTwAAAHBJREFUGNNtkFsShDAIBCdZiBD3Mfc/7aZQMZb2ZxcUMyAQc9JNcKArd1ZFsHBiiRleUKCVqyoNwgn7kAKbzAvfoeGTiUuOuO1pBqF+tZ+Gsdhr7Wkcxs1lYoNwc9lBHqLeCr0fagdackux044XNgz+oOYOUaV1Dd8AAAAASUVORK5CYII="},"4ELa":function(t,e){},"4H5r":function(t,e){t.exports="data:image/png;base64,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"},"4bdA":function(t,e){},"4wWc":function(t,e){},"51sM":function(t,e){},"5UZ6":function(t,e){},"5Zxg":function(t,e){},"5v7n":function(t,e){},"6EIT":function(t,e){},"6kY0":function(t,e){t.exports="data:image/png;base64,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"},"7NPE":function(t,e){},"7Rkl":function(t,e){t.exports="data:image/png;base64,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"},"7v+0":function(t,e){},"84ra":function(t,e){},"8OyE":function(t,e){},"8PcR":function(t,e){},"8Sqj":function(t,e){},"8lj8":function(t,e){},"8mNY":function(t,e){},"8rrO":function(t,e){},"97u5":function(t,e){},"9TQ1":function(t,e){},"9jpL":function(t,e){},"9zLm":function(t,e){},AHxQ:function(t,e){},"Ap+8":function(t,e){},AyW8:function(t,e){},BXGj:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACjklEQVRYR9WXz2vTcBjGnydFpAXnOhCbuDXBP0EvnkZTkTmQHUU9eRCcwhBBhnPMH1BFET0Md1AvggjOkwdxCq51CuJB/RMkmZJ0ghuzOjvG+soOG7XLj1YTpjkm7/s8n+/7zZc8ITb44gb74/8DKKrZ3QR7BewiZQcAEYFLwE4QE92O/aGVqTY1gddbs+mlFE8APE4iG2QgAhuQO6nFyq09s7PfwmBCAUoZ46hQxkimwsR+ey7yHcIBs2zdC+oLBChmsuepKJdaMm4oFpHhvGtf8dPwBShq2UFCufY35qu9rMlgrmxf99LyBCiqRg8gT0kqUQCISE0RHMiV7YlGvXUA7zQtVcGmzwDTUZivaojgy1Lt586emZkf9brrAEqqXgA5HKX5mpZIwXTtEV+AR0Bim2rMgdgSB4AA86ZjpQnI2vtRbzS5Xc8rCU7GYb62FTXk8mVryhPgpWoMCeF7ZCICGzId66onQEnV74I8FpGRt4zgtula/d4Amv4C4N6YAZ6brrXfE6CoGlMkuuMEEMFU3rVy3gCaMU7gYJwAAMZNxzrkDZDRR6lwIE4AEYzmXeuUzxboR0g+iBMAwGHTsR56Arzp7Ewu1hJfASZjgqjCQdqEVfUEWLlZVPWbJE/HAyA3TMc+E/gteNvR0bawue0TibZoIWQuWa0YjSnJ+3OsdfVRlMcgQxNTU5ArqbEmfebM9JPGev9AournSF5uyiC86KzpWJ7hJnCFJc24AOBiuH5AhciI6doFv4rQEf9pKBWRBQXSn3On7wctIBRgpbnUbrRLUk62EsuXq4mxfXMf58Om1xRAvcgrTd+1LOgVQCeh1f+YCORZ3p1+H2YaeAxbaY6ituUJRGH6T03gF4Sd4SH191DmAAAAAElFTkSuQmCC"},BZWR:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAALVBMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uRp7X/EAAAADnRSTlMAKIIVcOteRMGY+J0F20+nDjsAAAB5SURBVAjXYwACo7gXBQxgwLju3buXEObRd0DgAGbmgZhvwMx9IOZDMLMPxHwOZuqBmI/BTDkQswHMZAIxBSCm+b17F8gAAcxJ7lCW0b13794qg1hs78AgAawSDJ4AHQOiIWZwwpgTGLhgzAUMfDDmA2Qm41YIK1oAAPyOaZHe+W8lAAAAAElFTkSuQmCC"},BxWU:function(t,e){},C9u2:function(t,e){},CFTT:function(t,e){},CRRl:function(t,e){},CZLu:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAVFBMVEX///////////////////////////////8AAAD///////////////////////////////////////////////////////////////////////////9sydZbAAAAHHRSTlNmYVpKZdEv7AAMQmy/5iOGcXTakcp7tuCiqx8OM1HbUwAAANxJREFUKM+FUlkWgyAMjAtQNsUNtb3/PRuSqP3gvc6POAMZMgReDKu7tmnaTlshgGnXg6B39hHeDfygGS5B8/YHmoWBfvyh4nwmVoYiWKqTlCnYN65mUXC0DIahgOBeYMlgMhdGvpsFTYvlFg7xh64qIN1CrRTS0lsWfr0CuAS/Eh/SLbQinIXPPsd4eirF5ttc+JhCaSWTuSbvnQ2mwm8Rj2hukA1M2Myy4uEJG6RIRsOYYVY+4AcchxjuJsa4mzhiiBx7UIIMaVmSxF5/qPrT/h8GGZ++x/H5CPEFY9UNFkJAULkAAAAASUVORK5CYII="},Cng2:function(t,e){},D4td:function(t,e){},DaXA:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAARVBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/TGe+7xAAAAFnRSTlMAiETcGHKqHsEF1fYNtS064WA8ZJZalVbjwwAAAF1JREFUCNdVjlsSgCAIRakUI7V37H+pXXWY7PzAGRguNOlHICplmSucmsaLDK04dMGLaYB6zWIqecFRNk2x3uyWD91dpyc7Mv0H3QMoQVv35YqxeDTPCGAFxzFR4wVDogmObvTdDgAAAABJRU5ErkJggg=="},Dzb6:function(t,e){},E2K3:function(t,e){t.exports="data:image/png;base64,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"},EJoQ:function(t,e){},EMcJ:function(t,e){t.exports="data:image/png;base64,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"},EXKf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAQlBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/SadqbHAAAAFXRSTlMA9kSYFd9eJ/2C6p0FctFpM76weMPPXKm6AAAAcUlEQVQY02XOWQ7AIAhFUa1T0FY7sf+tlmgCaO/nCQnPjDwExGszupSx55TtdDY6BCNyO2MRPBlvQfkFgl6es71s6jQZ1dEpdJN8hGebBapFylbwsl0VhzWcatMevcCt6AjzipkQfxHa1SxhKkFTKMl8tsgSXo5YXcwAAAAASUVORK5CYII="},EkKh:function(t,e){},"Eu+b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgEAYAAAAj6qa3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAA0NJREFUaN7tll1Ik1EYx//PebeFaRZZWUYomVFSmqVgDD/I0hGoXelWmhH0paZ9ENGWxqLMMgo1l0qJWiupICUqTAXFJHXdpOmKBSlUSlKRH2RMd7ooTZLyJt+X1n6XhwPP7/nznA/AgQMHDv5j6NcFzec9zcfP+vjQIuYzqkpN5RFwprbISATQaqzw9IQFm3DXyUlq8SlZixE8GhzEFRRgTmcnAqGid2Vl767Pr5V1FBc3kJ70NDIyHoA6PWWWLj4tjRh/zZGTg15kwluhkLqPvw0vRyJPqK2dIRsKVqyMjiZ15L4PuoL4eHKjDP62okJqQbGgRszD7sxMRsvoGu/RaqUWEhvuje0IT0xkiIMePb6+UguJjhnlqPfyYiiCBu4ymdQ+ojOIelwQBCZawQCosa2rC4W4g4YDB1CHedhttUqdg3gB/ODmbMP7rKbc3FELmmxdSiXPwBA2vHpl/wGoEQBnNl7v1mxDXXa4ySRcFuLlEevW8VLU8Cij0X4DKEYWjtCkj5cxP3+znvr7K2YYLGfCEhJwGk/hlpQ0/pGxmwDiEIBZbMp6N5caWrMOl5fLclgge+/nx5OxDTXNzf9+AMHwh8vUAYwxHGqbI3T39bFY7kEuFst0aYn3/FXjHF0iQsift6mvpsbo3AIDydl20lplNHI5hWL98uXTpSXaBHAl/G39v5sAIs3n5AVaZXo6PbeV8I1NTahCKFqnr/ExRJsAeojzlP/zEtTMTI/Wprm7I8Mq0J3SUuyFBw9TqQBkiuUEiDkBId/vgK01yZ903rGxvNcK+HR0oA0efIdKJWbTExFvAhqQjZ1z5/Ib0PGeykoqwRL0SNX2BC/NveQO7ZDNhhsowOnJ77Td4oJwHBwdZTDjA7q6u6X2EZ39AI729gqr5gctDOljjICvcIuKktpLNMxIQUxZmfC83fS4sbOlxe9L0IoQjasrjuAQ9gcHox0mNNrhkTjB06jo2TNFomKRvDApSRhbb/9kamu8X13tWxj0Uhn54AE7iiKWJZNhDd7ATxCwBBXY4uqKj/DGC7lc6j6mpBlxaBse5vU4xk+ZzewiPYGQlzcQMfJVfmXXrtuLDTF6GhiQWtOBAwcOJOUbjb0Rae/bBAoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDQtMjNUMDk6MTc6NDQrMDg6MDDR+PiPAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA0LTIzVDA5OjE3OjQ0KzA4OjAwoKVAMwAAAEl0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vaG9tZS9hZG1pbi9pY29uLWZvbnQvdG1wL2ljb25fam53MTA0dGZxbC95b3V0dWJlLnN2Z14d/CEAAAAASUVORK5CYII="},Eudm:function(t,e){},F43K:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNDAzMUI1Q0VFRkQxMUU4QUJGRjlDMDk5MzY3MzlBOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNDAzMUI1REVFRkQxMUU4QUJGRjlDMDk5MzY3MzlBOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA0MDMxQjVBRUVGRDExRThBQkZGOUMwOTkzNjczOUE4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA0MDMxQjVCRUVGRDExRThBQkZGOUMwOTkzNjczOUE4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+UJhR/wAABEdJREFUeNqcVltoXFUUXfc5M5nM5DHkZWMba2pKKgaEmpBKidCSoFYLRoqkKBT90yKIfvvjj2C/BC0ifiiitWltKDRRikiqkVIVtFasNm2tjaHGZh6d98y5rnPPvfNS0tbDrOHOufvuvdfae587Gj5OwltDxMvEdqIVt78c4hpxknidWJSbmhfgCeLwLbnwl7amZZHYRczJAJt58fOa5jqRp/eCoxxb/AoQ4qYpbZIBjvJi95pmGQejdxp4ZbMNnX7fvVjEsfMlIKzdLMCMya+xOtplCafeLCUwGLXw+DrL/XlmVeBYqgDYer2dqSm21cfHZIBg5ScpmwY3bGVVsYvoNUXQUBQOwnIvpHlZqf0cEyuLuvrYUiJZ5Yif6eSghQNDQde949kKPhRh8rGAenKVtUiQgKZXiUtMfZPD/CVK11xhlqoPUHLQHdXRF9Jx4YaoNgsDPzlo4837A+7Oqz/l8dZ3eThR5cig0SYyOpsUWGW9YFTFNes0JKHlvwWWAwJTd5muM8chExZzNKZXuI/w+nyPgUv8mRcqwPzVkrrd0F31DOTKOhjo1PHJqMrWFYq+05RkJa+q0sZEdI2dFZOpGm5n2IfSKBZUkrXtUQ3g10o6yXrwxZUpWl6XaCoJNGtY2dOEmG3i/ct5PD2XA1r0xgH0JJLsc8ppP6mPbzHRS1myrMmvKQfnEgI/xMtwko6iT9vnR2zXuczq7cVSNZmGZbqb0nnRwYc7g3iqz65p5OpTgq00faWI6d9LOLVcxv5+ldtXfxXxtQwQ0f9z0jR8RImSIjK7K4TxbguTX2Qwe00gy17vCGp4oE3H7l4T+/otjyqbjZqb3vX4lxl89m1BBQh6R4hWyZE1eC+R3LbBiJx6KIjYkQyu/0kNWqWRpiY6p2QJtWl4tNPAS/cFMNxueh4c/MIW/v66wKdXSpgjs3hcKBmbNFlwBjiYSL4xFogMtWjYcTgLdOn1h5ivElnJMT0xGcZEj42qUVWaRKGM2aUyjnjBEnGRcpme41Dt66MEIVrdcNQh5o8x5QULHG7VMTvRjAfbLdf5luNptLO7XuPwbe9SM9NiG9jTJ2FhlQNynLOh4YNk0oITKUyFMb3Eo+JERjn1F8fhsQ0mDm4LopsOUmQx/nkaCxeFGgHG27nexIsDFh7utVBbAF5TokPJLBIiONJrYGEi7G4fvVzEIlnJs+eRdQY6Qqpj5pYKeHYhhz9W6KDdk6asjhKpxNY7DOxnoL0b/YZwcnLQ4pIdWJyNnSzJcAg7us2aplZU3/mtiJkLJbUf1f5dJ+EF4megR8cL99h45m4zKQPMuK833dNfdg5bbn2TCnCVw1f2HnRPSaPh1YmGQPJeWs1VR5d+Us7BvbzxY917lxNcqYNZc0Tc6vID5ZytMu+zxN66m/KdG/Jg3abz6p+D5zh4ZyQD38Gw97dlhIji/60UcZo4QMzLjX8EGADPqKYJNkzk8gAAAABJRU5ErkJggg=="},F7NO:function(t,e){t.exports="data:image/gif;base64,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"},FQ1i:function(t,e){},G7lW:function(t,e,a){t.exports=a.p+"static/img/mobimg.03a8b25.png"},GWjY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAARVBMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uRgdMomAAAAFnRSTlMAiETcGHKqHsEF1fYNtS064WA8ZJZalVbjwwAAAF1JREFUCNdVjlsSgCAIRakUI7V37H+pXXWY7PzAGRguNOlHICplmSucmsaLDK04dMGLaYB6zWIqecFRNk2x3uyWD91dpyc7Mv0H3QMoQVv35YqxeDTPCGAFxzFR4wVDogmObvTdDgAAAABJRU5ErkJggg=="},GXEp:function(t,e){},HFhF:function(t,e){},HPYf:function(t,e){},I4nB:function(t,e){},IuFh:function(t,e,a){(function(t){"use strict";function e(t,a){var i=s({},t);for(var n in a)"object"!=typeof t[n]||null===t[n]||Array.isArray(t[n])?void 0!==a[n]&&(i[n]=a[n]):i[n]=e(t[n],a[n]);return i}function a(){return"1.12 (internal id 630b704a @ 2018-06-06 02:16:11.305509)"}var s=Object.assign||function(t){for(var e,a=arguments,s=1,i=arguments.length;s<i;s++)for(var n in e=a[s])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i={mobile:{disabled_features:["left_toolbar","header_widget","timeframes_toolbar","edit_buttons_in_legend","context_menus","control_bar","border_around_the_chart"],enabled_features:[]}},n={width:800,height:500,symbol:"AA",interval:"D",timezone:"UTC",container_id:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"W"},{text:"1y",resolution:"W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[]}},o=function(){function t(t){if(this._id="tradingview_"+(1048576*(1+Math.random())|0).toString(16).substring(1),this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!t.datafeed)throw new Error("Datafeed is not defined");if(this._options=e(n,t),t.preset){var a=i[t.preset];a&&(void 0!==this._options.disabled_features?this._options.disabled_features=this._options.disabled_features.concat(a.disabled_features):this._options.disabled_features=a.disabled_features,void 0!==this._options.enabled_features?this._options.enabled_features=this._options.enabled_features.concat(a.enabled_features):this._options.enabled_features=a.enabled_features)}this._create()}return t.prototype.onChartReady=function(t){this._ready?t.call(this):this._readyHandlers.push(t)},t.prototype.onGrayedObjectClicked=function(t){this._innerAPI().onGrayedObjectClicked(t)},t.prototype.onShortcut=function(t,e){this._innerWindow().createShortcutAction(t,e)},t.prototype.subscribe=function(t,e){this._innerAPI().subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this._innerAPI().unsubscribe(t,e)},t.prototype.chart=function(t){return this._innerAPI().chart(t)},t.prototype.setLanguage=function(t){this.remove(),this._options.locale=t,this._create()},t.prototype.setSymbol=function(t,e,a){this._innerAPI().changeSymbol(t,e+"",a)},t.prototype.remove=function(){window.removeEventListener("resize",this._onWindowResize),this._readyHandlers.splice(0,this._readyHandlers.length),delete window[this._id];var t=this._getIFrameElement();t.contentWindow.destroyChart(),t.parentNode&&t.parentNode.removeChild(t)},t.prototype.closePopupsAndDialogs=function(){this._innerAPI().closePopupsAndDialogs()},t.prototype.selectLineTool=function(t){this._innerAPI().selectLineTool(t)},t.prototype.selectedLineTool=function(){return this._innerAPI().selectedLineTool()},t.prototype.save=function(t){this._innerAPI().saveChart(t)},t.prototype.load=function(t,e){this._innerAPI().loadChart({json:t,extendedData:e})},t.prototype.getSavedCharts=function(t){this._innerAPI().getSavedCharts(t)},t.prototype.loadChartFromServer=function(t){this._innerAPI().loadChartFromServer(t)},t.prototype.saveChartToServer=function(t,e,a,s){this._innerAPI().saveChartToServer(t,e,a,s)},t.prototype.removeChartFromServer=function(t,e){this._innerAPI().removeChartFromServer(t,e)},t.prototype.onContextMenu=function(t){this._innerAPI().onContextMenu(t)},t.prototype.createButton=function(t){return this._innerWindow().createButton(t)},t.prototype.showNoticeDialog=function(t){this._innerAPI().showNoticeDialog(t)},t.prototype.showConfirmDialog=function(t){this._innerAPI().showConfirmDialog(t)},t.prototype.showLoadChartDialog=function(){this._innerAPI().showLoadChartDialog()},t.prototype.showSaveAsChartDialog=function(){this._innerAPI().showSaveAsChartDialog()},t.prototype.symbolInterval=function(){return this._innerAPI().getSymbolInterval()},t.prototype.mainSeriesPriceFormatter=function(){return this._innerAPI().mainSeriesPriceFormatter()},t.prototype.getIntervals=function(){return this._innerAPI().getIntervals()},t.prototype.getStudiesList=function(){return this._innerAPI().getStudiesList()},t.prototype.addCustomCSSFile=function(t){this._innerWindow().addCustomCSSFile(t)},t.prototype.applyOverrides=function(t){this._options=e(this._options,{overrides:t}),this._innerWindow().applyOverrides(t)},t.prototype.applyStudiesOverrides=function(t){this._innerWindow().applyStudiesOverrides(t)},t.prototype.watchList=function(){return this._innerAPI().watchlist()},t.prototype.activeChart=function(){return this._innerAPI().activeChart()},t.prototype.chartsCount=function(){return this._innerAPI().chartsCount()},t.prototype.layout=function(){return this._innerAPI().layout()},t.prototype.setLayout=function(t){this._innerAPI().setLayout(t)},t.prototype._getIFrameElement=function(){var t=document.getElementById(this._id);if(null===t)throw new Error("There is no such iframe");return t},t.prototype._innerAPI=function(){return this._getIFrameElement().contentWindow.tradingViewApi},t.prototype._innerWindow=function(){return this._getIFrameElement().contentWindow},t.prototype._autoResizeChart=function(){this._options.fullscreen&&(this._getIFrameElement().style.height=window.innerHeight+"px")},t.prototype._create=function(){var t=this,e=this._render(),a=document.getElementById(this._options.container_id);if(null===a)throw new Error("There is no such element - #"+this._options.container_id);a.innerHTML=e;var s=this._getIFrameElement();(this._options.autosize||this._options.fullscreen)&&(s.style.width="100%",this._options.fullscreen||(s.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize();var i=function(){s.removeEventListener("load",i,!1),s.contentWindow.widgetReady(function(){t._ready=!0;for(var e=0,a=t._readyHandlers;e<a.length;e++)a[e].call(t);s.contentWindow.initializationFinished()})};s.addEventListener("load",i,!1)},t.prototype._render=function(){var t=window;t[this._id]={datafeed:this._options.datafeed,customFormatters:this._options.customFormatters,brokerFactory:this._options.brokerFactory,overrides:this._options.overrides,studiesOverrides:this._options.studies_overrides,disabledFeatures:this._options.disabled_features,enabledFeatures:this._options.enabled_features,brokerConfig:this._options.brokerConfig,restConfig:this._options.restConfig,favorites:this._options.favorites,logo:this._options.logo,numeric_formatting:this._options.numeric_formatting,rss_news_feed:this._options.rss_news_feed,newsProvider:this._options.news_provider,loadLastChart:this._options.load_last_chart,saveLoadAdapter:this._options.save_load_adapter,loading_screen:this._options.loading_screen,settingsAdapter:this._options.settings_adapter},this._options.saved_data&&(t[this._id].chartContent={json:this._options.saved_data});var e=(this._options.library_path||"")+"static/tv-chart.630b704a2b9d0eaf1593.html#localserver=1&symbol="+encodeURIComponent(this._options.symbol)+"&interval="+encodeURIComponent(this._options.interval)+(this._options.timeframe?"&timeframe="+encodeURIComponent(this._options.timeframe):"")+(this._options.toolbar_bg?"&toolbarbg="+this._options.toolbar_bg.replace("#",""):"")+(this._options.studies_access?"&studiesAccess="+encodeURIComponent(JSON.stringify(this._options.studies_access)):"")+"&widgetbar="+encodeURIComponent(JSON.stringify(this._options.widgetbar))+(this._options.drawings_access?"&drawingsAccess="+encodeURIComponent(JSON.stringify(this._options.drawings_access)):"")+"&timeFrames="+encodeURIComponent(JSON.stringify(this._options.time_frames))+"&locale="+encodeURIComponent(this._options.locale)+"&uid="+encodeURIComponent(this._id)+"&clientId="+encodeURIComponent(String(this._options.client_id))+"&userId="+encodeURIComponent(String(this._options.user_id))+(this._options.charts_storage_url?"&chartsStorageUrl="+encodeURIComponent(this._options.charts_storage_url):"")+(this._options.charts_storage_api_version?"&chartsStorageVer="+encodeURIComponent(this._options.charts_storage_api_version):"")+(this._options.indicators_file_name?"&indicatorsFile="+encodeURIComponent(this._options.indicators_file_name):"")+(this._options.custom_css_url?"&customCSS="+encodeURIComponent(this._options.custom_css_url):"")+(this._options.auto_save_delay?"&autoSaveDelay="+encodeURIComponent(String(this._options.auto_save_delay)):"")+"&debug="+this._options.debug+(this._options.snapshot_url?"&snapshotUrl="+encodeURIComponent(this._options.snapshot_url):"")+(this._options.timezone?"&timezone="+encodeURIComponent(this._options.timezone):"")+(this._options.study_count_limit?"&studyCountLimit="+encodeURIComponent(String(this._options.study_count_limit)):"")+(this._options.symbol_search_request_delay?"&ssreqdelay="+encodeURIComponent(String(this._options.symbol_search_request_delay)):"");return'<iframe id="'+this._id+'" name="'+this._id+'" src="'+e+'"'+(this._options.autosize||this._options.fullscreen?"":' width="'+this._options.width+'" height="'+this._options.height+'"')+' frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;"></iframe>'},t}();window.TradingView=window.TradingView||{},window.TradingView.version=a,t.version=a,t.onready=function(t){window.addEventListener("DOMContentLoaded",t,!1)},t.widget=o,Object.defineProperty(t,"__esModule",{value:!0})})(e)},"K/4o":function(t,e){},K092:function(t,e){},KJXN:function(t,e){},KQ9c:function(t,e){},KsgI:function(t,e){},Kvi4:function(t,e){},LL4n:function(t,e){},LXlc:function(t,e){},M1ep:function(t,e){},M9yL:function(t,e){},MRRN:function(t,e){},MTc5:function(t,e){},MUl5:function(t,e){},MZRY:function(t,e){t.exports="data:image/png;base64,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"},My5e:function(t,e){},NBkX:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4MjZEMkMxOUY5RkQxMUU4QjE3RUJFNzRFMDEwMzFFQSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4MjZEMkMxQUY5RkQxMUU4QjE3RUJFNzRFMDEwMzFFQSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjgyNkQyQzE3RjlGRDExRThCMTdFQkU3NEUwMTAzMUVBIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjgyNkQyQzE4RjlGRDExRThCMTdFQkU3NEUwMTAzMUVBIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+GY5UxgAACYlJREFUeNrsXQuUTVUY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"},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),n=a.n(s),o=a("mvHQ"),r=a.n(o),c=(a("LL4n"),a("+BTi"),a("BrEC")),l=a.n(c),d=(a("U/ZW"),a("+nRk")),u=a.n(d),m=(a("Dzb6"),a("o6kb")),p=a.n(m),h=(a("WzZF"),a("wxbk")),v=a.n(h),_=(a("oq7i"),a("+TD8")),f=a.n(_),g=(a("GXEp"),a("mtrD")),y=a.n(g),A=(a("Yq4J"),a("qubY")),C=a.n(A),b=(a("M9yL"),a("OSLW")),w=a.n(b),x=(a("/i/W"),a("V1RD")),k=a.n(x),S=(a("ylrw"),a("6oiW")),I=a.n(S),E=(a("XPMo"),a("uEG6")),P=a.n(E),R=(a("8mNY"),a("YnkO")),B=a.n(R),F=(a("I4nB"),a("STLj")),N=a.n(F),T=(a("cDSy"),a("e0Bm")),D=a.n(T),L=(a("BxWU"),a("g2bL")),M=a.n(L),U=a("7+uW"),Q={name:"App",created:function(){var t=this,e=localStorage.getItem("theme")||"dark";this.$utils.theme(e),this.$store.commit("changeTheme",e),this.$http({url:"/api/currency/quotation_new",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){t.tabList=e.data.message;for(var a=e.data.message,s=[],i=0;i<a.length;i++)s[i]=a[i].quotation;if(window.localStorage.getItem("downUp")||window.localStorage.setItem("downUp",s[0][0].change),window.localStorage.getItem("legal_id_cur")||window.localStorage.setItem("legal_id_cur",s[0][0].currency_id),!(localStorage.getItem("legal_id")||localStorage.getItem("currency_id")||localStorage.getItem("legal_name")||localStorage.getItem("currency_name"))){window.localStorage.setItem("legal_id",a[0].quotation[0].legal_id),window.localStorage.setItem("currency_id",a[0].quotation[0].currency_id),window.localStorage.setItem("legal_name",a[0].quotation[0].legal_name),window.localStorage.setItem("currency_name",a[0].quotation[0].currency_name);var n=a[0].quotation[0].currency_name+"/"+a[0].quotation[0].legal_name;window.localStorage.setItem("shareNum",a[0].quotation[0].lever_share_num),window.localStorage.setItem("fiat_convert_cny",a[0].fiat_convert_cny);window.localStorage.setItem("priceScale",1e5),window.localStorage.setItem("symbol",n)}if(!(localStorage.getItem("dealLegalId")||localStorage.getItem("dealCurrencyId")||localStorage.getItem("dealLegalName")||localStorage.getItem("dealCurrencyName"))){window.localStorage.setItem("dealLegalId",a[0].quotation[0].legal_id),window.localStorage.setItem("dealCurrencyId",a[0].quotation[0].currency_id),window.localStorage.setItem("dealLegalName",a[0].quotation[0].legal_name),window.localStorage.setItem("dealCurrencyName",a[0].quotation[0].currency_name);n=a[0].quotation[0].currency_name+"/"+a[0].quotation[0].legal_name;window.localStorage.setItem("dealSymbol",n)}}}).catch(function(t){})}},z={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var W=a("VU/8")(Q,z,!1,function(t){a("bR/Z")},null,null).exports,Y=a("/ocq"),G={name:"indexHeader",data:function(){return{appshow:!1,address:"",account_number:"",assets:"资产",orders:"订单",isShow:!1,show1:!1,show2:!1,show3:!1,show4:!1,show5:!1,show6:!1,current:0,type:"",extension_code:"",homeindex:!0,tabList:[],noticeList:[],accountList:[{src1:a("jp0m"),src2:a("WHr/"),title:this.$t("header.accountSet"),page:"accountSet"},{src1:a("QGpR"),src2:a("2e81"),title:this.$t("header.tradeLog"),page:"transferLog"},{src1:a("jp0m"),src2:a("WHr/"),title:this.$t("header.receiveSet"),page:"userSetting"},{src1:a("BZWR"),src2:a("EXKf"),title:this.$t("header.identify"),page:"authentication"}],theme:""}},watch:{$route:function(t,e){"/"!==this.$route.path?this.homeindex=!1:this.homeindex=!0}},filters:{hideFour:function(t){return t=t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}},created:function(){"/"!==this.$route.path?this.homeindex=!1:this.homeindex=!0,this.address=localStorage.getItem("token")||""},mounted:function(){var t=this;t.theme=localStorage.getItem("theme"),t.account_number=localStorage.getItem("accountNum")||"",t.extension_code=localStorage.getItem("extension_code")||"",t.is_seller=window.localStorage.getItem("is_seller")||"",t.type=window.localStorage.getItem("type")||"",t.getNotice(),1==t.is_seller&&(t.isShow=!0),eventBus.$on("seller",function(e){e&&(t.is_seller=window.localStorage.getItem("is_seller")||"",1==t.is_seller&&(t.isShow=!0))}),t.bus.$on("nav_name",function(e){t.current=t.tabList.findIndex(function(t){return t.page===e||t.children&&t.children.includes(e)})})},methods:{themeChange:function(t){this.$utils.theme(t,!0),this.theme=t,this.$store.commit("changeTheme",t)},getNotice:function(){var t=this;this.$http({url:"/api/news/list",method:"post",data:{c_id:"11"}}).then(function(e){t.noticeList=e.data.message.list})},goAll:function(){this.$router.push({name:"noticeList"})},goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})},showapp:function(){this.appshow=!this.appshow},goto:function(t,e){this.current=t,this.bus.$emit("nav_name",e),"userSetting"==e?this.$router.push("/userSetting"):"team"==e?this.$router.push("/team"):this.$router.push({name:e})},gotoAccount:function(t,e){this.bus.$emit("nav_name",e),this.$router.push({name:e})},loginOut:function(){var t=this;this.$http({url:"/api/user/logout",method:"get",data:{},headers:{Authorization:window.localStorage.getItem("token")}}).then(function(e){var a=window.localStorage.getItem("locale")||"en";localStorage.clear(),window.localStorage.setItem("locale",a),t.$router.push({name:"login",params:{type:1}})})},assets_over:function(){this.show1=!0},assets_out:function(){this.show1=!1},order_over:function(){this.show2=!0},order_out:function(){this.show2=!1},mine_over:function(){this.show3=!0},mine_out:function(){this.show3=!1},lgover:function(){this.show4=!0},lgout:function(){this.show4=!1},lgover2:function(){this.show6=!0},lgout2:function(){this.show6=!1},newover:function(){this.show5=!0},newout:function(){this.show5=!1},setLang:function(t){(window.localStorage.getItem("locale")||"en")!=t&&(window.localStorage.setItem("locale",t),this.$i18n.locale=t,this.$http({url:"/api/set/lang",method:"post",data:{lang:t}}).then(function(t){window.location.reload()}))}}},j={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["nav_bar",{nav_bars:t.homeindex}]},[s("div",{staticClass:"content clear"},[s("div",{staticClass:"fl"},[s("router-link",{staticStyle:{border:"none"},attrs:{to:"/",exact:""}},[s("img",{staticClass:"navbar-logo",staticStyle:{height:"32px",position:"relative","border-radius":"2px"},attrs:{src:a("iQH9")}})])],1),t._v(" "),s("ul",{staticClass:"navbar-item fl mouseDefault ml20"},[s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/allmarket"}},[t._v(t._s(t.$t("header.markets")))])],1),t._v(" "),s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/legalTrade"}},[t._v(t._s(t.$t("header.fiat")))])],1),t._v(" "),s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/dealCenter"}},[t._v(t._s(t.$t("header.exchange")))])],1),t._v(" "),s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/leverdealCenter"}},[t._v(t._s(t.$t("header.lever")))])],1),t._v(" "),s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/secondsOrder"}},[t._v(t._s(t.$t("header.micro")))])],1),t._v(" "),t.isShow?s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/myLegalShops"}},[t._v(t._s(t.$t("header.myshop")))])],1):t._e(),t._v(" "),t.address.length>0?s("li",{staticClass:"base"},[s("router-link",{attrs:{to:"/dealFinance"}},[t._v(t._s(t.$t("header.assets")))])],1):t._e()]),t._v(" "),s("div",{staticClass:"fr"},[s("div",{staticClass:"account-box fl positionR curPer flex"},[s("div",[t._v(t._s(t.account_number))]),t._v(" "),s("div",{staticClass:"msg_wrap"},[t.address.length>0?s("div",{staticClass:"account_login fColorn fl positionR languagetxt",on:{mouseover:t.mine_over,mouseout:t.mine_out}},[s("i",{staticClass:"iconfont icon-zhanghao topColor hov ft16"}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.show3,expression:"show3"}],staticClass:"account-choose mine ft14",on:{mouseover:t.mine_over,mouseout:t.mine_out}},[t._l(t.accountList,function(e,a){return s("p",{key:a,staticClass:"curPer",on:{click:function(a){t.goto(null,e.page)}}},[s("img",{attrs:{src:e.src1,alt:""}}),t._v(" "),s("img",{attrs:{src:e.src2,alt:""}}),t._v(" "),s("span",[t._v(t._s(e.title))])])}),t._v(" "),s("p",{staticClass:"curPer",on:{click:t.loginOut}},[s("img",{attrs:{src:a("GWjY"),alt:""}}),t._v(" "),s("img",{attrs:{src:a("DaXA"),alt:""}}),t._v(" "),s("span",[t._v(t._s(t.$t("header.logout")))])])],2)]):t._e(),t._v(" "),t.address.length<=0?s("div",{staticClass:"fl login mr50"},[s("router-link",{staticClass:"links",attrs:{to:{name:"login"}}},[s("i",{staticClass:"iconfont icon-denglu-copy"}),t._v(" "),s("span",[t._v(t._s(t.$t("header.login")))])]),t._v(" "),s("router-link",{staticClass:"ml20 links",attrs:{to:{name:"register"}}},[s("i",{staticClass:"iconfont icon-zhuce"}),t._v(" "),s("span",[t._v(t._s(t.$t("header.sign")))])])],1):t._e()]),t._v(" "),t.show2?s("div",{staticClass:"order-choose ft14 fColor1",on:{mouseover:t.order_over,mouseout:t.order_out}},t._l(t.orderList,function(e,a){return s("p",{key:a,staticClass:"curPer",on:{click:function(a){t.goto(null,e.page)}}},[s("img",{attrs:{src:e.src1,alt:""}}),t._v(" "),s("img",{attrs:{src:e.src2,alt:""}}),t._v(" "),s("span",[t._v(t._s(e.title))])])})):t._e(),t._v(" "),s("div",{staticClass:"helfcenter positionR topColor ml10 mr20 ft14 languagetxt",on:{mouseover:t.newover,mouseout:t.newout}},[s("router-link",{attrs:{to:"/noticeList"}},[s("i",{staticClass:"iconfont icon-laba ft14 hov"})]),t._v(" "),t.show5?s("div",{staticClass:"noticeBox ft12"},[t._l(t.noticeList,function(e,a){return a<5?s("p",{key:e.id,on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))]):t._e()}),t._v(" "),t.noticeList.length>0?s("p",{staticClass:"tc all",on:{click:function(e){t.goAll()}}},[t._v("查看全部")]):t._e()],2):t._e()],1),t._v(" "),s("div",{staticClass:"positionR ft12 languagetxt",on:{mouseover:t.lgover,mouseout:t.lgout}},[s("i",{staticClass:"iconfont icon-yuyan topColor hov ft14"}),t._v(" "),s("span",{staticClass:"topColor hov"},[t._v(t._s(t.$t("language")))]),t._v(" "),t.show4?s("i",{staticClass:"iconfont icon-shangla_icon topColor hov ft12"}):s("i",{staticClass:"iconfont icon-xiala topColor hov ft12"}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.show4,expression:"show4"}],staticClass:"language fColorn"},[s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("zh")}}},[s("img",{attrs:{src:a("1YwK"),alt:""}}),t._v(" "),s("span",[t._v("简体中文")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("en")}}},[s("img",{attrs:{src:a("hRk0"),alt:""}}),t._v(" "),s("span",[t._v("English")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("hk")}}},[s("img",{attrs:{src:a("+7W0"),alt:""}}),t._v(" "),s("span",[t._v("繁體中文")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("jp")}}},[s("img",{staticStyle:{height:"24px"},attrs:{src:a("BXGj"),alt:""}}),t._v(" "),s("span",[t._v("日本語")])])])]),t._v(" "),s("div",{staticClass:"flex white positionR alcenter languagetxt ml20 ft12 ",on:{mouseover:t.lgover2,mouseout:t.lgout2}},["dark"==t.theme?s("span",[t._v("夜间模式")]):t._e(),t._v(" "),"dark"==t.theme?s("img",{staticStyle:{width:"16px",height:"16px","margin-left":"5px"},attrs:{src:a("6kY0"),alt:""}}):t._e(),t._v(" "),"white"==t.theme?s("span",[t._v("日间模式")]):t._e(),t._v(" "),"white"==t.theme?s("img",{staticStyle:{width:"16px",height:"16px","margin-left":"5px"},attrs:{src:a("Tkyx"),alt:""}}):t._e(),t._v(" "),t.show6?s("i",{staticClass:"iconfont icon-shangla_icon topColor hov ft12"}):s("i",{staticClass:"iconfont icon-xiala topColor hov ft12"}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.show6,expression:"show6"}],staticClass:"language fColorn"},[s("p",{staticClass:"flex alcenter",on:{click:function(e){t.themeChange("dark")}}},[t._v("\n 夜间模式\n "),s("img",{staticStyle:{width:"16px",height:"16px","margin-left":"5px"},attrs:{src:a("6kY0"),alt:""}})]),t._v(" "),s("p",{staticClass:"flex alcenter",on:{click:function(e){t.themeChange("white")}}},[t._v("\n 日间模式\n "),s("img",{staticStyle:{width:"16px",height:"16px","margin-left":"5px"},attrs:{src:a("Tkyx"),alt:""}})])])])])])])])},staticRenderFns:[]};var V=a("VU/8")(G,j,!1,function(t){a("M1ep")},"data-v-76f4ed82",null).exports,O=(a("1AEq"),a("gsqX")),Z=a.n(O),J=(a("mgS3"),{name:"homeContent",components:{indexHeader:V},data:function(){return{quotation:[],nowCoin:"",curSwiper:0,curCoinTab:0,coinTabList:[{title:"USDT行情"},{title:"BTC行情"}],coinKlineList:[],coinKline:{},swiperList:[],coinList:[],coin_list:[],noticeList:[],swiperImgs:[],footFrist:[],footSecond:[],haccount:""}},created:function(){this.getQuotation()},destroyed:function(){},mounted:function(){this.getSwiper(),this.connect(),this.getNews(),this.aboutUs(),this.help()},methods:{linkDownload:function(t){window.open(t,"_blank")},register:function(){this.$router.push({name:"register",query:{haccount:this.haccount}})},getSwiper:function(){var t=this;this.$http({url:"/api/news/list",method:"post",data:{c_id:5}}).then(function(e){"ok"==e.data.type&&(t.swiperImgs=e.data.message.list)}).then(function(){new Z.a(".banner_wrap",{loop:!0,autoplay:5e3,pagination:".swiper-pagination02",paginationClickable:!0,autoplayDisableOnInteraction:!1,observer:!0,observeParents:!0})})},connect:function(){this.$socket.emit("login",localStorage.getItem("user_id")),this.$socket.on("daymarket",function(t){if("daymarket"==t.type){var e=t.symbol,a=t.change,s=t.now_price,i=t.volume;$("div[data-name='"+e+"']").find(".now_price").html((s-0).toFixed(4)),$("div[data-name='"+e+"']").find(".volume").html((i-0).toFixed(4)),$("div[data-name='"+e+"']").find(".now_cny").html((6.9641*s).toFixed(4)+" CNY"),$("div[data-name='"+e+"']").find("button").text(a+"%"),a<0?$("li[data-name='"+e+"']").find("button").addClass("downcolor"):$("li[data-name='"+e+"']").find("button").removeClass("downcolor")}})},setPercent:function(t,e){if(t-e==0)return"0%";if(0==t)return"-100%";if(0==e)return"+100%";var a=((t-e)/e/100).toFixed(2);return a>0?a="+"+a+"%":a+="%",a},getQuotation:function(){var t=this;this.$http({url:"/api/currency/quotation_new",method:"get"}).then(function(e){if("ok"==e.data.type&&0!=e.data.message.length){var a=e.data.message;t.quotation=a.find(function(t){return"USDT"==t.name}).quotation}})},getCurrent:function(t){this.curCoinTab=t},mouseEnter:function(t){this.curSwiper=t},init:function(t){var e=this;this.$http.post("/api/quotation").then(function(a){"ok"==a.data.type&&(e.coinList=a.data.message.coin_list,e.swiperList=a.data.message.coin_list,t&&t())})},timestampToTime:function(t){var e=new Date(t);return e.getFullYear()+"/"+((e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"/")+(e.getDate()+" ")},getNews:function(){var t=this;this.$http.post("/api/news/list",{c_id:4}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;t.noticeList=a}})},goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})},aboutUs:function(){var t=this;this.$http.post("/api/news/list",{c_id:9}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length,t.footFrist=a}})},help:function(){var t=this;this.$http.post("/api/news/list",{c_id:10}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length,t.footSecond=a}})}}}),H={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"indexBlackes home-box",attrs:{id:"sw"}},[s("div",{staticClass:"swiper-container banner_wrap swiper-container-horizontal"},[s("div",{staticClass:"swiper-wrapper"},t._l(t.swiperImgs,function(t,e){return s("div",{staticClass:"swiper-slide sliders"},[s("a",{attrs:{href:""}},[s("img",{attrs:{src:t.cover}})])])})),t._v(" "),s("div",{staticClass:"swiper-pagination swiper-pagination02"})]),t._v(" "),s("div",{staticClass:"topusdt"},[s("ul",{staticClass:"flex"},t._l(t.quotation,function(e,a){return 1==e.is_display&&a<6?s("li",{key:a},[s("div",{staticClass:"ft14",attrs:{"data-name":e.currency_name+"/"+e.legal_name}},[s("div",{staticClass:"flex between"},[s("div",[s("p",[t._v(t._s(e.currency_name)+"/"+t._s(e.legal_name))]),t._v(" "),s("p",{staticClass:"ft18 mt15 now_price mt"},[t._v(t._s((e.now_price-0).toFixed(4)))])]),t._v(" "),s("button",{class:[{downcolor:"-"==e.change.substring(0,1)}]},[t._v(t._s(Number(e.change).toFixed(2)||"0.00")+"%")])]),t._v(" "),s("p",{staticClass:"mt15 mt"},[s("span",{staticClass:"color47"},[t._v(t._s(t.$t("home.vol")))]),t._v(" "),s("span",{staticClass:"volume"},[t._v(t._s((e.volume-0).toFixed(2)))])])])]):t._e()}))]),t._v(" "),s("div",{staticClass:"notice_box"},[s("div",t._l(t.noticeList,function(e,a){return s("span",{key:a,on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))])}))]),t._v(" "),s("div",{staticClass:"feature_wrap"},[s("h2",[t._v(t._s(t.$t("home.c01")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c02")))]),t._v(" "),s("ul",{staticClass:"feature_list slide_ani a-fadeinB clearfix"},[s("li",{staticClass:"feature_safe"},[s("h3",[t._v(t._s(t.$t("home.c03")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c04")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c05")))])]),t._v(" "),s("li",{staticClass:"feature_eco"},[s("h3",[t._v(t._s(t.$t("home.c06")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c07")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c08")))])]),t._v(" "),s("li",{staticClass:"feature_user"},[s("h3",[t._v(t._s(t.$t("home.c09")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c10")))]),t._v(" "),s("p",[t._v(t._s(t.$t("home.c11")))])])])]),t._v(" "),s("div",{staticClass:"client_wrap"},[s("div",{staticClass:"wrap_in tc"},[s("h2",{staticClass:"ft28"},[t._v(t._s(t.$t("home.c12")))]),t._v(" "),s("p",{staticClass:"nextp"},[t._v(t._s(t.$t("home.c13")))]),t._v(" "),s("div",{staticClass:"flex",staticStyle:{margin:"70px 10% 0 10%"}},[s("ul",{},[t._m(0),t._v(" "),s("li",{staticClass:"flex alcenter"},[s("p",{staticClass:"p1"}),t._v(" "),s("span",[t._v(t._s(t.$t("home.android")))]),t._v(" "),s("div",{staticClass:"codebox tc ft12"},[s("img",{attrs:{src:a("MZRY"),alt:""}}),t._v(" "),s("span",[t._v(t._s(t.$t("home.android")))])])])]),t._v(" "),t._m(1)])])]),t._v(" "),s("div",{staticClass:"register_wrap tc flex column center"},[s("h2",[t._v(t._s(t.$t("home.atrade")))]),t._v(" "),s("div",{staticClass:"flex alcenter mauto rebox"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.haccount,expression:"haccount"}],staticClass:"input-register",attrs:{type:"text",placeholder:t.$t("home.pinput")},domProps:{value:t.haccount},on:{input:function(e){e.target.composing||(t.haccount=e.target.value)}}}),t._v(" "),s("button",{staticClass:"ft16",on:{click:t.register}},[t._v(t._s(t.$t("lg.register")))])])]),t._v(" "),s("footer",[s("div",{staticClass:"content flex"},[t._m(2),t._v(" "),s("dl",[s("dt",[t._v(t._s(t.$t("foo.about")))]),t._v(" "),t._l(t.footFrist,function(e){return s("dd",{on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))])})],2),t._v(" "),s("dl",[s("dt",[t._v(t._s(t.$t("foo.support")))]),t._v(" "),t._l(t.footSecond,function(e){return s("dd",{on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))])})],2),t._v(" "),s("dl",{staticClass:"tl"},[s("dt",[t._v(t._s(t.$t("foo.contact")))]),t._v(" "),t._m(3)])]),t._v(" "),t._m(4)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex alcenter"},[e("p",{staticClass:"p0"}),this._v(" "),e("span",[this._v("IPhone")]),this._v(" "),e("div",{staticClass:"codebox tc ft12"},[e("img",{attrs:{src:a("7Rkl"),alt:""}}),this._v(" "),e("span",[this._v("Iphone")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mon_mind tc"},[e("div",[e("img",{staticClass:"pcimg",attrs:{src:a("V6Zi"),alt:""}})]),this._v(" "),e("img",{staticClass:"mobimg",attrs:{src:a("G7lW"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("dl",[e("dt",[e("img",{staticStyle:{"margin-top":"10px",height:"50px"},attrs:{src:a("iQH9"),alt:""}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("dd",{staticClass:"felx alcenter"},[e("ul",{staticClass:"concat_ul flex tc end"},[e("li",{staticClass:"wechat-box"},[e("img",{attrs:{src:a("xN54"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("/7ay"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("oaDN"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("Eu+b"),alt:""}})])]),this._v(" "),e("ul",{staticClass:"concat_ul flex tc mt10"},[e("li",[e("img",{attrs:{src:a("/hN2"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("vrS1"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("EMcJ"),alt:""}})]),this._v(" "),e("li",[e("img",{attrs:{src:a("VJ+y"),alt:""}})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"flex column center mt20 tc ft12"},[e("span",{staticClass:"white ft20"},[this._v("BBANK")]),this._v("\n ©Copyright 2019 BBANK. All rights reserved.\n ")])}]};var K=a("VU/8")(J,H,!1,function(t){a("LXlc")},null,null).exports,X={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("footer",[a("div",{staticClass:"content flex"},[t._m(0),t._v(" "),a("dl",[a("dt",[t._v(t._s(t.$t("foo.about")))]),t._v(" "),t._l(t.footFrist,function(e){return a("dd",{key:e,on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))])})],2),t._v(" "),a("dl",[a("dt",[t._v(t._s(t.$t("foo.support")))]),t._v(" "),t._l(t.footSecond,function(e){return a("dd",{key:e,on:{click:function(a){t.goDetail(e.id)}}},[t._v(t._s(e.title))])})],2),t._v(" "),a("dl",[a("dt",[t._v(t._s(t.$t("foo.contact")))]),t._v(" "),t._m(1)])]),t._v(" "),t._m(2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("dl",[e("dt",[e("img",{attrs:{src:a("E2K3"),alt:""}})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("dd",{staticClass:"felx alcenter center"},[s("ul",{staticClass:"concat_ul flex tc end"},[s("li",{staticClass:"wechat-box"},[s("img",{attrs:{src:a("xN54"),alt:""}}),t._v(" "),s("img",{staticClass:"weimg",attrs:{src:a("q6yu"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("/7ay"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("oaDN"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("Eu+b"),alt:""}})])]),t._v(" "),s("ul",{staticClass:"concat_ul flex tc mt10"},[s("li",[s("img",{attrs:{src:a("/hN2"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("vrS1"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("EMcJ"),alt:""}})]),t._v(" "),s("li",[s("img",{attrs:{src:a("Yvf/"),alt:""}})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"flex column center mt20 tc ft12"},[e("span",{staticClass:"white ft20"},[this._v("BBANK")]),this._v("\n ©2014-2018 BBANK,All Rights Reserved\n ")])}]};var q=a("VU/8")({name:"indexFooter",data:function(){return{footFrist:[],footSecond:[]}},created:function(){},mounted:function(){this.aboutUs(),this.help()},methods:{goDetail:function(t){t=t,this.$router.push({name:"noticeDetail",query:{id:t}})},aboutUs:function(){var t=this;this.$http.post("/api/news/list",{c_id:9}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length,t.footFrist=a}})},help:function(){var t=this;this.$http.post("/api/news/list",{c_id:10}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length,t.footSecond=a}})}}},X,!1,function(t){a("yoci")},"data-v-2aef7ec3",null).exports,tt={name:"home",data:function(){return{}},methods:{},components:{indexHeader:V,homeContent:K,indexFooter:q},created:function(){var t=this;this.$http({url:"/api/currency/quotation_new",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){t.tabList=e.data.message;for(var a=e.data.message,s=[],i=0;i<a.length;i++)s[i]=a[i].quotation;if(!(localStorage.getItem("legal_id")||localStorage.getItem("currency_id")||localStorage.getItem("legal_name")||localStorage.getItem("currency_name"))){window.localStorage.setItem("legal_id",a[0].quotation[0].legal_id),window.localStorage.setItem("currency_id",a[0].quotation[0].currency_id),window.localStorage.setItem("legal_name",a[0].quotation[0].legal_name),window.localStorage.setItem("currency_name",a[0].quotation[0].currency_name);var n=a[0].quotation[0].currency_name+"/"+a[0].quotation[0].legal_name;window.localStorage.setItem("priceScale",1e5),window.localStorage.setItem("symbol",n)}if(!(localStorage.getItem("dealLegalId")||localStorage.getItem("dealCurrencyId")||localStorage.getItem("dealLegalName")||localStorage.getItem("dealCurrencyName"))){window.localStorage.setItem("dealLegalId",a[0].quotation[0].legal_id),window.localStorage.setItem("dealCurrencyId",a[0].quotation[0].currency_id),window.localStorage.setItem("dealLegalName",a[0].quotation[0].legal_name),window.localStorage.setItem("dealCurrencyName",a[0].quotation[0].currency_name);n=a[0].quotation[0].currency_name+"/"+a[0].quotation[0].legal_name;window.localStorage.setItem("dealSymbol",n)}}}).catch(function(t){})}},et={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"indexBlackes"},[e("indexHeader"),this._v(" "),e("router-view")],1)},staticRenderFns:[]};var at=a("VU/8")(tt,et,!1,function(t){a("6EIT")},"data-v-e12132de",null).exports,st={name:"noticeList",components:{indexHeader:V},data:function(){return{more:this.$t("td.more"),newList:[]}},created:function(){},methods:{getNotice:function(){var t=this;this.$http({url:"/api/news/list",method:"post",data:{c_id:"11"}}).then(function(e){t.newList=e.data.message.list})},goBefore:function(){this.$router.back(-1)},getMore:function(){},goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})}},mounted:function(){this.getNotice()}},it={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"notice"},[s("indexHeader"),t._v(" "),s("div",{staticClass:"account-wrap"},[s("div",{staticClass:"account"},[s("div",[s("div",{staticClass:"back-nav fColor1 ft20 clear",staticStyle:{padding:"10px 20px 0"}},[t._v(" "+t._s(t.$t("news.helpcenter"))+"\n \n ")])]),t._v(" "),s("div",{staticClass:"account-content"},[s("div",{staticClass:"tc hide",staticStyle:{"padding-top":"150px"}},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])]),t._v(" "),s("div",[s("ul",{staticClass:"noticeList"},t._l(t.newList,function(e){return s("li",{key:e.id,staticClass:"clear curPer"},[s("div",{on:{click:function(a){t.goDetail(e.id)}}},[s("div",{},[t._v(t._s(e.title))]),t._v(" "),s("span",{staticClass:"fr"},[t._v(t._s(e.update_time))])])])}))]),t._v(" "),s("div",{staticClass:"tc",staticStyle:{padding:"15px"}})])])])],1)},staticRenderFns:[]};var nt=a("VU/8")(st,it,!1,function(t){a("wSFB")},"data-v-772c5d23",null).exports,ot={name:"deal",data:function(){return{tradeList:[]}},created:function(){},methods:{init:function(){var t=this;this.address=localStorage.getItem("address")||"",this.$http({url:"/api/transaction/deal",method:"post",data:{}}).then(function(e){t.tradeList=e.data.message.complete,e.data.type})}},filters:{filterTime:function(t){return t=t.substring(t.length-8)}}},rt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"deal",staticStyle:{"min-width":"600px",background:"#1a243b"}},[a("div",{staticClass:"title fColor1"},[t._v("实时成交")]),t._v(" "),a("div",{staticClass:"container fColor1 ft12 scroll"},[t._m(0),t._v(" "),a("ul",{staticClass:"list-item"},t._l(t.tradeList,function(e,s){return a("li",{staticClass:"tc"},[a("span",[t._v(t._s(t._f("filterTime")(e.create_time)))]),t._v(" "),a("span",[t._v(t._s(e.price))]),t._v(" "),a("span",[t._v(t._s(e.number))])])}))])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"deal-title clear tc"},[e("span",[this._v("时间")]),this._v(" "),e("span",[this._v("价格(CNY)")]),this._v(" "),e("span",[this._v("数量(JNB)")])])}]};var ct=a("VU/8")(ot,rt,!1,function(t){a("SF+e")},"data-v-4a47776c",null).exports,lt={name:"exchange",data:function(){return{outlist:[],inlist:[],load:1,newData:0,loctheme:"",currency_name:"",legal_name:"",currency_id:"",legal_id:"",change:"",cny:1}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)},tofixedsix:function(t){return(t=Number(t)).toFixed(6)},tofixedEight:function(t){return(t=Number(t)).toFixed(8)}},mounted:function(){var t=this;eventBus.$on("fiat_convert_cny",function(e){t.cny=e})},created:function(){window.localStorage.getItem("l_id"),window.localStorage.getItem("c_id");this.legal_id=localStorage.getItem("dealLegalId"),this.currency_id=localStorage.getItem("dealCurrencyId"),this.legal_name=localStorage.getItem("dealLegalName"),this.currency_name=localStorage.getItem("dealCurrencyName"),this.buy_sell(this.legal_id,this.currency_id),this.connect(this.legal_id,this.currency_id),this.upPrice(this.legal_id,this.currency_id)},methods:{price:function(t){eventBus.$emit("toPrice",t)},buy_sell:function(t,e){var a=this;a.$http({url:"/api/transaction/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(s){if("ok"==s.data.type){a.newData=s.data.message.last_price,a.price(s.data.message.last_price),localStorage.setItem("dealPrice",a.newData);for(var i=s.data.message.in,n=s.data.message.out,o=[],r=[],c=[],l=[],d=0;d<i.length;d++)(o=[])[0]=i[d].price,o[1]=i[d].number,r.push(o);for(var d in n)(c=[])[0]=n[d].price,c[1]=n[d].number,l.push(c);a.inlist=r,a.outlist=l,a.connect(t,e)}}).catch(function(t){})},connect:function(t,e){var a=this;a.$socket.emit("login",localStorage.getItem("user_id")),a.$socket.on("market_depth",function(s){if("market_depth"==s.type){var i={newprice:s.last_price,newup:s.proportion,istoken:s.token,yesprice:s.yesterday,toprice:s.today};if(eventBus.$emit("toNew",i),"string"==typeof s.bids)var n=JSON.parse(s.bids),o=JSON.parse(s.asks);else n=s.bids,o=s.asks;s.legal_id==t&&s.currency_id==e&&(a.inlist=n,a.outlist=o)}})},upPrice:function(t,e){var a=this;a.$socket.emit("login",localStorage.getItem("user_id")),a.$socket.on("kline",function(s){"kline"==s.type&&s.currency_id==e&&s.legal_id==t&&(a.newData=s.close,window.localStorage.setItem("dealPrice",a.newData))}),a.$socket.on("daymarket",function(t){a.currency_name==t.currency_name&&a.legal_name==t.legal_name&&(a.change=t.change)})}}},dt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"exchange"},[a("div",{staticClass:"content fColor1"},[a("div",{staticClass:"new_price bdb"},[a("span",{staticClass:"ft14"},[t._v(t._s(t.$t("market.handicap")))])]),t._v(" "),a("div",{staticClass:"exchange_title ft12 clear tc"},[a("span",[t._v(t._s(t.$t("cuy.direction")))]),t._v(" "),a("span",[t._v(t._s(t.$t("cuy.price"))+"("+t._s(t.legal_name)+")")]),t._v(" "),a("span",[t._v(t._s(t.$t("td.num"))+"("+t._s(t.currency_name)+")")])]),t._v(" "),a("ul",{staticClass:"list-item ft12 tc scroll"},[t._l(t.outlist,function(e,s){return a("li",{staticClass:"curPer",on:{click:function(a){t.price(e[0])}}},[a("span",{staticClass:"red"},[t._v(t._s(t.$t("cuy.sell"))+" "+t._s(t.outlist.length-s))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedEight")(e[0]||"0.000")))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedFour")(e[1]||"0.000")))])])}),t._v(" "),a("div",{class:"white"==t.loctheme?"border-tw":"border-tm"},[a("div",{staticClass:"flex alcenter line"},[t.change>0?a("span",{staticClass:"green ft14"},[t._v(t._s(t._f("tofixedsix")(t.newData||"0.000")))]):a("span",{staticClass:"red ft14"},[t._v(t._s(t._f("tofixedFour")(t.newData||"0.000")))]),t._v(" "),a("span",[t._v("≈ "+t._s((t.newData*this.cny).toFixed(6))+" CNY")])])]),t._v(" "),t._l(t.inlist,function(e,s){return a("li",{staticClass:"curPer",on:{click:function(a){t.price(e[0])}}},[a("span",{staticClass:"green"},[t._v(t._s(t.$t("cuy.buy"))+" "+t._s(s+1))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedEight")(e[0]||"0.000")))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedFour")(e[1]||"0.000")))])])})],2)])])},staticRenderFns:[]};var ut=a("VU/8")(lt,dt,!1,function(t){a("0aKs")},"data-v-ca6038d4",null).exports,mt={name:"dealMarket",data:function(){return{ids:0,isShow:0,tabList:[],marketList:[],newData:["BBANK","$0.076128","-1.11%"],legal_index:this.$route.params.legal_index,currency_index:this.$route.params.currency_index,tradeDatas:"",index2:0,index1:0,dataList:[],selectedId:"",shareNum:"",fiat_convert_cny:0}},created:function(){var t=this;this.socket(localStorage.getItem("token"));var e=this;this.$http({url:"/api/currency/quotation_new",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){if("ok"==a.data.type){e.tabList=a.data.message;var s=a.data.message,i=0,n=0;if(localStorage.getItem("dealIndex1")?(i=localStorage.getItem("dealIndex1"),e.index1=localStorage.getItem("dealIndex1")):i=e.index1,localStorage.getItem("dealIndex2")?(n=localStorage.getItem("dealIndex2"),e.index2=localStorage.getItem("dealIndex2")):n=e.index2,e.marketList=a.data.message[i].quotation,e.selectedId=a.data.message[i].quotation[e.index2].legal_id,e.dataList=a.data.message,window.localStorage.setItem("fiat_convert_cny",e.dataList[i].rmb_relation),localStorage.getItem("dealLegalId")||localStorage.getItem("dealCurrencyId")||localStorage.getItem("dealLegalName")||localStorage.getItem("dealCurrencyName")){e.currency_name=window.localStorage.getItem("dealCurrencyName"),e.currency_id=window.localStorage.getItem("dealCurrencyId");var o=window.localStorage.getItem("fiat_convert_cny");t.fiat_convert_cny=o,e.changeFee(o)}else e.currency_name=s[i].quotation[n].currency_name,e.currency_id=s[i].quotation[n].currency_id,window.localStorage.setItem("dealCurrencyName",s[i].quotation[n].currency_name),window.localStorage.setItem("dealLegalId",s[i].quotation[n].legal_id),window.localStorage.setItem("dealLegalName",s[i].quotation[n].legal_name),window.localStorage.setItem("dealCurrencyId",s[i].quotation[n].currency_id),window.localStorage.setItem("fiat_convert_cny",s[i].rmb_relation),t.fiat_convert_cny=s[i].rmb_relation,e.changeFee(s[i].rmb_relation)}}).catch(function(t){}),window.localStorage.getItem("dealIndex2")&&window.localStorage.getItem("dealIndex1")&&(this.index2=window.localStorage.getItem("dealIndex2"),this.index1=window.localStorage.getItem("dealIndex1"))},mounted:function(){eventBus.$on("toNew",function(t){if(t){var e=t.newprice,a=t.istoken,s=Number(t.newup).toFixed(2);s>=0?(s="+"+Number(s).toFixed(2)+"%",$("span[data-name='"+a+"']").next().css("color","#12b886")):(s+="%",$("span[data-name='"+a+"']").next().css("color","#cc4951")),$("span[data-name='"+a+"']").html("$"+e).next().html(s)}})},methods:{changeFee:function(t){eventBus.$emit("fiat_convert_cny",t)},changeType:function(t,e,a){this.index1=t,this.index2=null,$(".currency_p p").removeClass("active_p"),this.isShow=t,this.ids="a",this.marketList=this.dataList[t].quotation,this.fiat_convert_cny=this.dataList[t].fiat_convert_cny},getSymbols:function(t){var e=this;if(this.address.length<=0)return!1;this.$http({url:"/api/wallet/list?user_id="+this.address||"",type:"GET"}).then(function(a){"ok"==a.data.type&&(e.accountInfo=a.data.message,e.dataList=a.data.message.list,t&&t())}).catch(function(t){return t})},quota_shift:function(t,e,a,s,i,n,o){window.localStorage.setItem("dealDownUp",n),window.localStorage.setItem("dealIndex1",this.index1),window.localStorage.setItem("dealIndex2",t),this.ids=t;window.localStorage.setItem("dealLegalId",e),window.localStorage.setItem("dealCurrencyId",i),window.localStorage.setItem("dealLegalName",a),window.localStorage.setItem("dealCurrencyName",s),window.localStorage.setItem("fiat_convert_cny",this.fiat_convert_cny),this.changeFee(this.fiat_convert_cny);var r=s+"/"+a;window.localStorage.setItem("dealSymbol",r),location.reload()},socket:function(t){var e=this;e.$socket.emit("login",localStorage.getItem("user_id")),e.$socket.on("daymarket",function(t){if("daymarket"==t.type&&e.selectedId&&e.selectedId==t.legal_id){var a=e.marketList;for(var s in a)a[s].currency_id==t.currency_id&&(e.marketList[s].volume=t.volume,e.marketList[s].now_price=t.now_price,e.marketList[s].change=t.change)}})}}},pt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"market"},[a("div",{staticClass:"m_filter"},[a("div",{staticClass:"tabtitle fColor1 ft14 curPer flex"},t._l(t.tabList,function(e,s){return a("span",{key:s,class:s==t.index1?"active":"",on:{click:function(a){t.changeType(s,e.name,e.id)}}},[t._v(t._s(e.name))])}))]),t._v(" "),a("div",{staticClass:"coin-title clear"},[a("div",[a("span",[t._v(t._s(t.$t("td.currency")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("market.newprice")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("market.change")))])])]),t._v(" "),a("div",{staticClass:"line bdb"}),t._v(" "),a("ul",{staticClass:"coin-wrap scroll fColor1"},t._l(t.marketList,function(e,s){return 1==e.is_display&&1==e.open_coin_trade?a("li",{key:s,staticClass:"currency_p",class:s==t.index2?"active_p":"",on:{click:function(a){t.quota_shift(s,e.legal_id,e.legal_name,e.currency_name,e.currency_id,e.change,e.lever_share_num)}}},[a("p",[a("span",[t._v(t._s(e.currency_name))]),t._v(" "),a("span",[t._v(t._s((e.now_price-0).toFixed(4)))]),t._v(" "),e.change>=0?a("span",{staticClass:"green"},[t._v("+"+t._s((e.change-0).toFixed(2))+"%")]):a("span",{staticClass:"red"},[t._v(t._s((e.change-0).toFixed(2))+"%")])])]):t._e()}))])},staticRenderFns:[]};var ht=a("VU/8")(mt,pt,!1,function(t){a("Sgsq")},"data-v-6f7e5687",null).exports,vt={name:"trade",data:function(){return{currency_name:"",legal_name:"",user_currency:"",user_legal:"",show:!0,showNone:!1,allBalance:0,buyInfo:{buyPrice:0,buyNum:0,pwd:"",url:"coin/trade"},sellInfo:{sellPrice:0,sellNum:0,pwd:"",url:"coin/trade"},sliderIn:0,sliderOut:0,sliderss:!0,newPrice:"",password:"",txtbuy:"以最优价格买入",txtsell:"以最优价格卖出"}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.address=localStorage.getItem("token")||"",this.getNew()},mounted:function(){var t=this;t.address=localStorage.getItem("token")||"",this.legal_id=localStorage.getItem("dealLegalId"),this.currency_id=localStorage.getItem("dealCurrencyId"),this.legal_name=localStorage.getItem("dealLegalName"),this.currency_name=localStorage.getItem("dealCurrencyName"),t.buy_sell(t.legal_id,t.currency_id),eventBus.$on("toPrice",function(e){e&&(t.buyInfo.buyPrice=e,t.sellInfo.sellPrice=e)}),t.adress&&setInterval(function(){t.buy_sell(t.legal_id,t.currency_id,!0)},1e4),eventBus.$on("tocel",function(e){e&&t.legal_id&&t.buy_sell(t.legal_id,t.currency_id)})},methods:{jumptransfer:function(){this.$router.push("/transfer")},getNew:function(){this.newPrice=localStorage.getItem("dealPrice"),this.buyInfo.buyPrice=this.newPrice,this.sellInfo.sellPrice=this.newPrice},sliderChange:function(t){"buy"==t?0!=this.user_legal&&(this.buyInfo.buyNum=(this.user_legal*this.sliderIn/this.buyInfo.buyPrice/100).toFixed(4)):0!=this.user_currency&&(this.sellInfo.sellNum=(this.user_currency*this.sliderOut/100).toFixed(4))},numFilter:function(t){},changeType:function(){this.show=!this.show,this.getNew()},goNext:function(t){this.$router.push({name:t})},init:function(){var t=this;this.$http({url:"/api/transaction/deal",method:"post",data:{address:this.address}}).then(function(e){t.allBalance=e.data.message.user_cny})},buyCoin:function(){var t=this,e="";if(this.show){if(!this.buyInfo.buyPrice||this.buyInfo.buyPrice<=0)return void layer.msg(this.$t("cuy.pbPrice"));e=this.buyInfo.buyPrice}else e=this.newPrice;!this.buyInfo.buyNum||this.buyInfo.buyNum<=0?layer.msg(this.$t("cuy.pbNum")):layer.confirm(this.$t("zdy.sftjmrj")+":"+e,{skin:"confirmCancel"},function(a,s){layer.closeAll();var i=layer.load();t.$http({url:"/api/"+t.buyInfo.url,method:"post",data:{legal_id:t.legal_id,currency_id:t.currency_id,target_price:e,type:1,amount:t.buyInfo.buyNum},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.close(i),"ok"==e.data.type?(layer.msg(t.$t("miscro.success")),t.buyInfo.buyPrice=0,t.buyInfo.buyNum=0,t.buyInfo.pwd="",eventBus.$emit("buyTrade","tradebuy"),eventBus.$emit("tocel","updata")):"not"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){layer.msg(t.$t("set.yorn"),{time:0,btn:[t.$t("set.yes"),t.$t("set.no")],yes:function(e){layer.closeAll(),t.$router.push("/bindmpwd")}})},1e3)):layer.msg(e.data.message)}).catch(function(t){})})},selClick:function(){var t=this,e="";if(t.show){if(!t.sellInfo.sellPrice||t.sellInfo.sellPrice<=0)return void layer.msg(this.$t("cuy.psPrice"));e=t.sellInfo.sellPrice}else e=t.newPrice;!this.sellInfo.sellNum||this.sellInfo.sellNum<=0?layer.msg(this.$t("cuy.psNum")):layer.confirm(this.$t("zdy.sftjmcj")+":"+e,{skin:"confirmCancel"},function(a,s){layer.closeAll();var i=layer.load();t.$http({url:"/api/"+t.sellInfo.url,method:"post",data:{legal_id:t.legal_id,currency_id:t.currency_id,target_price:e,amount:t.sellInfo.sellNum,type:2},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.close(i),"ok"==e.data.type?(t.sellInfo.sellNum=0,t.sellInfo.pwd="",eventBus.$emit("buyTrade","tradebuy"),eventBus.$emit("tocel","updata"),layer.msg(t.$t("miscro.success"))):layer.msg(e.data.message)}).catch(function(t){})})},buy_sell:function(t,e,a){var s=this;this.$http({url:"/api/wallet/detail",method:"post",data:{currency:t,type:"change"},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type?s.user_legal=t.data.message.change_balance:layer.msg(t.data.message)}).catch(function(t){}),this.$http({url:"/api/wallet/detail",method:"post",data:{currency:e,type:"change"},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type?s.user_currency=t.data.message.change_balance:layer.msg(t.data.message)}).catch(function(t){})}},computed:{buyTotal:function(){return this.show?this.buyInfo.buyPrice*this.buyInfo.buyNum||0:this.newPrice*this.buyInfo.buyNum||0},sellTotal:function(){return this.show?this.sellInfo.sellPrice*this.sellInfo.sellNum||0:this.newPrice*this.sellInfo.sellNum||0}}},_t={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"trade"},[a("div",{staticClass:"title_box"},[a("div",{staticClass:"tabtitle fColor1 ft16curPer"},[a("span",{class:{active:0==t.show},on:{click:t.changeType}},[t._v(t._s(t.$t("cuy.Mtrans")))]),t._v(" "),a("span",{class:{active:1==t.show},on:{click:t.changeType}},[t._v(t._s(t.$t("cuy.fixPrice")))]),t._v(" "),a("span",{staticStyle:{position:"absolute",right:"30px"},on:{click:t.jumptransfer}},[t._v(t._s(t.$t("asset.transfer")))])])]),t._v(" "),t.show?t._e():a("div",{staticClass:"content clear"},[a("div",{staticClass:"w50 fl first"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("header.login")))]),t._v("\n "+t._s(t.$t("cuy.or"))+" "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("cuy.sign")))]),t._v("\n "+t._s(t.$t("cuy.tdStart"))+"\n ")]):a("div",{staticClass:"clear available"},[a("span",{staticClass:"fl fColor1"},[t._v(t._s(t.$t("cuy.available"))+" "+t._s(t.user_legal)+" "+t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.buyPrice")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newPrice,expression:"newPrice"}],staticClass:"bg-part bd input_color",attrs:{type:"text",disabled:"",disabled:""},domProps:{value:t.newPrice},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||(t.newPrice=e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.buynum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.buyInfo.buyNum,expression:"buyInfo.buyNum"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.buyInfo.buyNum},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)},input:function(e){e.target.composing||t.$set(t.buyInfo,"buyNum",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt10 fColor1 ft16"},[t._v(t._s(t.$t("cuy.tdPrice"))+" "+t._s(t.buyTotal)+" "+t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc greenBack fColor1 ft16",on:{click:t.buyCoin}},[t._v(t._s(t.$t("td.buyin"))+t._s(t.currency_name))])])]),t._v(" "),a("div",{staticClass:"w50 fl second"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("header.login")))]),t._v("\n "+t._s(t.$t("cuy.or"))+" "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("cuy.sign")))]),t._v("\n "+t._s(t.$t("cuy.tdStart"))+"\n ")]):a("div",{staticClass:"clear available"},[a("span",{staticClass:"fl fColor1"},[t._v(t._s(t.$t("cuy.available"))+" "+t._s(t.user_currency)+" "+t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.sellPrice")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newPrice,expression:"newPrice"}],staticClass:"bg-part bd input_color",attrs:{type:"text",disabled:""},domProps:{value:t.newPrice},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||(t.newPrice=e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.sellnum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.sellInfo.sellNum,expression:"sellInfo.sellNum"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.sellInfo.sellNum},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)},input:function(e){e.target.composing||t.$set(t.sellInfo,"sellNum",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt10 fColor1 ft16"},[t._v(t._s(t.$t("cuy.tdPrice"))+" "+t._s(t.sellTotal)+" "+t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc redBack fColor1 ft16",on:{click:t.selClick}},[t._v(t._s(t.$t("td.sellout"))+t._s(t.currency_name))])])])]),t._v(" "),t.show?a("div",{staticClass:"content clear"},[a("div",{staticClass:"w50 fl first"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available bdb clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("header.login")))]),t._v("\n "+t._s(t.$t("cuy.or"))+" "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("cuy.sign")))]),t._v("\n "+t._s(t.$t("cuy.tdStart"))+"\n ")]):a("div",{staticClass:"clear available bdb"},[a("span",{staticClass:"fl fColor1"},[t._v(t._s(t.$t("cuy.available"))+" "+t._s(t._f("tofixedFour")(t.user_legal||"0.0000"))+" "+t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.buyPrice")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.buyInfo.buyPrice,expression:"buyInfo.buyPrice"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.buyInfo.buyPrice},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.buyInfo,"buyPrice",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.buynum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.buyInfo.buyNum,expression:"buyInfo.buyNum"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.buyInfo.buyNum},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)},input:function(e){e.target.composing||t.$set(t.buyInfo,"buyNum",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"slider-in"},[a("el-slider",{attrs:{disabled:t.address.length<=0||0==t.buyInfo.buyPrice,max:100,step:25,"show-stops":""},on:{change:function(e){t.sliderChange("buy")}},model:{value:t.sliderIn,callback:function(e){t.sliderIn=e},expression:"sliderIn"}})],1),t._v(" "),a("div",{staticClass:"mt10 fColor1 ft16"},[t._v(t._s(t.$t("cuy.tdPrice"))+" "+t._s(t._f("tofixedFour")(t.buyTotal||"0.0000"))+" "+t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt10 tc greenBack btnColor1 ft16",on:{click:t.buyCoin}},[t._v(t._s(t.$t("td.buyin"))+t._s(t.currency_name))])])]),t._v(" "),a("div",{staticClass:"w50 fl second"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("header.login")))]),t._v("\n "+t._s(t.$t("cuy.or"))),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("cuy.sign")))]),t._v("\n "+t._s(t.$t("cuy.tdStart"))+"\n ")]):a("div",{staticClass:"clear available"},[a("span",{staticClass:"fl fColor1"},[t._v(t._s(t.$t("cuy.available"))+" "+t._s(t._f("tofixedFour")(t.user_currency||"0.0000"))+" "+t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.sellPrice")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.sellInfo.sellPrice,expression:"sellInfo.sellPrice"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.sellInfo.sellPrice},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},input:function(e){e.target.composing||t.$set(t.sellInfo,"sellPrice",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"input-item clear"},[a("label",[t._v(t._s(t.$t("cuy.sellnum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.sellInfo.sellNum,expression:"sellInfo.sellNum"}],staticClass:"bg-part bd input_color",attrs:{type:"number"},domProps:{value:t.sellInfo.sellNum},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)},input:function(e){e.target.composing||t.$set(t.sellInfo,"sellNum",e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"slider-out"},[a("el-slider",{attrs:{disabled:t.address.length<=0||0==t.sellInfo.sellPrice,max:100,step:25,"show-stops":""},on:{change:function(e){t.sliderChange("sell")}},model:{value:t.sliderOut,callback:function(e){t.sliderOut=e},expression:"sliderOut"}})],1),t._v(" "),a("div",{staticClass:"mt10 fColor1 ft16"},[t._v(t._s(t.$t("cuy.tdPrice"))+" "+t._s(t._f("tofixedFour")(t.sellTotal||"0.0000"))+" "+t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt10 tc redBack btnColor1 ft16",on:{click:t.selClick}},[t._v(t._s(t.$t("td.sellout"))+t._s(t.currency_name))])])])]):t._e()])},staticRenderFns:[]};var ft=a("VU/8")(vt,_t,!1,function(t){a("CFTT")},"data-v-03e4f202",null).exports,gt={name:"chart",data:function(){return{lineList:["日","周","月"],current:0,address:"",kData:""}},created:function(){this.address=localStorage.getItem("address")||""},methods:{changeCyle:function(t){t=t;this.current=t},getData:function(){var t=this;this.$http({url:"https://data.jianshukeji.com/stock/history/000001",method:"get"}).then(function(e){t.chartLine(e.data.data)})},chartLine:function(t){Highcharts.setOptions({lang:{rangeSelectorZoom:""}});for(var e=[],a=[],s=(t=t).length,i=[["week",[1]],["month",[1,2,3,4,6]]],n=0;n<s;n+=1)e.push([t[n][0],t[n][1],t[n][2],t[n][3],t[n][4]]),a.push([t[n][0],t[n][5]]);Highcharts.stockChart("container",{rangeSelector:{selected:1,inputDateFormat:"%Y-%m-%d"},title:{text:"行情趋势图"},xAxis:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%y-%m",year:"%Y"}},tooltip:{split:!1,shared:!0},yAxis:[{labels:{align:"right",x:-3},title:{text:"价格"},height:"65%",resize:{enabled:!0},lineWidth:2},{labels:{align:"right",x:-3},title:{text:"成交量"},top:"65%",height:"35%",offset:0,lineWidth:2}],series:[{type:"candlestick",name:"demo",color:"green",lineColor:"green",upColor:"red",upLineColor:"red",tooltip:{},navigatorOptions:{color:Highcharts.getOptions().colors[0]},data:e,dataGrouping:{units:i},id:"sz"},{type:"column",data:a,yAxis:1,dataGrouping:{units:i}}]})}},mounted:function(){this.getData()}},yt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart"},[a("div",{staticClass:"line_title fColor1"},t._l(t.lineList,function(e,s){return a("span",{class:{active:s==t.current},on:{click:function(e){t.changeCyle(s)}}},[t._v(t._s(e))])})),t._v(" "),a("div",{staticStyle:{"min-width":"400px",height:"510px"},attrs:{id:"container"}})])},staticRenderFns:[]};var At=a("VU/8")(gt,yt,!1,function(t){a("K/4o")},"data-v-06b62768",null).exports,Ct={name:"entrust",data:function(){return{isshow:!1,address:"",isChoosed:0,isUrl:0,page:1,url:"transaction_in",type:"in",more:this.$t("td.more"),loading:!1,buyin:this.$t("td.buyin"),sellout:this.$t("td.sellout"),urlList:[{title:this.$t("lever.nowentrust")}],wayList:[{title:this.$t("td.all"),url:"transaction_all"},{title:this.$t("td.buyin"),url:"transaction_in"},{title:this.$t("td.sellout"),url:"transaction_out"}],inList:[],set:null}},created:function(){this.token=localStorage.getItem("token")||""},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},methods:{wayChoose:function(t,e){this.inList="",this.page=1,this.url=e,this.type="transaction_in"==e?"in":"transaction_out"==e?"out":"all",this.getData(),this.more=this.$t("td.more"),this.isChoosed=t},revoke:function(t,e){var a=this;e=e,t=t,a.type;layer.open({skin:"confirmCancel",content:a.$t("cuy.confirmCancel"),btn:[a.$t("cuy.confirm"),a.$t("cuy.cancel")],yes:function(s){var i=layer.load();a.$http({url:"/api/coin/trade",method:"PUT",data:{id:e},headers:{Authorization:a.token}}).then(function(e){layer.close(i),"ok"==e.data.type?(a.inList.splice(t,1),eventBus.$emit("tocel","celbuy"),layer.msg(e.data.message)):layer.msg(e.data.message)}).catch(function(t){})}})},getData:function(t){var e=this,a=this;if(""!=a.token){window.localStorage.getItem("legal_id_cur");t||(a.page=1);var s=a.page;a.inList.length>0&&(a.loading=!0);var i=localStorage.getItem("dealLegalId");localStorage.getItem("dealCurrencyId");this.$http({url:"/api/coin/list",method:"get",data:{page:s,currency:i},headers:{Authorization:a.token}}).then(function(s){if(a.loading=!1,"ok"==s.data.type){var i=s.data.message,n=[];if("all"==a.type)for(var o=0;o<i.length;o++)1==i[o].status&&n.push(i[o]);if("in"==a.type)for(var r=0;r<i.length;r++)1==i[r].type&&1==i[r].status&&n.push(i[r]);if("out"==a.type)for(var c=0;c<i.length;c++)2==i[c].type&&1==i[c].status&&n.push(i[c]);t?(0==n.length?a.more=a.$t("cuy.nomre"):a.inList=a.inList.concat(n),a.page+=1):e.inList=n}}).catch(function(t){})}}},mounted:function(){var t=this;eventBus.$on("tocel",function(e){e&&t.getData()}),eventBus.$on("buyTrade",function(e){e&&t.getData()}),t.getData(),t.set=setInterval(function(){t.getData()},1e4)},destroyed:function(){this.set&&clearInterval(this.set)}},bt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"entrust"},[s("div",{staticClass:"title fColor1 topshadow"},[s("div",{staticClass:"tab_title fl ft12"},t._l(t.wayList,function(e,a){return s("span",{key:a,class:{active:a==t.isChoosed},on:{click:function(s){t.wayChoose(a,e.url)}}},[t._v(t._s(e.title))])}))]),t._v(" "),s("div",{staticClass:"content"},[s("ul",{staticClass:"list-title bdb fColor2 ft12 flex"},[s("li",{staticClass:"w30 tc"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("li",{staticClass:"w10 tc"},[t._v(t._s(t.$t("market.symbol")))]),t._v(" "),s("li",{staticClass:"w10 tc"},[t._v(t._s(t.$t("cuy.direction")))]),t._v(" "),s("li",{staticClass:"w20 tc"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("li",{staticClass:"w20 tc"},[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),s("li",{staticClass:"w10 tc"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),t.inList.length>0?s("div",{staticClass:"containers scroll"},[s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.inList,function(e,a){return s("li",{key:a,staticClass:"clear"},[s("span",{staticClass:"fl w30 tc"},[t._v(t._s(e.updated_at))]),t._v(" "),s("span",{staticClass:"fl w10 tc"},[t._v(t._s(e.symbol))]),t._v(" "),s("span",{class:["fl tc","w10",{green:1==e.type}]},[t._v(t._s(1==e.type?t.buyin:t.sellout))]),t._v(" "),s("span",{staticClass:"fl w20 tc"},[t._v(t._s(t._f("tofixedFour")(e.trade_amount||"0.0000")))]),t._v(" "),s("span",{staticClass:"fl w20 tc"},[t._v(t._s(t._f("tofixedFour")(e.target_price||"0.0000")))]),t._v(" "),s("span",{staticClass:"fl w10 tc curPer ceilColor",on:{click:function(s){t.revoke(a,e.id)}}},[t._v(t._s(t.$t("cuy.revoke")))])])})),t._v(" "),!t.loading&&t.inList.length>8?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer pdb20",on:{click:function(e){t.getData("more")}}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc pdb20"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v(t._s(t.$t("cuy.loading")))])]):t._e()]):t._e(),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.inList.length<=0&&!t.loading,expression:"inList.length<=0 && !loading"}],staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])])])])},staticRenderFns:[]};var wt=a("VU/8")(Ct,bt,!1,function(t){a("VnHG")},"data-v-6a3ed179",null).exports,xt={name:"hisentrust",data:function(){return{address:"",isChoosed:0,isUrl:0,page:1,url:"transaction_in",type:"in",more:this.$t("td.more"),loading:!1,wayList:[{title:this.$t("td.buyin"),url:"transaction_in"},{title:this.$t("td.sellout"),url:"transaction_out"},{title:this.$t("td.all"),url:"transaction_all"}],comList:[],user_id:""}},created:function(){this.token=localStorage.getItem("token")||"",this.user_id=localStorage.getItem("user_id")||""},wacth:function(){eventBus.$on("buyTrade",function(t){t&&that.getData()})},methods:{wayChoose:function(t,e){this.comList="",this.page=1,this.url=e,this.type="transaction_in"==e?"in":"out",this.more=this.$t("td.more"),this.isChoosed=t,this.getData()},getMore:function(){this.page=++this.page,this.getData()},getData:function(t){var e=this,a=(localStorage.getItem("dealLegalId"),localStorage.getItem("dealCurrencyId"));if(""!=e.token){t||(e.page=1);var s=e.page;e.loading=!0;window.localStorage.getItem("legal_id_cur");this.$http({url:"/api/coin/list",method:"get",data:{page:s,currency:a},headers:{Authorization:e.token}}).then(function(a){if(e.loading=!1,"ok"==a.data.type){for(var s=a.data.message,i=[],n=0;n<s.length;n++)2==s[n].status&&i.push(s[n]);t?(e.page+=1,i.length?e.comList=e.comList.concat(i):e.more=e.$t("td.nomore")):i.length&&(e.comList=i)}}).catch(function(t){})}}},mounted:function(){var t=this;eventBus.$on("buyTrade",function(e){e&&t.getData()}),t.getData(),setInterval(function(){t.getData()},1e4)}},kt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"entrust"},[s("div",{staticClass:"content"},[s("ul",{staticClass:"list-title fColor2 bdb ft12 clear"},[s("li",{staticClass:"fl w20"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("li",{staticClass:"fl w10"},[t._v(t._s(t.$t("market.symbol")))]),t._v(" "),s("li",{staticClass:"fl w10"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("li",{staticClass:"fl w15"},[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),s("li",{staticClass:"fl w10"},[t._v(t._s(t.$t("lever.entotal")))]),t._v(" "),s("li",{staticClass:"fl w14"},[t._v(t._s(t.$t("cuy.evelPrice")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("fat.status")))]),t._v(" "),s("li",{staticClass:"fl w5"},[t._v("方向")])]),t._v(" "),t.comList.length>0?s("div",{staticClass:"containers scroll"},[s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.comList,function(e,a){return s("li",{key:a,staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.updated_at))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.symbol))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.trade_amount))]),t._v(" "),s("span",{staticClass:"fl w15"},[t._v(t._s(e.target_price))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(t._f("numFilter")(e.target_price*e.trade_amount)))]),t._v(" "),s("span",{staticClass:"fl w14"},[t._v(t._s(e.trade_price))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.dealed")))]),t._v(" "),"1"==e.type?s("span",{staticClass:"fl w5 green"},[t._v("买入")]):s("span",{staticClass:"fl w5 redColor"},[t._v("卖出")])])})),t._v(" "),!t.loading&&t.comList.length>8?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer pdb20",on:{click:function(e){t.getData("more")}}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc pdb20"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v(t._s(t.$t("cuy.loading")))])]):t._e()]):t._e(),t._v(" "),t.comList.length<=0&&!t.loading?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])]):t._e()])])},staticRenderFns:[]};var St=a("VU/8")(xt,kt,!1,function(t){a("8lj8")},"data-v-39f03d78",null).exports,It={name:"currency",data:function(){return{currency_id:"",coin:{}}},created:function(){this.getData()},methods:{getData:function(){var t=this,e=window.localStorage.getItem("legal_id_cur");null!=e&&this.$http({url:"/api/currency/detail?id="+e}).then(function(e){"ok"==e.data.type&&(t.coin=e.data.message)})}}},Et={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"currency"},[a("div",{staticClass:"title fColor1"},[t._v("币种资料")]),t._v(" "),a("div",{staticClass:"content f14 fColor1"},[a("p",{staticClass:"ft24"},[t._v(t._s(t.coin.name))]),t._v(" "),a("p",{staticClass:"fColor2 abstract ft14"},[t._v("简介")]),t._v(" "),a("p",{staticClass:"mt15 ft14"},[t._v("\n "+t._s(t.coin.desc)+"\n ")])])])},staticRenderFns:[]};var Pt=a("VU/8")(It,Et,!1,function(t){a("K092")},"data-v-7c6e231e",null).exports,Rt={name:"detail",data:function(){return{address:"",isChoosed:2,new:!1,wayList:["买入","卖出","全部"],deList:[],legal_id:"",currency_id:"",legal_name:"",currency_name:"",set:null}},created:function(){this.address=localStorage.getItem("address")||""},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)},tofixed8:function(t){return(t=Number(t)).toFixed(8)},cutDate:function(t){return t.substr(-8)}},methods:{wayChoosed:function(t){this.isChoosed=t},complete:function(t,e){var a=this;this.$http({url:"/api/transaction/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){if("ok"==t.data.type){var e=t.data.message.complete;a.deList=e,a.connect()}}).catch(function(t){})},timestampToTime:function(t){var e="";e=t.toString().length>11?t:1e3*t;var a=new Date(e);return a.getFullYear()+"-"+((a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-")+(a.getDate()>10?a.getDate()+" ":"0"+a.getDate()+" ")+(a.getHours()>10?a.getHours()+":":"0"+a.getHours()+":")+(a.getMinutes()>10?a.getMinutes()+":":"0"+a.getMinutes()+":")+(a.getSeconds()>10?a.getSeconds():"0"+a.getSeconds())},connect:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("match_trade",function(e){if("match_trade"==e.type&&t.legal_id==e.legal_id&&t.currency_id==e.currency_id){var a,s=t.timestampToTime(e.data[0].ts);a="buy"==e.data[0].direction?1:2;var i={price:e.data[0].price,time:s,number:e.data[0].amount,way:a};t.deList.unshift(i),t.deList.length>20&&t.deList.pop()}})}},mounted:function(){this.legal_id=localStorage.getItem("dealLegalId"),this.currency_id=localStorage.getItem("dealCurrencyId"),this.legal_name=localStorage.getItem("legal_name"),this.currency_name=localStorage.getItem("currency_name"),this.complete(this.legal_id,this.currency_id)}},Bt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"detail"},[a("div",{staticClass:"title fColor1 topshadow bdb"},[a("div",{staticClass:"inblock"},[a("span",[t._v(t._s(t.$t("cuy.allStation")))])])]),t._v(" "),a("div",{staticClass:"content"},[a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("lever.tdnum")))])]),t._v(" "),t.deList.length>0?a("div",{staticClass:"containers scroll"},[a("ul",{staticClass:"list-item ft12"},t._l(t.deList,function(e,s){return s<20?a("li",{key:e.id,class:["clear",[1==e.way?"green":"red"]]},[a("span",{staticClass:"fl w12"},[t._v(t._s(t._f("cutDate")(e.time)))]),t._v(" "),a("span",{staticClass:"fl w14"},[t._v(t._s(t._f("tofixed8")(e.price||"0.0000")))]),t._v(" "),a("span",{staticClass:"fl"},[t._v(t._s(t._f("tofixedFour")(e.number||"0.0000")))])]):t._e()}))]):t._e()])])},staticRenderFns:[]};var Ft=a("VU/8")(Rt,Bt,!1,function(t){a("7NPE")},"data-v-472073e9",null).exports,Nt=a("Dd8w"),Tt=a.n(Nt),Dt={components:{dealMarket:ht},data:function(){return{leftName:"",rightName:"",legalId:"",curencyId:"",coin:{},lastPrice:"",downUp:"",showMarket:!1,usprice:""}},created:function(){this.leftName=window.localStorage.getItem("dealLegalName")||"",this.rightName=window.localStorage.getItem("dealCurrencyName")||"",this.currencyId=window.localStorage.getItem("dealCurrencyId"),this.legalId=window.localStorage.getItem("dealLegalId"),this.init(this.legalId,this.currencyId),this.downUp=window.localStorage.getItem("dealDownUp")},mounted:function(){var t=this;eventBus.$on("toNew",function(e){var a=t.rightName+"/"+t.leftName;e.istoken==a&&(t.lastPrice=(e.newprice-0).toFixed(4),t.downUp=(e.newup-0).toFixed(2))}),t.$socket.on("transaction",function(e){"transaction"==e.type&&t.rightName+"/"+t.leftName==e.token&&e["24h"]&&(t.coin=JSON.parse(e["24h"]))})},methods:{init:function(t,e){var a=this;this.$http({url:"/api/transaction/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type&&(a.lastPrice=t.data.message.last_price)})}}},Lt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"tv-top"}},[a("span",{on:{click:function(e){t.showMarket=!t.showMarket}}},[t._v(t._s(t.rightName)+"/"+t._s(t.leftName))]),t._v(" "),t.showMarket?a("div",{staticClass:"market-box"},[a("deal-market")],1):t._e()])},staticRenderFns:[]};var Mt=a("VU/8")(Dt,Lt,!1,function(t){a("uUAt")},null,null).exports,Ut=a("NYxO"),Qt={name:"dealTv",components:{TvTop:Mt},data:function(){return{widget:null,symbolInfo:null,feed:null,wsEx:null,ws:null,lists:[],newData:"",symbol:"",priceScale:1e5,histime:"",data:{},cny:111,change:"",Volume:"",High:"",Low:"",legal_name:"",currency_name:"",loctheme:""}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)},toFixed4:function(t){return(t=Number(t)).toFixed(4)},toFixed6:function(t){return(t=Number(t)).toFixed(6)}},created:function(){this.symbol=window.localStorage.getItem("dealSymbol"),this.legal_name=localStorage.getItem("dealLegalName"),this.currency_name=localStorage.getItem("dealCurrencyName")},sockets:{},computed:Tt()({listenState:function(){return this.symbol},Total:function(){return((this.data.close||0)*this.cny).toFixed(6)}},Object(Ut.b)(["theme"])),watch:{theme:{handler:function(){var t=this.theme;this.loctheme=t,this.createWidget()},immediate:!0},listenState:function(t,e){t!=e&&""!=e&&this.widget.setSymbol(t,localStorage.getItem("tim"),function(){})}},mounted:function(){var t=this;eventBus.$on("fiat_convert_cny",function(e){t.cny=e})},destroyed:function(){this.removeWidget()},beforeDestroy:function(){},methods:{getrate:function(){var t=this;this.$http({url:"/api/market/get_current",method:"post",data:{base_currency:this.currency_name,quote_currency:this.legal_name,period:"1day"}}).then(function(e){t.change=e.data.message.change,t.Volume=e.data.message.vol,t.High=e.data.message.high,t.Low=e.data.message.low,t.data.close=e.data.message.close})},connect:function(t){var e=this;e.$socket.emit("login",localStorage.getItem("user_id")),e.$socket.on("kline",function(a){var s={},i=localStorage.getItem("type1");e.symbol==a.symbol&&a.period==i&&(s.open=Number(a.open),s.low=Number(a.low),s.high=Number(a.high),s.close=Number(a.close),s.volume=Number(a.volume),s.time=Number(a.time),t(s),e.data=a)}),e.$socket.on("daymarket",function(t){e.symbol==t.symbol&&(e.change=t.change,e.Volume=t.volume,e.High=t.high,e.Low=t.low)})},createWidget:function(){var t=this;this.$nextTick(function(){var e="white"==this.loctheme?"bundles/new_white.css":"bundles/new.css",a=t.widget=new TradingView.widget({symbol:t.symbol,interval:1,debug:!0,fullscreen:!1,autosize:!0,container_id:"tv_chart_container",datafeed:t.createFeed(),library_path:"./static/tradeview/charting_library/",custom_css_url:e,locale:"zh",width:"100%",height:516,drawings_access:{type:"black",tools:[{name:"Regression Trend"}]},disabled_features:["left_toolbar","header_saveload","compare_symbol","display_market_status","go_to_date","header_chart_type","header_compare","header_interval_dialog_button","header_resolutions","header_screenshot","header_symbol_search","header_undo_redo","legend_context_menu","show_hide_button_in_legend","show_interval_dialog_on_key_press","snapshot_trading_drawings","symbol_info","timeframes_toolbar","use_localstorage_for_settings","volume_force_overlay","widget_logo"],enabled_features:["dont_show_boolean_study_arguments","hide_last_na_study_output","move_logo_to_main_pane","same_data_requery","side_toolbar_in_fullscreen_mode","disable_resolution_rebuild"],charts_storage_url:"http://saveload.tradingview.com",charts_storage_api_version:"1.1",toolbar_bg:"transparent",timezone:"Asia/Shanghai",studies_overrides:{"volume.precision":"1000"},overrides:t.overrides()});a.MAStudies=[],a.selectedIntervalButton=null,a.onChartReady(function(){a.chart().createStudy("Moving Average",!1,!0,[15,"close",0],null,{"Plot.color":"#e843da"}),a.chart().createStudy("MA Cross",!1,!1,[10,20]);[{value:"1min",period:"1",text:"Time",chartType:3,type:"1min"},{value:"1",period:"1m",text:"1min",chartType:1,type:"1min"},{value:"5",period:"5m",text:"5min",chartType:1,type:"5min"},{value:"15",period:"15m",text:"15min",chartType:1,type:"15min"},{value:"30",period:"30m",text:"30min",chartType:1,type:"30min"},{value:"60",period:"60分钟",text:"1hour",chartType:1,type:"60min"},{value:"1D",period:"1D",text:"1day",chartType:1,type:"1day"},{value:"1W",period:"1W",text:"1week",chartType:1,type:"1week"},{value:"1M",period:"1M",text:"1mon",chartType:1,type:"1mon"}].forEach(function(s,i){var n=a.createButton();n.attr("title",s.text).addClass("my2").text(s.text),"1min"==s.text&&("white"==t.loctheme?n.css({"background-color":"#e5ebf5",color:"#9ca9b5"}):n.css({"background-color":"#2c3b59",color:"#c7cce6"}),localStorage.setItem("tim","1"),localStorage.setItem("type1","1min")),n.on("click",function(t){$(this).parents(".left").children().find(".my2").removeAttr("style"),e(t,s.value,s.type),a.chart().setChartType(s.chartType)})});var e=function(e,s,i){t.setSymbol=function(t,e){gh.chart().setSymbol(t,e)},localStorage.setItem("tim",s),localStorage.setItem("type1",i),a.chart().setResolution(s,function(){}),$(e.target).addClass("mydate").closest("div.space-single").siblings("div.space-single").find("div.button").removeClass("mydate")}}),t.widget=a})},createFeed:function(){var t=this,e={DataPulseUpdater:function(t,e){this._datafeed=t,this._subscribers={},this._requestsPending=0;var a=this;void 0!==e&&e>0&&setInterval(function(){if(!(a._requestsPending>0))for(var t in a._subscribers){var e=a._subscribers[t],s=e.resolution,i=parseInt((new Date).valueOf()/1e3),n=i-a.periodLengthSeconds(s,10);a._requestsPending++,function(e){a._datafeed.getBars(e.symbolInfo,s,n,i,function(s){if(a._requestsPending--,a._subscribers.hasOwnProperty(t)&&0!==s.length){var i=s[s.length-1];if(isNaN(e.lastBarTime)||!(i.time<e.lastBarTime)){var n=e.listeners;if(!isNaN(e.lastBarTime)&&i.time>e.lastBarTime){if(s.length<2)throw new Error("Not enough bars in history for proper pulse update. Need at least 2.");for(var o=s[s.length-2],r=0;r<n.length;++r)n[r](o)}for(e.lastBarTime=i.time,r=0;r<n.length;++r)n[r](i)}}},function(){a._requestsPending--})}(e)}},e)}};return e.DataPulseUpdater.prototype.periodLengthSeconds=function(t,e){return 24*("D"===t?e:"M"===t?31*e:"W"===t?7*e:e*t/1440)*60*60},e.DataPulseUpdater.prototype.subscribeDataListener=function(t,e,a,s){this._datafeed._logMessage("Subscribing "+s),this._subscribers.hasOwnProperty(s)||(this._subscribers[s]={symbolInfo:t,resolution:e,lastBarTime:NaN,listeners:[]}),this._subscribers[s].listeners.push(a)},e.DataPulseUpdater.prototype.unsubscribeDataListener=function(t){this._datafeed._logMessage("Unsubscribing "+t),delete this._subscribers[t]},e.Container=function(t){this._configuration={supports_search:!1,supports_group_request:!1,supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"],supports_marks:!0,supports_timescale_marks:!0,exchanges:["gh"]},this._barsPulseUpdater=new e.DataPulseUpdater(this,t||1e4),this._enableLogging=!0,this._callbacks={},this._initializationFinished=!0,this._fireEvent("initialized"),this._fireEvent("configuration_ready")},e.Container.prototype._fireEvent=function(t,e){if(this._callbacks.hasOwnProperty(t)){for(var a=this._callbacks[t],s=0;s<a.length;++s)a[s](e);this._callbacks[t]=[]}},e.Container.prototype._logMessage=function(t){if(this._enableLogging)new Date},e.Container.prototype.on=function(t,e){return this._callbacks.hasOwnProperty(t)||(this._callbacks[t]=[]),this._callbacks[t].push(e),this},e.Container.prototype.onReady=function(t){var e=this;this._configuration?setTimeout(function(){t(e._configuration)},0):this.on("configuration_ready",function(){t(e._configuration)})},e.Container.prototype.resolveSymbol=function(e,a,s){this._logMessage("GOWNO :: resolve symbol "+e),n.a.resolve().then(function(){a({name:t.symbol,timezone:"Asia/Shanghai",pricescale:t.priceScale,minmov:1,minmov2:0,ticker:t.symbol,description:"",type:"bitcoin",volume_precision:8,has_intraday:!0,has_weekly_and_monthly:!0,has_no_volume:!1,session:"24x7",supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"]})})},e.Container.prototype.getBars=function(t,e,a,s,i,n){-1==e.indexOf("D")&&-1==e.indexOf("W")&&-1==e.indexOf("M")?e+="min":-1==e.indexOf("W")&&-1==e.indexOf("M")||(e=e),$.ajax({url:"/api/currency/new_timeshar?from="+a+"&to="+s+"&symbol="+t.name+"&period="+e,type:"get",success:function(t){1==t.code&&t.data&&t.data.length>0&&(t.data.forEach(function(t,e){t.open=Number(t.open),t.close=Number(t.close),t.high=Number(t.high),t.low=Number(t.low)}),i(t.data,{noData:!1}),i([],{noData:!0})),t.data&&-1!=t.code||i([],{noData:!0}),t.data&&0==t.data.length&&i([],{noData:!0})}})},e.Container.prototype.subscribeBars=function(e,a,s,i,n){t.connect(s)},e.Container.prototype.unsubscribeBars=function(t){this._barsPulseUpdater.unsubscribeDataListener(t)},new e.Container},updateData:function(t){t&&this.$emit("real-time",t)},updateWidget:function(t){this.symbolInfo={name:t,ticker:t,description:"",session:"24x7",supported_resolutions:["1","5","15","30","60","240","1D","3D","1W","1M"],has_intraday:!0,has_daily:!0,has_weekly_and_monthly:!0,timezone:"UTC"},this.removeWidget(),this.createWidget()},removeWidget:function(){this.widget&&(this.widget.remove(),this.widget=null)},overrides:function(){var t=void 0;return{volumePaneSize:"medium","paneProperties.topMargin":"20","scalesProperties.lineColor":(t="white"==this.loctheme?{up:"#589065",down:"#AE4E54",bg:"#ffffff",grid:"#f9f9fa",cross:"#f9f9fa",border:"#b1b7be",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}:{up:"#589065",down:"#AE4E54",bg:"#1a243b",grid:"#1E2740",cross:"#1E2740",border:"#4e5b85",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}).text,"scalesProperties.textColor":t.text,"paneProperties.background":t.bg,"paneProperties.vertGridProperties.color":t.grid,"paneProperties.horzGridProperties.color":t.grid,"paneProperties.crossHairProperties.color":"#fff","paneProperties.legendProperties.showLegend":!0,"paneProperties.legendProperties.showStudyArguments":!0,"paneProperties.legendProperties.showStudyTitles":!0,"paneProperties.legendProperties.showStudyValues":!0,"paneProperties.legendProperties.showSeriesTitle":!0,"paneProperties.legendProperties.showSeriesOHLC":!0,"mainSeriesProperties.candleStyle.upColor":t.up,"mainSeriesProperties.candleStyle.downColor":t.down,"mainSeriesProperties.candleStyle.drawWick":!0,"mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.borderColor":t.border,"mainSeriesProperties.candleStyle.borderUpColor":t.up,"mainSeriesProperties.candleStyle.borderDownColor":t.down,"mainSeriesProperties.candleStyle.wickUpColor":t.up,"mainSeriesProperties.candleStyle.wickDownColor":t.down,"mainSeriesProperties.candleStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.hollowCandleStyle.upColor":t.up,"mainSeriesProperties.hollowCandleStyle.downColor":t.down,"mainSeriesProperties.hollowCandleStyle.drawWick":!0,"mainSeriesProperties.hollowCandleStyle.drawBorder":!0,"mainSeriesProperties.hollowCandleStyle.borderColor":t.border,"mainSeriesProperties.hollowCandleStyle.borderUpColor":t.up,"mainSeriesProperties.hollowCandleStyle.borderDownColor":t.down,"mainSeriesProperties.hollowCandleStyle.wickColor":t.line,"mainSeriesProperties.haStyle.upColor":t.up,"mainSeriesProperties.haStyle.downColor":t.down,"mainSeriesProperties.haStyle.drawWick":!0,"mainSeriesProperties.haStyle.drawBorder":!0,"mainSeriesProperties.haStyle.borderColor":t.border,"mainSeriesProperties.haStyle.borderUpColor":t.up,"mainSeriesProperties.haStyle.borderDownColor":t.down,"mainSeriesProperties.haStyle.wickColor":t.border,"mainSeriesProperties.haStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.upColor":t.up,"mainSeriesProperties.barStyle.downColor":t.down,"mainSeriesProperties.barStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.dontDrawOpen":!1,"mainSeriesProperties.lineStyle.color":t.border,"mainSeriesProperties.lineStyle.linewidth":1,"mainSeriesProperties.lineStyle.priceSource":"close","mainSeriesProperties.areaStyle.color1":t.areatop,"mainSeriesProperties.areaStyle.color2":t.areadown,"mainSeriesProperties.areaStyle.linecolor":t.border,"mainSeriesProperties.areaStyle.linewidth":1,"mainSeriesProperties.areaStyle.priceSource":"close"}},chose:function(){this.widget.setLanguage("en")}}},zt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"k-line-area bg-1d1d29"},[a("div",{staticClass:"top bg-part bdb"},[a("div",{staticClass:"fColor1"},[t._v(t._s(t.symbol))]),t._v(" "),a("p",[t.change>=0?a("span",{staticClass:"green ft14"},[t._v(t._s(t._f("toFixed6")(t.data.close||"0.0000")))]):a("span",{staticClass:"red ft14"},[t._v(t._s(t._f("toFixed6")(t.data.close||"0.0000")))]),t._v(" "),a("span",{staticClass:"top-b"},[t._v("≈ "+t._s(t.Total)+" CNY")])]),t._v(" "),a("p",[a("span",{staticClass:"top-t"},[t._v(t._s(t.$t("market.change")))]),t._v(" "),t.change>=0?a("span",{staticClass:"green"},[t._v("+"+t._s(t._f("toFixeds")(t.change||"0.00"))+"%")]):a("span",{staticClass:"red"},[t._v(t._s(t._f("toFixeds")(t.change||"0.00"))+"%")])]),t._v(" "),a("p",[a("span",{staticClass:"top-t"},[t._v(t._s(t.$t("market.highprice")))]),t._v(" "),a("span",{staticClass:"top-b"},[t._v(t._s(t._f("toFixed4")(t.High||"0.0000")))])]),t._v(" "),a("p",[a("span",{staticClass:"top-t"},[t._v(t._s(t.$t("market.lowprice")))]),t._v(" "),a("span",{staticClass:"top-b"},[t._v(t._s(t._f("toFixed4")(t.Low||"0.0000")))])]),t._v(" "),a("p",[a("span",{staticClass:"top-t"},[t._v(t._s(t.$t("market.vol")))]),t._v(" "),a("span",{staticClass:"top-b"},[t._v(t._s(t._f("toFixed4")(t.Volume||"0.0000"))+" "+t._s(t.data.currency_name))])])]),t._v(" "),a("div",{staticStyle:{width:"100%",height:"535px"},attrs:{id:"tv_chart_container"}})])},staticRenderFns:[]};var Wt={name:"dealCenter",components:{indexHeader:V,load:1,notice:nt,deal:ct,exchange:ut,market:ht,trade:ft,chart:At,entrust:wt,hisentrust:St,currency:Pt,complete:Ft,dealTv:a("VU/8")(Qt,zt,!1,function(t){a("ne4K")},"data-v-e80895cc",null).exports},data:function(){return{isRouterAlive:!0,whichEntrust:"entrust"}},created:function(){this.address=localStorage.getItem("address")||""},methods:{},mounted:function(){}},Yt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home flex"},[a("div",{staticClass:"home-l"},[a("div",{staticClass:"home-l-t"},[a("div",{staticClass:"left-box bg-part"},[a("market")],1),t._v(" "),a("div",{staticClass:"tv-box bg-part"},[a("deal-tv")],1)]),t._v(" "),a("div",{staticClass:"entrusts bg-part"},[a("div",{staticClass:"tab-entrust whites"},[a("span",{class:["curPer",{active:"entrust"==t.whichEntrust}],on:{click:function(e){t.whichEntrust="entrust"}}},[t._v(t._s(t.$t("lever.nowentrust")))]),t._v(" "),a("span",{class:["curPer",{active:"hisentrust"==t.whichEntrust}],on:{click:function(e){t.whichEntrust="hisentrust"}}},[t._v(t._s(t.$t("lever.hisentrust")))])]),t._v(" "),a("div",{staticClass:"scroll"},["entrust"==t.whichEntrust?a("div",{staticClass:"entrust-box"},[a("entrust")],1):t._e(),t._v(" "),"hisentrust"==t.whichEntrust?a("div",{staticClass:"histentrust-box"},[a("hisentrust")],1):t._e()])])]),t._v(" "),a("div",{staticClass:"home-r"},[a("div",{staticClass:"home-r-t flex"},[a("div",{staticClass:"exchage-box bg-part"},[a("exchange")],1),t._v(" "),a("div",{staticClass:"complete-box bg-part"},[a("complete")],1)]),t._v(" "),a("div",{staticClass:"home-r-b bg-part"},[a("trade")],1)])])},staticRenderFns:[]};var Gt=a("VU/8")(Wt,Yt,!1,function(t){a("zDwE")},"data-v-b8b017c6",null).exports,jt={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"fiatradCenter"})},staticRenderFns:[]},Vt=a("VU/8")({data:function(){return{}}},jt,!1,null,null,null).exports,Ot={data:function(){return{token:"",name:"",bankName:"",bankNum:"",ali:"",weChatAccount:"",weChatName:"",src1:"./static/imgs/addimg.png",src2:"./static/imgs/addimg.png",img1:"",img2:""}},created:function(){this.token=window.localStorage.getItem("token")||"",""==this.token&&this.$router.push("/components/login"),this.getInfo()},methods:{getInfo:function(){var t=this;this.$http({url:"/api/user/cash_info",method:"post",headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type&&null!=e.data.message){var a=e.data.message;t.name=a.real_name,t.bankName=a.bank_name,t.bankNum=a.bank_account,t.ali=a.alipay_account,t.weChatAccount=a.wechat_account,t.weChatName=a.wechat_nickname,""!=a.wechat_collect&&(t.src1=a.wechat_collect,t.img1=a.wechat_collect),""!=a.alipay_collect&&(t.src2=a.alipay_collect,t.img2=a.alipay_collect)}})},file1:function(){var t=this,e=new FileReader;e.readAsDataURL(event.target.files[0]),e.onload=function(t){};var a=new FormData;a.append("file",event.target.files[0]),$.ajax({url:"/api/upload",type:"post",data:a,processData:!1,contentType:!1,success:function(e){"ok"==e.type?(t.src1=e.message,t.img1=e.message):layer.msg(e.message)}})},file2:function(){var t=this,e=new FileReader;e.readAsDataURL(event.target.files[0]),e.onload=function(t){};var a=new FormData;a.append("file",event.target.files[0]),$.ajax({url:"/api/upload",type:"post",data:a,processData:!1,contentType:!1,success:function(e){"ok"==e.type?(t.src2=e.message,t.img2=e.message):layer.msg(e.message)}})},add:function(){""!=this.name?""!=this.bankName?""!=this.bankNum?""!=this.ali?""!=this.weChatAccount?""!=this.weChatName?""!=this.img1?""!=this.img2?this.$http({url:"/api/user/cash_save",method:"post",data:{real_name:this.name,bank_name:this.bankName,bank_account:this.bankNum,alipay_account:this.ali,wechat_nickname:this.weChatName,wechat_account:this.weChatAccount,wechat_collect:this.src1,alipay_collect:this.src2},headers:{Authorization:this.token}}).then(function(t){layer.msg(t.data.message)}):layer.msg(this.$t("seting.pimg2")):layer.msg(this.$t("seting.pimg1")):layer.msg("请输入微信账号"):layer.msg("请输入微信昵称"):layer.msg("请输入支付宝账号"):layer.msg("请输入银行卡号"):layer.msg("请输入开户行名称"):layer.msg("请输入真实姓名")}}},Zt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"pay-opts"}},[a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.truename"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],attrs:{type:"text",placeholder:t.$t("seting.pname")},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.opening"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bankName,expression:"bankName"}],attrs:{type:"text",placeholder:t.$t("seting.popen")},domProps:{value:t.bankName},on:{input:function(e){e.target.composing||(t.bankName=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.bank"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bankNum,expression:"bankNum"}],attrs:{type:"number",placeholder:t.$t("seting.pcard")},domProps:{value:t.bankNum},on:{input:function(e){e.target.composing||(t.bankNum=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.alipay"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.ali,expression:"ali"}],attrs:{type:"text",placeholder:t.$t("seting.palipay")},domProps:{value:t.ali},on:{input:function(e){e.target.composing||(t.ali=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.wename"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.weChatName,expression:"weChatName"}],attrs:{type:"text",placeholder:t.$t("seting.pwname")},domProps:{value:t.weChatName},on:{input:function(e){e.target.composing||(t.weChatName=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",[t._v(t._s(t.$t("seting.wechat"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.weChatAccount,expression:"weChatAccount"}],attrs:{type:"text",placeholder:t.$t("seting.pwaccount")},domProps:{value:t.weChatAccount},on:{input:function(e){e.target.composing||(t.weChatAccount=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"idimg flex between mt40 ml20"},[a("div",{staticClass:"imgs flex column alcenter"},[a("div",[a("img",{attrs:{src:t.src1,alt:""}}),t._v(" "),a("input",{attrs:{type:"file",accept:"image/*",name:"file"},on:{change:t.file1}})]),t._v(" "),a("p",{staticClass:"mt10"},[t._v(t._s(t.$t("seting.pimg1")))])]),t._v(" "),a("div",{staticClass:"imgs flex column alcenter"},[a("div",[a("img",{attrs:{src:t.src2,alt:""}}),t._v(" "),a("input",{attrs:{type:"file",accept:"image/*",name:"file"},on:{change:t.file2}})]),t._v(" "),a("p",{staticClass:"mt10"},[t._v(t._s(t.$t("seting.pimg2")))])])]),t._v(" "),a("div",{staticClass:"btn bgRed",on:{click:t.add}},[t._v("\n "+t._s(t.$t("td.confirm"))+"\n ")])])},staticRenderFns:[]};var Jt=a("VU/8")(Ot,Zt,!1,function(t){a("84ra")},null,null).exports,Ht={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex whites",attrs:{id:"user-setting"}},[e("div",{staticClass:"setting-l bg-part"},[e("div",{staticClass:"setting-item"},[e("router-link",{attrs:{to:"/userSetting"}},[this._v(this._s(this.$t("seting.pmethod")))])],1)]),this._v(" "),e("div",{staticClass:"setting-r bg-part"},[e("router-view")],1)])},staticRenderFns:[]};var Kt=a("VU/8")({},Ht,!1,function(t){a("1z8t")},null,null).exports,Xt={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"leftNav ft14"},[a("ul",{staticClass:"fColor1"},t._l(t.array,function(e,s){return a("li",{class:s==t.curActive?"active":"",on:{click:function(a){t.goto(s,e.page)}}},[a("span",[t._v(t._s(e.text))])])}))])},staticRenderFns:[]};var qt=a("VU/8")({name:"leftc2c",data:function(){return{curActive:0,array:[{text:"C2C",page:"c2cOrder",children:["c2cOrder"]},{text:this.$t("ctc.myRelease"),page:"c2cRelease",children:["c2cRelease"]},{text:this.$t("ctc.myTrade"),page:"c2cTrade",children:["c2cTrade"]}]}},created:function(){var t=this.$route.name;this.curActive=this.array.findIndex(function(e){return e.page===t||e.children&&e.children.includes(t)}),"c2cDetail"==t&&(this.curActive=1)},mounted:function(){var t=this;this.bus.$on("nav_name",function(e){t.curActive=t.array.findIndex(function(t){return t.page===e||t.children&&t.children.includes(e)})})},methods:{goto:function(t,e){this.curActive=t,this.$router.push({name:e,params:{lang:this.lang}})}}},Xt,!1,function(t){a("PMfB")},"data-v-bf381d6e",null).exports,$t={components:{left:qt},data:function(){return{token:"",nowList:"listIn",active:0,currency_list:[],currency_name:"",currency_id:"",id:"",price:"",num:"",pay:"",user_name:"",content:"",price01:"",num01:"",pay01:"",user_name01:"",content01:"",showList:!0,showDetail:!1,detail:{},showTradeBox:!1,password:"",tradeParams:{id:"",total:"",type:""},buySellNum:"",showTradeList:{show:!1,index:"none"},coin:"",coin1:"",balance:0}},created:function(){this.token=window.localStorage.getItem("token")||"",""==this.token&&this.$router.push("/components/login"),this.get_currency()},methods:{fixedInp:function(t,e){if(0==e.target.value)e.target.value;else{var a=e.target.value+"",s=a.indexOf(".");-1!=s&&a.substr(s).length>t+1&&(e.target.value=(a-0).toFixed(t))}},get_currency:function(){var t=this;this.$http({url:"/api/currency/list",method:"get",headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type&&(t.currency_list=e.data.message.legal,t.currency_name=e.data.message.legal[0].name,t.id=e.data.message.legal[0].id,t.get_balance(t.id))})},get_balance:function(t){var e=this;this.$http({url:"/api/wallet/detail",method:"post",data:{currency:t,type:"legal"},headers:{Authorization:this.token}}).then(function(t){"ok"==t.data.type&&(e.balance=t.data.message.legal_balance)})},currency_click:function(t){this.currency_name=t.name,this.id=t.id},bui_in:function(){var t=this;return t.num?t.price?t.pay?t.coin?void layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(e,a){t.password=e,t.$http({url:"/api/c2c_send",method:"post",data:{price:t.price,total_number:t.num,way:t.pay,currency_id:t.id,type:"buy",password:t.password,coin_code:t.coin},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push("/c2cRelease")},500)):"997"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push("/userSetting")},500)):"998"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push("/authentication")},500)):"not"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){layer.msg(t.$t("set.yorn"),{time:0,btn:[t.$t("set.yes"),t.$t("set.no")],yes:function(e){layer.closeAll(),t.$router.push("/bindmpwd")}})},1e3)):(layer.msg(e.data.message),t.price="",t.num="",t.pay="",t.password="")}).catch(function(t){layer.msg(t.data.message)}),layer.close(a)}):(layer.msg(t.$t("td.pcoin")),!1):(layer.msg(t.$t("ctc.payway")),!1):(layer.msg(t.$t("ctc.pprice")),!1):(layer.msg(t.$t("ctc.pbuyNum")),!1)},sell_out:function(){var t=this;return t.num01?t.price01?t.pay01?t.coin1?void layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(e,a){t.password=e,t.$http({url:"/api/c2c_send",method:"post",data:{price:t.price01,total_number:t.num01,way:t.pay01,currency_id:t.id,type:"sell",password:t.password,coin_code:t.coin1},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push("/c2cRelease")},500)):"not"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){layer.msg(t.$t("set.yorn"),{time:0,btn:[t.$t("set.yes"),t.$t("set.no")],yes:function(e){layer.closeAll(),t.$router.push("/bindmpwd")}})},1e3)):(layer.msg(e.data.message),t.price01="",t.num01="",t.pay01="",t.password="")}).catch(function(t){layer.msg(t.data.message)}),layer.close(a)}):(layer.msg(t.$t("td.pcoin")),!1):(layer.msg(t.$t("ctc.payway")),!1):(layer.msg(t.$t("ctc.pprice")),!1):(layer.msg(t.$t("ctc.psellNum")),!1)}}},te={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex",attrs:{id:"c2c-box"}},[a("div",{staticClass:"c2c-l"},[a("left")],1),t._v(" "),a("div",{staticClass:"c2c-r"},[a("div",{staticClass:"top"},[a("ul"),t._v(" "),a("el-select",{attrs:{placeholder:t.$t("fat.pselect")},on:{change:t.currency_click},model:{value:t.currency_name,callback:function(e){t.currency_name=e},expression:"currency_name"}},t._l(t.currency_list,function(e){return a("el-option",{key:e.id,attrs:{value:e}},[t._v(t._s(e.name)+"\n ")])})),t._v(" "),a("div",{staticClass:"top-title flex"},[a("div",[a("span",{staticClass:"link-span"},[t._v("tether "+t._s(t.currency_name))]),t._v(" "),a("span",[t._v(t._s(t.$t("ctc.balance"))+":"+t._s(t.balance))])])]),t._v(" "),a("div",{staticClass:"inp-items flex"},[a("div",{staticClass:"inp-item"},[a("div",{staticClass:"inp-title flex"},[a("div",[t._v(t._s(t.$t("td.buyin"))+t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"three-inp mt20"},[a("div",{staticClass:"inp-box"},[a("span",[t._v(t._s(t.$t("ctc.buynum"))+t._s(t.currency_name))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.num,expression:"num"}],attrs:{type:"number"},domProps:{value:t.num},on:{input:function(e){e.target.composing||(t.num=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-box"},[a("span",[t._v(t._s(t.$t("td.price")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.price,expression:"price"}],attrs:{type:"number"},domProps:{value:t.price},on:{input:function(e){e.target.composing||(t.price=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"pay-opts flex"},[a("div",[t._v(t._s(t.$t("td.method")))]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay,expression:"pay"}],attrs:{type:"radio",name:"pay",value:"ali_pay"},domProps:{checked:t._q(t.pay,"ali_pay")},on:{change:function(e){t.pay="ali_pay"}}}),t._v("\n "+t._s(t.$t("fat.alipay"))+"\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay,expression:"pay"}],attrs:{type:"radio",name:"pay",value:"we_chat"},domProps:{checked:t._q(t.pay,"we_chat")},on:{change:function(e){t.pay="we_chat"}}}),t._v("\n "+t._s(t.$t("fat.wechat"))+"\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay,expression:"pay"}],attrs:{type:"radio",name:"pay",value:"bank"},domProps:{checked:t._q(t.pay,"bank")},on:{change:function(e){t.pay="bank"}}}),t._v("\n "+t._s(t.$t("fat.bank"))+"\n ")])]),t._v(" "),a("div",{staticClass:"redColor"},[t._v("("+t._s(t.$t("ctc.payim"))+")")])]),t._v(" "),a("div",{staticClass:"pay-opts flex"},[a("div",[t._v(t._s(t.$t("td.coincode")))]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin,expression:"coin"}],attrs:{type:"radio",name:"coin",value:"CNY"},domProps:{checked:t._q(t.coin,"CNY")},on:{change:function(e){t.coin="CNY"}}}),t._v("\n CNY\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin,expression:"coin"}],attrs:{type:"radio",name:"coin",value:"USD"},domProps:{checked:t._q(t.coin,"USD")},on:{change:function(e){t.coin="USD"}}}),t._v("\n USD\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin,expression:"coin"}],attrs:{type:"radio",name:"coin",value:"JPY"},domProps:{checked:t._q(t.coin,"JPY")},on:{change:function(e){t.coin="JPY"}}}),t._v("\n JPY\n ")])])]),t._v(" "),a("div",{staticClass:"btn-in",on:{click:t.bui_in}},[t._v(t._s(t.$t("td.buyin"))+"("+t._s(t.currency_name)+")")])]),t._v(" "),a("div",{staticClass:"inp-item"},[a("div",{staticClass:"inp-title flex"},[a("div",[a("span",[t._v(t._s(t.$t("td.sellout"))+t._s(t.currency_name))])])]),t._v(" "),a("div",{staticClass:"three-inp mt20"},[a("div",{staticClass:"inp-box"},[a("span",[t._v(t._s(t.$t("ctc.sellnum"))+t._s(t.currency_name))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.num01,expression:"num01"}],attrs:{type:"number"},domProps:{value:t.num01},on:{input:function(e){e.target.composing||(t.num01=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"inp-box"},[a("span",[t._v(t._s(t.$t("td.price")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.price01,expression:"price01"}],attrs:{type:"number"},domProps:{value:t.price01},on:{input:function(e){e.target.composing||(t.price01=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"pay-opts flex"},[a("div",[t._v(t._s(t.$t("td.method")))]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay01,expression:"pay01"}],attrs:{type:"radio",name:"pay01",value:"ali_pay"},domProps:{checked:t._q(t.pay01,"ali_pay")},on:{change:function(e){t.pay01="ali_pay"}}}),t._v("\n "+t._s(t.$t("fat.alipay"))+"\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay01,expression:"pay01"}],attrs:{type:"radio",name:"pay01",value:"we_chat"},domProps:{checked:t._q(t.pay01,"we_chat")},on:{change:function(e){t.pay01="we_chat"}}}),t._v("\n "+t._s(t.$t("fat.wechat"))+"\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.pay01,expression:"pay01"}],attrs:{type:"radio",name:"pay01",value:"bank"},domProps:{checked:t._q(t.pay01,"bank")},on:{change:function(e){t.pay01="bank"}}}),t._v("\n "+t._s(t.$t("fat.bank"))+"\n ")])]),t._v(" "),a("div",{staticClass:"redColor"},[t._v("("+t._s(t.$t("ctc.payim"))+")")])]),t._v(" "),a("div",{staticClass:"pay-opts flex"},[a("div",[t._v(t._s(t.$t("td.coincode")))]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin1,expression:"coin1"}],attrs:{type:"radio",name:"coin1",value:"CNY"},domProps:{checked:t._q(t.coin1,"CNY")},on:{change:function(e){t.coin1="CNY"}}}),t._v("\n CNY\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin1,expression:"coin1"}],attrs:{type:"radio",name:"coin1",value:"USD"},domProps:{checked:t._q(t.coin1,"USD")},on:{change:function(e){t.coin1="USD"}}}),t._v("\n USD\n ")])]),t._v(" "),a("div",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.coin1,expression:"coin1"}],attrs:{type:"radio",name:"coin1",value:"JPY"},domProps:{checked:t._q(t.coin1,"JPY")},on:{change:function(e){t.coin1="JPY"}}}),t._v("\n JPY\n ")])])]),t._v(" "),a("div",{staticClass:"btn-out",on:{click:t.sell_out}},[t._v(t._s(t.$t("td.sellout"))+"("+t._s(t.currency_name)+")")])])])],1)])])},staticRenderFns:[]};var ee=a("VU/8")($t,te,!1,function(t){a("Cng2")},null,null).exports;U.default.filter("circle",function(t){return t.substring(0,1)});var ae={components:{left:qt},data:function(){return{token:"",current:0,select:0,type:"sell",page:1,coinList:[],list:[],legal_id:"",classify:"购买",topType:[{title:this.$t("td.buy"),type:"sell"},{title:this.$t("td.sell"),type:"buy"}],bgcolor:["#5d8cc2","#6d78a8","#a2b240","#61b88e","#e35744","#a16c92","#66756e"],showmore:!0,password:""}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.token=window.localStorage.getItem("token")||"",""==this.token&&this.$router.push("/components/login"),this.get_currency()},methods:{changeType:function(t,e,a){this.current=t,this.classify=a,this.type=e,this.list=[],this.page=1,this.getList()},getnew:function(t,e){this.select=t,this.legal_id=e,this.page=1,this.list=[],this.getList()},get_currency:function(){var t=this;this.$http({url:"/api/currency/list",method:"get",headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type&&(t.coinList=e.data.message.legal,t.legal_id=e.data.message.legal[0].id,t.getList("sell"))})},getList:function(){var t=this,e=this.type,a=this.page,s=this.legal_id,i=layer.load();this.$http({url:"/api/c2c_deal_platform?type="+e+"&page="+a+"¤cy_id="+s,method:"get",headers:{Authorization:this.token}}).then(function(e){if(layer.close(i),"ok"==e.data.type){var a=e.data.message.data;if(0!=a.length){for(var s=0;s<a.length;s++)a[s].bgcolor=t.bgcolor[Math.floor(6*Math.random()+1)-1];t.list=t.list.concat(a),t.page+=1}a.length<10&&(t.showmore=!1)}})},getMore:function(){this.getList()},order:function(t){var e=this;layer.prompt({title:e.$t("td.pwd"),formType:1},function(a,s){e.password=a,e.sureOrder(t),layer.close(s)})},sureOrder:function(t){var e=this,a=layer.load();e.$http({url:"/api/c2c/do_legal_deal",method:"post",data:{id:t,password:e.password},headers:{Authorization:e.token}}).then(function(t){layer.close(a),"ok"==t.data.type?(layer.msg(t.data.message.msg),e.page=1,e.list=[],e.getList()):layer.msg(t.data.message)})}}},se={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex",attrs:{id:"c2c-box"}},[s("div",{staticClass:"c2c-l"},[s("left")],1),t._v(" "),s("div",{staticClass:"c2c-r"},[s("div",{staticClass:"title-top flex ft20"},t._l(t.topType,function(e,a){return s("p",{key:a,class:{active:a==t.current},on:{click:function(s){t.changeType(a,e.type,e.title)}}},[t._v(t._s(e.title))])})),t._v(" "),s("div",{staticClass:"coin-select mt20 flex"},t._l(t.coinList,function(e,a){return s("p",{key:a,class:{select:a==t.select},on:{click:function(s){t.getnew(a,e.id)}}},[t._v(t._s(e.name))])})),t._v(" "),s("div",{staticClass:"listbox"},[s("div",{staticClass:"flex flextitle"},[s("span",[t._v(t._s(t.$t("fat.shoper")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.price")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.method")))]),t._v(" "),s("span",{staticClass:"tr"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),s("ul",[t._l(t.list,function(e,i){return s("li",{key:i,staticClass:"flex alcenter curPer"},[s("div",{staticClass:"flex alcenter"},[s("p",{staticClass:"head",style:{background:e.bgcolor}},[t._v(t._s(t._f("circle")(e.seller_name)))]),t._v(" "),s("p",{staticClass:"blue"},[t._v(t._s(e.seller_name))])]),t._v(" "),s("div",{staticClass:"flex center tc"},[s("span",{staticClass:"sellerName"},[t._v(t._s(t._f("tofixed")(e.surplus_number||"0.00")))]),t._v(" "),s("span",{staticClass:"currencyName ml5"},[t._v(t._s(e.currency_name))])]),t._v(" "),s("div",{staticClass:"tc light_green ft16"},[t._v(t._s(t._f("tofixed")(e.price||"0.00"))+" "+t._s(e.coin_code))]),t._v(" "),s("div",{staticClass:"tc"},["ali_pay"==e.way?s("img",{attrs:{src:a("F43K")}}):t._e(),t._v(" "),"we_chat"==e.way?s("img",{attrs:{src:a("PVjh")}}):t._e(),t._v(" "),"bank"==e.way?s("img",{attrs:{src:a("ufz/")}}):t._e()]),t._v(" "),s("div",{staticClass:"tr"},[s("button",{staticClass:"btn",on:{click:function(a){t.order(e.id)}}},[t._v(t._s(t.classify))])])])}),t._v(" "),t.list.length>=10&&t.showmore?s("div",{staticClass:"tc ft12 gray mt20 curPer",on:{click:function(e){t.getMore()}}},[t._v(t._s(t.$t("td.more")))]):t._e()],2)])])])},staticRenderFns:[]};var ie=a("VU/8")(ae,se,!1,function(t){a("HPYf")},null,null).exports,ne={components:{left:qt},data:function(){return{token:"",active:0,actives:-1,currency_list:[],currency_name:"",id:"",showList:!0,showDetail:!1,detail:{},showTradeBox:!1,page:1,types:"buy",buyList:[],password:"",moreText:this.$t("td.more")}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.token=window.localStorage.getItem("token")||"",""==this.token&&this.$router.push("/components/login"),this.get_currency()},methods:{get_currency:function(){var t=this,e=layer.load();this.$http({url:"/api/currency/list",method:"get",headers:{Authorization:this.token}}).then(function(a){layer.close(e),"ok"==a.data.type&&(t.currency_list=a.data.message.legal,t.currency_name=a.data.message.legal[0].name,t.id=a.data.message.legal[0].id,t.getBuyList())})},currency_click:function(t,e,a,s){this.currency_name=e,this.id=t,this.types=s,"buy"==s?(this.active=a,this.actives=-1):(this.actives=a,this.active=-1),this.page=1,this.buyList=[],this.getBuyList()},getBuyList:function(){var t=layer.load(),e=this;e.$http({url:"/api/c2c/seller_trade?type="+e.types+"&page="+e.page+"¤cy_id="+e.id,method:"get",headers:{Authorization:this.token}}).then(function(a){if(layer.close(t),"ok"==a.data.type){var s=a.data.message.data;s.length>0?e.buyList=e.buyList.concat(s):1==e.page&&0==s.length?e.moreText="":e.moreText=e.$t("td.nomore")}})},backOrder:function(t){var e=this;layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a;var i=layer.load();e.$http({url:"/api/c2c/back_send",method:"post",data:{id:t,password:e.password},headers:{Authorization:e.token}}).then(function(t){layer.close(i),layer.msg(t.data.message),"ok"==t.type&&setTimeout(function(){location.reload()},500)}).catch(function(t){layer.msg(t.data.message)}),layer.close(s)})},moreData:function(){this.page=this.page+1,this.getBuyList()},lookOrder:function(t){this.$router.push({name:"c2cDetail",query:{id:t}})},gofinish:function(){this.$router.push({name:"c2cRecord",query:{id:this.id}})}}},oe={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex",attrs:{id:"c2c-box"}},[s("div",{staticClass:"c2c-l"},[s("left")],1),t._v(" "),s("div",{staticClass:"c2c-r"},[s("div",{staticClass:"top"},[s("div",{staticClass:"top-left"},[s("h4",[t._v(t._s(t.$t("td.buy")))]),t._v(" "),s("ul",t._l(t.currency_list,function(e,a){return s("li",{key:a,class:a==t.active?"bg_active":"",attrs:{"data-id":e.id},on:{click:function(s){t.currency_click(e.id,e.name,a,"buy")}}},[t._v(t._s(e.name))])}))]),t._v(" "),s("div",{staticClass:"top-right"},[s("h4",[t._v(t._s(t.$t("td.sell")))]),t._v(" "),s("ul",t._l(t.currency_list,function(e,a){return s("li",{key:a,class:a==t.actives?"bg_active":"",attrs:{"data-id":e.id},on:{click:function(s){t.currency_click(e.id,e.name,a,"sell")}}},[t._v(t._s(e.name))])}))]),t._v(" "),s("div",{staticClass:"top-record",on:{click:t.gofinish}},[t._v("\n 已完成订单记录\n ")])]),t._v(" "),s("div",{staticClass:"bot"},[t.buyList.length>0?s("ul",{staticClass:"content"},[s("li",{staticClass:"flex"},[s("div",{staticClass:"tl"},[t._v(t._s(t.$t("td.currency")))]),t._v(" "),s("div",[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("div",[t._v(t._s(t.$t("td.price")))]),t._v(" "),s("div",[t._v(t._s(t.$t("td.method")))]),t._v(" "),s("div",{staticClass:"tr"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),t._l(t.buyList,function(e){return s("li",{key:e.id,staticClass:"flex"},[s("div",{staticClass:"tl"},[t._v(t._s(e.currency_name))]),t._v(" "),s("div",[t._v(t._s(t._f("tofixed")(e.total_number||"0.00"))+" "+t._s(e.currency_name))]),t._v(" "),s("div",[t._v(t._s(t._f("tofixed")(e.price||"0.00"))+" "+t._s(e.coin_code))]),t._v(" "),s("div",["ali_pay"==e.way?s("img",{attrs:{src:a("F43K")}}):t._e(),t._v(" "),"we_chat"==e.way?s("img",{attrs:{src:a("PVjh")}}):t._e(),t._v(" "),"bank"==e.way?s("img",{attrs:{src:a("ufz/")}}):t._e()]),t._v(" "),s("div",{staticClass:"tr"},[s("button",{attrs:{type:"button"},on:{click:function(a){t.backOrder(e.id)}}},[t._v(t._s(t.$t("fat.withdraw")))]),t._v(" "),s("button",{attrs:{type:"button"},on:{click:function(a){t.lookOrder(e.id)}}},[t._v(t._s(t.$t("fat.seeOrder")))])])])})],2):t._e(),t._v(" "),t.buyList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])]):t._e(),t._v(" "),s("button",{staticClass:"more",on:{click:function(e){t.moreData()}}},[t._v(t._s(t.moreText))])])])])},staticRenderFns:[]};var re=a("VU/8")(ne,oe,!1,function(t){a("Tx+8")},null,null).exports;U.default.filter("circle",function(t){return t.substring(0,1)});var ce={components:{left:qt},data:function(){return{token:"",current:0,type:"sell",page:1,list:[],legal_id:"",classify:this.$t("fat.wantBuy"),topType:[{title:this.$t("fat.wantBuy"),type:"buy"},{title:this.$t("td.sell"),type:"sell"}],showDetail:!1,detail:[],showmore:!0,password:""}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.token=window.localStorage.getItem("token")||"",""==this.token&&this.$router.push("/components/login"),this.getList()},methods:{changeType:function(t,e,a){this.current=t,this.classify=a,this.type=e,this.list=[],this.page=1,this.getList(e)},getList:function(){var t=this,e=layer.load();this.$http({url:"/api/c2c_user_deal?&page="+this.page,method:"get",headers:{Authorization:this.token}}).then(function(a){if(layer.close(e),"ok"==a.data.type){var s=a.data.message.data;0!=s.length&&(t.list=t.list.concat(s),t.page+=1),s.length<10&&(t.showmore=!1)}})},getMore:function(){this.getList()},getDetail:function(t){var e=this,a=layer.load();this.$http({url:"/api/c2c_deal?id="+t,headers:{Authorization:this.token}}).then(function(t){layer.close(a),"ok"==t.data.type&&(e.detail=t.data.message,e.showDetail=!0)})},ceilOrder:function(t){var e=this;layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a,e.orderCeil(t,s)})},orderCeil:function(t,e){var a=this,s=layer.load();a.$http({url:"/api/c2c/user_legal_pay_cancel",method:"post",data:{id:t,password:a.password},headers:{Authorization:a.token}}).then(function(t){layer.close(s),"ok"==t.data.type?(layer.msg(t.data.message),a.page=1,a.list=[],a.getList(),a.showDetail=!1):layer.msg(t.data.message),layer.close(e)})},sureOrder:function(t){var e=this;layer.confirm(e.$t("ctc.paySeller"),{btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(){layer.closeAll(),layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a,e.orderSure(t,s)})},function(){})},orderSure:function(t,e){var a=this,s=layer.load();a.$http({url:"/api/c2c/user_legal_pay",method:"post",data:{id:t,password:a.password},headers:{Authorization:a.token}}).then(function(t){layer.close(s),layer.close(e),"ok"==t.data.type?(layer.msg(t.data.message),a.page=1,a.list=[],a.getList(),a.showDetail=!1):layer.msg(t.data.message)})},surePayed:function(t){var e=this;layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a,e.payedSure(t,s)})},payedSure:function(t,e){var a=this,s=layer.load();a.$http({url:"/api/c2c/legal_deal_user_sure",method:"post",data:{id:t,password:a.password},headers:{Authorization:a.token}}).then(function(t){layer.close(s),"ok"==t.data.type?(layer.msg(t.data.message),a.page=1,a.list=[],a.getList(),a.showDetail=!1,layer.close(e)):(layer.msg(t.data.message),layer.close(e))})}}},le={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex",attrs:{id:"c2c-box"}},[s("div",{staticClass:"c2c-l"},[s("left")],1),t._v(" "),s("div",{staticClass:"c2c-r ft14"},[s("div",{staticClass:"listbox"},[s("div",{staticClass:"flex flextitle"},[s("span",[t._v(t._s(t.$t("fat.type")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.tradeTotal")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.method")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("fat.status")))]),t._v(" "),s("span",{staticClass:"tr"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),s("ul",[t._l(t.list,function(e,i){return s("li",{key:i,staticClass:"flex alcenter curPer"},[s("div",{staticClass:"flex alcenter"},[s("p",{class:["head",{"sell ":"buy"==e.type}]},[t._v(t._s("sell"==e.type?t.$t("td.sell"):t.$t("td.buy")))]),t._v(" "),s("span",{staticClass:"currencyName ml5 blue"},[t._v(t._s(e.currency_name))])]),t._v(" "),s("div",{staticClass:"tc"},[s("span",[t._v(t._s(t._f("tofixed")(e.number||"0.00")))])]),t._v(" "),s("div",{staticClass:"tc light_green"},[t._v(t._s(t._f("tofixed")(e.deal_money||"0.00"))+" "+t._s(e.coin_code))]),t._v(" "),s("div",{staticClass:"tc"},["支付宝"==e.way_name?s("img",{attrs:{src:a("F43K")}}):"微信"==e.way_name?s("img",{attrs:{src:a("PVjh")}}):s("img",{attrs:{src:a("ufz/")}})]),t._v(" "),s("div",{staticClass:"tc"},[t._v(t._s(e.create_time))]),t._v(" "),s("div",{staticClass:"tc"},[0==e.is_sure?s("div",[t._v(t._s(t.$t("td.nofinish")))]):t._e(),t._v(" "),1==e.is_sure?s("div",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==e.is_sure?s("div",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==e.is_sure?s("div",[t._v(t._s(t.$t("td.payed")))]):t._e()]),t._v(" "),s("div",{staticClass:"tr"},[s("button",{staticClass:"btn",on:{click:function(a){t.getDetail(e.id)}}},[t._v(t._s(t.$t("ctc.detail")))])])])}),t._v(" "),t.list.length>=10&&t.showmore?s("div",{staticClass:"tc ft12 gray mt20 curPer",on:{click:function(e){t.getMore()}}},[t._v(t._s(t.$t("td.more")))]):t._e()],2)])]),t._v(" "),t.showDetail?s("div",{staticClass:"mask ft14"},[s("div",{staticClass:"m-content"},[s("div",{staticClass:"title"},[s("div",[t._v(t._s(t.$t("ctc.detail")))]),t._v(" "),s("div",{on:{click:function(e){t.showDetail=!1}}},[t._v("x")])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("fat.status"))+":")]),t._v(" "),0==t.detail.is_sure?s("span",[t._v(t._s(t.$t("td.waitpay")))]):t._e(),t._v(" "),1==t.detail.is_sure?s("span",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==t.detail.is_sure?s("span",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==t.detail.is_sure?s("span",[t._v(t._s(t.$t("td.payed")))]):t._e()]),t._v(" "),"sell"==t.detail.type?s("div",[s("div",[s("span",[t._v(t._s(t.$t("td.seller"))+":")]),s("span",[t._v(t._s(t.detail.seller_name))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("ctc.payinfo"))+":")]),s("span",[t._v(t._s(t.detail.way_name))])]),t._v(" "),0!=t.detail.is_sure||"支付宝"!=t.detail.way_name&&"微信"!=t.detail.way_name?t._e():s("div",[s("span",[t._v(t._s(t.$t("ctc.account"))+":")]),t._v(" "),"支付宝"==t.detail.way_name?s("span",[t._v(t._s(t.detail.sell_cash_info.alipay_account))]):t._e(),t._v(" "),"微信"==t.detail.way_name?s("span",[t._v(t._s(t.detail.sell_cash_info.wechat_account))]):t._e()]),t._v(" "),0!=t.detail.is_sure||"支付宝"==t.detail.way_name&&"微信"==t.detail.way_name?t._e():s("div",[s("span",[t._v("开户行:")]),s("span",[t._v(t._s(t.detail.sell_cash_info.bank_name))])]),t._v(" "),0==t.detail.is_sure?s("div",[s("span",[t._v(t._s(t.$t("ctc.cardnum"))+":")]),s("span",[t._v(t._s(t.detail.sell_cash_info.bank_account))])]):t._e(),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("ctc.Payee"))+":")]),s("span",[t._v(t._s(t.detail.hes_realname))])])]):t._e(),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.callWay"))+":")]),s("span",[t._v(t._s(t.detail.seller_phone))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.num"))+":")]),s("span",[t._v(t._s(t._f("tofixed")(t.detail.number||"0.00")))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.price"))+":")]),s("span",[t._v(t._s(t._f("tofixed")(t.detail.price||"0.00"))+" "+t._s(t.detail.coin_code))])]),t._v(" "),"sell"==t.detail.type?s("div",[s("span",[t._v(t._s(t.$t("lever.rate"))+":")]),s("span",[t._v(t._s(t._f("tofixed")(t.detail.out_fee||"0.00")))])]):t._e(),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.total"))+":")]),s("span",[t._v(t._s(t._f("tofixed")(t.detail.deal_money||"0.00"))+" "+t._s(t.detail.coin_code))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.placeTime"))+":")]),s("span",[t._v(t._s(t.detail.create_time))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.renum"))+":")]),s("span",[t._v(t._s(t.detail.id))])]),t._v(" "),0==t.detail.is_sure&&"sell"==t.detail.type?s("div",{staticClass:"flex around btnbox mt20"},[s("div",{staticClass:"ceilorder tc",on:{click:function(e){t.ceilOrder(t.detail.id)}}},[t._v(t._s(t.$t("fat.odCeil")))]),t._v(" "),s("div",{staticClass:"surepay tc",on:{click:function(e){t.sureOrder(t.detail.id)}}},[t._v(t._s(t.$t("fat.imPay")))])]):t._e(),t._v(" "),3==t.detail.is_sure&&"buy"==t.detail.type?s("div",{staticClass:"mt20 btnbox"},[s("div",{staticClass:"surepay tc",on:{click:function(e){t.surePayed(t.detail.id)}}},[t._v(t._s(t.$t("fat.receivePays")))])]):t._e()])]):t._e()])},staticRenderFns:[]};var de=a("VU/8")(ce,le,!1,function(t){a("yR3R")},null,null).exports;U.default.filter("circle",function(t){return t.substring(0,1)});var ue={components:{left:qt},data:function(){return{token:"",current:0,type:"sell",page:1,list:[],legal_id:"",classify:this.$t("fat.wantBuy"),ids:"",payContent:{},modalShow:!1,pannelShow:!1,modalBtnShow:!1,password:""}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.token=window.localStorage.getItem("token")||"",this.ids=this.$route.query.id,""==this.token&&this.$router.push("/components/login"),this.getList(this.ids)},methods:{changeType:function(t,e,a){this.current=t,this.classify=a,this.type=e,this.list=[],this.page=1,this.getList(e)},getList:function(t){var e=this,a=layer.load();this.$http({url:"/api/c2c/legal_send_deal_list?&page="+this.page+"&id="+t,method:"get",headers:{Authorization:this.token}}).then(function(t){if(layer.close(a),"ok"==t.data.type){var s=t.data.message.data;0!=s.length&&(e.list=e.list.concat(s),e.page+=1)}})},order:function(t){var e=this;layer.confirm(e.$t("ctc.suerePlace"),{btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(){e.sureOrder(t)},function(){})},sureOrder:function(t){var e=layer.load();this.$http({url:"/api/c2c/do_legal_deal",method:"post",data:{id:t},headers:{Authorization:this.token}}).then(function(t){layer.close(e),t.data.type,layer.msg(t.data.message)})},modals:function(t){var e=this,a=layer.load();e.$http({url:"/api/c2c_deal?&id="+t,method:"get",headers:{Authorization:e.token}}).then(function(t){layer.close(a),"ok"==t.data.type&&(e.modalShow=!0,e.payContent=t.data.message,3==t.data.message.is_sure&&"sell"==t.data.message.type?e.modalBtnShow=!0:e.modalBtnShow=!1,0==t.data.message.is_sure&&"buy"==t.data.message.type?e.pannelShow=!0:e.pannelShow=!1)})},closes:function(){this.modalShow=!1},comfirm:function(t){var e=this;layer.confirm(e.$t("ctc.sellerPay"),{btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(){layer.closeAll(),layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a;var i=layer.load();e.$http({url:"/api/c2c/legal_deal_sure",method:"post",data:{id:t,password:e.password},headers:{Authorization:e.token}}).then(function(t){layer.close(i),"ok"==t.data.type?(layer.msg(t.data.message),e.modalShow=!1,setTimeout(function(){e.getList(e.ids)},500)):layer.msg(t.data.message)}),layer.close(s)})},function(){})},cannel:function(t){var e=this;layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a;var i=layer.load();e.$http({url:"/api/c2c/user_legal_pay_cancel",method:"post",data:{id:t,password:e.password},headers:{Authorization:e.token}}).then(function(t){layer.close(i),"ok"==t.data.type?(layer.msg(t.data.message),e.modalShow=!1,setTimeout(function(){e.getList(e.ids)},500)):layer.msg(t.data.message)}),layer.close(s)})},payComfirm:function(t){var e=this;layer.confirm(e.$t("ctc.payattion"),{btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(){e.modalShow=!1,layer.closeAll(),layer.prompt({title:e.$t("td.pwd"),formType:1,btn:[e.$t("td.confirm"),e.$t("td.canceil")]},function(a,s){e.password=a;var i=layer.load();e.$http({url:"/api/c2c/user_legal_pay",method:"post",data:{id:t,password:e.password},headers:{Authorization:e.token}}).then(function(t){layer.close(i),"ok"==t.data.type?(layer.msg(t.data.message),e.modalShow=!1,setTimeout(function(){e.getList(e.ids)},1e3)):layer.msg(t.data.message)}),layer.close(s)})},function(){})}}},me={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex",attrs:{id:"c2c-box"}},[s("div",{staticClass:"c2c-l"},[s("left")],1),t._v(" "),s("div",{staticClass:"c2c-r"},[s("div",{staticClass:"listbox"},[s("div",{staticClass:"flex flextitle"},[s("span",[t._v(t._s(t.$t("fat.type")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.tradeTotal")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.price")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.method")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("span",{staticClass:"tc"},[t._v(t._s(t.$t("fat.status")))]),t._v(" "),s("span",{staticClass:"tr"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),s("ul",t._l(t.list,function(e,i){return s("li",{key:i,staticClass:"flex alcenter curPer"},[s("div",{staticClass:"flex alcenter"},[s("p",{staticClass:"head"},[t._v(t._s("sell"==e.type?t.$t("td.sell"):t.$t("td.buy")))]),t._v(" "),s("span",{staticClass:"currencyName ml5"},[t._v(t._s(e.currency_name))])]),t._v(" "),s("div",{staticClass:"flex center tc"},[s("span",{staticClass:"light_blue sellerName"},[t._v(t._s(t._f("tofixed")(e.deal_money||"0.00"))+" "+t._s(e.coin_code))])]),t._v(" "),s("div",{staticClass:"tc"},[t._v(t._s(t._f("tofixed")(e.price||"0.00"))+" "+t._s(e.coin_code))]),t._v(" "),s("div",{staticClass:"tc"},["支付宝"==e.way_name?s("img",{attrs:{src:a("F43K")}}):"微信"==e.way_name?s("img",{attrs:{src:a("PVjh")}}):s("img",{attrs:{src:a("ufz/")}})]),t._v(" "),s("div",{staticClass:"tc"},[t._v(t._s(e.create_time))]),t._v(" "),s("div",{staticClass:"tc"},[0==e.is_sure?s("div",[t._v(t._s(t.$t("td.nofinish")))]):t._e(),t._v(" "),1==e.is_sure?s("div",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==e.is_sure?s("div",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==e.is_sure?s("div",[t._v(t._s(t.$t("td.payed")))]):t._e()]),t._v(" "),s("div",{staticClass:"tr",on:{click:function(a){t.modals(e.id)}}},[s("button",{staticClass:"detail-btn",attrs:{type:"button"}},[t._v(t._s(t.$t("ctc.detail")))])])])}))])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.modalShow,expression:"modalShow"}],staticClass:"modals flex"},[s("div",{staticClass:"modals-content"},[s("div",{staticClass:"modal-header"},[s("h3",[t._v(t._s(t.$t("ctc.detail")))]),t._v(" "),s("p",{staticClass:"pointer",on:{click:function(e){t.closes()}}},[t._v("X")])]),t._v(" "),"buy"==t.payContent.type?s("div",{directives:[{name:"show",rawName:"v-show",value:"buy"==t.payContent.type,expression:"payContent.type == 'buy'"}],staticClass:"pay-cannel"},[s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("fat.status"))+":")]),t._v(" "),0==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.nofinish")))]):t._e(),t._v(" "),1==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.payed")))]):t._e()]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("ctc.total"))+":")]),t._v("\n "+t._s(t._f("tofixed")(t.payContent.deal_money||"0.00"))+" "+t._s(t.payContent.coin_code)+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("ctc.name"))+":")]),t._v("\n "+t._s(t.payContent.user_cash_info.real_name)+"\n ")]),t._v(" "),0!=t.payContent.is_sure||"支付宝"==t.payContent.way_name&&"微信"==t.payContent.way_name?t._e():s("div",[s("span",{staticClass:"modals-left"},[t._v("开户行:")]),s("span",[t._v(t._s(t.payContent.user_cash_info.bank_name))])]),t._v(" "),t.payContent.user_cash_info.bank_account?s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("ctc.cardnum"))+":")]),t._v("\n "+t._s(t.payContent.user_cash_info.bank_account)+"\n ")]):t._e(),t._v(" "),t.payContent.user_cash_info.wechat_account?s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("fat.wechat"))+":")]),t._v("\n "+t._s(t.payContent.user_cash_info.wechat_account)+"\n ")]):t._e(),t._v(" "),t.payContent.user_cash_info.alipay_account?s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("fat.alipay"))+":")]),t._v("\n "+t._s(t.payContent.user_cash_info.alipay_account)+"\n ")]):t._e(),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.callWay"))+":")]),t._v("\n "+t._s(t.payContent.phone)+"\n ")])]):t._e(),t._v(" "),"sell"==t.payContent.type?s("div",{directives:[{name:"show",rawName:"v-show",value:"sell"==t.payContent.type,expression:"payContent.type == 'sell'"}],staticClass:"pay-complete"},[s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("fat.status"))+":")]),t._v(" "),0==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.nofinish")))]):t._e(),t._v(" "),1==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==t.payContent.is_sure?s("span",[t._v(t._s(t.$t("td.payed")))]):t._e()]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.total"))+":")]),t._v("\n "+t._s(t._f("tofixed")(t.payContent.deal_money||"0.00"))+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.price"))+":")]),t._v("\n "+t._s(t._f("tofixed")(t.payContent.price||"0.00"))+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.num"))+":")]),t._v("\n "+t._s(t._f("tofixed")(t.payContent.number||"0.00"))+" "+t._s(t.payContent.currency_name)+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("lever.rate"))+":")]),t._v("\n "+t._s(t._f("tofixed")(t.payContent.out_fee||"0.00"))+" "+t._s(t.payContent.currency_name)+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.time"))+":")]),t._v("\n "+t._s(t.payContent.format_create_time)+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.renum"))+":")]),t._v("\n "+t._s(t.payContent.id)+"\n ")]),t._v(" "),s("div",[s("span",{staticClass:"modals-left"},[t._v(t._s(t.$t("td.callWay"))+":")]),t._v("\n "+t._s(t.payContent.phone)+"\n ")])]):t._e(),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.modalBtnShow,expression:"modalBtnShow"}],staticClass:"btns"},[s("button",{attrs:{type:"button"},on:{click:function(e){t.comfirm(t.payContent.id)}}},[t._v(t._s(t.$t("ctc.receivePay")))])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.pannelShow,expression:"pannelShow"}],staticClass:"btns"},[s("button",{attrs:{type:"button"},on:{click:function(e){t.cannel(t.payContent.id)}}},[t._v(t._s(t.$t("fat.odCeil")))]),t._v(" "),s("button",{attrs:{type:"button"},on:{click:function(e){t.payComfirm(t.payContent.id)}}},[t._v(t._s(t.$t("fat.imPay")))])])])])])},staticRenderFns:[]};var pe=a("VU/8")(ue,me,!1,function(t){a("kIoD")},null,null).exports,he={data:function(){return{list:[],filterPms:{type:"none",id:"",page:1,isSure:"none"}}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(3)}},created:function(){var t=window.localStorage.getItem("token")||"";t&&(this.token=t,this.filterPms.id=this.$route.query.id||"",this.getList())},methods:{getList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a={};e||(this.filterPms.page=1),a.currency_id=this.filterPms.id,a.page=this.filterPms.page,"none"!=this.filterPms.type&&(a.type=this.filterPms.type);var s=layer.load();this.$http({url:"/api/c2c_seller_deal",params:a,headers:{Authorization:this.token}}).then(function(a){if(layer.close(s),"ok"==a.data.type){var i=a.data.message;e?i.data.length?t.list=t.list.concat(i.data):layer.msg(t.$t("td.nomore")):t.list=i.data,i.data.length&&(t.filterPms.page+=1)}})}}},ve={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"white",attrs:{id:"legal-record"}},[a("div",{staticClass:"title bgf8"},[t._v(t._s(t.$t("ctc.log")))]),t._v(" "),a("div",{staticClass:"filter-box ft14 bgf8"},[a("div",[a("span",[t._v(t._s(t.$t("fat.tdType"))+":")]),t._v(" "),a("span",{class:{select:"sell"==t.filterPms.type},on:{click:function(e){t.filterPms.type="sell",t.getList()}}},[t._v(t._s(t.$t("td.sell")))]),t._v(" "),a("span",{class:{select:"buy"==t.filterPms.type},on:{click:function(e){t.filterPms.type="buy",t.getList()}}},[t._v(t._s(t.$t("td.buy")))])])]),t._v(" "),a("ul",{staticClass:"ft14 bgf8"},t._l(t.list,function(e,s){return a("li",{key:s},[a("div",{staticClass:"flex li-b"},[a("div",["sell"==e.type?a("span",[t._v(t._s(t.$t("td.sell")))]):a("span",[t._v(t._s(t.$t("td.buy")))]),t._v(" "),a("p",[t._v(t._s(e.currency_name))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("td.time")))]),t._v(" "),a("p",[t._v(t._s(e.create_time))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(e.number||"0.000")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("lever.rate")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(e.out_fee||"0.000")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("td.tradeTotal")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(e.deal_money||"0.000"))+" "+t._s(e.coin_code))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("ctc.account")))]),t._v(" "),a("p",[t._v(t._s(e.account_number))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("fat.status")))]),t._v(" "),a("p",[t._v(t._s(t.$t("td.finished")))])])])])})),t._v(" "),t.list.length?a("div",{staticClass:"more",on:{click:function(e){t.getList(!0)}}},[t._v(t._s(t.$t("td.more")))]):a("div",{staticClass:"nomore"},[t._v(t._s(t.$t("td.nomore")))])])},staticRenderFns:[]};var _e=a("VU/8")(he,ve,!1,function(t){a("o7ou")},null,null).exports,fe={name:"noticeList",components:{indexHeader:V},data:function(){return{more:"点击加载更多...",newList:[]}},created:function(){},methods:{getNotice:function(){var t=this;this.$http({url:"/api/news/list",method:"post"}).then(function(e){t.newList=e.data.message.list})},goBefore:function(){this.$router.back(-1)},getMore:function(){},goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})}},mounted:function(){this.getNotice()}},ge={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"notice"},[a("div",{staticClass:"account-wrap"},[a("div",{staticClass:"account",staticStyle:{width:"auto"}},[t._m(0),t._v(" "),a("div",{staticClass:"account-content"},[t._m(1),t._v(" "),a("div",[a("ul",{staticClass:"noticeList"},t._l(t.newList,function(e){return a("li",{key:e.id,staticClass:"clear curPer"},[a("div",{on:{click:function(a){t.goDetail(e.id)}}},[a("div",{},[t._v(t._s(e.title))]),t._v(" "),a("span",{staticClass:"fr"},[t._v(t._s(e.update_time))])])])}))]),t._v(" "),a("div",{staticClass:"tc",staticStyle:{padding:"15px"}})])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"back-nav fColor1 ft20 clear",staticStyle:{padding:"0 20px"}},[this._v(" 公告\n \n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tc hide",staticStyle:{"padding-top":"150px"}},[e("img",{attrs:{src:a("f0hK"),alt:""}}),this._v(" "),e("p",{staticClass:"fColor2 ft18"},[this._v("暂无数据")])])}]};var ye=a("VU/8")(fe,ge,!1,function(t){a("CRRl")},"data-v-38d76e28",null).exports,Ae={name:"exchange",data:function(){return{outlist:[],inlist:[],load:1,newData:0,currency_name:"",legal_name:"",currency_id:"",legal_id:""}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},mounted:function(){},created:function(){window.localStorage.getItem("lever_l_id"),window.localStorage.getItem("lever_c_id");this.legal_id=localStorage.getItem("legal_id"),this.currency_id=localStorage.getItem("currency_id"),this.legal_name=localStorage.getItem("legal_name"),this.currency_name=localStorage.getItem("currency_name"),this.buy_sell(this.legal_id,this.currency_id),this.connect(this.legal_id,this.currency_id),this.upPrice(this.legal_id,this.currency_id)},methods:{price:function(t){eventBus.$emit("toPrice",t)},buy_sell:function(t,e){var a=this,s=this;this.$http({url:"/api/lever/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(i){if("ok"==i.data.type){s.newData=i.data.message.last_price,window.localStorage.setItem("lastPrice",s.newData);var n=i.data.message.lever_transaction.in,o=i.data.message.lever_transaction.out.reverse(),r=[],c=[],l=[],d=[];for(var u in n)r[0]=n[u].price,r[1]=n[u].number,c.push(r);for(var u in o)l[0]=o[u].price,l[1]=o[u].number,d.push(l);s.inlist=c.slice(0,8),s.outlist=d.slice(0,8),s.connect(t,e)}else"999"==i.data.type?a.$router.push("/components/login"):layer.msg(i.data.message)}).catch(function(t){})},connect:function(t,e){var a=this;a.$socket.emit("login",localStorage.getItem("user_id")),a.$socket.on("market_depth",function(s){if("market_depth"==s.type){var i={newprice:s.last_price,newup:s.proportion,istoken:s.token,yesprice:s.yesterday,toprice:s.today};if(setTimeout(function(){eventBus.$emit("toNew01",i)},1e3),"string"==typeof s.bids)var n=JSON.parse(s.bids),o=JSON.parse(s.asks);else n=s.bids.slice(0,8),o=s.asks.slice(0,8);s.currency_id==e&&s.legal_id==t&&(a.inlist=n,a.outlist=o)}})},upPrice:function(t,e){var a=this;a.$socket.emit("login",localStorage.getItem("user_id")),a.$socket.on("kline",function(s){"kline"==s.type&&s.currency_id==e&&s.legal_id==t&&(a.newData=s.close,window.localStorage.setItem("lastPrice",a.newData))})}}},Ce={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"exchange"},[a("div",{staticClass:"content fColor1"},[a("div",{staticClass:"new_price bdb"},[a("span",{staticClass:"ft14"},[t._v(t._s(t.$t("market.newprice"))+" "+t._s(t._f("tofixedFour")(t.newData)))])]),t._v(" "),a("div",{staticClass:"exchange_title ft12 clear tc"},[a("span",[t._v(t._s(t.$t("cuy.direction")))]),t._v(" "),a("span",[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.num")))])]),t._v(" "),a("ul",{staticClass:"list-item ft12 tc"},[t._l(t.outlist,function(e,s){return s<8?a("li",{key:e.id,staticClass:"curPer",on:{click:function(a){t.price(e[0])}}},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.outlist.length<8,expression:"outlist.length<8"}],staticClass:"red"},[t._v(t._s(t.$t("cuy.sell"))+" "+t._s(t.outlist.length-s))]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.outlist.length>=8,expression:"outlist.length>=8"}],staticClass:"red"},[t._v(t._s(t.$t("cuy.sell"))+" "+t._s(8-s))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedFour")(e[0])))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixed")(e[1])))])]):t._e()}),t._v(" "),a("div",{staticClass:"line bdb"}),t._v(" "),t._l(t.inlist,function(e,s){return s<8?a("li",{key:s,staticClass:"curPer",on:{click:function(a){t.price(e[0])}}},[a("span",{staticClass:"green"},[t._v(t._s(t.$t("cuy.buy"))+" "+t._s(s+1))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedFour")(e[0])))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixed")(e[1])))])]):t._e()})],2)])])},staticRenderFns:[]};var be=a("VU/8")(Ae,Ce,!1,function(t){a("KJXN")},"data-v-46731e80",null).exports,we={name:"market",data:function(){return{ids:0,isShow:0,tabList:[],marketList:[],newData:["BBANK","$0.076128","-1.11%"],legal_index:this.$route.params.legal_index,currency_index:this.$route.params.currency_index,tradeDatas:"",index2:0,index1:0,legal_id:window.localStorage.getItem("legal_id"),currency_id:window.localStorage.getItem("currency_id"),selectedId:""}},created:function(){window.localStorage.getItem("index02")&&window.localStorage.getItem("index01")&&(this.index2=window.localStorage.getItem("index02"),this.index1=window.localStorage.getItem("index01"))},mounted:function(){eventBus.$on("toNew01",function(t){if(t){var e=t.newprice,a=t.istoken,s=t.newup;s>=0?(s="+"+Number(100*s).toFixed(2)+"%",$("span[data-name='"+a+"']").next().css("color","#12b886")):(s+="%",$("span[data-name='"+a+"']").next().css("color","#cc4951")),$("span[data-name='"+a+"']").html("$"+e).next().html(s)}})},methods:{changeType:function(t,e,a){this.index1=t,this.index2=null,$(".currency_p p").removeClass("active_p"),this.isShow=t,this.ids="a",this.currency_name=e,this.currency_id=a},getSymbols:function(t){var e=this;if(this.address.length<=0)return!1;this.$http({url:"/api/wallet/list?user_id="+this.address||"",type:"GET"}).then(function(a){"ok"==a.data.type&&(e.accountInfo=a.data.message,e.dataList=a.data.message.list,t&&t())}).catch(function(t){return t})},init:function(){var t=this;this.address=localStorage.getItem("address")||"",this.$http({url:"/api/quotation_new",method:"post",headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&t.getSymbols(function(){for(var a in t.marketList=e.data.message.coin_list,t.dataList)for(var s in t.marketList)t.dataList[a].name==t.marketList[s].symbol?t.marketList[s].type=t.marketList[s].type||1:t.marketList[s].type=t.marketList[s].type||0})}).catch(function(t){})},quota_shift:function(t,e,a){window.localStorage.setItem("index01",this.index1),window.localStorage.setItem("index02",t),this.ids=t;this.currency_id,this.currency_name;window.localStorage.setItem("lever_legal_id",e),window.localStorage.setItem("lever_currency_id",this.currency_id),window.localStorage.setItem("lever_legal_name",a),window.localStorage.setItem("lever_currency_name",this.currency_name),location.reload()},socket:function(t){var e=this;$.ajax({url:_API+"user/info",type:"GET",dataType:"json",async:!0,beforeSend:function(e){e.setRequestHeader("Authorization",t)},success:function(t){if("ok"==t.type){var a=io(socket_api);a.on("connect",function(s){a.emit("login",t.message.id),a.on("daymarket",function(t){if("daymarket"==t.type&&e.selectId&&e.selectId==t.legal_id){var a=e.detailList.quotation;for(i in a)a[i].currency_id==t.currency_id&&(e.detailList.quotation[i].volume=t.volume,e.detailList.quotation[i].now_price=t.now_price,e.detailList.quotation[i].change=t.change)}})})}}})}}},xe={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"market"},[t._m(0),t._v(" "),a("div",{staticClass:"m_filter"},[a("div",{staticClass:"tabtitle fColor1 ft14 curPer flex around"},t._l(t.tabList,function(e,s){return a("span",{key:s,class:s==t.index1?"active":"",on:{click:function(a){t.changeType(s,e.name,e.id)}}},[t._v(t._s(e.name))])}))]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"line"}),t._v(" "),a("ul",{staticClass:"coin-wrap scroll"},t._l(t.marketList,function(e,s){return a("li",{directives:[{name:"show",rawName:"v-show",value:t.index1==s,expression:"index1 == index"}],key:s,staticClass:"currency_p"},t._l(e,function(e,i){return a("p",{key:e.id,class:i==t.index2?"active_p":"",attrs:{"data-id":e.id,"data-index":i},on:{click:function(a){t.quota_shift(i,e.id,e.name)}}},[a("span",[t._v(t._s(e.name))]),t._v(" "),a("span",{attrs:{"data-name":t.tabList[s].name+"/"+e.name}},[t._v("$"+t._s(e.last_price))]),t._v(" "),a("span",{class:{green:e.proportion>=0}},[t._v(t._s(e.proportion>=0?"+"+(e.proportion-0).toFixed(2):(e.proportion-0).toFixed(2))+"%")])])}))}))])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m_title clear fColor1"},[e("span",{staticClass:"fff fl"},[this._v("市场")]),this._v(" "),e("div",{staticClass:"m_search fr"},[e("input",{staticClass:"fColor1",attrs:{type:"text"}}),this._v(" "),e("img",{attrs:{src:a("NzrC"),alt:""}})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"coin-title clear"},[s("div",[s("span",[t._v("币种")]),t._v(" "),s("img",{attrs:{src:a("ecRo"),alt:""}})]),t._v(" "),s("div",[s("span",[t._v("最新价")]),t._v(" "),s("img",{attrs:{src:a("ecRo"),alt:""}})]),t._v(" "),s("div",[s("span",[t._v("涨幅")]),t._v(" "),s("img",{attrs:{src:a("ecRo"),alt:""}})])])}]};var ke=a("VU/8")(we,xe,!1,function(t){a("7v+0")},"data-v-2d0f325c",null).exports,Se={name:"trade",data:function(){return{currency_name:"",currency_id:"",legal_name:"",legal_id:"",multiple:"",user_currency:"",user_legal:"",show:!0,showNone:!1,allBalance:0,buyInfo:{buy_selected:"",buyNum:0,pwd:"",url:"lever/submit"},sellInfo:{sell_selected:"",sellNum:0,pwd:"",url:"lever/submit"},type:"",types:"",shares:0,bons:"",totalPrice:"",trandeFree:"",bonsBuy:"",totalPriceBuy:"",trandeFreeBuy:"",lastPrice:"",buyType:"",comfirmShow:!1,shareList:[],buySahre:"",sellShare:"",inputPrice:"",selectType:"",selectedStatus:1,sellInputValue:"",minShare:1,maxShare:0,shareNum:"",password:""}},created:function(){this.address=localStorage.getItem("token")||""},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},mounted:function(){var t=this;t.address=localStorage.getItem("token")||"",t.legal_id=localStorage.getItem("legal_id"),t.currency_id=localStorage.getItem("currency_id"),t.legal_name=localStorage.getItem("legal_name"),t.currency_name=localStorage.getItem("currency_name"),t.buy_sell(t.legal_id,t.currency_id),eventBus.$on("toPrice",function(e){e&&(t.inputPrice=e,t.sellInputValue=e,t.changePrice("sell"),t.changePrice("buy"))}),eventBus.$on("tocel",function(e){e&&t.legal_id&&t.buy_sell(t.legal_id,t.currency_id)})},methods:{numFilter:function(t){},changeType:function(){this.show=!this.show},goNext:function(t){this.$router.push({name:t})},buyCoin:function(){""!=this.buyInfo.buy_selected?0!=this.selectedStatus||""!=this.inputPrice?this.buySahre<this.minShare?layer.msg(this.$t("lever.noless")+this.minShare):this.buySahre>this.maxShare?layer.msg(this.$t("lever.nomore")+this.maxShare):(this.comfirmShow=!0,this.buyType=1):layer.msg(this.$t("lever.pprice")):layer.msg(this.$t("lever.ptimes"))},selClick:function(){""!=this.sellInfo.sell_selected?0!=this.selectedStatus||""!=this.sellInputValue?this.sellShare<this.minShare?layer.msg(this.$t("lever.noless")+this.minShare):this.sellShare>this.maxShare?layer.msg(this.$t("lever.nomore")+this.maxShare):(this.comfirmShow=!0,this.buyType=2):layer.msg(this.$t("lever.pprice")):layer.msg(this.$t("lever.ptimes"))},buy_sell:function(t,e){var a=this;this.$http({url:"/api/lever/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type&&(a.multiple=t.data.message.multiple.muit,a.user_currency=t.data.message.all_levers,a.user_legal=t.data.message.user_lever,a.lastPrice=t.data.message.last_price,a.shareList=t.data.message.multiple.share,a.minShare=t.data.message.lever_share_limit.min,a.maxShare=t.data.message.lever_share_limit.max,a.buyInfo.buyPrice=0,a.buyInfo.buyNum=0,a.type=a.shareList[0].value,a.types=a.shareList[0].value,a.sellShare=a.types,a.buySahre=a.type)}).catch(function(t){})},select:function(t,e){if(this.shares=t,"buy"==e?(this.type=t,this.buySahre=t):(this.types=t,this.sellShare=t),0!=this.selectedStatus)if("sell"==e&&""!=this.sellInfo.sell_selected){var a=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),s=parseFloat(this.sellInfo.sell_selected).toFixed(4),i=parseFloat(t).toFixed(4);this.pricesType(a,e,i,s)}else if("buy"==e&&""!=this.buyInfo.buy_selected){a=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),s=parseFloat(this.buyInfo.buy_selected).toFixed(4),i=parseFloat(t).toFixed(4);this.pricesType(a,e,i,s)}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0;else if("sell"==e&&""!=this.sellInfo.sell_selected){if(""!=this.sellInputValue){a=parseFloat(this.sellInputValue).toFixed(4),s=parseFloat(this.sellInfo.sell_selected).toFixed(4),i=parseFloat(t).toFixed(4);this.pricesType(a,e,i,s)}}else if("buy"==e&&""!=this.buyInfo.buy_selected){if(""!=this.inputPrice){a=parseFloat(this.inputPrice).toFixed(4),s=parseFloat(this.buyInfo.buy_selected).toFixed(4),i=parseFloat(t).toFixed(4);this.pricesType(a,e,i,s)}}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0},pricesType:function(t,e,a,s){var i=this,n=layer.load();this.$http({url:"/api/currency/quotation_new",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(n){if("ok"==n.data.type){var o=n.data.message,r=[];for(var c in o)i.legal_id==o[c].id&&(r=n.data.message[c].quotation);for(var l in r)if(i.currency_id==r[l].currency_id){var d=parseFloat(r[l].spread).toFixed(4),u=parseFloat(r[l].lever_trade_fee).toFixed(4),m=parseFloat(parseFloat(1*t)*d/100).toFixed(4),p=0;p="sell"==e?parseFloat(parseFloat(1*t)-(m-0)).toFixed(4):parseFloat(parseFloat(1*t)+(m-0)).toFixed(4),s=parseFloat(s).toFixed(4),a=parseFloat(a).toFixed(4);var h=parseFloat(r[l].lever_share_num).toFixed(4);i.shareNum=h;var v=parseFloat(p*a*h).toFixed(4),_=parseFloat((v-0)/(s-0)).toFixed(4),f=parseFloat(v*u/100).toFixed(4);"buy"==e?(i.totalPriceBuy=(t*a*h).toFixed(4),i.trandeFreeBuy=f,i.bonsBuy=_):(i.totalPrice=(t*a*h).toFixed(4),i.trandeFree=f,i.bons=_)}}}).catch(function(t){}),setTimeout(function(){layer.close(n)},1500)},selectMuit:function(t){if(0!=this.selectedStatus)if("sell"==t&&""!=this.sellShare){var e=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),a=parseFloat(this.sellInfo.sell_selected).toFixed(4),s=parseFloat(this.sellShare).toFixed(4);this.pricesType(e,t,s,a)}else if("buy"==t&&""!=this.buySahre){e=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),a=parseFloat(this.buyInfo.buy_selected).toFixed(4),s=parseFloat(this.buySahre).toFixed(4);this.pricesType(e,t,s,a)}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0;else if("sell"==t&&""!=this.sellShare){if(""!=this.sellInputValue){e=parseFloat(this.sellInputValue).toFixed(4),a=parseFloat(this.sellInfo.sell_selected).toFixed(4),s=parseFloat(this.sellShare).toFixed(4);this.pricesType(e,t,s,a)}}else if("buy"==t&&""!=this.sellShare){if(""!=this.inputPrice){e=parseFloat(this.inputPrice).toFixed(4),a=parseFloat(this.buyInfo.buy_selected).toFixed(4),s=parseFloat(this.buySahre).toFixed(4);this.pricesType(e,t,s,a)}}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0},changeValue:function(t){var e=/^[1-9]*[0-9][0-9]*$/;if(this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0,this.totalPrice=0,this.trandeFree=0,this.bons=0,"sell"==t){if(this.types="-1",""==this.sellShare)return;if(!e.test(this.sellShare))return void layer.msg("请输入整数");if(this.sellShare<this.minShare)return void layer.msg("输入的值不能低于"+this.minShare);if(this.maxShare>0&&this.sellShare>this.maxShare)return void layer.msg("输入的值不能高于"+this.maxShare)}else{if(this.type="-1",""==this.buySahre)return;if(!e.test(this.buySahre))return void layer.msg("请输入整数");if(this.buySahre<this.minShare)return void layer.msg("输入的值不能低于"+this.minShare);if(this.maxShare>0&&this.buySahre>this.maxShare)return void layer.msg("输入的值不能高于"+this.maxShare)}if(0!=this.selectedStatus)if("sell"==t&&""!=this.sellInfo.sell_selected){this.types="";var a=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),s=parseFloat(this.sellInfo.sell_selected).toFixed(4),i=parseFloat(this.sellShare).toFixed(4);this.pricesType(a,t,i,s)}else if("buy"==t&&""!=this.buyInfo.buy_selected){this.type="";a=parseFloat(localStorage.getItem("lastPrice")).toFixed(4),s=parseFloat(this.buyInfo.buy_selected).toFixed(4),i=parseFloat(this.buySahre).toFixed(4);this.pricesType(a,t,i,s)}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0,this.totalPrice=0,this.trandeFree=0,this.bons=0;else if("sell"==t&&""!=this.sellInfo.sell_selected){if(this.types="",""!=this.sellInputValue){a=parseFloat(this.sellInputValue).toFixed(4),s=parseFloat(this.sellInfo.sell_selected).toFixed(4),i=parseFloat(this.sellShare).toFixed(4);this.pricesType(a,t,i,s)}}else if("buy"==t&&""!=this.buyInfo.buy_selected){if(this.type="",""!=this.inputPrice){a=parseFloat(this.inputPrice).toFixed(4),s=parseFloat(this.buyInfo.buy_selected).toFixed(4),i=parseFloat(this.buySahre).toFixed(4);this.pricesType(a,t,i,s)}}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0,this.totalPrice=0,this.trandeFree=0,this.bons=0},closeMosal:function(){this.comfirmShow=!1},comfirm:function(){var t=this,e=void 0;2==t.buyType?""!=t.legal_id&&""!=t.currency_id?e={legal_id:t.legal_id,currency_id:t.currency_id,multiple:t.sellInfo.sell_selected,password:t.sellInfo.pwd,share:t.sellShare,type:2,status:t.selectedStatus,target_price:t.sellInputValue}:layer.msg("该交易对已下架,请重新切换交易对"):""!=t.legal_id&&""!=t.currency_id?e={legal_id:t.legal_id,currency_id:t.currency_id,multiple:t.buyInfo.buy_selected,password:t.buyInfo.pwd,share:t.buySahre,type:1,status:t.selectedStatus,target_price:t.inputPrice}:layer.msg("该交易对已下架,请重新切换交易对");var a=layer.load();this.$http({url:"/api/"+t.sellInfo.url,method:"post",data:e,headers:{Authorization:localStorage.getItem("token")}}).then(function(e){t.comfirmShow=!1,layer.close(a),"ok"==e.data.type?(2==t.buyType?(t.sellInfo.sellPrice=0,t.sellInfo.sellNum=0):(t.buyInfo.buyPrice=0,t.buyInfo.buyNum=0),eventBus.$emit("buyTrade","tradebuy"),eventBus.$emit("tocel","updata"),eventBus.$emit("to_leverExchange","leverExchange"),layer.msg(e.data.message),setTimeout(function(){1==t.selectedStatus?t.$router.push({name:"leverTransactions"}):t.$router.push({name:"leverList"})},500)):(layer.msg(e.data.message),t.comfirmShow=!1)}).catch(function(e){t.comfirmShow=!1})},selectTypes:function(t){this.selectedStatus=t,this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0,this.totalPrice=0,this.trandeFree=0,this.bons=0,this.buyInfo.buy_selected="",this.sellInfo.sell_selected="",this.inputPrice="",this.sellInputValue=""},changePrice:function(t){if(0==this.selectedStatus)if("buy"==t&&""!=this.buyInfo.buy_selected)if(""!=this.inputPrice){var e=parseFloat(this.inputPrice).toFixed(4),a=parseFloat(this.buyInfo.buy_selected).toFixed(4),s=parseFloat(this.buySahre).toFixed(4);this.pricesType(e,t,s,a)}else this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0;else if("sell"==t&&""!=this.sellInfo.sell_selected)if(""!=this.sellInputValue){e=parseFloat(this.sellInputValue).toFixed(4),a=parseFloat(this.sellInfo.sell_selected).toFixed(4),s=parseFloat(this.sellShare).toFixed(4);this.pricesType(e,t,s,a)}else this.totalPrice=0,this.trandeFree=0,this.bons=0;else this.totalPrice=0,this.trandeFree=0,this.bons=0,this.totalPriceBuy=0,this.trandeFreeBuy=0,this.bonsBuy=0}},computed:{buyTotal:function(){return this.buyInfo.buy_selected*this.buyInfo.buyNum||0},sellTotal:function(){return this.sellInfo.sell_selected*this.sellInfo.sellNum||0}}},Ie={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"trade"},[a("div",{staticClass:"title_box"},[a("div",{staticClass:"tabtitle fColor1 ft16curPer"},[a("span",{class:[{active:1==t.selectedStatus}],on:{click:function(e){t.selectTypes(1)}}},[t._v(t._s(t.$t("lever.std")))]),t._v(" "),a("span",{class:[{active:0==t.selectedStatus}],on:{click:function(e){t.selectTypes(0)}}},[t._v(t._s(t.$t("lever.xtd")))]),t._v(" "),a("span",{staticStyle:{float:"right"},on:{click:function(e){t.$router.push({path:"/transferLever"})}}},[t._v(t._s(t.$t("asset.transfer")))])])]),t._v(" "),t.show?a("div",{staticClass:"content clear"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1 first"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("lg.login")))]),t._v("\n "+t._s(t.$t("lever.or"))+"\n "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("lg.register")))]),t._v("\n "+t._s(t.$t("lever.gotrade"))+"\n ")]):a("div",{staticClass:"clear available padds"},[a("span",{staticClass:"fl fColor1"},[t._v(t._s(t.$t("lever.canuse"))+t._s(t._f("tofixedFour")(t.user_legal))+" "+t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"w50 fl first"},[a("div",{staticClass:"ft14"},[a("div",{staticClass:"mt40 input-item clear"},[0==t.selectedStatus?a("div",{staticClass:"mb10"},[a("label",[t._v(t._s(t.$t("cuy.price"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPrice,expression:"inputPrice"}],staticClass:"bg-part bd input_color",attrs:{type:"number",placeholder:t.$t("lever.pprice")},domProps:{value:t.inputPrice},on:{input:[function(e){e.target.composing||(t.inputPrice=e.target.value)},function(e){t.changePrice("buy")}]}})]):t._e(),t._v(" "),a("label",[t._v(t._s(t.$t("lever.times"))+":")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.buyInfo.buy_selected,expression:"buyInfo.buy_selected"}],staticClass:"buy_multiple bg-part bd input_color",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.buyInfo,"buy_selected",e.target.multiple?a:a[0])},function(e){t.selectMuit("buy")}]}},[a("option",{attrs:{disabled:"",value:""}},[t._v(t._s(t.$t("lever.ptimes")))]),t._v(" "),t._l(t.multiple,function(e,s){return a("option",{key:s,domProps:{value:e.value}},[t._v(t._s(e.value)+t._s(t.$t("lever.times")))])})],2)]),t._v(" "),t.shareNum?a("div",{staticClass:"shareNum"},[t._v("1"+t._s(t.$t("lever.hand"))+t._s(t.$t("lever.equal"))+t._s(t.shareNum)+t._s(t.currency_name))]):t._e(),t._v(" "),a("div",{staticClass:"mt15 input-item clear"},[a("label",[t._v(t._s(t.$t("lever.hands"))+":")]),t._v(" "),a("div",{staticClass:"flex share-total"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.buySahre,expression:"buySahre"}],staticClass:"share-input bg-part bd input_color",attrs:{type:"number",placeholder:t.$t("lever.phand")},domProps:{value:t.buySahre},on:{input:[function(e){e.target.composing||(t.buySahre=e.target.value)},function(e){t.changeValue("buy")}]}}),t._v(" "),t._l(t.shareList,function(e){return a("b",{key:e.value,class:["share whites bd",{active:t.type==e.value}],on:{click:function(a){t.select(e.value,"buy")}}},[t._v(t._s(e.value)+t._s(t.$t("lever.hand")))])})],2)]),t._v(" "),a("div",{staticClass:"lever-total fColor1"},[a("p",{staticClass:"clearfix mt15"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.contractVal")))]),t._v(" "),a("span",{staticClass:"market-value fr"},[t._v("≈ "+t._s(t.totalPriceBuy||"0.0000")+" "+t._s(t.legal_name))])]),t._v(" "),a("p",{staticClass:"clearfix mt10"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.bail")))]),t._v(" "),a("span",{staticClass:"bond fr"},[t._v("≈ "+t._s(t.bonsBuy||"0.0000")+" "+t._s(t.legal_name))])]),t._v(" "),a("p",{staticClass:"clearfix mt10"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.charge")))]),t._v(" "),a("span",{staticClass:"transaction-fee fr"},[t._v("≈ "+t._s(t.trandeFreeBuy||"0.0000")+" "+t._s(t.legal_name))])])]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc greenBack white ft16",on:{click:t.buyCoin}},[t._v(t._s(t.$t("lever.domore"))+" "+t._s(t.currency_name))])])]),t._v(" "),a("div",{staticClass:"w50 fl second"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v(t._s(t.$t("lg.login")))]),t._v("\n "+t._s(t.$t("lever.or"))+"\n "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v(t._s(t.$t("lg.register")))]),t._v("\n "+t._s(t.$t("lever.gotrade"))+"\n ")]):t._e(),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[0==t.selectedStatus?a("div",{staticClass:"mb10"},[a("label",[t._v(t._s(t.$t("cuy.price"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.sellInputValue,expression:"sellInputValue"}],staticClass:"bg-part bd input_color",attrs:{type:"number",placeholder:t.$t("lever.pprice")},domProps:{value:t.sellInputValue},on:{input:[function(e){e.target.composing||(t.sellInputValue=e.target.value)},function(e){t.changePrice("sell")}]}})]):t._e(),t._v(" "),a("label",[t._v(t._s(t.$t("lever.times"))+":")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.sellInfo.sell_selected,expression:"sellInfo.sell_selected"}],staticClass:"sell_multiple bg-part bd input_color",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.sellInfo,"sell_selected",e.target.multiple?a:a[0])},function(e){t.selectMuit("sell")}]}},[a("option",{attrs:{disabled:"",value:""}},[t._v(t._s(t.$t("lever.ptimes")))]),t._v(" "),t._l(t.multiple,function(e,s){return a("option",{key:s,domProps:{value:e.value}},[t._v(t._s(e.value)+t._s(t.$t("lever.times")))])})],2)]),t._v(" "),t.shareNum?a("div",{staticClass:"shareNum"},[t._v("1"+t._s(t.$t("lever.hand"))+t._s(t.$t("lever.equal"))+t._s(t.shareNum)+t._s(t.currency_name))]):t._e(),t._v(" "),a("div",{staticClass:"mt15 input-item clear"},[a("label",[t._v(t._s(t.$t("lever.hands"))+":")]),t._v(" "),a("div",{staticClass:"flex share-total"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.sellShare,expression:"sellShare"}],staticClass:"share-input bg-part bd input_color",attrs:{type:"number",placeholder:t.$t("lever.phandsell")},domProps:{value:t.sellShare},on:{input:[function(e){e.target.composing||(t.sellShare=e.target.value)},function(e){t.changeValue("sell")}]}}),t._v(" "),t._l(t.shareList,function(e){return a("b",{key:e.value,class:["share whites bd",{actives:t.types==e.value}],on:{click:function(a){t.select(e.value,"sell")}}},[t._v(t._s(e.value)+t._s(t.$t("lever.hand")))])})],2)]),t._v(" "),a("div",{staticClass:"lever-total fColor1"},[a("p",{staticClass:"clearfix mt15"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.contractVal")))]),t._v(" "),a("span",{staticClass:"market-value fr"},[t._v("≈ "+t._s(t.totalPrice||"0.0000")+" "+t._s(t.legal_name))])]),t._v(" "),a("p",{staticClass:"clearfix mt10"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.bail")))]),t._v(" "),a("span",{staticClass:"bond fr"},[t._v("≈ "+t._s(t.bons||"0.0000")+" "+t._s(t.legal_name))])]),t._v(" "),a("p",{staticClass:"clearfix mt10"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("lever.charge")))]),t._v(" "),a("span",{staticClass:"transaction-fee fr"},[t._v("≈ "+t._s(t.trandeFree||"0.0000")+" "+t._s(t.legal_name))])])]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc redBack white ft16",on:{click:t.selClick}},[t._v(t._s(t.$t("lever.doshort"))+t._s(t.currency_name))])])])]):t._e(),t._v(" "),t.showNone?a("div",{staticClass:"content clear"},[a("div",{staticClass:"w50 fl first"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v("登录")]),t._v("\n 或\n "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v("注册")]),t._v("\n 开始交易\n ")]):a("div",{staticClass:"clear available"},[a("span",{staticClass:"fl fColor1"},[t._v("可用 "+t._s(t.user_currency)+" "+t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v("买入价")]),t._v(" "),a("input",{attrs:{type:"number",value:"以市场最低价买入",disabled:""},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v("买入量")]),t._v(" "),a("input",{attrs:{type:"number"},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc greenBack white ft16"},[t._v("买入(做多)"+t._s(t.currency_name))])])]),t._v(" "),a("div",{staticClass:"w50 fl second"},[a("div",{staticClass:"ft14"},[t.address.length<=0?a("div",{staticClass:"available bdb clear fColor1"},[a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("login")}}},[t._v("登录")]),t._v("\n 或\n "),a("span",{staticClass:"baseColor curPer",on:{click:function(e){t.goNext("register")}}},[t._v("注册")]),t._v("\n 开始交易\n ")]):a("div",{staticClass:"clear available bdb"},[a("span",{staticClass:"fl fColor1"},[t._v("可用 "+t._s(t.user_legal)+" "+t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v("卖出价")]),t._v(" "),a("input",{attrs:{type:"number",value:"以市场最优价格卖出",disabled:""},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()}}}),t._v(" "),a("span",[t._v(t._s(t.currency_name))])]),t._v(" "),a("div",{staticClass:"mt40 input-item clear"},[a("label",[t._v("卖出量")]),t._v(" "),a("input",{attrs:{type:"number"},on:{keydown:function(t){if(!("button"in t)&&69!==t.keyCode)return null;t.preventDefault()},keyup:function(e){t.numFilter(e)}}}),t._v(" "),a("span",[t._v(t._s(t.legal_name))])]),t._v(" "),a("div",{staticClass:"sell_btn curPer mt40 tc redBack white ft16"},[t._v("卖出(做空)"+t._s(t.currency_name))])])])]):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.comfirmShow,expression:"comfirmShow"}],staticClass:"comfirm-modal flex"},[a("div",{staticClass:"comfirm-modal-content"},[a("div",{staticClass:"loss-modal-header"},[a("h3",[t._v(t._s(t.$t("lever.sureOd")))]),t._v(" "),a("p",{on:{click:function(e){t.closeMosal()}}},[t._v("X")])]),t._v(" "),a("ul",[a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.currency_name)+"/"+t._s(t.legal_name))])]),t._v(" "),a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("lever.type"))+":")]),t._v(" "),a("p",[t._v(t._s("1"==t.buyType?t.$t("lever.dmore"):t.$t("lever.dshort")))])]),t._v(" "),a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("lever.hands"))+":")]),t._v(" "),a("p",[t._v(t._s("1"==t.buyType?t.buySahre:t.sellShare))])]),t._v(" "),a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("lever.timed"))+":")]),t._v(" "),a("p",[t._v(t._s("1"==t.buyType?t.buyInfo.buy_selected:t.sellInfo.sell_selected))])]),t._v(" "),a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("lever.bail"))+":")]),t._v(" "),a("p",[t._v(t._s("1"==t.buyType?t.bonsBuy:t.bons)+t._s(t.legal_name))])]),t._v(" "),a("li",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("lever.rate"))+":")]),t._v(" "),a("p",[t._v(t._s("1"==t.buyType?t.trandeFreeBuy:t.trandeFree)+t._s(t.legal_name))])])]),t._v(" "),a("div",{staticClass:"modal-btn"},[a("button",{attrs:{type:"button"},on:{click:function(e){t.closeMosal()}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),a("button",{attrs:{type:"button"},on:{click:function(e){t.comfirm()}}},[t._v(t._s(t.$t("td.confirm")))])])])])])},staticRenderFns:[]};var Ee=a("VU/8")(Se,Ie,!1,function(t){a("RXoG")},"data-v-3aa34ddc",null).exports,Pe={name:"entrust",data:function(){return{isshow:!1,address:"",isChoosed:0,isUrl:0,page:1,url:"transaction_in",type:"in",more:this.$t("td.more"),loading:!1,urlList:[{title:this.$t("lever.nowentrust")}],wayList:[{title:this.$t("td.buyin"),url:"transaction_in"},{title:this.$t("td.sellout"),url:"transaction_out"}],inList:[]}},created:function(){this.token=localStorage.getItem("token")||""},methods:{wayChoose:function(t,e){this.inList="",this.page=1,this.url=e,this.type="transaction_in"==e?"in":"transaction_out"==e?"out":"all",this.getData(),this.more=this.$t("td.more"),this.isChoosed=t},getMore:function(){this.page=++this.page,this.getData()},revoke:function(t,e){var a=this,s=(e=e,t=t,a.type);layer.open({skin:"confirmCancel",content:a.$t("confirmCancel"),btn:[a.$t("confirm"),a.$t("canceil")],yes:function(i){var n=layer.load();a.$http({url:"/api/transaction_del",method:"post",data:{id:e,type:s},headers:{Authorization:a.token}}).then(function(e){layer.close(n),"ok"==e.data.type?(a.inList.splice(t,1),layer.msg(e.data.message)):layer.msg(e.message)}).catch(function(t){})}})},getData:function(){var t=this,e=t.url,a=t.page;t.loading=!0,this.$http({url:"/api/"+e,method:"post",data:{page:a},headers:{Authorization:t.token}}).then(function(e){if(t.loading=!1,"ok"==e.data.type){var a=e.data.message.list;if(1==t.page)t.inList=a;else{if(a.length<=0)return void(t.more=t.$t("cuy.nomore")+"...");t.inList=t.inList.concat(a)}}}).catch(function(t){})}},mounted:function(){var t=this;eventBus.$on("buyTrade",function(e){e&&t.getData()}),t.getData()}},Re={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"entrust"},[s("div",{staticClass:"title fColor1 topshadow"},[s("div",{staticClass:"tab_title"},[s("span",[t._v(t._s(t.$t("lever.nowentrust")))])]),t._v(" "),s("div",{staticClass:"tab_title fr ft12"},t._l(t.wayList,function(e,a){return s("span",{class:{active:a==t.isChoosed},on:{click:function(s){t.wayChoose(a,e.url)}}},[t._v(t._s(e.title))])}))]),t._v(" "),s("div",{staticClass:"content"},[s("ul",{staticClass:"list-title fColor2 ft12 clear"},[s("li",{staticClass:"fl w20"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("li",{staticClass:"fl w10"},[t._v(t._s(t.$t("market.symbol")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("cuy.direction")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.dealed")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.notdeal")))]),t._v(" "),s("li",{staticClass:"fl w10"},[t._v(t._s(t.$t("lever.entotal")))]),t._v(" "),s("li",{staticClass:"fl w8 tr"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),t.inList.length>0?s("div",{staticClass:"containers scroll"},[s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.inList,function(e,a){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.create_time))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.currency_name)+"/"+t._s(e.legal_name))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s("in"==t.type?t.$t("td.buyin"):t.$t("td.sellout")))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(e.total_number))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(e.complete_number))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.total_money))]),t._v(" "),s("span",{staticClass:"fl w8 tr curPer ceilColor",on:{click:function(s){t.revoke(a,e.id)}}},[t._v(t._s(t.$t("cuy.revoke")))])])})),t._v(" "),!t.loading&&t.inList.length>8?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer pdb20",on:{click:t.getMore}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc pdb20"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v(t._s(t.$t("lever.loading"))+"...")])]):t._e()]):t._e(),t._v(" "),t.inList.length<=0&&!t.loading?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])]):t._e()])])},staticRenderFns:[]};var Be=a("VU/8")(Pe,Re,!1,function(t){a("5UZ6")},"data-v-b86629ce",null).exports,Fe={name:"hisentrust",data:function(){return{address:"",isChoosed:0,isUrl:0,page:1,url:"transaction_in",type:"in",more:"加载更多",loading:!1,wayList:[{title:"买入",url:"transaction_in"},{title:"卖出",url:"transaction_out"},{title:"全部",url:"transaction_all"}],comList:[]}},created:function(){this.token=localStorage.getItem("token")||""},wacth:function(){eventBus.$on("buyTrade",function(t){t&&that.getData()})},methods:{wayChoose:function(t,e){this.comList="",this.page=1,this.url=e,this.type="transaction_in"==e?"in":"out",this.more="加载更多",this.isChoosed=t,this.getData()},getMore:function(){this.page=++this.page,this.getData()},getData:function(){var t=this,e=t.page;t.loading=!0,this.$http({url:"/api/transaction_complete",method:"post",data:{page:e},headers:{Authorization:t.token}}).then(function(e){if(t.loading=!1,"ok"==e.data.type){var a=e.data.message.list;if(1==t.page)t.comList=a;else{if(a.length<=0)return void(t.more="没有更多数据了...");t.comList=t.comList.concat(a)}}}).catch(function(t){})}},mounted:function(){var t=this;eventBus.$on("buyTrade",function(e){e&&t.getData()}),t.getData()}},Ne={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"entrust"},[t._m(0),t._v(" "),s("div",{staticClass:"content"},[t._m(1),t._v(" "),t.comList.length>0?s("div",{staticClass:"containers scroll"},[s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.comList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.time))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.currency_name)+"/"+t._s(e.legal_name))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(t._f("numFilter")(e.price*e.number)))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v("已成交")]),t._v(" "),s("span",{staticClass:"fl w10"},[t._v(t._s("in"==e.type?e.in_fee:e.out_fee))]),t._v(" "),s("span",{staticClass:"fl w8 tr",class:"out"==e.type?"redColor":""},[t._v(t._s("in"==e.type?"买入":"卖出"))])])})),t._v(" "),!t.loading&&t.comList.length>8?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer pdb20",on:{click:t.getMore}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc pdb20"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v("加载中...")])]):t._e()]):t._e(),t._v(" "),t.comList.length<=0&&!t.loading?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无数据")])]):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title fColor1 topshadow"},[e("div",{staticClass:"tab_title"},[e("span",[this._v("历史委托")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w20"},[t._v("时间")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("交易对")]),t._v(" "),a("li",{staticClass:"fl w8"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("价格")]),t._v(" "),a("li",{staticClass:"fl w8"},[t._v("委托总额")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("成交均价")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("状态")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("手续费")]),t._v(" "),a("li",{staticClass:"fl w8 tr"},[t._v("方向")])])}]};var Te=a("VU/8")(Fe,Ne,!1,function(t){a("Kvi4")},"data-v-309020fa",null).exports,De={name:"detail",data:function(){return{address:"",isChoosed:2,new:!1,wayList:["买入","卖出","全部"],deList:[]}},created:function(){this.address=localStorage.getItem("address")||""},methods:{wayChoosed:function(t){this.isChoosed=t},getData:function(){var t=this;this.$http({url:"/api/transaction/deal",method:"post",data:{address:this.address}}).then(function(e){e=e.data,t.deList=e.message.complete,t.new=!0}).catch(function(t){})},newData:function(){this.new&&layer.msg("更新成功")}},mounted:function(){}},Le={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"detail"},[s("div",{staticClass:"title fColor1"},[s("div",{staticClass:"inblock"},[s("span",[t._v("成交明细")]),t._v(" "),s("span",{staticClass:"fColor2"},[t._v("(最近一周)")]),t._v(" "),s("span",{staticClass:"ft12 curPer ml10 baseColor",on:{click:t.newData}},[t._v("刷新")])]),t._v(" "),s("div",{staticClass:"tab_title fr ft12 clear hide"},t._l(t.wayList,function(e,a){return s("span",{class:{active:a==t.isChoosed},on:{click:function(e){t.wayChoosed(a)}}},[t._v(t._s(e))])}))]),t._v(" "),s("div",{staticClass:"content"},[t._m(0),t._v(" "),t.deList.length>0?s("div",{staticClass:"container scroll"},[s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.deList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w14"},[t._v(t._s(e.create_time))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v("自助委托")]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v("是")]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v("imtoken")]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w14"},[t._v(t._s(e.price*e.number))]),t._v(" "),s("span",{staticClass:"fl w10 tr"},[t._v("0.00")])])}))]):t._e(),t._v(" "),t.deList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无数据")])]):t._e()])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w14"},[t._v("成交时间")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("委托方式")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("已成交")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("成交价")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("交易所")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("成交数量")]),t._v(" "),a("li",{staticClass:"fl w14"},[t._v("成交额")]),t._v(" "),a("li",{staticClass:"fl w10 tr"},[t._v("手续费")])])}]};var Me=a("VU/8")(De,Le,!1,function(t){a("nSYR")},"data-v-2795cbc0",null).exports,Ue={name:"detail",data:function(){return{address:"",isChoosed:2,new:!1,wayList:[this.$t("td.buyin"),this.$t("td.sellout"),this.$t("td.all")],deList:[],legal_id:"",currency_id:""}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.address=localStorage.getItem("address")||"",this.legal_id=localStorage.getItem("legal_id"),this.currency_id=localStorage.getItem("currency_id");var t=this;t.complete(this.legal_id,this.currency_id),eventBus.$on("to_leverExchange",function(e){e&&t.complete(localStorage.getItem("legal_id"),localStorage.getItem("currency_id"))})},methods:{wayChoosed:function(t){this.isChoosed=t},complete:function(t,e){var a=this;this.$http({url:"/api/lever/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type&&(a.deList=t.data.message.my_transaction)}).catch(function(t){})},all:function(){this.$router.push({name:"allTransaction"})},links:function(){this.$router.push({name:"leverTransactions"})},recordList:function(){this.$router.push({name:"leverList"})},closePosition:function(t,e){var a=this;layer.confirm(a.$t("lever.sureping"),{skin:"confirmCancel"},function(){var s=layer.load();a.$http({url:"/api/lever/close",method:"post",data:{id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.close(s),"ok"==e.data.type?(layer.msg(e.data.message),a.deList.splice(t,1)):layer.msg(e.data.message)}).catch(function(t){layer.close(s)})})},cannelOrder:function(t,e){var a=this;layer.confirm(a.$t("lever.revokeOrder"),{skin:"confirmCancel"},function(){var s=layer.load();a.$http({url:"/api/lever/cancel",method:"post",data:{id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.close(s),"ok"==e.data.type?(layer.msg(e.data.message),a.deList.splice(t,1)):layer.msg(e.data.message)}).catch(function(t){layer.close(s)})})}},mounted:function(){eventBus.$on("buyTrade",function(t){})}},Qe={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"detail"},[s("div",{staticClass:"title fColor1 topshadow"},[s("div",{staticClass:"inblock"},[s("span",[t._v(t._s(t.$t("lever.nowentrust")))])]),t._v(" "),s("div",{staticClass:"inblock fr"},[s("span",{staticClass:"all",on:{click:t.links}},[t._v(t._s(t.$t("lever.lvchi")))]),t._v(" "),s("span",{staticClass:"all",on:{click:t.recordList}},[t._v(t._s(t.$t("lever.tdrecord")))])])]),t._v(" "),s("div",{staticClass:"content"},[s("ul",{staticClass:"list-title fColor2 ft12 bdb clear"},[s("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("lever.type")))]),t._v(" "),s("li",{staticClass:"fl w12"},[t._v(t._s(t.$t("cuy.price")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.tdnum")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.loss")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.styPrice")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("lever.stsPrice")))]),t._v(" "),s("li",{staticClass:"fl w8"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),t.deList.length>0?s("div",{staticClass:"containers scroll"},t._l(t.deList,function(e,a){return s("ul",{key:a,staticClass:"list-item fColor1 ft12"},[s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w12"},[t._v(t._s(e.time))]),t._v(" "),s("span",{staticClass:"f1 w12"},[t._v(t._s(1==e.type?t.$t("td.buyin"):t.$t("td.sellout"))+" ")]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(t._f("tofixedFour")(e.price)))]),t._v(" "),s("span",{staticClass:"fl w8"},[t._v(t._s(t._f("tofixed")(e.number)))]),t._v(" "),s("span",{class:["red","width1",{green:e.profits>0}]},[t._v(t._s(t._f("tofixedFour")(e.profits||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.target_profit_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.stop_loss_price||"0.00")))]),t._v(" "),0==e.status?s("button",{attrs:{type:"button"},on:{click:function(s){t.cannelOrder(a,e.id)}}},[t._v(t._s(t.$t("lever.revoke")))]):t._e(),t._v(" "),1==e.status?s("button",{attrs:{type:"button"},on:{click:function(s){t.closePosition(a,e.id)}}},[t._v(t._s(t.$t("lever.ping")))]):t._e()])])})):t._e(),t._v(" "),t.deList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v(t._s(t.$t("td.nodata")))])]):t._e()])])},staticRenderFns:[]};var ze=a("VU/8")(Ue,Qe,!1,function(t){a("tgkr")},"data-v-3135cb8c",null).exports,We={name:"market",data:function(){return{ids:0,isShow:0,tabList:[],marketList:[],newData:["BBANK","$0.076128","-1.11%"],legal_index:this.$route.params.legal_index,currency_index:this.$route.params.currency_index,tradeDatas:"",index2:0,index1:0,dataList:[],selectedId:"",shareNum:""}},created:function(){this.socket(localStorage.getItem("token"));var t=this;this.$http({url:"/api/currency/quotation_new",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){t.tabList=e.data.message;var a=e.data.message,s=0,i=0;localStorage.getItem("index1")?(s=localStorage.getItem("index1"),t.index1=localStorage.getItem("index1")):s=t.index1,localStorage.getItem("index2")?(i=localStorage.getItem("index2"),t.index2=localStorage.getItem("index2")):i=t.index2,t.marketList=e.data.message[s].quotation,t.selectedId=e.data.message[s].quotation[t.index2].legal_id,t.dataList=e.data.message,t.shareNum=e.data.message[s].quotation[t.index2].lever_share_num,window.localStorage.setItem("shareNum",t.shareNum),localStorage.getItem("legal_id")||localStorage.getItem("currency_id")||localStorage.getItem("legal_name")||localStorage.getItem("currency_name")?(t.currency_name=window.localStorage.getItem("currency_name"),t.currency_id=window.localStorage.getItem("currency_id")):(t.currency_name=a[s].quotation[i].currency_name,t.currency_id=a[s].quotation[i].currency_id,window.localStorage.setItem("currency_name",a[s].quotation[i].currency_name),window.localStorage.setItem("legal_id",a[s].quotation[i].legal_id),window.localStorage.setItem("currency_id",a[s].quotation[i].currency_id),window.localStorage.setItem("lever_currency_name",a[s].quotation[i].currency_name),window.localStorage.setItem("lever_legal_id",a[s].quotation[i].legal_id),window.localStorage.setItem("lever_currency_id",a[s].quotation[i].currency_id))}}).catch(function(t){}),window.localStorage.getItem("index2")&&window.localStorage.getItem("index1")&&(this.index2=window.localStorage.getItem("index2"),this.index1=window.localStorage.getItem("index1"))},mounted:function(){eventBus.$on("toNew",function(t){if(t){var e=t.newprice,a=t.istoken,s=Number(t.newup).toFixed(2);s>=0?(s="+"+Number(s).toFixed(2)+"%",$("span[data-name='"+a+"']").next().css("color","#12b886")):(s+="%",$("span[data-name='"+a+"']").next().css("color","#cc4951")),$("span[data-name='"+a+"']").html("$"+e).next().html(s)}})},methods:{changeType:function(t,e,a){this.index1=t,this.index2=null,$(".currency_p p").removeClass("active_p"),this.isShow=t,this.ids="a",this.marketList=this.dataList[t].quotation},getSymbols:function(t){var e=this;if(this.address.length<=0)return!1;this.$http({url:"/api/wallet/list?user_id="+this.address||"",type:"GET"}).then(function(a){"ok"==a.data.type&&(e.accountInfo=a.data.message,e.dataList=a.data.message.list,t&&t())}).catch(function(t){return t})},quota_shift:function(t,e,a,s,i,n,o){window.localStorage.setItem("downUp",n),window.localStorage.setItem("legal_id_cur",i),window.localStorage.setItem("index1",this.index1),window.localStorage.setItem("index2",t),window.localStorage.setItem("shareNum",o),this.ids=t;window.localStorage.setItem("legal_id",e),window.localStorage.setItem("currency_id",i),window.localStorage.setItem("legal_name",a),window.localStorage.setItem("currency_name",s);var r=s+"/"+a;window.localStorage.setItem("symbol",r),location.reload()},socket:function(t){var e=this;e.$socket.emit("login",localStorage.getItem("user_id")),e.$socket.on("daymarket",function(t){if("daymarket"==t.type&&e.selectedId&&e.selectedId==t.legal_id){var a=e.marketList;for(var s in a)a[s].currency_id==t.currency_id&&(e.marketList[s].volume=t.volume,e.marketList[s].now_price=t.now_price,e.marketList[s].change=t.change)}})}}},Ye={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"market"},[a("div",{staticClass:"m_filter"},[a("div",{staticClass:"tabtitle fColor1 ft14 curPer flex"},t._l(t.tabList,function(e,s){return a("span",{key:s,class:s==t.index1?"active":"",on:{click:function(a){t.changeType(s,e.name,e.id)}}},[t._v(t._s(e.name))])}))]),t._v(" "),a("div",{staticClass:"coin-title clear"},[a("div",[a("span",[t._v(t._s(t.$t("td.currency")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("market.newprice")))])]),t._v(" "),a("div",[a("span",[t._v(t._s(t.$t("market.change")))])])]),t._v(" "),a("div",{staticClass:"line bdb"}),t._v(" "),a("ul",{staticClass:"coin-wrap scroll fColor1"},t._l(t.marketList,function(e,s){return 1==e.is_display&&1==e.open_lever?a("li",{staticClass:"currency_p",class:s==t.index2?"active_p":"",on:{click:function(a){t.quota_shift(s,e.legal_id,e.legal_name,e.currency_name,e.currency_id,e.change,e.lever_share_num)}}},[a("p",[a("span",[t._v(t._s(e.currency_name))]),t._v(" "),a("span",[t._v(t._s(e.now_price))]),t._v(" "),e.change>=0?a("span",{staticClass:"green"},[t._v("+"+t._s((e.change-0).toFixed(2))+"%")]):a("span",{staticClass:"red"},[t._v(t._s((e.change-0).toFixed(2))+"%")])])]):t._e()}))])},staticRenderFns:[]};var Ge={components:{market:a("VU/8")(We,Ye,!1,function(t){a("5Zxg")},"data-v-2dafd6ed",null).exports},data:function(){return{leftName:"",rightName:"",legalId:"",curencyId:"",coin:{},lastPrice:"",downUp:"",showMarket:!1,usprice:""}},created:function(){this.leftName=window.localStorage.getItem("legal_name")||"",this.rightName=window.localStorage.getItem("currency_name")||"",this.currencyId=window.localStorage.getItem("currency_id"),this.legalId=window.localStorage.getItem("legal_id"),this.init(this.legalId,this.currencyId),this.downUp=window.localStorage.getItem("downUp")},mounted:function(){var t=this;eventBus.$on("toNew",function(e){var a=t.rightName+"/"+t.leftName;e.istoken==a&&(t.lastPrice=(e.newprice-0).toFixed(4),t.downUp=(e.newup-0).toFixed(2))}),t.$socket.on("transaction",function(e){"transaction"==e.type&&t.rightName+"/"+t.leftName==e.token&&e["24h"]&&(t.coin=JSON.parse(e["24h"]))})},methods:{init:function(t,e){var a=this;this.$http({url:"/api/transaction/deal",method:"post",data:{legal_id:t,currency_id:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type&&(a.lastPrice=t.data.message.last_price)})}}},je={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-partS fColor1",attrs:{id:"tv-top"}},[a("span",{on:{click:function(e){t.showMarket=!t.showMarket}}},[t._v(t._s(t.rightName)+"/"+t._s(t.leftName))]),t._v(" "),t.showMarket?a("div",{staticClass:"market-box bg-part bdb"},[a("market")],1):t._e()])},staticRenderFns:[]};var Ve={name:"tv",components:{TvTop:a("VU/8")(Ge,je,!1,function(t){a("U6/B")},null,null).exports},data:function(){return{widget:null,symbolInfo:null,feed:null,wsEx:null,ws:null,lists:[],newData:"",symbol:"",priceScale:1e4,histime:"",loctheme:""}},created:function(){this.symbol=window.localStorage.getItem("symbol")},sockets:{},computed:Tt()({listenState:function(){return this.symbol}},Object(Ut.b)(["theme"])),watch:{theme:{handler:function(){var t=this.theme;this.loctheme=t,this.createWidget()},immediate:!0},listenState:function(t,e){t!=e&&""!=e&&this.widget.setSymbol(t,localStorage.getItem("tim"),function(){})}},mounted:function(){localStorage.setItem("type2","1min"),this.createWidget()},destroyed:function(){this.removeWidget()},beforeDestroy:function(){},methods:{connect:function(t){var e=this;e.$socket.emit("login",localStorage.getItem("user_id")),e.$socket.on("kline",function(a){var s={},i=localStorage.getItem("type2");e.symbol==a.symbol&&a.period==i&&(s.open=Number(a.open),s.low=Number(a.low),s.high=Number(a.high),s.close=Number(a.close),s.volume=Number(a.volume),s.time=Number(a.time),t(s))})},createWidget:function(){var t=this;this.$nextTick(function(){var e="white"==this.loctheme?"bundles/new_white.css":"bundles/new.css",a=t.widget=new TradingView.widget({symbol:t.symbol,interval:1,debug:!0,fullscreen:!1,autosize:!0,container_id:"tv_chart_container",datafeed:t.createFeed(),library_path:"./static/tradeview/charting_library/",custom_css_url:e,locale:"zh",width:"100%",height:516,drawings_access:{type:"black",tools:[{name:"Regression Trend"}]},disabled_features:["left_toolbar","header_saveload","compare_symbol","display_market_status","go_to_date","header_chart_type","header_compare","header_interval_dialog_button","header_resolutions","header_screenshot","header_symbol_search","header_undo_redo","legend_context_menu","show_hide_button_in_legend","show_interval_dialog_on_key_press","snapshot_trading_drawings","symbol_info","timeframes_toolbar","use_localstorage_for_settings","volume_force_overlay","widget_logo"],enabled_features:["dont_show_boolean_study_arguments","hide_last_na_study_output","move_logo_to_main_pane","same_data_requery","side_toolbar_in_fullscreen_mode","disable_resolution_rebuild"],charts_storage_url:"http://saveload.tradingview.com",charts_storage_api_version:"1.1",toolbar_bg:"transparent",timezone:"Asia/Shanghai",studies_overrides:{"volume.precision":"1000"},overrides:t.overrides()});a.MAStudies=[],a.selectedIntervalButton=null,a.onChartReady(function(){a.chart().createStudy("Moving Average",!1,!0,[15,"close",0],null,{"Plot.color":"#e843da"}),a.chart().createStudy("MA Cross",!1,!1,[10,20]);[{value:"1min",period:"1",text:"Time",chartType:3,type:"1min"},{value:"1",period:"1m",text:"1min",chartType:1,type:"1min"},{value:"5",period:"5m",text:"5min",chartType:1,type:"5min"},{value:"15",period:"15m",text:"15min",chartType:1,type:"15min"},{value:"30",period:"30m",text:"30min",chartType:1,type:"30min"},{value:"60",period:"60分钟",text:"1hour",chartType:1,type:"60min"},{value:"1D",period:"1D",text:"1day",chartType:1,type:"1day"},{value:"1W",period:"1W",text:"1week",chartType:1,type:"1week"},{value:"1M",period:"1M",text:"1mon",chartType:1,type:"1mon"}].forEach(function(s,i){var n=a.createButton();n.attr("title",s.text).addClass("my2").text(s.text),"1min"==s.text&&("white"==t.loctheme?n.css({"background-color":"#e5ebf5",color:"#9ca9b5"}):n.css({"background-color":"#2c3b59",color:"#c7cce6"}),localStorage.setItem("tim","1"),localStorage.setItem("type2","1min")),n.on("click",function(t){$(this).parents(".left").children().find(".my2").removeAttr("style"),e(t,s.value,s.type),a.chart().setChartType(s.chartType)})});var e=function(e,s,i){t.setSymbol=function(t,e){gh.chart().setSymbol(t,e)},localStorage.setItem("tim",s),localStorage.setItem("type2",i),a.chart().setResolution(s,function(){}),$(e.target).addClass("mydate").closest("div.space-single").siblings("div.space-single").find("div.button").removeClass("mydate")}}),t.widget=a})},createFeed:function(){var t=this,e={DataPulseUpdater:function(t,e){this._datafeed=t,this._subscribers={},this._requestsPending=0;var a=this;void 0!==e&&e>0&&setInterval(function(){if(!(a._requestsPending>0))for(var t in a._subscribers){var e=a._subscribers[t],s=e.resolution,i=parseInt((new Date).valueOf()/1e3),n=i-a.periodLengthSeconds(s,10);a._requestsPending++,function(e){a._datafeed.getBars(e.symbolInfo,s,n,i,function(s){if(a._requestsPending--,a._subscribers.hasOwnProperty(t)&&0!==s.length){var i=s[s.length-1];if(isNaN(e.lastBarTime)||!(i.time<e.lastBarTime)){var n=e.listeners;if(!isNaN(e.lastBarTime)&&i.time>e.lastBarTime){if(s.length<2)throw new Error("Not enough bars in history for proper pulse update. Need at least 2.");for(var o=s[s.length-2],r=0;r<n.length;++r)n[r](o)}for(e.lastBarTime=i.time,r=0;r<n.length;++r)n[r](i)}}},function(){a._requestsPending--})}(e)}},e)}};return e.DataPulseUpdater.prototype.periodLengthSeconds=function(t,e){return 24*("D"===t?e:"M"===t?31*e:"W"===t?7*e:e*t/1440)*60*60},e.DataPulseUpdater.prototype.subscribeDataListener=function(t,e,a,s){this._datafeed._logMessage("Subscribing "+s),this._subscribers.hasOwnProperty(s)||(this._subscribers[s]={symbolInfo:t,resolution:e,lastBarTime:NaN,listeners:[]}),this._subscribers[s].listeners.push(a)},e.DataPulseUpdater.prototype.unsubscribeDataListener=function(t){this._datafeed._logMessage("Unsubscribing "+t),delete this._subscribers[t]},e.Container=function(t){this._configuration={supports_search:!1,supports_group_request:!1,supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"],supports_marks:!0,supports_timescale_marks:!0,exchanges:["gh"]},this._barsPulseUpdater=new e.DataPulseUpdater(this,t||1e4),this._enableLogging=!0,this._callbacks={},this._initializationFinished=!0,this._fireEvent("initialized"),this._fireEvent("configuration_ready")},e.Container.prototype._fireEvent=function(t,e){if(this._callbacks.hasOwnProperty(t)){for(var a=this._callbacks[t],s=0;s<a.length;++s)a[s](e);this._callbacks[t]=[]}},e.Container.prototype._logMessage=function(t){if(this._enableLogging)new Date},e.Container.prototype.on=function(t,e){return this._callbacks.hasOwnProperty(t)||(this._callbacks[t]=[]),this._callbacks[t].push(e),this},e.Container.prototype.onReady=function(t){var e=this;this._configuration?setTimeout(function(){t(e._configuration)},0):this.on("configuration_ready",function(){t(e._configuration)})},e.Container.prototype.resolveSymbol=function(e,a,s){this._logMessage("GOWNO :: resolve symbol "+e),n.a.resolve().then(function(){a({name:t.symbol,timezone:"Asia/Shanghai",pricescale:t.priceScale,minmov:1,minmov2:0,ticker:t.symbol,description:"",type:"bitcoin",volume_precision:8,has_intraday:!0,has_weekly_and_monthly:!0,has_no_volume:!1,session:"24x7",supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"]})})},e.Container.prototype.getBars=function(t,e,a,s,i,n){-1==e.indexOf("D")&&-1==e.indexOf("W")&&-1==e.indexOf("M")?e+="min":-1==e.indexOf("W")&&-1==e.indexOf("M")||(e=e),$.ajax({url:"/api/currency/new_timeshar?from="+a+"&to="+s+"&symbol="+t.name+"&period="+e,type:"get",success:function(t){1==t.code&&t.data&&t.data.length>0&&(t.data.forEach(function(t,e){t.open=Number(t.open),t.close=Number(t.close),t.high=Number(t.high),t.low=Number(t.low)}),i(t.data,{noData:!1}),i([],{noData:!0})),t.data&&-1!=t.code||i([],{noData:!0}),t.data&&0==t.data.length&&i([],{noData:!0})}})},e.Container.prototype.subscribeBars=function(e,a,s,i,n){t.connect(s)},e.Container.prototype.unsubscribeBars=function(t){this._barsPulseUpdater.unsubscribeDataListener(t)},new e.Container},updateData:function(t){t&&this.$emit("real-time",t)},updateWidget:function(t){this.symbolInfo={name:t,ticker:t,description:"",session:"24x7",supported_resolutions:["1","5","15","30","60","240","1D","3D","1W","1M"],has_intraday:!0,has_daily:!0,has_weekly_and_monthly:!0,timezone:"UTC"},this.removeWidget(),this.createWidget()},removeWidget:function(){this.widget&&(this.widget.remove(),this.widget=null)},overrides:function(){var t=void 0;return{volumePaneSize:"medium","paneProperties.topMargin":"20","scalesProperties.lineColor":(t="white"==this.loctheme?{up:"#589065",down:"#AE4E54",bg:"#ffffff",grid:"#f9f9fa",cross:"#f9f9fa",border:"#b1b7be",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}:{up:"#589065",down:"#AE4E54",bg:"#1a243b",grid:"#1E2740",cross:"#1E2740",border:"#4e5b85",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}).text,"scalesProperties.textColor":t.text,"paneProperties.background":t.bg,"paneProperties.vertGridProperties.color":t.grid,"paneProperties.horzGridProperties.color":t.grid,"paneProperties.crossHairProperties.color":t.cross,"paneProperties.legendProperties.showLegend":!0,"paneProperties.legendProperties.showStudyArguments":!0,"paneProperties.legendProperties.showStudyTitles":!0,"paneProperties.legendProperties.showStudyValues":!0,"paneProperties.legendProperties.showSeriesTitle":!0,"paneProperties.legendProperties.showSeriesOHLC":!0,"mainSeriesProperties.candleStyle.upColor":t.up,"mainSeriesProperties.candleStyle.downColor":t.down,"mainSeriesProperties.candleStyle.drawWick":!0,"mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.borderColor":t.border,"mainSeriesProperties.candleStyle.borderUpColor":t.up,"mainSeriesProperties.candleStyle.borderDownColor":t.down,"mainSeriesProperties.candleStyle.wickUpColor":t.up,"mainSeriesProperties.candleStyle.wickDownColor":t.down,"mainSeriesProperties.candleStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.hollowCandleStyle.upColor":t.up,"mainSeriesProperties.hollowCandleStyle.downColor":t.down,"mainSeriesProperties.hollowCandleStyle.drawWick":!0,"mainSeriesProperties.hollowCandleStyle.drawBorder":!0,"mainSeriesProperties.hollowCandleStyle.borderColor":t.border,"mainSeriesProperties.hollowCandleStyle.borderUpColor":t.up,"mainSeriesProperties.hollowCandleStyle.borderDownColor":t.down,"mainSeriesProperties.hollowCandleStyle.wickColor":t.line,"mainSeriesProperties.haStyle.upColor":t.up,"mainSeriesProperties.haStyle.downColor":t.down,"mainSeriesProperties.haStyle.drawWick":!0,"mainSeriesProperties.haStyle.drawBorder":!0,"mainSeriesProperties.haStyle.borderColor":t.border,"mainSeriesProperties.haStyle.borderUpColor":t.up,"mainSeriesProperties.haStyle.borderDownColor":t.down,"mainSeriesProperties.haStyle.wickColor":t.border,"mainSeriesProperties.haStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.upColor":t.up,"mainSeriesProperties.barStyle.downColor":t.down,"mainSeriesProperties.barStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.dontDrawOpen":!1,"mainSeriesProperties.lineStyle.color":t.border,"mainSeriesProperties.lineStyle.linewidth":1,"mainSeriesProperties.lineStyle.priceSource":"close","mainSeriesProperties.areaStyle.color1":t.areatop,"mainSeriesProperties.areaStyle.color2":t.areadown,"mainSeriesProperties.areaStyle.linecolor":t.border,"mainSeriesProperties.areaStyle.linewidth":1,"mainSeriesProperties.areaStyle.priceSource":"close"}},chose:function(){this.widget.setLanguage("en")}}},Oe={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"k-line-area bg-1d1d29"},[e("tv-top"),this._v(" "),e("div",{staticStyle:{width:"100%",height:"460px"},attrs:{id:"tv_chart_container"}})],1)},staticRenderFns:[]},Ze={name:"dealCenter",components:{indexHeader:V,load:1,notice:ye,deal:ct,tv:a("VU/8")(Ve,Oe,!1,null,null,null).exports,exchange:be,market:ke,trade:Ee,chart:At,entrust:Be,hisentrust:Te,detail:Me,currency:Pt,complete:Ft,leverTransaction:ze},data:function(){return{isRouterAlive:!0}},created:function(){this.address=localStorage.getItem("address")||""},methods:{},mounted:function(){}},Je={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home"},[e("div",{staticClass:"main"},[e("div",{staticClass:"main-top flex"},[e("div",{staticClass:"tv-box bg-part"},[e("tv")],1),this._v(" "),e("div",{staticClass:"exchange-box bg-part"},[e("exchange")],1)]),this._v(" "),e("div",{staticClass:"main-bottom flex"},[e("div",{staticClass:"tran-box bg-part"},[e("leverTransaction")],1),this._v(" "),e("div",{staticClass:"trade-box bg-part"},[e("trade")],1)])])])},staticRenderFns:[]};var He=a("VU/8")(Ze,Je,!1,function(t){a("MRRN")},"data-v-df841666",null).exports,Ke={name:"market",props:{symbol:{type:String,required:!0}},data:function(){return{widget:null,symbolInfo:null,feed:null,wsEx:null,ws:null,lists:[],newData:"",priceScale:1e4,histime:"",locales:localStorage.getItem("lang")||"zh"}},created:function(){},computed:Tt()({listenState:function(){return this.createWidget(),this.symbol}},Object(Ut.b)(["theme"])),watch:{theme:{handler:function(){var t=this.theme;this.loctheme=t,this.createWidget()},immediate:!0},listenState:function(t,e){t!=e&&""!=e&&this.widget.setSymbol(t,localStorage.getItem("tim"),function(){})}},mounted:function(){""!=this.symbol&&this.createWidget()},destroyed:function(){this.removeWidget()},methods:{connect:function(t){var e=this;e.$socket.emit("login",localStorage.getItem("user_id")),e.$socket.on("kline",function(a){var s={},i=localStorage.getItem("type");e.symbol==a.symbol&&i==a.period&&(s.open=Number(a.open),s.low=Number(a.low),s.high=Number(a.high),s.close=Number(a.close),s.volume=Number(a.volume),s.time=Number(a.time),localStorage.setItem("newPrice",a.close),t(s))})},createWidget:function(){var t=this;this.$nextTick(function(){var e="white"==this.loctheme?"bundles/new_white.css":"bundles/new.css",a=t.widget=new TradingView.widget({symbol:t.symbol,interval:1,debug:!0,fullscreen:!1,autosize:!0,container_id:"tv_chart_container",datafeed:t.createFeed(),library_path:"./static/tradeview/charting_library/",custom_css_url:e,locale:t.locales,width:"100%",height:516,drawings_access:{type:"black",tools:[{name:"Regression Trend"}]},disabled_features:["header_saveload","compare_symbol","display_market_status","go_to_date","header_chart_type","header_compare","header_interval_dialog_button","header_resolutions","header_screenshot","header_symbol_search","header_undo_redo","legend_context_menu","show_hide_button_in_legend","show_interval_dialog_on_key_press","snapshot_trading_drawings","symbol_info","timeframes_toolbar","use_localstorage_for_settings","volume_force_overlay","widget_logo"],enabled_features:["dont_show_boolean_study_arguments","hide_last_na_study_output","move_logo_to_main_pane","same_data_requery","side_toolbar_in_fullscreen_mode","disable_resolution_rebuild"],charts_storage_url:"http://saveload.tradingview.com",charts_storage_api_version:"1.1",toolbar_bg:"#1a243b",timezone:"Asia/Shanghai",studies_overrides:{"volume.precision":"1000"},overrides:t.overrides()});a.MAStudies=[],a.selectedIntervalButton=null,a.onChartReady(function(){a.chart().createStudy("Moving Average",!1,!1,[15,"close",0],null,{"Plot.color":"#a039a2"},{checkLimit:!0}),a.chart().createStudy("Moving Average",!1,!1,[10,"close",0],null,{"Plot.color":"green"},{checkLimit:!0}),a.chart().createStudy("Moving Average",!1,!1,[20,"close",0],null,{"Plot.color":"red"},{checkLimit:!0});[{value:"1min",period:"1",text:t.$t("kline.text1"),chartType:3,type:"1min"},{value:"1",period:"1m",text:t.$t("kline.text2"),chartType:1,type:"1min"},{value:"5",period:"5m",text:t.$t("kline.text3"),chartType:1,type:"5min"},{value:"15",period:"15m",text:t.$t("kline.text4"),chartType:1,type:"15min"},{value:"30",period:"30m",text:t.$t("kline.text5"),chartType:1,type:"30min"},{value:"60",period:"60分钟",text:t.$t("kline.text6"),chartType:1,type:"60min"},{value:"1D",period:"1D",text:t.$t("kline.text7"),chartType:1,type:"1day"},{value:"1W",period:"1W",text:t.$t("kline.text8"),chartType:1,type:"1week"},{value:"1M",period:"1M",text:t.$t("kline.text9"),chartType:1,type:"1mon"}].forEach(function(s,i){var n=a.createButton();n.attr("title",s.text).addClass("my2").text(s.text),s.text==t.$t("kline.text2")&&("white"==t.loctheme?n.css({"background-color":"#e5ebf5",color:"#9ca9b5"}):n.css({"background-color":"#2c3b59",color:"#c7cce6"}),localStorage.setItem("tim","1min"),localStorage.setItem("type","1min")),n.on("click",function(t){$(this).parents(".left").children().find(".my2").removeAttr("style"),e(t,s.value,s.type),a.chart().setChartType(s.chartType)})});var e=function(e,s,i){t.setSymbol=function(t,e){gh.chart().setSymbol(t,e)},localStorage.setItem("tim",s),localStorage.setItem("type",i),a.chart().setResolution(s,function(){}),$(e.target).addClass("mydate").closest("div.space-single").siblings("div.space-single").find("div.button").removeClass("mydate")}}),t.widget=a})},createFeed:function(){var t=this,e={DataPulseUpdater:function(t,e){this._datafeed=t,this._subscribers={},this._requestsPending=0;var a=this;void 0!==e&&e>0&&setInterval(function(){if(!(a._requestsPending>0))for(var t in a._subscribers){var e=a._subscribers[t],s=e.resolution,i=parseInt((new Date).valueOf()/1e3),n=i-a.periodLengthSeconds(s,10);a._requestsPending++,function(e){a._datafeed.getBars(e.symbolInfo,s,n,i,function(s){if(a._requestsPending--,a._subscribers.hasOwnProperty(t)&&0!==s.length){var i=s[s.length-1];if(isNaN(e.lastBarTime)||!(i.time<e.lastBarTime)){var n=e.listeners;if(!isNaN(e.lastBarTime)&&i.time>e.lastBarTime){if(s.length<2)throw new Error("Not enough bars in history for proper pulse update. Need at least 2.");for(var o=s[s.length-2],r=0;r<n.length;++r)n[r](o)}for(e.lastBarTime=i.time,r=0;r<n.length;++r)n[r](i)}}},function(){a._requestsPending--})}(e)}},e)}};return e.DataPulseUpdater.prototype.periodLengthSeconds=function(t,e){return 24*("D"===t?e:"M"===t?31*e:"W"===t?7*e:e*t/1440)*60*60},e.DataPulseUpdater.prototype.subscribeDataListener=function(t,e,a,s){this._datafeed._logMessage("Subscribing "+s),this._subscribers.hasOwnProperty(s)||(this._subscribers[s]={symbolInfo:t,resolution:e,lastBarTime:NaN,listeners:[]}),this._subscribers[s].listeners.push(a)},e.DataPulseUpdater.prototype.unsubscribeDataListener=function(t){this._datafeed._logMessage("Unsubscribing "+t),delete this._subscribers[t]},e.Container=function(t){this._configuration={supports_search:!1,supports_group_request:!1,supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"],supports_marks:!0,supports_timescale_marks:!0,exchanges:["gh"]},this._barsPulseUpdater=new e.DataPulseUpdater(this,t||1e4),this._enableLogging=!0,this._callbacks={},this._initializationFinished=!0,this._fireEvent("initialized"),this._fireEvent("configuration_ready")},e.Container.prototype._fireEvent=function(t,e){if(this._callbacks.hasOwnProperty(t)){for(var a=this._callbacks[t],s=0;s<a.length;++s)a[s](e);this._callbacks[t]=[]}},e.Container.prototype._logMessage=function(t){if(this._enableLogging)new Date},e.Container.prototype.on=function(t,e){return this._callbacks.hasOwnProperty(t)||(this._callbacks[t]=[]),this._callbacks[t].push(e),this},e.Container.prototype.onReady=function(t){var e=this;this._configuration?setTimeout(function(){t(e._configuration)},0):this.on("configuration_ready",function(){t(e._configuration)})},e.Container.prototype.resolveSymbol=function(e,a,s){this._logMessage("GOWNO :: resolve symbol "+e),n.a.resolve().then(function(){a({name:t.symbol,timezone:"Asia/Shanghai",pricescale:t.priceScale,minmov:1,minmov2:0,ticker:t.symbol,description:"",type:"bitcoin",volume_precision:8,has_intraday:!0,has_weekly_and_monthly:!0,has_no_volume:!1,session:"24x7",supported_resolutions:["1","3","5","15","30","60","120","240","360","720","1D","3D","1W","1M"]})})},e.Container.prototype.getBars=function(t,e,a,s,i,n){-1==e.indexOf("D")&&-1==e.indexOf("W")&&-1==e.indexOf("M")?e+="min":-1==e.indexOf("W")&&-1==e.indexOf("M")||(e=e),$.ajax({url:"/api/currency/new_timeshar?from="+a+"&to="+s+"&symbol="+t.name+"&period="+e,type:"get",success:function(t){1==t.code&&t.data&&t.data.length>0&&(t.data.forEach(function(t,e){t.open=Number(t.open),t.close=Number(t.close),t.high=Number(t.high),t.low=Number(t.low),localStorage.setItem("newPrice",t.close)}),i(t.data,{noData:!1}),i([],{noData:!0})),t.data&&-1!=t.code||i([],{noData:!0}),t.data&&0==t.data.length&&i([],{noData:!0})}})},e.Container.prototype.subscribeBars=function(e,a,s,i,n){t.connect(s)},e.Container.prototype.unsubscribeBars=function(t){this._barsPulseUpdater.unsubscribeDataListener(t)},new e.Container},updateData:function(t){t&&this.$emit("real-time",t)},updateWidget:function(t){this.symbolInfo={name:t,ticker:t,description:"",session:"24x7",supported_resolutions:["1","5","15","30","60","240","1D","3D","1W","1M"],has_intraday:!0,has_daily:!0,has_weekly_and_monthly:!0,timezone:"UTC"},this.removeWidget(),this.createWidget()},removeWidget:function(){this.widget&&(this.widget.remove(),this.widget=null)},overrides:function(){var t=void 0;return{volumePaneSize:"medium","paneProperties.topMargin":"20","scalesProperties.lineColor":(t="white"==this.loctheme?{up:"#589065",down:"#AE4E54",bg:"#ffffff",grid:"#f9f9fa",cross:"#f9f9fa",border:"#b1b7be",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}:{up:"#589065",down:"#AE4E54",bg:"#1a243b",grid:"#1E2740",cross:"#1E2740",border:"#4e5b85",text:"#61688A",areatop:"rgba(122, 152, 247, .1)",areadown:"rgba(122, 152, 247, .02)"}).text,"scalesProperties.textColor":t.text,"paneProperties.background":t.bg,"paneProperties.vertGridProperties.color":t.grid,"paneProperties.horzGridProperties.color":t.grid,"paneProperties.crossHairProperties.color":t.cross,"paneProperties.legendProperties.showLegend":!0,"paneProperties.legendProperties.showStudyArguments":!0,"paneProperties.legendProperties.showStudyTitles":!0,"paneProperties.legendProperties.showStudyValues":!0,"paneProperties.legendProperties.showSeriesTitle":!0,"paneProperties.legendProperties.showSeriesOHLC":!0,"mainSeriesProperties.candleStyle.upColor":t.up,"mainSeriesProperties.candleStyle.downColor":t.down,"mainSeriesProperties.candleStyle.drawWick":!0,"mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.borderColor":t.border,"mainSeriesProperties.candleStyle.borderUpColor":t.up,"mainSeriesProperties.candleStyle.borderDownColor":t.down,"mainSeriesProperties.candleStyle.wickUpColor":t.up,"mainSeriesProperties.candleStyle.wickDownColor":t.down,"mainSeriesProperties.candleStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.hollowCandleStyle.upColor":t.up,"mainSeriesProperties.hollowCandleStyle.downColor":t.down,"mainSeriesProperties.hollowCandleStyle.drawWick":!0,"mainSeriesProperties.hollowCandleStyle.drawBorder":!0,"mainSeriesProperties.hollowCandleStyle.borderColor":t.border,"mainSeriesProperties.hollowCandleStyle.borderUpColor":t.up,"mainSeriesProperties.hollowCandleStyle.borderDownColor":t.down,"mainSeriesProperties.hollowCandleStyle.wickColor":t.line,"mainSeriesProperties.haStyle.upColor":t.up,"mainSeriesProperties.haStyle.downColor":t.down,"mainSeriesProperties.haStyle.drawWick":!0,"mainSeriesProperties.haStyle.drawBorder":!0,"mainSeriesProperties.haStyle.borderColor":t.border,"mainSeriesProperties.haStyle.borderUpColor":t.up,"mainSeriesProperties.haStyle.borderDownColor":t.down,"mainSeriesProperties.haStyle.wickColor":t.border,"mainSeriesProperties.haStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.upColor":t.up,"mainSeriesProperties.barStyle.downColor":t.down,"mainSeriesProperties.barStyle.barColorsOnPrevClose":!1,"mainSeriesProperties.barStyle.dontDrawOpen":!1,"mainSeriesProperties.lineStyle.color":t.border,"mainSeriesProperties.lineStyle.linewidth":1,"mainSeriesProperties.lineStyle.priceSource":"close","mainSeriesProperties.areaStyle.color1":t.areatop,"mainSeriesProperties.areaStyle.color2":t.areadown,"mainSeriesProperties.areaStyle.linecolor":"#0094ff","mainSeriesProperties.areaStyle.linewidth":1,"mainSeriesProperties.areaStyle.priceSource":"close"}},chose:function(){this.widget.setLanguage("en")}}},Xe={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{width:"100%",height:"550px"},attrs:{id:"tv_chart_container"}})},staticRenderFns:[]};var qe=a("VU/8")(Ke,Xe,!1,function(t){a("51sM")},"data-v-a31b483e",null).exports,$e={name:"tv",components:{Kline:qe},props:{quotationList:{type:Array,required:!1},symbol:{type:String,required:!0},types:{type:String,required:!0}},data:function(){return{list:[],secondsType:"",skins:localStorage.getItem("skin")||"days"}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)},toFixedss:function(t){return(t=Number(t)).toFixed(0)},toFixed4:function(t){return(t=Number(t)).toFixed(4)}},watch:{theme:{handler:function(){var t=this.theme;this.loctheme=t},immediate:!0},quotationList:{immediate:!0,handler:function(t){this.list=t},deep:!0}},computed:Tt()({switchStatus:function(){return this.list}},Object(Ut.b)(["theme"])),created:function(){},mounted:function(){this.secondsType=this.types},destroyed:function(){},beforeDestroy:function(){},methods:{tabs:function(t,e){"seconds"==this.secondsType?this.$router.push({name:"secondsOrder",query:{legalId:t,currencyId:e}}):this.$router.push({name:"leverdealCenter",query:{legalId:t,currencyId:e}})}}},ta={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["black"==t.loctheme?"flex between tops balck":"flex between tops whites"]},[a("div",{staticClass:"widths"},[a("div",{staticClass:"flex top-header bg-part"},t._l(t.list,function(e){return a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.is_display&&1==e.open_microtrade,expression:"item.is_display == 1 && item.open_microtrade == 1"}],key:e.id,class:[{active:t.symbol==e.currency_name+"/"+e.legal_name}],on:{click:function(a){t.tabs(e.legal_id,e.currency_id)}}},[t._v("\n "+t._s(e.currency_name)+"\n \n ")])})),t._v(" "),t._l(t.list,function(e){return t.symbol==e.currency_name+"/"+e.legal_name?a("ul",{key:e.id,staticClass:"flex between top-center bg-part"},[a("li",[a("p",[t._v(t._s(t._f("toFixed4")(e.now_price||"0.00")))]),t._v(" "),a("p",[t._v(t._s(t.$t("market.newprice")))])]),t._v(" "),a("li",[a("p",{class:e.change<0?"redColor":"greenColor"},[t._v(t._s(e.change||"0.00")+"%")]),t._v(" "),a("p",[t._v(t._s(t.$t("market.change")))])]),t._v(" "),a("li",[a("p",[t._v("≈"+t._s(t._f("toFixeds")(e.now_price*e.rmb_relation||"0.00"))+"CNY")]),t._v(" "),a("p",[t._v(t._s(t.$t("asset.conversion")))])]),t._v(" "),a("li",[a("p",[t._v(t._s(t._f("toFixedss")(e.volume||"0.00")))]),t._v(" "),a("p",[t._v(t._s(t.$t("market.vol")))])])]):t._e()})],2)])},staticRenderFns:[]};var ea=a("VU/8")($e,ta,!1,function(t){a("KsgI")},"data-v-dc39fdde",null).exports,aa=a("bOdI"),sa=a.n(aa),ia=sa()({name:"trade",props:{leverTradeId:{type:Number,required:!0},currencyName:{type:String,required:!0}},data:function(){return{selectedStatus:1,multNum:"",shareNum:"",buyType:1,controlInput:"",obj:"",spread:localStorage.getItem("spread")||0,token:localStorage.getItem("token"),dialogVisible:!1,marketTotal:"",bonds:"",serviceCharge:"",value4:"",numList:[],timeList:[],currency_id:"",balance:"",inputValue:"",datas:{},profitRatio:"",seconds:"",tradeName:"",modalShow:!1,walletList:[],skins:localStorage.getItem("skin")||"days",bmbBalance:"",insurancType:[],userInsurancId:"",hasxiadan:!1,loctheme:""}},created:function(){},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)},tofixedNum:function(t){return(t=Number(t)).toFixed(0)},toFixed1:function(t){return(t=Number(t)).toFixed(1)}},mounted:function(){this.getDeal(),this.init()},watch:{switchtheme:{handler:function(t){this.obj=t},deep:!0},leverTradeId:{immediate:!0,handler:function(t){this.obj=t},deep:!0}},computed:{switchtheme:function(){return this.$store.state.theme},switchStatus:function(){return this.obj}},methods:{jumptransfer:function(){this.$router.push("/transfermicro")},init:function(){var t=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type&&(t.walletList=e.data.message.micro_wallet.balance)}).catch(function(t){})},getDeal:function(){var t=this;this.$http({url:"/api/microtrade/payable_currencies",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type&&(t.datas=e.data.message,e.data.message.length>0)){for(var a=0;a<e.data.message.length;a++)"HAP"==e.data.message[a].name&&(t.bmbBalance=e.data.message[a].user_wallet.micro_balance,t.insurancType=e.data.message[a].insurance_types,e.data.message[a].user_insurance&&(t.userInsurancId=e.data.message[a].user_insurance.insurance_type_id));t.currency_id=e.data.message[0].id,t.numList=e.data.message[0].micro_numbers,e.data.message[0].user_wallet&&(t.balance=e.data.message[0].user_wallet.micro_balance),t.serviceCharge=e.data.message[0].micro_trade_fee,t.inputValue=(t.numList[0].number-0).toFixed(0),t.tradeName=e.data.message[0].name}}),this.$http({url:"/api/microtrade/seconds",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type&&(t.timeList=e.data.message,t.profitRatio=e.data.message[0].profit_ratio,t.value4=e.data.message[0].seconds)})},selectBuy:function(){this.buyType=1==this.buyType?"2":"1",this.multNum="",this.shareNum="",this.marketTotal=0,this.bonds=0,this.serviceCharge=0},currencyTab:function(t){this.currency_id=t.id,this.numList=t.micro_numbers,t.user_wallet&&(this.balance=t.user_wallet.micro_balance),this.tradeName=t.name,this.serviceCharge=t.micro_trade_fee,this.inputValue=(this.numList[0].number-0).toFixed(0)},selectNum:function(t){this.inputValue=(t-0).toFixed(0)},selectTime:function(t,e){this.value4=t,this.profitRatio=e},transferSumbit:function(t){if(this.buyType=t,!this.inputValue)return layer.msg(this.$t("miscro.openNum")),!1;this.modalShow=!0},comfirm:function(){var t=this;if(t.hasxiadan)return!1;t.hasxiadan=!0;var e=layer.load();this.$http({url:"/api/microtrade/submit",method:"post",data:{match_id:t.obj,currency_id:t.currency_id,type:t.buyType,seconds:t.value4,number:t.inputValue},headers:{Authorization:t.token}}).then(function(a){layer.close(e),t.modalShow=!1,t.hasxiadan=!1,"ok"==a.data.type?(layer.msg(t.$t("miscro.success")),t.$http({url:"/api/microtrade/payable_currencies",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type&&e.data.message.length>0)for(var a=0;a<e.data.message.length;a++)e.data.message[a].id==t.currency_id&&(t.balance=e.data.message[a].user_wallet.micro_balance)}),localStorage.setItem("orderStatus",1),setTimeout(function(){localStorage.setItem("orderStatus","")},30)):layer.msg(a.data.message)})}}},"computed",{}),na={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["dark"==t.loctheme?"trade balck":"trade"]},[s("div",{staticClass:"trade-currency bg-part flex"},[s("div",{staticClass:"balance"},[s("div",{staticClass:"flex center"},[s("img",{attrs:{src:a("+emz"),alt:""}}),t._v(" "),s("p",[t._v(t._s(t.$t("asset.miscroAccount")))])]),t._v(" "),s("ul",t._l(t.walletList,function(e){return s("li",{directives:[{name:"show",rawName:"v-show",value:1==e.is_micro,expression:"item.is_micro == 1"}],key:e.id},[t._v(t._s(e.micro_balance)+" "+t._s(e.currency_name))])}))])]),t._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"mt5"},[s("div",{staticClass:"flex trade-bg bg-part"},[s("img",{attrs:{width:"25",height:"25",src:a("0K3A"),alt:""}}),t._v(" "),s("p",[t._v(t._s(t.$t("miscro.mode")))])]),t._v(" "),s("div",{staticClass:"curency-list flex"},t._l(t.datas,function(e){return s("span",{key:e.id,staticClass:"bg-part",class:[{active:t.currency_id==e.currency_id}],on:{click:function(a){t.currencyTab(e)}}},[t._v(t._s(e.name))])}))]),t._v(" "),s("div",{staticClass:"share mt10"},[s("div",{staticClass:"flex trade-bg"},[s("img",{attrs:{width:"25",height:"25",src:a("0K3A"),alt:""}}),t._v(" "),s("p",[t._v(t._s(t.$t("miscro.num")))])]),t._v(" "),s("div",{staticClass:"share-rights"},[s("div",{staticClass:"flex flex-wrap"},t._l(t.numList,function(e,a){return s("p",{key:a,staticClass:"bg-aprt",class:[{active:t.inputValue==(e.number-0).toFixed(0)}],on:{click:function(a){t.selectNum(e.number)}}},[t._v(t._s(t._f("tofixedNum")(e.number||"0")))])})),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],staticClass:"bg-part",attrs:{type:"text",placeholder:t.$t("miscro.openNum")},domProps:{value:t.inputValue},on:{input:function(e){e.target.composing||(t.inputValue=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"mult mt10"},[s("div",{staticClass:"flex trade-bg"},[s("img",{attrs:{width:"25",height:"25",src:a("0K3A"),alt:""}}),t._v(" "),s("p",[t._v(t._s(t.$t("lever.openTime")))])]),t._v(" "),s("div",{staticClass:"flex flex-wrap mult-content"},t._l(t.timeList,function(e,a){return s("p",{key:a,staticClass:"bg-part",class:[{active:t.value4==e.seconds}],on:{click:function(a){t.selectTime(e.seconds,e.profit_ratio)}}},[t._v(t._s(e.seconds))])}))]),t._v(" "),s("div",{staticClass:"lever-total mt20"},[s("p",{staticClass:"transfer flex between mt10",on:{click:t.jumptransfer}},[t._v(t._s(t.$t("asset.transfer")))]),t._v(" "),s("p",{staticClass:"flex between mt10"},[s("span",[t._v(t._s(t.$t("ctc.balance")))]),t._v(" "),s("span",[t._v(t._s(t.balance||"0.00")+t._s(t.tradeName))])]),t._v(" "),s("p",{staticClass:"flex between mt10"},[s("span",[t._v(t._s(t.$t("miscro.rate")))]),t._v(" "),s("span",[t._v(t._s(t.profitRatio||"0.00")+"%")])])])]),t._v(" "),s("div",[s("div",{staticClass:"sell_btn greenBg",on:{click:function(e){t.transferSumbit(1)}}},[t._v(t._s(t.$t("miscro.up")))]),t._v(" "),s("div",{staticClass:"sell_btn redBg",on:{click:function(e){t.transferSumbit(2)}}},[t._v(t._s(t.$t("miscro.down")))])]),t._v(" "),s("el-dialog",{attrs:{title:"",visible:t.modalShow,width:"480px",top:"150px",center:""},on:{"update:visible":function(e){t.modalShow=e}}},[s("div",{staticClass:"transfer-content"},[s("h3",[t._v(t._s(1==t.buyType?t.$t("miscro.up"):t.$t("miscro.down"))+" "+t._s(t.currencyName))]),t._v(" "),s("div",{staticClass:"transfer-list mt10"},[s("div",{staticClass:"loss-madal-content flex between"},[s("div",[s("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("span",[t._v(t._s(t._f("tofixedNum")(t.inputValue||"0"))+" "+t._s(t.tradeName))])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("td.time")))]),t._v(" "),s("span",[t._v(t._s(t._f("tofixedNum")(t.value4||"0"))+"S")])]),t._v(" "),s("div",[s("span",[t._v(t._s(t.$t("miscro.rate")))]),t._v(" "),s("span",[t._v(t._s(t._f("tofixedNum")(t.profitRatio||"0"))+"%")])])])])]),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.comfirm()}}},[t._v(t._s(t.$t("cuy.confirm")))])],1)])],1)},staticRenderFns:[]};var oa=a("VU/8")(ia,na,!1,function(t){a("1UUR")},"data-v-a24804f2",null).exports,ra={props:{leverTradeId:{type:Number,required:!0}},data:function(){return{orderList:[],mescroll:null,times:"2019-04-10 17:00:00",CountDown:"",progressWidths:1,status:1,page:1,set:null,out:null,prices:localStorage.getItem("newPrice"),more:"",tradeId:""}},watch:{prices:function(t,e){return localStorage.getItem("newPrice")},leverTradeId:{immediate:!0,handler:function(t){0!=t&&(this.tradeId=t)},deep:!0}},computed:{switchStatus:function(){if(""!=this.tradeId&&0!=this.tradeId)return this.tradeId}},created:function(){},mounted:function(){var t=this;setTimeout(function(){""!=t.leverTradeId&&t.init()},1500),t.connect(),setInterval(function(){t.prices=localStorage.getItem("newPrice"),1==localStorage.getItem("orderStatus")&&(t.page=1,t.init())},1)},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)},toFixedNum:function(t){return(t=Number(t)).toFixed(0)}},methods:{init:function(){var t=this;clearTimeout(t.set),clearInterval(t.sets);var e={};1==t.status?(t.tradeId,e={page:t.page,status:t.status,match_id:t.tradeId,limit:20}):e={page:t.page,status:t.status,limit:20},this.$http({url:"/api/microtrade/lists",method:"get",params:e,headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type)if(e.data.message.data.length>0){for(var a=e.data.message.data,s=(new Date).getTime(),i=0;i<a.length;i++)a[i].endTime=s-0+(a[i].remain_milli_seconds-0);t.orderList=a,t.Djs_time(),t.set=setTimeout(t.countDown,200),t.more=t.$t("td.more")}else t.more=t.$t("td.nodata");else layer.msg(e.data.message)}).catch(function(t){})},load_more:function(){this.page++,this.init()},countDown:function(t,e,a){Number(a),a="";var s=t-(new Date).getTime();return s>0?a=(s/1e3).toFixed(1):s<=0?0:void 0},Djs_time:function(){var t=this;setInterval(function(){var e=(new Date).getTime();t.CountDown=e},200)},tabOrder:function(t){this.status=t,this.orderList=[],this.page=1,this.init()},connect:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("micro_closed",function(e){if("micro_closed"==e.type)for(var a=e.data,s=0;s<t.orderList.length;s++)if(t.orderList[s].id==a.id)return t.orderList[s]=a,setTimeout(function(){var e=t.orderList;e.splice(s,1),t.orderList=e},500),!1})}}},ca={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"flex between"},[s("div",{staticClass:"flex tab-header"},[s("p",{staticClass:"tc",class:[{active:1==t.status}],on:{click:function(e){t.tabOrder(1)}}},[t._v(t._s(t.$t("miscro.trade")))]),t._v(" "),s("p",{staticClass:"tc",class:[{active:3==t.status}],on:{click:function(e){t.tabOrder(3)}}},[t._v(t._s(t.$t("lever.closed")))])])]),t._v(" "),s("p",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t._v(t._s(t.CountDown))]),t._v(" "),s("ul",{staticClass:"list_head ft14"},[s("li",{staticClass:"flex between"},[s("span",{staticClass:"width3 tls"},[t._v(t._s(t.$t("market.symbol")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),s("span",{staticClass:"width2"},[t._v(t._s(t.$t("miscro.buyPrice")))]),t._v(" "),1==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.nowPrice")))]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t.$t("miscro.finshPrice")))]):t._e(),t._v(" "),1==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t.$t("miscro.loss")))]):t._e(),t._v(" "),1==t.status?s("span",{staticClass:"width2 trs"},[t._v(t._s(t.$t("miscro.times")))]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.rate")))]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2 trs"},[t._v(t._s(t.$t("lever.loss")))]):t._e()])]),t._v(" "),s("ul",{staticClass:"list_content list fColor1 ft12"},t._l(t.orderList,function(e,i){return t.orderList.length>0&&e.remain_milli_seconds>0&&1==t.status||3==t.status&&t.orderList.length>0?s("li",{key:i,staticClass:"flex between"},[s("span",{staticClass:"width3 tls"},[t._v(t._s(e.symbol_name)+" "+t._s(e.seconds)+"s")]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("toFixedNum")(e.number||"0"))+" "+t._s(e.currency_name))]),t._v(" "),s("span",{staticClass:"width2"},[t._v("\n "+t._s(t._f("tofixedFour")(e.open_price||"0.00"))+"\n "),1==e.type?s("img",{attrs:{width:"10",src:a("dF7N"),alt:""}}):s("img",{attrs:{width:"10",src:a("SOfZ"),alt:""}})]),t._v(" "),1==t.status&&1==e.status?s("span",{staticClass:"width2"},[t._v(t._s(t._f("tofixedFour")(t.prices||"0.00")))]):t._e(),t._v(" "),1==t.status&&3==e.status?s("span",{staticClass:"width2"},[t._v(t._s(t._f("tofixedFour")(e.end_price||"0.00")))]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t._f("tofixedFour")(e.end_price||"0.00")))]):t._e(),t._v(" "),1==e.status&&1==t.status&&1==e.type&&e.open_price-0>t.prices-0?s("span",{staticClass:"width2 redColor"},[t._v("-"+t._s(t._f("tofixedFour")(e.number||"0")))]):t._e(),t._v(" "),1==e.status&&1==t.status&&1==e.type&&e.open_price-0<=t.prices-0?s("span",{staticClass:"width2 greenColor"},[t._v(t._s(t._f("tofixedFour")((e.number*e.profit_ratio-0)/100||"0.00")))]):t._e(),t._v(" "),1==e.status&&1==t.status&&2==e.type&&e.open_price-0>=t.prices-0?s("span",{staticClass:"width2 greenColor"},[t._v(t._s(t._f("tofixedFour")((e.number*e.profit_ratio-0)/100||"0.00")))]):t._e(),t._v(" "),1==e.status&&1==t.status&&2==e.type&&e.open_price-0<t.prices-0?s("span",{staticClass:"width2 redColor"},[t._v("-"+t._s(t._f("tofixedFour")(e.number-0||"0.00")))]):t._e(),t._v(" "),1==t.status&&3==e.status?s("span",{staticClass:"width2 trs",class:e.fact_profits<0?"redColor":"greenColor"},[t._v(t._s(t._f("toFixedNum")(e.fact_profits||"0")))]):t._e(),t._v(" "),1==t.status&&1==e.status?s("span",{staticClass:"times width2 trs"},[t._v(t._s(t.countDown(e.endTime,i,e.seconds))+"s")]):t._e(),t._v(" "),1==t.status&&3==e.status?s("span",{staticClass:"times width2 trs"},[t._v("0.0s")]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t._f("tofixedFour")(e.fee||"0.00")))]):t._e(),t._v(" "),3==t.status?s("span",{staticClass:"width2 trs",class:e.fact_profits<0?"redColor":"greenColor"},[t._v(t._s(t._f("tofixedFour")(e.fact_profits||"0")))]):t._e()]):t._e()})),t._v(" "),0==t.orderList.length?s("div",{staticClass:"mores"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("span",[t._v(t._s(t.$t("td.nodata")))])]):t._e()])},staticRenderFns:[]};var la={name:"leverDealCenter",components:{tv:ea,trade:oa,leverTransaction:a("VU/8")(ra,ca,!1,function(t){a("AHxQ")},"data-v-0adcd137",null).exports,Kline:qe},data:function(){return{isRouterAlive:!0,token:localStorage.getItem("token"),quotationList:[],leverData:{legalId:"",currencyId:""},marketData:{},currencyData:{},symbol:"",topBuy:{buyList:[],sellList:[],newsPrice:""},leverTradeId:0,years:"",times:"",types:"seconds",skins:localStorage.getItem("skin")||"days",insurancType:[],userInsurancId:"",bmbBalance:"",currencyName:""}},computed:Tt()({},Object(Ut.b)(["theme"])),watch:{theme:{handler:function(){var t=this.theme;this.loctheme=t},immediate:!0},$route:function(t,e){this.leverData.currencyId!=t.query.currencyId&&location.reload()}},beforeCreate:function(){},created:function(){this.token=localStorage.getItem("token"),this.leverData.legalId=this.$route.query.legalId||"",this.leverData.currencyId=this.$route.query.currencyId||""},mounted:function(){var t=this;t.init(),t.getDeal(),setInterval(function(){1==localStorage.getItem("orderStatus")&&t.getDeal()},1)},beforeDestroy:function(){},methods:{init:function(){var t=this;this.$http({url:"/api/currency/quotation_new",method:"get",data:{}}).then(function(e){if("ok"==e.data.type){var a=[];e.data.message.forEach(function(e,s){var i=e.quotation.filter(function(t){return 1==t.is_display&&1==t.open_microtrade});a=i,i.forEach(function(e){t.leverData.legalId==e.legal_id&&t.leverData.currencyId==e.currency_id&&(t.symbol=e.currency_name+"/"+e.legal_name,t.leverTradeId=e.id,t.currencyName=e.currency_name)})}),t.quotationList=a,""==t.symbol&&(t.symbol=a[0].currency_name+"/"+a[0].legal_name,t.leverData.legalId=a[0].legal_id,t.leverData.currencyId=a[0].currency_id,t.leverTradeId=a[0].id,t.currencyName=a[0].currency_name),t.marketSocket()}}).catch(function(t){})},marketSocket:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("daymarket",function(e){if("daymarket"==e.type)for(var a=0;a<t.quotationList.length;a++)t.quotationList[a].legal_id==e.legal_id&&t.quotationList[a].currency_id==e.currency_id&&(t.quotationList[a].now_price=e.now_price,t.quotationList[a].change=e.change,t.quotationList[a].volume=e.volume)})},getDeal:function(){var t=this;this.$http({url:"/api/microtrade/payable_currencies",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;if(a.length>0)for(var s=0;s<a.length;s++)"HAP"==a[s].name&&(t.bmbBalance=a[s].user_wallet.micro_balance,t.insurancType=a[s].insurance_types,a[s].user_insurance&&(t.userInsurancId=a[s].user_insurance.insurance_type_id))}})}}},da={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["white"==t.loctheme?"home whitebg":"home"]},[a("div",{staticClass:"content flex between"},[a("div",{staticClass:"main-top"},[a("div",{staticClass:"tv-box"},[this.quotationList.length>0?a("tv",{attrs:{quotationList:t.quotationList,symbol:t.symbol,types:t.types}}):t._e()],1),t._v(" "),a("div",{staticClass:"Kline"},[a("kline",{attrs:{symbol:t.symbol}})],1),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"tran-box bg-part"},[a("leverTransaction",{attrs:{leverTradeId:t.leverTradeId}})],1)])]),t._v(" "),a("div",{staticClass:"main-bottom"},[a("div",{staticClass:"trade-box"},[a("trade",{attrs:{leverTradeId:t.leverTradeId,skinstyle:t.loctheme,currencyName:t.currencyName}})],1)])])])},staticRenderFns:[]};var ua=a("VU/8")(la,da,!1,function(t){a("Xp0y")},"data-v-059a8c11",null).exports,ma=[{area_code:"+86",country_id:37,name_cn:"中国大陆",name_en:"China"},{area_code:"+852",country_id:71,name_cn:"中国香港",name_en:"Hong Kong (China)"},{area_code:"+853",country_id:500,name_cn:"中国澳门",name_en:"Macao (China)"},{area_code:"+886",country_id:169,name_cn:"中国台湾",name_en:"Taiwan (China)"},{area_code:"+355",country_id:3,name_cn:"阿尔巴尼亚",name_en:"Albania"},{area_code:"+213",country_id:4,name_cn:"阿尔及利亚",name_en:"Algeria"},{area_code:"+376",country_id:5,name_cn:"安道尔共和国",name_en:"Andorra"},{area_code:"+244",country_id:1,name_cn:"安哥拉",name_en:"Angola"},{area_code:"+1264",country_id:6,name_cn:"安圭拉岛",name_en:"Anguilla"},{area_code:"+1268",country_id:7,name_cn:"安提瓜和巴布达",name_en:"Antigua and Barbuda"},{area_code:"+54",country_id:8,name_cn:"阿根廷",name_en:"Argentina"},{area_code:"+297",country_id:194,name_cn:"阿鲁巴",name_en:"Aruba"},{area_code:"+247",country_id:10,name_cn:"阿森松",name_en:"Ascension"},{area_code:"+61",country_id:11,name_cn:"澳大利亚",name_en:"Australia"},{area_code:"+672",country_id:195,name_cn:"澳大利亚海外领地",name_en:"Australianoverseasterritories"},{area_code:"+43",country_id:12,name_cn:"奥地利",name_en:"Austria"},{area_code:"+994",country_id:13,name_cn:"阿塞拜疆",name_en:"Azerbaijan"},{area_code:"+20",country_id:49,name_cn:"埃及",name_en:"Egypt"},{area_code:"+372",country_id:51,name_cn:"爱沙尼亚",name_en:"Estonia"},{area_code:"+251",country_id:52,name_cn:"埃塞俄比亚",name_en:"Ethiopia"},{area_code:"+353",country_id:78,name_cn:"爱尔兰",name_en:"Ireland"},{area_code:"+968",country_id:128,name_cn:"阿曼",name_en:"Oman"},{area_code:"+971",country_id:181,name_cn:"阿拉伯联合酋长国",name_en:"United Arab Emirates"},{area_code:"+1242",country_id:14,name_cn:"巴哈马",name_en:"Bahamas"},{area_code:"+973",country_id:15,name_cn:"巴林",name_en:"Bahrain"},{area_code:"+1246",country_id:17,name_cn:"巴巴多斯",name_en:"Barbados"},{area_code:"+32",country_id:19,name_cn:"比利时",name_en:"Belgium"},{area_code:"+501",country_id:20,name_cn:"伯利兹",name_en:"Belize"},{area_code:"+229",country_id:21,name_cn:"贝宁",name_en:"Benin"},{area_code:"+1441",country_id:22,name_cn:"百慕大群岛",name_en:"Bermuda"},{area_code:"+975",country_id:196,name_cn:"不丹",name_en:"Bhutan"},{area_code:"+387",country_id:197,name_cn:"波斯尼亚和黑塞哥维那",name_en:"BosniaandHerzegovina"},{area_code:"+267",country_id:24,name_cn:"博茨瓦纳",name_en:"Botswana"},{area_code:"+55",country_id:25,name_cn:"巴西",name_en:"Brazil"},{area_code:"+359",country_id:27,name_cn:"保加利亚",name_en:"Bulgaria"},{area_code:"+226",country_id:28,name_cn:"布基纳法索",name_en:"Burkina Faso"},{area_code:"+257",country_id:30,name_cn:"布隆迪",name_en:"Burundi"},{area_code:"+855",country_id:85,name_cn:"柬埔寨",name_en:"Cambodia"},{area_code:"+253",country_id:46,name_cn:"吉布提",name_en:"Djibouti"},{area_code:"+354",country_id:73,name_cn:"冰岛",name_en:"Iceland"},{area_code:"+970",country_id:219,name_cn:"巴勒斯坦",name_en:"Palestine"},{area_code:"+507",country_id:130,name_cn:"巴拿马",name_en:"Panama"},{area_code:"+675",country_id:131,name_cn:"巴布亚新几内亚",name_en:"Papua New Cuinea"},{area_code:"+595",country_id:132,name_cn:"巴拉圭",name_en:"Paraguay"},{area_code:"+51",country_id:133,name_cn:"秘鲁",name_en:"Peru"},{area_code:"+48",country_id:135,name_cn:"波兰",name_en:"Poland"},{area_code:"+240",country_id:203,name_cn:"赤道几内亚",name_en:"EquatorialGuinea"},{area_code:"+49",country_id:60,name_cn:"德国",name_en:"Germany"},{area_code:"+684",country_id:145,name_cn:"东萨摩亚(美)",name_en:"Samoa Eastern"},{area_code:"+228",country_id:173,name_cn:"多哥",name_en:"Togo"},{area_code:"+45",country_id:45,name_cn:"丹麦",name_en:"Denmark"},{area_code:"+1809",country_id:47,name_cn:"多米尼加共和国",name_en:"Dominican Republic"},{area_code:"+670",country_id:202,name_cn:"东帝汶",name_en:"EastTimor"},{area_code:"+9714",country_id:230,name_cn:"迪拜酋长国",name_en:"Emirate of Dubai"},{area_code:"+291",country_id:204,name_cn:"厄立特里亚",name_en:"Eritrea"},{area_code:"+7",country_id:142,name_cn:"俄罗斯",name_en:"Russia"},{area_code:"+238",country_id:198,name_cn:"佛得角",name_en:"CapeVerde"},{area_code:"+500",country_id:205,name_cn:"福克兰群岛",name_en:"FalklandIslands"},{area_code:"+298",country_id:206,name_cn:"法罗群岛",name_en:"FaroeIslands"},{area_code:"+679",country_id:53,name_cn:"斐济",name_en:"Fiji"},{area_code:"+358",country_id:54,name_cn:"芬兰",name_en:"Finland"},{area_code:"+33",country_id:55,name_cn:"法国",name_en:"France"},{area_code:"+594",country_id:56,name_cn:"法属圭亚那",name_en:"French Guiana"},{area_code:"+689",country_id:136,name_cn:"法属玻利尼西亚",name_en:"French Polynesia"},{area_code:"+63",country_id:134,name_cn:"菲律宾",name_en:"Philippines"},{area_code:"+379",country_id:227,name_cn:"梵蒂冈城",name_en:"VaticanCity"},{area_code:"+57",country_id:38,name_cn:"哥伦比亚",name_en:"Colombia"},{area_code:"+506",country_id:41,name_cn:"哥斯达黎加",name_en:"Costa Rica"},{area_code:"+220",country_id:58,name_cn:"冈比亚",name_en:"Gambia"},{area_code:"+995",country_id:59,name_cn:"格鲁吉亚",name_en:"Georgia"},{area_code:"+299",country_id:207,name_cn:"格陵兰岛",name_en:"Greenland"},{area_code:"+1473",country_id:64,name_cn:"格林纳达",name_en:"Grenada"},{area_code:"+590",country_id:208,name_cn:"瓜德罗普",name_en:"Guadeloupe"},{area_code:"+1671",country_id:65,name_cn:"关岛",name_en:"Guam"},{area_code:"+592",country_id:68,name_cn:"圭亚那",name_en:"Guyana"},{area_code:"+509",country_id:69,name_cn:"海地",name_en:"Haiti"},{area_code:"+504",country_id:70,name_cn:"洪都拉斯",name_en:"Honduras"},{area_code:"+82",country_id:88,name_cn:"韩国",name_en:"Korea"},{area_code:"+382",country_id:215,name_cn:"黑山",name_en:"Montenegro"},{area_code:"+599",country_id:120,name_cn:"荷属安的列斯",name_en:"Netheriands Antilles"},{area_code:"+31",country_id:121,name_cn:"荷兰",name_en:"Netherlands"},{area_code:"+81",country_id:32,name_cn:"日本",name_en:"Japan"},{area_code:"+1",country_id:32,name_cn:"加拿大",name_en:"Canada"},{area_code:"+420",country_id:44,name_cn:"捷克",name_en:"Czech Republic"},{area_code:"+241",country_id:57,name_cn:"加蓬",name_en:"Gabon"},{area_code:"+233",country_id:61,name_cn:"加纳",name_en:"Ghana"},{area_code:"+245",country_id:209,name_cn:"几内亚比绍",name_en:"Guinea-Bissau"},{area_code:"+686",country_id:210,name_cn:"基里巴斯",name_en:"Kiribati"},{area_code:"+996",country_id:90,name_cn:"吉尔吉斯坦",name_en:"Kyrgyzstan"},{area_code:"+1345",country_id:33,name_cn:"开曼群岛",name_en:"Cayman Islands."},{area_code:"+269",country_id:199,name_cn:"科摩罗群岛",name_en:"ComorosIslands"},{area_code:"+682",country_id:40,name_cn:"库克群岛",name_en:"Cook Islands."},{area_code:"+385",country_id:200,name_cn:"克罗地亚",name_en:"Croatia"},{area_code:"+254",country_id:87,name_cn:"肯尼亚",name_en:"Kenya"},{area_code:"+965",country_id:89,name_cn:"科威特",name_en:"Kuwait"},{area_code:"+974",country_id:139,name_cn:"卡塔尔",name_en:"Qatar"},{area_code:"+856",country_id:91,name_cn:"老挝",name_en:"Laos"},{area_code:"+371",country_id:92,name_cn:"拉脱维亚",name_en:"Latvia"},{area_code:"+266",country_id:94,name_cn:"莱索托",name_en:"Lesotho"},{area_code:"+423",country_id:97,name_cn:"列支敦士登",name_en:"Liechtenstein"},{area_code:"+370",country_id:98,name_cn:"立陶宛",name_en:"Lithuania"},{area_code:"+352",country_id:99,name_cn:"卢森堡",name_en:"Luxembourg"},{area_code:"+262",country_id:140,name_cn:"留尼旺",name_en:"Reunion"},{area_code:"+40",country_id:141,name_cn:"罗马尼亚",name_en:"Romania"},{area_code:"+250",country_id:220,name_cn:"卢旺达",name_en:"Rwanda"},{area_code:"+1",country_id:"",name_cn:"美国",name_en:"Amerancra"},{area_code:"+389",country_id:211,name_cn:"马其顿",name_en:"Macedonia"},{area_code:"+261",country_id:101,name_cn:"马达加斯加",name_en:"Madagascar"},{area_code:"+265",country_id:102,name_cn:"马拉维",name_en:"Malawi"},{area_code:"+60",country_id:103,name_cn:"马来西亚",name_en:"Malaysia"},{area_code:"+960",country_id:104,name_cn:"马尔代夫",name_en:"Maldives"},{area_code:"+223",country_id:105,name_cn:"马里",name_en:"Mali"},{area_code:"+356",country_id:106,name_cn:"马耳他",name_en:"Malta"},{area_code:"+223",country_id:107,name_cn:"马里亚那群岛",name_en:"Marshall Islands"},{area_code:"+692",country_id:212,name_cn:"马绍尔群岛",name_en:"MarshallIslands"},{area_code:"+596",country_id:108,name_cn:"马提尼克",name_en:"Martinique"},{area_code:"+222",country_id:213,name_cn:"毛里塔尼亚",name_en:"Mauritania"},{area_code:"+230",country_id:109,name_cn:"毛里求斯",name_en:"Mauritius"},{area_code:"+52",country_id:110,name_cn:"墨西哥",name_en:"Mexico"},{area_code:"+691",country_id:214,name_cn:"密克罗尼西亚",name_en:"Micronesia"},{area_code:"+373",country_id:111,name_cn:"摩尔多瓦",name_en:"Moldova"},{area_code:"+377",country_id:112,name_cn:"摩纳哥",name_en:"Monaco"},{area_code:"+976",country_id:113,name_cn:"蒙古",name_en:"Mongolia"},{area_code:"+1664",country_id:114,name_cn:"蒙特塞拉特岛",name_en:"Montserrat"},{area_code:"+212",country_id:115,name_cn:"摩洛哥",name_en:"Morocco"},{area_code:"+258",country_id:116,name_cn:"莫桑比克",name_en:"Mozambique"},{area_code:"+264",country_id:117,name_cn:"纳米比亚",name_en:"Namibia"},{area_code:"+674",country_id:118,name_cn:"瑙鲁",name_en:"Nauru"},{area_code:"+977",country_id:119,name_cn:"尼泊尔",name_en:"Nepal"},{area_code:"+227",country_id:124,name_cn:"尼日尔",name_en:"Niger"},{area_code:"+234",country_id:125,name_cn:"尼日利亚",name_en:"Nigeria"},{area_code:"+683",country_id:217,name_cn:"纽埃岛",name_en:"Niue"},{area_code:"+47",country_id:127,name_cn:"挪威",name_en:"Norway"},{area_code:"+27",country_id:158,name_cn:"南非",name_en:"South Africa"},{area_code:"+338",country_id:189,name_cn:"南斯拉夫",name_en:"Yugoslavia"},{area_code:"+680",country_id:218,name_cn:"帕劳",name_en:"Palau"},{area_code:"+351",country_id:137,name_cn:"葡萄牙",name_en:"Portugal"},{area_code:"+1",country_id:138,name_cn:"波多黎各",name_en:"Puerto Rico"},{area_code:"+46",country_id:166,name_cn:"瑞典",name_en:"Sweden"},{area_code:"+41",country_id:167,name_cn:"瑞士",name_en:"Switzerland"},{area_code:"+357",country_id:43,name_cn:"塞浦路斯",name_en:"Cyprus"},{area_code:"+503",country_id:50,name_cn:"萨尔瓦多",name_en:"El Salvador"},{area_code:"+7",country_id:86,name_cn:"哈萨克斯坦",name_en:"Kazakstan"},{area_code:"+1758",country_id:143,name_cn:"圣卢西亚",name_en:"Saint Lueia"},{area_code:"+1784",country_id:144,name_cn:"圣文森特岛",name_en:"Saint Vincent"},{area_code:"+508",country_id:222,name_cn:"圣皮埃尔和密克隆群岛",name_en:"SaintPierreandMiquelon"},{area_code:"+378",country_id:147,name_cn:"圣马力诺",name_en:"San Marino"},{area_code:"+239",country_id:148,name_cn:"圣多美和普林西比",name_en:"Sao Tome and Principe"},{area_code:"+966",country_id:149,name_cn:"沙特阿拉伯",name_en:"Saudi Arabia"},{area_code:"+221",country_id:150,name_cn:"塞内加尔",name_en:"Senegal"},{area_code:"+381",country_id:223,name_cn:"塞尔维亚",name_en:"Serbia"},{area_code:"+248",country_id:151,name_cn:"塞舌尔",name_en:"Seychelles"},{area_code:"+232",country_id:152,name_cn:"塞拉利昂",name_en:"Sierra Leone"},{area_code:"+421",country_id:154,name_cn:"斯洛伐克",name_en:"Slovakia"},{area_code:"+386",country_id:155,name_cn:"斯洛文尼亚",name_en:"Slovenia"},{area_code:"+677",country_id:156,name_cn:"所罗门群岛",name_en:"Solomon Islands"},{area_code:"+94",country_id:160,name_cn:"斯里兰卡",name_en:"Sri Lanka"},{area_code:"+290",country_id:221,name_cn:"圣赫勒拿岛",name_en:"St.Helena"},{area_code:"+1758",country_id:161,name_cn:"圣卢西亚",name_en:"St.Lucia"},{area_code:"+1784",country_id:162,name_cn:"圣文森特",name_en:"St.Vincent"},{area_code:"+597",country_id:164,name_cn:"苏里南",name_en:"Suriname"},{area_code:"+268",country_id:165,name_cn:"斯威士兰",name_en:"Swaziland"},{area_code:"+992",country_id:170,name_cn:"塔吉克斯坦",name_en:"Tajikstan"},{area_code:"+255",country_id:171,name_cn:"坦桑尼亚",name_en:"Tanzania"},{area_code:"+66",country_id:172,name_cn:"泰国",name_en:"Thailand"},{area_code:"+690",country_id:224,name_cn:"托克劳群岛",name_en:"Tokelau"},{area_code:"+676",country_id:174,name_cn:"汤加",name_en:"Tonga"},{area_code:"+1868",country_id:175,name_cn:"特立尼达和多巴哥",name_en:"Trinidad and Tobago"},{area_code:"+216",country_id:176,name_cn:"突尼斯",name_en:"Tunisia"},{area_code:"+90",country_id:177,name_cn:"土耳其",name_en:"Turkey"},{area_code:"+993",country_id:178,name_cn:"土库曼斯坦",name_en:"Turkmenistan"},{area_code:"+688",country_id:225,name_cn:"图瓦卢",name_en:"Tuvalu"},{area_code:"+673",country_id:26,name_cn:"文莱",name_en:"Brunei"},{area_code:"+502",country_id:66,name_cn:"危地马拉",name_en:"Guatemala"},{area_code:"+256",country_id:179,name_cn:"乌干达",name_en:"Uganda"},{area_code:"+380",country_id:180,name_cn:"乌克兰",name_en:"Ukraine"},{area_code:"+598",country_id:184,name_cn:"乌拉圭",name_en:"Uruguay"},{area_code:"+998",country_id:185,name_cn:"乌兹别克斯坦",name_en:"Uzbekistan"},{area_code:"+678",country_id:226,name_cn:"瓦努阿图",name_en:"Vanuatu"},{area_code:"+58",country_id:186,name_cn:"委内瑞拉",name_en:"Venezuela"},{area_code:"+681",country_id:228,name_cn:"瓦利斯和富图纳",name_en:"WallisandFutuna"},{area_code:"+30",country_id:63,name_cn:"希腊",name_en:"Greece"},{area_code:"+36",country_id:72,name_cn:"匈牙利",name_en:"Hungary"},{area_code:"+64",country_id:122,name_cn:"新西兰",name_en:"New Zealand"},{area_code:"+687",country_id:216,name_cn:"新喀里多尼亚",name_en:"NewCaledonia"},{area_code:"+505",country_id:123,name_cn:"尼加拉瓜",name_en:"Nicaragua"},{area_code:"+685",country_id:146,name_cn:"西萨摩亚",name_en:"Samoa Western"},{area_code:"+65",country_id:153,name_cn:"新加坡",name_en:"Singapore"},{area_code:"+34",country_id:159,name_cn:"西班牙",name_en:"Spain"},{area_code:"+374",country_id:9,name_cn:"亚美尼亚",name_en:"Armenia"},{area_code:"+39",country_id:241,name_cn:"意大利",name_en:"Italy"},{area_code:"+44",country_id:242,name_cn:"英国",name_en:"Britain"},{area_code:"+91",country_id:243,name_cn:"印度",name_en:"India"},{area_code:"+1284",country_id:229,name_cn:"英属维尔京群岛",name_en:"British Virgin Islands"},{area_code:"+56",country_id:36,name_cn:"智利",name_en:"Chile"},{area_code:"+350",country_id:62,name_cn:"直布罗陀",name_en:"Gibraltar"},{area_code:"+243",country_id:192,name_cn:"扎伊尔",name_en:"Zaire"},{area_code:"+260",country_id:193,name_cn:"赞比亚",name_en:"Zambia"}],pa={name:"login",components:{indexHeader:V,indexFooter:q},data:function(){return{account_number:"",password:"",code:"",country:ma,isMb:!0,shows:!1,areaCode:ma[0].area_code,showCode:!1}},created:function(){var t=this;this.account_number=this.$route.query.account_number||"";var e=this.$route.params.type||"";"true"==this.$route.query.isEmail&&(this.isMb=!1),1==e&&location.reload(),localStorage.getItem("socketPort")?this.shows=JSON.parse(localStorage.getItem("socketPort")).smcode:this.$http({url:"/api/env.json",method:"get",data:{}}).then(function(e){t.shows=e.data.login_need_smscode;var a={socketnum:e.data.socket_io_port,smcode:e.data.login_need_smscode};a=r()(a),localStorage.setItem("socketPort",a)})},methods:{getCode:function(t){this.areaCode=t,this.showCode=!1},getLang:function(){var t=window.localStorage.getItem("locale")||"en",e=window.localStorage.getItem("token")||"";this.$http({url:"/api/set/lang",method:"post",headers:{Authorization:e},data:{lang:t}}).then(function(t){})},userInfo:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(localStorage.setItem("user_id",e.data.message.id),localStorage.setItem("extension_code",e.data.message.extension_code),localStorage.setItem("is_seller",e.data.message.is_seller),localStorage.setItem("type",e.data.message.type),eventBus.$emit("seller",e.data.message.is_seller),eventBus.$emit("type",e.data.message.type),setTimeout(function(){t.$router.push("/")},500))}).catch(function(t){})},sendCode:function(t){var e=this,a=this,s=this.isMb,i="sms_send";if(""!=this.account_number.length){if(!t.target.disabled){s||s||(i="sms_mail");var n={user_string:this.account_number,scene:"login"};n.country_code=this.areaCode,this.$http({url:"/api/"+i,method:"post",data:n}).then(function(s){if(layer.msg(s.data.message),"ok"==s.data.type){var i=60;e.timer=setInterval(function(){if(t.target.innerHTML=i+"s",t.target.disabled=!0,0==i)return clearInterval(a.timer),t.target.innerHTML=a.$t("set.sendCode"),void(t.target.disabled=!1);i--},1e3)}})}}else layer.tips(this.$t("set.enterAccount"),"#account")},login:function(){var t=this,e=this.$utils.trim(this.account_number),a=this.$utils.trim(this.password);if(""!=this.account_number.length)if(this.password.length<6)layer.tips(this.$t("login.psw6"),"#pwd");else if(!this.shows||this.code){var s=this.areaCode.substr(this.areaCode.indexOf("+")+1),i=0;86==s&&(i=1);var n=layer.load();this.$http({url:"/api/user/login",method:"post",data:{user_string:e,password:a,sms_code:this.code,area_code:s,area_code_id:i}}).then(function(a){layer.close(n),"ok"===(a=a.data).type?(localStorage.setItem("token",a.message),localStorage.setItem("accountNum",e),localStorage.setItem("user_id",a.id),t.$store.commit("setAccountNum"),t.getLang(),t.userInfo()):layer.msg(a.message)}).catch(function(t){})}else layer.tips(this.$t("set.enterCode"),"#code");else layer.tips(this.$t("set.enterAccount"),"#account")}}},ha={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v(t._s(t.$t(t.login.welcome)))]),t._v(" "),a("div",{staticClass:"tab flex",on:{click:function(e){t.account_number=""}}},[a("span",{class:{now:t.isMb},on:{click:function(e){t.isMb=!0}}},[t._v(t._s(t.$t("login.phoneLogin")))]),t._v(" "),a("span",{class:{now:!t.isMb},on:{click:function(e){t.isMb=!1}}},[t._v(t._s(t.$t("login.emailLogin")))])]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("login.account")))]),t._v(" "),a("div",{staticClass:"country-box bd"},[a("div",{staticClass:"flex"},[t.isMb?a("div",{staticClass:"flex between alcenter bdr plr20"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.areaCode,expression:"areaCode"}],staticClass:"lf_input pointer input_color",attrs:{type:"text",readonly:""},domProps:{value:t.areaCode},on:{click:function(e){t.showCode=!t.showCode},input:function(e){e.target.composing||(t.areaCode=e.target.value)}}}),t._v(" "),t.showCode?a("i",{staticClass:"iconfont icon-shangla_icon ft12"}):a("i",{staticClass:"iconfont icon-xiala ft12"})]):t._e(),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"phone flex1 codeinput plr20 input_color",attrs:{type:"text",id:"account",autocomplete:"off"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]),t._v(" "),t.showCode?a("ul",{staticClass:"curPer input_select scroll bg-part bd"},t._l(t.country,function(e,s){return a("li",{staticClass:"flex between alcenter bdb",on:{click:function(a){t.getCode(e.area_code)}}},[a("p",[t._v(t._s(e.name_en))]),t._v(" "),a("p",{staticClass:"tr"},[t._v(t._s(e.area_code))])])})):t._e()])]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("login.psw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input-main input-content input_color bd",attrs:{type:"password",maxlength:"16",id:"pwd",autocomplete:"off"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),t.shows?a("span",{staticClass:"register-item mt20"},[t._v(t._s(t.$t("set.code")))]):t._e(),t._v(" "),t.shows?a("div",{staticClass:"code-box bd bg-part",attrs:{id:"code"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"code input_color ",attrs:{type:"text"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),a("button",{staticClass:"code-btn curPer bg-part input_color bdl",attrs:{type:"button"},on:{click:t.sendCode}},[t._v(t._s(t.$t("set.sendCode")))])]):t._e(),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",on:{click:t.login}},[t._v(t._s(t.$t("login.login")))]),t._v(" "),a("div",{staticClass:"have-account"},[a("router-link",{staticClass:"baseColor",staticStyle:{cursor:"pointer"},attrs:{tag:"span",to:"/forgetPwd"}},[t._v(t._s(t.$t("set.forgetPsw")))])],1)]),t._v(" "),a("div",{staticClass:"right-tip"},[a("p",[t._v(t._s(t.$t("login.nouser")))]),t._v(" "),a("p",[t._v(t._s(t.$t("login.goRegister")))]),t._v(" "),a("router-link",{attrs:{to:{name:"register"}}},[a("p",{staticClass:"baseColor mt20"},[t._v(t._s(t.$t("login.registerFree")))])])],1)])])])])],1)},staticRenderFns:[]};var va=a("VU/8")(pa,ha,!1,function(t){a("9zLm")},"data-v-58997016",null).exports,_a={name:"indexHeader",data:function(){return{appshow:!1,address:"",account_number:"",assets:"资产",orders:"订单",isShow:!1,show1:!1,show2:!1,show3:!1,show4:!1,show5:!1,current:0,type:"",extension_code:"",homeindex:!0,tabList:[],noticeList:[],accountList:[{src1:a("jp0m"),src2:a("WHr/"),title:this.$t("header.accountSet"),page:"accountSet"},{src1:a("QGpR"),src2:a("2e81"),title:this.$t("header.tradeLog"),page:"transferLog"},{src1:a("jp0m"),src2:a("WHr/"),title:this.$t("header.receiveSet"),page:"userSetting"},{src1:a("BZWR"),src2:a("EXKf"),title:this.$t("header.identify"),page:"authentication"},{src1:a("4H5r"),src2:a("gR8W"),title:this.$t("header.jchange"),page:"integralExchange"}]}},watch:{$route:function(t,e){"/"!==this.$route.path?this.homeindex=!1:this.homeindex=!0}},filters:{hideFour:function(t){return t=t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}},created:function(){"/"!==this.$route.path?this.homeindex=!1:this.homeindex=!0,this.address=localStorage.getItem("token")||""},mounted:function(){var t=this;t.account_number=localStorage.getItem("accountNum")||"",t.extension_code=localStorage.getItem("extension_code")||"",t.is_seller=window.localStorage.getItem("is_seller")||"",t.type=window.localStorage.getItem("type")||"",t.getNotice(),1==t.is_seller&&(t.isShow=!0),t.type&&"0"==t.type&&t.accountList.splice(4,1),eventBus.$on("seller",function(e){e&&(t.is_seller=window.localStorage.getItem("is_seller")||"",1==t.is_seller&&(t.isShow=!0))}),eventBus.$on("type",function(e){e&&1!=e&&t.accountList.splice(4,1)}),t.bus.$on("nav_name",function(e){t.current=t.tabList.findIndex(function(t){return t.page===e||t.children&&t.children.includes(e)})})},methods:{getNotice:function(){var t=this;this.$http({url:"/api/news/list",method:"post",data:{c_id:"11"}}).then(function(e){t.noticeList=e.data.message.list})},goAll:function(){this.$router.push({name:"noticeList"})},goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})},showapp:function(){this.appshow=!this.appshow},goto:function(t,e){this.current=t,this.bus.$emit("nav_name",e),"userSetting"==e?this.$router.push("/userSetting"):this.$router.push({name:e})},gotoAccount:function(t,e){this.bus.$emit("nav_name",e),this.$router.push({name:e})},loginOut:function(){var t=this;this.$http({url:"/api/user/logout",method:"post",data:{},headers:{Authorization:window.localStorage.getItem("token")}}).then(function(e){localStorage.clear(),t.$router.push("/components/login")})},assets_over:function(){this.show1=!0},assets_out:function(){this.show1=!1},order_over:function(){this.show2=!0},order_out:function(){this.show2=!1},mine_over:function(){this.show3=!0},mine_out:function(){this.show3=!1},lgover:function(){this.show4=!0},lgout:function(){this.show4=!1},newover:function(){this.show5=!0},newout:function(){this.show5=!1},setLang:function(t){(window.localStorage.getItem("locale")||"en")!=t&&(window.localStorage.setItem("locale",t),this.$i18n.locale=t,this.$http({url:"/api/set/lang",method:"post",data:{lang:t}}).then(function(t){window.location.reload()}))}}},fa={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["nav_bar",{nav_bars:t.homeindex}]},[s("div",{staticClass:"content clear"},[s("div",{staticClass:"fl white"},[s("span",[t._v(t._s(t.$t("jc.title")))])]),t._v(" "),s("div",{staticClass:"fr"},[s("div",{staticClass:"account-box fl positionR curPer flex"},[s("div",{staticClass:"positionR ft12 languagetxt",on:{mouseover:t.lgover,mouseout:t.lgout}},[s("i",{staticClass:"iconfont icon-yuyan topColor hov ft14"}),t._v(" "),s("span",{staticClass:"topColor hov"},[t._v(t._s(t.$t("language")))]),t._v(" "),t.show4?s("i",{staticClass:"iconfont icon-shangla_icon topColor hov ft12"}):s("i",{staticClass:"iconfont icon-xiala topColor hov ft12"}),t._v(" "),t.show4?s("div",{staticClass:"language fColorn"},[s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("zh")}}},[s("img",{attrs:{src:a("1YwK"),alt:""}}),t._v(" "),s("span",[t._v("简体中文")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("en")}}},[s("img",{attrs:{src:a("hRk0"),alt:""}}),t._v(" "),s("span",[t._v("English")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("hk")}}},[s("img",{attrs:{src:a("+7W0"),alt:""}}),t._v(" "),s("span",[t._v("繁體中文")])]),t._v(" "),s("p",{staticClass:"plr10 flex alcenter",on:{click:function(e){t.setLang("jp")}}},[s("img",{staticStyle:{height:"24px"},attrs:{src:a("BXGj"),alt:""}}),t._v(" "),s("span",[t._v("日本語")])])]):t._e()])])])])])},staticRenderFns:[]};var ga={name:"loginTransfer",components:{indexHeader:a("VU/8")(_a,fa,!1,function(t){a("NXbY")},"data-v-7c421986",null).exports,indexFooter:q},data:function(){return{account_number:"",password:"",code:"",country:ma,isMb:!0,shows:!1,areaCode:ma[0].area_code,showCode:!1}},created:function(){var t=this;this.account_number=this.$route.query.account_number||"",localStorage.getItem("socketPort")?this.shows=JSON.parse(localStorage.getItem("socketPort")).smcode:this.$http({url:"/api/env.json",method:"get",data:{}}).then(function(e){t.shows=e.data.login_need_smscode;var a={socketnum:e.data.socket_io_port,smcode:e.data.login_need_smscode};a=r()(a),localStorage.setItem("socketPort",a)})},methods:{getCode:function(t){this.areaCode=t,this.showCode=!1},getLang:function(){var t=window.localStorage.getItem("locale")||"en",e=window.localStorage.getItem("token")||"";this.$http({url:"/api/set/lang",method:"post",headers:{Authorization:e},data:{lang:t}}).then(function(t){})},userInfo:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(localStorage.setItem("user_id",e.data.message.id),localStorage.setItem("email",e.data.message.email),localStorage.setItem("extension_code",e.data.message.extension_code),localStorage.setItem("is_seller",e.data.message.is_seller),localStorage.setItem("type",e.data.message.type),eventBus.$emit("seller",e.data.message.is_seller),eventBus.$emit("type",e.data.message.type),t.$router.push("/integralExchanges"))}).catch(function(t){})},sendCode:function(t){var e=this,a=this.isMb,s="sms_send";if(""!=this.account_number.length){if(!t.target.disabled){a||a||(s="sms_mail");var i=60;this.timer=setInterval(function(){if(t.target.innerHTML=i+"s",t.target.disabled=!0,0==i)return clearInterval(e.timer),t.target.innerHTML=e.$t("set.sendCode"),void(t.target.disabled=!1);i--},1e3);var n={user_string:this.account_number,scene:"login"};n.country_code=this.areaCode,this.$http({url:"/api/"+s,method:"post",data:n}).then(function(t){layer.msg(t.data.message)})}}else layer.tips(this.$t("set.enterAccount"),"#account")},login:function(){var t=this,e=this.$utils.trim(this.account_number),a=this.$utils.trim(this.password);if(""!=this.account_number.length)if(this.password.length<6)layer.tips(this.$t("login.psw6"),"#pwd");else{var s=layer.load();this.$http({url:"/api/Independent/points",method:"post",data:{user_string:e,password:a}}).then(function(a){layer.close(s),"ok"===(a=a.data).type?(localStorage.setItem("token",a.message),t.$router.push("/integralExchanges"),localStorage.setItem("accountNum",e),t.$store.commit("setAccountNum"),t.getLang(),t.userInfo()):layer.msg(a.message)}).catch(function(t){})}else layer.tips(this.$t("set.enterAccount"),"#account")}},beforeRouteEnter:function(t,e,a){"dealCenter"==e.name&&window.location.reload(),a()}},ya={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v(t._s(t.$t(t.login.welcome)))]),t._v(" "),a("div",{staticClass:"tab flex hide",on:{click:function(e){t.account_number=""}}},[a("span",{class:{now:t.isMb},on:{click:function(e){t.isMb=!0}}},[t._v(t._s(t.$t("login.phoneLogin")))]),t._v(" "),a("span",{class:{now:!t.isMb},on:{click:function(e){t.isMb=!1}}},[t._v(t._s(t.$t("login.emailLogin")))])]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("login.account")))]),t._v(" "),a("div",{staticClass:"country-box"},[a("div",{staticClass:"flex"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"phone flex1 codeinput plr20",attrs:{type:"text",id:"account",autocomplete:"off"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]),t._v(" "),t.showCode?a("ul",{staticClass:"curPer input_select scroll"},t._l(t.country,function(e,s){return a("li",{staticClass:"flex between alcenter bdb",on:{click:function(a){t.getCode(e.area_code)}}},[a("p",[t._v(t._s(e.name_en))]),t._v(" "),a("p",{staticClass:"tr"},[t._v(t._s(e.area_code))])])})):t._e()])]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("login.psw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"16",id:"pwd",autocomplete:"off"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),t.shows?a("span",{staticClass:"register-item mt20 hide"},[t._v(t._s(t.$t("set.code")))]):t._e(),t._v(" "),t.shows?a("div",{staticClass:"code-box hide",attrs:{id:"code"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"code",attrs:{type:"text"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),a("button",{staticClass:"code-btn curPer",attrs:{type:"button"},on:{click:t.sendCode}},[t._v(t._s(t.$t("set.sendCode")))])]):t._e(),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",on:{click:t.login}},[t._v(t._s(t.$t("login.login")))])])])])])])],1)},staticRenderFns:[]};var Aa=a("VU/8")(ga,ya,!1,function(t){a("FQ1i")},"data-v-6036cd24",null).exports,Ca={components:{indexHeader:V},data:function(){return{codeTrue:!1,isMb:!0,account:"",pwd:"",repwd:"",code:"",invite:"",read:!0,timer:"",country:ma,areaCity:ma[0].name_en,areaCode:ma[0].area_code,showCity:!1,showCode:!1}},created:function(){var t=this.get_all_params().extension_code;t&&(this.invite=t);var e=this.$route.query.haccount;e&&(this.account=e),e&&/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e)&&(this.isMb=!1)},methods:{get_all_params:function(){for(var t,e=location.href,a=e.substring(e.indexOf("?")+1,e.length).split("&"),s={},i=0;t=a[i];i++){var n=t.substring(0,t.indexOf("=")).toLowerCase(),o=t.substring(t.indexOf("=")+1,t.length);o.indexOf("#")>-1&&(o=o.split("#")[0]),s[n]=decodeURI(o)}return s},getCode:function(t){this.areaCode=t,this.showCode=!1},getCity:function(t,e){this.areaCity=t,this.areaCode=e,this.showCity=!1},setIsMb:function(t){this.account="",this.pwd="",this.repwd="",this.code="",this.invite="",this.isMb=t,this.codeTrue=!1,this.showList=!1,clearInterval(this.timer);var e=document.querySelector(".code-btn");e.disabled=!1,e.innerHTML=this.$t("set.code")},sendCode:function(t){var e=this,a=this,s=this.isMb,i="sms_send";if(""!=this.account){if(!t.target.disabled){if(s);else if(!s){if(!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(this.account))return void layer.msg(this.$t("register.emailFalse"));i="sms_mail"}var n={user_string:this.account};"+86"==this.areaCode?n.area_code_id=1:n.area_code_id=0,n.area_code=this.areaCode.substr(this.areaCode.indexOf("+")+1),n.scene="register";var o=layer.load();this.$http({url:"/api/"+i,method:"post",data:n}).then(function(s){if(layer.close(o),layer.msg(s.data.message),"ok"==s.data.type){var i=60;e.timer=setInterval(function(){if(t.target.innerHTML=i+"s",t.target.disabled=!0,0==i)return clearInterval(a.timer),t.target.innerHTML=a.$t("set.sendCode"),void(t.target.disabled=!1);i--},1e3)}else t.target.disabled=!1})}}else layer.msg(this.$t("set.enterAccount"))},checkCode:function(){var t=this;this.code;if(""!=this.account)if(""!=this.code){var e={},a="user/check_email";this.isMb?(e={mobile_code:this.code},a="user/check_mobile"):e={email_code:this.code},this.$http({url:"/api/"+a,method:"post",data:e}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&(t.codeTrue=!0,t.getRegion("","provinces"))})}else layer.msg(this.$t("set.enterCode"));else layer.msg(this.$t("set.enterAccount"))},readme:function(){this.read=!this.read},register:function(){var t=this;this.code;if(""!=this.account)if(""!=this.code)if(""!=this.pwd)if(this.pwd.length<6||this.pwd.length>16)layer.msg(this.$t("register.psw16"));else if(""!=this.repwd)if(this.pwd===this.repwd){if(this.read){var e={},a=this.isMb;e.type=a?"mobile":"email",e.user_string=this.account,e.code=this.code,e.password=this.pwd,e.re_password=this.repwd,e.extension_code=this.invite,e.area_code=this.areaCode,"+86"==this.areaCode?e.area_code_id=1:e.area_code_id=0,e.nationality=this.areaCity;var s=layer.load();this.$http({url:"/api/user/register",data:e,method:"post"}).then(function(e){layer.close(s),"ok"==e.data.type?t.$router.push("/components/login?isEmail="+!a):layer.msg(e.data.message)})}}else layer.msg(this.$t("set.pswFalse"));else layer.msg(this.$t("set.enterPswagain"));else layer.msg(this.$t("set.enterPsw"));else layer.msg(this.$t("set.enterCode"));else layer.msg(this.$t("set.enterAccount"))}}},ba={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"register-box"}},[a("indexHeader"),t._v(" "),a("div",{staticClass:"reg-content flex"},[a("div",{staticClass:"left-box"},[a("div",{staticClass:"title whites"},[t._v(t._s(t.$t("register.register")))]),t._v(" "),a("div",{staticClass:"tab"},[a("span",{class:["pointer",{active:t.isMb}],on:{click:function(e){t.setIsMb(!0)}}},[t._v(t._s(t.$t("register.phoneRegister")))]),t._v(" "),a("span",{class:["pointer",{active:!t.isMb}],on:{click:function(e){t.setIsMb(!1)}}},[t._v(t._s(t.$t("register.emailRegister")))])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.codeTrue,expression:"!codeTrue"}],staticClass:"step-one"},[a("p",{staticClass:"tip"},[t._v(t._s(t.$t("register.country")))]),t._v(" "),a("div",{staticClass:"country-box bg-part"},[a("div",{staticClass:"flex between alcenter plr20"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.areaCity,expression:"areaCity"}],staticClass:"pointer lf_input input_color bd bg-part",staticStyle:{width:"490px"},attrs:{type:"text",readonly:""},domProps:{value:t.areaCity},on:{click:function(e){t.showCity=!t.showCity,t.showCode=!1},input:function(e){e.target.composing||(t.areaCity=e.target.value)}}}),t._v(" "),t.showCity?a("i",{staticClass:"iconfont icon-shangla_icon ft12"}):a("i",{staticClass:"iconfont icon-xiala ft12"})]),t._v(" "),t.showCity?a("ul",{staticClass:"curPer input_select scroll bg-part"},t._l(t.country,function(e,s){return a("li",{staticClass:"flex between alcenter bdb",on:{click:function(a){t.getCity(e.name_en,e.area_code)}}},[a("p",[t._v(t._s(e.name_en))]),t._v(" "),a("p",{staticClass:"tr"},[t._v(t._s(e.name_cn))])])})):t._e()])]),t._v(" "),a("div",{staticClass:"account-box "},[t.isMb?a("div",{staticClass:"tip"},[t._v(t._s(t.$t("register.enterPhone")))]):t._e(),t._v(" "),t.isMb?t._e():a("div",{staticClass:"tip"},[t._v(t._s(t.$t("register.enterEmail")))]),t._v(" "),t.isMb?a("div",{staticClass:"country-box bgtrans"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex between alcenter bdr plr20 "},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.areaCode,expression:"areaCode"}],staticClass:"lf_input pointer input_color bd bg-part",attrs:{type:"text",readonly:""},domProps:{value:t.areaCode},on:{click:function(e){t.showCode=!t.showCode,t.showCity=!1},input:function(e){e.target.composing||(t.areaCode=e.target.value)}}}),t._v(" "),t.showCode?a("i",{staticClass:"iconfont icon-shangla_icon ft12"}):a("i",{staticClass:"iconfont icon-xiala ft12"})]),t._v(" "),t.isMb?a("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],staticClass:"phone flex1 codeinput input_color bd bg-part",attrs:{type:"number"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}}):t._e()]),t._v(" "),t.showCode?a("ul",{staticClass:"curPer input_select scroll bg-part"},t._l(t.country,function(e,s){return a("li",{staticClass:"flex between alcenter bdb",on:{click:function(a){t.getCode(e.area_code)}}},[a("p",[t._v(t._s(e.name_en))]),t._v(" "),a("p",{staticClass:"tr"},[t._v(t._s(e.area_code))])])})):t._e()]):t._e(),t._v(" "),t.isMb?t._e():a("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],staticClass:"input_color bd bg-part",attrs:{type:"text"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"tip",staticStyle:{"margin-bottom":"10px"}},[t._v(t._s(t.$t("set.enterCode")))]),t._v(" "),a("div",{staticClass:"code-box flex between"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"code input_color bd bg-part",attrs:{type:"text"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),a("button",{staticClass:"code-btn curPer bg-part input_color",attrs:{type:"button"},on:{click:t.sendCode}},[t._v(t._s(t.$t("set.sendCode")))])]),t._v(" "),a("div",{staticClass:"pwd-box"},[a("div",{staticClass:"tip"},[t._v(t._s(t.$t("set.enterPsw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.pwd,expression:"pwd"}],staticClass:"pwd-input input_color bd bg-part",attrs:{type:"password",placeholder:t.$t("register.psw16")},domProps:{value:t.pwd},on:{input:function(e){e.target.composing||(t.pwd=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"repwd-box"},[a("div",{staticClass:"tip"},[t._v(t._s(t.$t("set.enterPswagain")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.repwd,expression:"repwd"}],staticClass:"repwd-input input_color bd bg-part",attrs:{type:"password",placeholder:t.$t("set.enterPswagain")},domProps:{value:t.repwd},on:{input:function(e){e.target.composing||(t.repwd=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"invite-box"},[a("div",{staticClass:"tip"},[t._v(t._s(t.$t("register.inviteCode")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.invite,expression:"invite"}],staticClass:"invite-input input_color bd bg-part",attrs:{type:"text",placeholder:t.$t("register.inviteCode")},domProps:{value:t.invite},on:{input:function(e){e.target.composing||(t.invite=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"flex alcenter ft12 mt20"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.read,expression:"read"}],staticClass:"check",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.read)?t._i(t.read,null)>-1:t.read},on:{click:t.readme,change:function(e){var a=t.read,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.read=a.concat([null])):n>-1&&(t.read=a.slice(0,n).concat(a.slice(n+1)))}else t.read=i}}}),t._v(" "),a("span",{staticClass:"ml5 baseColor"},[t._v(t._s(t.$t("register.read")))]),t._v(" "),a("router-link",{staticClass:"ml5 baseColor curPer ",attrs:{to:"/policy"}},[t._v(t._s(t.$t("register.xieyi")))])],1),t._v(" "),a("button",{staticClass:"reg-btn confirm-btn curPer radius4",attrs:{type:"button"},on:{click:t.register}},[t._v(t._s(t.$t("register.register")))])]),t._v(" "),a("div",[a("div",{staticClass:"right-tip ft12"},[a("p",[t._v(t._s(t.$t("register.tips01")))]),t._v(" "),a("p",[t._v(t._s(t.$t("register.tips02")))]),t._v(" "),a("p",[t._v(t._s(t.$t("register.tips03")))]),t._v(" "),a("p",[t._v(t._s(t.$t("register.tips04")))])])])])],1)},staticRenderFns:[]};var wa=a("VU/8")(Ca,ba,!1,function(t){a("MTc5")},null,null).exports,xa={data:function(){return{old:!1,oldPwd:"",pwd:"",rePwd:"",code:"",areaCode:"",areaCodeId:"",resetSeconds:this.$t("set.sendCode")}},created:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.areaCode=e.data.message.area_code,t.areaCodeId=e.data.message.area_code_id)}).catch(function(t){})},methods:{mexit:function(){var t=this;this.$http({url:"/api/safe/judge_password",method:"post",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.old=!0)}).catch(function(t){})},sendCode:function(){var t=this;if(this.resetSeconds==this.$t("set.sendCode")){this.oldPwd;var e=this.pwd,a=this.rePwd,s=localStorage.getItem("accountNum");if(""==e||""==a)return layer.msg(this.$t("set.enterPswTwo"));if(e==a){var i="sms_send";i=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(s)?"sms_mail":"sms_send",this.$http({url:"/api/"+i,method:"post",data:{type:"forget",user_string:s,area_code_id:t.areaCodeId,area_code:t.areaCode},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if(layer.msg(e.data.message),"ok"==e.data.type){var a=null,s=31;a=setInterval(function(){s--,t.resetSeconds=t.$t("set.rest")+s+"s",0==s&&(t.resetSeconds=t.$t("set.sendCode"),clearInterval(a))},1e3)}})}else layer.msg(this.$t("set.pswFalse"))}},reset:function(){var t=this,e=this,a=(this.oldPwd,this.pwd),s=this.rePwd,i=this.code;""!=a&&""!=s&&(a==s?this.$http({url:"/api/safe/update_password",method:"post",data:{password:a,re_password:s,code:i},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){layer.msg(a.data.message),t.pwd="",t.rePwd="",t.code="","ok"==a.data.type&&setTimeout(function(){e.$router.push("/accountSet")})}):layer.msg(this.$t("set.pswFalse")))}}},ka={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"reset-pwd"}},[a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v(t._s(t.$t("set.jsetPsw")))]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.jenterPsw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.pwd,expression:"pwd"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"16",id:"pwd"},domProps:{value:t.pwd},on:{input:function(e){e.target.composing||(t.pwd=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.jenterPswagain")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.rePwd,expression:"rePwd"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"16"},domProps:{value:t.rePwd},on:{input:function(e){e.target.composing||(t.rePwd=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.enterCode")))]),t._v(" "),a("div",{staticClass:"code-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"input-main input-content",attrs:{type:"text",maxlength:"16"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),t._v(" "),a("button",{staticClass:"redBg",attrs:{type:"button"},on:{click:t.sendCode}},[t._v(t._s(t.resetSeconds))])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",attrs:{type:"button"},on:{click:t.reset}},[t._v(t._s(t.$t("td.confirm")))])])])])])])])},staticRenderFns:[]};var Sa=a("VU/8")(xa,ka,!1,function(t){a("lcPc")},"data-v-9cd77ca4",null).exports,Ia={name:"left",data:function(){return{curActive:0,array:[{src1:a("bl2V"),src2:a("tHII"),text:this.$t("header.accountSet"),page:"accountSet"},{src1:a("QGpR"),src2:a("2e81"),text:this.$t("header.tradeLog"),page:"transferLog"},{src1:a("BZWR"),src2:a("EXKf"),text:this.$t("header.identify"),page:"authentication"}]}},created:function(){var t=this.$route.name;this.curActive=this.array.findIndex(function(e){return e.page===t||e.children&&e.children.includes(t)})},mounted:function(){var t=this;this.type=window.localStorage.getItem("type")||"",this.bus.$on("nav_name",function(e){t.curActive=t.array.findIndex(function(t){return t.page===e||t.children&&t.children.includes(e)})})},methods:{goto:function(t,e){this.curActive=t,this.$router.push({name:e,params:{lang:this.lang}})}}},Ea={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"leftNav ft16 bg-part"},[a("ul",{staticClass:"fColor1"},t._l(t.array,function(e,s){return a("li",{key:s,class:s==t.curActive?"active":"",on:{click:function(a){t.goto(s,e.page)}}},[a("img",{attrs:{src:s==t.curActive?e.src2:e.src1}}),t._v(" "),a("span",[t._v(t._s(e.text))])])}))])},staticRenderFns:[]};var Pa=a("VU/8")(Ia,Ea,!1,function(t){a("bwJF")},"data-v-1269804d",null).exports,Ra={name:"account",data:function(){return{lang:""}},components:{indexHeader:V,left:Pa}},Ba={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"box-account"},[e("indexHeader"),this._v(" "),e("div",{staticClass:"account"},[e("left",{attrs:{lang:this.lang,current:0}}),this._v(" "),e("router-view")],1)],1)},staticRenderFns:[]};var Fa=a("VU/8")(Ra,Ba,!1,function(t){a("OS2M")},"data-v-51788738",null).exports,Na={name:"accountCenter",data:function(){return{ishow:!1,showLoading:!1,accountInfo:{},dataList:[]}},methods:{goCharge:function(){this.$router.push({name:"recharge"})}},created:function(){var t=this;this.address=localStorage.getItem("address")||"",this.address&&(this.showLoading=!0,this.$http({url:"/api/wallet/list?user_id="+this.address,type:"GET"}).then(function(e){"ok"==e.data.type?(t.accountInfo=e.data.message,t.dataList=e.data.message.list):alert(e.message)}).catch(function(t){return t}))}},Ta={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-main"},[s("div",{staticClass:"account-top fColor2"},[s("div",{staticClass:"fl"},[s("p",{staticClass:"ft24"},[t._v("您好,\n\t\t\t\t\t"),s("span",{staticClass:"fColor1"},[t._v(t._s(t.accountInfo.account_number))])]),t._v(" "),s("div",{staticClass:"ft14 mt15"},[t._v("认证:\n\t\t\t\t\t"),s("img",{attrs:{src:a("CZLu")}}),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:t.ishow,expression:"ishow"}],attrs:{src:a("lUBf")}}),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:t.ishow,expression:"ishow"}],attrs:{src:a("sk0h")}}),t._v(" "),s("img",{attrs:{src:a("1VvR")}}),t._v(" "),s("img",{attrs:{src:a("XMTj")}}),t._v(" "),s("img",{directives:[{name:"show",rawName:"v-show",value:t.ishow,expression:"ishow"}],attrs:{src:a("eNYF")}})])]),t._v(" "),s("div",{staticClass:"fr mt15 mr60"},[s("span",{staticClass:"baseBtn mr20 mouseDefault",staticStyle:{"line-height":"40px"},attrs:{current:0},on:{click:t.goCharge}},[t._v("充币")])])]),t._v(" "),s("div",{staticClass:"pageBack",staticStyle:{height:"10px"}}),t._v(" "),s("div",{staticClass:"account-title"},[t._v("总资产:¥"+t._s(t.accountInfo.total_assets)+" ")]),t._v(" "),s("div",{staticClass:"list-wrap",attrs:{"element-loading-text":"Loading...","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(26,35,48,1)"}},[s("table",{staticClass:"w100 tl ft14 fColor1",attrs:{cellspacing:"0"}},[t._m(0),t._v(" "),s("tbody",t._l(t.dataList,function(e,a){return s("tr",[s("td",[t._v(t._s(e.token))]),t._v(" "),s("td",[t._v(t._s(e.balance?e.balance:"0.00"))]),t._v(" "),s("td",[t._v(t._s(e.lock_balance?e.lock_balance:"0.00"))]),t._v(" "),s("td",[t._v(t._s(e.token))])])}))])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("th",{staticClass:"w20"},[this._v("币种")]),this._v(" "),e("th",{staticClass:"w25"},[this._v("可用 ")]),this._v(" "),e("th",{staticClass:"w25"},[this._v("冻结")]),this._v(" "),e("th",{staticClass:"w20"},[this._v("交易所 ")])])}]};var Da=a("VU/8")(Na,Ta,!1,function(t){a("Yg6k")},"data-v-1d10095f",null).exports,La={name:"accountEntrust",data:function(){return{address:"",isActive:0,url:"transaction_out",page:1,more:"加载更多",loading:!1,tabTitle:[{title:"正在卖",url:"transaction_out"},{title:"正在买",url:"transaction_in"},{title:"已完成",url:"transaction_complete"}],outList:[],inList:[],comList:[]}},created:function(){this.token=localStorage.getItem("token")||""},methods:{changeEntrust:function(t,e){this.isActive=t,this.url=e,this.page=1,this.getData()},getMore:function(){this.page=++this.page,this.loading=!0,this.getData()},revoke:function(t,e){var a=this;t=t;layer.open({content:"您确定要撤销吗?",btn:["确定","取消"],yes:function(s){a.$http({url:"/api/transaction_del",method:"post",data:{id:t,type:e},headers:{Authorization:a.token}}).then(function(t){"ok"===t.data.type&&a.getdata()}).catch(function(t){})}})},getData:function(){var t=this,e=this,a=this.url,s=this.page;e.loading=!0,this.$http({url:"/api/"+a,method:"post",data:{page:s},headers:{Authorization:e.token}}).then(function(s){if(e.loading=!1,"ok"===s.data.type)if("transaction_out"==a)if(1==t.page)e.outList=s.data.message.list;else{if(s.data.message.list.length<=0)return void(e.more="没有更多数据了...");e.outList=e.outList.concat(s.data.message.list)}else"transaction_in"==a?1==t.page?e.inList=s.data.message.list:s.data.message.list.length<=0?e.more="没有更多数据了...":e.inList=t.inList.concat(s.data.message.list):e.comList=s.data.message.list}).catch(function(t){})},getOut:function(){var t=this,e=this.page;this.$http({url:"/api/transaction/entrust",method:"post",data:{address:this.address,type:"out",page:e}}).then(function(e){"ok"===(e=e.data).type&&(t.outList=t.outList.concat(e.message.data))}).catch(function(t){})}},mounted:function(){}},Ma={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-main accountEntrust"},[s("div",{staticClass:"title ft16"},t._l(t.tabTitle,function(e,a){return s("span",{staticClass:"curPer",class:{active:t.isActive==a},on:{click:function(s){t.changeEntrust(a,e.url)}}},[t._v(t._s(e.title))])})),t._v(" "),s("div",{staticClass:"content"},[0==t.isActive?s("div",{staticClass:"container"},[t._m(0),t._v(" "),s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.outList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.create_time))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.legal_name)+"/"+t._s(e.currency_name))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w14"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w20"},[t._v(t._s(e.account_number))]),t._v(" "),s("span",{staticClass:"fl w8 tr curPer ceilColor",on:{click:function(a){t.revoke(e.id,"out")}}},[t._v("撤销")])])})),t._v(" "),!t.loading&&t.outList.length>5?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer",on:{click:t.getMore}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v("加载中...")])]):t._e(),t._v(" "),t.outList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无数据")])]):t._e()]):t._e(),t._v(" "),1==t.isActive?s("div",{staticClass:"container"},[t._m(1),t._v(" "),s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.inList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.create_time))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.legal_name)+"/"+t._s(e.currency_name))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w14"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w20"},[t._v(t._s(e.account_number))]),t._v(" "),s("span",{staticClass:"fl w8 tr curPer ceilColor",on:{click:function(a){t.revoke(e.id,"in")}}},[t._v("撤销")])])})),t._v(" "),!t.loading&&t.inList.length>5?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer",on:{click:t.getMore}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v("加载中...")])]):t._e(),t._v(" "),t.inList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无数据")])]):t._e()]):t._e(),t._v(" "),2==t.isActive?s("div",{staticClass:"container"},[t._m(2),t._v(" "),s("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.comList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w20"},[t._v(t._s(e.time))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.legal_name)+"/"+t._s(e.currency_name))]),t._v(" "),s("span",{staticClass:"fl w12"},[t._v(t._s(e.number))]),t._v(" "),s("span",{staticClass:"fl w14"},[t._v(t._s(e.price))]),t._v(" "),s("span",{staticClass:"fl w8 tr curPer ceilColor",class:"out"==e.type?"redColor":""},[t._v(t._s("in"==e.type?"买入":"卖出"))])])})),t._v(" "),!t.loading&&t.outList.length>5?s("div",{staticClass:"getmore tc fColor1 ft14 mt10 curPer",on:{click:t.getMore}},[t._v(t._s(t.more))]):t._e(),t._v(" "),t.comList.length<=0?s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无数据")])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"tc"},[s("img",{staticClass:"lodw20",attrs:{src:a("F7NO"),alt:""}}),t._v(" "),s("p",{staticClass:"ft12 baseColor"},[t._v("加载中...")])]):t._e()]):t._e()])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w20"},[t._v("时间")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("币种")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"fl w14"},[t._v("价格")]),t._v(" "),a("li",{staticClass:"fl w20"},[t._v("账户")]),t._v(" "),a("li",{staticClass:"fl w8 tr"},[t._v("操作")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w20"},[t._v("时间")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("币种")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"fl w14"},[t._v("价格")]),t._v(" "),a("li",{staticClass:"fl w20"},[t._v("账户")]),t._v(" "),a("li",{staticClass:"fl w8 tr"},[t._v("操作")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w20"},[t._v("时间")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("币种")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"fl w14"},[t._v("价格")]),t._v(" "),a("li",{staticClass:"fl w8 tr"},[t._v("类型")])])}]};var Ua=a("VU/8")(La,Ma,!1,function(t){a("oBUw")},"data-v-55d9120d",null).exports,Qa=(a("VXUi"),{name:"accountSet",data:function(){return{routerList:[],account:this.$t("set.noBind"),email:this.$t("set.noBind"),isbind:this.$t("set.binds"),extension_code:"",user_name:this.$t("set.duihuan"),lever:this.$t("set.min"),widthBar:"width: 25%",bar:25,authen:0,type:"",psrc:a("fICz"),esrc:a("fICz"),bsrc:a("fICz"),msrc:a("4AGf"),auth_code:""}},created:function(){this.type=window.localStorage.getItem("type")||"",this.userInfo(),this.bindInfo(),this.getAuthcode()},methods:{getAuthcode:function(){var t=this;this.$http({url:"/api/user/authorization_code",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.auth_code=e.data.message)})},goPwd:function(){this.$router.push({path:"/forgetPwd",query:{fromSet:!0}})},goBind:function(){this.$router.push("/bindInfo")},userInfo:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(null!=e.data.message.phone&&(t.account=e.data.message.phone,t.psrc=a("4AGf"),t.bar=t.bar+25),null!=e.data.message.email&&(t.email=e.data.message.email,t.esrc=a("4AGf"),t.bar=t.bar+25),t.extension_code=e.data.message.extension_code,t.authen=e.data.message.review_status,2==t.authen&&(t.bar=t.bar+25),50==t.bar?t.lever=t.$t("set.middle"):75==t.bar?t.lever=t.$t("set.heigh"):100==t.bar&&(t.lever=t.$t("set.strong")),t.widthBar="width:"+t.bar+"%")}).catch(function(t){})},bindInfo:function(){var t=this;this.$http({url:"/api/jc/bind",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&e.data.message.user_name&&(t.user_name=e.data.message.user_name,t.isbind=t.$t("set.reset"),t.bsrc=a("4AGf"))}).catch(function(t){})},copy:function(t){if(1==t){var e=this,a=location.origin;(s=new Clipboard("#copy",{text:function(){return a+"/dist/#/components/register?extension_code="+e.extension_code}})).on("success",function(t){e.flags=!0,layer.msg(e.$t("set.copysuccess"))}),s.on("error",function(t){e.flags=!1,layer.msg(e.$t("set.recopy"))})}else{var s;e=this,a=location.origin;(s=new Clipboard("#copy",{text:function(){return e.auth_code}})).on("success",function(t){e.flags=!0,layer.msg(e.$t("set.copysuccess"))}),s.on("error",function(t){e.flags=!1,layer.msg(e.$t("set.recopy"))})}}}}),za={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-main"},[s("div",{staticClass:"clear mb50"},[t._m(0),t._v(" "),s("div",{staticClass:"fl ml30"},[s("p",{staticClass:"ft16 white"},[t._v(t._s(t.$t("set.uaccont"))+"\n "),s("span",{staticClass:"ml10"},[t._v(t._s(t.lever))])]),t._v(" "),s("div",{staticClass:"bar-bottom"},[s("div",{staticClass:"bar-top",style:t.widthBar})]),t._v(" "),s("p",{staticClass:"fColor2 ft14"},[t._v("\n "+t._s(t.$t("set.uaccont"))+" "+t._s(t.lever)+","+t._s(t.$t("set.complete")))])])]),t._v(" "),s("ul",[s("li",[s("img",{attrs:{src:a("4AGf")}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("set.mycode")))]),t._v(" "),s("p",{staticClass:"fl"},[s("span",{staticClass:"fColor1"},[t._v(t._s(t.extension_code))])]),t._v(" "),s("span",{staticClass:"fr base ml25 mouseDefault"}),t._v(" "),s("span",{staticClass:"fr base mouseDefault",attrs:{id:"copy"},on:{click:function(e){t.copy(1)}}},[t._v(t._s(t.$t("set.copycode")))])]),t._v(" "),s("li",[s("img",{attrs:{src:a("4AGf")}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("set.mycode2")))]),t._v(" "),s("p",{staticClass:"fl"},[s("span",{staticClass:"fColor1"},[t._v(t._s(t.auth_code))])]),t._v(" "),s("span",{staticClass:"fr base ml25 mouseDefault"}),t._v(" "),s("span",{staticClass:"fr base mouseDefault",attrs:{id:"copy"},on:{click:function(e){t.copy(2)}}},[t._v(t._s(t.$t("set.copycode2")))])]),t._v(" "),t.account.length>0?s("li",[s("img",{attrs:{src:t.psrc}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("set.bindphone")))]),t._v(" "),s("p",{staticClass:"fl"},[s("span",{staticClass:"fColor1"},[t._v(t._s(t.account))])]),t._v(" "),s("span",{staticClass:"fr base ml25 mouseDefault"}),t._v(" "),s("span",{staticClass:"fr base mouseDefault"})]):t._e(),t._v(" "),t.email.length>0?s("li",[s("img",{attrs:{src:t.esrc}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("set.bindemail")))]),t._v(" "),s("p",{staticClass:"fl"},[t._v(t._s(t.email)+" ")]),t._v(" "),s("span",{staticClass:"fr base ml25 mouseDefault"}),t._v(" "),s("span",{staticClass:"fr base mouseDefault"}),t._v(" "),""==t.email?s("router-link",{staticClass:"fr base",attrs:{to:"/bindEmail"}},[t._v(t._s(t.$t("set.bind")))]):s("span",{staticClass:"fr base"},[t._v(t._s(t.$t("set.binded")))])],1):t._e(),t._v(" "),s("li",[s("img",{attrs:{src:a("4AGf")}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("set.loginpwd")))]),t._v(" "),s("p",{staticClass:"fl"},[t._v(t._s(t.$t("set.net")))]),t._v(" "),s("span",{staticClass:"fr base ml25 mouseDefault"}),t._v(" "),s("span",{staticClass:"fr base mouseDefault",on:{click:function(e){t.goPwd()}}},[t._v(t._s(t.$t("set.reset")))])]),t._v(" "),s("li",[s("img",{attrs:{src:t.msrc}}),t._v(" "),s("span",{staticClass:"ml20"},[t._v(t._s(t.$t("lever.psw")))]),t._v(" "),s("p",{staticClass:"fl"},[t._v(t._s(t.$t("set.setPsw")))]),t._v(" "),s("span",{staticClass:"fr ml25 mouseDefault"}),t._v(" "),s("router-link",{staticClass:"fr base mouseDefault",attrs:{to:"/bindmpwd"}},[t._v(t._s(t.$t("set.goSet")))])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"fl"},[e("img",{attrs:{src:a("21hD")}})])}]};var Wa=a("VU/8")(Qa,za,!1,function(t){a("8OyE")},"data-v-aa354d20",null).exports,Ya={name:"authentication",data:function(){return{name:"",card_id:"",src1:"./static/imgs/shenfenzhengzhengmian.png",src2:"./static/imgs/shenfenzhengfanmian.png",src3:"./static/imgs/shouchishenfenzheng.png",review_status:3}},created:function(){this.token=localStorage.getItem("token")},methods:{file1:function(){var t=this,e=new FileReader;e.readAsDataURL(event.target.files[0]),e.onload=function(t){};var a=new FormData;a.append("file",event.target.files[0]),$.ajax({url:"/api/upload",type:"post",data:a,processData:!1,contentType:!1,success:function(e){"ok"==e.type?t.src1=e.message:layer.msg(e.message)}})},file2:function(){var t=this,e=new FileReader;e.readAsDataURL(event.target.files[0]),e.onload=function(t){};var a=new FormData;a.append("file",event.target.files[0]),$.ajax({url:"/api/upload",type:"post",data:a,processData:!1,contentType:!1,success:function(e){"ok"==e.type?t.src2=e.message:layer.msg(e.message)}})},file3:function(){var t=this,e=new FileReader;e.readAsDataURL(event.target.files[0]),e.onload=function(t){};var a=new FormData;a.append("file",event.target.files[0]),$.ajax({url:"/api/upload",type:"post",data:a,processData:!1,contentType:!1,success:function(e){"ok"==e.type?t.src3=e.message:layer.msg(e.message)}})},updata:function(){var t=this,e=this.$utils.trim(t.name),a=this.$utils.trim(t.card_id);""!=this.name.length?""!=this.card_id.length?"./static/imgs/shenfenzhengzhengmian.png"!=t.src1&&"./static/imgs/shenfenzhengfanmian.png"!=t.src2&&"./static/imgs/shouchishenfenzheng.png"!=t.src3?this.$http({url:"/api/user/real_name",method:"post",data:{name:e,card_id:a,front_pic:t.src1,reverse_pic:t.src2,hand_pic:t.src3},headers:{Authorization:t.token}}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&setTimeout(function(){t.$router.push("/")},500)}).catch(function(t){}):layer.msg(this.$t("auth.pimg")):layer.tips(this.$t("auth.pidcard"),"#card"):layer.tips(this.$t("auth.pname"),"#name")},Info:function(){var t=this;this.$http({url:"/api/user/center",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){t.review_status=e.data.message.review_status}).catch(function(t){})}},mounted:function(){this.Info()}},Ga={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main wrap fColor1"},[a("div",{staticClass:"title bg-part"},[t._v(t._s(t.$t("auth.identity")))]),t._v(" "),a("div",{staticClass:"main-content mt20 bg-part"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.review_status,expression:"review_status==0"}]},[a("div",{staticClass:"main-input"},[a("div",{staticClass:"flex alcenter center"},[a("span",[t._v(t._s(t.$t("auth.name"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"bg-part bd input_color",attrs:{type:"text",placeholder:t.$t("auth.pname"),id:"name"},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"flex alcenter center mt20"},[a("span",[t._v(t._s(t.$t("auth.idcard"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card_id,expression:"card_id"}],staticClass:"bg-part bd input_color",attrs:{type:"text",placeholder:t.$t("auth.pidcard"),id:"card"},domProps:{value:t.card_id},on:{input:function(e){e.target.composing||(t.card_id=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"mt40 fColor1 ft14 tc"},[t._v(t._s(t.$t("auth.upimg")))]),t._v(" "),a("div",{staticClass:"idimg flex center mt40"},[a("div",[a("img",{attrs:{src:t.src1,alt:""}}),t._v(" "),a("input",{attrs:{type:"file",accept:"image/*",name:"file"},on:{change:t.file1}})]),t._v(" "),a("div",[a("img",{attrs:{src:t.src2,alt:""}}),t._v(" "),a("input",{attrs:{type:"file",accept:"image/*",name:"file"},on:{change:t.file2}})]),t._v(" "),a("div",[a("img",{attrs:{src:t.src3,alt:""}}),t._v(" "),a("input",{attrs:{type:"file",accept:"image/*",name:"file"},on:{change:t.file3}})])]),t._v(" "),a("div",{staticClass:"updata tc"},[a("input",{staticClass:"curPer",attrs:{type:"button",value:t.$t("auth.submit")},on:{click:t.updata}})])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.review_status,expression:"review_status==1"}]},[a("div",{staticClass:"tc ft30 au-statue"},[t._v(t._s(t.$t("auth.auditing")))])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.review_status,expression:"review_status==2"}]},[a("div",{staticClass:"tc ft30 au-statue"},[t._v(t._s(t.$t("auth.certified")))])])])])},staticRenderFns:[]};var ja=a("VU/8")(Ya,Ga,!1,function(t){a("ruU9")},"data-v-d942beca",null).exports,Va={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-main accountMessage"},[s("div",{staticClass:"account-title"},[s("span",{staticClass:"checkAll curPer"},[s("input",{staticClass:"curPer",attrs:{type:"checkbox"}})]),t._v(" "),s("span",{staticClass:"ml10 curPer"},[t._v("全选")]),t._v(" "),s("span",{staticClass:"baseColor fr curPer"},[t._v("清空消息")])]),t._v(" "),s("ul",{staticClass:"fColor1 hide"},[s("li",{staticClass:"clear"},[s("div",{staticClass:"fl curPer"},[s("input",{staticClass:"checkbox",attrs:{type:"checkbox"}})]),t._v(" "),s("div",{staticClass:"ml25"},[s("span",[t._v("注册成功")]),t._v(" "),s("span",{staticClass:"fColor2 fr ft4"},[t._v("2018-08-03 11:10:21")]),t._v(" "),s("p",{staticClass:"mt15 ft14 fColor2"},[t._v("恭喜您,注册成功!成为【INVESTDIGITAL LIMITED】一名用户。")])])])]),t._v(" "),s("div",{staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("暂无消息")])])])}]};var Oa=a("VU/8")({name:"accountMessage",data:function(){return{}}},Va,!1,function(t){a("4bdA")},"data-v-79b3dc10",null).exports,Za={name:"setCash",data:function(){return{}},components:{indexHeader:V},methods:{goBack:function(){this.$router.back(-1)}}},Ja={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("index-header"),this._v(" "),e("div",{staticClass:"account-wrap"},[e("div",{staticClass:"account"},[e("div",[e("div",{staticClass:"back-nav fColor1 ft20"},[this._v("\n 设置提币密码\n "),e("span",{staticClass:"fr fColor2 mouseDefault",on:{click:this.goBack}},[this._v("<<返回")])]),this._v(" "),e("div",{staticClass:"nav-after"})]),this._v(" "),this._m(0)])])],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-content"},[a("div",{staticClass:"main ft14"},[a("div",[a("span",{staticClass:"fColor2 left"},[t._v("提币密码")]),t._v(" "),a("input",{staticClass:"main-input",attrs:{type:"password",maxlength:"6",placeholder:"6位字母或数字"}})]),t._v(" "),a("div",{staticClass:"mt40"},[a("span",{staticClass:"fColor2 left"},[t._v("确认密码")]),t._v(" "),a("input",{staticClass:"main-input",attrs:{type:"password",maxlength:"6",placeholder:"请再次输入密码"}})]),t._v(" "),a("div",{staticClass:"mt60"},[a("span",{staticClass:"fColor2 left"},[t._v(" ")]),t._v(" "),a("div",{staticClass:"baseBtn ml20 mouseDefault"},[t._v("完成")])])])])}]};var Ha=a("VU/8")(Za,Ja,!1,function(t){a("KQ9c")},"data-v-9c0500ca",null).exports,Ka={name:"recharge",data:function(){return{addr:"",url:""}},components:{indexHeader:V,left:Pa},methods:{goRecord:function(){this.$router.push({name:"coinRecord"})},init:function(){var t=new Clipboard("#copy");t.on("success",function(t){alert("复制成功")}),t.on("error",function(t){alert("复制失败")})}},created:function(){var t=this;this.address=localStorage.getItem("address")||"",this.address&&this.$http({url:"/api/money/rechange?user_id="+this.address,type:"GET"}).then(function(e){t.addr=e.data.message.company_eth_address,t.url="http://qr.liantu.com/api.php?&w=300&text="+e.data.message.company_eth_address;t.addr,new Clipboard("#copy")}).catch(function(t){return t})},mounted:function(){this.init()}},Xa={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main"},[a("div",{staticClass:"account-title"},[t._v("\n 充币\n "),a("span",{staticClass:"fr base mouseDefault",on:{click:t.goRecord}},[t._v("充币记录")])]),t._v(" "),a("div",{staticClass:"recharge-wrap ft14 fColor2"},[a("div",{staticClass:"mt40 clear"},[a("div",{staticClass:"left fl tr"},[t._v("充币地址")]),t._v(" "),a("div",{staticClass:"right fl"},[a("img",{staticClass:"qrcode",attrs:{src:t.url}}),t._v(" "),a("p",{staticClass:"ft20 fColor1 mt15"},[a("span",{attrs:{id:"copy-text"}},[t._v(t._s(t.addr))]),t._v(" "),a("span",{staticClass:"base ml20 f14 mouseDefault",attrs:{id:"copy","data-clipboard-action":"copy","data-clipboard-target":"#copy-text"}},[t._v("复制")])])])]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip"},[a("p",[t._v("温馨提示")]),t._v(" "),a("p",[t._v("• 请勿向上述地址充值任何非 JNB 资产,否则资产将不可找回。")]),t._v(" "),a("p",[t._v("• 您充值至上述地址后,需要整个网络节点的确认,6次网络节点确认后到账,到账时间一般是10分钟-60分钟之间。")]),t._v(" "),a("p",[t._v("• USDT充币仅支持simple send的方法,使用其他方法(send all)的充币暂时无法上账,请您谅解。")]),t._v(" "),a("p",[t._v("• 您充值至上述地址后,需要整个网络节点的确认,1次网络确认后到账,6次网络确认后可提币。")]),t._v(" "),a("p",[t._v("• 最小充值金额:,小于最小金额的充值将不会上账且无法退回。 100 USDT小于最小金额的充值将不会上账且无法退回。")]),t._v(" "),a("p",[t._v("• 您的充值地址不会经常改变,可以重复充值;如有更改,我们会尽量通过网站公告或邮件通知您。")]),t._v(" "),a("p",[t._v("• 请务必确认电脑及浏览器安全,防止信息被篡改或泄露。")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip",staticStyle:{display:"none"}},[a("p",[t._v("温馨提示")]),t._v(" "),a("p",[t._v("• 请勿向上述地址充值任何非USDT资产,否则资产将不可找回。")]),t._v(" "),a("p",[t._v("• 您充值至上述地址后,需要整个网络节点的确认,15次网络确认后到账,30次网络确认后可提币。")]),t._v(" "),a("p",[t._v("• 最小充值金额:,小于最小金额的充值将不会上账且无法退回。 0.01 USDT 小于最小金额的充值将不会上账且无法退回。")]),t._v(" "),a("p",[t._v("• 目前不支持使用智能合约或区块奖励(Coinbase)的转账充值,智能合约或区块奖励的转账将不会上账,请您谅解。")]),t._v(" "),a("p",[t._v("• 您的充值地址不会经常改变,可以重复充值;如有更改,我们会尽量通过网站公告或邮件通知您。")]),t._v(" "),a("p",[t._v("• 请务必确认电脑及浏览器安全,防止信息被篡改或泄露。")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip",staticStyle:{display:"none"}},[a("p",[t._v("温馨提示")]),t._v(" "),a("p",[t._v("• 请勿向上述地址充值任何非 USDT 资产,否则资产将不可找回。")]),t._v(" "),a("p",[t._v("• 您充值至上述地址后,需要整个网络节点的确认,1次网络确认后到账,6次网络确认后可提币。")]),t._v(" "),a("p",[t._v("• 最小充值金额:,小于最小金额的充值将不会上账且无法退回。 0.01 USDT 小于最小金额的充值将不会上账且无法退回。")]),t._v(" "),a("p",[t._v("• 您的充值地址不会经常改变,可以重复充值;如有更改,我们会尽量通过网站公告或邮件通知您。")]),t._v(" "),a("p",[t._v("• 为保障资金安全,当您账户安全策略变更、密码修改、使用新地址提币,我们会对提币进行人工审核,请耐心等待工作人员电话或邮件联系。")]),t._v(" "),a("p",[t._v("• 请务必确认电脑及浏览器安全,防止信息被篡改或泄露。")])])}]};var qa=a("VU/8")(Ka,Xa,!1,function(t){a("cZOJ")},"data-v-0ab5f5a4",null).exports,$a=a("woOf"),ts=a.n($a),es={name:"rechargeMoney",components:{indexHeader:V,left:Pa},data:function(){return{current:0,active:0,id:"",way:0,tabList:["充值","提现"],chargeInfo:[{type:"微信",name:"",account:"",imgurl:"../assets/images/wx.png"},{type:"支付宝",name:"",account:"",imgurl:"../assets/images/zhifubao.png"},{type:"银行",name:"",account:"",imgurl:"../assets/images/bank.png"}],aceiteList:{},submitInfo:{mobile:"",deal_account:"",money:""}}},created:function(){var t=this.$route.query;this.current=t.current,this.id=t.id,this.address=localStorage.getItem("address")||"",this.init()},mounted:function(){},methods:{change:function(t){this.current=t},setType:function(){this.chargeInfo[0].name=this.aceiteList.wechat_nickname,this.chargeInfo[0].account=this.aceiteList.wechat_account,this.chargeInfo[1].name=this.aceiteList.ali_nickname,this.chargeInfo[1].account=this.aceiteList.ali_account,this.chargeInfo[2].type=this.aceiteList.bank_name,this.chargeInfo[2].name=this.aceiteList.bank_account,this.chargeInfo[2].account=this.aceiteList.bank_address},init:function(){var t=this,e=layer.load();this.$http({url:"/api/acceptor/info?id="+this.id+"&address="+this.address,method:"get"}).then(function(a){layer.close(e),"ok"==a.data.type&&(t.aceiteList=a.data.message,t.setType())})},sendData:function(){var t=this;if(this.submitInfo.mobile)if(this.submitInfo.deal_account)if(!this.submitInfo.money||this.submitInfo.money<=0)layer.msg("请输入金额!");else if(""!==this.way){var e="";switch(this.way){case 0:e="we_chat";break;case 1:e="ali_pay";break;case 2:e="bank"}var a={acceptor_id:this.id,address:this.address,way:e,type:0==this.current?"buy":"sell"};a=ts()(a,this.submitInfo),this.$http({url:"/api/acceptor/deal",method:"POST",data:a}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),t.$router.push("coinRecord")):layer.msg(e.message)})}else layer.msg("请选择充值方式!");else layer.msg("请输入账号!");else layer.msg("请输入手机号!")}}},as={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main"},[t._m(0),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"tabBar fColor1 ft18"},t._l(t.tabList,function(e,s){return a("span",{staticClass:"ml25",class:{active:s==t.current},on:{click:function(e){t.change(s)}}},[t._v(t._s(e))])})),t._v(" "),a("div",{staticClass:"container fColor1 mt40"},[a("div",[a("span",{staticClass:"main_title"},[t._v("承兑商")]),t._v(" "),a("span",{staticClass:"inblock ml40"},[t._v(t._s(t.aceiteList.name))])]),t._v(" "),a("div",{staticClass:"mt40"},[a("span",{staticClass:"main_title"},[t._v("手机号码")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.submitInfo.mobile,expression:"submitInfo.mobile"}],staticClass:"main_input",attrs:{type:"tel",placeholder:"请输入你的手机号码"},domProps:{value:t.submitInfo.mobile},on:{input:function(e){e.target.composing||t.$set(t.submitInfo,"mobile",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"mt40"},[a("span",{staticClass:"main_title"},[t._v("交易账号")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.submitInfo.deal_account,expression:"submitInfo.deal_account"}],staticClass:"main_input",attrs:{type:"text",placeholder:"请输入你的交易账号"},domProps:{value:t.submitInfo.deal_account},on:{input:function(e){e.target.composing||t.$set(t.submitInfo,"deal_account",e.target.value)}}})]),t._v(" "),0==this.current?a("div",{staticClass:"mt40"},[a("span",{staticClass:"main_title"},[t._v("充值金额(CNY)")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.submitInfo.money,expression:"submitInfo.money"}],staticClass:"main_input",attrs:{type:"number",placeholder:"请输入你的充值金额"},domProps:{value:t.submitInfo.money},on:{input:function(e){e.target.composing||t.$set(t.submitInfo,"money",e.target.value)}}})]):t._e(),t._v(" "),1==this.current?a("div",{staticClass:"mt40"},[a("span",{staticClass:"main_title"},[t._v("提现金额(CNY)")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.submitInfo.money,expression:"submitInfo.money"}],staticClass:"main_input",attrs:{type:"number",placeholder:"请输入你的提现金额"},domProps:{value:t.submitInfo.money},on:{input:function(e){e.target.composing||t.$set(t.submitInfo,"money",e.target.value)}}}),t._v(" "),a("span",{staticClass:"fColor2"},[t._v("(账户余额: "+t._s(t.aceiteList.user_balance)+" CNY)")]),t._v(" "),t._m(1)]):t._e(),t._v(" "),a("div",{staticClass:"mt40"},[a("span",{staticClass:"main_title"},[t._v("请选择充值方式:")]),t._v(" "),a("div",{staticClass:"mt40 paycontent"},t._l(t.chargeInfo,function(e,s){return a("div",{staticClass:"paybox payimg inblock"},[a("p",[t._v(t._s(e.type))]),t._v(" "),a("p",{staticClass:"mt5"},[a("span",[t._v("姓名:"+t._s(e.name))]),t._v(" "),a("span",[t._v("账户:"+t._s(e.account))])]),t._v(" "),a("p",{staticClass:"choose fColor2"},[a("span",[t._v("选择")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.way,expression:"way"}],attrs:{type:"radio",name:"choose"},domProps:{value:s,checked:t._q(t.way,s)},on:{change:function(e){t.way=s}}})])])}))]),t._v(" "),a("div",{staticClass:"mt40"},[a("div",{staticClass:"btn curPer tc ml20",on:{click:t.sendData}},[t._v("\n 确认\n ")])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"back-nav fColor1 ft20"},[this._v("\n 承兑提现\n "),e("span",{staticClass:"fr fColor2 mouseDefault"},[this._v("<<返回")])]),this._v(" "),e("div",{staticClass:"nav-after"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"attention ft12 mt15"},[e("p",[this._v("*注意:")]),this._v(" "),e("span",[this._v("提现订单提交成功后请关注订单状态,如果兑商标记已转账后20分钟内用户未确认,该订单会自动确认。")])])}]};var ss=a("VU/8")(es,as,!1,function(t){a("S2CU")},"data-v-4fff5ea6",null).exports,is={name:"recharge",components:{indexHeader:V,left:Pa},data:function(){return{address:"",current:0,way:"buy",wayList:[{title:"充币记录",way:"buy"},{title:"提币记录",way:"sell"}],coinList:[]}},created:function(){this.address=localStorage.getItem("address")||""},methods:{changeWay:function(t,e){this.current=t,this.way=e,this.getRecord()},getRecord:function(){var t=this;if(""!=this.address){var e=this.way,a=this.address;this.$http({url:"/api/acceptor/my_deal?address="+a+"&way="+e,method:"get"}).then(function(e){"ok"===(e=e.data).type&&(t.coinList=e.message)}).catch(function(t){})}}},mounted:function(){this.getRecord()}},ns={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main"},[t._m(0),t._v(" "),a("div",{staticClass:"account-title mouseDefault",staticStyle:{"padding-left":"30px"}},t._l(t.wayList,function(e,s){return a("span",{class:{active:s==t.current},on:{click:function(a){t.changeWay(s,e.way)}}},[t._v(t._s(e.title))])})),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"container"},[t._m(1),t._v(" "),a("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.coinList,function(e,s){return a("li",{staticClass:"clear"},[a("span",{staticClass:"fl w20"},[t._v(t._s(e.create_time))]),t._v(" "),a("span",{staticClass:"fl w10"},[t._v(t._s(e.deal_account))]),t._v(" "),a("span",{staticClass:"fl w10"},[t._v(t._s(e.acceptor_name))]),t._v(" "),a("span",{staticClass:"fl w15"},[t._v(t._s(e.hes_account))]),t._v(" "),a("span",{staticClass:"fl w10"},[t._v(t._s(e.way_name))]),t._v(" "),a("span",{staticClass:"fl w15"},[t._v(t._s(e.money))]),t._v(" "),a("span",{staticClass:"fl w15 tr curPer"},[t._v(t._s(e.update_time))])])}))])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"back-nav fColor1 ft20"},[this._v("\n 充币提币记录\n "),e("span",{staticClass:"fr fColor2 mouseDefault"},[this._v("<<返回")])]),this._v(" "),e("div",{staticClass:"nav-after"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w20"},[t._v("承兑时间")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("交易账号")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("承兑商")]),t._v(" "),a("li",{staticClass:"fl w15"},[t._v("承兑商交易账号")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("交易方式")]),t._v(" "),a("li",{staticClass:"fl w15"},[t._v("交易金额")]),t._v(" "),a("li",{staticClass:"fl w15 tr"},[t._v("状态")])])}]};var os=a("VU/8")(is,ns,!1,function(t){a("NTrX")},"data-v-12c18b64",null).exports,rs={name:"noticeDetail",components:{indexHeader:V},data:function(){return{title:"",content:"",abstract:"",update_time:"",id:""}},watch:{$route:function(t,e){this.getDetail()}},created:function(){this.address=localStorage.getItem("token")||"",this.getDetail()},mounted:function(){},methods:{goBefore:function(){this.$router.back(-1)},getDetail:function(){var t=this;this.id=this.$route.query.id,this.$http({url:"/api/news/detail",method:"post",data:{id:this.id},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"===(e=e.data).type&&(t.title=e.message.title,t.content=e.message.content,t.abstract=e.message.abstract,t.update_time=e.message.update_time,t.setProperty())}).catch(function(t){})},setProperty:function(){var t=document.getElementsByTagName("p");HTMLCollection.prototype.forEach=function(t){[].slice.call(this).forEach(t)},t.forEach(function(t,e){t.style.backgroundColor="#666 !important"})}}},cs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"noticeDetail"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"account-wrap"},[a("div",{staticClass:"account"},[a("div",[a("div",{staticClass:"back-nav fColor1 ft20"},[a("p",{staticClass:"fr fColor2 curPer",on:{click:t.goBefore}},[t._v("<< "),a("span",[t._v(t._s(t.$t("news.back")))])]),t._v(" "),a("span",{staticClass:"fl fColor2 curPer"},[t._v(t._s(t.title))])]),t._v(" "),a("div",{staticClass:"nav-after"})]),t._v(" "),a("div",{staticClass:"account-content"},[a("div",{staticClass:"detailBig"},[a("div",{staticClass:"detailContent fColor2"},[a("p",{ref:"con",domProps:{innerHTML:t._s(t.content)}})]),t._v(" "),a("div",{staticClass:"fColor2 mt40"},[a("p",{staticClass:"tr"},[t._v(t._s(t.abstract))]),t._v(" "),a("p",{staticClass:"tr mt5"},[t._v(t._s(t.update_time))])])])])])])],1)},staticRenderFns:[]};var ls=a("VU/8")(rs,cs,!1,function(t){a("Omcq")},"data-v-49fefda0",null).exports,ds={name:"noticeDetail",components:{indexHeader:V},data:function(){return{title:"",content:"",abstract:"",update_time:"",id:""}},created:function(){this.address=localStorage.getItem("token")||"",this.getData()},mounted:function(){},methods:{goBefore:function(){this.$router.back(-1)},getData:function(){var t=this;this.$http({url:"/api/news/list",method:"post",data:{c_id:10}}).then(function(e){"ok"===e.data.type&&(t.id=e.data.message.list[0].id,t.getDetail())}).catch(function(t){})},getDetail:function(){var t=this;this.$http({url:"/api/news/detail",method:"post",data:{id:this.id}}).then(function(e){"ok"===(e=e.data).type&&(t.title=e.message.title,t.content=e.message.content)}).catch(function(t){})},setProperty:function(){var t=document.getElementsByTagName("p");HTMLCollection.prototype.forEach=function(t){[].slice.call(this).forEach(t)},t.forEach(function(t,e){t.style.backgroundColor="#666 !important"})}}},us={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"noticeDetail"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"account-wrap"},[a("div",{staticClass:"account"},[a("div",[a("div",{staticClass:"back-nav fColor1 ft20"},[a("span",{staticClass:"fr fColor2 curPer",on:{click:t.goBefore}},[t._v("<< "+t._s(t.$t("news.back")))])]),t._v(" "),a("div",{staticClass:"nav-after"})]),t._v(" "),a("div",{staticClass:"account-content"},[a("div",{staticClass:"detailBig"},[a("div",{staticClass:"mb30 clear"},[a("span",{staticClass:"fColor1 w90 fl tc"},[t._v(t._s(t.title))])]),t._v(" "),a("div",{staticClass:"detailContent fColor2"},[a("p",{ref:"con",domProps:{innerHTML:t._s(t.content)}})])])])])])],1)},staticRenderFns:[]};var ms=a("VU/8")(ds,us,!1,function(t){a("Yv1x")},"data-v-b054890a",null).exports,ps={name:"aceite",data:function(){return{isActive:0,tabList:[{title:"CNY承兑"},{title:"虚拟货币承兑"}],tab2List:[{title:"充币记录"},{title:"提币记录"}],operatorList:[{name:"充值"},{name:"提现"}],aceiteList:[]}},created:function(){this.init()},mounted:function(){},methods:{init:function(){var t=this;this.address=localStorage.getItem("address")||"",""!=this.address&&this.$http({url:"/api/acceptor/list",method:"get"}).then(function(e){layer.close(i),"ok"==e.data.type&&(t.aceiteList=e.data.message)}).catch(function(t){})},goto:function(t,e){this.$router.push({name:"rechargeMoney",query:{id:t,current:e}})},goRecord:function(t){this.$router.push({name:"chargeRecord",query:{current:t}})}}},hs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main accountEntrust"},[a("div",{staticClass:"account-top fColor2"},[a("div",{staticClass:"fl"},[a("div",{staticClass:"title ft16"},t._l(t.tabList,function(e,s){return a("span",{staticClass:"curPer",class:{active:t.isActive==s}},[t._v(t._s(e.title))])}))]),t._v(" "),a("div",{staticClass:"fr mt15 mr60"},t._l(t.tab2List,function(e,s){return a("span",{staticClass:"baseBtn mr20 mouseDefault",on:{click:function(e){t.goRecord(s)}}},[t._v(t._s(e.title))])}))]),t._v(" "),a("div",{staticClass:"content"},[0==t.isActive?a("div",{staticClass:"container"},[t._m(0),t._v(" "),a("ul",{staticClass:"list-item fColor1 ft12 "},t._l(t.aceiteList,function(e){return a("li",{staticClass:"clear"},[a("span",{staticClass:"fl w10"},[t._v(t._s(e.user_id))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.recharge_amount))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.recharge_rate))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.cash_amount))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.cash_rate))]),t._v(" "),a("div",t._l(t.operatorList,function(s,i){return a("span",{staticClass:"fl w6 tr curPer ceilColor",on:{click:function(a){t.goto(e.id,i)}}},[t._v(t._s(s.name))])}))])}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear "},[a("li",{staticClass:"fl w10"},[t._v("id")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("供应商")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("充值额度")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("充值费率")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("提现额度")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("提现费率")]),t._v(" "),a("li",{staticClass:"fl w6 tr"},[t._v("操作")])])}]};var vs=a("VU/8")(ps,hs,!1,function(t){a("Vd7J")},"data-v-75121e6a",null).exports,_s={name:"aceite",data:function(){return{isRegion:!1,aceiteList:[],more:"加载更多",page:1}},created:function(){this.token=localStorage.getItem("token")||""},methods:{getData:function(){var t=this;this.$http({url:"/api/user/region_users?page="+t.page,method:"get",headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type?e.data.message.data.length>0?t.aceiteList=t.aceiteList.concat(e.data.message.data):t.more="没有更多数据了...":t.isRegion=!0}).catch(function(t){})},getmore:function(){this.page++,this.getData()}},mounted:function(){this.getData()}},fs={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-main accountEntrust"},[t._m(0),t._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"container"},[t._m(1),t._v(" "),s("ul",{staticClass:"list-item fColor1 ft12 "},t._l(t.aceiteList,function(e){return s("li",{staticClass:"clear"},[s("span",{staticClass:"fl w30"},[t._v(t._s(e.city_name)+" "+t._s(e.district_name))]),t._v(" "),s("span",{staticClass:"fl w30"},[t._v(t._s(e.phone))]),t._v(" "),s("span",{staticClass:"fl w30 tc"},[t._v(t._s(e.time))])])})),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.aceiteList.length>0,expression:"aceiteList.length>0"}],staticClass:"more tc ft12",on:{click:t.getmore}},[t._v(t._s(t.more))])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isRegion,expression:"isRegion"}],staticClass:"no_data tc"},[s("img",{attrs:{src:a("f0hK"),alt:""}}),t._v(" "),s("p",{staticClass:"fColor2 ft18"},[t._v("你不是区域代理,无权操作")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"account-top fColor2"},[e("div",{staticClass:"fl"},[e("div",{staticClass:"title ft16"},[e("span",[this._v("区域代理")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"list-title fColor2 ft12 clear "},[e("li",{staticClass:"fl w30"},[this._v("地区")]),this._v(" "),e("li",{staticClass:"fl w30"},[this._v("联系方式")]),this._v(" "),e("li",{staticClass:"fl w30 tc"},[this._v("时间")])])}]};var gs=a("VU/8")(_s,fs,!1,function(t){a("D4td")},"data-v-d35a8038",null).exports,ys={name:"recharge",components:{indexHeader:V,left:Pa},data:function(){return{address:"",current:0,way:"buy",wayList:[{title:"充币记录",way:"buy"},{title:"提币记录",way:"sell"}],coinList:[]}},created:function(){this.address=localStorage.getItem("address")||"",this.current=this.$route.query.current},methods:{changeWay:function(t,e){this.current=t,this.way=e,this.getRecord()},goBack:function(){this.$router.go(-1)},getRecord:function(){var t=this;""!=this.address&&this.$http({url:"/api/acceptor/my_deal?address="+this.address+"&type="+this.way,method:"get"}).then(function(e){"ok"===(e=e.data).type&&(t.coinList=e.message)}).catch(function(t){})}},mounted:function(){this.getRecord()}},As={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main"},[a("div",[a("div",{staticClass:"back-nav fColor1 ft20"},[t._v("\n 充币提币记录\n "),a("span",{staticClass:"fr fColor2 mouseDefault",on:{click:t.goBack}},[t._v("<<返回")])]),t._v(" "),a("div",{staticClass:"nav-after"})]),t._v(" "),a("div",{staticClass:"account-title mouseDefault",staticStyle:{"padding-left":"30px"}},t._l(t.wayList,function(e,s){return a("span",{class:{active:s==t.current},on:{click:function(a){t.changeWay(s,e.way)}}},[t._v(t._s(e.title))])})),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"container"},[t._m(0),t._v(" "),a("ul",{staticClass:"list-item fColor1 ft12"},t._l(t.coinList,function(e,s){return a("li",{staticClass:"clear"},[a("span",{staticClass:"fl w10"},[t._v(t._s(e.money)+" CNY")]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.deal_account))]),t._v(" "),a("span",{staticClass:"fl w10"},[t._v(t._s(e.acceptor_name))]),t._v(" "),a("span",{staticClass:"fl w12"},[t._v(t._s(e.hes_account))]),t._v(" "),"bank"==e.way?a("span",{staticClass:"fl w10"},[t._v("银行")]):t._e(),t._v(" "),"ali_pay"==e.way?a("span",{staticClass:"fl w10"},[t._v("支付宝")]):t._e(),t._v(" "),"we_chat"==e.way?a("span",{staticClass:"fl w10"},[t._v("微信")]):t._e(),t._v(" "),0==e.is_sure?a("span",{staticClass:"fl w10 green"},[t._v("等待承兑商确认")]):t._e(),t._v(" "),1==e.is_sure?a("span",{staticClass:"fl w10 green"},[t._v("已确认")]):t._e(),t._v(" "),2==e.is_sure?a("span",{staticClass:"fl w10 red"},[t._v("已拒绝")]):t._e(),t._v(" "),a("span",{staticClass:"fl w18"},[t._v(t._s(e.create_time))]),t._v(" "),e.is_sure>0?a("span",{staticClass:"fl w18 curPer"},[t._v(t._s(e.update_time))]):t._e()])}))])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"list-title fColor2 ft12 clear"},[a("li",{staticClass:"fl w10"},[t._v("交易金额")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("交易账号")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("承兑商")]),t._v(" "),a("li",{staticClass:"fl w12"},[t._v("承兑商交易账号")]),t._v(" "),a("li",{staticClass:"fl w10"},[t._v("交易方式")]),t._v(" "),a("li",{staticClass:"fl w10 "},[t._v("状态")]),t._v(" "),a("li",{staticClass:"fl w18 "},[t._v("承兑时间")]),t._v(" "),a("li",{staticClass:"fl w18 "},[t._v("确认时间")])])}]};var Cs=a("VU/8")(ys,As,!1,function(t){a("HFhF")},"data-v-2c503ec6",null).exports,bs={name:"left_account",data:function(){return{curActive:0,array:[{src1:a("jpwx"),src2:a("bR5z"),text:this.$t("asset.currency_account"),page:"dealFinance",children:["dealFinance"]},{src1:a("jpwx"),src2:a("bR5z"),text:this.$t("asset.lever_account"),page:"finance",children:["finance"]},{src1:a("jpwx"),src2:a("bR5z"),text:this.$t("asset.fince_account"),page:"legal",children:["legal"]},{src1:a("jpwx"),src2:a("bR5z"),text:this.$t("asset.micro_account"),page:"micro",children:["micro"]},{src1:a("NBkX"),src2:a("hNBf"),text:this.$t("asset.assets_hua"),page:"transfer",children:["transfer"]}]}},created:function(){var t=this.$route.name;this.curActive=this.array.findIndex(function(e){return e.page===t||e.children&&e.children.includes(t)})},mounted:function(){var t=this;this.bus.$on("nav_name",function(e){t.curActive=t.array.findIndex(function(t){return t.page===e||t.children&&t.children.includes(e)})})},methods:{goto:function(t,e){this.curActive=t,this.$router.push({name:e,params:{lang:this.lang}})}}},ws={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"leftNav ft14"},[a("ul",{staticClass:"fColor1"},t._l(t.array,function(e,s){return a("li",{key:s,class:s==t.curActive?"active":"",on:{click:function(a){t.goto(s,e.page)}}},[a("img",{attrs:{src:s==t.curActive?e.src2:e.src1}}),t._v(" "),a("span",[t._v(t._s(e.text))])])}))])},staticRenderFns:[]};var xs={name:"account",data:function(){return{lang:"",currentIndex:0}},components:{indexHeader:V,left:a("VU/8")(bs,ws,!1,function(t){a("VNCp")},"data-v-6a6af7fe",null).exports},mounted:function(){}},ks={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"box"},[e("indexHeader"),this._v(" "),e("div",{staticClass:"account"},[e("div",{staticClass:"topcontent ft20 fColor1 bg-part"},[e("span",[this._v(this._s(this.$t("asset.assets")))])]),this._v(" "),e("div",{staticClass:"leftcontent contentBK"},[e("left")],1),this._v(" "),e("div",{staticClass:"rightcontent contentBK"},[e("router-view")],1)])],1)},staticRenderFns:[]};var Ss=a("VU/8")(xs,ks,!1,function(t){a("9TQ1")},"data-v-58c979b6",null).exports,Is={data:function(){return{totle:"",list:[]}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},created:function(){this.token=localStorage.getItem("token")||""},mounted:function(){this.legal()},methods:{legal:function(){var t=this,e=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:e.token}}).then(function(a){"ok"==a.data.type&&(e.list=a.data.message.lever_wallet.balance,t.totle=a.data.message.lever_wallet.usdt_totle)}).catch(function(t){})},go_legalAccount:function(t){this.$router.push({name:"legalAccount",query:{currency_id:t}})}}},Es={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"top"},[a("p",[t._v(t._s(t.$t("asset.all_assets"))+":$"+t._s(t._f("toFixeds")(t.totle||"0.00")))])]),t._v(" "),a("div",{staticClass:"content_top flex alcenter fColor2 ft12",staticStyle:{padding:"0 30px"}},[a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.currency")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.canuse")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.conversion"))+"($)")]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),a("ul",{staticClass:"list fColor1"},t._l(t.list,function(e,s){return a("li",{key:s,staticClass:"curPer bdb"},[a("div",{staticClass:"balance_detail tc"},[a("div",{staticClass:"use_balance flex1"},[a("p",{staticClass:"use_balance_num ft12"},[t._v(t._s(e.currency_name))])]),t._v(" "),a("div",{staticClass:"flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v(t._s(t._f("toFixeds8")(e.lever_balance||"0.00")))])]),t._v(" "),a("div",{staticClass:"convert flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v("\n "+t._s(t._f("toFixeds8")(e.lock_lever_balance||"0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"convert flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v("\n "+t._s(t._f("toFixeds8")(e.lever_balance*e.usdt_price||"0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"convert flex1 ft12 operation"},[a("span",{on:{click:function(a){t.go_legalAccount(e.currency)}}},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{on:{click:function(a){t.$router.push({path:"/transferLever",query:{id:e.currency}})}}},[t._v(t._s(t.$t("asset.transfer")))])])])])}))])},staticRenderFns:[]};var Ps=a("VU/8")(Is,Es,!1,function(t){a("4wWc")},"data-v-1cb5bc29",null).exports,Rs={data:function(){return{totle:"",list:[]}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},created:function(){this.token=localStorage.getItem("token")||""},mounted:function(){this.legal()},methods:{legal:function(){var t=this,e=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:e.token}}).then(function(a){"ok"==a.data.type&&(e.list=a.data.message.micro_wallet.balance,t.totle=a.data.message.micro_wallet.usdt_totle)}).catch(function(t){})},go_legalAccount:function(t){this.$router.push({name:"microAccount",query:{currency_id:t}})}}},Bs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"top"},[a("p",[t._v(t._s(t.$t("asset.all_assets"))+":$"+t._s(t._f("toFixeds")(t.totle||"0.00")))])]),t._v(" "),a("div",{staticClass:"content_top flex alcenter fColor2 ft12",staticStyle:{padding:"0 30px"}},[a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.currency")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.canuse")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.conversion"))+"($)")]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),a("ul",{staticClass:"list fColor1"},t._l(t.list,function(e,s){return a("li",{key:s,staticClass:"curPer bdb"},[a("div",{staticClass:"balance_detail tc"},[a("div",{staticClass:"use_balance flex1"},[a("p",{staticClass:"use_balance_num ft12"},[t._v(t._s(e.currency_name))])]),t._v(" "),a("div",{staticClass:"flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v(t._s(t._f("toFixeds8")(e.micro_balance||"0.00")))])]),t._v(" "),a("div",{staticClass:"convert flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v("\n "+t._s(t._f("toFixeds8")(e.lock_micro_balance||"0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"convert flex1"},[a("p",{staticClass:"lock_balance_num ft12"},[t._v("\n "+t._s(t._f("toFixeds8")(e.micro_balance*e.usdt_price||"0.00"))+"\n ")])]),t._v(" "),a("div",{staticClass:"convert flex1 ft12 operation"},[a("span",{on:{click:function(a){t.go_legalAccount(e.currency)}}},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{on:{click:function(a){t.$router.push({path:"/transfermicro",query:{id:e.currency}})}}},[t._v(t._s(t.$t("asset.transfer")))])])])])}))])},staticRenderFns:[]};var Fs=a("VU/8")(Rs,Bs,!1,function(t){a("Zn7z")},"data-v-6828fc07",null).exports,Ns=(a("PL/J"),{name:"finance",filters:{toFixeds:function(t){return(t=Number(t)).toFixed(8)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},data:function(){return{totle:"",recData:[],token:"",flags:!1,flag:!1,isHide:!0,active:"a",active01:"a",active02:"a",addr:"",url:"",excharge_address:"",address:"",number:"",rate:"",coinname:"",balance:"",ratenum:"",reachnum:"",min_number:"",currency:"",password:"",asset_list:[],tip_list:[this.$t("asset.tips01"),this.$t("asset.tips02")],tip_list01:[this.$t("asset.tips01"),this.$t("asset.tips02")],page:1,more:this.$t("td.more"),balanceList:[this.$t("asset.fince_account"),this.$t("asset.lever_account")],transferData:{modalShow:!1,transferName:"",transferBalance:"",start:"",end:""},status:"",ishowTag:!1,extension_code:"",taginput:"",is_show_memo:0,chargeType:[],contractAddress:"",userId:"",currencyName:"",selectType:1,name:"",labelText:"",walletData:[],labels:""}},components:{indexHeader:V,left:Pa},methods:{goRecord:function(){this.$router.push({name:"coinRecord"})},init:function(){var t=this,e=new Clipboard(".copy");e.on("success",function(e){layer.alert(t.$t("set.copysuccess"))}),e.on("error",function(e){alert(t.$t("set.copyfail"))})},excharge:function(t,e,a,s,i,n){this.excharge_address="",this.selectType=1,this.chargeType=[],1==this.status?(this.currency=e,this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active=t,this.active01="a",this.active02="a"),this.sendData(e,s),this.getNum(e,a)):layer.alert(this.$t("asset.noopen"))},sendData:function(t,e){var a=this;$("#code").html(""),this.$http({url:this.API+"/api/wallet/get_in_address",method:"post",headers:{Authorization:this.token},data:{currency:t,user_id:localStorage.getItem("user_id")}}).then(function(t){$("#code").html(""),"ok"==t.data.type&&(t.data.message.omni?(a.excharge_address=t.data.message.omni,$("#code").qrcode({width:100,height:100,text:t.data.message.omni})):(a.excharge_address=t.data.message,$("#code").qrcode({width:100,height:100,text:t.data.message})))}).catch(function(t){})},withdraw:function(t,e,a,s,i,n){this.selectType=2,this.currencyType="",this.chargeType=[],this.taginput="",1==this.status?(this.currency=e,this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active01=t,this.active="a",this.active02="a"),this.getNum(e,a)):layer.alert(this.$t("asset.noopen"))},rec:function(t,e){var a=this;this.currency=e,this.recData=[],this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active02=t,this.active="a",this.active01="a",this.$http({url:"/api/wallet/legal_log",method:"post",data:{type:2,currency:e,page:1},headers:{Authorization:this.token}}).then(function(t){"ok"==t.data.type&&(a.recData=t.data.message.list)}))},getNum:function(t,e){var a=this;a.labelText="",$.ajax({url:"/api/wallet/get_info",method:"post",data:{currency:t},dataType:"json",async:!0,beforeSend:function(t){t.setRequestHeader("Authorization",a.token)},success:function(t){if("ok"==t.type){if(a.coinname=t.message.name,a.balance=t.message.change_balance,a.walletData=t.message.wallet_data,2==t.message.make_wallet?a.is_show_memo=!0:a.is_show_memo=!1,1==t.message.multi_protocol){a.chargeType=t.message.type_data,a.contractAddress=t.message.type_data[0].contract_address,a.name=t.message.type_data[0].type,a.min_number=a.$t("asset.minnum")+parseFloat(t.message.type_data[0].min_number).toFixed(2),a.minnumber=t.message.type_data[0].min_number,a.ratenum=t.message.type_data[0].rate,a.reachnum=0,a.rate=t.message.type_data[0].rate,a.currencyType=t.message.type_data[0].type,t.message.type_data[0].name,"EOSTOKEN"==t.message.name&&(a.ishowTag=!0),a.extension_code=t.message.extension_code;var e=t.message.type_data[0].id;t.message.wallet_data&&t.message.wallet_data.length>0&&t.message.wallet_data.forEach(function(t){e==t.currency&&(a.labelText=t.label)})}else t.message.wallet_data&&t.message.wallet_data.length>0&&(a.labelText=t.message.wallet_data[0].label),a.contractAddress=t.message.contract_address,a.name=t.message.type,a.min_number=a.$t("asset.minnum")+parseFloat(t.message.min_number).toFixed(2),a.minnumber=t.message.min_number,a.ratenum=t.message.rate,a.reachnum=0,a.rate=t.message.rate,t.message.name,"EOSTOKEN"==t.message.name&&(a.ishowTag=!0),a.extension_code=t.message.extension_code;1==a.selectType&&a.sendData(a.currency,a.contractAddress)}}})},selectCharge:function(t){var e=this;e.contractAddress=t.contract_address,e.name=t.type,e.min_number=e.$t("asset.minnum")+parseFloat(t.min_number).toFixed(2),e.minnumber=t.min_number,e.ratenum=t.rate,e.reachnum=0,e.rate=t.rate;var a=t.id;e.walletData.length>0&&e.walletData.forEach(function(t){a==t.currency&&(e.labelText=t.label)}),1==e.selectType&&e.sendData(e.currency,e.contractAddress)},mention:function(){var t=this,e=this.currency,a=this.address,s=this.number,i=this.rate,n=this.minnumber,o=this.password,r=this.taginput;if(a){if(s)return s-0<n?layer.msg(this.$t("asset.lessMin")):void(o?$.ajax({type:"POST",url:"/api/wallet/out",data:{type:t.currencyType,currency:e,number:s,rate:i,address:a,pay_password:o,memo:r},dataType:"json",async:!0,beforeSend:function(e){e.setRequestHeader("Authorization",t.token)},success:function(e){"ok"==e.type?(layer.msg(e.message),setTimeout(function(){window.location.reload()},1500)):"not"==e.type?(layer.msg(e.message),setTimeout(function(){layer.msg(t.$t("set.yorn"),{time:0,btn:[t.$t("set.yes"),t.$t("set.no")],yes:function(e){layer.closeAll(),t.$router.push("/bindmpwd")}})},1e3)):layer.msg(e.message)}}):layer.msg(this.$t("lever.ppwd")));layer.msg(this.$t("asset.enterNum"))}else layer.msg(this.$t("asset.enterAdderses"))},exchange:function(){},copy:function(){var t=this,e=new Clipboard(".copy",{text:function(){return t.excharge_address}});e.on("success",function(e){t.flags=!0,layer.msg(t.$t("set.copysuccess"))}),e.on("error",function(e){t.flags=!1,layer.msg(t.$t("set.recopy"))})},copy2:function(t){var e=this,a=new Clipboard(".copy2",{text:function(){return e.labelText}});a.on("success",function(t){e.flags=!0,layer.msg(e.$t("set.copysuccess"))}),a.on("error",function(t){e.flags=!1,layer.msg(e.$t("set.recopy"))})},record:function(){this.$router.push({name:"finanrec"})},withdraw_address:function(){this.$router.push({name:"withdraw_address"})},show_ewm:function(){this.isHide?this.isHide=!1:this.isHide=!0},getdata:function(){var t=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type&&(t.asset_list=e.data.message.change_wallet.balance,t.totle=e.data.message.change_wallet.usdt_totle,t.status=e.data.message.is_open_CTbi)}).catch(function(t){})},moreData:function(){var t=this;t.page=t.page+1,this.$http({url:"/api/wallet/legal_log",method:"post",data:{type:2,currency:t.currency,page:t.page},headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type){var a=t.asset_list;for(var s in a)t.currency==a[s].currency&&(t.active02=s,e.data.message.list.length>0?t.recData=t.recData.concat(e.data.message.list):t.more=t.$t("cuy.nomore"))}})},transfer:function(t,e){this.transferData.modalShow=!0}},created:function(){this.token=localStorage.getItem("token")||""},mounted:function(){this.getdata(),this.init()}}),Ts={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"header fColor1"},[a("p",{staticClass:"fl"},[t._v("\n "+t._s(t.$t("asset.all_assets"))+":\n "),a("span",{staticClass:"asset_name"},[t._v("$")]),t._v(" "),a("span",{staticClass:"asset_num"},[t._v(t._s(t._f("toFixeds")(t.totle)))])])]),t._v(" "),a("div",{staticClass:"content fColor1 ft12"},[a("div",{staticClass:"content_top flex alcenter fColor2"},[a("p",{staticClass:"flex1 tc"},[t._v("\n "+t._s(t.$t("asset.currency"))+"\n "),a("i")]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.canuse")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.conversion"))+"($)")]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),a("ul",{staticClass:"content_ul"},t._l(t.asset_list,function(e,s){return a("li",{key:s},[a("div",{staticClass:"content_li bdb flex alcenter between"},[a("p",{staticClass:"flex1 tc"},[t._v(t._s(e.currency_name))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.change_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.lock_change_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.usdt_price*e.change_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc operation"},[a("span",{on:{click:function(a){t.excharge(s,e.currency,e.currency_type,e.contract_address,1)}}},[t._v(t._s(t.$t("asset.charging")))]),t._v(" "),a("span",{staticStyle:{padding:"0 5px"},on:{click:function(a){t.withdraw(s,e.currency,e.currency_name,e.contract_address,e.is_show_memo,2)}}},[t._v(t._s(t.$t("asset.withdraw")))]),t._v(" "),a("span",{on:{click:function(a){t.rec(s,e.currency)}}},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{on:{click:function(a){t.$router.push({path:"/transferLegal",query:{id:e.currency}})}}},[t._v(t._s(t.$t("asset.transfer")))])])]),t._v(" "),s==t.active?a("div",{staticClass:"hide_div bd"},[a("p",{staticClass:"fColor2 ft12"},[t._v(t._s(t.$t("asset.address_charge")))]),t._v(" "),t.chargeType.length>0?a("div",[a("p",{staticClass:"mt20"},[t._v(t._s(t.$t("asset.chainType")))]),t._v(" "),a("div",{staticClass:"flex ft14"},t._l(t.chargeType,function(e,s){return a("p",{key:s,staticClass:"mr10 pb10 plr10 bd_input mt10",class:t.name==e.type?"active":"",on:{click:function(a){t.selectCharge(e)}}},[t._v(t._s(e.type))])}))]):t._e(),t._v(" "),a("div",{staticClass:"mt50 mb10 flex"},[a("span",{staticClass:"ft18 fColor1 excharge_address",class:{bg:t.flags}},[t._v(t._s(t.excharge_address))]),t._v(" "),a("span",{staticClass:"copy ft14",attrs:{id:"copy"},on:{click:t.copy}},[t._v(t._s(t.$t("asset.copy")))]),t._v(" "),a("span",{staticClass:"ewm_wrap"},[a("span",{staticClass:"ewm ft14",on:{click:t.show_ewm}},[t._v(t._s(t.$t("asset.ercode")))]),t._v(" "),a("div",{staticClass:"ewm_img",class:{hide:t.isHide},attrs:{id:"code"}})]),t._v(" "),t.labelText?a("div",{staticClass:"ml40 blue ft14 copy2 flex"},[a("p",[t._v(t._s(t.labelText))]),t._v(" "),a("p",{staticClass:"ml20 curPer",on:{click:t.copy2}},[t._v("复制标签")])]):t._e()]),t._v(" "),a("p",{staticClass:"ft12 fColor2 mb15 mt50"},[t._v(t._s(t.$t("asset.reminder")))]),t._v(" "),a("ul",{staticClass:"tips_ul ft12 fColor2",staticStyle:{"list-style":"disc inside"}},t._l(t.tip_list,function(e){return a("li",{staticClass:"tips_li",staticStyle:{"list-style":"disc inside"}},[t._v(t._s(e))])}))]):t._e(),t._v(" "),s==t.active01?a("div",{staticClass:"hide_div bd"},[t.chargeType.length>0?a("div",{staticClass:"mb10"},[a("p",{staticClass:"mt20"},[t._v(t._s(t.$t("asset.chainType")))]),t._v(" "),a("div",{staticClass:"flex ft14"},t._l(t.chargeType,function(e,s){return a("p",{key:s,staticClass:"mr10 pb10 plr10 bd_input mt10",class:t.name==e.type?"active":"",on:{click:function(a){t.selectCharge(e)}}},[t._v(t._s(e.type))])}))]):t._e(),t._v(" "),a("p",{staticClass:"fColor2 ft12 mb15"},[t._v(t._s(t.$t("asset.address_width")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.address,expression:"address"}],staticClass:"address_inp fColor1 mb30",attrs:{type:"text"},domProps:{value:t.address},on:{input:function(e){e.target.composing||(t.address=e.target.value)}}}),t._v(" "),a("p",{staticClass:"fColor2 ft12 mb15 flex between alcenter"},[a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",[t._v("\n "+t._s(t.$t("asset.canuse"))+":\n "),a("span",{staticClass:"use_num"},[t._v(t._s(t._f("toFixeds")(t.balance||"0.00")))]),t._v("\n "+t._s(t.coinname)+"\n "),a("span")])]),t._v(" "),a("label",{staticClass:"num_lab flex between mb30"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"fColor1",attrs:{type:"text",placeholder:t.min_number},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.coinname))])]),t._v(" "),a("div",{staticClass:"flex mb30"},[a("div",{staticClass:"left_inp_wrap flex1"},[a("p",{staticClass:"fColor2 ft12 mb15"},[a("span",[t._v(t._s(t.$t("asset.ratenum")))]),t._v(" "),a("span",[t._v(t._s(t.ratenum)+"%")])]),t._v(" "),a("label",{staticClass:"range_lab flex alcenter between"},[a("span",[t._v(t._s(t._f("toFixeds")(t.number*t.ratenum/100)))]),t._v(" "),a("span",[t._v(t._s(t.coinname))])])]),t._v(" "),a("div",{staticClass:"right_inp_wrap flex1"},[a("p",{staticClass:"mb15"},[a("span",{staticClass:"fColor2 ft12"},[t._v(t._s(t.$t("asset.havenum")))])]),t._v(" "),a("label",{staticClass:"get_lab flex alcenter between"},[a("span",[t._v(t._s(t._f("toFixeds")(t.number-t.number*t.ratenum/100)))]),t._v(" "),a("span",[t._v(t._s(t.coinname))])])])]),t._v(" "),t.is_show_memo?a("div",[a("p",{staticClass:"fColor2 ft12 mb15"},[t._v("memo")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.taginput,expression:"taginput"}],staticClass:"address_inp fColor1 mb30",attrs:{type:"text",placeholder:"请输入memo"},domProps:{value:t.taginput},on:{input:function(e){e.target.composing||(t.taginput=e.target.value)}}})]):t._e(),t._v(" "),a("p",{staticClass:"fColor2 ft12 mb15"},[t._v(t._s(t.$t("lever.psw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"address_inp fColor1 mb30",attrs:{type:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticStyle:{}},[a("p",{staticClass:"ft12 fColor2 mb15"},[t._v(t._s(t.$t("asset.reminder")))]),t._v(" "),a("ul",{staticClass:"tips_ul ft12 fColor2",staticStyle:{"list-style":"disc inside"}},t._l(t.tip_list01,function(e){return a("li",{staticClass:"tips_li",staticStyle:{"list-style":"disc inside"}},[t._v(t._s(e))])}))]),t._v(" "),a("div",{staticClass:"flex1 tc"},[a("button",{staticClass:"withdraw_btn",on:{click:t.mention}},[t._v(t._s(t.$t("asset.withdraw")))])])])]):t._e(),t._v(" "),s==t.active02?a("div",{staticClass:"hide_div bd rec-box fColor1"},[a("div",{staticClass:"rec-con"},[a("div",{staticClass:"rec-title bdb fColor1"},[a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.time")))])]),t._v(" "),a("ul",{staticClass:"rec-list"},t._l(t.recData,function(e,s){return a("li",{key:s,staticClass:"bdb"},[a("span",[t._v(t._s(t._f("toFixeds")(e.value||"0.00")))]),t._v(" "),a("span",[t._v(t._s(e.info))]),t._v(" "),a("span",[t._v(t._s(e.created_time))])])})),t._v(" "),a("p",{staticClass:"more",on:{click:function(e){t.moreData()}}},[t._v(t._s(t.more))])])]):t._e()])}))]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.transferData.modalShow,expression:"transferData.modalShow"}],staticClass:"transfer-modal flex"},[a("div",{staticClass:"transfer-mask"},[a("div",{staticClass:"transfer-header"},[a("h3",[t._v("划转")]),t._v(" "),a("p",{on:{click:function(e){t.closes()}}},[t._v("X")])]),t._v(" "),a("div",{staticClass:"transfer-content"},[a("div",[a("p",[t._v("币种")]),t._v(" "),a("p",[t._v(t._s(t.transferData.transferName))]),t._v(" "),a("p",[t._v("可用余额")]),t._v(" "),a("p",[t._v(t._s(t.transferData.transferBalance))])]),t._v(" "),a("div",[a("p",[t._v("从")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.transferData.start,expression:"transferData.start"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.transferData,"start",e.target.multiple?a:a[0])}}},t._l(t.balanceList,function(e){return a("option",{domProps:{value:e}},[t._v(t._s(e))])}))]),t._v(" "),a("div",[a("p",[t._v("至")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.transferData.end,expression:"transferData.end"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.transferData,"end",e.target.multiple?a:a[0])}}},t._l(t.balanceList,function(e){return a("option",{domProps:{value:e}},[t._v(t._s(e))])}))]),t._v(" "),t._m(0)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[this._v("划转数量")]),this._v(" "),e("input",{attrs:{type:"text",placeholder:"请输入划转数量"}})])}]};var Ds=a("VU/8")(Ns,Ts,!1,function(t){a("5v7n")},"data-v-ef4ee5c6",null).exports,Ls={name:"transfer",filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},data:function(){return{placeholderTxt:this.$t("asset.pNum"),currencyList:[],accountList:[],value1:"",value2:"",value3:"",name:"法币账户",leverName:"合约账户",totalMoney:"",leverMoney:"",tradeMoney:"",type:2,token:localStorage.getItem("token"),inputValue:"",currencyId:"",valuebool:!1,value2bool:!1,value3bool:!1,balances:0}},components:{indexHeader:V,left:Pa},methods:{tabvalueTwo:function(){this.value2bool=!this.value3bool,this.value3bool=!1,this.valuebool=!1},openvalue3:function(){this.value3bool=!this.value3bool,this.value2bool=!1,this.valuebool=!1},selectTwo:function(t){if("lever"==t){this.value2=this.$t("asset.lever_account");for(var e=0,a=0;a<this.accountList.length;a++)"lever"!=this.accountList[a].type&&(e=a);if(this.value1==this.$t("asset.lever_account")){this.value1=this.accountList[e].texts;for(this.datas.micro_wallet.balance,a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&("micro"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.micro_balance:"match"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.change_balance:"legal"==this.accountList[e].type&&(this.balances=this.currencyList[a].wallet.legal_balance))}}else if("micro"==t){this.value2=this.$t("asset.micro_account");for(e=0,a=0;a<this.accountList.length;a++)"micro"!=this.accountList[a].type&&(e=a);if(this.value1==this.$t("asset.micro_account")){this.value1=this.accountList[e].texts;for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&("lever"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.lever_balance:"match"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.change_balance:"legal"==this.accountList[e].type&&(this.balances=this.currencyList[a].wallet.legal_balance))}}else if("match"==t){this.value2=this.$t("asset.currency_account");for(e=0,a=0;a<this.accountList.length;a++)"match"!=this.accountList[a].type&&(e=a);if(this.value1==this.$t("asset.currency_account")){this.value1=this.accountList[e].texts;for(this.datas.micro_wallet.balance,a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&("lever"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.lever_balance:"micro"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.micro_balance:"legal"==this.accountList[e].type&&(this.balances=this.currencyList[a].wallet.legal_balance))}}else if("legal"==t){this.value2=this.$t("asset.fince_account");for(e=0,a=0;a<this.accountList.length;a++)"legal"!=this.accountList[a].type&&(e=a);if(this.value1==this.$t("asset.fince_account")){this.value1=this.accountList[e].texts;for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&("lever"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.lever_balance:"match"==this.accountList[e].type?this.balances=this.currencyList[a].wallet.change_balance:"micro"==this.accountList[e].type&&(this.balances=this.currencyList[a].wallet.micro_balance))}}this.value2bool=!1},selectedCurrency:function(t,e){this.value3=e,this.currency=t;for(var a=[],s=0;s<this.currencyList.length;s++)if(this.currencyList[s].id==this.currency){if(1==this.currencyList[s].is_legal){var i={type:"legal",texts:this.$t("asset.fince_account")};a.push(i)}if(1==this.currencyList[s].is_micro){i={type:"micro",texts:this.$t("asset.micro_account")};a.push(i)}if(1==this.currencyList[s].is_lever){i={type:"lever",texts:this.$t("asset.lever_account")};a.push(i)}if(1==this.currencyList[s].is_match){i={type:"match",texts:this.$t("asset.currency_account")};a.push(i)}this.accountList=a,this.value1=this.accountList[0].texts,this.value2=this.accountList[1].texts,"lever"==this.accountList[0].type?this.balances=this.currencyList[s].wallet.lever_balance:"match"==this.accountList[0].type?this.balances=this.currencyList[s].wallet.change_balance:"micro"==this.accountList[0].type?this.balances=this.currencyList[s].wallet.micro_balance:"legal"==this.accountList[0].type&&(this.balances=this.currencyList[s].wallet.legal_balance)}this.value3bool=!1},selectOne:function(t){if("lever"==t){for(var e=0,a=0;a<this.accountList.length;a++)"lever"!=this.accountList[a].type&&(e=a);this.value1=this.$t("asset.lever_account");for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&(this.balances=this.currencyList[a].wallet.lever_balance);this.value2==this.$t("asset.lever_account")&&(this.value2=this.accountList[e].texts)}else if("micro"==t){this.value1=this.$t("asset.micro_account");for(e=0,a=0;a<this.accountList.length;a++)"micro"!=this.accountList[a].type&&(e=a);for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&(this.balances=this.currencyList[a].wallet.micro_balance);this.value2==this.$t("asset.micro_account")&&(this.value2=this.accountList[e].texts)}else if("match"==t){this.value1=this.$t("asset.currency_account");for(e=0,a=0;a<this.accountList.length;a++)"match"!=this.accountList[a].type&&(e=a);for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&(this.balances=this.currencyList[a].wallet.change_balance);this.value2==this.$t("asset.currency_account")&&(this.value2=this.accountList[e].texts)}else if("legal"==t){this.value1=this.$t("asset.fince_account");for(e=0,a=0;a<this.accountList.length;a++)"legal"!=this.accountList[a].type&&(e=a);for(a=0;a<this.currencyList.length;a++)this.currencyList[a].id==this.currency&&(this.balances=this.currencyList[a].wallet.legal_balance);this.value2==this.$t("asset.fince_account")&&(this.value2=this.accountList[e].texts)}this.valuebool=!1},tabvalue:function(){this.valuebool=!this.valuebool,this.value3bool=!1,this.value2bool=!1},initData:function(){var t=this;this.$http({url:"/api/currency/user_currency_list",method:"get",data:{},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;if(a.length>0){for(var s=[],i="",n=0;n<a.length;n++){a[n].is_legal-0+(a[n].is_lever-0)+(a[n].is_match-0)+(a[n].is_micro-0)>1&&(3==a[n].id?i=a[n]:s.push(a[n]))}i&&s.unshift(i),t.value3=s[0].name,t.currency=s[0].id;var o=[];if(1==s[0].is_legal){var r={type:"legal",texts:t.$t("asset.fince_account")};o.push(r)}if(1==s[0].is_micro){r={type:"micro",texts:t.$t("asset.micro_account")};o.push(r)}if(1==s[0].is_lever){r={type:"lever",texts:t.$t("asset.lever_account")};o.push(r)}if(1==s[0].is_match){r={type:"match",texts:t.$t("asset.currency_account")};o.push(r)}t.accountList=o,t.currencyList=s,t.value1=o[0].texts,t.value2=o[1].texts,"lever"==o[0].type?t.balances=s[0].wallet.lever_balance:"micro"==o[0].type?t.balances=s[0].wallet.micro_balance:"match"==o[0].type?t.balances=s[0].wallet.change_balance:"legal"==o[0].type&&(t.balances=s[0].wallet.legal_balance)}}}).catch(function(t){})},init:function(){var t=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){for(var a=e.data.message.legal_wallet.balance,s=e.data.message.lever_wallet.balance,i=0;i<a.length;i++)"USDT"==a[i].currency_name&&(t.tradeMoney=a[i].legal_balance,t.totalMoney=t.tradeMoney,t.currencyId=a[i].currency);for(var n=0;n<s.length;n++)"USDT"==s[n].currency_name&&(t.leverMoney=s[n].lever_balance,t.currencyId=s[n].currency)}}).catch(function(t){})},tabClick:function(){},comfirm:function(){var t=this;if(""==t.inputValue)return layer.msg(t.$t("asset.record")),!1;layer.confirm(t.$t("asset.confirmhuazhuan"),{skin:"confirmCancel"},function(e){layer.close(e);var a=layer.load(),s="",i="";t.value1==t.$t("asset.lever_account")?s="lever":t.value1==t.$t("asset.micro_account")?s="micro":t.value1==t.$t("asset.currency_account")?s="change":t.value1==t.$t("asset.fince_account")&&(s="legal"),t.value2==t.$t("asset.lever_account")?i="lever":t.value2==t.$t("asset.micro_account")?i="micro":t.value2==t.$t("asset.currency_account")?i="change":t.value2==t.$t("asset.fince_account")&&(i="legal");var n={};n.currency_id=t.currency,n.number=t.inputValue,n.from_field=s,n.to_field=i,t.$http({url:"/api/wallet/change",method:"post",data:n,headers:{Authorization:t.token}}).then(function(e){if("ok"!=e.data.type)return layer.msg(e.data.message),void layer.close(a);layer.close(a),layer.msg(e.data.message),setTimeout(function(){t.$router.push({name:"transferRecord"})},500)}).catch(function(t){})})},link:function(){this.$router.push({name:"transferRecord"})}},created:function(){this.token=localStorage.getItem("token")||"",this.initData()},mounted:function(){}},Ms={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"content fColor1"},[a("div",{staticClass:"record",on:{click:function(e){t.link()}}},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("div",{staticClass:"flex selectedCurrency"},[a("aside",[t._v(t._s(t.$t("asset.currency")))]),t._v(" "),a("p",{on:{click:t.openvalue3}},[t._v(t._s(t.value3))]),t._v(" "),t.value3bool?a("div",{staticClass:"trade-select"},t._l(t.currencyList,function(e){return a("span",{on:{click:function(a){t.selectedCurrency(e.id,e.name)}}},[t._v(t._s(e.name))])})):t._e()]),t._v(" "),a("div",{staticClass:"flex"},[a("p",[t._v(t._s(t.$t("asset.from")))]),t._v(" "),a("div",{staticClass:"trade-view"},[a("p",{staticClass:"trade",on:{click:t.tabvalue}},[t._v(t._s(t.value1))]),t._v(" "),t.valuebool?a("div",{staticClass:"trade-select"},t._l(t.accountList,function(e){return a("span",{on:{click:function(a){t.selectOne(e.type)}}},[t._v(t._s(e.texts))])})):t._e()]),t._v(" "),a("p",{staticStyle:{cursor:"pointer"},on:{click:t.tabClick}},[t._v(t._s(t.$t("asset.to")))]),t._v(" "),a("p",{staticClass:"trade",on:{click:t.tabvalueTwo}},[t._v(t._s(t.value2))]),t._v(" "),a("div",{staticClass:"trade-view-two"},[t.value2bool?a("div",{staticClass:"trade-select"},t._l(t.accountList,function(e){return a("span",{on:{click:function(a){t.selectTwo(e.type)}}},[t._v(t._s(e.texts))])})):t._e()])]),t._v(" "),a("div",{staticClass:"num"},[a("p",[t._v(t._s(t.$t("asset.tfnum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],attrs:{type:"text",placeholder:t.placeholderTxt},domProps:{value:t.inputValue},on:{input:function(e){e.target.composing||(t.inputValue=e.target.value)}}}),t._v(" "),a("p",[t._v(t._s(t.$t("asset.canbalance"))+":"+t._s(t._f("toFixeds")(t.balances||"0.00"))+"USDT")])]),t._v(" "),a("button",{staticClass:"comfirm-btn",attrs:{type:"button"},on:{click:function(e){t.comfirm()}}},[t._v(t._s(t.$t("asset.sureConfirm")))])])])},staticRenderFns:[]};var Us=a("VU/8")(Ls,Ms,!1,function(t){a("nV+V")},"data-v-aca21dde",null).exports,Qs={name:"lever",components:{indexHeader:V},data:function(){return{current:0,inDialog:!1,outDialog:!1,lever_list:[],amount:"",type:3,coins:[{coin:"ETC"},{coin:"USDT"}]}},methods:{close:function(){this.inDialog=!1,this.outDialog=!1,this.amount=""},golever:function(){this.$router.push({name:"manger"})},getdata:function(){var t=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:t.token}}).then(function(e){t.lever_list=e.data.message.lever_wallet.balance}).catch(function(t){})},turn:function(){var t=this;this.$http({url:"/api/wallet/change",method:"post",data:{type:this.type,number:this.amount,currency_id:this.nowCoin.currency},headers:{Authorization:this.token}}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&t.close()})}},created:function(){this.token=localStorage.getItem("token")||""},mounted:function(){this.getdata()},computed:{nowCoin:function(){var t=this.lever_list;return t.length?t[this.current]:{}}}},zs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lever"},[t._m(0),t._v(" "),a("div",{staticClass:"leverbody contentBK ft12"},[t._m(1),t._v(" "),a("ul",{staticClass:"contentbox fColor1"},t._l(t.lever_list,function(e,s){return a("li",{staticClass:"clearfix flex"},[a("p",{staticClass:"w16 l40"},[t._v(t._s(e.currency_name))]),t._v(" "),a("p",{staticClass:"w20 tr"},[a("span",[t._v(t._s(e.lever_balance))])]),t._v(" "),a("p",{staticClass:"w20 tr"},[a("span",[t._v(t._s(e.lock_lever_balance))])]),t._v(" "),a("p",{staticClass:"w25 tr baseColor l40 btn"},[a("span",{on:{click:function(e){t.current=s,t.inDialog=!0,t.type=3}}},[t._v("转入")]),t._v(" "),a("span",{on:{click:function(e){t.current=s,t.outDialog=!0,t.type=4}}},[t._v("转出")]),t._v(" "),a("span",{on:{click:function(a){t.$router.push({path:"/leverRecord",query:{id:e.currency}})}}},[t._v("记录")])])])})),t._v(" "),t.lever_list.length<=0?a("div",{staticClass:"tc ft16 fColor1 mt50"},[t._v("暂无数据")]):t._e()]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.inDialog,expression:"inDialog"}],staticClass:"dialog_wrap"},[a("div",{staticClass:"dialog"},[a("div",{staticClass:"dia-tit clearfix"},[a("span",{staticClass:"fl fColor1"},[t._v("转入本金")]),t._v(" "),a("span",{staticClass:"fr fColor3 close",on:{click:t.close}},[t._v("X")])]),t._v(" "),a("div",{staticClass:"dia-content fColor1"},[a("div",{staticClass:"dia-container"},[t._m(2),t._v(" "),t._m(3),t._v(" "),a("div",{staticClass:"flex alcenter frombox"},[a("span",{staticClass:"fColor3 ft12 tc"},[t._v("到")]),t._v(" "),a("p",{staticClass:"ft14 flex1"},[t._v("BTC/"+t._s(t.nowCoin.currency_name)+"合约账户")])])]),t._v(" "),t._m(4),t._v(" "),a("div",{staticClass:"div-input mt20"},[t._m(5),t._v(" "),a("div",{staticClass:"inputboxs flex between alcenter mt10"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),a("div",{staticClass:"ft12 fColor3"},[a("span",[t._v("BTC")]),t._v(" "),a("span",[t._v("|")]),t._v(" "),a("span",{staticClass:"all",on:{click:function(e){t.amount=t.nowCoin.lever_balance}}},[t._v("全部")])])])]),t._v(" "),a("div",{staticClass:"btn-box flex ft16 tc"},[a("div",{on:{click:t.close}},[t._v("取消")]),t._v(" "),a("div",{staticClass:"sure",on:{click:t.turn}},[t._v("确定")])])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.outDialog,expression:"outDialog"}],staticClass:"dialog_wrap"},[a("div",{staticClass:"dialog"},[a("div",{staticClass:"dia-tit clearfix"},[a("span",{staticClass:"fl fColor1"},[t._v("转出本金")]),t._v(" "),a("span",{staticClass:"fr fColor3 close",on:{click:t.close}},[t._v("X")])]),t._v(" "),a("div",{staticClass:"dia-content fColor1"},[a("div",{staticClass:"dia-container"},[a("div",{staticClass:"flex alcenter frombox"},[a("span",{staticClass:"fColor3 ft12 tc"},[t._v("从")]),t._v(" "),a("p",{staticClass:"ft14 flex1"},[t._v("BTC/"+t._s(t.nowCoin.currency_name)+"合约账户")])]),t._v(" "),t._m(6),t._v(" "),t._m(7)]),t._v(" "),t._m(8),t._v(" "),a("div",{staticClass:"div-input mt20"},[t._m(9),t._v(" "),a("div",{staticClass:"inputboxs flex between alcenter mt10"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],attrs:{type:"text"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),t._v(" "),a("div",{staticClass:"ft12 fColor3"},[a("span",[t._v("BTC")]),t._v(" "),a("span",[t._v("|")]),t._v(" "),a("span",{staticClass:"all",on:{click:function(e){t.amount=t.nowCoin.lever_balance}}},[t._v("全部")])])])]),t._v(" "),a("div",{staticClass:"btn-box flex ft16 tc"},[a("div",{on:{click:t.close}},[t._v("取消")]),t._v(" "),a("div",{staticClass:"sure",on:{click:t.turn}},[t._v("确定")])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"lever-head fColor1"},[e("span",[this._v("净资产折合:")]),this._v(" "),e("span",[this._v("0.00000000 BTC")]),this._v(" "),e("span",{staticClass:"ft12 mincny"},[this._v("≈0.00 CNY")]),this._v(" "),e("span",{staticClass:"fr baseColor"},[this._v("财务记录")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"titlebox fColor3 clearfix"},[e("li",{staticClass:"w16"},[this._v("合约账户")]),this._v(" "),e("li",{staticClass:"w20 tr"},[this._v("可用")]),this._v(" "),e("li",{staticClass:"w20 tr"},[this._v("冻结")]),this._v(" "),e("li",{staticClass:"w25 tr"},[this._v("操作")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex alcenter frombox"},[e("span",{staticClass:"fColor3 ft12 tc"},[this._v("从")]),this._v(" "),e("p",{staticClass:"ft14 flex1"},[this._v("交易账户")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"frombox flex alcenter w10 tc"},[e("img",{staticClass:"coinimg",attrs:{src:a("fwB8"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"div-input mt20"},[e("p",{staticClass:"ft12 fColor3"},[this._v("币种")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ft12 fColor3 flex between"},[e("span",[this._v("数量")]),this._v(" "),e("span",[this._v("可转 0.00000000 BTC")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"frombox flex alcenter w10 tc"},[e("img",{staticClass:"coinimg",attrs:{src:a("fwB8"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex alcenter frombox"},[e("span",{staticClass:"fColor3 ft12 tc"},[this._v("到")]),this._v(" "),e("p",{staticClass:"ft14 flex1"},[this._v("交易账户")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"div-input mt20"},[e("p",{staticClass:"ft12 fColor3"},[this._v("币种")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ft12 fColor3 flex between"},[e("span",[this._v("数量")]),this._v(" "),e("span",[this._v("可转 0.00000000 BTC")])])}]};var Ws=a("VU/8")(Qs,zs,!1,function(t){a("V9Sf")},"data-v-30fc8194",null).exports,Ys={name:"finanrec",components:{indexHeader:V},data:function(){return{lang:"",token:"",changeList:[]}},created:function(){this.token=localStorage.getItem("token")||""},methods:{getdata:function(){$.ajax({type:"POST",url:"/api/wallet/legal_log",data:{},dataType:"json",async:!0,beforeSend:function(t){t.setRequestHeader("Authorization",that.token)},success:function(t){t.type}})}},mounted:function(){this.getdata()}},Gs={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"box"},[e("indexHeader"),this._v(" "),this._m(0)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account"},[a("div",{staticClass:"topcontent ft20 "},[a("span",{staticClass:"white"},[a("span",{staticClass:"baseColor"},[t._v("交易账户>")]),t._v(" 财务记录")])]),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"con_box"},[a("div",{staticClass:"account_title ttBk white"},[t._v("\n 最新\n ")]),t._v(" "),a("div",{staticClass:"contentBK fColor1 pdlr20 pdtb20 ft12"},[a("div",{staticClass:"flex alcenter"},[a("span",{staticClass:"flex1"},[t._v("时间")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("币种")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("类型")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("数量")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("状态")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("操作")])]),t._v(" "),a("div",{staticClass:"mt10"},[a("div",{staticClass:"flex alcenter"},[a("span",{staticClass:"flex1"},[t._v("2018-01-29 12:23:45")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("usdt")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("usdt")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("245")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("已完成")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("撤销")])]),t._v(" "),a("div",{staticClass:"none color1 tc"},[t._v("\n 暂无记录\n ")])])])]),t._v(" "),a("div",{staticClass:"con_box mt15"},[a("div",{staticClass:"account_title ttBk white flex"},[a("div",{staticClass:"active"},[t._v("充币记录")]),t._v(" "),a("div",{staticClass:"ml20"},[t._v("提币记录")]),t._v(" "),a("div",{staticClass:"ml20"},[t._v("划转记录")]),t._v(" "),a("div",{staticClass:"ml20"},[t._v("其他记录")])]),t._v(" "),a("div",{staticClass:"contentBK fColor1 pdlr20 pdtb20 ft12"},[a("div",{staticClass:"flex alcenter"},[a("span",{staticClass:"flex1"},[t._v("时间")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("币种")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("类型")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("数量")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("状态")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("操作")])]),t._v(" "),a("div",{staticClass:"mt10"},[a("div",{staticClass:"flex alcenter"},[a("span",{staticClass:"flex1"},[t._v("2018-01-29 12:23:45")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("usdt")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("usdt")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("245")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("已完成")]),t._v(" "),a("span",{staticClass:"flex1"},[t._v("撤销")])]),t._v(" "),a("div",{staticClass:"none color1 tc"},[t._v("\n 暂无记录\n ")])])])])])])}]};var js=a("VU/8")(Ys,Gs,!1,function(t){a("ubpP")},"data-v-62363d58",null).exports,Vs={name:"manger",components:{indexHeader:V,indexFooter:q},data:function(){return{current:0,coinList:[{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"},{name:"BTC"}]}},methods:{coin:function(t){this.current=t}}},Os={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manger"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"content ft14"},[t._m(0),t._v(" "),a("div",{staticClass:"mainbox"},[a("div",{staticClass:"main-left fl"},[t._m(1),t._v(" "),a("div",{staticClass:"bar-tb ft12"},[t._m(2),t._v(" "),a("ul",{staticClass:"tb-ul fColor1 scroll"},t._l(t.coinList,function(e,s){return a("li",{staticClass:"flex",class:{select:s==t.current},on:{click:function(e){t.coin(s)}}},[a("span",[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"tr"},[t._v("无风险")])])}))])]),t._v(" "),t._m(3)]),t._v(" "),t._m(4),t._v(" "),t._m(5)]),t._v(" "),a("indexFooter")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"topcontent ft20 fColor1"},[e("span",{staticClass:"baseColor"},[this._v("合约账户")]),this._v(" "),e("span",{staticClass:"ft12",staticStyle:{padding:"0 10px"}},[this._v(">")]),this._v(" "),e("span",[this._v("合约管理")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"bar-hd fColor1 pl10"},[e("p",{staticClass:"ft16 bar-title"},[this._v("合约账户")]),this._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"active"},[this._v("USDT")]),this._v(" "),e("li",[this._v("BTC")]),this._v(" "),e("li",[this._v("ETH")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tb-title flex"},[e("p",[this._v("币种")]),this._v(" "),e("p",{staticClass:"tr"},[this._v("风险率")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-right ft"},[a("div",{staticClass:"ttBk fColor1 blod topshadow mr-title"},[a("span",{staticClass:"ft16 bold"},[t._v("ETH/USDT 合约账户")]),t._v(" "),a("span",{staticClass:"ml10 fColor4"},[t._v("当风险率≤110%时,账户将触发爆仓以归还借贷资金")])]),t._v(" "),a("div",{staticClass:"mod-bd"},[a("div",{staticClass:"balance_bar"},[a("ul",{staticClass:"flex"},[a("li",[a("p",{staticClass:"fColor3 canuse"},[t._v("可用USDT")]),t._v(" "),a("p",{staticClass:"fColor1"},[a("span",[t._v("0.0000000")]),a("span",{staticClass:"ml10 baseColor"},[t._v("转入")])])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 canuse"},[t._v("可用btc")]),t._v(" "),a("p",{staticClass:"fColor1"},[a("span",[t._v("0.0000000")]),a("span",{staticClass:"ml10 baseColor"},[t._v("转入")])])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 canuse"},[t._v("爆仓价(USDT)")]),t._v(" "),a("p",{staticClass:"fColor1"},[a("span",[t._v("---")])])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 canuse"},[t._v("风险率")]),t._v(" "),a("p",{staticClass:"fColor1 ft12"},[a("span",[t._v("无风险")])])])])]),t._v(" "),a("div",{staticClass:"pannel clearfix"},[a("div",{staticClass:"pannel-left fl"},[a("div",{staticClass:"pan-title fColor1"},[a("span",[t._v("USDT")]),t._v("借贷")]),t._v(" "),a("ul",{staticClass:"pannel-ul ft12 flex"},[a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("已借")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.0000000")])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("可借")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.00")])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("利率")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.1%")])])])]),t._v(" "),a("div",{staticClass:"pannel-right fr"},[a("div",{staticClass:"pan-title fColor1"},[a("span",[t._v("BTC")]),t._v("借贷")]),t._v(" "),a("ul",{staticClass:"pannel-ul ft12 flex"},[a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("已借")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.0000000")])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("可借")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.00")])]),t._v(" "),a("li",[a("p",{staticClass:"fColor3 brow"},[t._v("利率")]),t._v(" "),a("p",{staticClass:"fColor1"},[t._v("0.1%")])])])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"applybox mt20 contentBK"},[a("div",{staticClass:"ap-header ft16 fColor1"},[t._v("当前申请")]),t._v(" "),a("div",{staticClass:"ap-list"},[a("ul",{staticClass:"fColor3 flex ft12 ul-title"},[a("li",{staticClass:"w18"},[t._v("申请时间")]),t._v(" "),a("li",{staticClass:"w15"},[t._v("合约账户")]),t._v(" "),a("li",{staticClass:"w8"},[t._v("币种")]),t._v(" "),a("li",{staticClass:"w8 tr"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"w10 tr"},[t._v("利率")]),t._v(" "),a("li",{staticClass:"w14 tr"},[t._v("未还利息")]),t._v(" "),a("li",{staticClass:"w16 tr"},[t._v("未归还数量")]),t._v(" "),a("li",{staticClass:"w11 tr"},[t._v("操作")])]),t._v(" "),a("div",[a("p",{staticClass:"fColor1 mt40 tc"},[t._v("暂无记录")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"applybox mt20 contentBK"},[a("div",{staticClass:"ap-header ft16 fColor1"},[t._v("申请记录")]),t._v(" "),a("div",{staticClass:"ap-list"},[a("ul",{staticClass:"fColor3 flex ft12 ul-title"},[a("li",{staticClass:"w18"},[t._v("申请时间")]),t._v(" "),a("li",{staticClass:"w15"},[t._v("合约账户")]),t._v(" "),a("li",{staticClass:"w8"},[t._v("币种")]),t._v(" "),a("li",{staticClass:"w8 tr"},[t._v("数量")]),t._v(" "),a("li",{staticClass:"w10 tr"},[t._v("利率")]),t._v(" "),a("li",{staticClass:"w14 tr"},[t._v("未还利息")]),t._v(" "),a("li",{staticClass:"w16 tr"},[t._v("未归还数量")]),t._v(" "),a("li",{staticClass:"w11 tr"},[t._v("操作")])]),t._v(" "),a("div",[a("p",{staticClass:"fColor1 mt40 tc"},[t._v("暂无记录")])])])])}]};var Zs=a("VU/8")(Vs,Os,!1,function(t){a("AyW8")},"data-v-0417c9ba",null).exports,Js={name:"finance",filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},data:function(){return{totle:"",recData:[],token:"",flags:!1,flag:!1,isHide:!0,active:"a",active01:"a",active02:"a",addr:"",url:"",excharge_address:"",address:"",number:"",rate:"",coinname:"",balance:"",ratenum:"",reachnum:"",min_number:"",currency:"",asset_list:[],tip_list:["请勿向上述地址充值任何非USDT资产,否则资产将不可找回。","USDT充币仅支持simple send的方法,使用其他方法(send all)的充币暂时无法上账,请您谅解。"],tip_list01:["请勿向上述地址充值任何非USDT资产,否则资产将不可找回。","USDT充币仅支持simple send的方法,使用其他方法(send all)的充币暂时无法上账,请您谅解。"],page:1,more:"加载更多",balanceList:["法币账户","合约账户"],transferData:{modalShow:!1,transferName:"",transferBalance:"",start:"",end:""},status:""}},components:{indexHeader:V,left:Pa},methods:{go_legalAccount:function(t){this.$router.push({name:"dealAccount",query:{currency_id:t}})},goRecord:function(){this.$router.push({name:"coinRecord"})},init:function(){var t=new Clipboard(".copy");t.on("success",function(t){layer.alert("复制成功")}),t.on("error",function(t){alert("复制失败")})},excharge:function(t,e){1==this.status?(this.currency=e,this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active=t,this.active01="a",this.active02="a"),this.sendData(e)):layer.alert("该功能暂未开放")},sendData:function(t){var e=this;this.$http({url:"/api/wallet/get_in_address",method:"post",data:{currency:t},headers:{Authorization:e.token}}).then(function(t){"ok"==t.data.type&&(e.excharge_address=t.data.message,$("#code").qrcode({width:100,height:100,text:t.data.message}))}).catch(function(t){})},withdraw:function(t,e){1==this.status?(this.currency=e,this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active01=t,this.active="a",this.active02="a"),this.getNum(e)):layer.alert("该功能暂未开放")},rec:function(t,e){var a=this;this.currency=e,this.recData=[],this.flag?(this.flag=!1,this.active="a",this.active01="a",this.active02="a"):(this.flag=!0,this.active02=t,this.active="a",this.active01="a",this.$http({url:"/api/wallet/legal_log",method:"post",data:{type:1,currency:e,page:1},headers:{Authorization:this.token}}).then(function(t){"ok"==t.data.type&&(a.recData=t.data.message.list)}))},getNum:function(t){var e=this;$.ajax({type:"POST",url:"/api/wallet/get_info",data:{currency:t},dataType:"json",async:!0,beforeSend:function(t){t.setRequestHeader("Authorization",e.token)},success:function(t){"ok"==t.type&&(e.coinname=t.message.name,e.balance=t.message.legal_balance,e.min_number="最小提币数量"+parseFloat(t.message.min_number).toFixed(2),e.minnumber=t.message.min_number,e.ratenum=t.message.rate,e.reachnum=0,e.rate=t.message.rate)}})},mention:function(){var t=this,e=this.currency,a=this.address,s=this.number,i=this.rate,n=this.minnumber;if(a){if(s)return s-0<n?layer.alert("输入的提币数量小于最小值"):void $.ajax({type:"POST",url:"/api/wallet/out",data:{currency:e,number:s,rate:i,address:a},dataType:"json",async:!0,beforeSend:function(e){e.setRequestHeader("Authorization",t.token)},success:function(t){"ok"==t.type?(layer.alert(t.message),setTimeout(function(){window.location.reload()},1500)):layer.alert(t.message)}});layer.alert("请输入提币数量")}else layer.alert("请输入提币地址")},exchange:function(){},copy:function(){var t=this,e=new Clipboard(".copy",{text:function(){return t.excharge_address}});e.on("success",function(e){t.flags=!0,layer.msg("复制成功")}),e.on("error",function(e){t.flags=!1,layer.msg("请重新复制")})},record:function(){this.$router.push({name:"finanrec"})},withdraw_address:function(){this.$router.push({name:"withdraw_address"})},show_ewm:function(){this.isHide?this.isHide=!1:this.isHide=!0},getdata:function(){var t=this;this.$http({url:"/api/wallet/list",method:"post",data:{},headers:{Authorization:t.token}}).then(function(e){"ok"==e.data.type&&(t.asset_list=e.data.message.legal_wallet.balance,t.totle=e.data.message.legal_wallet.usdt_totle,t.status=e.data.message.is_open_CTbi)}).catch(function(t){})},moreData:function(){var t=this;t.page=t.page+1,this.$http({url:"/api/wallet/legal_log",method:"post",data:{type:1,currency:t.currency,page:t.page},headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type){var a=t.asset_list;for(var s in a)t.currency==a[s].currency&&(t.active02=s,e.data.message.list.length>0?t.recData=t.recData.concat(e.data.message.list):t.more="没有更多数据了")}})},transfer:function(t,e){this.transferData.modalShow=!0}},created:function(){this.token=localStorage.getItem("token")||""},mounted:function(){this.getdata(),this.init()}},Hs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"header fColor1"},[a("p",{staticClass:"fl"},[t._v("\n "+t._s(t.$t("asset.all_assets"))+":\n "),a("span",{staticClass:"asset_name"},[t._v("$")]),t._v(" "),a("span",{staticClass:"asset_num"},[t._v(t._s(t._f("toFixeds")(t.totle)))])]),t._v(" "),a("p",{staticClass:"fr right_text"})]),t._v(" "),a("div",{staticClass:"content fColor1 ft12"},[a("div",{staticClass:"content_top flex alcenter fColor2"},[a("p",{staticClass:"flex1 tc"},[t._v("\n "+t._s(t.$t("asset.currency"))+"\n "),a("i")]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.canuse")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("asset.conversion")))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("td.do")))])]),t._v(" "),a("ul",{staticClass:"content_ul"},t._l(t.asset_list,function(e,s){return a("li",{key:s,staticClass:"pointer"},[a("div",{staticClass:"content_li flex alcenter between bdb"},[a("p",{staticClass:"flex1 tc"},[t._v(t._s(e.currency_name))]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.legal_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.lock_legal_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc"},[a("span",[t._v(t._s(t._f("toFixeds8")(e.usdt_price*e.legal_balance||"0.00")))])]),t._v(" "),a("p",{staticClass:"flex1 tc operation"},[a("span",{on:{click:function(a){t.go_legalAccount(e.currency)}}},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{on:{click:function(a){t.$router.push({path:"/transferLegal",query:{id:e.currency}})}}},[t._v(t._s(t.$t("asset.transfer")))])])]),t._v(" "),s==t.active?a("div",{staticClass:"hide_div"},[a("p",{staticClass:"fColor2 ft12"},[t._v(t._s(t.$t("asset.address_charge")))]),t._v(" "),a("p",{staticClass:"mt50 mb50"},[a("span",{staticClass:"ft18 fColor1 excharge_address",class:{bg:t.flags}},[t._v(t._s(t.excharge_address))]),t._v(" "),a("span",{staticClass:"copy ft14",attrs:{id:"copy"},on:{click:t.copy}},[t._v(t._s(t.$t("asset.copy")))]),t._v(" "),a("span",{staticClass:"ewm_wrap"},[a("span",{staticClass:"ewm ft14",on:{click:t.show_ewm}},[t._v(t._s(t.$t("asset.ercode")))]),t._v(" "),a("div",{staticClass:"ewm_img",class:{hide:t.isHide},attrs:{id:"code"}})])]),t._v(" "),a("p",{staticClass:"ft12 fColor2 mb50"},[t._v("\n "+t._s(t.$t("asset.look"))+"\n "),a("span",{staticClass:"excharge_record"},[t._v(t._s(t.$t("asset.chargeRecord")))]),t._v(t._s(t.$t("asset.status"))+"\n ")]),t._v(" "),a("p",{staticClass:"ft12 fColor2 mb15"},[t._v(t._s(t.$t("asset.reminder")))]),t._v(" "),a("ul",{staticClass:"tips_ul ft12 fColor2",staticStyle:{"list-style":"disc inside"}},t._l(t.tip_list,function(e){return a("li",{staticClass:"tips_li",staticStyle:{"list-style":"disc inside"}},[t._v(t._s(e))])}))]):t._e(),t._v(" "),s==t.active01?a("div",{staticClass:"hide_div"},[a("p",{staticClass:"fColor2 ft12 mb15"},[t._v(t._s(t.$t("asset.address_width")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.address,expression:"address"}],staticClass:"address_inp fColor1 mb30",attrs:{type:"text"},domProps:{value:t.address},on:{input:function(e){e.target.composing||(t.address=e.target.value)}}}),t._v(" "),a("p",{staticClass:"fColor2 ft12 mb15 flex between alcenter"},[a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",[t._v("\n "+t._s(t.$t("asset.canuse"))+":\n "),a("span",{staticClass:"use_num"},[t._v(t._s(t._f("toFixeds")(t.balance||"0.00")))]),t._v("\n "+t._s(t.coinname)+"\n "),a("span")])]),t._v(" "),a("label",{staticClass:"num_lab flex between mb30"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"fColor1",attrs:{type:"text",placeholder:t.min_number},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}}),t._v(" "),a("span",[t._v(t._s(t.coinname))])]),t._v(" "),a("div",{staticClass:"flex mb50"},[a("div",{staticClass:"left_inp_wrap flex1"},[a("p",{staticClass:"fColor2 ft12 mb15"},[a("span",[t._v("手续费")]),t._v(" "),a("span",[t._v(t._s(t.ratenum)+"%")])]),t._v(" "),a("label",{staticClass:"range_lab flex alcenter between"},[a("span",[t._v(t._s(t._f("toFixeds")(t.number*t.ratenum/100)))]),t._v(" "),a("span",[t._v(t._s(t.coinname))])])]),t._v(" "),a("div",{staticClass:"right_inp_wrap flex1"},[t._m(0,!0),t._v(" "),a("label",{staticClass:"get_lab flex alcenter between"},[a("span",[t._v(t._s(t._f("toFixeds")(t.number-t.number*t.ratenum/100)))]),t._v(" "),a("span",[t._v(t._s(t.coinname))])])])]),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex2"},[a("p",{staticClass:"ft12 fColor2 mb15"},[t._v("温馨提示")]),t._v(" "),a("ul",{staticClass:"tips_ul ft12 fColor2",staticStyle:{"list-style":"disc inside"}},t._l(t.tip_list01,function(e){return a("li",{staticClass:"tips_li",staticStyle:{"list-style":"disc inside"}},[t._v(t._s(e))])}))]),t._v(" "),a("div",{staticClass:"flex1 tc"},[a("button",{staticClass:"withdraw_btn",on:{click:t.mention}},[t._v("提币")])])])]):t._e(),t._v(" "),s==t.active02?a("div",{staticClass:"hide_div rec-box"},[a("div",{staticClass:"rec-con"},[t._m(1,!0),t._v(" "),a("ul",{staticClass:"rec-list"},t._l(t.recData,function(e,s){return a("li",{key:s},[a("span",[t._v(t._s(t._f("toFixeds")(e.value||"0.00")))]),t._v(" "),a("span",[t._v(t._s(e.info))]),t._v(" "),a("span",[t._v(t._s(e.created_time))])])})),t._v(" "),a("p",{staticClass:"more",on:{click:function(e){t.moreData()}}},[t._v(t._s(t.more))])])]):t._e()])}))]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.transferData.modalShow,expression:"transferData.modalShow"}],staticClass:"transfer-modal flex"},[a("div",{staticClass:"transfer-mask"},[a("div",{staticClass:"transfer-header"},[a("h3",[t._v("划转")]),t._v(" "),a("p",{on:{click:function(e){t.closes()}}},[t._v("X")])]),t._v(" "),a("div",{staticClass:"transfer-content"},[a("div",[a("p",[t._v("币种")]),t._v(" "),a("p",[t._v(t._s(t.transferData.transferName))]),t._v(" "),a("p",[t._v("可用余额")]),t._v(" "),a("p",[t._v(t._s(t.transferData.transferBalance))])]),t._v(" "),a("div",[a("p",[t._v("从")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.transferData.start,expression:"transferData.start"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.transferData,"start",e.target.multiple?a:a[0])}}},t._l(t.balanceList,function(e){return a("option",{domProps:{value:e}},[t._v(t._s(e))])}))]),t._v(" "),a("div",[a("p",[t._v("至")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.transferData.end,expression:"transferData.end"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.transferData,"end",e.target.multiple?a:a[0])}}},t._l(t.balanceList,function(e){return a("option",{domProps:{value:e}},[t._v(t._s(e))])}))]),t._v(" "),t._m(2)])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb15"},[e("span",{staticClass:"fColor2 ft12"},[this._v("到账数量")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"rec-title"},[e("span",[this._v("数量")]),this._v(" "),e("span",[this._v("记录")]),this._v(" "),e("span",[this._v("时间")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[this._v("划转数量")]),this._v(" "),e("input",{attrs:{type:"text",placeholder:"请输入划转数量"}})])}]};var Ks=a("VU/8")(Js,Hs,!1,function(t){a("C9u2")},"data-v-2c20b4c2",null).exports,Xs={data:function(){return{currency:"",legal_name:"",legal_balance:"",lock_legal_balance:"",cny_price:"",page:1,list:[],more:!0}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},created:function(){this.token=localStorage.getItem("token")||"",this.currency=this.$route.query.currency_id},mounted:function(){this.init(),this.legal_log()},methods:{init:function(){var t=this;this.$http({url:"/api/wallet/detail",method:"post",data:{currency:t.currency,type:"lever"},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;t.legal_name=a.currency_name,t.legal_balance=a.lever_balance,t.lock_legal_balance=a.lock_lever_balance,t.cny_price=(a.lever_balance-0)*a.ExRate}}).catch(function(t){})},legal_log:function(){var t=this;this.$http({url:"/api/wallet/legal_log",method:"post",data:{currency:t.currency,type:3,page:t.page},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length>0?t.list=t.list.concat(a):t.more=!1}}).catch(function(t){})},getMore:function(){this.page=this.page+1,this.legal_log()}}},qs={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main whites"},[a("p",{staticClass:"legal_name plr10"},[t._v(t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"legalAccount_msg flex between plr10 hide"},[a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("lever.canuse")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.lock_legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.conversion"))+"($)")]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(t.cny_price)))])])]),t._v(" "),a("div",{staticClass:"rec_wrap"},[a("p",{staticClass:"rec_title flex between"},[a("span",[t._v(t._s(t.$t("asset.moneyRecord")))])]),t._v(" "),a("p",{staticClass:"list_title flex"},[a("span",{staticClass:"ft14"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",{staticClass:"ft14 tc"},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{staticClass:"ft14 tr"},[t._v(t._s(t.$t("td.time")))])]),t._v(" "),a("ul",{staticClass:"log_list"},t._l(t.list,function(e,s){return a("li",{staticClass:"flex arround ft12 flex around"},[a("span",[t._v(t._s(t._f("toFixeds")(e.value)))]),t._v(" "),a("span",{staticClass:"tc"},[t._v(t._s(e.info))]),t._v(" "),a("span",{staticClass:"tr"},[t._v(t._s(e.created_time))])])})),t._v(" "),t.more?a("p",{staticClass:"tc ft12 curPer mt20",on:{click:function(e){t.getMore()}}},[t._v(t._s(t.$t("td.more")))]):a("p",{staticClass:"tc ft12 curPer mt20"},[t._v(t._s(t.$t("td.nomore")))])])])},staticRenderFns:[]};var $s=a("VU/8")(Xs,qs,!1,function(t){a("lcOq")},"data-v-27b1aec9",null).exports,ti={data:function(){return{currency:"",legal_name:"",legal_balance:"",lock_legal_balance:"",usdt_price:"",page:1,list:[],more:!0}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},created:function(){this.token=localStorage.getItem("token")||"",this.currency=this.$route.query.currency_id},mounted:function(){this.init(),this.legal_log()},methods:{init:function(){var t=this;this.$http({url:"/api/wallet/detail",method:"post",data:{currency:t.currency,type:"legal"},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;t.legal_name=a.currency_name,t.legal_balance=a.change_balance,t.lock_legal_balance=a.lock_change_balance,t.usdt_price=(a.change_balance-0)*a.usdt_price}}).catch(function(t){})},legal_log:function(){var t=this;this.$http({url:"/api/wallet/legal_log",method:"post",data:{currency:t.currency,type:1,page:t.page},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length>0?t.list=t.list.concat(a):t.more=!1}}).catch(function(t){})},getMore:function(){this.page=this.page+1,this.legal_log()}}},ei={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main whites"},[a("p",{staticClass:"legal_name plr10"},[t._v(t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"legalAccount_msg flex between plr10 hide"},[a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.canuse")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.lock_legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.conversion"))+"(CNY)")]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(t.usdt_price)))])])]),t._v(" "),a("div",{staticClass:"rec_wrap"},[a("p",{staticClass:"rec_title flex between"},[a("span",[t._v(t._s(t.$t("asset.moneyRecord")))])]),t._v(" "),a("p",{staticClass:"list_title flex"},[a("span",{staticClass:"ft14"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",{staticClass:"ft14 tc"},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{staticClass:"ft14 tr"},[t._v(t._s(t.$t("td.time")))])]),t._v(" "),a("ul",{staticClass:"log_list"},t._l(t.list,function(e,s){return a("li",{staticClass:"flex arround ft12 flex around"},[a("span",[t._v(t._s(t._f("toFixeds")(e.value)))]),t._v(" "),a("span",{staticClass:"tc"},[t._v(t._s(e.info))]),t._v(" "),a("span",{staticClass:"tr"},[t._v(t._s(e.created_time))])])})),t._v(" "),t.more?a("p",{staticClass:"tc ft12 curPer mt20",on:{click:function(e){t.getMore()}}},[t._v(t._s(t.$t("td.more")))]):a("p",{staticClass:"tc ft12 curPer mt20"},[t._v(t._s(t.$t("td.nomore")))])])])},staticRenderFns:[]};var ai=a("VU/8")(ti,ei,!1,function(t){a("fwGc")},"data-v-633695b2",null).exports,si={data:function(){return{currency:"",legal_name:"",legal_balance:"",lock_legal_balance:"",cny_price:"",page:1,list:[],more:!0}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(4)},toFixeds8:function(t){return(t=Number(t)).toFixed(8)}},created:function(){this.token=localStorage.getItem("token")||"",this.currency=this.$route.query.currency_id},mounted:function(){this.init(),this.legal_log()},methods:{init:function(){var t=this;this.$http({url:"/api/wallet/detail",method:"post",data:{currency:t.currency,type:"lever"},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;t.legal_name=a.currency_name,t.legal_balance=a.lever_balance,t.lock_legal_balance=a.lock_lever_balance,t.cny_price=(a.lever_balance-0)*a.ExRate}}).catch(function(t){})},legal_log:function(){var t=this;this.$http({url:"/api/wallet/legal_log",method:"post",data:{currency:t.currency,type:4,page:t.page},headers:{Authorization:t.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.list;a.length>0?t.list=t.list.concat(a):t.more=!1}}).catch(function(t){})},getMore:function(){this.page=this.page+1,this.legal_log()}}},ii={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main whites"},[a("p",{staticClass:"legal_name plr10"},[t._v(t._s(t.legal_name))]),t._v(" "),a("div",{staticClass:"legalAccount_msg flex between plr10 hide"},[a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("lever.canuse")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.frezz")))]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds8")(t.lock_legal_balance)))])]),t._v(" "),a("div",[a("p",{staticClass:"ft12 msg_title"},[t._v(t._s(t.$t("asset.conversion"))+"($)")]),t._v(" "),a("p",[t._v(t._s(t._f("toFixeds")(t.cny_price)))])])]),t._v(" "),a("div",{staticClass:"rec_wrap"},[a("p",{staticClass:"rec_title flex between"},[a("span",[t._v(t._s(t.$t("asset.moneyRecord")))])]),t._v(" "),a("p",{staticClass:"list_title flex"},[a("span",{staticClass:"ft14"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",{staticClass:"ft14 tc"},[t._v(t._s(t.$t("asset.record")))]),t._v(" "),a("span",{staticClass:"ft14 tr"},[t._v(t._s(t.$t("td.time")))])]),t._v(" "),a("ul",{staticClass:"log_list"},t._l(t.list,function(e,s){return a("li",{staticClass:"flex arround ft12 flex around"},[a("span",[t._v(t._s(t._f("toFixeds")(e.value)))]),t._v(" "),a("span",{staticClass:"tc"},[t._v(t._s(e.info))]),t._v(" "),a("span",{staticClass:"tr"},[t._v(t._s(e.created_time))])])})),t._v(" "),t.more?a("p",{staticClass:"tc ft12 curPer mt20",on:{click:function(e){t.getMore()}}},[t._v(t._s(t.$t("td.more")))]):a("p",{staticClass:"tc ft12 curPer mt20"},[t._v(t._s(t.$t("td.nomore")))])])])},staticRenderFns:[]};var ni=a("VU/8")(si,ii,!1,function(t){a("OKKy")},"data-v-d6f820d6",null).exports,oi={data:function(){return{token:"",selectedCoin:{name:"",id:""},change_coins:[],coins:[],coinIndex:0,types:[this.$t("asset.currency_account"),this.$t("asset.fince_account")],number:""}},created:function(){this.getCoins()},methods:{getCoins:function(){var t=this;this.token=window.localStorage.getItem("token")||"",this.$http({url:"/api/wallet/list",method:"post",headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.change_wallet.balance.filter(function(t,e){return 1==t.is_match}),s=e.data.message.legal_wallet.balance.filter(function(t){return 1==t.is_legal}),i=[],n=[];if(a.length>s.length){for(var o=0;o<s.length;o++)for(var r=0;r<a.length;r++)if(s[o].currency==a[r].currency){i.push(a[r]),n.push(s[o]);break}}else for(var c=0;c<a.length;c++)for(var l=0;l<s.length;l++)if(a[c].currency==s[l].currency){i.push(s[l]),n.push(a[c]);break}t.change_coins=i,t.coins=n}})},all:function(){this.types[0]==this.$t("asset.currency_account")?this.number=this.change_coins[this.coinIndex].change_balance:this.number=this.coins[this.coinIndex].legal_balance},transfer:function(){var t=this;if(""!=this.number){var e={};e.number=this.number,e.currency_id=this.coins[this.coinIndex].currency,e.from_field=this.types[0]==this.$t("asset.currency_account")?"change":"legal",e.to_field=this.types[0]==this.$t("asset.currency_account")?"legal":"change",this.$http({url:"/api/wallet/change",method:"post",data:e,headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push({path:"/legal"})},1e3)):layer.msg(e.data.message)})}else layer.msg(this.$t("asset.pNum"))}}},ri={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.coins.length?s("div",{attrs:{id:"transfer-legal"}},[s("div",{staticClass:"title"},[t._v(t._s(t.$t("asset.transfer")))]),t._v(" "),s("ul",{staticClass:"coins"},t._l(t.coins,function(e,a){return s("li",{key:a,class:["pointer whites",{active:a==t.coinIndex}],on:{click:function(e){t.coinIndex=a,t.number=""}}},[t._v("\n "+t._s(e.currency_name)+"\n ")])})),t._v(" "),s("div",{staticClass:"types"},[s("div",{staticClass:"types-l"},[s("div",[t._v(t._s(t.$t("asset.from")))]),t._v(" "),s("div",[t._v(t._s(t.$t("asset.to")))])]),t._v(" "),s("div",{staticClass:"types-r"},[s("div",[s("div",[t._v(t._s(t.types[0]))]),t._v(" "),s("div",[t._v(t._s(t.types[1]))])]),t._v(" "),s("img",{attrs:{src:a("Zzt/"),alt:""},on:{click:function(e){t.types.reverse(),t.number=""}}})])]),t._v(" "),s("div",{staticClass:"number"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"bdb input_color",attrs:{type:"number",placeholder:t.$t("asset.pNum")},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}}),t._v(" "),s("span",{staticStyle:{color:"#61688a"}},[t._v(t._s(t.coins[t.coinIndex].currency_name))]),t._v(" "),s("span",{staticClass:"all",on:{click:t.all}},[t._v(t._s(t.$t("td.all")))])]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{"line-height":"60px",margin:"20px 0 0 0px"}},[t._v(t._s(t.$t("asset.changeUselg"))+":"+t._s(t.change_coins[t.coinIndex].change_balance))]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{margin:"5px 0 30px 0"}},[t._v(t._s(t.$t("asset.legalUse"))+":"+t._s(t.coins[t.coinIndex].legal_balance))]),t._v(" "),s("button",{staticClass:"transfer",attrs:{type:"button"},on:{click:t.transfer}},[t._v(t._s(t.$t("asset.transfer")))])]):t._e()},staticRenderFns:[]};var ci=a("VU/8")(oi,ri,!1,function(t){a("Eudm")},"data-v-1d33cc07",null).exports,li={data:function(){return{token:"",selectedCoin:{name:"",id:""},lever_coins:[],coins:[],coinIndex:0,types:[this.$t("asset.lever_account"),this.$t("asset.currency_account")],number:""}},created:function(){this.getCoins()},methods:{getCoins:function(){var t=this;this.token=window.localStorage.getItem("token")||"",this.$http({url:"/api/wallet/list",method:"post",headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.change_wallet.balance.filter(function(t,e){return 1==t.is_match}),s=e.data.message.lever_wallet.balance.filter(function(t,e){return 1==t.is_legal}),i=[],n=[];if(a.length>s.length){for(var o=0;o<s.length;o++)for(var r=0;r<a.length;r++)if(s[o].currency==a[r].currency){i.push(a[r]),n.push(s[o]);break}}else for(var c=0;c<a.length;c++)for(var l=0;l<s.length;l++)if(a[c].currency==s[l].currency){i.push(s[l]),n.push(a[c]);break}t.lever_coins=n,t.coins=i}})},all:function(){this.types[0]==this.$t("asset.lever_account")?this.number=this.lever_coins[this.coinIndex].lever_balance:this.number=this.coins[this.coinIndex].legal_balance},transfer:function(){var t=this;if(""!=this.number){var e={};e.number=this.number,e.currency_id=this.coins[this.coinIndex].currency,e.from_field=this.types[0]==this.$t("asset.lever_account")?"lever":"change",e.to_field=this.types[1]==this.$t("asset.currency_account")?"change":"lever",this.$http({url:"/api/wallet/change",method:"post",data:e,headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push({path:"/finance"})},1e3)):layer.msg(e.data.message)})}else layer.msg(this.$t("asset.pNum"))}}},di={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.coins.length?s("div",{attrs:{id:"transfer-legal"}},[s("div",{staticClass:"title"},[t._v(t._s(t.$t("asset.transfer")))]),t._v(" "),s("ul",{staticClass:"coins"},t._l(t.coins,function(e,a){return s("li",{key:a,class:["pointer whites",{active:a==t.coinIndex}],on:{click:function(e){t.coinIndex=a,t.number=""}}},[t._v("\n "+t._s(e.currency_name)+"\n ")])})),t._v(" "),s("div",{staticClass:"types"},[s("div",{staticClass:"types-l"},[s("div",[t._v(t._s(t.$t("asset.from")))]),t._v(" "),s("div",[t._v(t._s(t.$t("asset.to")))])]),t._v(" "),s("div",{staticClass:"types-r"},[s("div",[s("div",[t._v(t._s(t.types[0]))]),t._v(" "),s("div",[t._v(t._s(t.types[1]))])]),t._v(" "),s("img",{attrs:{src:a("Zzt/"),alt:""},on:{click:function(e){t.types.reverse(),t.number=""}}})])]),t._v(" "),s("div",{staticClass:"number"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"bdb input_color",attrs:{type:"number",placeholder:t.$t("asset.pNum")},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}}),t._v(" "),s("span",{staticStyle:{color:"#61688a"}},[t._v(t._s(t.coins[t.coinIndex].currency_name))]),t._v(" "),s("span",{staticClass:"all",on:{click:t.all}},[t._v(t._s(t.$t("td.all")))])]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{"line-height":"60px",margin:"20px 0 0px"}},[t._v(t._s(t.$t("asset.leverUse"))+":"+t._s(t.lever_coins[t.coinIndex].lever_balance))]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{margin:"5px 0 30px"}},[t._v(t._s(t.$t("asset.changeUselg"))+":"+t._s(t.coins[t.coinIndex].change_balance))]),t._v(" "),s("button",{staticClass:"transfer",attrs:{type:"button"},on:{click:t.transfer}},[t._v(t._s(t.$t("asset.transfer")))])]):t._e()},staticRenderFns:[]};var ui=a("VU/8")(li,di,!1,function(t){a("9jpL")},"data-v-0412c4a6",null).exports,mi=(a("IuFh"),{data:function(){return{token:"",selectedCoin:{name:"",id:""},micro_coins:[],coins:[],coinIndex:0,types:[this.$t("asset.micro_account"),this.$t("asset.currency_account")],number:""}},created:function(){this.getCoins()},methods:{getCoins:function(){var t=this;this.token=window.localStorage.getItem("token")||"",this.$http({url:"/api/wallet/list",method:"post",headers:{Authorization:this.token}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.change_wallet.balance.filter(function(t,e){return 1==t.is_match}),s=e.data.message.micro_wallet.balance.filter(function(t,e){return 1==t.is_micro}),i=[],n=[];if(a.length>s.length){for(var o=0;o<s.length;o++)for(var r=0;r<a.length;r++)if(s[o].currency==a[r].currency){i.push(a[r]),n.push(s[o]);break}}else for(var c=0;c<a.length;c++)for(var l=0;l<s.length;l++)if(a[c].currency==s[l].currency){i.push(s[l]),n.push(a[c]);break}t.micro_coins=n,t.coins=i}})},all:function(){this.types[0]==this.$t("asset.micro_account")?this.number=this.micro_coins[this.coinIndex].micro_balance:this.number=this.coins[this.coinIndex].change_balance},transfer:function(){var t=this;if(""!=this.number){var e={};e.number=this.number,e.currency_id=this.coins[this.coinIndex].currency,e.from_field=this.types[0]==this.$t("asset.micro_account")?"micro":"change",e.to_field=this.types[1]==this.$t("asset.currency_account")?"change":"micro",this.$http({url:"/api/wallet/change",method:"post",data:e,headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){t.$router.push({path:"/finance"})},1e3)):layer.msg(e.data.message)})}else layer.msg(this.$t("asset.pNum"))}}}),pi={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.coins.length?s("div",{attrs:{id:"transfer-legal"}},[s("div",{staticClass:"title"},[t._v(t._s(t.$t("asset.transfer")))]),t._v(" "),s("ul",{staticClass:"coins"},t._l(t.coins,function(e,a){return s("li",{key:a,class:["pointer whites",{active:a==t.coinIndex}],on:{click:function(e){t.coinIndex=a,t.number=""}}},[t._v("\n "+t._s(e.currency_name)+"\n ")])})),t._v(" "),s("div",{staticClass:"types"},[s("div",{staticClass:"types-l"},[s("div",[t._v(t._s(t.$t("asset.from")))]),t._v(" "),s("div",[t._v(t._s(t.$t("asset.to")))])]),t._v(" "),s("div",{staticClass:"types-r"},[s("div",[s("div",[t._v(t._s(t.types[0]))]),t._v(" "),s("div",[t._v(t._s(t.types[1]))])]),t._v(" "),s("img",{attrs:{src:a("Zzt/"),alt:""},on:{click:function(e){t.types.reverse(),t.number=""}}})])]),t._v(" "),s("div",{staticClass:"number"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"bdb input_color",attrs:{type:"number",placeholder:t.$t("asset.pNum")},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}}),t._v(" "),s("span",{staticStyle:{color:"#61688a"}},[t._v(t._s(t.coins[t.coinIndex].currency_name))]),t._v(" "),s("span",{staticClass:"all",on:{click:t.all}},[t._v(t._s(t.$t("td.all")))])]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{"line-height":"60px",margin:"20px 0 0px"}},[t._v(t._s(t.$t("asset.microUse"))+":"+t._s(t.micro_coins[t.coinIndex].micro_balance))]),t._v(" "),s("div",{staticClass:"balance",staticStyle:{margin:"5px 0 30px"}},[t._v(t._s(t.$t("asset.changeUselg"))+":"+t._s(t.coins[t.coinIndex].change_balance))]),t._v(" "),s("button",{staticClass:"transfer pointer",attrs:{type:"button"},on:{click:t.transfer}},[t._v(t._s(t.$t("asset.transfer")))])]):t._e()},staticRenderFns:[]};var hi=a("VU/8")(mi,pi,!1,function(t){a("Ap+8")},"data-v-4169b7ba",null).exports,vi={data:function(){return{more:"加载更多",page:1,limit:20,log_list:[]}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},created:function(){},mounted:function(){this.init()},methods:{init:function(){var t=this,e=layer.load();this.$http({url:"/api/account/list",method:"post",data:{limit:this.limit,page:this.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){layer.close(e),"ok"==a.data.type?(t.log_list=t.log_list.concat(a.data.message.data),0==a.data.message.data.length&&(t.more=t.$t("td.nodata")),a.data.message.data.length<t.limit?t.more=t.$t("td.nomore"):a.data.message.data.length==t.limit&&(t.more=t.$t("td.more"))):layer.msg(a.data.message)}).catch(function(t){})},getMore:function(){this.more="加载中...",this.page+=1,this.init()}}},_i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main wrap"},[a("ul",{staticClass:"whites log_ul"},[a("li",{staticClass:"flex ft14"},[a("span",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("td.time")))]),t._v(" "),a("span",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("set.detail")))]),t._v(" "),a("span",{staticClass:"flex1 tc"},[t._v(t._s(t.$t("set.val")))])]),t._v(" "),a("div",{staticClass:"li_wrap scroll"},[t._l(t.log_list,function(e,s){return a("li",{key:s,staticClass:"flex ft12 around"},[a("span",{staticClass:"flex1 tc"},[t._v(t._s(e.created_time))]),t._v(" "),a("span",{staticClass:"flex1 tc"},[t._v(t._s(e.info))]),t._v(" "),a("span",{staticClass:"flex1 tc"},[t._v(t._s(t._f("toFixeds")(e.value))+" "+t._s(e.currency_name))])])}),t._v(" "),a("p",{staticClass:"tc more",on:{click:t.getMore}},[t._v(t._s(t.more))])],2)])])},staticRenderFns:[]};var fi=a("VU/8")(vi,_i,!1,function(t){a("EkKh")},"data-v-683354a6",null).exports,gi={data:function(){return{userid:"",nodata:!1,money:"--",man:"--"}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},created:function(){this.init()},mounted:function(){},methods:{init:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.userid=e.data.message.id,t.tree())}).catch(function(t){})},tree:function(){var t=this;layui.use(["tree"],function(){t.$http({url:"/api/getNode",method:"post",data:{user_id:t.userid},dataType:"json"}).then(function(e){if("ok"==e.data.type){t.money=e.data.message.show_message.top_upnumber,t.man=e.data.message.show_message.real_teamnumber;var a=e.data.message.results;0==a.length&&(t.nodata=!0),t.list=a,t.render_tree(a)}else layer.msg(e.data.message)})})},reload:function(t){$("#demo2").html(""),this.render_tree(t)},render_tree:function(t){var e=this;layui.tree({elem:"#demo2",nodes:t,click:function(t){var a=this;e.$http({url:"/api/getNode",method:"post",data:{user_id:t.id}}).then(function(s){t.children=s.data.message.results,t.spread=!0,e.reload(a.nodes)})}})}}},yi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main wrap fColor1"},[a("div",{staticClass:"title flex between"},[a("span",[t._v("我的会员")]),t._v(" "),a("div",{staticClass:"topbox flex ml20"},[a("p",[t._v("我的团队业绩:"+t._s(t.money))]),t._v(" "),a("p",{staticClass:"ml20"},[t._v("团队人数(实名):"+t._s(t.man))])])]),t._v(" "),a("div",{staticClass:"main-content mt20"},[t._m(0),t._v(" "),t.nodata?a("div",{staticClass:"tc",staticStyle:{"padding-top":"100px"}},[t._v("暂无会员")]):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"white"},[e("ul",{attrs:{id:"demo2"}})])}]};var Ai=a("VU/8")(gi,yi,!1,function(t){a("gulF")},"data-v-46988152",null).exports,Ci={data:function(){return{page:1,more:!1,relist:[],nodata:!1}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},created:function(){this.init()},mounted:function(){},methods:{init:function(){var t=this;this.$http({url:"/api/profits/show_profits?page="+t.page,method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.data;a.length>9?t.more=!0:t.more=!1,t.relist=t.relist.concat(a)}}).catch(function(t){})},getmore:function(){this.page=this.page+1,this.init()}}},bi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main wrap fColor1"},[t._m(0),t._v(" "),a("div",{staticClass:"main-content mt20"},[t._m(1),t._v(" "),a("ul",[t._l(t.relist,function(e,s){return a("li",{staticClass:"ptb10 listitem flex tc"},[a("span",[t._v(t._s(e.value))]),t._v(" "),a("span",{staticStyle:{flex:"2"}},[t._v(t._s(e.info))]),t._v(" "),a("span",[t._v(t._s(e.created_time))])])}),t._v(" "),t.more?a("div",{staticClass:"more tc ft14 p10 curPer",on:{click:t.getmore}},[t._v("加载更多")]):t._e()],2),t._v(" "),0==t.relist.length?a("div",{staticClass:"tc mt60"},[t._v("暂无记录")]):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title flex"},[e("span",[this._v("历史盈亏记录")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ft12 ptb10 tc flex white_gray",staticStyle:{"border-bottom":"1px solid #303b4b"}},[e("span",{staticStyle:{flex:"1"}},[this._v("数量")]),this._v(" "),e("span",{staticStyle:{flex:"2"}},[this._v("明细")]),this._v(" "),e("span",{staticStyle:{flex:"1"}},[this._v("时间")])])}]};var wi=a("VU/8")(Ci,bi,!1,function(t){a("jPPM")},"data-v-40974fe1",null).exports,xi={components:{indexHeader:V,indexFooter:q},data:function(){return{account_number:"",password:""}},created:function(){this.bindInfo()},methods:{bindInfo:function(){var t=this;this.$http({url:"/api/jc/bind",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.account_number=e.data.message.user_name)}).catch(function(t){})},submit:function(){if(""!=this.account_number)if(""!=this.password){var t={user_name:this.account_number,password:this.password};this.$http({url:"/api/jc/bind",method:"post",data:t,headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type?(layer.msg(t.data.message),setTimeout(function(){location.reload()},1500)):layer.msg(t.data.message)})}else layer.msg("请输入密码");else layer.msg("请输入账号")}}},ki={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"forget-box"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v("账号绑定")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v("账号")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"input-main input-content",attrs:{type:"text",maxlength:"20",id:"account",autocomplete:"off"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v("密码")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"20",id:"password",autocomplete:"off"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",attrs:{type:"button"},on:{click:t.submit}},[t._v("确认")])])])])])]),t._v(" "),a("indexFooter")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticStyle:{display:"none"}},[e("span"),e("input",{attrs:{type:"text",name:"hidden1"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticStyle:{display:"none"}},[e("span"),e("input",{attrs:{type:"password",name:"hidden2"}})])}]};var Si=a("VU/8")(xi,ki,!1,function(t){a("MUl5")},"data-v-2f9a1167",null).exports,Ii={data:function(){var t;return t={numbers:"",number:0,rate:0,canuse:0,jcPrice:0,mkPrice:0,difference:0},sa()(t,"difference",0),sa()(t,"page",1),sa()(t,"more",!1),sa()(t,"hislist",[]),sa()(t,"password",""),t},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},computed:{ratevol:function(){return(this.numbers*this.rate).toFixed(2)||0},dnum:function(){return(this.numbers*this.jcPrice/this.mkPrice).toFixed(2)||0}},created:function(){this.init(),this.getlist()},mounted:function(){},methods:{init:function(){var t=this,e=this;this.$http({url:"/api/jc/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){"ok"==a.data.type?(t.number=a.data.message.jc_integral-0,t.rate=a.data.message.jc_exchange_fee-0,t.canuse=a.data.message.free_jc_integral-0,t.jcPrice=a.data.message.jc_price-0,t.difference=a.data.message.jc_price_difference-0,t.mkPrice=a.data.message.market_price-0+t.difference):(layer.msg(a.data.message),setTimeout(function(){e.$router.push("/bindInfo")},1e3))}).catch(function(t){})},rateSum:function(){},submit:function(){var t=this;return""==this.numbers||this.numbers<=0?layer.msg(this.$t("jc.pnum")):this.numbers>this.canuse?layer.msg(this.$t("jc.not")):void layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(e,a){t.password=e;var s=layer.load();t.$http({url:"/api/jc/exchange",method:"post",data:{use_number:t.numbers,password:t.password},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){layer.close(s),"ok"==t.data.type?(layer.msg(t.data.message),setTimeout(function(){location.reload()},1500)):layer.msg(t.data.message)}).catch(function(t){}),layer.close(a)})},getlist:function(){var t=this;this.$http({url:"/api/jc/exchange",method:"GET",data:{page:t.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.data;a.length>9?t.more=!0:t.more=!1,t.hislist=t.hislist.concat(a)}}).catch(function(t){})},getmore:function(){this.page=this.page+1,this.getlist()},getnew:function(t,e){this.hislist=[],this.page=1,this.more=!1,this.getlist()}}},Ei={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-main wrap fColor1"},[a("div",{staticClass:"title flex"},[a("span",[t._v(t._s(t.$t("jc.title")))])]),t._v(" "),a("div",{staticClass:"main-content mt20"},[a("ul",{staticClass:"flex alcenter center tc topboxs",staticStyle:{"padding-top":"20px"}},[a("li",[a("p",[t._v("JC"+t._s(t.$t("jc.balance")))]),t._v(" "),a("span",[t._v(t._s(t.number))])]),t._v(" "),a("li",[a("p",[t._v(t._s(t.$t("jc.cannum")))]),t._v(" "),a("span",{staticClass:"rate"},[t._v(t._s(t.canuse))])]),t._v(" "),a("li",[a("p",[t._v("BEAU"+t._s(t.$t("jc.new")))]),t._v(" "),a("span",{staticClass:"rate"},[t._v("$"+t._s(t.mkPrice))])])]),t._v(" "),a("div",{staticClass:"mt60 tc flex alcenter between",staticStyle:{width:"60%",margin:"0 auto","margin-top":"60px"}},[a("div",{staticClass:"flex alcenter"},[a("p",[t._v(t._s(t.$t("jc.exnum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.numbers,expression:"numbers"}],staticClass:"numbers",attrs:{type:"number",placeholder:t.$t("jc.pnum")},domProps:{value:t.numbers},on:{input:function(e){e.target.composing||(t.numbers=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"tc"},[a("span",[t._v(t._s(t.$t("jc.canex")))]),t._v(" "),a("span",{staticClass:"ml10 red"},[t._v("≈"+t._s(t.dnum))])]),t._v(" "),a("input",{staticClass:"submit",attrs:{type:"button",value:t.$t("jc.exnow")},on:{click:t.submit}})]),t._v(" "),a("div",{staticClass:"mt60"},[a("div",{staticClass:"record flex between"},[a("p",[t._v(t._s(t.$t("jc.record")))])]),t._v(" "),a("div",{staticClass:"mt10 flex tc ft12 plr20"},[a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.exnum")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.usenum")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.exprice")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.extime")))])]),t._v(" "),a("ul",{staticClass:"plr20 ulbox scroll ft14"},[t._l(t.hislist,function(e,s){return a("li",{staticClass:"libg mt10 flex tc"},[a("div",{staticClass:"flex1"},[t._v(t._s(e.exchange_num))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.integral))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.fact_market_price))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.created_at))])])}),t._v(" "),t.more?a("div",{staticClass:"more tc ft12 p10 curPer",on:{click:t.getmore}},[t._v(t._s(t.$t("td.more")))]):t._e()],2),t._v(" "),0==t.hislist.length?a("div",{staticClass:"tc mt60 ft12"},[t._v(t._s(t.$t("td.nomore")))]):t._e()])])])},staticRenderFns:[]};var Pi=a("VU/8")(Ii,Ei,!1,function(t){a("8Sqj")},null,null).exports,Ri={data:function(){var t;return t={numbers:"",number:0,rate:0,canuse:0,jcPrice:0,mkPrice:0,difference:0},sa()(t,"difference",0),sa()(t,"page",1),sa()(t,"more",!1),sa()(t,"hislist",[]),sa()(t,"password",""),t},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},computed:{ratevol:function(){return(this.numbers*this.rate).toFixed(2)||0},dnum:function(){return(this.numbers*this.jcPrice/this.mkPrice).toFixed(2)||0}},beforeCreate:function(){document.querySelector("html").setAttribute("style","background-color:#273041;")},beforeDestroy:function(){document.querySelector("html").removeAttribute("style")},created:function(){this.init(),this.getlist()},mounted:function(){},methods:{init:function(){var t=this,e=this;this.$http({url:"/api/jc/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){"ok"==a.data.type?(t.number=a.data.message.jc_integral-0,t.rate=a.data.message.jc_exchange_fee-0,t.canuse=a.data.message.free_jc_integral-0,t.jcPrice=a.data.message.jc_price-0,t.difference=a.data.message.jc_price_difference-0,t.mkPrice=a.data.message.market_price-0+t.difference):(layer.msg(a.data.message),setTimeout(function(){e.$router.push("/bindInfo")},1e3))}).catch(function(t){})},rateSum:function(){},submit:function(){if(""==this.numbers||this.numbers<=0)return layer.msg(this.$t("jc.pnum"));var t=layer.load();this.$http({url:"/api/jc/exchange",method:"post",data:{use_number:this.numbers},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.close(t),"ok"==e.data.type?(layer.msg(e.data.message),setTimeout(function(){location.reload()},1500)):layer.msg(e.data.message)}).catch(function(t){})},getlist:function(){var t=this;this.$http({url:"/api/jc/exchange",method:"GET",data:{page:t.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.data;a.length>9?t.more=!0:t.more=!1,t.hislist=t.hislist.concat(a)}}).catch(function(t){})},getmore:function(){this.page=this.page+1,this.getlist()},getnew:function(t,e){this.hislist=[],this.page=1,this.more=!1,this.getlist()},out:function(){var t=this;this.$http({url:"/api/user/logout",method:"post",data:{},headers:{Authorization:window.localStorage.getItem("token")}}).then(function(e){localStorage.clear(),t.$router.push("/components/loginTransfer")})}}},Bi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"account-mains wrap fColor1"},[a("div",{staticClass:"title flex between alcenter jscenter"},[a("span",[t._v(t._s(t.$t("jc.title")))]),t._v(" "),a("p",{staticClass:"out tc",on:{click:t.out}},[t._v(t._s(t.$t("jc.out")))])]),t._v(" "),a("div",{staticClass:"main-content mt20"},[a("ul",{staticClass:"flex alcenter center tc topboxs",staticStyle:{"padding-top":"20px"}},[a("li",[a("p",[t._v("JC"+t._s(t.$t("jc.balance")))]),t._v(" "),a("span",[t._v(t._s(t.number))])]),t._v(" "),a("li",[a("p",[t._v(t._s(t.$t("jc.cannum")))]),t._v(" "),a("span",{staticClass:"rate"},[t._v(t._s(t.canuse))])]),t._v(" "),a("li",[a("p",[t._v("BEAU"+t._s(t.$t("jc.new")))]),t._v(" "),a("span",{staticClass:"rate"},[t._v("$"+t._s(t.mkPrice))])])]),t._v(" "),a("div",{staticClass:"mt60 tc flex alcenter between",staticStyle:{width:"60%",margin:"0 auto","margin-top":"60px"}},[a("div",{staticClass:"flex alcenter"},[a("p",[t._v(t._s(t.$t("jc.exnum")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.numbers,expression:"numbers"}],staticClass:"numbers",attrs:{type:"number",placeholder:t.$t("jc.pnum")},domProps:{value:t.numbers},on:{input:function(e){e.target.composing||(t.numbers=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"tc"},[a("span",[t._v(t._s(t.$t("jc.canex")))]),t._v(" "),a("span",{staticClass:"ml10 red"},[t._v("≈"+t._s(t.dnum))])]),t._v(" "),a("input",{staticClass:"submit",attrs:{type:"button",value:t.$t("jc.exnow")},on:{click:t.submit}})]),t._v(" "),a("div",{staticClass:"mt60"},[a("div",{staticClass:"record flex "},[a("p",[t._v(t._s(t.$t("jc.record")))]),t._v(" "),a("p",{staticClass:"ml20 baseColor"},[a("router-link",{attrs:{to:"/"}},[t._v(t._s(t.$t("jc.gotd")))])],1)]),t._v(" "),a("div",{staticClass:"mt10 flex tc ft12 plr20"},[a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.exnum")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.usenum")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.exprice")))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(t.$t("jc.extime")))])]),t._v(" "),a("ul",{staticClass:"plr20 ulbox scroll ft14"},[t._l(t.hislist,function(e,s){return a("li",{staticClass:"libg mt10 flex tc"},[a("div",{staticClass:"flex1"},[t._v(t._s(e.exchange_num))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.integral))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.fact_market_price))]),t._v(" "),a("div",{staticClass:"flex1"},[t._v(t._s(e.created_at))])])}),t._v(" "),t.more?a("div",{staticClass:"more tc ft12 p10 curPer",on:{click:t.getmore}},[t._v(t._s(t.$t("td.more")))]):t._e()],2),t._v(" "),0==t.hislist.length?a("div",{staticClass:"tc mt60 ft12"},[t._v(t._s(t.$t("td.nomore")))]):t._e()])])])},staticRenderFns:[]};var Fi=a("VU/8")(Ri,Bi,!1,function(t){a("97u5")},null,null).exports,Ni={data:function(){return{legal_id:"",currency_id:"",list_content:[],page:1,more:this.$t("td.more")}},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},created:function(){this.legal_id=localStorage.getItem("legal_id"),this.currency_id=localStorage.getItem("currency_id"),this.init()},methods:{init:function(){var t=this;this.more=this.$t("lever.loading"),this.$http({url:"/api/lever/dealall",method:"post",data:{legal_id:this.legal_id,currency_id:this.currency_id,page:this.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type?(t.more=t.$t("td.more"),t.list_content=t.list_content.concat(e.data.message.order.data),0==e.data.message.order.data.length&&(t.more=t.$t("td.nomore"))):layer.msg(e.data.message)}).catch(function(t){})},pingcang:function(t){var e=this;layer.confirm(e.$t("lever.sureping"),function(){e.$http({url:"/api/lever/close",method:"post",data:{id:t},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type?(layer.msg(t.data.message),location.reload()):layer.msg(t.data.message)}).catch(function(t){})})},load_more:function(){this.page++,this.init()}}},Ti={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap bg-part"},[a("ul",{staticClass:"list_head bdb ft14"},[a("li",[a("span",[t._v(t._s(t.$t("td.time")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.price")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.do")))])])]),t._v(" "),a("ul",{staticClass:"list_content fColor1 ft12"},t._l(t.list_content,function(e,s){return a("li",{key:s},[a("span",[t._v(t._s(e.time))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixedFour")(e.price)))]),t._v(" "),a("span",[t._v(t._s(t._f("tofixed")(e.number)))]),t._v(" "),a("span",{staticClass:"red",on:{click:function(a){t.pingcang(e.id)}}},[t._v("平仓")])])})),t._v(" "),a("p",{staticClass:"more",on:{click:t.load_more}},[t._v(t._s(t.more))])])},staticRenderFns:[]};var Di=a("VU/8")(Ni,Ti,!1,function(t){a("gprh")},"data-v-5f4f558e",null).exports,Li={data:function(){return{legal_id:"",currency_id:"",list_content:[],page:1,more:this.$t("td.more"),modalShow:!1,targetProfit:"",stopLose:"",modalProfit:"",modalStop:"",modalId:"",presentPrice:"",riskRate:"",totalPro:"",stopModal:!1,selectType:"all",openPrice:"",profitsPrice:"",orderType:"",shareNum:""}},created:function(){this.legal_id=localStorage.getItem("legal_id"),this.currency_id=localStorage.getItem("currency_id"),this.init(),this.loads(),this.leverclosed()},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},methods:{init:function(){var t=this;this.more=this.$t("lever.loading"),this.$http({url:"/api/lever/dealall",method:"post",data:{legal_id:this.legal_id,currency_id:this.currency_id,page:this.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type?(t.more=t.$t("td.more"),t.list_content=t.list_content.concat(e.data.message.order.data),t.riskRate=e.data.message.hazard_rate,t.totalPro=e.data.message.profits_total,t.profitsPrice=e.data.message.profits,0==e.data.message.order.data.length&&(t.more=t.$t("td.nomore")),0==e.data.message.order.data.length&&1==t.page&&(t.more=t.$t("td.nodata"))):layer.msg(e.data.message)}).catch(function(t){})},loads:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("lever_trade",function(e){if("lever_trade"==e.type){var a=e.trades_all;t.legal_id==e.legal_id&&(t.riskRate=e.hazard_rate,t.totalPro=e.profits_all),t.profitsPrice=e.profits;var s=t.list_content;s.forEach(function(t,e){a.forEach(function(a,i){t.legal==a.legal&&t.currency==a.currency&&t.id==a.id&&s.splice(e,1,a)})})}})},leverclosed:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("lever_closed",function(e){if("lever_closed"==e.type){var a=t.list_content,s=e.id;a.forEach(function(t,e){s.forEach(function(s,i){t.id==s&&a.splice(e,1)})})}})},pingcang:function(t){var e=this;layer.confirm(e.$t("lever.sureClose"),function(){e.$http({url:"/api/lever/close",method:"post",data:{id:t},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type?(layer.msg(t.data.message),location.reload()):layer.msg(t.data.message)}).catch(function(t){})})},load_more:function(){this.page++,this.init()},stopLoss:function(t){for(var e in this.modalShow=!0,this.list_content)this.list_content[e].id==t&&(this.shareNum=this.list_content[e].share,this.modalId=this.list_content[e].id,this.presentPrice=parseFloat(this.list_content[e].price).toFixed(2),this.openPrice=parseFloat(this.list_content[e].update_price).toFixed(2),this.list_content[e].target_profit_price>0?this.targetProfit=parseFloat(this.list_content[e].target_profit_price).toFixed(2):this.targetProfit=this.openPrice,this.list_content[e].stop_loss_price>0?this.stopLose=parseFloat(this.list_content[e].stop_loss_price).toFixed(2):this.stopLose=this.openPrice,1==this.list_content[e].type?(this.orderType="buy",this.list_content[e].target_profit_price>0?this.modalProfit=((this.targetProfit-parseFloat(this.list_content[e].price)-0)*(this.list_content[e].share-0)).toFixed(2):this.modalProfit="0.00",this.list_content[e].stop_loss_price>0?this.modalStop=((parseFloat(this.list_content[e].price).toFixed(2)-this.stopLose-0)*(this.list_content[e].share-0)).toFixed(2):this.modalStop="0.00"):(this.orderType="sell",this.list_content[e].target_profit_price>0?this.modalProfit=((parseFloat(this.list_content[e].price).toFixed(2)-this.targetProfit-0)*(this.list_content[e].share-0)).toFixed(2):this.modalProfit="0.00",this.list_content[e].stop_loss_price>0?this.modalStop=((this.stopLose-parseFloat(this.list_content[e].price)-0)*(this.list_content[e].share-0)).toFixed(2):this.modalStop="0.00"))},add:function(t){"buy"==this.orderType?1==t?(this.targetProfit=(parseFloat(this.targetProfit)+.01).toFixed(2),this.modalProfit=((parseFloat(this.targetProfit)-this.presentPrice-0)*(this.shareNum-0)).toFixed(2)):(this.stopLose=(parseFloat(this.stopLose)+.01).toFixed(2),this.modalStop=((this.presentPrice-this.stopLose-0)*(this.shareNum-0)).toFixed(2)):1==t?(this.targetProfit=(parseFloat(this.targetProfit)+.01).toFixed(2),this.modalProfit=((parseFloat(this.presentPrice-this.targetProfit)-0)*(this.shareNum-0)).toFixed(2)):(this.stopLose=(parseFloat(this.stopLose)+.01).toFixed(2),this.modalStop=((parseFloat(this.stopLose-this.presentPrice)-0)*(this.shareNum-0)).toFixed(2))},reduce:function(t){"buy"==this.orderType?1==t?this.targetProfit>0?(this.targetProfit=(parseFloat(this.targetProfit)-.01).toFixed(2),this.modalProfit=((parseFloat(this.targetProfit)-this.presentPrice-0)*(this.shareNum-0)).toFixed(2)):layer.msg(this.$t("lever.thanzone")):this.stopLose>0?(this.stopLose=(parseFloat(this.stopLose)-.01).toFixed(2),this.modalStop=((this.presentPrice-this.stopLose-0)*(this.shareNum-0)).toFixed(2)):layer.msg(this.$t("lever.thanzone")):1==t?this.targetProfit>0?(this.targetProfit=(parseFloat(this.targetProfit)-.01).toFixed(2),this.modalProfit=((this.presentPrice-this.targetProfit-0)*(this.shareNum-0)).toFixed(2)):layer.msg(this.$t("lever.thanzone")):this.stopLose>0?(this.stopLose=(parseFloat(this.stopLose)-.01).toFixed(2),this.modalStop=((parseFloat(this.stopLose-this.presentPrice)-0)*(this.shareNum-0)).toFixed(2)):layer.msg(this.$t("lever.thanzone"))},inputValue:function(t){if("buy"==this.orderType)if(1==t){var e=((parseFloat(this.targetProfit)-parseFloat(this.presentPrice)-0)*(this.shareNum-0)).toFixed(2);this.modalProfit=e>0?e:0}else{var a=((parseFloat(this.presentPrice)-parseFloat(this.stopLose)-0)*(this.shareNum-0)).toFixed(2);this.modalStop=a>0?a:0}else if(1==t){var s=((parseFloat(this.presentPrice)-parseFloat(this.targetProfit)-0)*(this.shareNum-0)).toFixed(2);this.modalProfit=s>0?s:0}else{var i=((parseFloat(this.stopLose)-parseFloat(this.presentPrice)-0)*(this.shareNum-0)).toFixed(2);this.modalStop=i>0?i:0}},closeMosal:function(){this.modalShow=!1},comfirm:function(){var t=this;this.$http({url:"/api/lever/setstop",method:"post",data:{id:t.modalId,target_profit_price:t.targetProfit,stop_loss_price:t.stopLose},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){if("ok"==e.data.type)for(var a in t.modalShow=!1,layer.msg(e.data.message),t.list_content)t.modalId==t.list_content[a].id&&(t.list_content[a].target_profit_price=t.targetProfit,t.list_content[a].stop_loss_price=t.stopLose);else layer.msg(e.data.message)}).catch(function(t){})},stopTotal:function(){this.stopModal=!0},closeStopModal:function(){this.stopModal=!1},selectStop:function(t){this.selectType=t},comfirmModal:function(){var t=this,e=0;e="all"==t.selectType?0:"buy"==t.selectType?1:2,this.$http({url:"/api/lever/batch_close",method:"post",data:{type:e},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type?(t.stopModal=!1,layer.msg(e.data.message),t.list_content=[],t.init()):(t.stopModal=!1,layer.msg(e.data.message))}).catch(function(e){t.stopModal=!1})}}},Mi={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wrap bg-part"},[s("div",{staticClass:"lever-header fColor1 mb15"},[t._v(t._s(t.$t("lever.risk"))+":"+t._s(t.riskRate)+"%")]),t._v(" "),s("div",{staticClass:"total-pro fColor1 clearfix"},[s("p",{staticClass:"fl"},[t._v("\n "+t._s(t.$t("lever.allloss"))+":\n "),s("span",{class:["red","flex1",{green:t.totalPro>0}]},[t._v(t._s(t._f("tofixedFour")(t.totalPro)))]),t._v(" "),s("br")]),t._v(" "),s("button",{staticClass:"fr",attrs:{type:"button"},on:{click:function(e){t.stopTotal()}}},[t._v(t._s(t.$t("lever.onehouse")))])]),t._v(" "),s("ul",{staticClass:"list_head ft14 bdb"},[s("li",{staticClass:"flex"},[s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.type")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.openPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.nowPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.bail")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.styPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.stsPrice")))]),t._v(" "),s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.openTime")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.rate")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.nightFee")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.loss")))]),t._v(" "),s("span",{staticClass:"width3"},[t._v(t._s(t.$t("td.do")))])])]),t._v(" "),s("ul",{staticClass:"list_content fColor1 ft12"},t._l(t.list_content,function(e,a){return s("li",{key:a,staticClass:"flex alcenter"},[s("span",{staticClass:"width2"},[t._v(t._s(1==e.type?"买入":"卖出")+" "+t._s(e.symbol)+" x"+t._s(e.share))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.update_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.caution_money||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.target_profit_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.stop_loss_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width2"},[t._v(t._s(e.transaction_time))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.trade_fee||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.overnight_money||"0.00")))]),t._v(" "),s("span",{class:["red","width1",{green:e.profits>0}]},[t._v(t._s(t._f("tofixedFour")(e.profits||"0.00")))]),t._v(" "),s("div",{staticClass:"width3"},[s("span",{staticClass:"stop-btn",on:{click:function(a){t.stopLoss(e.id)}}},[t._v(t._s(t.$t("lever.setloss")))]),t._v(" "),s("span",{on:{click:function(a){t.pingcang(e.id)}}},[t._v(t._s(t.$t("lever.ping")))])])])})),t._v(" "),s("div",{staticClass:"mores",on:{click:t.load_more}},[0==t.list_content.length?s("img",{attrs:{src:a("f0hK"),alt:""}}):t._e(),t._v(" "),s("span",[t._v(t._s(t.more))])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.modalShow,expression:"modalShow"}],staticClass:"loss-modal flex"},[s("div",{staticClass:"content"},[s("div",{staticClass:"loss-modal-header"},[s("h3",[t._v(t._s(t.$t("lever.setloss")))]),t._v(" "),s("p",{on:{click:function(e){t.closeMosal()}}},[t._v("X")])]),t._v(" "),s("div",{staticClass:"loss-madal-content"},[s("div",{staticClass:"flex"},[s("span",[t._v(t._s(t.$t("lever.styPrice"))+":")]),t._v(" "),s("p",[s("span",{on:{click:function(e){t.reduce(1)}}},[t._v("-")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.targetProfit,expression:"targetProfit"}],attrs:{type:"text"},domProps:{value:t.targetProfit},on:{input:[function(e){e.target.composing||(t.targetProfit=e.target.value)},function(e){t.inputValue(1)}]}}),t._v(" "),s("span",{on:{click:function(e){t.add(1)}}},[t._v("+")])])]),t._v(" "),s("p",{staticClass:"modal-text"},[t._v(t._s(t.$t("lever.expectProfit"))+":"+t._s(t.modalProfit))]),t._v(" "),s("div",{staticClass:"flex"},[s("span",[t._v(t._s(t.$t("lever.stsPrice"))+":")]),t._v(" "),s("p",[s("span",{on:{click:function(e){t.reduce(2)}}},[t._v("-")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.stopLose,expression:"stopLose"}],attrs:{type:"text"},domProps:{value:t.stopLose},on:{input:[function(e){e.target.composing||(t.stopLose=e.target.value)},function(e){t.inputValue(2)}]}}),t._v(" "),s("span",{on:{click:function(e){t.add(2)}}},[t._v("+")])])]),t._v(" "),s("p",{staticClass:"modal-text"},[t._v(t._s(t.$t("lever.expectLoss"))+":"+t._s(t.modalStop))])]),t._v(" "),s("div",{staticClass:"modal-btn"},[s("button",{attrs:{type:"button"},on:{click:function(e){t.closeMosal()}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),s("button",{attrs:{type:"button"},on:{click:function(e){t.comfirm()}}},[t._v(t._s(t.$t("td.confirm")))])])])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.stopModal,expression:"stopModal"}],staticClass:"loss-modal flex"},[s("div",{staticClass:"content"},[s("div",{staticClass:"loss-modal-header"},[s("h5",[t._v(t._s(t.$t("lever.sureClose")))]),t._v(" "),s("p",{on:{click:function(e){t.closeStopModal()}}},[t._v("X")])]),t._v(" "),s("div",{staticClass:"stopModal"},[s("span",{class:["stopall",{alls:"all"==t.selectType}],on:{click:function(e){t.selectStop("all")}}},[t._v(t._s(t.$t("lever.allClose")))]),t._v(" "),s("span",{class:["stopbuy",{buys:"buy"==t.selectType}],on:{click:function(e){t.selectStop("buy")}}},[t._v(t._s(t.$t("lever.moreClose")))]),t._v(" "),s("span",{class:["stopsell",{sells:"sell"==t.selectType}],on:{click:function(e){t.selectStop("sell")}}},[t._v(t._s(t.$t("lever.nullClose")))])]),t._v(" "),s("div",{staticClass:"stop-modal-btns"},[s("button",{attrs:{type:"button"},on:{click:function(e){t.closeStopModal()}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),s("button",{attrs:{type:"button"},on:{click:function(e){t.comfirmModal()}}},[t._v(t._s(t.$t("td.confirm")))])])])])])},staticRenderFns:[]};var Ui=a("VU/8")(Li,Mi,!1,function(t){a("W9St")},"data-v-31800439",null).exports,Qi={data:function(){return{legal_id:"",currency_id:"",list_content:[],page:1,more:this.$t("td.more"),status:0,flag:!0}},created:function(){this.init(),0!=this.status&&1!=this.status||(this.polling(),this.leverclosed())},filters:{tofixed:function(t){return(t=Number(t)).toFixed(2)},tofixedFour:function(t){return(t=Number(t)).toFixed(4)}},methods:{init:function(){var t=this;if(t.more=t.$t("cuy.loading"),t.flag){var e=layer.load();this.$http({url:"/api/lever/my_trade",method:"post",data:{status:t.status,legal_id:t.legal_id,currency_id:t.currency_id,page:t.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){layer.close(e),t.flag=!0,"ok"==a.data.type?(t.more=t.$t("td.more"),1==t.page?t.list_content=a.data.message.message.data:t.list_content=t.list_content.concat(a.data.message.message.data),0==a.data.message.message.data.length&&(t.more=t.$t("td.nomore")),0==a.data.message.message.data.length&&1==t.page&&(t.more=t.$t("td.nodata"))):layer.msg(a.data.message)}).catch(function(t){})}},polling:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("lever_trade",function(e){if("lever_trade"==e.type)if(0==t.status){var a=e.trades_entrust;(s=t.list_content).forEach(function(t,e){a.forEach(function(a,i){t.legal==a.legal&&t.currency==a.currency&&t.id==a.id&&s.splice(e,1,a)})})}else if(1==t.status){var s,i=e.trades_all;(s=t.list_content).forEach(function(t,e){i.forEach(function(a,i){t.legal==a.legal&&t.currency==a.currency&&t.id==a.id&&s.splice(e,1,a)})})}})},leverclosed:function(){var t=this;t.$socket.emit("login",localStorage.getItem("user_id")),t.$socket.on("lever_closed",function(e){if("lever_closed"==e.type){var a=t.list_content,s=e.id;1!=t.status&&0!=t.status||a.forEach(function(t,e){s.forEach(function(s,i){t.id==s&&a.splice(e,1)})})}})},load_more:function(){this.page++,this.init(),that.flag=!1},tabClick:function(t){this.status=t,this.list_content=[],this.page=1,this.init(),this.flag=!1,0!=t&&1!=t||this.polling()},closePosition:function(t){var e=this;layer.confirm(e.$t("lever.sureping"),{skin:"confirmCancel"},function(){var a=layer.load();e.$http({url:"/api/lever/close",method:"post",data:{id:t},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){layer.close(a),"ok"==t.data.type?(layer.msg(t.data.message),setTimeout(function(){e.tabClick(e.status)},200)):layer.msg(t.data.message)}).catch(function(t){layer.close(a)})})},cannelOrder:function(t){var e=this;layer.confirm(e.$t("lever.revokeOrder"),{skin:"confirmCancel"},function(){var a=layer.load();e.$http({url:"/api/lever/cancel",method:"post",data:{id:t},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){layer.close(a),"ok"==t.data.type?(layer.msg(t.data.message),setTimeout(function(){e.tabClick(e.status)},200)):layer.msg(t.data.message)}).catch(function(t){layer.close(a)})})}}},zi={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wrap bg-part"},[s("div",{staticClass:"tab-header"},[s("span",{class:[{active:0==t.status}],on:{click:function(e){t.tabClick(0)}}},[t._v(t._s(t.$t("lever.listin")))]),t._v(" "),s("span",{class:[{active:1==t.status}],on:{click:function(e){t.tabClick(1)}}},[t._v(t._s(t.$t("lever.tdin")))]),t._v(" "),s("span",{class:[{active:2==t.status}],on:{click:function(e){t.tabClick(2)}}},[t._v(t._s(t.$t("lever.closein")))]),t._v(" "),s("span",{class:[{active:3==t.status}],on:{click:function(e){t.tabClick(3)}}},[t._v(t._s(t.$t("lever.closed")))]),t._v(" "),s("span",{class:[{active:4==t.status}],on:{click:function(e){t.tabClick(4)}}},[t._v(t._s(t.$t("lever.revoked")))])]),t._v(" "),s("ul",{staticClass:"list_head bdb ft14"},[t.list_content.length?s("li",{staticClass:"flex"},[s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.type")))]),t._v(" "),0==t.status||4==t.status?s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.entrustPrice")))]):s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.openPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.nowPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.styPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.stsPrice")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.bail")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.canBail")))]),t._v(" "),s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.openTime")))]),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(t.$t("lever.closeTime")))]):t._e(),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.rate")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.nightFee")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("lever.loss")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t.$t("fat.status")))]),t._v(" "),0==t.status||1==t.status?s("span",{staticClass:"width1"},[t._v(t._s(t.$t("td.do")))]):t._e()]):t._e()]),t._v(" "),s("ul",{staticClass:"list_content fColor1 ft12"},t._l(t.list_content,function(e,a){return s("li",{key:a,staticClass:"flex"},[s("span",{staticClass:"width2"},[t._v(t._s(1==e.type?t.$t("td.buyin"):t.$t("td.sellout"))+" "+t._s(e.symbol)+" x"+t._s(e.share))]),t._v(" "),0==t.status||4==t.status?s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.origin_price||"0.00")))]):s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.update_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.target_profit_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.stop_loss_price||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.origin_caution_money||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.caution_money||"0.00")))]),t._v(" "),s("span",{staticClass:"width2"},[t._v(t._s(e.transaction_time))]),t._v(" "),3==t.status?s("span",{staticClass:"width2"},[t._v(t._s(e.handle_time))]):t._e(),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.trade_fee||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(t._f("tofixedFour")(e.overnight_money||"0.00")))]),t._v(" "),s("span",{class:["red","width1",{green:e.profits>0}]},[t._v(t._s(t._f("tofixedFour")(e.profits||"0.00")))]),t._v(" "),s("span",{staticClass:"width1"},[t._v(t._s(e.status_name))]),t._v(" "),0==t.status||1==t.status?s("div",{staticClass:"width1 btns"},[0==t.status?s("button",{attrs:{type:"button"},on:{click:function(a){t.cannelOrder(e.id)}}},[t._v(t._s(t.$t("lever.revoke")))]):t._e(),t._v(" "),1==t.status?s("button",{attrs:{type:"button"},on:{click:function(a){t.closePosition(e.id)}}},[t._v(t._s(t.$t("lever.ping")))]):t._e()]):t._e()])})),t._v(" "),s("div",{staticClass:"mores",on:{click:t.load_more}},[0==t.list_content.length?s("img",{attrs:{src:a("f0hK"),alt:""}}):t._e(),t._v(" "),s("span",[t._v(t._s(t.more))])])])},staticRenderFns:[]};var Wi=a("VU/8")(Qi,zi,!1,function(t){a("EJoQ")},"data-v-39cc96ce",null).exports,Yi={data:function(){return{log:[],page:1}},created:function(){this.getLog()},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},methods:{getLog:function(){var t=this,e=window.localStorage.getItem("token");this.$http({url:"/api/wallet/hzhistory",method:"get",headers:{Authorization:e},data:{limit:30}}).then(function(e){if("ok"==e.data.type){var a=e.data.message.data;t.log=a}})}}},Gi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"lever-record"}},[a("div",{staticClass:"title"},[a("span",{staticClass:"fl"},[t._v(t._s(t.$t("asset.moneyRecord")))]),t._v(" "),a("span",{staticClass:"fr",on:{click:function(e){t.$router.go(-1)}}},[t._v(t._s(t.$t("news.back")))])]),t._v(" "),a("div",{staticClass:"list"},[a("div",{staticClass:"list-title flex"},[a("span",[t._v(t._s(t.$t("fat.type")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",[t._v(t._s(t.$t("td.time")))])]),t._v(" "),a("ul",t._l(t.log,function(e,s){return a("li",{key:s},[a("span",[t._v(t._s(e.info))]),t._v(" "),a("span",[t._v(t._s(t._f("toFixeds")(e.value||"0.00")))]),t._v(" "),a("span",[t._v(t._s(e.created_time))])])}))])])},staticRenderFns:[]};var ji=a("VU/8")(Yi,Gi,!1,function(t){a("8rrO")},null,null).exports,Vi={components:{indexHeader:V,indexFooter:q},data:function(){return{isMb:!0,account_number:"",phoneCode:"",showReset:!1,password:"",re_password:"",scene:""}},created:function(){this.showReset=this.$route.query.fromSet,this.showReset&&this.userInfo()},methods:{userInfo:function(){var t=this;this.$http({url:"/api/user/info",method:"get",data:{},headers:{Authorization:localStorage.getItem("token")}}).then(function(e){"ok"==e.data.type&&(t.account_number=e.data.message.account_number)}).catch(function(t){})},sendCode:function(t){this.scene=this.showReset?"change_password":"reset_password",this.$http({url:"/api/"+t,method:"post",data:{user_string:this.account_number,scene:this.scene},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){layer.msg(t.data.message)})},setTime:function(t){var e=this;if(!t.target.disabled){var a="sms_send";if(""!=this.account_number){/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,9}$/.test(this.account_number)?(a="sms_mail",this.isMb=!1):(a="sms_send",this.isMb=!0),this.sendCode(a);var s=60,i=null;i=setInterval(function(){if(t.target.innerHTML=s+"s",t.target.disabled=!0,0==s)return clearInterval(i),t.target.innerHTML=e.$t("set.sendCode"),void(t.target.disabled=!1);s--},1e3)}else layer.tips(this.$t("set.enterAccount"),"#account")}},check:function(){var t=this,e=this.account_number,a=(/^1[345678]\d{9}$/.test(e),/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,9}$/.test(e)),s="user/check_mobile",i={};if(""!=e)if(""!=this.phoneCode){if(a)s="user/check_email",i.email_code=this.phoneCode;else{if(a)return void layer.tips(this.$t("set.accountFalse"),"#account");s="user/check_mobile",i.mobile_code=this.phoneCode}this.$http({url:"/api/"+s,method:"post",data:i}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&(t.showReset=!0)})}else layer.tips(this.$t("set.enterCode"),"#pwd");else layer.tips(this.$t("set.enterAccount"),"#account")},resetPass:function(){var t=this;if(""!=this.password)if(""!=this.re_password)if(this.password===this.re_password){var e={account:this.account_number,password:this.password,repassword:this.re_password,code:this.phoneCode,scene:this.scene};this.$http({url:"/api/user/forget",method:"post",data:e,headers:{Authorization:localStorage.getItem("token")}}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&t.$router.push("/components/login")})}else layer.msg(this.$t("set.pswFalse"));else layer.msg(this.$t("set.enterPswagain"));else layer.msg(this.$t("set.enterPsw"))}}},Oi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"forget-box"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"contentBK "},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[t.showReset?a("div",{staticClass:"main_title fColorn"},[t._v(t._s(t.$t("set.reset"))+" "+t._s(t.$t("login.psw")))]):a("p",{staticClass:"main_title fColorn"},[t._v(t._s(t.$t("set.forgetPsw")))]),t._v(" "),t.showReset?a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("ctc.account")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"input-main input-content bg-part bd input_color",attrs:{type:"text",disabled:"",id:"account"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]):a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("ctc.account")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"input-main input-content bg-part bd input_color ",attrs:{type:"text",id:"account"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.enterPsw")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input-main input-content bg-part bd input_color",attrs:{type:"password",id:"pwd"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.enterPswagain")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.re_password,expression:"re_password"}],staticClass:"input-main input-content bg-part bd input_color",attrs:{type:"password",id:"repwd"},domProps:{value:t.re_password},on:{input:function(e){e.target.composing||(t.re_password=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input code-input"},[a("span",{staticClass:"register-item"},[t._v(t._s(t.$t("set.code")))]),t._v(" "),a("div",{staticClass:"code-box bg-part bd"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneCode,expression:"phoneCode"}],staticClass:"input-main input-content bg-part input_color ",attrs:{type:"text",maxlength:"16",id:"pwd"},domProps:{value:t.phoneCode},on:{input:function(e){e.target.composing||(t.phoneCode=e.target.value)}}}),t._v(" "),a("button",{staticClass:"pointer bg-part bdl",attrs:{type:"button"},on:{click:t.setTime}},[t._v(t._s(t.$t("set.getCode")))])])]),t._v(" "),a("button",{staticClass:"register-button curPer",staticStyle:{"margin-top":"20px"},attrs:{type:"button"},on:{click:t.resetPass}},[t._v(t._s(t.$t("td.confirm")))])])])])])],1)},staticRenderFns:[]};var Zi=a("VU/8")(Vi,Oi,!1,function(t){a("4ELa")},"data-v-72926306",null).exports,Ji={components:{indexHeader:V,indexFooter:q},data:function(){return{pwd:"",repwd:"",user_string:""}},created:function(){this.account_number=this.$route.params.user_string||""},methods:{reset:function(){""!=this.pwd?""!=this.repwd?this.pwd===this.repwd?this.$http({url:"/api/"+url,method:"post",data:{}}):layer.msg("两次输入的密码不一致"):layer_tips("请再次输入密码"):layer_tips("请输入密码")}}},Hi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reset-box"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v("重置密码")]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v("请输入密码")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.pwd,expression:"pwd"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"20",id:"pwd"},domProps:{value:t.pwd},on:{input:function(e){e.target.composing||(t.pwd=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v("请再次输入密码")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.repwd,expression:"repwd"}],staticClass:"input-main input-content",attrs:{type:"password",maxlength:"16",id:"repwd"},domProps:{value:t.repwd},on:{input:function(e){e.target.composing||(t.repwd=e.target.value)}}})]),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",on:{click:t.reset}},[t._v("确认")])])])])])]),t._v(" "),a("indexFooter")],1)},staticRenderFns:[]};var Ki=a("VU/8")(Ji,Hi,!1,function(t){a("h7mW")},"data-v-e5b83c30",null).exports,Xi={name:"finanrec",data:function(){return{token:"",lang:"",coins:[],nowCoin:"",list:[],address:"",notes:"",addId:"",codeText:this.$t("set.getCode"),disable:!1,coinType:[],name:"",currencyName:"",contractAddress:""}},components:{indexHeader:V},created:function(){this.getCoins()},methods:{getCoins:function(){var t=this;this.token=localStorage.getItem("token")||"",this.$http({url:"/api/wallet/list",method:"POST",headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type&&0!=e.data.message.length&&(t.coins=e.data.message.change_wallet.balance,t.ishowmemo=t.coins[0].is_show_memo,t.addId=t.coins[0].currency_name,1==t.coins[0].multi_protocol?t.getType(t.coins[0].currency):(t.currencyName=t.coins[0].currency_name,t.contractAddress=t.coins[0].contract_address,t.getAddress(t.coins[0].currency_name,t.coins[0].contract_address)))})},getType:function(t){var e=this,a=this;a.coinType=[],a.$http({url:"/api/wallet/get_info",method:"POST",data:{currency:t},headers:{Authorization:localStorage.getItem("token")}}).then(function(t){"ok"==t.data.type&&(a.coinType=t.data.message.type_data,a.name=t.data.message.type_data[0].type,e.currencyName=t.data.message.type_data[0].name,e.contractAddress=t.data.message.type_data[0].contract_address,e.getAddress(t.data.message.type_data[0].name,t.data.message.type_data[0].contract_address))})},selectCharge:function(t){this.name=t.type,this.currencyName=t.name,this.contractAddress=t.contract_address,this.address="",this.getAddress(t.name,t.contract_address)},goback:function(){this.$router.go(-1)},getCode:function(){var t=this;this.$http({url:this.API+"/walletMiddle/SendVerificationcode",method:"GET",params:{user_id:localStorage.getItem("user_id")}}).then(function(e){if(0==e.data.code){layer.msg("发送成功");var a=30,s=setInterval(function(){a--,t.codeText=a+"s",t.disable=!0,a<=0&&(clearInterval(s),t.codeText=t.$t("set.getCode"),t.disable=!1)},1e3)}else layer.msg(e.data.msg)})},setCoin:function(){var t=this;t.coinType=[],t.address="";var e=t.coins.filter(function(e){return e.currency_name==t.addId})[0];1==e.multi_protocol?t.getType(e.currency):(t.currencyName=e.currency_name,t.contractAddress=e.contract_address,t.getAddress(e.currency_name,e.contract_address))},getAddress:function(t,e){var a=this;a.address="",this.$http({url:this.API+"/walletMiddle/GetDrawAddress",method:"GET",params:{user_id:localStorage.getItem("user_id"),coin_name:t,contract_address:e}}).then(function(t){0==t.data.code&&(a.address=t.data.data.address,a.memo=t.data.data.memo)})},getList:function(){var t=this;this.token=localStorage.getItem("token")||"",this.$http({url:"/api/wallet/get_address",method:"post",data:{currency:this.addId},headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type?t.list=e.data.message:t.list=[]})},delAddress:function(t,e){var a=this;this.$http({url:"/api/wallet/deladdress",method:"post",data:{address_id:t},headers:{Authorization:this.token}}).then(function(t){"ok"==t.data.type&&(a.list.splice(e,1),layer.msg(t.data.message))})},addAddress:function(){var t=this,e=this;if(""!=this.address){this.coins.filter(function(e){return e.currency_name==t.addId})[0].contract_address;var a={user_id:localStorage.getItem("user_id"),address:this.address,coin_name:this.currencyName,contract_address:this.contractAddress,memo:this.memo,verificationcode:this.notes,t:Date.parse(new Date)/1e3},s=r()(a);$.ajax({url:this.API+"/walletMiddle/BindDrawAddress",type:"POST",dataType:"json",async:!0,data:{data:s,sign:$.md5(s+"abcd4321")},success:function(t){0==t.code?(layer.msg("绑定成功"),e.address="",e.notes=""):layer.msg(t.msg)}})}else layer.msg(this.$t("asset.enterAdderses"))}}},qi={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box"},[a("indexHeader"),t._v(" "),a("div",{staticClass:"account"},[a("div",{staticClass:"topcontent ft20 bg-part"},[a("span",{staticClass:"whites"},[a("span",{staticClass:"baseColor",on:{click:t.goback}},[t._v(t._s(t.$t("asset.assets"))+">")]),t._v("\n "+t._s(t.$t("asset.address_bind"))+"\n ")])]),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"con_box"},[a("div",{staticClass:"contentBK fColor1 pdlr20 pdtb20 ft12"},[a("div",{staticClass:"mt10 mauto",staticStyle:{width:"60%"}},[a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"w10 mr20 wt150 ft16"},[t._v(t._s(t.$t("asset.currency"))+":")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.addId,expression:"addId"}],staticClass:"w10 flex1 bd input_color",attrs:{name:"",id:""},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.addId=e.target.multiple?a:a[0]},function(e){t.setCoin()}]}},t._l(t.coins,function(e,s){return a("option",{key:s,domProps:{value:e.currency_name}},[t._v(t._s(e.currency_name))])}))]),t._v(" "),t.coinType.length>0?a("div",{staticClass:"flex alcenter mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v(t._s(t.$t("asset.chainType"))+":")]),t._v(" "),a("div",{staticClass:"flex",staticStyle:{width:"60%"}},t._l(t.coinType,function(e,s){return a("p",{key:s,staticClass:"mr10 pb10 plr10 bd_input mt10",class:t.name==e.type?"active":"",on:{click:function(a){t.selectCharge(e)}}},[t._v(t._s(e.type))])}))]):t._e(),t._v(" "),a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v(t._s(t.$t("asset.address_width"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.address,expression:"address"}],staticClass:"flex1 bd input_color",attrs:{type:"text",placeholder:this.$t("asset.enterAdderses")},domProps:{value:t.address},on:{input:function(e){e.target.composing||(t.address=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"add tc mt40"},[a("div",{staticClass:"baseBtn",on:{click:t.addAddress}},[t._v(t._s(t.$t("asset.address_bind")))])])])])])])])],1)},staticRenderFns:[]};var $i=a("VU/8")(Xi,qi,!1,function(t){a("YU8u")},"data-v-a31b71de",null).exports,tn={data:function(){return{log:[],page:1}},created:function(){this.getLog()},methods:{getLog:function(){var t=this,e=this.$route.query.id,a=window.localStorage.getItem("token");this.$http({url:"/api/wallet/legal_log",method:"post",headers:{Authorization:a},data:{type:"lever",currency:e}}).then(function(e){if("ok"==e.data.type){var a=e.data.message;a.list.length?(t.log.concat(a.list),t.page+=1):layer.msg("没有更多了")}})}}},en={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"lever-record"}},[a("div",{staticClass:"title"},[a("span",{staticClass:"fl"},[t._v("usdt")]),t._v(" "),a("span",{staticClass:"fr",on:{click:function(e){t.$router.go(-1)}}},[t._v("返回")])]),t._v(" "),a("div",{staticClass:"list"},[t._m(0),t._v(" "),a("ul",t._l(t.log,function(e,s){return a("li",{key:s},[a("span",[t._v(t._s(e.value))]),t._v(" "),a("span",[t._v(t._s(e.info))]),t._v(" "),a("span",[t._v(t._s(e.created_time))])])}))]),t._v(" "),a("div",{staticClass:"loadmore",on:{click:t.getLog}},[t._v("加载更多")])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"list-title flex"},[e("span",[this._v("数量")]),this._v(" "),e("span",[this._v("记录")]),this._v(" "),e("span",[this._v("时间")])])}]};var an=a("VU/8")(tn,en,!1,function(t){a("My5e")},null,null).exports,sn={components:{indexHeader:V,indexFooter:q},data:function(){return{account_number:"",phoneCode:"",showReset:!1}},created:function(){},methods:{sendCode:function(){this.$http({url:"/api/sms_mail",method:"post",data:{user_string:this.account_number}}).then(function(t){layer.msg(t.data.message)})},setTime:function(t){if(!t.target.disabled){if(""!=this.account_number)if(/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(this.account_number)){this.sendCode();var e=60,a=null;a=setInterval(function(){if(t.target.innerHTML=e+"秒",t.target.disabled=!0,0==e)return clearInterval(a),t.target.innerHTML="验证码",void(t.target.disabled=!1);e--},1e3)}else layer.tips("您输入的邮箱账号不符合规则!","#account");else layer.tips("请输入邮箱","#account")}},check:function(){var t=this,e=this.account_number,a=(/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e),{});""!=e?""!=this.phoneCode?(a.code=this.phoneCode,a.email=e,this.$http({url:"/api/safe/email",method:"post",data:a,headers:{Authorization:window.localStorage.getItem("token")}}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&t.$router.go(-1)})):layer.tips("请输入验证码!","#pwd"):layer.tips("请输入邮箱!","#account")}}},nn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"bind-email"}},[a("div",{staticClass:"contentBK"},[a("div",{staticClass:"content-wrap"},[a("div",{staticClass:"account"},[a("div",{staticClass:"main"},[a("p",{staticClass:"main_title"},[t._v("绑定邮箱")]),t._v(" "),a("div",{staticClass:"register-input"},[a("span",{staticClass:"register-item"},[t._v("邮箱")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.account_number,expression:"account_number"}],staticClass:"input-main input-content",attrs:{type:"text",maxlength:"20",id:"account"},domProps:{value:t.account_number},on:{input:function(e){e.target.composing||(t.account_number=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"register-input code-input"},[a("span",{staticClass:"register-item"},[t._v("验证码")]),t._v(" "),a("div",{staticClass:"code-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneCode,expression:"phoneCode"}],staticClass:"input-main input-content",attrs:{type:"text",maxlength:"16",id:"pwd"},domProps:{value:t.phoneCode},on:{input:function(e){e.target.composing||(t.phoneCode=e.target.value)}}}),t._v(" "),a("button",{attrs:{type:"button"},on:{click:t.setTime}},[t._v("获取验证码")])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticClass:"register-item"}),t._v(" "),a("button",{staticClass:"register-button curPer",attrs:{type:"button"},on:{click:t.check}},[t._v("确认绑定")])])])])])])])},staticRenderFns:[]};var on=a("VU/8")(sn,nn,!1,function(t){a("b4ss")},"data-v-594007e6",null).exports,rn={name:"manage",data:function(){return{index:0,token:"",list:[],addId:"",number:"",password:"",total:0,code:"",daylist:[],dayid:"",current:"",rate:0}},components:{},created:function(){this.getCoins(),this.getDays()},methods:{goDetail:function(t){t=t;this.$router.push({name:"noticeDetail",query:{id:t}})},getCoins:function(){var t=this;this.token=localStorage.getItem("token")||"",this.$http({url:"/api/wallet/depositlist",method:"POST",headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type&&(t.list=e.data.message.deposit_wallet.balance,t.addId=t.list[0].currency,t.total=t.list[0].deposit_balance,t.code=t.list[0].currency_name)})},getDays:function(){var t=this;this.token=localStorage.getItem("token")||"",this.$http({url:"/api/wallet/deposit_setup",headers:{Authorization:this.token}}).then(function(e){"ok"==e.data.type&&(t.daylist=e.data.message,t.dayid=t.daylist[0].id,t.rate=t.daylist[0].rate)})},setCoin:function(t){var e=this,a=t.target.value;this.list.map(function(t,s){t.currency==a&&(e.total=e.list[s].deposit_balance,e.code=e.list[s].currency_name)})},setDay:function(t){var e=this,a=t.target.value;this.daylist.map(function(t,s){t.id==a&&(e.rate=e.daylist[s].rate)})},confirm:function(){var t=this;return t.number?t.password?void this.$http({url:"/api/record/submit",method:"POST",data:{set_id:t.dayid,currency_id:t.addId,balance:t.number,password:t.password},headers:{Authorization:this.token}}).then(function(e){layer.msg(e.data.message),"ok"==e.data.type&&(t.index=0,t.number="",t.password="",t.getCoins())}):layer.msg("请输入交易密码"):layer.msg("请输入数量")}}},cn={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box"},[a("div",{staticClass:"account"},[a("div",{staticClass:"topcontent ft20 bg-part flex between"},[a("span",{staticClass:"whites"},[t._v("\n "+t._s(t.$t("coin.bao"))+"\n ")]),t._v(" "),a("div",{staticClass:"flex alcenter"},[a("p",{staticClass:"plr10 yellow ft14 pointer",on:{click:function(e){t.goDetail(139)}}},[t._v("存币规则")]),t._v(" "),a("router-link",{staticClass:"ft14 blue",attrs:{to:{name:"manageList"}}},[t._v(t._s(t.$t("coin.mybao")))])],1)]),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"con_box"},[a("div",{staticClass:"contentBK fColor1 pdlr20 pdtb20 ft12",staticStyle:{height:"700px"}},[a("div",{staticClass:"mt10 mauto",staticStyle:{width:"60%"}},[a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"w10 mr20 wt150 ft16"},[t._v(t._s(t.$t("asset.currency"))+":")]),t._v(" "),t.list[t.index]?a("div",{staticClass:"flex1 bd input_color ptb10 plr10 ft18"},[t._v(t._s(t.list[t.index].currency_name))]):t._e()]),t._v(" "),a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"w10 mr20 wt150 ft16"},[t._v("天数:")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.dayid,expression:"dayid"}],staticClass:"w10 flex1 bd input_color pointer",attrs:{name:"",id:""},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.dayid=e.target.multiple?a:a[0]},function(e){t.setDay(e)}]}},t._l(t.daylist,function(e,s){return a("option",{key:s,domProps:{value:e.id}},[t._v(t._s(e.day))])}))]),t._v(" "),a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v(t._s(t.$t("td.num"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"flex1 bd input_color",attrs:{type:"text",placeholder:t.$t("fat.pnums")},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"flex alcenter between mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v(t._s(t.$t("lever.psw"))+":")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"flex1 bd input_color",attrs:{type:"password",placeholder:t.$t("lever.ppwd")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"flex alcenter mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v(t._s(t.$t("coin.total"))+":")]),t._v(" "),a("span",[t._v(t._s(t.total)+" "+t._s(t.code))])]),t._v(" "),a("div",{staticClass:"flex alcenter mt30"},[a("span",{staticClass:"wt150 mr20 ft16"},[t._v("收益率:")]),t._v(" "),a("span",[t._v(t._s(100*(t.rate-0))+" %")])]),t._v(" "),a("div",{staticClass:"add tc mt40"},[a("div",{staticClass:"baseBtn pointer",on:{click:t.confirm}},[t._v(t._s(t.$t("td.confirm")))])])])])])])])])},staticRenderFns:[]};var ln=a("VU/8")(rn,cn,!1,function(t){a("fBVc")},"data-v-51985f9f",null).exports,dn={name:"manageList",data:function(){return{more:"加载更多",page:1,limit:20,log_list:[]}},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(2)}},created:function(){},mounted:function(){this.init()},methods:{init:function(){var t=this,e=layer.load();this.$http({url:"/api/record/lists",method:"post",data:{limit:this.limit,page:this.page},headers:{Authorization:localStorage.getItem("token")}}).then(function(a){layer.close(e),"ok"==a.data.type?(t.log_list=t.log_list.concat(a.data.message.data),0==a.data.message.data.length&&(t.more=t.$t("td.nodata")),a.data.message.data.length<t.limit?t.more=t.$t("td.nomore"):a.data.message.data.length==t.limit&&(t.more=t.$t("td.more"))):layer.msg(a.data.message)}).catch(function(t){})},getMore:function(){this.more="加载中...",this.page+=1,this.init()}}},un={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-wraps"},[a("div",{staticClass:"bg-part wrap-wraps"},[a("p",{staticClass:"flex tc ptb10 bdb ft14"},[a("span",{staticClass:"flex1"},[t._v(t._s(t.$t("td.num")))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(t.$t("coin.profit")))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(t.$t("coin.cuntime")))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(t.$t("coin.endtine")))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(t.$t("fat.status")))])]),t._v(" "),a("ul",t._l(t.log_list,function(e){return a("li",{staticClass:"flex tc ptb10 bdb"},[a("span",{staticClass:"flex1"},[t._v(t._s(e.balance))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(e.profit_balance))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(e.created_at))]),t._v(" "),a("span",{staticClass:"flex1"},[t._v(t._s(e.end_time))]),t._v(" "),a("span",{class:["flex1",{redColor:1==e.status}]},[t._v(t._s(e.status_name))])])})),t._v(" "),a("p",{staticClass:"tc more ptb10 ft12",on:{click:t.getMore}},[t._v(t._s(t.more))])])])},staticRenderFns:[]};var mn=a("VU/8")(dn,un,!1,function(t){a("gZR+")},"data-v-1c3ea5b3",null).exports;U.default.use(Y.a);var pn,hn,vn,_n,fn,gn,yn,An,Cn=new Y.a({routes:[{path:"/",component:at,children:[{path:"",name:"homeContent",component:K},{path:"/legalTrade",component:function(){return a.e(2).then(a.bind(null,"bhqy"))}},{path:"/allmarket",component:function(){return a.e(6).then(a.bind(null,"fEWD"))}},{path:"/legalPay",component:function(){return a.e(8).then(a.bind(null,"M6t0"))}},{path:"/legalPayDetail",component:function(){return a.e(10).then(a.bind(null,"NzEd"))}},{path:"/shopLegalPayDetail",component:function(){return a.e(3).then(a.bind(null,"q/5l"))}},{path:"/legalRecord",component:function(){return a.e(11).then(a.bind(null,"2Cbi"))}},{path:"/legalTradeSet",component:function(){return a.e(14).then(a.bind(null,"O0xG"))}},{path:"/legalSeller",component:function(){return a.e(5).then(a.bind(null,"asGY"))}},{path:"/myLegalShops",component:function(){return a.e(4).then(a.bind(null,"mTUA"))}},{path:"/legalShopDetail",component:function(){return a.e(12).then(a.bind(null,"Zxu2"))}},{path:"/shopLegalRecord",component:function(){return a.e(7).then(a.bind(null,"ecfj"))}},{path:"/balancelog",component:function(){return a.e(13).then(a.bind(null,"oZfa"))}},{path:"/transferstore",component:function(){return a.e(9).then(a.bind(null,"Zv1c"))}},{path:"/fiatradCenter",name:"fiatradCenter",component:Vt},{path:"/bindmpwd",name:"bindmpwd",component:Sa},{path:"/userSetting",component:Kt,children:[{path:"",component:Jt}]},{path:"/c2c",name:"c2c",component:ee,children:[]},{path:"/c2cOrder",name:"c2cOrder",component:ie},{path:"/c2cRelease",name:"c2cRelease",component:re},{path:"/c2cTrade",name:"c2cTrade",component:de},{path:"/c2cDetail",name:"c2cDetail",component:pe},{path:"/c2cRecord",name:"c2cRecord",component:_e},{path:"/dealCenter",name:"dealCenter",component:Gt},{path:"/secondsOrder",name:"secondsOrder",component:ua},{path:"/leverdealCenter",name:"leverdealCenter",component:He},{path:"/allTransaction",name:"allTransaction",component:Di},{path:"/leverRecord",component:an},{path:"/bindEmail",component:on},{path:"/leverTransactions",name:"leverTransactions",component:Ui},{path:"/leverList",name:"leverList",component:Wi},{path:"/transferRecord",name:"transferRecord",component:ji},{path:"/manage",name:"manage",component:ln},{path:"/manageList",name:"manageList",component:mn},{path:"/team",component:function(){return a.e(0).then(a.bind(null,"X/E8"))}}]},{path:"/integralExchanges",name:"integralExchanges",component:Fi},{path:"/components/login",name:"login",component:va},{path:"/components/loginTransfer",name:"loginTransfer",component:Aa},{path:"/forgetPwd",name:"forgetPwd",component:Zi},{path:"/resetPwd",name:"resetPwd",component:Ki},{path:"/components/register",name:"register",component:wa},{path:"/noticeList",name:"noticeList",component:nt},{path:"/components/noticeDetail",name:"noticeDetail",component:ls},{path:"/policy",name:"policy",component:ms},{path:"/bindInfo",name:"bindInfo",component:Si},{path:"/account",name:"account",component:Fa,children:[{path:"/accountCenter",name:"accountCenter",component:Da},{path:"/accountEntrust",name:"accountEntrust",component:Ua},{path:"/accountMessage",name:"accountMessage",component:Oa},{path:"/accountSet",name:"accountSet",component:Wa},{path:"/recharge",name:"recharge",component:qa},{path:"/coinRecord",name:"coinRecord",component:os},{path:"/rechargeMoney",name:"rechargeMoney",component:ss},{path:"/aceite",name:"aceite",component:vs},{path:"/region",name:"region",component:gs},{path:"/chargeRecord",name:"chargeRecord",component:Cs},{path:"/transferLog",name:"transferLog",component:fi},{path:"/authentication",name:"authentication",component:ja},{path:"/integralExchange",name:"integralExchange",component:Pi},{path:"/coinExchange",name:"coinExchange",component:function(){return a.e(1).then(a.bind(null,"tqxN"))}},{path:"/tree",name:"tree",component:Ai},{path:"/profit",name:"profit",component:wi}]},{path:"/new_account",name:"new_account",component:Ss,children:[{path:"/finance",name:"finance",component:Ps},{path:"/dealFinance",name:"dealFinance",component:Ds},{path:"/transfer",name:"transfer",component:Us},{path:"/lever",name:"lever",component:Ws},{path:"/legal",name:"legal",component:Ks},{path:"/micro",name:"micro",component:Fs},{path:"/legalAccount",name:"legalAccount",component:$s},{path:"/dealAccount",name:"dealAccount",component:ai},{path:"/microAccount",name:"microAccount",component:ni},{path:"/transferLegal",component:ci},{path:"/transferLever",component:ui},{path:"/transferMicro",component:hi}]},{path:"/lever_manger",name:"manger",component:Zs},{path:"/finanrec",name:"finanrec",component:js},{path:"/withdraw_address",name:"withdraw_address",component:$i},{path:"/setCash",name:"setCash",component:Ha}]}),bn=a("mtWM"),wn=a.n(bn),xn={phone_reg:/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$/gi,trim:function(t){return t.replace(/\s/g,"")},host:"http://www.bkcex.vip/",laravel_api:"http://www.bkcex.vip/api/",node_api:"http://47.75.197.189:3000/",socket_api:"http://jnbadmin.mobile369.com:2120/",theme:function(t,e){var a=document.querySelector("head"),s=document.querySelector("link#whiteTheme");if(window.localStorage.setItem("theme",t),"dark"==t){if(null==s||""==s)return;a.removeChild(s)}else null!=s&&""!=s||((s=document.createElement("link")).id="whiteTheme",s.rel="stylesheet",s.href="./static/theme/white.css",a.appendChild(s))}},kn={install:function(t){t.prototype.$utils=xn}},Sn=a("Rf8U"),In=a.n(Sn),En=a("mw3O"),Pn=a.n(En),Rn=(a("8PcR"),a("hMcO")),Bn=a.n(Rn),Fn=a("TXmL"),Nn={language:"简体中文",zdy:{sftjmcj:"是否提交订单卖入价",sftjmrj:"是否提交订单买入价",proloss:"止盈止损"},header:{home:"首页",markets:"行情",fiat:"法币交易",c2c:"C2C交易",exchange:"币币交易",lever:"合约交易",micro:"秒合约交易",myshop:"我的商铺",assets:"我的资产",help:"帮助中心",login:"登录",sign:"注册",accountSet:"账户设置",tradeLog:"交易日志",receiveSet:"收款设置",identify:"身份认证",jchange:"币币兑换",logout:"退出登录",themedark:"夜间模式",themeday:"日间模式"},lg:{login:"登录",register:"注册"},home:{vol:"24H量",c01:"全球领先的数字资产交易平台",c02:"为全球超过130个国家的数百万用户提供安全、可信赖的数字资产交易及资产管理服务",c03:"安全可信赖",c04:"5 年数字资产金融服务经验",c05:"专业分布式架构和防 DDOS 攻击系统",c06:"全球生态布局",c07:"多个国家设立本土化交易服务中心",c08:"打造多业务形态为一体的区块链生态圈",c09:"用户至上",c10:"建立先行赔付机制",c11:"设立投资者保护基金",c12:"随时随地 多平台终端交易",c13:"覆盖iOS、Android、Windows多个平台,支持全业务功能",sweep:"扫码下载",android:"Android",pinput:"请输入你的邮箱或手机号",atrade:"注册一个BBANK全球站账号 开始交易旅程"},foo:{about:"关于我们",support:"用户支持",contact:"联系我们",qq:"客服QQ",email:"联系邮箱"},market:{handicap:"盘口",exchange:"币币",selfmarket:"自选",allmarket:"全部行情",symbol:"交易对",newprice:"最新价",change:"涨幅",highprice:"最高价",lowprice:"最低价",vol:"24H量"},td:{buy:"购买",sell:"出售",currency:"币种",num:"数量",time:"时间",limit:"限额",price:"单价",method:"支付方式",total:"总额",inwant:"请输入欲",do:"操作",more:"加载更多",nomore:"没有更多了",nodata:"暂无数据",trade:"交易",buynum:"购买数量",sellout:"卖出",buyin:"买入",all:"全部",allbuy:"全部买入",allsell:"全部卖出",buytotal:"请输入欲购买总额",selltotal:"请输入欲出售总额",buyallnum:"请输入欲购买数量",sellallnum:"请输入欲出售数量",tradeTotal:"交易总额",doceil:"秒后自动取消",place:"下单",waitpay:"待付款",paycode:"付款码",finished:"已完成",ceiled:"已取消",payed:"已付款",nofinish:"未完成",buyer:"买家",seller:"卖家",callWay:"联系方式",placeTime:"下单时间",renum:"参考号",canceil:"取消",confirm:"确认",pwd:"请输入交易密码",coincode:"货币单位",pcoin:"请选择货币单位"},fat:(pn={orderLog:"订单记录",fatdLog:"法币交易记录",shoper:"商家",faLog:"法币交易记录",tdType:"交易类型",odStatus:"订单状态",pwaitPay:"请等待买家付款",odFinish:"订单已完成",odCeil:"订单已取消",odPay:"已付款,请仔细查看支付信息",tdCeil:"取消交易",pCeil:"如您已向卖家付款请千万不要取消交易",paySure:"付款确认",pdopay:"请确认您已向卖家付款",badClick:"恶意点击将直接冻结账户",receivePay:"收款确认",payReceive:"请确认买家已向您付款",receivePays:"确认已收款",payPlease:"请付款",tdPrice:"交易单价",tdNum:"交易数量",payinfo:"付款信息",banknum:"银行账户",realName:"真实姓名",shoperZname:"商家支行",shoperNum:"商家账户"},sa()(pn,"odCeil","取消订单"),sa()(pn,"imPay","我已付款,点击确认"),sa()(pn,"register_time","注册时间"),sa()(pn,"odtotal","总成单"),sa()(pn,"odmonth","30日成单"),sa()(pn,"odfinish","完成单"),sa()(pn,"odrate","完成率"),sa()(pn,"submit","发布"),sa()(pn,"phone","手机"),sa()(pn,"mysell","我的出售"),sa()(pn,"mybuy","我的求购"),sa()(pn,"realAuth","实名认证"),sa()(pn,"advAuth","高级认证"),sa()(pn,"linebuy","在线购买"),sa()(pn,"linesell","在线出售"),sa()(pn,"tipPay","请在24小时内联系商家付款,超出24小时将自动取消"),sa()(pn,"notlow","不能低于最低限额"),sa()(pn,"nothigh","不能超出最大限额"),sa()(pn,"notnum","不能超出最大数量"),sa()(pn,"type","类型"),sa()(pn,"status","状态"),sa()(pn,"seeOrder","查看订单"),sa()(pn,"withdraw","撤回"),sa()(pn,"abnormal","异常"),sa()(pn,"lowershelf","下架"),sa()(pn,"protection","维权中"),sa()(pn,"apply","申请维权"),sa()(pn,"psType","请选择类型"),sa()(pn,"pselect","请选择"),sa()(pn,"alipay","支付宝"),sa()(pn,"wechat","微信"),sa()(pn,"bank","银行卡"),sa()(pn,"minNum","最小交易量"),sa()(pn,"maxNum","最大交易量"),sa()(pn,"wantBuy","求购"),sa()(pn,"pnums","请输入数量"),sa()(pn,"pmin","请输入最小交易量"),sa()(pn,"pmax","请输入最大交易量"),sa()(pn,"pnot","最大交易量不能小于最小交易量"),sa()(pn,"myshops","我的店铺"),sa()(pn,"name","名称"),sa()(pn,"fiatSub","所属法币"),sa()(pn,"shoper_balance","商家余额"),sa()(pn,"enterShop","进入店铺"),sa()(pn,"payedWait","已付款,等待核实后确认"),sa()(pn,"yes","是"),sa()(pn,"no","否"),sa()(pn,"sd","锁定余额"),sa()(pn,"journal","余额日志"),sa()(pn,"business","商家"),sa()(pn,"user","用户"),sa()(pn,"backdone","已撤回"),sa()(pn,"busbalance","商家余额"),sa()(pn,"userbalance","用户余额"),pn),ctc:{ctc:"C2C",myRelease:"我发布的C2C",myTrade:"我交易的C2C",and:"对",balance:"余额",buynum:"买入量",sellnum:"卖出量",bankTransfer:"银行转账",payim:"必须本人支付",pbuyNum:"请输入买入数量",pprice:"请输入单价",payway:"请选择支付方式",psellNum:"请输入卖出数量",suerePlace:"确认下单么?",detail:"详情",payinfo:"付款信息",Payee:"收款人",total:"总额",name:"姓名",cardnum:"卡号",receivePay:"确认已收款",ceilConfirm:"确认取消交易?",paySeller:"请确认您已向卖家付款,恶意点击将被冻结账户",payBuyer:"请确认您已收买家付款信息",account:"账号",sellerPay:"请确认买家已向您付款?",payattion:"付款确认后请尽快向卖家付款,恶意点击将直接冻结账户",log:"c2c已完成订单"},lever:{nowentrust:"当前委托",hisentrust:"历史委托",lvchi:"合约持仓",all:"全部",or:"或",gotrade:"开始交易",tdrecord:"交易记录",dealed:"已成交",notdeal:"未成交",loading:"加载中...",entotal:"委托总额",canuse:"可用",std:"市价交易",xtd:"限价交易",pprice:"请输入价格",phand:"请输入购买手数",phandsell:"请输入出售手数",pwd:"密码",ppwd:"请输入交易密码",psw:"交易密码",equal:"等于",times:"倍",timed:"倍数",hand:"手",hands:"手数",ptimes:"请选择倍数",phands:"请选择手数",contractVal:"合约市值",bail:"保证金",canBail:"可用保证金",charge:"交易服务费",domore:"买入 (做多)",doshort:"卖出 (做空)",dmore:"做多",dshort:"做空",sureOd:"确认下单",noless:"手数不能低于",nomore:"手数不能高于",tdnum:"交易量",risk:"风险率",allloss:"持仓总盈亏",onehouse:"一键平仓",type:"类型",entrustPrice:"委托价",openPrice:"开仓价",nowPrice:"当前价",styPrice:"止盈价",stsPrice:"止损价",openTime:"开仓时间",closeTime:"平仓时间",rate:"手续费",nightFee:"隔夜费",loss:"盈亏",setloss:"设置止盈止损",expectProfit:"预期盈利",expectLoss:"预期亏损",allClose:"全部平仓",moreClose:"只平多单",nullClose:"只平空单",sureClose:"确认平仓?",thanZearo:"设置的值必须大于0",listin:"挂单中",tdin:"交易中",closein:"平仓中",closed:"已平仓",revoked:"已撤销",revokeOrder:"确认撤销订单么?",ping:"平仓",revoke:"撤单",sureping:"确定平仓?",thanzone:"设置的值必须大于0"},cuy:{direction:"方向",total:"总计",price:"价格",sell:"卖",buy:"买",allStation:"全站交易",buyPrice:"买入价",buynum:"买入量",sellPrice:"卖出价",sellnum:"卖出量",tdPrice:"交易额",or:"或",tdStart:"开始交易",pbPrice:"请输入买入价",pbNum:"请输入买入量",psPrice:"请输入卖出价",psNum:"请输入卖出量",fixPrice:"限价交易",Mtrans:"市价交易",available:"可用",revoke:"撤销",loading:"加载中",confirmCancel:"您确定要撤销吗?",confirm:"确定",cancel:"取消",nomore:"没有更多数据了",evelPrice:"成交均价"},asset:{confirmhuazhuan:"是否确认划转?",assets:"资产",currency_account:"币币账户",lever_account:"合约账户",fince_account:"法币账户",change_account:"交易账户",micro_account:"秒合约账户",miscroAccount:"秒合约账户",assets_hua:"资金划转",all_assets:"总资产折合",currency:"币种",canuse:"可用",frezz:"冻结",conversion:"折合",charging:"充币",withdraw:"提币",address_bind:"绑定提币地址",address_withdraw:"提币地址管理",record:"记录",address_charge:"充币地址",address_width:"提币地址",copy:"复制",ercode:"二维码",reminder:"温馨提示",notcharge:"请勿向上述地址充值任何非",ornone:",否则资产将不可找回",support:"充币仅支持simple send的方法,使用其他方法(send all) 的充币暂时无法上账,请谅解。",minnum:"最小提币数量",ratenum:"手续费",havenum:"到账数量",from:"从",to:"至",transfer:"划转",tfnum:"划转数量",ptfnum:"请输入最低",dtfnum:"的划转数量",canbalance:"可用余额",sureConfirm:"确认划转",moneyRecord:"财务记录",pNum:"请输入划转数量",leverUse:"合约账户可用",legalUse:"法币账户可用",changeUselg:"币币账户可用",changeUse:"交易账户可用",microUse:"秒合约账户可用",look:"查看",chargeRecord:"充币记录",status:"跟踪状态",noopen:"该功能暂未开放",enterAdderses:"请输入提币地址",enterNum:"请输入提币数量",lessMin:"输入的提币数量小于最小值",tips01:"请勿向上述地址充值任何其他资产,否则资产将不可找回。",tips02:"充币仅支持simple send的方法,使用其他方法(send all)的充币暂时无法上账,请您谅解。",beizhu:"备注",pbeizhu:"请输入备注",add:"添加",addressList:"地址列表",delete:"删除",norec:"暂无记录",selectCurrency:"请选择币种",chainType:"链类型"},set:(hn={mycode2:"我的授权码",copycode2:"复制授权码",uaccont:"您的账号安全等级:",strong:"强",middle:"中",weak:"弱",min:"低",heigh:"高",complete:"完善更多资料,保证账号安全",mycode:"我的邀请码",copycode:"复制邀请码",bindphone:"绑定手机",bindemail:"绑定邮箱",loginpwd:"登录密码",noBind:"未绑定",binds:"绑定",bind:"去绑定",binded:"已绑定",net:"互联网账号存在被盗风险,建议您定期更改密码以保护账号安全。",reset:"修改",setPsw:"设置交易密码,保障交易安全。",goSet:"去设置",bindAccount:"绑定兑换账号",duihuan:"绑定账号进行积分兑换",copysuccess:"复制成功",copyfail:"复制失败",recopy:"请重新复制",account:"账户",detail:"详情",val:"金额",forgetPsw:"忘记密码",code:"验证码",getCode:"获取验证码"},sa()(hn,"setPsw","设置密码"),sa()(hn,"enterPsw","请输入密码"),sa()(hn,"pswFalse","两次输入的密码不一致"),sa()(hn,"enterPswagain","请再次输入密码"),sa()(hn,"jsetPsw","设置交易密码"),sa()(hn,"jenterPsw","请输入交易密码"),sa()(hn,"jenterPswagain","请再次输入交易密码"),sa()(hn,"enterAccount","请输入账号"),sa()(hn,"enterCode","请输入验证码"),sa()(hn,"accountFalse","您输入的手机或邮箱账号不符合规则!"),sa()(hn,"second","秒"),sa()(hn,"sendCode","发送验证码"),sa()(hn,"sendsucc","发送成功"),sa()(hn,"enterPswTwo","请输入两次密码"),sa()(hn,"rest","剩余"),sa()(hn,"yes","是"),sa()(hn,"no","否"),sa()(hn,"yorn","是否设置交易密码"),hn),auth:{identity:"身份认证",name:"姓名",idcard:"身份证件",upimg:"请上传证件照,第一张为正面,第二张为反面,第三张为手持证件照正面照片。",submit:"提交",auditing:"审核中...",certified:"已认证!",pname:"请输入姓名",pidcard:"请输入证件号",pimg:"请上传证件图片!"},seting:{pmethod:"收款方式",truename:"真实姓名",opening:"开户行名称",bank:"银行卡号",alipay:"支付宝账号",wename:"微信昵称",wechat:"微信账号",pname:"请输入真实姓名",popen:"请输入开户行名称",pcard:"请输入银行卡号",palipay:"请输入支付宝账号",pwname:"请输入微信昵称",pwaccount:"请输入微信账号",pimg1:"微信收款码",pimg2:"支付宝收款码"},news:{seeall:"查看全部",helpcenter:"帮助中心",back:"返回"},login:{welcome:"欢迎登录",phoneLogin:"手机登录",emailLogin:"邮箱登录",account:"账号",psw:"密码",login:"登录",nouser:"还不是BBANK的用户?",goRegister:"立即注册,在全球领先的数字资产交易平台开始交易。",registerFree:"免费注册",psw6:"密码不能小于六位"},register:{register:"注册",phoneRegister:"手机注册",emailRegister:"邮箱注册",country:"国籍",enterPhone:"请输入手机号",enterEmail:"请输入邮箱",psw16:"密码在6-16位之间",inviteCode:"邀请码",sel:"必填",sel2:"非必填",read:"我已阅读并同意",xieyi:"《用户协议》",tips01:"国籍信息注册后不可修改,请务必如实选择。",tips02:"验证邮件可能会被误判为垃圾邮件,请注意查收。",tips03:"请妥善保存您的BBANK账号及登录密码。",tips04:"请勿和其他网站使用相同的登录密码。",emailFalse:"您输入的邮箱不符合规则"},jc:{title:"JC兑换数字资产BEAU平台",balance:"余额",cannum:"可用JC数量",new:"最新价",exnum:"兑换数量",pnum:"请输入JC数量",canex:"可兑换BEAU数量",exnow:"立即兑换",record:"兑换记录",exprice:"兑换价格",extime:"兑换时间",not:"可用积分数量不足",usenum:"使用JC数量",out:"退出",gotd:"去交易"},coin:{manage:"理财",total:"总存币",bao:"存币宝",mybao:"我的存币",profit:"预计收益",cuntime:"存币时间",endtine:"到期时间"},team:{myteam:"我的团队",ztnum:"直推人数",activenum:"团队活跃人数",profit:"收益",back:"返佣",cblog:"充币记录",bblog:"币币记录"},kline:{text1:"分时",text2:"1分钟",text3:"5分钟",text4:"15分钟",text5:"30分钟",text6:"1小时",text7:"1天",text8:"1周",text9:"1月"},miscro:{trade:"交易中",buyPrice:"购买价",finshPrice:"成交价",loss:"预计盈亏",times:"倒计时",mode:"交易模式",num:"开仓数量",rate:"盈利率",up:"买涨",down:"买跌",openNum:"请输入开仓数量",success:"下单成功!",c2c:"C2C账户",complaint:"投诉建议",reply:"请写下您的问题,我们将尽快回复您...",complaintList:"投诉建议列表",complaintReply:"回复:",complaintDescription:"请输入描述内容",resetpwd:"修改密码",foundedOn:"创建于",commonProblem:"常见问题",statement:"解释说明",about:"关于BBANK",everyone:"人人都是CEO",program:"BBANK全球合伙人计划",program2:"合伙人计划",myMine:"我的矿场:",friend:"我的矿友:",myRank:"我的等级:",accumulated:"累计佣金:",copyLinks:"复制推广链接",moneyVein:"人脉变钱脉",example:"佣金示例",enterQuantity:"请输入数量",contractBalance:"合约账户余额",submitRepeatedly:"正在提交中,请不要反复提交",alipayCode:"支付宝付款码",wechatCode:"微信付款码",realPrice:"实时价格",currencyExchange:"兑出币种",currencyExchangeIn:"兑入币种",cashableBalance:"可兑出余额:",minimumCashable:"最小可兑出:",maximumCashable:"最大可兑出:",automaticallys:"点击兑换之后将自动完成,不能返回",match:"兑",title:"资产兑换",holdAssets:"持有资产",dangerousCurrency:"持险生币",convertibleQuantity:"可兑换数量",currencyExchanges:"币币兑换率:",insuranceCurrency:"保险币种",insuranceType:"保险类型",contractAsset:"合约资产保险额",warehouses:"保险仓数量",availableAssets:"可用资产:",insuredAssets:"受保资产:",insuredAssets1:"受保资产",insuranceAssets:"保险资产:",purchaseInsurance:"申购保险",insuranceClaims:"保险理赔",insuranceCancellation:"保险解约",coinWallet:"保险币钱包",bmbWallet:"HAP钱包",cumulativeCoins:"累计生币:",availableQuantity:"可用数量:",rawCurrency:"生币记录",contractInsurance:"合约保险",tenThousand:"万",runningLow:"余额不足",purchase:"你输入的数量不符合规则,你的购买额度在",reach:"到",between:"之间",onlyEnter:"你只能输入",integersBetween:"之间的整数",notReturned:"点击申购保险,视为详细了解保险条约并且同意保险仓自动生效,不能返回。",settled:"受保资产亏损至无法下单时,保险理赔",profitable:"倍,当资产盈利",terminated:"时,保险自动解约。",automatically:"当受保资产亏损50%时,必须申请保险理赔,否则无法交易,当盈利100%时,保险自动解约,保险仓每天只允许赔付两次,超过两次,t+1赔付",termination:"保险解约后,受保资产方可兑换,解约后视为违约,保险仓自动清零。",just:"正",back:"反",lowestNumber:"数量最低为",confirmExchange:"确认兑换吗?",contractValuation:"合约账户资产估值",secondValuation:"秒合约账户资产估值",falshValuation:"闪兑账户资产估值",c2cValuation:"C2C账户资产估值",recordWithdrawal:"充提币记录",category:"类别",safetyCenter:"安全中心",safeText1:"注册、修改密码,及安全设置时用以收取验证短信",safeText2:"互联网账号存在被盗风险,建议您定期更改密码以保护账户安全。",flashTrading:"闪兑交易",assetCenter:"资产中心",promotionCode:"我的推广码",loginAgain:"登录过时,请重新登录",text10:"基于HAP的实时价格",text11:"授权码"}},Tn={language:"English",zdy:{sftjmcj:"Whether to submit the order selling price",sftjmrj:"Whether to submit the order purchase price",proloss:"Stop loss"},header:{home:"home",markets:"Markets",fiat:"Fiat",c2c:"C2C",exchange:"Exchange",lever:"Lever",micro:"Second contract trading",myshop:"Shops",assets:"Assets",help:"Help",login:"Login",sign:"Sign Up",accountSet:"Account",tradeLog:"Transaction log",receiveSet:"Collection ",identify:"Authentication",jchange:"exchange",logout:"Logout",themedark:"Night mode",themeday:"Day Mode"},lg:{login:"Login",register:"Sign Up"},home:{vol:"24H Vol",c01:"The world's leading digital asset trading platform",c02:"Deliver secure, trusted digital asset trading and asset management services to millions of users in more than 130 countries worldwide",c03:"Safe and trustworthy",c04:"5 years experience in digital asset financial services",c05:"Professional distributed architecture and anti-DDOS attack system",c06:"Global ecological layout",c07:"A number of countries set up localized transaction service centers ",c08:"to create a blockchain ecosystem with multiple business forms",c09:"Customer first",c10:"Establish a preemptive payment mechanism",c11:"Set up an investor protection fund",c12:"Multi-platform terminal trading anytime, anywhere",c13:"Covers multiple platforms of iOS, Android, Windows,and supports full business functions",sweep:"Scan code download",android:"Android",pinput:"Please enter your email or mobile number",atrade:"Register a BBANK Global Station Account and Start the Trading Journey"},foo:{about:"About us",support:"User support",contact:"Contact us",qq:"QQ",email:"Email"},market:{handicap:"Handicap",exchange:"Exchange",selfmarket:"Favorites",allmarket:"All",symbol:"Pair",newprice:"Last Price",change:"Change",highprice:"High",lowprice:"Low",vol:"24H Vol"},td:{buy:"buy",sell:"sell",currency:"currency",num:"number",time:"time",limit:"limit",price:"Unit Price",method:"pay way",total:"Total",inwant:"Please input",do:"operation",more:"Load more",nomore:"No more",nodata:"No data",trade:"trade",buynum:"Purchase quantity",sellout:"Sell ",buyin:"Buy ",all:"all",allbuy:"Buy all",allsell:"Sell all",buytotal:"Please enter the total amount you want to purchase.",selltotal:"Please enter the total amount you want to sell.",buyallnum:"Please enter the quantity you want to buy.",sellallnum:"Please enter the quantity you want to sell.",tradeTotal:"Total transaction volume",doceil:"Automatically cancel in seconds",place:"Place an order",waitpay:"Pending payment",paycode:"Payment code",finished:"Completed",ceiled:"Cancelled",payed:"Paid",nofinish:"incomplete",buyer:"Buyer",seller:"seller",callWay:"contact way",placeTime:"Order time",renum:"Reference number",canceil:"cancel",confirm:"confirm",pwd:"Please enter the transaction password.",coincode:"Monetary unit",pcoin:"Please choose monetary unit."},fat:(vn={orderLog:"Order record",fatdLog:"legal trade record",shoper:"business",faLog:"legal trade record",tdType:"Transaction type",odStatus:"Order status",pwaitPay:"Please wait for the buyer to pay",odFinish:"The order has been completed",odCeil:"The order has been cancelled",odPay:"Payment has been made. Please check the payment information carefully.",tdCeil:"Cancel transaction",pCeil:"If you have paid , do not cancel it",paySure:"Payment confirm",pdopay:"Please confirm that you have paid",badClick:"Malicious clicks will freeze accounts directly",receivePay:"Receipt confirmation",payReceive:"Please confirm that the buyer has paid you.",receivePays:"Confirmation of receivables",payPlease:"Please pay",tdPrice:"Unit price",tdNum:"Transaction volume",payinfo:"Payment information",banknum:"Bank account",realName:"Real name",shoperZname:"Merchant sub branch",shoperNum:"Merchant account"},sa()(vn,"odCeil","Cancel order"),sa()(vn,"imPay","have paid, Confirm"),sa()(vn,"register_time","Register time"),sa()(vn,"odtotal","Assembly sheet"),sa()(vn,"odmonth","30 days sheet"),sa()(vn,"odfinish","Completion sheet"),sa()(vn,"odrate","Completion rate"),sa()(vn,"submit","publish"),sa()(vn,"phone","phone"),sa()(vn,"mysell","My sale"),sa()(vn,"mybuy","My purchase"),sa()(vn,"realAuth","Real name authentication"),sa()(vn,"advAuth","Advanced authentication"),sa()(vn,"linebuy","Online purchase"),sa()(vn,"linesell","Sell online"),sa()(vn,"tipPay","Please contact the merchant for payment within 24 hours. If the payment exceeds 24 hours, it will be cancelled automatically."),sa()(vn,"notlow","No less than the minimum limit"),sa()(vn,"nothigh","Do not exceed the maximum limit"),sa()(vn,"notnum","Do not exceed the maximum quantity"),sa()(vn,"type","type"),sa()(vn,"status","status"),sa()(vn,"seeOrder","View order"),sa()(vn,"withdraw","withdraw"),sa()(vn,"abnormal","abnormal"),sa()(vn,"lowershelf","Lower shelf"),sa()(vn,"protection","Rights protection"),sa()(vn,"apply","Apply rights protection"),sa()(vn,"psType","Please select the type"),sa()(vn,"pselect","Please choose"),sa()(vn,"alipay","Alipay"),sa()(vn,"wechat","WeChat"),sa()(vn,"bank","Bank card"),sa()(vn,"minNum","Minimum trading volume"),sa()(vn,"maxNum","Maximum trading volume"),sa()(vn,"wantBuy","want to buy"),sa()(vn,"pnums","Please enter quantity"),sa()(vn,"pmin","Please enter the minimum transaction volume"),sa()(vn,"pmax","Please enter the maximum trading volume"),sa()(vn,"pnot","Maximum trading volume should not be less than minimum trading volume"),sa()(vn,"myshops","personal stores"),sa()(vn,"name","Name"),sa()(vn,"fiatSub","Legal tender"),sa()(vn,"shoper_balance","Merchant balance"),sa()(vn,"enterShop","Enter shop"),sa()(vn,"payedWait","Payment made awaiting verification"),sa()(vn,"yes","YES"),sa()(vn,"no","NO"),sa()(vn,"sd","Lock in balance"),sa()(vn,"journal","Balance log"),sa()(vn,"business","business"),sa()(vn,"user","user"),sa()(vn,"backdone","Withdrawn"),sa()(vn,"busbalance","Merchant balance"),sa()(vn,"userbalance","User balance"),vn),ctc:{ctc:"C2C",myRelease:"My release of C2C",myTrade:"C2C I traded",and:"yes",balance:"balance",buynum:"Buying vol",sellnum:"Selling vol",bankTransfer:"Bank transfer",payim:"Must pay by oneself",pbuyNum:"enter the purchase quantity",pprice:"Please enter unit price",payway:"Please choose the mode of payment.",psellNum:"Please enter the quantity sold.",suerePlace:"Do you confirm the order?",detail:"details",payinfo:"Payment information",Payee:"Payee",total:"Total",name:"name",cardnum:"Card number",receivePay:"Confirmation of receivables",ceilConfirm:"Confirm cancel the transaction?",paySeller:"Please confirm that you have paid the seller, malicious clicks will freeze the account.",payBuyer:"Please confirm that you have received payment information from the buyer.",account:"Account number",sellerPay:"Please confirm that the buyer has paid you?",payattion:"Please pay to the seller as soon as possible after payment confirmation, malicious clicks will directly freeze the account.",log:"c2c已完成订单"},lever:{nowentrust:"Open orders",hisentrust:"Order history",lvchi:"Leverage position",all:"all",or:"or",gotrade:"Start trading",tdrecord:"Transaction record",dealed:"Completed",notdeal:"No deal",loading:"Loading",entotal:"Total entrusted amount",canuse:"available ",std:"Market",xtd:"Limit",pprice:"Please enter the price",phand:"Please enter the number of purchases",phandsell:"Please enter the number of hands for sale",pwd:"password",ppwd:"Please enter the transaction password",psw:"transaction password",equal:"equal to",times:"time",timed:"multiple",hand:"hand",hands:"hands",ptimes:"Please select multiples",phands:"Please select the number of hands",contractVal:"contract market value",bail:"Margin",canBail:"Available margin",charge:"transaction service fee",domore:"Buy (long)",doshort:"sell (short)",dmore:"Long",dshort:"Short",sureOd:"confirm order",noless:"The number of hands cannot be lower than",nomore:"The number of hands cannot be higher than",tdnum:"Total",risk:"risk rate",allloss:"total position profit and loss",onehouse:"One button closes",type:"type",entrustPrice:"commission price",openPrice:"opening price",nowPrice:"current price",styPrice:"Take profit price",stsPrice:"Stop Loss Price",openTime:"open time",closeTime:"closing time",rate:"handling fee",nightFee:"overnight fee",loss:"profit and loss",setloss:"Set stop loss stop loss",expectProfit:"expected profit",expectLoss:"expected loss",allClose:"All closing",moreClose:"Only flat more than one",nullClose:"Only empty single",sureClose:"Confirm the position? ",thanZearo:"The value set must be greater than 0",listin:"Pending order",tdin:"in the transaction",closein:"Close the position",closed:"Closed",revoked:"revoked",revokeOrder:"Are you sure to cancel the order? ",ping:"Close the position",revoke:"Cancel",sureping:"Determine the closure??",thanzone:"The value set must be greater than 0"},cuy:{direction:"direction",total:"total",price:"price",sell:"sell",buy:"buy",allStation:"Market trades",buyPrice:"Price",buynum:"Amount",sellPrice:"Price",sellnum:"Amount",tdPrice:"Total",or:"or",tdStart:"Start trading",pbPrice:"Please enter the bid price",pbNum:"Please enter the purchase amount",psPrice:"Please enter the selling price",psNum:"Please enter the sales amount",fixPrice:"Limit",Mtrans:"Market",available:"available",revoke:"Undo",loading:"Loading",confirmCancel:"Are you sure you want to cancel? ",confirm:"OK",cancel:"Cancel",nomore:"No more data",evelPrice:"Average Price"},asset:{confirmhuazhuan:"Do you confirm the transfer?",assets:"assets",currency_account:"coin account",lever_account:"leverage account",fince_account:"French account",change_account:"Transaction account",micro_account:"Second Contract Account",miscroAccount:"Second Contract Account",assets_hua:"Fund transfer",all_assets:"total assets",currency:"currency",canuse:"available",frezz:"freeze",conversion:"Folding",charging:"filling coins",withdraw:"Ticks",address_bind:"bind withdraw address",address_withdraw:"Trading address management",record:"record",address_charge:"Charge address",address_width:"Ticket Address",copy:"copy",ercode:"QR code",reminder:"warm tips",notcharge:"Do not recharge any of the above addresses",ornone:", otherwise the asset will not be recovered",support:"The coin only supports the simple send method. The use of other methods (send all) is temporarily unable to be credited. Please understand. ",minnum:"the minimum number of coins",ratenum:"fee fee",havenum:"number of arrivals",from:"From",to:"to",transfer:"swiping",tfnum:"the number of transfers",ptfnum:"Please enter the lowest",dtfnum:"the number of strokes",canbalance:"available balance",sureConfirm:"confirm transfer",moneyRecord:"financial record",pNum:"Please enter the number of transfers",leverUse:"Leverage account available",legalUse:"French account available",changeUselg:"Coin accounts are available",changeUse:"Transaction account available",microuse:"Second contract account available",look:"View",chargeRecord:"charged currency record",status:"Tracking status",noopen:"This feature is not open yet",enterAdderses:"Please enter the coin address",enterNum:"Please enter the number of coins",lessMin:"The number of coins entered is less than the minimum",tips01:"Do not recharge any other assets to the above address, otherwise the assets will not be recovered. ",tips02:"Currency only supports the simple send method, the use of other methods (send all) for the currency can not be accounted for temporarily, please understand. ",beizhu:"Remarks",pbeizhu:"Please enter a note",add:"add",addressList:"address list",delete:"delete",norec:"no record",selectCurrency:"Please select currency",chainType:"Chain type"},set:(_n={mycode2:"My authorization code",copycode2:"Copy authorization code",uaccont:"Your account security level:",strong:"strong",middle:"中中",weak:"weak",min:"low",heigh:"high",complete:"Complete more information to ensure account security",mycode:"my invitation code",copycode:"Copy invitation code",bindphone:"Bind the phone",bindemail:"Binding Mailbox",loginpwd:"login password",noBind:"unbound",binds:"binding",bind:"de bind",binded:"bind",net:"The Internet account is at risk of being stolen. It is recommended that you change your password periodically to protect your account. ",reset:"Modify",setPsw:"Set the transaction password to ensure transaction security. ",goSet:"Go to set",bindAccount:"Bind redemption account",duihuan:"Bind the account to redeem points",copysuccess:"Copy success",copyfail:"copy failed",recopy:"Please copy again",account:"account",detail:"details",val:"amount",forgetPsw:"Forgot password",code:"verification code",getCode:"Get code"},sa()(_n,"setPsw","set password"),sa()(_n,"enterPsw","Please enter a password"),sa()(_n,"pswFalse","The passwords entered twice are inconsistent"),sa()(_n,"enterPswagain","Please enter your password again"),sa()(_n,"jsetPsw","Set up the transaction password"),sa()(_n,"jenterPsw","Please enter the transaction password"),sa()(_n,"jenterPswagain","Please enter the transaction password again"),sa()(_n,"enterAccount","Please enter an account"),sa()(_n,"enterCode","Please enter the verification code"),sa()(_n,"accountFalse","The phone or email account you entered does not meet the rules!"),sa()(_n,"second","second"),sa()(_n,"sendCode","send"),sa()(_n,"sendsucc","send success"),sa()(_n,"enterPswTwo","Please enter the password twice"),sa()(_n,"rest","remaining"),sa()(_n,"yes","yes"),sa()(_n,"no","no"),sa()(_n,"yorn","Whether to Set Transaction Password"),_n),auth:{identity:"Authentication",name:"name",idcard:"identity document",upimg:"Please upload a photo of the identity document, the first one is the front, the second one is the reverse side, and the third one is the front photo of the hand-held identity document. ",submit:"submit",auditing:"Audit...",certified:"Certified!",pname:"Please enter a name",pidcard:"Please enter the ID number",pimg:"Please upload a certificate picture!"},seting:{pmethod:"payment method",truename:"real name",opening:"Bank name",bank:"bank card number",alipay:"Alipay account",wename:"WeChat nickname",wechat:"WeChat account",pname:"Please enter your real name",popen:"Please enter the name of the bank name",pcard:"Please enter the bank card number",palipay:"Please enter Alipay account",Pwname:"Please enter the WeChat nickname",pwaccount:"Please enter WeChat account",pimg1:"Wechat collection code",pimg2:"Alipay payment code"},news:{seeall:"View all",helpcenter:"Help Center",back:"Return"},login:{welcome:"Welcome to login",phoneLogin:"Mobile",emailLogin:"Mailbox",account:"account",psw:"password",login:"login",nouser:"Not a user of BBANK? ",goRegister:"Register now and start trading on the world's leading digital asset trading platform",registerFree:"free registration",psw6:"Password can't be less than six"},register:{register:"Register",phoneRegister:"Mobile",emailRegister:"mailbox",country:"nationality",enterPhone:"Please enter the phone number",enterEmail:"Please enter the mailbox",psw16:"The password is between 6-16",inviteCode:"Invitation Code",sel:"Must fill",sel2:"not required",read:"I have read and agree",xieyi:"User Agreement",tips01:"Do not modify the nationality information after registration, please be sure to choose it. ",tips02:"Verification emails may be misidentified as spam, please check. ",tips03:"Please save your BBANK account and login password. ",tips04:"Do not use the same login password as other websites. ",emailFalse:"The mailbox you entered does not match the rule"},jc:{title:"JC Convertible Digital Assets BEAU Platform",balance:"balance",cannum:"Available JC Quantity",new:"Latest Price",exnum:"Exchange Quantity",pnum:"Please enter JC number",canex:"Convertible BEAU Quantity",exnow:"E xchange",record:"Exchange Record",exprice:"Exchange price",extime:"Exchange time",not:"The number of available integrals is insufficient",usenum:"Use JC Quantity",out:"Exit",gotd:"To trade"},coin:{manage:"Financial",total:"total deposit",bao:"deposit money",mybao:"my deposit",profit:"estimated revenue",cuntime:"deposit time",endtine:"due time"},team:{myteam:"my team",ztnum:"direct push number",activenum:"number of active team members",profit:"revenue",back:"return commission",cblog:"charging record",bblog:"currency record"},kline:{text1:"Time",text2:"1min",text3:"5min",text4:"15min",text5:"30min",text6:"1hour",text7:"1day",text8:"1week",text9:"1mon"},miscro:{trade:"Transaction",buyPrice:"Purchase price",finshPrice:"Transaction price",loss:"Estimated profit and loss",times:"Count down",mode:"Transaction mode",num:"Opening quantity",rate:"Profit rate",up:"Buy up",down:"Buy or fall",openNum:"Please enter the opening quantity",success:"Success in placing orders!",c2c:"fiat account",complaint:"Complaint suggestion",reply:"Please write down your questions and we will reply to you as soon as possible...",complaintList:"Complaint Suggestion List",complaintReply:"Reply:",complaintDescription:"Please enter a description",resetpwd:"Modify password",foundedOn:"Founded on",commonProblem:"Common problem",statement:"Interpretative statement",about:"About BBANK",everyone:"Everyone is CEO",program:"BBANK Global Partners Program",program2:"Partners",myMine:"My mine:",friend:"My mine friend:",myRank:"My rank:",accumulated:"Accumulated commission:",copyLinks:"Copy",moneyVein:"People's relationship changes into money vein",example:"Example of commission",enterQuantity:"Please enter quantity",contractBalance:"Contract account balance",submitRepeatedly:"In submission, please do not submit repeatedly",alipayCode:"Alipay payment code",wechatCode:"Wechat Receipt Code",realPrice:"Real time price",currencyExchange:"Currency exchange",currencyExchangeIn:"Currency exchange",cashableBalance:"Cashable balance:",minimumCashable:"Minimum Cashable:",maximumCashable:"Maximum Cashable:",automaticallys:"After clicking on the exchange, it will be automatically completed and cannot be returned.",match:"Match",title:"Asset convertibility",holdAssets:"Holding assets",dangerousCurrency:"Holding dangerous currency",convertibleQuantity:"Convertible Quantity",currencyExchanges:"Currency exchange rate:",insuranceCurrency:"Insurance currency",insuranceType:"Insurance type",contractAsset:"Contract Asset Insurance",warehouses:"Number of Warehouses",availableAssets:"Available assets:",insuredAssets:"Insured assets:",insuredAssets1:"Insured assets",insuranceAssets:"Insurance assets:",purchaseInsurance:"Purchase insurance",insuranceClaims:"Insurance claims",insuranceCancellation:"Insurance cancellation",coinWallet:"Insurance Coin Wallet",bmbWallet:"HAP Wallet",cumulativeCoins:"Cumulative coins:",availableQuantity:"Available Quantity:",rawCurrency:"Record of raw currency",contractInsurance:"Contract insurance",tenThousand:"ten thousand",runningLow:"Sorry, your credit is running low",purchase:"The quantity you enter does not conform to the rules. Your purchase quota is",reach:"reach",between:"between",onlyEnter:"You can only enter",integersBetween:"Integers between",notReturned:"Click to purchase insurance, as a detailed understanding of the insurance treaty and agree that the warehouse will automatically enter into force, can not be returned.",settled:"When the insured assets lose money and cannot place an order, the insurance claims shall be settled.",profitable:"When assets are profitable",terminated:"at that time, the insurance will be automatically terminated.",automatically:"When the insured assets lose 50%, they must apply for insurance claims, otherwise they cannot be traded. When the profits are 100%, the insurance will automatically cancel the contract. The warehouse can only pay twice a day, more than twice, t+1.",termination:"After the termination of the insurance contract, the insured assets can be converted. After the termination of the contract, the insured assets are deemed to be in breach of contract, and the warehouse is cleared automatically.",just:"just",back:"back",lowestNumber:"The lowest number is",confirmExchange:"Do you confirm the exchange?",contractValuation:"Valuation of Contract Account Assets",secondValuation:"Second Contract Account Asset Valuation",falshValuation:"Valuation of assets in flash account",c2cValuation:"Asset Valuation of fiat Account",recordWithdrawal:"Record of withdrawal of money",category:"category",safetyCenter:"Safety Center",safeText1:"Registration, password modification, and security settings for receiving validated SMS",safeText2:"Internet accounts are at risk of being stolen. It is recommended that you change your password regularly to protect account security.",flashTrading:"Flash Trading",assetCenter:"Asset Center",promotionCode:"My Promotion Code",loginAgain:"Logon is out of date, please login again",text10:"Real-time Price Based on HAP",text11:"Authorization Code"}},Dn={language:"繁體中文",zdy:{sftjmcj:"是否提交訂單賣出價",sftjmrj:"是否提交訂單買入價",proloss:"止盈止損"},header:{home:"首頁",markets:"行情",fiat:"法幣交易",c2c:"C2C交易",exchange:"幣幣交易",lever:"合約交易",micro:"秒合約交易",myshop:"我的商鋪",assets:"我的資產",help:"幫助中心",login:"登錄",sign:"註冊",accountSet:"帳護設置",tradeLog:"交易日誌",receiveSet:"收款設置",identify:"身份認證",jchange:"幣幣兌換",logout:"退出登錄",themedark:"夜間模式",themeday:"日間模式"},lg:{login:"登錄",register:"註冊"},home:{vol:"24H量",c01:"全球領先的數字資產交易平臺",c02:"為全球超過130個國家的數百萬用戶提供安全、可信賴的數字資產交易及資產管理服務",c03:"安全可信賴",c04:"5 年數字資產金融服務經驗",c05:"專業分布式架構和防 DDOS 攻擊系統",c06:"全球生態布局",c07:"多個國家設立本土化交易服務中心",c08:"打造多業務形態為壹體的區塊鏈生態圈",c09:"用戶至上",c10:"建立先行賠付機制",c11:"設立投資者保護基金",c12:"隨時隨地 多平臺終端交易",c13:"覆蓋iOS、Android、Windows多個平臺,支持全業務功能",sweep:"掃碼下載",android:"Android",pinput:"請輸入你的郵箱或手機號",atrade:"注册一個BBANK全球站帳號開始交易旅程"},foo:{about:"關於我們",support:"用戶支持",contact:"聯系我們",qq:"客服QQ",email:"聯系郵箱"},market:{handicap:"盤口",exchange:"幣幣",selfmarket:"自選",allmarket:"全部行情",symbol:"交易對",newprice:"最新價",change:"漲幅",highprice:"最高價",lowprice:"最低價",vol:"24H量"},td:{buy:"購買",sell:"出售",currency:"幣種",num:"數量",time:"時間",limit:"限額",price:"單價",method:"支付方式",total:"總額",inwant:"請輸入欲",do:"操作",more:"加載更多",nomore:"沒有更多了",nodata:"暫無數據",trade:"交易",buynum:"購買數量",sellout:"賣出",buyin:"買入",all:"全部",allbuy:"全部買入",allsell:"全部賣出",buytotal:"請輸入欲購買總額",selltotal:"請輸入欲出售總額",buyallnum:"請輸入欲購買數量",sellallnum:"請輸入欲出售數量",tradeTotal:"交易總額",doceil:"秒後自動取消",place:"下單",waitpay:"待付款",paycode:"付款碼",finished:"已完成",ceiled:"已取消",payed:"已付款",nofinish:"未完成",buyer:"買家",seller:"賣家",callWay:"聯系方式",placeTime:"下單時間",renum:"參考號",canceil:"取消",confirm:"確認",pwd:"請輸入交易密碼",coincode:"貨幣單位",pcoin:"請選擇貨幣單位"},fat:(fn={orderLog:"訂單記錄",fatdLog:"法幣交易記錄",shoper:"商家",faLog:"法幣交易記錄",tdType:"交易類型",odStatus:"訂單狀態",pwaitPay:"請等待買家付款",odFinish:"訂單已完成",odCeil:"訂單已取消",odPay:"已付款,請仔細查看支付信息",tdCeil:"取消交易",pCeil:"如您已向賣家付款請千萬不要取消交易",paySure:"付款確認",pdopay:"請確認您已向賣家付款",badClick:"惡意點擊將直接凍結賬戶",receivePay:"收款確認",payReceive:"請確認買家已向您付款",receivePays:"確認已收款",payPlease:"請付款",tdPrice:"交易單價",tdNum:"交易數量",payinfo:"付款信息",banknum:"銀行賬戶",realName:"真實姓名",shoperZname:"商家支行",shoperNum:"商家賬戶"},sa()(fn,"odCeil","取消訂單"),sa()(fn,"imPay","我已付款,點擊確認"),sa()(fn,"register_time","註冊時間"),sa()(fn,"odtotal","總成單"),sa()(fn,"odmonth","30日成單"),sa()(fn,"odfinish","完成單"),sa()(fn,"odrate","完成率"),sa()(fn,"submit","發布"),sa()(fn,"phone","手機"),sa()(fn,"mysell","我的出售"),sa()(fn,"mybuy","我的求購"),sa()(fn,"realAuth","實名認證"),sa()(fn,"advAuth","高級認證"),sa()(fn,"linebuy","在線購買"),sa()(fn,"linesell","在線出售"),sa()(fn,"tipPay","請在24小時內聯系商家付款,超出24小時將自動取消"),sa()(fn,"notlow","不能低於最低限額"),sa()(fn,"nothigh","不能超出最大限額"),sa()(fn,"notnum","不能超出最大數量"),sa()(fn,"type","類型"),sa()(fn,"status","狀態"),sa()(fn,"seeOrder","查看訂單"),sa()(fn,"withdraw","撤回"),sa()(fn,"abnormal","異常"),sa()(fn,"lowershelf","下架"),sa()(fn,"protection","維權中"),sa()(fn,"apply","申請維權"),sa()(fn,"psType","請選擇類型"),sa()(fn,"pselect","請選擇"),sa()(fn,"alipay","支付寶"),sa()(fn,"wechat","微信"),sa()(fn,"bank","銀行卡"),sa()(fn,"minNum","最小交易量"),sa()(fn,"maxNum","最大交易量"),sa()(fn,"wantBuy","求購"),sa()(fn,"pnums","請輸入數量"),sa()(fn,"pmin","請輸入最小交易量"),sa()(fn,"pmax","請輸入最大交易量"),sa()(fn,"pnot","最大交易量不能小於最小交易量"),sa()(fn,"myshops","我的店鋪"),sa()(fn,"name","名稱"),sa()(fn,"fiatSub","所屬法幣"),sa()(fn,"shoper_balance","商家余額"),sa()(fn,"enterShop","進入店鋪"),sa()(fn,"payedWait","已付款,等待核實後確認"),sa()(fn,"yes","是"),sa()(fn,"no","否"),sa()(fn,"sd","鎖定餘額"),sa()(fn,"journal","餘額日誌"),sa()(fn,"business","商家"),sa()(fn,"user","用戶"),sa()(fn,"backdone","已撤回"),sa()(fn,"busbalance","商家餘額"),sa()(fn,"userbalance","用戶餘額"),fn),ctc:{ctc:"C2C",myRelease:"我發布的C2C",myTrade:"我交易的C2C",and:"對",balance:"余額",buynum:"買入量",sellnum:"賣出量",bankTransfer:"銀行轉賬",payim:"必須本人支付",pbuyNum:"請輸入買入數量",pprice:"請輸入單價",payway:"請選擇支付方式",psellNum:"請輸入賣出數量",suerePlace:"確認下單麽?",detail:"詳情",payinfo:"付款信息",Payee:"收款人",total:"總額",name:"姓名",cardnum:"卡號",receivePay:"確認已收款",ceilConfirm:"確認取消交易?",paySeller:"請確認您已向賣家付款,惡意點擊將被凍結賬戶",payBuyer:"請確認您已收買家付款信息",account:"賬號",sellerPay:"請確認買家已向您付款?",payattion:"付款確認後請盡快向賣家付款,惡意點擊將直接凍結賬戶",log:"c2c已完成订单"},lever:{nowentrust:"當前委托",hisentrust:"歷史委托",lvchi:"合約持倉",all:"全部",or:"或",gotrade:"開始交易",tdrecord:"交易記錄",dealed:"已成交",notdeal:"未成交",loading:"加載中",entotal:"委托總額",canuse:"可用",std:"市價交易",xtd:"限價交易",pprice:"請輸入價格",phand:"請輸入購買手數",phandsell:"請輸入出售手數",pwd:"密碼",ppwd:"請輸入交易密碼",psw:"交易密碼",equal:"等於",times:"倍",timed:"倍數",hand:"手",hands:"手數",ptimes:"請選擇倍數",phands:"請選擇手數",contractVal:"合約市值",bail:"保證金",canBail:"可用保證金",charge:"交易服務費",domore:"買入 (做多)",doshort:"賣出 (做空)",dmore:"做多",dshort:"做空",sureOd:"確認下單",noless:"手數不能低於",nomore:"手數不能高於",tdnum:"交易量",risk:"風險率",allloss:"持倉總盈虧",onehouse:"壹鍵平倉",type:"類型",entrustPrice:"委托價",openPrice:"開倉價",nowPrice:"當前價",styPrice:"止盈價格",stsPrice:"止損價格",openTime:"開倉時間",closeTime:"平倉時間",rate:"手續費",nightFee:"隔夜費",loss:"盈虧",setloss:"設置止盈止損",expectProfit:"預期盈利",expectLoss:"預期虧損",allClose:"全部平倉",moreClose:"只平多單",nullClose:"只平空單",sureClose:"確認平倉?",thanZearo:"設置的值必須大於0",listin:"掛單中",tdin:"交易中",closein:"平倉中",closed:"已平倉",revoked:"已撤銷",revokeOrder:"確認撤銷訂單麽?",ping:"平仓",revoke:"撤单",sureping:"确定平仓?",thanzone:"设置的值必须大于0"},cuy:{direction:"方向",total:"總計",price:"價格",sell:"賣",buy:"買",allStation:"全站交易",buyPrice:"買入價",buynum:"買入量",sellPrice:"賣出價",sellnum:"賣出量",tdPrice:"交易額",or:"或",tdStart:"開始交易",pbPrice:"請輸入買入價",pbNum:"請輸入買入量",psPrice:"請輸入賣出價",psNum:"請輸入賣出量",fixPrice:"限價交易",Mtrans:"市價交易",available:"可用",revoke:"撤銷",loading:"加載中",confirmCancel:"您確定要撤銷嗎?",confirm:"確定",cancel:"取消",nomore:"沒有更多數據了",evelPrice:"成交均價"},asset:{confirmhuazhuan:"是否確認劃轉?",assets:"資產",currency_account:"幣幣賬戶",lever_account:"合約賬戶",fince_account:"法幣賬戶",change_account:"交易賬戶",micro_account:"秒合約帳戶",miscroAccount:"秒合約帳戶",assets_hua:"資金劃轉",all_assets:"總資產折合",currency:"幣種",canuse:"可用",frezz:"凍結",conversion:"折合",charging:"充幣",withdraw:"提幣",address_bind:"綁定提幣地址",address_withdraw:"提幣地址管理",record:"記錄",address_charge:"充幣地址",address_width:"提幣地址",copy:"復制",ercode:"二維碼",reminder:"溫馨提示",notcharge:"請勿向上述地址充值任何非",ornone:",否則資產將不可找回",support:"充幣僅支持simple send的方法,使用其他方法(send all) 的充幣暫時無法上賬,請諒解。",minnum:"最小提幣數量",ratenum:"手續費",havenum:"到賬數量",from:"從",to:"至",transfer:"劃轉",tfnum:"劃轉數量",ptfnum:"請輸入最低",dtfnum:"的劃轉數量",canbalance:"可用余額",sureConfirm:"確認劃轉",moneyRecord:"財務記錄",pNum:"請輸入劃轉數量",leverUse:"合約賬戶可用",legalUse:"法幣賬戶可用",changeUselg:"幣幣賬戶可用",changeUse:"交易賬戶可用",microUse:"秒合約帳戶可用",look:"查看",chargeRecord:"充幣記錄",status:"跟蹤狀態",noopen:"該功能暫未開放",enterAdderses:"請輸入提幣地址",enterNum:"請輸入提幣數量",lessMin:"輸入的提幣數量小於最小值",tips01:"請勿向上述地址充值任何其他資產,否則資產將不可找回。",tips02:"充幣僅支持simple send的方法,使用其他方法(send all)的充幣暫時無法上賬,請您諒解。",beizhu:"備註",pbeizhu:"請輸入備註",add:"添加",addressList:"地址列表",delete:"刪除",norec:"暫無記錄",selectCurrency:"請選擇幣種",chainType:"鏈類型"},set:(gn={mycode2:"我的授權碼",copycode2:"複製授權碼",uaccont:"您的賬號安全等級:",strong:"強",middle:"中",weak:"弱",min:"低",heigh:"高",complete:"完善更多資料,保證賬號安全",mycode:"我的邀請碼",copycode:"復制邀請碼",bindphone:"綁定手機",bindemail:"綁定郵箱",loginpwd:"登錄密碼",noBind:"未綁定",binds:"綁定",bind:"去綁定",binded:"已綁定",net:"互聯網賬號存在被盜風險,建議您定期更改密碼以保護賬號安全。",reset:"修改",setPsw:"設置交易密碼,保障交易安全。",goSet:"去設置",bindAccount:"綁定兌換賬號",duihuan:"綁定賬號進行積分兌換",copysuccess:"復制成功",copyfail:"復制失敗",recopy:"請重新復制",account:"賬戶",detail:"詳情",val:"金額",forgetPsw:"忘記密碼",code:"驗證碼",getCode:"獲取驗證碼"},sa()(gn,"setPsw","設置密碼"),sa()(gn,"enterPsw","請輸入密碼"),sa()(gn,"pswFalse","兩次輸入的密碼不壹致"),sa()(gn,"enterPswagain","請再次輸入密碼"),sa()(gn,"jsetPsw","設定交易密碼"),sa()(gn,"jenterPsw","請輸入交易密碼"),sa()(gn,"jenterPswagain","請再次輸入交易密碼"),sa()(gn,"enterAccount","請輸入賬號"),sa()(gn,"enterCode","請輸入驗證碼"),sa()(gn,"accountFalse","您輸入的手機或郵箱賬號不符合規則!"),sa()(gn,"second","秒"),sa()(gn,"sendCode","發送驗證碼"),sa()(gn,"sendsucc","發送成功"),sa()(gn,"enterPswTwo","請輸入兩次密碼"),sa()(gn,"rest","剩余"),sa()(gn,"yes","是"),sa()(gn,"no","否"),sa()(gn,"yorn","是否設定交易密碼"),gn),auth:{identity:"身份認證",name:"姓名",idcard:"身份證件",upimg:"請上傳證件照,第壹張為正面,第二張為反面,第三張為手持證件照正面照片。",submit:"提交",auditing:"審核中...",certified:"已認證!",pname:"請輸入姓名",pidcard:"請輸入證件號",pimg:"請上傳證件圖片!"},seting:{pmethod:"收款方式",truename:"真實姓名",opening:"開戶行名稱",bank:"銀行卡號",alipay:"支付寶賬號",wename:"微信昵稱",wechat:"微信賬號",pname:"請輸入真實姓名",popen:"請輸入開戶行名稱",pcard:"請輸入銀行卡號",palipay:"請輸入支付寶賬號",pwname:"請輸入微信昵稱",pwaccount:"請輸入微信賬號",pimg1:"微信收款碼",pimg2:"支付寶收款碼"},news:{seeall:"查看全部",helpcenter:"幫助中心",back:"返回"},login:{welcome:"歡迎登錄",phoneLogin:"手機登錄",emailLogin:"郵箱登錄",account:"賬號",psw:"密碼",login:"登錄",nouser:"還不是BBANK的用戶?",goRegister:"立即註冊,在全球領先的數字資產交易平臺開始交易。",registerFree:"免費註冊",psw6:"密碼不能小於六位"},register:{register:"註冊",phoneRegister:"手機註冊",emailRegister:"郵箱註冊",country:"國籍",enterPhone:"請輸入手機號",enterEmail:"請輸入郵箱",psw16:"密碼在6-16位之間",inviteCode:"邀請碼",sel:"必填",sel2:"非必填",read:"我已閱讀並同意",xieyi:"《用戶協議》",tips01:"國籍信息註冊後不可修改,請務必如實選擇。",tips02:"驗證郵件可能會被誤判為垃圾郵件,請註意查收。",tips03:"請妥善保存您的BBANK賬號及登錄密碼。",tips04:"請勿和其他網站使用相同的登錄密碼。",emailFalse:"您輸入的郵箱不符合規則"},jc:{title:"JC兌換數位資產BEAU平臺",balance:"余額",cannum:"可用JC數量",new:"最新價",exnum:"兌換數量",pnum:"請輸入JC數量",canex:"可兌換BEAU數量",exnow:"立即兌換",record:"兌換記錄",exprice:"兌換價格",extime:"兌換時間",not:"可用積分數量不足",usenum:"使用JC數量",out:"退出",gotd:"去交易"},coin:{manage:"理財",total:"總存幣",bao:"存幣寶",mybao:"我的存幣",profit:"預計收益",cuntime:"存幣時間",endtine:"到期時間"},team:{myteam:"我的團隊",ztnum:"直推人數",activenum:"團隊活躍人數",profit:"收益",back:"返傭",cblog:"充幣記錄",bblog:"幣幣記錄"},kline:{text1:"分時",text2:"1分鐘",text3:"5分鐘",text4:"15分鐘",text5:"30分鐘",text6:"1小時",text7:"1天",text8:"1周",text9:"1月"},miscro:{trade:"交易中",buyPrice:"購買價",finshPrice:"成交價",loss:"預計盈虧",times:"倒數計時",mode:"交易模式",num:"開倉數量",rate:"盈利率",up:"買漲",down:"買跌",openNum:"請輸入開倉數量",success:"下單成功!",c2c:"C2C帳戶",complaint:"投訴建議",reply:"請寫下您的問題,我們將儘快回復您…",complaintList:"投訴建議清單",complaintReply:"回復:",complaintDescription:"請輸入描述內容",resetpwd:"修改密碼",foundedOn:"創建於",commonProblem:"常見問題",statement:"解釋說明",about:"關於BBANK",everyone:"人人都是CEO",program:"BBANK全球合夥人計畫",program2:"合夥人計畫",myMine:"我的礦場:",friend:"我的礦友:",myRank:"我的等級:",accumulated:"累計傭金:",copyLinks:"複製推廣連結",moneyVein:"人脈變錢脈",example:"傭金示例",enterQuantity:"請輸入數量",contractBalance:"合約帳戶餘額",submitRepeatedly:"正在提交中,請不要反復提交",alipayCode:"支付寶付款碼",wechatCode:"微信付款碼",realPrice:"實时價格",currencyExchange:"兌出幣種",currencyExchangeIn:"兌入幣種",cashableBalance:"可兌出餘額:",minimumCashable:"最小可兌出:",maximumCashable:"最大可兌出:",automaticallys:"點擊兌換之後將自動完成,不能返回",match:"兌",title:"資產兌換",holdAssets:"持有資產",dangerousCurrency:"持險生幣",convertibleQuantity:"可兌換數量",currencyExchanges:"幣幣兌換率:",insuranceCurrency:"保險幣種",insuranceType:"保險類型",contractAsset:"合約資產保險額",warehouses:"保險倉數量",availableAssets:"可用資產:",insuredAssets:"受保資產:",insuredAssets1:"受保資產",insuranceAssets:"保險資產:",purchaseInsurance:"申購保險",insuranceClaims:"保险理赔",insuranceCancellation:"保險解約",coinWallet:"保險幣錢包",bmbWallet:"HAP錢包",cumulativeCoins:"累計生幣:",availableQuantity:"可用數量:",rawCurrency:"生幣記錄",contractInsurance:"合約保險",tenThousand:"萬",runningLow:"餘額不足",purchase:"你輸入的數量不符合規則,你的購買額度在",reach:"到",between:"之間",onlyEnter:"你只能輸入",integersBetween:"之間的整數",notReturned:"點擊申購保險,視為詳細瞭解保險條約並且同意保險倉自動生效,不能返回。",settled:"受保資產虧損至無法下單時,保險理賠",profitable:"倍,當資產盈利",terminated:"時,保險自動解約。",automatically:"當受保資產虧損50%時,必須申請保險理賠,否則無法交易,當盈利100%時,保險自動解約,保險倉每天只允許賠付兩次,超過兩次,t+1賠付",termination:"保險解約後,受保資產方可兌換,解約後視為違約,保險倉自動清零。",just:"正",back:"反",lowestNumber:"數量最低為",confirmExchange:"確認兌換嗎?",contractValuation:"合約帳戶資產估值",secondValuation:"秒合約帳戶資產估值",falshValuation:"閃兌帳戶資產估值",c2cValuation:"C2C帳戶資產估值",recordWithdrawal:"充提幣記錄",category:"類別",safetyCenter:"安全中心",safeText1:"註冊、修改密碼,及安全設置時用以收取驗證簡訊",safeText2:"互聯網帳號存在被盜風險,建議您定期更改密碼以保護帳戶安全。",flashTrading:"閃兌交易",assetCenter:"資產中心",promotionCode:"我的推廣碼",loginAgain:"登入過時,請重新登入",text10:"基於HAP的實时價格",text11:"授權碼"}},Ln={language:"日本語",zdy:{sftjmcj:"注文販売価格を送信するかどうか",sftjmrj:"注文購入価格を送信するかどうか",proloss:"ストップロス"},header:{home:"トップページ",markets:"相場",fiat:"法定通貨取引",c2c:"C2C取引",exchange:"現物取引",lever:"レバレッジ",micro:"秒契約取引",myshop:"私の店舗",assets:"私の資産",help:"ヘルプセンター",login:"ログイン",sign:"登録",accountSet:"アカウント設定",tradeLog:"取引日にち",receiveSet:"入金設定",identify:"身分認証",jchange:"両替します",logout:"ログアウト",themedark:"ナイトモード",themeday:"昼間モード"},lg:{login:"ログイン",register:"登録"},home:{vol:"24H取引量",c01:"世界でリードしているデジタル資産取引プラットフォーム",c02:"130カ国を超える数百万のユーザーのために、信頼できるデジタル資産取引及び資産管理サービスを提供しています。",c03:"安全で信頼できます",c04:"5年間の暗号資産金融サービスの経験",c05:"専門的な分散システムとDDOS攻撃防止システム",c06:"世界の生態配置",c07:"複数の国で現地化取引サービスセンターを設立しています",c08:"多業務形態を一体とするブロックチェーンのグローバル展開を推進します",c09:"ユーザー至上",c10:"先行賠償支払い機制を設立します",c11:"投資者保護基金を設立します",c12:"いつでもどこでもマルチプラットフォーム端末取引",c13:"iOS、Android、Windowsのプラットフォームを覆い,全業務機能をサポートします",sweep:"ダウンロード",android:"Android",pinput:"お手数でございますが、メールアドレスか携帯番号をご入力してください",atrade:"BBANK のアカウントを登録してから、取引を開始致します"},foo:{about:"私たちに関して",support:"ユーザーサポート",contact:"連絡先",qq:"担当者QQ",email:"メールアドレス"},market:{handicap:"ハンディキャップ",exchange:"貨幣",selfmarket:"自選",allmarket:"総相場",symbol:"取引対",newprice:"最新価格",change:"上げ幅",highprice:"最高値",lowprice:"最低価",vol:"24H 取引量"},td:{buy:"購入",sell:"売却",currency:"幣種",num:"数量",time:"時間",limit:"限度額",price:"単価",method:"支払い方式",total:"総額",inwant:"ご入力の、、、",do:"操作",more:"ローディング",nomore:"以上",nodata:"データなし",trade:"取引",buynum:"購入数量",sellout:"売出す",buyin:"購入",all:"すべて",allbuy:"全部買い取り",allsell:"全部売り出し",buytotal:"購入総額を入力してください",selltotal:"売却総額を入力してください",buyallnum:"購入希望数量を入力してください",sellallnum:"売出す数量を入力してください",tradeTotal:"取引総額",doceil:"数秒後自動キャンセル",place:"注文する",waitpay:"支払いを待つ",paycode:"支払いコード",finished:"完成",ceiled:"キャンセル",payed:"支払済み",nofinish:"未完成",buyer:"買い手",seller:"売り手",callWay:"連絡方法",placeTime:"注文時間",renum:"参考番号",canceil:"キャンセル",confirm:"確認",pwd:"取引のパスワード",coincode:"通貨単位",pcoin:"通貨単位を選択してください"},fat:(yn={orderLog:"注文登録",fatdLog:"法定通貨取引記録",shoper:"売買主",faLog:"法定通貨取引記録",tdType:"取引種類",odStatus:"注文状態",pwaitPay:"お手数ですが、買い手の支払いしばらくお待ちください。",odFinish:"注文完了",odCeil:"注文キャンセル",odPay:"お支払いになりましたので、支払いの情報をよくチェックしてください",tdCeil:"取引をキャンセル",pCeil:"もし売り手に金額を支払った場合、決して取引をキャンセルしないでください",paySure:"支払い確認",pdopay:"お手数ですが、売り手へのお支払いをご確認してください",badClick:"悪質なクリックは直接口座を凍結します",receivePay:"入金確認",payReceive:"お手数ですが、購入者のお支払いをご確認してください",receivePays:"入金確認完了",payPlease:"お手数ですが、お支払いお願い致します",tdPrice:"取引単価",tdNum:"取引数量",payinfo:"支払い状況",banknum:"銀行口座",realName:"実名",shoperZname:"売買主支店",shoperNum:"売買主アカウント"},sa()(yn,"odCeil","注文キャンセル"),sa()(yn,"imPay","お支払い済み、クリックしてご確認してください"),sa()(yn,"register_time","登録時間"),sa()(yn,"odtotal","総計リスト"),sa()(yn,"odmonth","30日間完成リスト"),sa()(yn,"odfinish","完成リスト"),sa()(yn,"odrate","完成率"),sa()(yn,"submit","発表"),sa()(yn,"phone","携帯電話"),sa()(yn,"mysell","売却"),sa()(yn,"mybuy","仕入れ"),sa()(yn,"realAuth","実名認証"),sa()(yn,"advAuth","高級認証"),sa()(yn,"linebuy","オンライン購入"),sa()(yn,"linesell","オンライン売出す"),sa()(yn,"tipPay","24時間を超えると自動的にキャンセルするため、24時間以内に業者と連絡を取ってください"),sa()(yn,"notlow","最低限度額を下回ることはできません"),sa()(yn,"nothigh","最大限度額を超えてはいけません"),sa()(yn,"notnum","最大数量を超えてはいけません"),sa()(yn,"type","タイプ"),sa()(yn,"status","状態"),sa()(yn,"seeOrder","注文書をチェック"),sa()(yn,"withdraw","撤回"),sa()(yn,"abnormal","異常"),sa()(yn,"lowershelf","棚をおりる"),sa()(yn,"protection","権力を擁護"),sa()(yn,"apply","権利の主張"),sa()(yn,"psType","お手数ですが、タイプを選択してください"),sa()(yn,"pselect","お手数ですが、選択してください"),sa()(yn,"alipay","支付宝"),sa()(yn,"wechat","WeChat"),sa()(yn,"bank","銀行カード"),sa()(yn,"minNum","最小取付け量"),sa()(yn,"maxNum","最大取引量"),sa()(yn,"wantBuy","仕入れ"),sa()(yn,"pnums","数量を入力してください"),sa()(yn,"pmin","最小取引量を入力してください"),sa()(yn,"pmax","最大取引量を入力してください"),sa()(yn,"pnot","最大取引量が最小取引量より小さいことはできません"),sa()(yn,"myshops","店舗"),sa()(yn,"name","名称"),sa()(yn,"fiatSub","法定貨幣属する"),sa()(yn,"shoper_balance","売買主し残高"),sa()(yn,"enterShop","入店"),sa()(yn,"payedWait","お支払い済み、ご確認お願い致します"),sa()(yn,"yes","はい"),sa()(yn,"no","いいえ"),sa()(yn,"sd","残高をロックする"),sa()(yn,"journal","残高ログ"),sa()(yn,"business","商売人"),sa()(yn,"user","ユーザー"),sa()(yn,"backdone","取り下げ済み"),sa()(yn,"busbalance","事業者残高"),sa()(yn,"userbalance","ユーザー残高"),yn),ctc:{ctc:"C2C",myRelease:"発表したC2C",myTrade:"取引したC2C",and:"正確",balance:"残高",buynum:"買い入れ量",sellnum:"販売量",bankTransfer:"銀行振替",payim:"必ず本人が支払わなければなりません",pbuyNum:"お手数ですが、購入数量をご入力してください",pprice:"お手数ですが、単価をご入力してください",payway:"お手数ですが、お支払い方法を選択してください",psellNum:"お手数ですが、販売数を入力してください",suerePlace:"ご注文確認お願いいたします?",detail:"詳細",payinfo:"お支払い情報",Payee:"受取人",total:"総額",name:"名前",cardnum:"カード番号",receivePay:"入金確認",ceilConfirm:"取引キャンセル確認?",paySeller:"お手数ですが、販売者へのお支払いをご確認し悪質なクリックがございましたら直接口座を凍結されます",payBuyer:"お手数ですが、購入者からの情報をご確認してください",account:"アカウント",sellerPay:"お手数ですが、販売者からのお支払いをご確認してください?",payattion:"お手数ですが、お支払いの確認後は早めに売り手にお支払いください。悪意のあるクリックは口座を冻结されます",log:"c2c已完成订单"},lever:{nowentrust:"ご依頼",hisentrust:"履歴依頼",lvchi:"てこ倉位持ち有り",all:"全部",or:"或いは",gotrade:"取引開始",tdrecord:"取引記録",dealed:"成約",notdeal:"未成約",loading:"ローディング中",entotal:"委託総額",canuse:"マーケティング取引価格",std:"マーケティング取引価格",xtd:"限定取引価格",pprice:"お手数ですが、価格をご入力してください",phand:"お手数ですが、一株当たりの購入ご入力してください",phandsell:"販売手数を入力してください",pwd:"パスワード",ppwd:"取引パスワードを入力してください",psw:"取引のパスワード",equal:"等しい",times:"倍",timed:"倍数",hand:"一株",hands:"",ptimes:"お手数ですが、倍数をご選択してください",phands:"お手数ですが、一株当たりをご選択してください",contractVal:"契約マーケティング値",bail:"保証金",canBail:"有効保証金",charge:"取引サービス料",domore:"買い取る(多め)",doshort:"売却(空っぽ)",dmore:"多め",dshort:"空っぽ",sureOd:"ご注文を確認致します",noless:"一株当たり、、、下回ることはできません",nomore:"一株当たり、、、上回ることはできません",tdnum:"取引量",risk:"リスク率",allloss:"倉庫を持って総損益",onehouse:"クリック平倉",type:"タイプ",entrustPrice:"委託価格",openPrice:"開倉価格",nowPrice:"現在の価格",styPrice:"黒字価格をとめる",stsPrice:"赤字価格を止める",openTime:"開倉時間",closeTime:"平倉時間",rate:"手数料",nightFee:"日越し費用",loss:"損益",setloss:"損益を防ぐため設置する",expectProfit:"黒字を予期する",expectLoss:"赤字を予期する",allClose:"全部平倉",moreClose:"ただ多めの片手を平らげます",nullClose:"先に売って平倉を購入します",sureClose:"平倉を確認する?",thanZearo:"設定する値は必ず0より大きい",listin:"掛け値中",tdin:"取引中",closein:"平倉中",closed:"すでに平倉",revoked:"取り消す",revokeOrder:"注文の取り消すことをご確認してください?",ping:"平倉",revoke:"撤退する",sureping:"平倉を確定しますか?",thanzone:"設定する値は0より大きい"},cuy:{direction:"方向",total:"総計",price:"価格",sell:"売る",buy:"買う",allStation:"全般取引",buyPrice:"買入れ価格",buynum:"購入量",sellPrice:"売り値",sellnum:"販売量",tdPrice:"取引額",or:"或いは",tdStart:"取引開始",pbPrice:"お手数ですが、買入価格をご入力してください",pbNum:"お手数ですが、購入量をご入力してください",psPrice:"お手数ですが、売り値をご入力してください",psNum:"お手数ですが、販売量をご入力してください",fixPrice:"取引限定値",Mtrans:"取引マーケティング値",available:"利用可能",revoke:"撤回",loading:"ローディング中",confirmCancel:"キャンセルすることは確定しましたか??",confirm:"確定",cancel:"キャンセル",nomore:"これ以上のデータはございません",evelPrice:"成約値"},asset:{confirmhuazhuan:"転送を確認?",assets:"資産",currency_account:"貨幣口座",lever_account:"てこ口座",fince_account:"法定通貨取引口座",change_account:"取引口座",micro_account:"秒契約アカウント",miscroAccount:"秒契約アカウント",assets_hua:"資金分割移動",all_assets:"総資産の換算",currency:"弊種",canuse:"利用可能",frezz:"凍結",conversion:"換算",charging:"チャージ",withdraw:"キャッシュ",address_bind:"バンドルの住所",address_withdraw:"キャッシュアドレスの管理",record:"記録",address_charge:"チャージ口座",address_width:"提出貨幣口座",copy:"コーピ",ercode:"コード",reminder:"お知らせ",notcharge:"上記のところにはチャージしないでください",ornone:",さもなくば資産は取り戻すことができません",support:"チャージはsimple sendの方法だけをサポートしており、その他(send all)の方法でチャージしても一時的に振込できませんので、ご了承ください。",minnum:"最小限提出貨幣の数量",ratenum:"手数料",havenum:"着通帳数量",from:"から",to:"まで",transfer:"分割移動",tfnum:"分割移動数量",ptfnum:"请输入最低",dtfnum:"的划转数量",canbalance:"利用可能の残高",sureConfirm:"分割移動確認",moneyRecord:"財務記録",pNum:"お手数ですが、最低限の分割移動数量をご入力してください",leverUse:"てこの口座利用可能",legalUse:"法定通貨取引利用可能",changeUse:"取引口座の利用可能",microUse:"秒契約口座は使えます",look:"チェック",chargeRecord:"チャージ記録",status:"追跡状態",noopen:"この機能はしばらく開放されていません",enterAdderses:"お手数ですが、提出貨幣先をご入力してください",enterNum:"请输入提币数量",lessMin:"ご入力した提出貨幣数量は最小値より小さいです",tips01:"資産は上記のアドレスにチャージしないでください。さもなければ資産を取り戻すことはできません。",tips02:"チャージはsimple sendの方法だけをサポートしており、その他(send all)の方法でチャージしても一時的に振込できませんので、ご了承ください。",beizhu:"備考",pbeizhu:"お手数ですが、備考欄にご記入してください",add:"追加",addressList:"住所リスト",delete:"削除",norec:"記録なし",selectCurrency:"お手数ですが、貨幣種類を選択してください",chainType:"チェーンの種類"},set:(An={mycode2:"私のライセンスコード",copycode2:"認証コードをコピー",uaccont:"アカウントのセキュリティレベル:",strong:"強",middle:"中",weak:"弱",min:"低",heigh:"高",complete:"より多くの資料を補充し、アカウントの安全性を高めることを保証します",mycode:"招待コード",copycode:"招待コードをコピー",bindphone:"バインディング携帯電話",bindemail:"バインディングメールアドレス",loginpwd:"ログインパスワード",noBind:"未バインディング",binds:"バインディング",bind:"バインディングを行う",binded:"バインディング完成",net:"インターネットのアカウントは盗まれるリスクが高いので、定期的にパスワードを変更してアカウントの安全を保護することをお勧めします。",reset:"修正",setPsw:"取引のパスワードを設定し、取引安全を保障する。",goSet:"設定を行う",bindAccount:"バインディング振り替えアカウント",duihuan:"バインディングアカウントでポイント交換を行います",copysuccess:"コピー成功",copyfail:"コピー失敗",recopy:"お手数ですが、再度コピーしてください",account:"アカウン",detail:"詳細",val:"金額",forgetPsw:"パスワードを忘れる",code:"検証コード",getCode:"送信する"},sa()(An,"setPsw","パスワードを設定"),sa()(An,"enterPsw","お手数ですが、パスワードをご入力してください"),sa()(An,"pswFalse","お手数ですが、二度ご入力したパスワードは一致しません"),sa()(An,"enterPswagain","お手数ですが、パスワードを再度ご入力してください"),sa()(An,"jsetPsw","取引のパスワードを設定"),sa()(An,"jenterPsw","取引のパスワードを入力してください。"),sa()(An,"jenterPswagain","取引のパスワードをもう一度入力してください。"),sa()(An,"enterAccount","お手数ですが、アカウントをご入力してください"),sa()(An,"enterCode","お手数ですが、検証コードをご入力してください"),sa()(An,"accountFalse","すみませんですが、ご入力した携帯番号やメールアドレスは不規則でございます!"),sa()(An,"second","秒"),sa()(An,"sendCode","送信する"),sa()(An,"sendsucc","送信成功"),sa()(An,"enterPswTwo","お手数ですが、パスワードを2回ご入力してください"),sa()(An,"rest","残り"),sa()(An,"yes","はい、"),sa()(An,"no","いいえ、"),sa()(An,"yorn","取引パスワードを設定するかどうか"),An),auth:{identity:"身分認証",name:"名前",idcard:"身分証明書",upimg:"お手数ですが、証明書をアップロードしてください。第一枚目は正面、第二枚目は裏、第三枚目は手持ち証明書の写真をお送りしてください。",submit:"提出",auditing:"審査中...",certified:"確認済み!",pname:"お手数ですが、名前をご入力してください",pidcard:"お手数ですが、証明書番号をご入力してください",pimg:"お手数ですが、証明書の写真をお送りしてください!"},seting:{pmethod:"收款方式",truename:"実名",opening:"口座名称",bank:"銀行カード",alipay:"支付宝アカウント",wename:"WeChat名前",wechat:"WeChat番号",pname:"お手数ですが、実名をご記入してください",popen:"お手数ですが、口座名称をご記入してください",pcard:"お手数ですが、銀行カードをご記入してください",palipay:"お手数ですが、支付宝アカウントをご記入してください",pwname:"お手数ですが、WeChat名前をご記入してください",pwaccount:"お手数ですが、WeChat番号をご記入してください",pimg1:"WeChat入金コード",pimg2:"アリペイを支払う"},news:{seeall:"全てをご覧",helpcenter:"ログイン",back:"戻る"},login:{welcome:"ようこそ",phoneLogin:"携帯登録",emailLogin:"メールアドレス登録",account:"アカウント",psw:"パスワード",login:"登録する",nouser:"まだBBANKのユーザーではありません?",goRegister:"すぐ登録すると、世界でリードしているデジタル資産取引プラットフォームで取引を開始できます。",registerFree:"無料登録",psw6:"パスワードは6位以下ではいけません"},register:{register:"登録",phoneRegister:"携帯登録",emailRegister:"メールアドレス登録",country:"国籍",enterPhone:"お手数ですが、携帯番号をご記入してください",enterEmail:"お手数ですが、メールアドレスをご入力してください",psw16:"パスワードは6 ~ 16位の間でございます",inviteCode:"コード",sel:"必要とする",sel2:"必要でない",read:"すでにご覧して同意",xieyi:"《ユーザー協議》",tips01:"国籍情報登録後は修正不可ですので、必ずきちんと選択して下さい。",tips02:"メールの検証が迷惑メールになる可能性がありますので、取り扱いにご注意下さい。",tips03:"BBANKのアカウントとログインパスワードをきちんと保管してください。",tips04:"他のサイトと同じログインパスワードをご使用しないでください。",emailFalse:"入力されたメールアドレスは不規則でございます"},jc:{title:"JC両替デジタル資産ベアプラットフォーム",balance:"残高",cannum:"使用できるJC数量",new:"最新の価格",exnum:"交換数 ",pnum:"お手数でございますが、JC数量をご入力してください",canex:"BEAU交換出来る数量",exnow:"すぐに両替する",record:"交換記録",exprice:"交換価格",extime:"交換時間",not:"ポイントの数が足りない",usenum:"JCの数量を使用する",out:"脱退する",gotd:"取引に行く"},coin:{manage:"投資信託",total:"総貨幣",bao:"存幣宝",mybao:"私の貯金は",profit:"予想収益",cuntime:"貨幣預かり時間",endtine:"締切時間"},team:{myteam:"私のチーム",ztnum:"直進人数",activenum:"チームの活動人数",profit:"収益",back:"返佣",cblog:"チャージの記録",blogs:"貨幣記録"},miscro:{trade:"取引中",buyPrice:"購買価格",finshPrice:"成約価格",loss:"損益予想",times:"カウントダウン",mode:"取引モード",num:"開倉数量",rate:"利益率",up:"買上高",down:"は下落を買います",openNum:"開倉数量を入力してください",success:"注文成功!",c2c:"c2c",complaint:"苦情の提案",reply:"問題を書いてください。できるだけ早くご返事します。",complaintList:"苦情提案リスト",compplintReply:"返信:",complanitDescription:"説明内容を入力してください",reetpwd:"パスワードの変更",foundedOn:"作成",commonProblem:"よくある問題",statement:"説明",about:"BBANKについて",everyone:"誰でもCEO",program:"BBANKグローバルパートナー計画",program2:"パートナー計画",myMine:"私の鉱場:",friend:"私の鉱山仲間",myRank:"私のレベル:",accumulted:"累計コミッション:",copyLinks:"コピープロモーションリンク",moneyVein:"人脈がお金の脈に変わる",example:"コミッションの例",enterQuantity:"数量を入力してください",contractBalance:"契約口座残高",submitRepeatdely:"提出中です。繰り返し提出しないでください。",alipayCode:"Alipay決済コード",wechatCode:"WeChat決済コード",realPrice:"リアルタイム価格",currencyExchange:"通貨両替",currencyExchangeIn:"通貨両替",cashableBalance:"残額を差し引くことができる:",minimumCashable:"最小両替可能:",maximCasheble:"最大両替可能:",automicallys:"両替をクリックしたら自動的に完成します。戻れません。",match:"対",title:"資産両替",HoldAsets:"保有資産",dangerousCurrency:"危険な貨幣を持っている",convertibleQuanntity:"両替可能数量",currencyExchanges:"貨幣両替率:",insuranceCurrency:"保険貨幣",insuranceType:"保険タイプ",contracctAset:"契約資産保険額",warehousses:"保険倉庫数量",availableAsets:"利用可能資産:",insuredAsssets:"被保資産:",insuredAsssets1:"被保資産",insuranceAsssets:"保険資産:",purrhaseInsurance:"保険申請",insurancCliaims:"保険賠償",insuranceCarcelation:"保険解約",coinWallet:"保険貨幣財布",bmbWallet:"HAP財布",cumullativeCoins:"累計生幣:",availableQuautity:"利用可能数量:",rawCurrency:"生幣記録",contracctInsurance:"契約保険",tentousand:"万",runningLow:"残高不足",purrhase:"あなたが入力した数量は規則に合わないです。あなたの購入限度額はあります。",reach:"はい",between:"間",onlyEnter:"あなたは入力しかできません。",integersBetween:"間の整数",notReturned:"保険の申し込みをクリックして、保険条約を詳しく知っています。そして保険倉庫の自動発効に同意して、戻ってきません",settled:"保険資産の損失を受けて注文できない時、保険賠償請求",profitable:"倍、当資産収益",terminated:"保険は自動的に解約されます。",automically:"保護資産の損失が50%の場合、保険賠償請求を申請しなければならない。さもなければ取引できなくなり、100%の利益が得られない場合、保険は自動的に解約され、保険倉庫は毎日2回だけ賠償し、2回を超えて、t+1は賠償します。",termination:"保険が解約された後、保険資産の方が両替できます。解約後は違約と見なされます。保険倉庫は自動的にゼロになります。",just:"正",back:"反",lowestNumber:"数量が一番低い",confirmExchange:"両替を確認しますか?",contracctValuation:"契約口座資産評価値",secondValuation:"秒契約口座資産評価値",falshValuation:"フラッシュ・アカウント資産評価値",c2cValuation:"C 2 C口座資産推定値",recordWithdrawal:"チャージ貨幣記録",category:"カテゴリ",safetyCenter:"安全センター",safeText1:"パスワードの登録、変更、およびセキュリティ設定の場合は検証メールを受け取ります",safeText2:"インターネットアカウントに盗難のリスクがあります。定期的にパスワードを変更して口座の安全を守ることをお勧めします。",flashTrading:"フラッシュ取引",assetCenter:"資産センター",promotionCode:"私のプロモーションコード",loginAgain:"登録が古いので、再登録してください",text10:"HAPベースのリアルタイム価格",text11:"授権コード"}};U.default.use(Fn.a);var Mn=window.localStorage.getItem("locale")||"en";""==Mn&&(Mn="hk",window.localStorage.setItem("locale","hk"));var Un=new Fn.a({locale:Mn,messages:{zh:Nn,en:Tn,hk:Dn,jp:Ln}}),Qn=a("7QTg"),zn=a.n(Qn),Wn={accountNum:"",datas:{},theme:""},Yn={setAccountNum:function(t){var e=window.localStorage.getItem("accountNum");this.state.accountNum=e},setDatas:function(t,e){this.state.datas=e},changeTheme:function(t,e){this.state.theme=e}};U.default.use(Ut.a);var Gn,jn=new Ut.a.Store({state:Wn,mutations:Yn});U.default.use(M.a),U.default.use(D.a),U.default.use(N.a),U.default.component(M.a.name,M.a),U.default.component(D.a.name,D.a),U.default.component(N.a.name,N.a),U.default.component(B.a.name,B.a),U.default.component(P.a.name,P.a),U.default.component(I.a.name,I.a),U.default.component(k.a.name,k.a),U.default.component(w.a.name,w.a),U.default.component(C.a.name,C.a),U.default.component(y.a.name,y.a),U.default.component(f.a.name,f.a),U.default.component(v.a.name,v.a),U.default.component(p.a.name,p.a),U.default.component(u.a.name,u.a),U.default.component(l.a.name,l.a),U.default.use(zn.a);var Vn="";if(Gn=location.host+":2000",Vn=window.location.protocol+"//"+window.location.host,U.default.prototype.API=Vn,U.default.use(Bn.a,Gn),U.default.prototype.$store=jn,window.eventBus=new U.default,localStorage.getItem("socketPort"))JSON.parse(localStorage.getItem("socketPort")).socketnum;else wn.a.get("/api/env.json").then(function(t){var e={socketnum:t.data.socket_io_port,smcode:t.data.login_need_smscode};e=r()(e),localStorage.setItem("socketPort",e)});U.default.config.productionTip=!1,wn.a.interceptors.request.use(function(t){return-1===t.url.indexOf("?")?t.url=t.url+"?_timespan="+(new Date).getTime():t.url=t.url+"&_timespan="+(new Date).getTime(),t},function(t){return n.a.reject(t)}),U.default.prototype.$makeSocketId=function(){var t=(new Date).getTime();return t=t+""+parseInt(888*Math.random()+101+"")},wn.a.interceptors.response.use(function(t){if("999"==t.data.type){var e=window.localStorage.getItem("locale")||"";"jp"==e?layer.msg("ログイン時代遅れになっておりますので、再登録してください"):"zh"==e?layer.msg("登录过时,请重新登录"):"en"==e?layer.msg("Logon is out of date, please login again"):layer.msg("登入過時,請重新登入"),localStorage.clear(),window.localStorage.setItem("locale",e),Cn.push({name:"login",params:{type:1}})}return"996"==t.data.type&&(layer.msg(t.data.message),setTimeout(function(){layer.msg("设置交易密码?",{time:0,btn:["是的","取消"],yes:function(t){layer.closeAll(),Cn.push("/bindmpwd")}})},1e3)),"997"!=t.data.type&&"555"!=t.data.type||(layer.msg(t.data.message),setTimeout(function(){Cn.push("/userSetting")},1e3)),"998"==t.data.type&&(layer.msg(t.data.message),setTimeout(function(){Cn.push("/authentication")},1e3)),t},function(t){401==t.response.status&&setTimeout(function(){layer.msg("设置交易密码?",{time:0,btn:["是的","取消"],yes:function(t){layer.closeAll(),Cn.push("/bindmpwd")}})},1e3)}),U.default.config.productionTip=!1,wn.a.defaults.transformRequest=[function(t){return Pn.a.stringify(t)}],U.default.use(In.a,wn.a),U.default.use(kn),U.default.filter("numFilter",function(t){var e=Number(t).toFixed(5);return Number(e)});var On=new U.default;U.default.prototype.bus=On,new U.default({el:"#app",i18n:Un,router:Cn,store:jn,components:{App:W},template:"<App/>"})},NTrX:function(t,e){},NXbY:function(t,e){},NzrC:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAATlBMVEUAAABSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIxSaIznjfSbAAAAGXRSTlMAvjB7J2jobwbH+VYNhpROZBqttN3yRHaDqFJn/AAAAHhJREFUGNNljVsSwyAIRbVBEWPMOy3732jFwvjR8+H1HobBNaBGZtqSU7CVZ13yBdbnnuW8d0mQ3kl0SFRyxotlKQat9udnCL+IWIegSZ5mldSHeBcTIRfR8Uh2JPwyE8hgYxVu93ydnhknRl0GrJ+57ZsZvP9N/ALRoAUYtthxjQAAAABJRU5ErkJggg=="},OKKy:function(t,e){},OS2M:function(t,e){},Omcq:function(t,e){},"PL/J":function(t,e){var a;(a=jQuery).fn.qrcode=function(t){var e;function s(t){this.mode=e,this.data=t}function i(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function n(t,e){if(void 0==t.length)throw Error(t.length+"/"+e);for(var a=0;a<t.length&&0==t[a];)a++;this.num=Array(t.length-a+e);for(var s=0;s<t.length-a;s++)this.num[s]=t[s+a]}function o(t,e){this.totalCount=t,this.dataCount=e}function r(){this.buffer=[],this.length=0}s.prototype={getLength:function(){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},i.prototype={addData:function(t){this.dataList.push(new s(t)),this.dataCache=null},isDark:function(t,e){if(0>t||this.moduleCount<=t||0>e||this.moduleCount<=e)throw Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var t=1;for(t=1;40>t;t++){for(var e=o.getRSBlocks(t,this.errorCorrectLevel),a=new r,s=0,i=0;i<e.length;i++)s+=e[i].dataCount;for(i=0;i<this.dataList.length;i++)e=this.dataList[i],a.put(e.mode,4),a.put(e.getLength(),c.getLengthInBits(e.mode,t)),e.write(a);if(a.getLengthInBits()<=8*s)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++){this.modules[a]=Array(this.moduleCount);for(var s=0;s<this.moduleCount;s++)this.modules[a][s]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),7<=this.typeNumber&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var a=-1;7>=a;a++)if(!(-1>=t+a||this.moduleCount<=t+a))for(var s=-1;7>=s;s++)-1>=e+s||this.moduleCount<=e+s||(this.modules[t+a][e+s]=0<=a&&6>=a&&(0==s||6==s)||0<=s&&6>=s&&(0==a||6==a)||2<=a&&4>=a&&2<=s&&4>=s)},getBestMaskPattern:function(){for(var t=0,e=0,a=0;8>a;a++){this.makeImpl(!0,a);var s=c.getLostPoint(this);(0==a||t>s)&&(t=s,e=a)}return e},createMovieClip:function(t,e,a){for(t=t.createEmptyMovieClip(e,a),this.make(),e=0;e<this.modules.length;e++){a=1*e;for(var s=0;s<this.modules[e].length;s++){var i=1*s;this.modules[e][s]&&(t.beginFill(0,100),t.moveTo(i,a),t.lineTo(i+1,a),t.lineTo(i+1,a+1),t.lineTo(i,a+1),t.endFill())}}return t},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=0==t%2);for(t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=0==t%2)},setupPositionAdjustPattern:function(){for(var t=c.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var a=0;a<t.length;a++){var s=t[e],i=t[a];if(null==this.modules[s][i])for(var n=-2;2>=n;n++)for(var o=-2;2>=o;o++)this.modules[s+n][i+o]=-2==n||2==n||-2==o||2==o||0==n&&0==o}},setupTypeNumber:function(t){for(var e=c.getBCHTypeNumber(this.typeNumber),a=0;18>a;a++){var s=!t&&1==(e>>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=s}for(a=0;18>a;a++)s=!t&&1==(e>>a&1),this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=s},setupTypeInfo:function(t,e){for(var a=c.getBCHTypeInfo(this.errorCorrectLevel<<3|e),s=0;15>s;s++){var i=!t&&1==(a>>s&1);6>s?this.modules[s][8]=i:8>s?this.modules[s+1][8]=i:this.modules[this.moduleCount-15+s][8]=i}for(s=0;15>s;s++)i=!t&&1==(a>>s&1),8>s?this.modules[8][this.moduleCount-s-1]=i:9>s?this.modules[8][15-s-1+1]=i:this.modules[8][15-s-1]=i;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var a=-1,s=this.moduleCount-1,i=7,n=0,o=this.moduleCount-1;0<o;o-=2)for(6==o&&o--;;){for(var r=0;2>r;r++)if(null==this.modules[s][o-r]){var l=!1;n<t.length&&(l=1==(t[n]>>>i&1)),c.getMask(e,s,o-r)&&(l=!l),this.modules[s][o-r]=l,-1==--i&&(n++,i=7)}if(0>(s+=a)||this.moduleCount<=s){s-=a,a=-a;break}}}},i.PAD0=236,i.PAD1=17,i.createData=function(t,e,a){e=o.getRSBlocks(t,e);for(var s=new r,n=0;n<a.length;n++){var l=a[n];s.put(l.mode,4),s.put(l.getLength(),c.getLengthInBits(l.mode,t)),l.write(s)}for(n=t=0;n<e.length;n++)t+=e[n].dataCount;if(s.getLengthInBits()>8*t)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*t+")");for(s.getLengthInBits()+4<=8*t&&s.put(0,4);0!=s.getLengthInBits()%8;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*t||(s.put(i.PAD0,8),s.getLengthInBits()>=8*t));)s.put(i.PAD1,8);return i.createBytes(s,e)},i.createBytes=function(t,e){for(var a=0,s=0,i=0,o=Array(e.length),r=Array(e.length),l=0;l<e.length;l++){var d=e[l].dataCount,u=e[l].totalCount-d;s=Math.max(s,d),i=Math.max(i,u),o[l]=Array(d);for(var m=0;m<o[l].length;m++)o[l][m]=255&t.buffer[m+a];for(a+=d,m=c.getErrorCorrectPolynomial(u),d=new n(o[l],m.getLength()-1).mod(m),r[l]=Array(m.getLength()-1),m=0;m<r[l].length;m++)u=m+d.getLength()-r[l].length,r[l][m]=0<=u?d.get(u):0}for(m=l=0;m<e.length;m++)l+=e[m].totalCount;for(a=Array(l),m=d=0;m<s;m++)for(l=0;l<e.length;l++)m<o[l].length&&(a[d++]=o[l][m]);for(m=0;m<i;m++)for(l=0;l<e.length;l++)m<r[l].length&&(a[d++]=r[l][m]);return a},e=4;for(var c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;0<=c.getBCHDigit(e)-c.getBCHDigit(c.G15);)e^=c.G15<<c.getBCHDigit(e)-c.getBCHDigit(c.G15);return(t<<10|e)^c.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;0<=c.getBCHDigit(e)-c.getBCHDigit(c.G18);)e^=c.G18<<c.getBCHDigit(e)-c.getBCHDigit(c.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return c.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,a){switch(t){case 0:return 0==(e+a)%2;case 1:return 0==e%2;case 2:return 0==a%3;case 3:return 0==(e+a)%3;case 4:return 0==(Math.floor(e/2)+Math.floor(a/3))%2;case 5:return 0==e*a%2+e*a%3;case 6:return 0==(e*a%2+e*a%3)%2;case 7:return 0==(e*a%3+(e+a)%2)%2;default:throw Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),a=0;a<t;a++)e=e.multiply(new n([1,l.gexp(a)],0));return e},getLengthInBits:function(t,a){if(1<=a&&10>a)switch(t){case 1:return 10;case 2:return 9;case e:case 8:return 8;default:throw Error("mode:"+t)}else if(27>a)switch(t){case 1:return 12;case 2:return 11;case e:return 16;case 8:return 10;default:throw Error("mode:"+t)}else{if(!(41>a))throw Error("type:"+a);switch(t){case 1:return 14;case 2:return 13;case e:return 16;case 8:return 12;default:throw Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),a=0,s=0;s<e;s++)for(var i=0;i<e;i++){for(var n=0,o=t.isDark(s,i),r=-1;1>=r;r++)if(!(0>s+r||e<=s+r))for(var c=-1;1>=c;c++)0>i+c||e<=i+c||0==r&&0==c||o==t.isDark(s+r,i+c)&&n++;5<n&&(a+=3+n-5)}for(s=0;s<e-1;s++)for(i=0;i<e-1;i++)n=0,t.isDark(s,i)&&n++,t.isDark(s+1,i)&&n++,t.isDark(s,i+1)&&n++,t.isDark(s+1,i+1)&&n++,(0==n||4==n)&&(a+=3);for(s=0;s<e;s++)for(i=0;i<e-6;i++)t.isDark(s,i)&&!t.isDark(s,i+1)&&t.isDark(s,i+2)&&t.isDark(s,i+3)&&t.isDark(s,i+4)&&!t.isDark(s,i+5)&&t.isDark(s,i+6)&&(a+=40);for(i=0;i<e;i++)for(s=0;s<e-6;s++)t.isDark(s,i)&&!t.isDark(s+1,i)&&t.isDark(s+2,i)&&t.isDark(s+3,i)&&t.isDark(s+4,i)&&!t.isDark(s+5,i)&&t.isDark(s+6,i)&&(a+=40);for(i=n=0;i<e;i++)for(s=0;s<e;s++)t.isDark(s,i)&&n++;return a+10*(t=Math.abs(100*n/e/e-50)/5)}},l={glog:function(t){if(1>t)throw Error("glog("+t+")");return l.LOG_TABLE[t]},gexp:function(t){for(;0>t;)t+=255;for(;256<=t;)t-=255;return l.EXP_TABLE[t]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},d=0;8>d;d++)l.EXP_TABLE[d]=1<<d;for(d=8;256>d;d++)l.EXP_TABLE[d]=l.EXP_TABLE[d-4]^l.EXP_TABLE[d-5]^l.EXP_TABLE[d-6]^l.EXP_TABLE[d-8];for(d=0;255>d;d++)l.LOG_TABLE[l.EXP_TABLE[d]]=d;return n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=Array(this.getLength()+t.getLength()-1),a=0;a<this.getLength();a++)for(var s=0;s<t.getLength();s++)e[a+s]^=l.gexp(l.glog(this.get(a))+l.glog(t.get(s)));return new n(e,0)},mod:function(t){if(0>this.getLength()-t.getLength())return this;for(var e=l.glog(this.get(0))-l.glog(t.get(0)),a=Array(this.getLength()),s=0;s<this.getLength();s++)a[s]=this.get(s);for(s=0;s<t.getLength();s++)a[s]^=l.gexp(l.glog(t.get(s))+e);return new n(a,0).mod(t)}},o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(t,e){var a=o.getRsBlockTable(t,e);if(void 0==a)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var s=a.length/3,i=[],n=0;n<s;n++)for(var r=a[3*n+0],c=a[3*n+1],l=a[3*n+2],d=0;d<r;d++)i.push(new o(c,l));return i},o.getRsBlockTable=function(t,e){switch(e){case 1:return o.RS_BLOCK_TABLE[4*(t-1)+0];case 0:return o.RS_BLOCK_TABLE[4*(t-1)+1];case 3:return o.RS_BLOCK_TABLE[4*(t-1)+2];case 2:return o.RS_BLOCK_TABLE[4*(t-1)+3]}},r.prototype={get:function(t){return 1==(this.buffer[Math.floor(t/8)]>>>7-t%8&1)},put:function(t,e){for(var a=0;a<e;a++)this.putBit(1==(t>>>e-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},"string"==typeof t&&(t={text:t}),t=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},t),this.each(function(){var e;if("canvas"==t.render){(e=new i(t.typeNumber,t.correctLevel)).addData(t.text),e.make();var s=document.createElement("canvas");s.width=t.width,s.height=t.height;for(var n=s.getContext("2d"),o=t.width/e.getModuleCount(),r=t.height/e.getModuleCount(),c=0;c<e.getModuleCount();c++)for(var l=0;l<e.getModuleCount();l++){n.fillStyle=e.isDark(c,l)?t.foreground:t.background;var d=Math.ceil((l+1)*o)-Math.floor(l*o),u=Math.ceil((c+1)*o)-Math.floor(c*o);n.fillRect(Math.round(l*o),Math.round(c*r),d,u)}}else for((e=new i(t.typeNumber,t.correctLevel)).addData(t.text),e.make(),s=a("<table></table>").css("width",t.width+"px").css("height",t.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",t.background),n=t.width/e.getModuleCount(),o=t.height/e.getModuleCount(),r=0;r<e.getModuleCount();r++)for(c=a("<tr></tr>").css("height",o+"px").appendTo(s),l=0;l<e.getModuleCount();l++)a("<td></td>").css("width",n+"px").css("background-color",e.isDark(r,l)?t.foreground:t.background).appendTo(c);e=s,jQuery(e).appendTo(this)})}},PMfB:function(t,e){},PVjh:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowMjFEMUMwRkVFRkQxMUU4OEFDRUYwMEE2RTIzMzVBRCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowMjFEMUMxMEVFRkQxMUU4OEFDRUYwMEE2RTIzMzVBRCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjAyMUQxQzBERUVGRDExRTg4QUNFRjAwQTZFMjMzNUFEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAyMUQxQzBFRUVGRDExRTg4QUNFRjAwQTZFMjMzNUFEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+ITSj/QAABElJREFUeNqsVllslFUU/v5//tl3OtMptctMmVZKrUAppLg8aE0JalE0aUgMPmhiDDHGmGBFg/EBjRoTDUZj5EUeXFLDUJcISkyMhlhpVAwt0BRoS1uBodPZ2tkXz7mdaazYYZJ6bs6fu80593znu+eOdFd/O0hcpK+QPkxqxspknvRL0gOkUxI5qKTOEKkT/6+ESNcp9Hnj38Ylatl8FvFMDPFsHHlqWlkLg9oItaQW4zLERnqQHfQUZ1SSCulcGpNzlyFLMmpNdWiweMV8IBmg+QlE0xGsNlTDrLbSITI3c7KDHWi4p5bV8MevIZwK4SH3I+iu34kNFW1wGarEznAqjHPBIfwwfQJ9Fz/FpegFNJi9yFGkJSLKcw4iKkkx++NX6UQ5vN3xLrrdO0seazQ8gr0Dz2HQP4Am21pkcstGEpX5G8vMI5aN4fC9ny8aZygS2cSS3RGKgo01Wm+Fr+sbtFasx0R0XMC5nMicUMb2qeY96KjcKiYvRS7C8pEVL9Api3IueBbWD23YP9hb+KEKn3X6IFOLpqOCGv8lqqoexz5a0x7Y/CYqdI4F4KhFMjO4p7oT6+y3FeZySEsx9KzZRUlXcDrwB0WTxnDwDE75fyHGxaFT6aEnzVErSEq6va8p4tQ7zf3bjsOkNt2Ue1+N+zA1P4UqSn6tsR42rQ0XIqM4efVnWjtKMIbgsawp5iWqSJIkBjlkSxq+Rgz7+PwhrLU3Y0/Ls0vWOCfbax/EY97HRfL/DPwOr7VJ2JUNigHj0TGMhkZKOviaTt5Z00UUflSMc/lFGBb7zfYWkXw2/tf8NPjwsiIrAvMPhg8ua3zw+q9YpatAu3OLGL98ai/u6G9bXH/yx93oPtYl+hqVFq9ueg1z6Tlkc1mo6nZV77Nq7NoB/0lKkAFbKjtucPDb9UG4zQ2E+2oxNihGtNhb0bKqVYw5dxscG8WdYLnFWIMT099hNjmTUhYoJ6He5MFLdDLm/4sb9y9x4NA7hdGibHXdKbQo99VsW7Kfq4JFbcFkbgJKEUOdooNKVgkoWHxjfYJ2jYTnWSoRbY72ssso4z8SPk/1yrzggEXcUEsjEsTnp396AkfIgV7Rw6Fz4gr94Pn1vWU7eW/oHQQSM/CSPVGLio+MRtYQxyeRoSrJOHJkyWxSVNhQMoj37z6EB+p2LGuY930yelhA7TZ7uApHRZJpTcsb+A3gms/4Fd8FZhnjzzfZN/aFcOi2eGDRWG9wwCWH2VRvcoPpT+xMcQTJYskuJVweuCheJiMeYtQm52YRJVN8ePYMKvUu3F/XjbdOv45gclbAS5JgB/yGGsrBliPiy8PFjY2ksylR45gMHJlLXyUchVJB8UgxapzkI6S7y3HAp83n8zASZMZ/0FY4J8fJTALB1KygKe8j+ZYLeW/hgV6RsEG+xQpBWTAeI32GI7hC2lr4m7GdVL9CX/xKfU/Kt3XqbwEGAE1hqfP3mvb7AAAAAElFTkSuQmCC"},QGpR:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAASFBMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uRMjigqAAAAF3RSTlMAZ0yM6kUZC/K3pyVfOdHfbcc8mXA1T63ifaIAAACISURBVBjThdDBEoMgDATQFVGCAmptu///pyV0ylg4+A45LJMdAMW8eyHF7zN+3MhqdCjWjRfbWlYt/1it8Gx4YGJnwsLOAqvzzOPU41HLBFoNJCbAah2zMsykTW9SYijhwc6BJzsDnLAhDjD9NbOhXS7C9eURX48apcEBNZTwMibmpFr1a299APTaFzu6N1mmAAAAAElFTkSuQmCC"},RXoG:function(t,e){},S2CU:function(t,e){},"SF+e":function(t,e){},SOfZ:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF62lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAxOS0wNC0xOVQwOToxNDo0MCswODowMCIgeG1wOk1vZGlmeURhdGU9IjIwMTktMDQtMTlUMDk6MTU6NTYrMDg6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMTktMDQtMTlUMDk6MTU6NTYrMDg6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiBwaG90b3Nob3A6SUNDUHJvZmlsZT0ic1JHQiBJRUM2MTk2Ni0yLjEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ZTlmYzI0MjAtYWEwZC01YjQ4LThlZGEtNzNmNjY0Y2Y3MmZjIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6N2M3NzIxYTgtMTYxNC1iYjRlLWExMzEtYWI3YTIzOGVkNmIwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6NWQ3M2U1MmItZjRjMC0zZjQ2LThhZmUtMjg3OTlhNzExYmY3Ij4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1ZDczZTUyYi1mNGMwLTNmNDYtOGFmZS0yODc5OWE3MTFiZjciIHN0RXZ0OndoZW49IjIwMTktMDQtMTlUMDk6MTQ6NDArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOmU5ZmMyNDIwLWFhMGQtNWI0OC04ZWRhLTczZjY2NGNmNzJmYyIgc3RFdnQ6d2hlbj0iMjAxOS0wNC0xOVQwOToxNTo1NiswODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6HYKNgAAANqklEQVR4nO3de4wdZRnH8e8uXaFWYKWhlGYpolauVpqGuLSs2FaQIraFBNRU/uBSoIXI1hsmShurEq/0IIkVxf4DGKQqLgQbJEWkQGsEIaUpShHCdtNopXFbA7UcaP3jOYddlrPvnpkzM+/MvL9PskkvZ888O/P+ds7MvPNM245x1yOZOx2YB5wFnAhMBSY0eN2LwAvAJuBh4NGM6gtGV7Xi/P9x2ZQhNdcB1wInNfn699e+zgVWAgPAWuBHwN40CpS3a/ddQCAuA/qBW2k+HI10AStq7/WVBOqSMSgg6ZoJbMV+6x+X4PseCXwf2AHMT/B9ZQQFJD29wJPAqSkuowv4PfC9FJcRNAUkeeOB3wCrM1zmV7ED+IkZLjMICkiyDsPONl3kYdk9wBMoJIlSQJJ1L9DtcfkfAh7E9mKSAAUkOWuB83wXgZ0YuBto811IGSggybgIO5WbFwuAq30XUQYKSOsmYNc38uaHwCTfRRSdAtK6ZcAU30U0MAFY7ruIolNAWpfnQXgNjed4SZMUkNYsBo71XYRDJ3Cp7yKKTAFpzTW+C2jCVb4LKDIFJL4jgdm+i2jCDHSwHpsCEt8cinOtYY7vAopKAYnvNN8FRHCK7wKKSgGJb5rvAiL4gO8CikoBiW+y7wIi0DFITApIfEf4LiCCw30XUFQKSHzv8l1ABB2+CygqBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBwUEBEHBUTEQQERcVBARBzGpfCenbWvI4EjgH3AntrXrhSW58tB3wUE7GhsfHUC44G9DI2x/yS5oCQCcgywCFgAzAMOHeP1zwB9wO9qfy6qNt8FBGQGsBAbYzPGeO1+YAM2xvqAf7Wy4FY+Yi0CngD+CfwUOJ+xwwFwOrASeBroB74MHN5CHb5oD5KuCdjY6Af+io2ZscIBNgbPB27DxuYmbKzGEjUgbcAlwBbgXuDMuAuuOQ74AfAysALbbRaF9iDpOBwbC/3Y2Diuxffrxsbqs9jYjTTmo7z4aOCPwK+AD0dZSBPeC3wT2A7MSvi9pThmAc9jY+GohN/7NGzsbsTGclOaDcgsbK9xdvS6IjkaeBS4IeXlSP7cgG37ySkvpz6Wm/pF3ExAvgA8TvqF1x0CfBe4DzsLllc6BknGe4D7sW1+SEbLnIyN6d6xXugKSBtwK3BLMjVF9mlsd9jpaflj0TFI6zqBR4ALPC1/9UBH788GOnpH3ZaugPwCuC75miKZDjwGTPJcRyPag7RmIhaOmZ7rWIKN9YZGC8jXgMtSKSe6U4HNwBTfhYygPUh8U7DTrx/xXUjNZQMdvTc2+o9GAbkAuCndeiI7AVuhJ/guRFo2FduW03wXMsKqgY7eBSP/cWRATgbuIZ+/Hadie5K8rVhp3jQsHFN9FzKKuwc6ek8f/g/DA3II8FtsbkteTcJW8Cm+C5HITsG2Xd4+Kg83Hlg30NHbUf+H4QFZBpyUeUnRTcRO0fk+uJPmzcS22UTfhTThg8AX63+pB6QTWOWjmpg6gT9h0wgk37qxbdXpuY4oVgx09B4LQwG5gmL9AGCT2R7GZhBLPs3DttEE34VE9G7gahgKyCJvpbRmPLAemO+7EHmH+di2yfMxrcuFYAE5Cpjtt5aWdGDTUi72XYi85WJsm3SM9cIcmz7Q0fu+duAi8nlaN4px2EzNxb4LERZj2yKNu1WzdmE75TnQbQPuAJb6LiRgS7FtUPRfuHVntJPfizZxtAE/oYlZmpK4XmzdlyUcAJPbgeN9V5GC1dhNN5KNVdg6L5vJZduDDLcCuDnF99dsXnMz0HCiXwkcMw44zHcVKVqO3ZBzle9CSurnwJW+i0jRUe0k3Ecoh5YAd5J8k7wyfdaOqh2b1FrmcAAMtgMv+q4iA4uxiZhlOPXoWwe2LkO47rQ7lICANR67j+Z6d0ljh2JXxxf6LiQjr4QUELDpDw9R3OkPPk3A1l1Ic9+2tGOtVkLSg02gy3PHlLw5ApuR2+O7kIytbwcepPwH6iN1k++OKXnSia2r0O6/eRN4sL32h7s8F+PDdIpzE48vk7B1NN13IR481lWtvFY/9Xmn11L8KcJtoL5MwXoAhHp78y0wdG3gz4R3LFKX90YCPoTeRebxrmrlXnj7xbOl2MetEOW1FY0P07A9R6i/MN5k2AXQ4QHZhj3nI1T1ZmahfqQAO9bYRD47WWZlTVe18rf6X0ZOv7gBe1hJqELumDITO1sV8kmLp7Guom8ZGZBXgU9iD7QJVSfhdUzpwX7mkK8N9QPndFUrrw7/x0YT+F4BPkF410aGC6ljyjzsCnnROo8kaRCY21Wt7B75H6PNcH0B+Djwjm8ISAgdUxZiP2PI89N2A7O7qpV/NPpP1xTwLdgzCMv06Oaoytwx5WJsVm6RO4+0ahdwZle1sm20F4x1j8R27LP4ziSrKpgydky5HPuZkr5Hpkj6ge6uamW760XNrKCXsD3JS0lUVVD1jimX+y4kAUuxB8aEfMNX02O62d8g/diexJm2kmvDBlZv7e9Fuie9XuuNWOeRkEX6VBTlDrtdWOoeJszJa3WrKeYs4NWoHdIWYC4RTj617Rh3fdSFdAJ/AM6I+o0iHm0GzgP2DP/HrmrF+U1xDtIGgTm1BYoUwUbs2t6esV44UtyzGK9iu6oNMb9fJCsbgHOwMRtZK6f59jHU4l4kj+oXevfHfYNWz4NXgQVAX4vvI5K0ddjYrLbyJklcKHoDe4RCiLftSj7dBXwGG5stSepK6gHg88BtCb2fSFxrsLGYyHWqpKcaXIMVKOJDBXtac2LSmIuzDLgphfcVcfkW1qw8UWlNVvs6KRQrMorl2OMuEpdmM+cKdgP8j1NchsgyUvxYn/Z051tJ8IBJZJiD2NhK9Zg3i8cB3IX9MDoNLEn6HHZPS6qyumHml8AiWrxoI4KNofPJIByQ7R1lfdg90P/LcJlSLvuAT5Hh9Kasb7lcD5yL/aAiUdRbUj2U5UJ93JO8EWs1818Py5Zi2oONmY1ZL9jXTfubgLOwe0tEXAaBj2EN1jPns6vFFqyj37891iD5tguYjY0VL3y3fdmKrYCQ2wpJYzux5gqj9qzKgu+AgHWZOAvY4bsQyY0XyUmrqTwEBGxFdJODFSLebcfC0e+7EMhPQMB2qR8FnvNdiHjzLDCLHLW7zVNAwA7YZ+HxoEy8eQo7W/WK70KGy1tAwE7r9aC2QiHZDJxNDk/75zEgAHuxPkaPeK5D0rcBuwgYqy1P2vIaELAVNge1FSqzB7BfhK/5LmQ0eQ5I3ULUVqiM+rAZ3rlWhIBUsbZC63wXIolZh23TltvypK0IAQFrK3QJsNZ3IdKy27FtecB3Ic0oSkDqrkDPtyiyW4AlvouIomgBAbgWuNl3ERLZdyjg80mKGBCALwErfRchTVsOfMN3EXEUNSAAq1DvrSJYhrWAKqQiBwRsxV+B2grl0UFs2xS6FW0WbX/SthZ7/sMdhP3k1jw5AHyWEpyaL/oepC6xdvfSsvrjMAofDihPQCChB6ZIS/ZTsgcqlSkgMPTILbUVyt4+7FmApZo7V7aAgM0OnUtOZ4eW1F5snWfelidtZQwIDN1fsNd3IQEYpMT375Q1IGB3qPUAu30XUmK78dyWJ21lDgjYhjuTHN3jXCI7sXXrtS1P2soeELAuGd2o91aS+rFwbPddSNpCCAhYO6Fc9Fkqgfq6zEVbnrSFEhCwDdpNAL/1UrSNwPbGIQUE7Fik9J+bU7IFOyAP6ngutIDA0JmXp3wXUiD1M4KDnuvIXIgBAdvQZ1PSc/cJ20jA15RCDQjYlfa52JV3aWwDNn0k2FkJIQcEbP7QfEo2fyghfdi62e+7EJ9CDwjY7N9SzUBNQL0tT/AzoxUQU7+HQc9yH7q3phBtedKmgAw5AFxK2L231mDrQLcw1yggb1eK+6hjqmANFhSOYRSQxpYB3/ZdRIZWog4xDSkgo7uRMAbNcqyFkjRQhq4maapgpznL2O70IHAlYR9zjUl7kLGtoXy9tw6iExJNUUCas5bynPp8A/tZdEq7CfqI1bx1wOvArynueqtiDyTSzIEmaQ8STR921b2I0y80rSYGBSS69dgEviL13tLEzJgUkHg2YgOuCFPA96Kp/bEpIPFtJv83Ee3GatTNYTEpIK2p34aax95b9duLS9uzKgsKSOu2YQMxT40MdqIGFYlQQJKxnfy0wlGLowQpIMmpN1PzOTDrTfLyENRSUECStROYAdznYdkPAGcQWFuetCkgyduDXa1eTja3rL5eW9YFtWVLghSQ9FSwM1xbU1zG1toyKikuI2gKSLr+AkzHJgc+n+D7/h24pPbeTyb4vjKCApK+g8A9wInAEuB+4l1cHKx97+XASdjkyTJNwc+los5KLarba19gB/M9wMnA1NrX8dig7699vQw8h01teSbjWgX4P9u3NJ7Mr4v/AAAAAElFTkSuQmCC"},Sgsq:function(t,e){},Tkyx:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAECklEQVRoQ+1YTYscVRQ9t7rrzfiVP+B0dS8m09XjB4bgwoiaEFdRF0EiCiJ+QdS4SAKiuyQrQcQgGD9AjUQE0UU2UTdKgmICgighTldNIqSqou6dIHbVdF15NV1Np6bLevW6GxnpgqYX795z73nn1nuHImzwhzZ4/5gS+K8VnCrwv1bAqYkvJUE7CHdNiujERqg9V91OhnFaNs5xvKN1ZfXMJEhMCeTt6lQBxXmb2AjJ+u2a+aT8bwXRR4r9lA5TItC2xGECDjHx0ZYXHSxdRTHh4jw2dUPxIYCHDdBDC37nVFGqEgHXEscZSHYTwDnbD7cVAScK3DyzkCjwW2e5KL7dmG1QzCcAvkfGjpVA0owlXiXglbQR2w/XkXet2Z3g7m4GbgHRVgA39eJXwPwjAb+AKieb/t/fZAm5lriQ5Mljl+illtd5vYi0XFdSIAVyauZTIJISoxrT5vkrnUvpmls332CmA0pFiY82B0bx0tzM/KrBF5Nc5qftIDquglOaQKJEY7ZRjePrN/vhUp9YXbhgJOOi/BCWbS9spvFty9x6HZm/N7y//lDGKKvAMGDXmvmWe3NbpvDa7tF3Tb9zb9m8wfhSI5Qt5NTNZ8D0/igNgPhZ24s+0MXQJtCuV+8iNs7qFh7MY4q3tbzVczpY2gQca+YdgJ/TKbo+h961/c7zOlgjEBDfA1C6DxQaO2v74d0KcetCcgkkty/zfddIzXwktcWOJVYA3KhTdEjOVdsPkzvDscQeAnYxc6MfR/SD7YcvD6uVS8CpmadBtP2aJOYzdhDtWK6LVszoH6PjIGEQFhe8sJ3alizmsItz7STLeZZr4rEuoX9Oy7BVpo9vCzq/SotAFXbH0XiKwV1qSsuR2PBK5U5mvqGPz3w5zxCO8g78OWAVRuWyYvvhJh0QfQLDRkynA5nTG02ddG0Cbs18i4n26RTN5hDzsWYQvaiDpU/Amt3JiL/WKbqOAIz7hzlUFWxtAhK8jAPNa4YyzlSl6cGYkQgk57aOE007yDjSss3/6zGaB+bWxW651vTCk2mMjiPNOtFhuCqESingWOIzAHuSO8HgLbdejn5Oi5RyphkHeqFh3lGN6ac1LH7T9qP9Ks2XUsCxRABgLikBfNHywwezRdYcauUJgG8HIH+p1bgK4DxA55m6J4Y5z7YlThHwQA/zE9sPH1choaTAoK2ImfctBtHbKuDScsg4aRFU4pdq5gsG0bHeJh1p+eHhojwlAsn1TnQoBr23GISfFoGOsr5UE48a4L1kGK81vc5XRVhKBIpA8tals5Rrth9+rotRlDcxAtNvo0Vb31ufKpC3URt+hCSx3sUnX+JHFCeidNjERqh0J5oJUwKaGze2tKkCY9tKTaANr8A/O9eWQEl5zaUAAAAASUVORK5CYII="},"Tx+8":function(t,e){},"U/ZW":function(t,e){},"U6/B":function(t,e){},V6Zi:function(t,e,a){t.exports=a.p+"static/img/pcimg.bc2733b.png"},V9Sf:function(t,e){},"VJ+y":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB60lEQVRYR+2WPVbCQBSF70uRhEpdge5Al4A7wA5sxE5ohE6oqIgd2BA7tTF0ZgfqDnAHuoNYSVLwPBNITDC/GI5N0iWTzP3mvjtvQvjni/5ZHyVA6UDpQMiB+sVVlYh421vT0LVXT8MHqF9cHRDREQP3RLSzDQhm/iSgycyz6e31u9D4AWj1LImoKh4yYALYLxjig4Daav5nYzLcCwE02n3XegbO57Jsqrb9QkSHRUAw89tcUaqq49QIuBNzGpOhu3jfAQ/AFWQeG7rWrbd6ohxnf4Fg5oeprjUb7f4YwKU3VzLAEsL8UpTzim03QTTaCIK5+6Uo9xXbvgORa392gOWbM14sTvKGMxg2kqQnAEfrC0h34OcLi4DjHOEMhQ3AbpR7eQCWscgQzqiwxZUuPwDz51xRDszxwIoKpxe2Wmewq9r2e1ovyQUgaur1iAVwOZflbiicq7CpjjOSgBux6gWz2MaxDS0zQFCcgedVTf1wLjcMzwJh8zOTBJEJIEbcK2swnB7Yr7E4iFSAFPEsbSHRiUSAAsRTnYgFKFA8ESISYAvisRC/AOrh43g9VFlqnvZOKBNTXXM7pH8anrb7br8ObLW0CTcZ9yEeJ8NZCEDcNFq9DhNF9u5N1KK+IWbL0DVxNLtX+VdcOvANwsQzMIl2lNoAAAAASUVORK5CYII="},VNCp:function(t,e){},VXUi:function(t,e,a){"use strict";(function(t,e){var s,i=a("Zx67"),n=a.n(i),o=a("kiBT"),r=a.n(o),c=a("OvRC"),l=a.n(c),d=a("C4MV"),u=a.n(d),m=a("Zzip"),p=a.n(m),h=a("5QVw"),v=a.n(h),_=a("pFYg"),f=a.n(_);!function(s){if("object"==("undefined"==typeof exports?"undefined":f()(exports))&&void 0!==t)t.exports=s();else if("function"==typeof define&&a("nErl"))define([],s);else{("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this).Clipboard=s()}}(function(){return function t(e,a,i){function n(r,c){if(!a[r]){if(!e[r]){if(!c&&("function"==typeof s&&s))return s(r,!0);if(o)return o(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var d=a[r]={exports:{}};e[r][0].call(d.exports,function(t){return n(e[r][1][t]||t)},d,d.exports,t,e,a,i)}return a[r].exports}for(var o="function"==typeof s&&s,r=0;r<i.length;r++)n(i[r]);return n}({1:[function(t,e,a){var s=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=function(t,e){for(;t&&t.nodeType!==s;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},{}],2:[function(t,e,a){function s(t,e,a,s){return function(a){a.delegateTarget=i(a.target,e),a.delegateTarget&&s.call(t,a)}}var i=t("./closest");e.exports=function(t,e,a,i,n){var o=s.apply(this,arguments);return t.addEventListener(a,o,n),{destroy:function(){t.removeEventListener(a,o,n)}}}},{"./closest":1}],3:[function(t,e,a){a.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},a.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||a.node(t[0]))},a.string=function(t){return"string"==typeof t||t instanceof String},a.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,a){var s=t("./is"),i=t("delegate");e.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(a))throw new TypeError("Third argument must be a Function");if(s.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(s.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,a)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,a)})}}}(t,e,a);if(s.string(t))return function(t,e,a){return i(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(t,e,a){e.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),i=document.createRange();i.selectNodeContents(t),s.removeAllRanges(),s.addRange(i),e=s.toString()}return e}},{}],6:[function(t,e,a){function s(){}s.prototype={on:function(t,e,a){var s=this.e||(this.e={});return(s[t]||(s[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){function s(){i.off(t,s),e.apply(a,arguments)}var i=this;return s._=e,this.on(t,s,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),s=0,i=a.length;s<i;s++)a[s].fn.apply(a[s].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),s=a[t],i=[];if(s&&e)for(var n=0,o=s.length;n<o;n++)s[n].fn!==e&&s[n].fn._!==e&&i.push(s[n]);return i.length?a[t]=i:delete a[t],this}},e.exports=s},{}],7:[function(t,e,a){!function(s,i){if(void 0!==a)i(e,t("select"));else{var n={exports:{}};i(n,s.select),s.clipboardAction=n.exports}}(this,function(t,e){var a=function(t){return t&&t.__esModule?t:{default:t}}(e),s="function"==typeof v.a&&"symbol"==f()(p.a)?function(t){return void 0===t?"undefined":f()(t)}:function(t){return t&&"function"==typeof v.a&&t.constructor===v.a&&t!==v.a.prototype?"symbol":void 0===t?"undefined":f()(t)},i=function(){function t(t,e){for(var a=0;a<e.length;a++){var s=e[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),u()(t,s.key,s)}}return function(e,a,s){return a&&t(e.prototype,a),s&&t(e,s),e}}(),n=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var s=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=s+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":s(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=n})},{select:5}],8:[function(t,e,a){!function(s,i){if(void 0!==a)i(e,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{var n={exports:{}};i(n,s.clipboardAction,s.tinyEmitter,s.goodListener),s.clipboard=n.exports}}(this,function(t,e,a,s){function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var a="data-clipboard-"+t;if(e.hasAttribute(a))return e.getAttribute(a)}var c=i(e),d=i(a),m=i(s),h="function"==typeof v.a&&"symbol"==f()(p.a)?function(t){return void 0===t?"undefined":f()(t)}:function(t){return t&&"function"==typeof v.a&&t.constructor===v.a&&t!==v.a.prototype?"symbol":void 0===t?"undefined":f()(t)},_=function(){function t(t,e){for(var a=0;a<e.length;a++){var s=e[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),u()(t,s.key,s)}}return function(e,a,s){return a&&t(e.prototype,a),s&&t(e,s),e}}(),g=function(t){function e(t,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":f()(e))&&"function"!=typeof e?t:e}(this,(e.__proto__||n()(e)).call(this));return s.resolveOptions(a),s.listenClick(t),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":f()(e)));t.prototype=l()(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.a?r()(t,e):t.__proto__=e)}(e,d.default),_(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,m.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return o("action",t)}},{key:"defaultTarget",value:function(t){var e=o("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return o("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach(function(t){a=a&&!!document.queryCommandSupported(t)}),a}}]),e}();t.exports=g})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)})}).call(e,a("f1Eh")(t),a("DuR2"))},Vd7J:function(t,e){},VnHG:function(t,e){},W9St:function(t,e){},"WHr/":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAS1BMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/SN4DYOAAAAGHRSTlMAYQJQgmvXnusVcrys8kOx5Hm4Z97Kj1warcpjAAAAaklEQVQI12WOSQ6AIBRDPyKTODGo//4ntYAkGrtp36JN6afhst65TcuGIz+aKk4dRUXT8QSsM4JXKcLMShaWA4o7wk4MGc2sa4cWRsT4mBEWkh42K1UmonwvGypKHdX3VWifhd2cO6wYiG4EHQp6lZD/KgAAAABJRU5ErkJggg=="},WzZF:function(t,e){},XMTj:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAATlBMVEX///////////////////////////////8AAAD///////////////////////////////////////////////////////////////////9gZZ+ZAAAAGnRSTlNmc+aILwxh7ABlSlpCp9yWDSPEtX0fJHyAzD7oxIIAAADLSURBVCjPhZLbDoQgDEQpt4oKqLir/v+PbklrIDFm50UzB5hSqgaWs+Pk/TTaRQwGbg5KFGbXwMerTv57A8vLmyyDVT20VuD8E3hHYKafiJ0iGfOgHAVs0JEIG9XmlCWOac8oynvCmq/GClAboxHlS4DsqQJSPhPyzgrI9gI0QEoAWkC4gTa5AJRstID7qGwQrwvRZDlKwuNJKzk9cjiXWw7yhRyFy10CXRxSu2CCSBELt2TDThu35LWJ721/f6jn0/4ZhjY+IXTj8wMINAwO0TnmggAAAABJRU5ErkJggg=="},XPMo:function(t,e){},Xp0y:function(t,e){},YU8u:function(t,e){},Yg6k:function(t,e){},Yq4J:function(t,e){},Yv1x:function(t,e){},"Yvf/":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgEAYAAAAj6qa3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAACZFJREFUaN7tWGtUlOUWfvbHcIubKxFB8yhXJRXNo0dCVJalqMlBk4uMEi5U1BkvRwSN4QDhicHCQDPuJxXFwRgxwSyUvIU3WBaUAhqmiCSBWiQSBDOzzw+dsQNnlhdO66zW4fn3ve9+997P8+332+/7AX3oQx/+n0H/6wT0ITQyNHKDi4VF+19Mt4nKcnOxj0vwvIcHjPARoqyt4YwSzGtvhxmfR2JVFXsKqzm6sFC9tePPRuPS0pTKD9fH048//mEFWLBWahElmjiRmjmYNpw//6TrOBm7kNPSQmE0FC3Ll+cdSq2Rt+Xn/+EE0CLoZ+nkKOvZs9lfc1CIb2kRjaRj6r82N6vCAcDJCQCEczNn0mz2gc3SpRhF63HUzAxiSBHNTO2owuHQUEVAWoA8YNeu312AoOfW+sjWDBzInp27+F5wMC0T7Chl8mS25ROYYWND4fgevx47php2W1k7PC5OqVQqlUq1urdxxdVScfS1oUNZ0MRiQmEh4ul9Xj5mjHar0AKaQP1dXRUvpioSHG7c0K4T9Tawv58kP47NzQ12U0Tn3vh4XO4yxDiplJIohnKNjXGAlyIJIGAvpgNwAgB3d0OytnZ+q74eAKDMytLn/4250rKoaf37dx7gMhRVV9NCXCa5jQ1uIRyK2lou4EnskJCgsE5VJDjk5CwaEWYuq5s1S1UtGsXWlZW0ECC5jQ2Xci6brl79wGtEhNa/8KzEF62T5L9508lJ5IdNXYVffklLeA5Vh4cjCbbINTZ+3HpeSZ1kMn784+zaDZu3XO3f0oKZvBCrkpKwiC7AYsMGLsAHiG5ooHN0nA7t3Cl2XPWiLM3bO/dyVpZ8WGOj4IWpyNy9W+doKpfT1ldf7e7/qQUIypTkR5d4eqrrMVD407lzKMQUlLu4PLWC3hzEq1paHjwQBX0jLYua9vLLCz6UBMgGbtoU1CjJj2rct0+UZ1Ps7Ll7NwbTMSTW1eW9llouj0pKsoxStd0p9/ZGPySTRVMTN2rewGWxWCdwAt4XIr/4Qhevk75hX2vrZxbgwR6bMgWbYcPbSkp07ehZEU7H0LhgQdBACcnu1NcjkXPI/exZ+hzWWBITg3CcpO2BgQjmYDSJxdSBk7RdqQwqlSyJFnx8srKzsrOyu7pwCyPZ6do15FAs4vv10wkwDN7qG11dunj5qECrRvPUAgQ9t/Jz2Ro3Ny7luXyhqAjuyIebickzE9fiO/wM5yFDMA0rkfzCC0+6jL9FKw+YMEE3YIL7NPr0ac7WNPK60lIdsY18QigZM0ZntwNZ9NnFi9396f0I+vuFLdu4wcqKN5AYZw4epBT4wdzK6okJ3sBXKLh3jz/FCaxtaKAROISl7e24h0JEGBhAiVLYDR6MXMxB64ABT+pWuIMKzq+sBABMBfJ802ITCjZuBBD7b0I1USH87O1hg7nYDHA6vuCm8nL4YiTMnkAA0XnRu6KClBSkwJAD7e31ZjQMkbSlogJnuZIH7dwpKBAopB89undweufb8itX0A+mkDy0lfxm3WsPhfaXeEX62doapPNq0Y/e3qihA9S6YgWlYS+mu7v3qIAWHIXxgAHBNhExEYvMzPY0b8ndktvW1iP/i5qdhhaxsV1skNO558wZtaqj2Cjh8OHudj3OAQsNV9nEDB89WmOoGaH2rqyEL0bBXHi0VRbhE1jcvk25PJtapVJFXnpGgnz//ofpsc5sRFiYrM7OTjPOwECTMWgQH8R84ZeuLtVrdzJrG6uqHtf/F1RK7WRnQ0NpBi/DoIwMvII7yDI07F5hNIxfwsXISIUiPV1upL+d6q2o7gOaDzQd6kUhIT2IO8IKtTdvkj15UuCECQ+IK5Va4oEs5Wj28gp6TrJQtqaiQv2SSISsW7eYiQThwgX40gGYf/21aM0AS5eChgZxieSnaEdfX32J7Rub2ij32LGDhtJ5Nl67tofBUIzDfEtLZiK8lZkZ5CN1lZkFBPRaAFjhTxjt49NjvIlH8/vBwd1PUtq2KITzXV5w5Ah8YQXzsWP1RkyDMb9pa8ufQs3j8/O1FafP/Pty6yNGttnZ2srT67eDR8Nce9DpjQBr8DrG/mbPC7jC0VVVednp4kS7U6e6m/N8nOW6TZvwA2LhaGTUYz4TN2F39y68kAvT997TTTy0V//MJqqYxYv1JXiK4imeVComBCCsrk4vk3DY427//r0WgE/iBq4+esM4gUph4G+eH2Iqx3Eci0T0Iiwx3dMT9zkZrpcvI4pC+LyHB9vQHn7X3Z3mwxRv19SwNRkjx8KiRwb3NHmkGTRIX4LaOPDEFSgcHPQy2YdtONCzzT21AHQXIppx4oRuII4r2WH48Iezuo+mjX+1PyAIuI+TSDYw4H8I9nBMSspzS52YePzcuX3bUlsTVWVlGIXn+djNm7Sf/REQFtYjXhothuulS/oSHHT99sSuZLGYlmMIGvW/YTotOKBhx45eCwA39TJKTEqCLTbhu85OnKREzHF0FLtJd8vcAgO1Zsr9yv3x1NmJkTiLZWVlgKYICA0NVK4cL/t81iyxh9Qg6pBMBl98RCn+/t3DcAzaMO3qVVXNrysMx6end58PXClx/nudqyub4hKSt23Ty8AWGhbn5Sm++6BaLjlypNcC5Fllur+9sbaWcnCcmtev196rOZhPwyg7O/CMxPLNj2fM0DlwNyhSGQcE0GeUQH6trYIJ5eDlw4d5KC+ncwkJyEQQBopEKMQl3NdoYIQdcM/PN/TSiA1fmTSp+58b7aWG3sEIzaHSUgrHYoQ8OuI+elG4RbuKi1UNxm903Fuy5GmJa/HY/wHafgwzPo6ftm6lMViOI2ZmeB6FdDgnR5in/lhzesuWvdszQxPtqqt1/f8lA0FYOHKkehUpVBGCYDRPozSeW1m5pznDO56am+M4juNYEL4Na87r/GHyZPajzeS9bh3tgifm/If2+LAi2QtN2CGXW36i2nrnb3K57k7wewmgE2LGyrvRqUOGkAuZ8PDISHyFVyANCdH143fhhYwrV2DIg7G1ooLK6BgV1tfjn5SHTzs6MEETqSmytOSJtJXW29tTFrbj4qRJei9Vl/g9zGhrQwHVYO6ePfQWZ2tWJCUpFOnpmzdfu/ashJ9ZgO4I4RCOYxOTLieLkV3pU6dqlquLKHPKFJpJa3i7iwuMOJnmOTtDQT5c7OKCWkzHx6amMIcX1qnVMMU7MG9q4lDOQMX16+hP19Fw4QKyqZzST51S1xi9/ktCcbFSmeKR4tHe/t8i3Ic+9KEPfejDI/wL/ZYbFg1iHpAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDQtMjNUMDk6MTc6NDQrMDg6MDDR+PiPAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA0LTIzVDA5OjE3OjQ0KzA4OjAwoKVAMwAAAEd0RVh0c3ZnOmJhc2UtdXJpAGZpbGU6Ly8vaG9tZS9hZG1pbi9pY29uLWZvbnQvdG1wL2ljb25fam53MTA0dGZxbC93ZWliby5zdmfLMLjHAAAAAElFTkSuQmCC"},Zn7z:function(t,e){},"Zzt/":function(t,e){t.exports="data:image/png;base64,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"},b4ss:function(t,e){},"bR/Z":function(t,e){},bR5z:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAWlBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/Qd6LqaAAAAHXRSTlMAG/OvQyJw/eCsOUxVdx0VD/rWsogGA+nGXZlnv2iUMEIAAACuSURBVBjTZZHZEoMgDEWvKJRNEXdt8/+/WWPGVsfzwnAISy5gtHGWdmxfawhNSRf6hl2h6IZi6yjHSnBSCxRE3QThLbUahoeXQIKBO6Sa5/knS9jndot9Oa8xVFWIsSQBdOUplyEUejhkFtM1ENraEizZhW3VJu1HMAmOPJKRVj8iwY83E8a4ucHjRPOBHnekpa2VW/wain90qg61JK3SYW8hl1x5fkfmpp3RPP8CyIsYw2Ymn9wAAAAASUVORK5CYII="},bl2V:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAS1BMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uR0tFsOAAAAGHRSTlMAiZ+TQqo63k19GhNUDNWcYerl8Cxr/DCcuQq2AAAAmUlEQVQY031QSxbDIAjEXzRqNE3ayv1PWgXzdJFmFsIMI4LA8L6d2wYDPiPuABFRhEtz2GAtBd3FFSd8hnNgeXDuRA6lXpS4Kgk2KC3lkjlfgctWU7+DCXBRSLIrZl3Mgu4ZIl9IrBaLmArnCbTkx7VeHPU/cxs1WJyQ+qfEWYx3a7q7NdcuBtMmjvtZgwxwoRhR+3tj3vAXP0J5FbnqqLCIAAAAAElFTkSuQmCC"},bwJF:function(t,e){},cDSy:function(t,e){},cZOJ:function(t,e){},dF7N:function(t,e){t.exports="data:image/png;base64,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"},eNYF:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAYFBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/T////9/v92q/aEtPexz/pqpPXu9f73+//O4fz1+f6OuvhloPW71fuZwPicwvmmyPnZ6P3j7f3iVN0OAAAADXRSTlMAcE5a8alXHr534lmmr56IJgAAAMpJREFUKM+FklkWgjAMRasyqkknoJRx/7uUkIJV5Hg/32vGRgTyskgA7kWZi5g8hZ00sq7wwWPTL/DFhfUMDmRrfvgB1XkCgMEIQx1wQGNNpNtmDSkBACs1SJZlrypcpFIUZKDTuia91tohGYVIyAgvl8he4mokAthA5+08W++QDdgMqYfO+2bQMhhbqraVOE0o2zakCsVHVSNy9ZGLc7udchhwquN2aUBjK9yprOGdpDQ6RtDg6fkSz9d+/lHHr739OYb4fJL3+bwAaIEZ6KY4otAAAAAASUVORK5CYII="},ecRo:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAARCAMAAADXCB3qAAAAOVBMVEUAAABjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIXsFKSGAAAAEnRSTlMAMavjWNQM/XcCbJ8o3ry7h4kaOGOhAAAARElEQVQI143GORLAIAzAQAGGCVcO//+xwbhJmW0kvmL0NtVmDboEKMkmFbpuneyT+UOOTZi6TYbPALEKy636YOp1VngBBe8D31qsd70AAAAASUVORK5CYII="},f0hK:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4BAMAAADLSivhAAAAKlBMVEUAAABjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIVjcIWC/CsrAAAADXRSTlMAQdlwuZEPXC3tgKUdAjvnGAAAAvZJREFUWMPtls9r02AYx9tuS7Kth+6yiVAoExw7BAYDkTmhm91thYkbngKZgjj0ENhBL4OI3mSgiFDRwsCbsovzJBQGOwkWXNq6tvH7v/i2Tfq+Wd+++aEgYj5Q3vL0+fDkeZ8meRMxMTExMUXzN2Qs/B357iJuXI0qayBElfcA1P9IzyebhUFu64HkCXA5E8kG7Z+LaBwX3cuSgbWtQYpoJvxJocQLJ2EHkKswuPHDVm9VPr01h8r74O9rFs5URXuXhTCuwK6AW1r5WCioKHhZM1h5DKaCDY4rVcCjlWHkVJ3cvjmOfAd8Thl5dJis4TVnwpuATuUJGDLvsiXUh9w1C1ROw1JxzPsf/OTKo8hTmaykDQdlqj/WEbzgyiPIMbJ07cg10kW0mSR/meUrgA02SSm4rPjKWuOJ2mSTRtHHVy7nE9U2mzQJl5avTKYwbrNJ0tIHh+XQlVn8e7Znys2o8g6Ag6hyuoJa2DlTpAveJGV1lmFOKFPonFnCyZNgscLJ0u4iw3Io+Tz/hZycf9NhPZKcQpeGWBbPuRat50ddMv/YbndI776f9pUf82VZBbDiI0s2V1ZUdFgXyw/tezw5C7TmyccUyTIAjpwE5vTESRnvRHJ6y7rFkXd6L68HsIL1LLFJh85RrwJDuNuXnFWjSfQNP45coDlXmCTZOSbSL2L5MwpmP2nMLSihFkRWgQx99PZf18VG6MtOYcGN2oFkzSMfhKt83/MwyLtv33bou2oEP5xjEk5Dy2l3kyfx3SPv+cukVZjOYW3DG7cCyPso9Y6D0Nn4c9QCyBPAFfIX0VCncUpJJBM04MtSEcBNc1BuCGU2t64PyGdCmfAMBPtbGbjsxF9OuZhimfB0dfbomNzYsHQa90Emk2W4Dqf0WBBZ8XZUhVN6h0zcHxXLnoN/r/S2igw/X1LRLUBWAZY+pM8uhgwhxpA+u5gKhAyZ0PYUYbqzDjIDwkr39whkAeTCa3TD8+E1WtqILCfVV4mYmJiYmPP8AsjbrIrdW8rUAAAAAElFTkSuQmCC"},fBVc:function(t,e){},fICz:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJ1BMVEUAAADMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0PMQ0MHCI3RAAAADHRSTlMACcUuluOauqWP0d4EwCCcAAAAb0lEQVQI12NgYDCJOerMAARiZ4AgkYGBUQfEOCTAwHIGDBwYbM6sOnOm9MxhhjlnGnVOSJ05yRBz5phQY82ZowwgLeJAAsRoFAISQKkT4ok6QKk5ZwprjgEVA7UrnTnTDdQOMxBuBdxSsDNOA50BABDbQ8llsYEJAAAAAElFTkSuQmCC"},fwB8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5OThFQUM2RkMwOTIxMUU4OEE0NkE0NjMzM0E4OERBMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5OThFQUM3MEMwOTIxMUU4OEE0NkE0NjMzM0E4OERBMyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjk5OEVBQzZEQzA5MjExRTg4QTQ2QTQ2MzMzQTg4REEzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjk5OEVBQzZFQzA5MjExRTg4QTQ2QTQ2MzMzQTg4REEzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+bi5rHQAABspJREFUeNrsnWlMVFcU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"},fwGc:function(t,e){},gR8W:function(t,e){t.exports="data:image/png;base64,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k4/YCGRip7sPM55XIOGFQsba999w4qy8rt4J4NJlQXwoU/CjASD8PmDMZqNldlwPEJUlITYCWfPBy1slC1isDXIy1sD1YYVQ8t4pAM8gos/L7MWynfGWWJPGvdYc51zqjWWMikHFRiAiXjtffE1lOTYZyV1UlkDYncU9yaepDD4jqI9piseRn7IAAAKPSURBVHmpOWztcdMP+2zk31/efM9weceQER03gUgPoy8TQvSVQrv5axk569rF3YlXeGKd0iQCjq1y/7XqcDXFMfMKIrq5xMnc/Oyov9Z08AYYLFYCSeeLPwToAinvjPMLWetHUtxGAHYXb0Il70QQ0lhTVnPDI6yrMVvTPsz8BoHu9Q3c+/575qP6bjEw/bESSFvenWwAv5BebYxbCllryPvYxWai1UnveHFXYfB4IhotHbsOgDWrkulxAn7LnLzPyY56tQ5uNOSQsRKIOKQlAX5WmgnG04WsVVHFcblNpgmdPfsS85dozdHG4qv+ttXuwpOONzjg72B+2gd+nzDosXnTzReHa0G7IfLY+EUb1idAeSaL2XWyqdRQyZP1L5f/X+WOJRg7s8+7gmgMmHcm8M7l/w/h8YwZq0BYCua3CfQGCM/74OfIsJ4brlOysnxU0x6rO4ggIJ0vvgHQzoOREYUyoeUjFz6zcjti7MS+nwL7FhmGCfiWz2QSkQFiFyVy2fA9wHANMj4ukbGsNGLEe3FbNVvNxVuLPnEUyA0ATR1UILoSey2urViMETuBiDqxZJR+P3h2aFohY86JRQZ1EKEyEDuBrH3Muhygiwdg7t/WYoXKsDbe0AzEUiAiI215Mf3K3xEnSQG0hSgG5wNXd2esuha6buirZRg6H1uBDMNc6pBDYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MKAFEp9c6khCYEALJARStcn4MPD/AQrxOYx3wVIrAAAAAElFTkSuQmCC"},"gZR+":function(t,e){},gprh:function(t,e){},gulF:function(t,e){},h7mW:function(t,e){},hNBf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo3Mjg4MDdFNEY5RkQxMUU4OUEzQzg4OEFDRjRFQThDMyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo3Mjg4MDdFNUY5RkQxMUU4OUEzQzg4OEFDRjRFQThDMyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjcyODgwN0UyRjlGRDExRTg5QTNDODg4QUNGNEVBOEMzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjcyODgwN0UzRjlGRDExRTg5QTNDODg4QUNGNEVBOEMzIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+3X6piAAACYVJREFUeNrsXQ2QTVUc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"},hRk0:function(t,e){t.exports="data:image/png;base64,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"},iQH9:function(t,e){t.exports="data:image/png;base64,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"},jPPM:function(t,e){},jp0m:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAS1BMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uR0tFsOAAAAGHRSTlMAYQJQgmvXnusVcrys8kOx5Hm4Z97Kj1warcpjAAAAaklEQVQI12WOSQ6AIBRDPyKTODGo//4ntYAkGrtp36JN6afhst65TcuGIz+aKk4dRUXT8QSsM4JXKcLMShaWA4o7wk4MGc2sa4cWRsT4mBEWkh42K1UmonwvGypKHdX3VWifhd2cO6wYiG4EHQp6lZD/KgAAAABJRU5ErkJggg=="},jpwx:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAUVBMVEUAAADN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uTN1uQeTzdfAAAAGnRSTlMA3hvzsCJv/axDdjkFTFUdFQ/W5IjEYOmZpZGiFL4AAAClSURBVBjTZZFZEsMgCEAxBosal+wZ7n/QqjRTM3lfzhMQECpoSHFBjQ5BSCN3jKm6QfMDXS0xRyuQxJZA5mUCwUgsyuEjsGCAmtTneTYp+aqkw49D5Ar1+ojB2hDj3Rtwz1vuW0i49XJJIMxOMShe92rtnNFLwxmIPWSnpUA3hZlgihdtHm6wFvTwREa6ZnnFH2H4r0674Ghtp9zsa8nP7yCDUPgCyagWsV5rOogAAAAASUVORK5CYII="},kIoD:function(t,e){},lUBf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAZlBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/T////d6v1mofX3+/9fnfXK3/zi7f3o8v6BsveNufjw9v7X5vx0qva+2Puoyfltpfay0PrE2/tZmfSWvvh9IxqaAAAADXRSTlMAvR9wVfG+HnepIeJzaYYlQwAAANtJREFUKM+FktsSgyAMRGMrQm2hgNp6v/z/T9YkyFinTs+LzK6wJAQCUmVC63uictgjbzpykxBJ9Rfppl/1gev+f9+Xrhrtbo+kpS0NUg/sYA7nFoYpww0ALrQYzMaLnQso+r6j0bOhIPltJCA4+3iUAM1MQX/qwGb4hvTJRkMEY0S9851z40xHZaS3FerOFlhKR+GKyqgN0lhMaZ3H6+ZoNIYTWvNu1s1rUI4tiVVUc136wlTYEmriFIt4udq4tRTJbS+egU7bZVkPSk8e6nH2tP+HIY6PyOL4fAB0MRp5w/sWgwAAAABJRU5ErkJggg=="},lcOq:function(t,e){},lcPc:function(t,e){},mgS3:function(t,e){},nSYR:function(t,e){},"nV+V":function(t,e){},ne4K:function(t,e){},o7ou:function(t,e){},oBUw:function(t,e){},oaDN:function(t,e){t.exports="data:image/png;base64,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"},oq7i:function(t,e){},q6yu:function(t,e,a){t.exports=a.p+"static/img/weimg.4d9c9a1.jpg"},ruU9:function(t,e){},sk0h:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAPFBMVEX///////////////////////////8AAAD////////////////////////////////////////////////fNuleAAAAFHRSTlNmL9iGYsvdAOwMQlpK5yOinR95xcqEseMAAACYSURBVCjPfZJbEsMgCEXBYiLxkbTd/16LSjUfkvvBDJwZ0AuwdzGmSBQTshY64AOGDp7gTXATlT9Ayc4cmvIlCXZQQNRq1yaxZqUCbn2yU4XWjQX0uR5UW3/BDgwrIGVcA4S0BgniGkSgNSATmK3M4eZz7Q+qJe6lUkuGiUHkvxKGidP28Klx2j4X5bzUzzrZWu3jMZjn8wOv5wd8fRfgngAAAABJRU5ErkJggg=="},tHII:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAASFBMVEUAAABWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/RWl/SgjM4/AAAAF3RSTlMA7DqTf0Kqnk7eGhMMZ1fVLorlefoE1xriMXsAAACTSURBVBjTdY9JEoQgDEW/IoRJBru7cv+bdpFo4ULfggz8TFBiHG/OmERi3oHC3BNOPA9CEGOhbHxjn8rJ+q78FQkOYxZx/JQZS7SS+hv0O1jpd2gAFjqJ3Gh0JqlLnTuTVW0LzLWpX2HpK8OtXb30X2ismgLfqBlCuSf905n+6cwPlOTGxmUfcyjhormegehcwyt/boEUuSs+p40AAAAASUVORK5CYII="},tgkr:function(t,e){},uUAt:function(t,e){},ubpP:function(t,e){},"ufz/":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowNUJCMTg2RUVFRkQxMUU4OUMwMUY0OUVCNjU4QzVFQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowNUJCMTg2RkVFRkQxMUU4OUMwMUY0OUVCNjU4QzVFQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjA1QkIxODZDRUVGRDExRTg5QzAxRjQ5RUI2NThDNUVCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjA1QkIxODZERUVGRDExRTg5QzAxRjQ5RUI2NThDNUVCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+zyNZmAAAATxJREFUeNpi/J9i1c7AwJAGxMwMtAV/gXghI9DC/wx0BExA/I2O9n1jglpKNw+CLOOgo4UcLEDCkQ4JBp5wQBYeoMiI2UdJUg5KpXpQH9I6tTLCfHgByqFbtvhHx0TzF5YtbgExDxAvgEqA2F1QNi8Qx1MzH4KC8ysUv4JKgNhPoewvQHyHWl5kgZY0oIRzAohVoeIgtjwSW5xI8zYA8X1oqIAc/QeIuYDYDoi1YRb+hgqaI2nExSYEmoHZ5ByYlWrNA46u2Uc/AdnzkC2kVtF2DxxSqdbOUE+IQy2+CfUhPJVSC6wA+mYBEHdD410WiB9A2dLIcUgt8BjoGy5oCj8FjUsQDkMur0ElzVdoHFKc5KGVLKjU+gzEP4CYDYglkdR8ZaGSZQxo5uAykxtk4QQgTqBDjQEq0ZYBBBgAWBBIrYbG8LsAAAAASUVORK5CYII="},vrS1:function(t,e){t.exports="data:image/png;base64,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"},wSFB:function(t,e){},xN54:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgEAYAAAAj6qa3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB3FJREFUaN7tWGtQVEcW/s4FBImvKAtKiaLyEHAkpRiVSlSwIBFCsEzEjEFEauUxPMSoCY4iayGDbMASDYMoLkTe4KoYAhkFARWVgLICia6gqzwiz6AuosBwe38oU1uyUyAvU7V+/7r7nHvO993urnMaeIu3+L8Gva7DchbEgpiq6tSaZnm3zfLl3Oc4jSYrK/zCJmOFhQVuYDolTZ0KIclY9vjxMMVZNu/ZMxYJASU3NUGTTrGxZWVI4RtQUlj4OFT1TPtHMllO9WG7w3adnX84AVYZ+Gb7ZqurTzolr5xQ4u2NNXSBXfXzwyLMxoKZM4ecgTOyML65GebMk6JiYuT+ZKBaGxaWcVLqtJfa29+YAOsMfdq+qTA3507wv6hkJybiEJLxeN68kU4IFxCNr+rqaA/WwszFJdlbmi5pzM8fqXDcqxPrf/Vev+vesmWcRo+GSmtR0agR74U1vHBg+nS2F3NRLJMJNb1yxX7OziMVTrEDvvT1+NvOh6am/AyVa+RQXIwbUIXtuHGjRlwZ8qAF9+5uOLK5TN3GJuVY9PrQaYWFw/V5LogFsSDGcfw1FXdqiY3tl3gh0uhQdjan1WPBfM3MsIJ04b55MzJRiXae7y8g86FH7LPAQKzg3NhMExNcQgilxcUpdViJFhxVU0MgOVDniRMb2UYWxDQ0hksAEj72/nCnlp0dPJmA3H/8sV/FtNg5+vfSpUmHo6tDDl+71jsvbBQZil2vX4c/bKC7YEEfx1ZMhkFbW8o56T6J2+TJCj/NLQ5iPx0dOHbrYVxDQ78ZH8FJFPr7p0yUNkmKIiOHKgCHDuaLCheXgTrw9zk1xK5a1Tt23ipKD6g1MMAJWKHSyEip42VcxD8mThSWexfvtF66VDGf2bWSPbezG3DGPyEAzU5OQyXeCxIuF1WL9e/cgS4OYL2h4YA9wxAG95oaLMd1+GhrYwnSMX8AW9MDKWiUy5km1HC7tpYakY9z+vpIRhRCiBDE/Cjm5k02g7PlI/PyyIJ9ymmWluId3oH8GxvZu2TBvnn+PPVc9JQQ7ytXhi7AHpGhuKSjA1WwwemxY4dL2YGCueIysjIz4cnnspCICMrjPqE7s2ZhL8phaG+Pn9AJS0tLMASiXUdHcScEwwRXOjqYFv4Mp/v3yQMHmHtBAZ9KYk4lIyONoiiECgr6F8BPtFD8rL4ezViMYF3dEWf8ADfw9ydPqJ1EUPfw4C/wO5iWujrdok+4gv37IYU6C5g6dcjCboAmtpWUQJfX4D/w8Eh978i+/bfKyl614+CA0yi8e3e0iGMjvqLv7O3ZOmaCNfb25Euf0ZL4+OEi3gtKQAciFi0iW47jcoqLhee9Du5037SprwA6LJWKz5wZaf7kiFZ2dNMmBMMGnm5uqEQcukauwFGg98g40inSiI1dL/Ty3CVeu1YhgDy4S0V1T3w8KlkEbJ8+HfYEboLD5R9+YJZYxll1d+ND7GLr+v6J3jqC5dIjluDigp20kV2ztMQcTERVba2yz7M1TIR9WVl8C++ILIEATTiDgJiYPoaOmIdxHMfHUD2bFh29QdtTFsS0tbmMjOPb9tLvv7MwCmSNW7cON38mwzI+SSrFbzBjBgEBSg0zcB/TWltTm6OSQ2sTElLmRy0OvXD1KuLxNd3IzVXqdwzTKDoxMe38kY8k5ZWVpMMcecmxY8rMyQN6eDhlityT8+ku3by5TzP0RYRopdg5Lo5KYYwZrq6DZv6yhOXWqSyRd82ezbf0ZKnGK/+TCsH+ihV4LzKSMwcourqaL4aAbZdIaA8Oo2j8+D72iUhkvhUV9ABzKTk8nE2AJSa4upIvuvAvKyulgfKxAn+5fl1JN0gkjBFNEAd/+y0K4Ixn27a9tgC3YQzHe/fYn5gzlW7YQFMokNUXFQ1a0GEGO4B4fP/oEadkmaV4SJ9IArdvhxsCsOzSpdeOMAH2WNfTo2KMxbjdf48w2iAf5OA3uZzr17IQ0Tiur68Yv6zk8C6MwJWXYwHkOPc/Hi5qUId5enqA6qFu37q6gTZLo4YarER5VZVSAb6s9xqzO8fYGHfxGIZ6enQSu1Gfk4N/cufZ+wJBilTqL9lnbi7/ubmtatakSfwknOfcTU0JjOcKbWxoCUul+S96jLGGT56wGiyAYPja2CGjjbzoaHq60hehL477fPq1ka4uJ0G1qr9AkHz3u18lIplssPGEizxlu2dYW2MPN52/lZurqP1HG5nYgvaHD8c8VTNSizQ1HfUEXlyu4eGDvlwHi5dHl5+FJjz4+OO0mVI1SW5eXv93wDDjxeW6YwdMmAWzOnhwxAO+LPAYzy4gcPXqXuK9yyqjLYAir/zSzMsJMpmg6H2ND26VlCCVJZHzwoUYQzK0aGkNW6DZ6GB2ISGpW6JtQ/ViY19dHvUd8CpSJkZdCm3JzjY6q62u5mxmxq9hP8Pazg5HqAJro6Kgjx0UXlYGETppf0ODomR/eZZZCM4i4uLF3gIKq2GAk//1TpBENRQ6Z86b5jnqEDp4m4jfcXISZniPEbdlZr7pfN7iLf6g+A92NiAIcwrc4wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNC0yM1QwOToxNzo0NCswODowMNH4+I8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDQtMjNUMDk6MTc6NDQrMDg6MDCgpUAzAAAASHRFWHRzdmc6YmFzZS11cmkAZmlsZTovLy9ob21lL2FkbWluL2ljb24tZm9udC90bXAvaWNvbl9qbncxMDR0ZnFsL3dlY2hhdC5zdmcVc7/FAAAAAElFTkSuQmCC"},yR3R:function(t,e){},ylrw:function(t,e){},yoci:function(t,e){},zDwE:function(t,e){}},["NHnr"]);
//# sourceMappingURL=app.ebbff3e87405071a963c.js.map
|
const fs = require('fs')
const path = require('path')
module.exports = {
sampleFile,
samplePath,
tempFile,
tempPath,
}
function sampleFile (filename) {
return readFile(samplePath(filename))
}
function samplePath (filename) {
return resolve(filename, '../__samples__')
}
function tempFile (filename) {
return readFile(tempPath(filename))
}
function tempPath (filename) {
return resolve(filename, '../node_modules/.cache')
}
function readFile(filepath) {
return fs.readFileSync(
filepath
).toString()
}
function resolve(filename, dirpath) {
return path.resolve(
__dirname,
dirpath,
filename
)
}
|
import { Component } from 'inferno-component';
import { createElement } from 'inferno-create-element';
import { injectStylePrefixed } from './styletron-utils';
/**
* @class Provider
* @packagename styletron-inferno
* @description Provides a Styletron instance to descendant styled components via context
*
* @example
* // Server
* import StyletronServer from 'styletron-server';
* import { renderToString } from 'inferno-server';
* import { Provider } from 'styletron-inferno';
* import App from '../shared/components/app';
*
* function render() {
* const styletron = new StyletronServer();
* const root = renderToString(
* <Provider styletron={styletron}>
* <App/>
* </Provider>
* );
* const stylesheets = styletron.getStylesheetsHtml('my-custom-class');
* return `
* <!DOCTYPE html>
* <html>
* <head>
* ${stylesheets}
* </head>
* <body>
* <div id="root">${root}</div>
* </body>
* </html>
* `;
* }
*
* @example
* // Client
* import { render } from 'inferno';
* import StyletronClient from 'styletron-client';
* import { Provider } from 'styletron-inferno';
* import App from '../shared/components/app';
*
* function render() {
* const stylesheets = document.getElementsByClassName('my-custom-class');
* const styletron = new StyletronClient(stylesheets);
render((
* <Provider styletron={styletron}>
* <App/>
* </Provider>
* ), document.getElementsById('root'));
* }
*
* @property {object} styletron Styletron instance
* @property {InfernoElement} children Child nodes
* @extends InfernoComponent
*/
class StyletronProvider extends Component {
getChildContext() {
return {
styletron: this.styletron
};
}
constructor(props, context) {
super(props, context);
this.styletron = props.styletron;
}
render() {
return this.props.children;
}
}
function isType(value, type) {
return typeof value === type;
}
function isFunction(value) {
return isType(value, 'function');
}
function isObject(value) {
return isType(value, 'object');
}
function isString(value) {
return isType(value, 'string');
}
function isNil(value) {
return value === null || value === undefined; // eslint-disable-line no-undefined
}
function assign(target, source) {
for (const key in source) {
target[key] = source[key];
}
return target;
}
const STYLETRON_KEY = '__STYLETRON';
/**
* Helper function to create styled components
* @packagename styletron-inferno
* @param {string|function} name Tag name or component function/class
* @param {function|object} styles Style object or function that returns a style object
* @return {function} Styled component
*
* @example
* import { styled } from 'styletron-inferno';
*
* const Panel = styled('div', {
* backgroundColor: 'lightblue',
* fontSize: '12px'
* });
*
* <Panel>Hello World</Panel>
*
* @example
* import { styled } from 'styletron-inferno';
*
* const Panel = styled('div', props => ({
* backgroundColor: props.alert ? 'orange' : 'lightblue',
* fontSize: '12px'
* }));
*
* <Panel alert>Danger!</Panel>
*
* @example
* import { styled } from 'styletron-inferno';
*
* const DeluxePanel = styled(Panel, props => ({
* backgroundColor: props.alert ? 'red' : 'lime',
* boxShadow: '3px 3px 3px darkgray',
* color: 'white'
* }));
*
* <DeluxePanel>Bonjour Monde</DeluxePanel>
*
*
* @example with addClass
* import { styled } from 'styletron-inferno';
*
*
* const Test = styled('span', props => ({
* addClass: props.isActive ? 'active' : null,
* color: props.alert ? 'red' : 'lime',
* boxShadow: '3px 3px 3px darkgray',
* color: 'white'
* }));
*
* <Test isActive={true}>Bonjour Monde</Test>
* // or addClass use as attibute
* <Test isActive={true} addClass={props.isActive? 'active' : null'}>Bonjour Monde</Test>
*/
function styled$1(name, styles) {
// Styled component
if (name && name.hasOwnProperty(STYLETRON_KEY)) {
const component = name[STYLETRON_KEY];
const stylesArray = component.stylesArray.concat(styles);
return createStyledComponent(component.name, stylesArray); // Tag name or non-styled component
} else if (isString(name) || isFunction(name)) {
return createStyledComponent(name, [styles]);
}
throw new Error('`styled` takes either a DOM element name or a component');
}
function createStyledComponent(name, stylesArray) {
function StyledComponent(props, context) {
const newProps = assign({}, props);
const styles = resolveStyles(stylesArray, props, context);
const className = injectStylePrefixed(context.styletron, styles);
newProps.className = props.className ? `${props.className} ${className}` : props.class ? `${props.class} ${className}` : className;
if (props.addClass && newProps.className) newProps.className = `${newProps.className.replace(' ', ' ')} ${props.addClass}`;
if (styles && styles.addClass) {
newProps.className = `${newProps.className.trim()} ${styles.addClass}`;
}
if (isFunction(props.innerRef)) {
newProps.ref = props.innerRef;
delete newProps.innerRef;
}
return createElement(name, newProps);
}
StyledComponent[STYLETRON_KEY] = {
name,
stylesArray
};
return StyledComponent;
}
function resolveStyles(stylesArray, props, context) {
const resolvedStyles = {};
for (let i = 0, l = stylesArray.length, styles; i < l; i++) {
styles = stylesArray[i];
if (!isNil(styles)) {
if (isFunction(styles)) {
assign(resolvedStyles, styles(props, context));
} else if (isObject(styles)) {
assign(resolvedStyles, styles);
}
}
}
return resolvedStyles;
}
export { StyletronProvider as Provider, styled$1 as styled };
//# sourceMappingURL=index.es.js.map
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), _react.default.createElement("g", null, _react.default.createElement("path", {
d: "M19 3H5.01c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3.99 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2H10c-.55 0-1-.45-1-1s.45-1 1-1h3.01L13 13h-1c-.55 0-1-.45-1-1s.45-1 1-1h1l.01-2H10c-.55 0-.99-.45-.99-1s.44-1 .99-1h3.01c1.1 0 2 .9 2 2v1.5z"
}))), 'Looks3Rounded');
exports.default = _default;
|
module.exports = async function (context, myTimer) {
var timeStamp = new Date().toISOString();
if (myTimer.IsPastDue)
{
context.log('JavaScript is running late!');
}
context.log('JavaScript timer trigger function ran!', timeStamp);
};
|
var wee;
(function (wee) {
var TokenStream = (function () {
function TokenStream(tokens) {
this.tokens = tokens;
this.index = 0;
}
;
TokenStream.prototype.next = function () {
return this.tokens[this.index++];
};
TokenStream.prototype.peek = function () {
return this.tokens[this.index];
};
TokenStream.prototype.lookAhead = function (types) {
if (types instanceof Array) {
if (this.tokens.length - this.index < types.length)
return false;
for (var i = this.index, j = 0; i < this.index + types.length; i++, j++) {
var type = types[j];
if (!(this.tokens[i].type == type))
return false;
}
return true;
}
else {
if (this.index == this.tokens.length)
return false;
return this.tokens[this.index].type == types;
}
};
TokenStream.prototype.hasLeft = function (tokens) {
return tokens <= this.tokens.length - this.index;
};
return TokenStream;
}());
var ParserResult = (function () {
function ParserResult(instructions, labels, diagnostics) {
this.instructions = instructions;
this.labels = labels;
this.diagnostics = diagnostics;
}
;
return ParserResult;
}());
wee.ParserResult = ParserResult;
var AssemblerResult = (function () {
function AssemblerResult(code, instructions, labels, patches, diagnostics) {
this.code = code;
this.instructions = instructions;
this.labels = labels;
this.patches = patches;
this.diagnostics = diagnostics;
}
;
return AssemblerResult;
}());
wee.AssemblerResult = AssemblerResult;
var Assembler = (function () {
function Assembler() {
}
Assembler.prototype.assemble = function (source) {
var tokens = new wee.Tokenizer().tokenize(source);
var parserResult = this.parse(tokens);
return this.emit(parserResult.instructions, parserResult.labels, parserResult.diagnostics);
};
Assembler.prototype.parse = function (tokens) {
var instructions = new Array();
var diagnostics = new Array();
var stream = new TokenStream(tokens);
var labels = {};
while (true) {
var token = stream.next();
if (token.type == wee.TokenType.EndOfFile) {
break;
}
if (token.type == wee.TokenType.Identifier) {
if (!stream.lookAhead(wee.TokenType.Colon)) {
var otherToken = stream.next();
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, otherToken.range, "Expected a colon (:) after the label " + token.value + ", got " + otherToken.value));
break;
}
stream.next();
var label = new Label(token, instructions.length);
if (labels[token.value]) {
var otherLabel = labels[token.value];
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Label '" + token.value + " already defined on line " + otherLabel.token.range.start.line + "."));
break;
}
else {
labels[token.value] = label;
}
continue;
}
if (token.value == "byte" || token.value == "short" || token.value == "integer" || token.value == "float" || token.value == "string") {
if (!stream.hasLeft(1)) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Data definition is missing a value."));
break;
}
var literal = stream.next();
if ((token.value == "byte" || token.value == "short" || token.value == "integer") && literal.type != wee.TokenType.IntegerLiteral) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Defining " + token.value + " data requires an integer value (123, 0xff, 0b1101), got " + literal.value + "."));
break;
}
if (token.value == "float" && literal.type != wee.TokenType.FloatLiteral) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Defining " + token.value + " data requires a float value (123.456), got " + literal.value + "."));
break;
}
if (token.value == "string" && literal.type != wee.TokenType.StringLiteral) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Defining " + token.value + " data requires a string value (\"Hello world\"), got " + literal.value + "."));
break;
}
instructions.push(new Data(token, literal));
continue;
}
if (token.value == "halt") {
instructions.push(new Halt(token));
continue;
}
if (token.value == "cos_float" || token.value == "sin_float" ||
token.value == "sqrt_float" || token.value == "pow_float" ||
token.value == "convert_float_int" || token.value == "convert_int_float") {
if (!stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register])) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Arithmetic instruction " + token.value + " requires 2 register operands."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new ArithmeticInstruction(token, op1, op2, null));
continue;
}
if (token.value == "add" || token.value == "sub" || token.value == "mul" || token.value == "div" || token.value == "div_unsigned" ||
token.value == "remainder" || token.value == "remainder_unsigned" ||
token.value == "add_float" || token.value == "sub_float" || token.value == "mul_float" || token.value == "div_float" ||
token.value == "atan2_float" ||
token.value == "cmp" || token.value == "cmp_unsigned" || token.value == "fcmp") {
if (!stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register])) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Arithmetic instruction " + token.value + " requires 3 register operands."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
stream.next();
var op3 = stream.next();
instructions.push(new ArithmeticInstruction(token, op1, op2, op3));
continue;
}
if (token.value == "not") {
if (!stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register])) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Bit-wise instruction " + token.value + " requires 2 register operands."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new BitwiseInstruction(token, op1, op2, null));
continue;
}
if (token.value == "and" || token.value == "or" || token.value == "xor" ||
token.value == "shift_left" || token.value == "shift_right") {
if (!stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register])) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Bit-wise instruction " + token.value + " requires 2 register operands."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
stream.next();
var op3 = stream.next();
instructions.push(new BitwiseInstruction(token, op1, op2, op3));
continue;
}
if (token.value == "jump") {
if (!(stream.lookAhead(wee.TokenType.IntegerLiteral) || stream.lookAhead(wee.TokenType.Identifier))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Jump/branch instruction " + token.value + " requires an address as operand, e.g. 0xa000 or LABEL."));
break;
}
instructions.push(new JumpInstruction(token, stream.next(), null));
continue;
}
if (token.value == "jump_equal" || token.value == "jump_not_equal" || token.value == "jump_less" || token.value == "jump_greater" || token.value == "jump_less_equal" || token.value == "jump_greater_equal") {
if (!(stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) || stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Identifier]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Jump/branch instruction " + token.value + " requires one register operand holding the result of a comparison and an as address as the second operand, e.g. 0xa000 or LABEL."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new JumpInstruction(token, op1, op2));
continue;
}
if (token.value == "move") {
if (!(stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.FloatLiteral, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.Identifier, wee.TokenType.Coma, wee.TokenType.Register]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Memory instruction " + token.value + " requires two register operands, or an int/float literal and a register operand, or a label and a register operand."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new MemoryInstruction(token, op1, op2, null));
continue;
}
if (token.value == "load" || token.value == "load_byte" || token.value == "load_short") {
if (!(stream.lookAhead([wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.Identifier, wee.TokenType.Coma, wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.Register]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Memory instruction " + token.value + " requires and address as an int literal, label or register, an offset as an int literal, and a register."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
stream.next();
var op3 = stream.next();
instructions.push(new MemoryInstruction(token, op1, op2, op3));
continue;
}
if (token.value == "store" || token.value == "store_byte" || token.value == "store_short") {
if (!(stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Identifier, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Memory instruction " + token.value + " requires a register, an address as an int literal, label or register, and an offset as an int literal."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
stream.next();
var op3 = stream.next();
instructions.push(new MemoryInstruction(token, op1, op2, op3));
continue;
}
if (token.value == "push" || token.value == "call") {
if (!(stream.lookAhead(wee.TokenType.Register) || stream.lookAhead(wee.TokenType.IntegerLiteral) || stream.lookAhead(wee.TokenType.FloatLiteral) || stream.lookAhead(wee.TokenType.Identifier))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Stack/call operation " + token.value + " requires a register, integer or float literal or label as operand"));
break;
}
instructions.push(new StackOrCallInstruction(token, stream.next()));
continue;
}
if (token.value == "pop") {
if (!(stream.lookAhead(wee.TokenType.Register) || stream.lookAhead(wee.TokenType.IntegerLiteral))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Stack/call operation " + token.value + " requires a register or integer literal as operand"));
break;
}
instructions.push(new StackOrCallInstruction(token, stream.next()));
continue;
}
if (token.value == "stackalloc" || token.value == "return") {
if (!stream.lookAhead(wee.TokenType.IntegerLiteral)) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Stack/call operation " + token.value + " requires an integer literal as operand"));
break;
}
instructions.push(new StackOrCallInstruction(token, stream.next()));
continue;
}
if (token.value == "port_write") {
if (!(stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.FloatLiteral, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.Identifier, wee.TokenType.Coma, wee.TokenType.IntegerLiteral]) ||
stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Port operation " + token.value + " requires an integer or float literal or a label or a register as the first operand and an integer literal or a register as the second operand."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new PortInstruction(token, op1, op2));
continue;
}
if (token.value == "port_read") {
if (!(stream.lookAhead([wee.TokenType.IntegerLiteral, wee.TokenType.Coma, wee.TokenType.Register]) ||
stream.lookAhead([wee.TokenType.Register, wee.TokenType.Coma, wee.TokenType.Register]))) {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Port operation " + token.value + " requires an integer literal or register as the first operand, and a register as the second operand."));
break;
}
var op1 = stream.next();
stream.next();
var op2 = stream.next();
instructions.push(new PortInstruction(token, op1, op2));
continue;
}
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, token.range, "Expected a label, data definition or instruction, got " + token.value));
break;
}
return new ParserResult(instructions, labels, diagnostics);
};
Assembler.prototype.emit = function (instructions, labels, diagnostics) {
var buffer = new ArrayBuffer(16 * 1024 * 1024);
var view = new DataView(buffer);
var address = 0;
var patches = new Array();
for (var i = 0; i < instructions.length; i++) {
var instruction = instructions[i];
address = instruction.emit(view, address, patches, diagnostics);
}
for (var i = 0; i < patches.length; i++) {
var patch = patches[i];
var label = labels[patch.label.value];
if (label) {
var address_1 = instructions[label.instructionIndex].address;
view.setUint32(patch.address, address_1);
}
}
return new AssemblerResult(new Uint8Array(buffer), instructions, labels, patches, diagnostics);
};
Assembler.getRegisterIndex = function (reg) {
if (reg.type != wee.TokenType.Register)
throw new Error("Unexpected token type " + reg.type + "!");
if (reg.value == "pc")
return 14;
if (reg.value == "sp")
return 15;
var index = parseInt(reg.value.substr(1));
if (index < 0 || index > 15)
throw new Error("Unknown register name " + reg.value);
return index;
};
Assembler.encodeOpRegRegReg = function (op, reg1, reg2, reg3) {
return (op & 0x1f) |
((reg1 & 0xf) << 6) |
((reg2 & 0xf) << 10) |
((reg3 & 0xf) << 14);
};
Assembler.encodeOpRegNum = function (op, reg, num) {
return (op & 0x1f) |
((reg & 0xf) << 6) |
((num & 0x3fffff) << 10);
};
Assembler.encodeOpRegRegNum = function (op, reg1, reg2, num) {
return (op & 0x1f) |
((reg1 & 0xf) << 6) |
((reg2 & 0xf) << 10) |
((num & 0x3ffff) << 14);
};
return Assembler;
}());
wee.Assembler = Assembler;
var Patch = (function () {
function Patch(address, label) {
this.address = address;
this.label = label;
}
;
return Patch;
}());
wee.Patch = Patch;
var Label = (function () {
function Label(token, instructionIndex) {
this.token = token;
this.instructionIndex = instructionIndex;
}
;
return Label;
}());
wee.Label = Label;
;
var Data = (function () {
function Data(type, value) {
this.type = type;
this.value = value;
}
;
Data.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
if (this.type.value == "byte") {
view.setUint8(address++, this.value.value & 0xff);
return address;
}
if (this.type.value == "short") {
view.setUint16(address, this.value.value & 0xffff);
address += 2;
return address;
}
if (this.type.value == "integer") {
view.setUint32(address, this.value.value & 0xffffffff);
address += 4;
return address;
}
if (this.type.value == "float") {
view.setFloat32(address, this.value.value);
address += 4;
return address;
}
if (this.type.value == "string") {
var string = this.value.value;
for (var i = 0; i < string.length; i++) {
view.setUint8(address++, string.charCodeAt(i) & 0xff);
}
view.setUint8(address++, 0);
return address;
}
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.type.range, "Unknown data type " + this.type.value + "."));
};
return Data;
}());
var Halt = (function () {
function Halt(token) {
this.token = token;
}
;
Halt.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
view.setUint32(address, 0);
return address + 4;
};
return Halt;
}());
var ArithmeticInstruction = (function () {
function ArithmeticInstruction(operation, operand1, operand2, operand3) {
this.operation = operation;
this.operand1 = operand1;
this.operand2 = operand2;
this.operand3 = operand3;
}
;
ArithmeticInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
var op1 = Assembler.getRegisterIndex(this.operand1);
var op2 = Assembler.getRegisterIndex(this.operand2);
var op3 = this.operand3 ? Assembler.getRegisterIndex(this.operand3) : 0;
var opcode = 0;
if (this.operation.value == "add")
opcode = 0x01;
else if (this.operation.value == "sub")
opcode = 0x02;
else if (this.operation.value == "mul")
opcode = 0x03;
else if (this.operation.value == "div")
opcode = 0x04;
else if (this.operation.value == "div_unsigned")
opcode = 0x05;
else if (this.operation.value == "remainder")
opcode = 0x06;
else if (this.operation.value == "remainder_unsigned")
opcode = 0x07;
else if (this.operation.value == "add_float")
opcode = 0x08;
else if (this.operation.value == "sub_float")
opcode = 0x09;
else if (this.operation.value == "mul_float")
opcode = 0x0a;
else if (this.operation.value == "div_float")
opcode = 0x0b;
else if (this.operation.value == "cos_float")
opcode = 0x0c;
else if (this.operation.value == "sin_float")
opcode = 0x0d;
else if (this.operation.value == "atan2_float")
opcode = 0x0e;
else if (this.operation.value == "sqrt_float")
opcode = 0x0f;
else if (this.operation.value == "pow_float")
opcode = 0x10;
else if (this.operation.value == "convert_int_float")
opcode = 0x11;
else if (this.operation.value == "convert_float_int")
opcode = 0x12;
else if (this.operation.value == "cmp")
opcode = 0x13;
else if (this.operation.value == "cmp_unsigned")
opcode = 0x14;
else if (this.operation.value == "fcmp")
opcode = 0x15;
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Unknown arithmetic instruction " + this.operation.value));
return address;
}
view.setUint32(address, Assembler.encodeOpRegRegReg(opcode, op1, op2, op3));
return address + 4;
};
return ArithmeticInstruction;
}());
var BitwiseInstruction = (function () {
function BitwiseInstruction(operation, operand1, operand2, operand3) {
this.operation = operation;
this.operand1 = operand1;
this.operand2 = operand2;
this.operand3 = operand3;
}
;
BitwiseInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
var op1 = Assembler.getRegisterIndex(this.operand1);
var op2 = Assembler.getRegisterIndex(this.operand2);
var op3 = this.operand3 ? Assembler.getRegisterIndex(this.operand3) : 0;
var opcode = 0;
if (this.operation.value == "not")
opcode = 0x16;
else if (this.operation.value == "and")
opcode = 0x17;
else if (this.operation.value == "or")
opcode = 0x18;
else if (this.operation.value == "xor")
opcode = 0x19;
else if (this.operation.value == "shift_left")
opcode = 0x1a;
else if (this.operation.value == "shift_right")
opcode = 0x1b;
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Unknown bit-wise instruction " + this.operation.value));
return address;
}
view.setUint32(address, Assembler.encodeOpRegRegReg(opcode, op1, op2, op3));
return address + 4;
};
return BitwiseInstruction;
}());
var JumpInstruction = (function () {
function JumpInstruction(branchType, operand1, operand2) {
this.branchType = branchType;
this.operand1 = operand1;
this.operand2 = operand2;
}
;
JumpInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
if (this.branchType.value == "jump") {
view.setUint32(address, 0x1c);
address += 4;
if (this.operand1.type == wee.TokenType.IntegerLiteral) {
view.setUint32(address, this.operand1.value);
}
else {
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
return address + 4;
}
else {
var op1 = Assembler.getRegisterIndex(this.operand1);
var opcode = 0;
if (this.branchType.value == "jump_equal")
opcode = 0x1d;
else if (this.branchType.value == "jump_not_equal")
opcode = 0x1e;
else if (this.branchType.value == "jump_less")
opcode = 0x1f;
else if (this.branchType.value == "jump_greater")
opcode = 0x20;
else if (this.branchType.value == "jump_less_equal")
opcode = 0x21;
else if (this.branchType.value == "jump_greater_equal")
opcode = 0x22;
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.branchType.range, "Unknown jump/branch instruction " + this.branchType.value));
return address;
}
view.setUint32(address, Assembler.encodeOpRegNum(opcode, op1, 0));
address += 4;
if (this.operand2.type == wee.TokenType.IntegerLiteral) {
view.setUint32(address, this.operand2.value);
}
else {
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand2));
}
return address + 4;
}
};
return JumpInstruction;
}());
var MemoryInstruction = (function () {
function MemoryInstruction(operation, operand1, operand2, operand3) {
this.operation = operation;
this.operand1 = operand1;
this.operand2 = operand2;
this.operand3 = operand3;
}
;
MemoryInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
if (this.operation.value == "move") {
var op2 = Assembler.getRegisterIndex(this.operand2);
if (this.operand1.type == wee.TokenType.Register) {
var op1 = Assembler.getRegisterIndex(this.operand1);
view.setUint32(address, Assembler.encodeOpRegRegNum(0x23, op1, op2, 0));
}
else if (this.operand1.type == wee.TokenType.IntegerLiteral) {
var op1 = this.operand1.value;
view.setUint32(address, Assembler.encodeOpRegRegNum(0x24, 0, op2, 0));
address += 4;
view.setUint32(address, op1);
}
else if (this.operand1.type == wee.TokenType.FloatLiteral) {
var op1 = this.operand1.value;
view.setUint32(address, Assembler.encodeOpRegRegNum(0x24, 0, op2, 0));
address += 4;
view.setFloat32(address, op1);
}
else if (this.operand1.type == wee.TokenType.Identifier) {
view.setUint32(address, Assembler.encodeOpRegRegNum(0x24, 0, op2, 0));
address += 4;
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Memory instruction " + this.operation.value + " only operates on registers, float literals, integer litaterals or labels"));
return address;
}
}
else if (this.operation.value == "load" || this.operation.value == "load_byte" || this.operation.value == "load_short") {
var offset = this.operand2.value;
var op2 = Assembler.getRegisterIndex(this.operand3);
if (this.operand1.type == wee.TokenType.Register) {
var op1 = Assembler.getRegisterIndex(this.operand1);
var opcode = 0;
if (this.operation.value == "load")
opcode = 0x26;
else if (this.operation.value == "load_byte")
opcode = 0x2a;
else if (this.operation.value == "load_short")
opcode = 0x2e;
view.setUint32(address, Assembler.encodeOpRegRegNum(opcode, op1, op2, offset));
}
else if (this.operand1.type == wee.TokenType.IntegerLiteral || this.operand1.type == wee.TokenType.Identifier) {
var opcode = 0;
if (this.operation.value == "load")
opcode = 0x25;
else if (this.operation.value == "load_byte")
opcode = 0x29;
else if (this.operation.value == "load_short")
opcode = 0x2d;
view.setUint32(address, Assembler.encodeOpRegRegNum(opcode, 0, op2, offset));
address += 4;
if (this.operand1.type == wee.TokenType.IntegerLiteral) {
var op1 = this.operand1.value;
view.setUint32(address, op1);
}
else {
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Memory instruction " + this.operation.value + " only operates on registers, integer litaterals or labels"));
return address;
}
}
else if (this.operation.value == "store" || this.operation.value == "store_byte" || this.operation.value == "store_short") {
var offset = this.operand3.value;
var op1 = Assembler.getRegisterIndex(this.operand1);
if (this.operand2.type == wee.TokenType.Register) {
var op2 = Assembler.getRegisterIndex(this.operand2);
var opcode = 0;
if (this.operation.value == "store")
opcode = 0x28;
else if (this.operation.value == "store_byte")
opcode = 0x2c;
else if (this.operation.value == "store_short")
opcode = 0x30;
view.setUint32(address, Assembler.encodeOpRegRegNum(opcode, op1, op2, offset));
}
else if (this.operand2.type == wee.TokenType.IntegerLiteral || this.operand2.type == wee.TokenType.Identifier) {
var opcode = 0;
if (this.operation.value == "store")
opcode = 0x27;
else if (this.operation.value == "store_byte")
opcode = 0x2b;
else if (this.operation.value == "store_short")
opcode = 0x2f;
view.setUint32(address, Assembler.encodeOpRegRegNum(opcode, op1, 0, offset));
address += 4;
if (this.operand2.type == wee.TokenType.IntegerLiteral) {
var op2 = this.operand2.value;
view.setUint32(address, op2);
}
else {
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand2));
}
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Memory instruction " + this.operation.value + " only operates on registers, integer litaterals or labels"));
return address;
}
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Unknown memory instruction " + this.operation.value + "."));
return address;
}
return address + 4;
};
return MemoryInstruction;
}());
var StackOrCallInstruction = (function () {
function StackOrCallInstruction(operation, operand1) {
this.operation = operation;
this.operand1 = operand1;
}
;
StackOrCallInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
if (this.operation.value == "push") {
if (this.operand1.type == wee.TokenType.Register) {
var register = Assembler.getRegisterIndex(this.operand1);
view.setUint32(address, Assembler.encodeOpRegNum(0x32, register, 0));
}
else if (this.operand1.type == wee.TokenType.IntegerLiteral) {
view.setUint32(address, Assembler.encodeOpRegNum(0x31, 0, 0));
address += 4;
view.setUint32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.FloatLiteral) {
view.setUint32(address, Assembler.encodeOpRegNum(0x31, 0, 0));
address += 4;
view.setFloat32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.Identifier) {
view.setUint32(address, Assembler.encodeOpRegNum(0x31, 0, 0));
address += 4;
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
}
else if (this.operation.value == "stackalloc") {
view.setUint32(address, Assembler.encodeOpRegNum(0x33, 0, this.operand1.value));
}
else if (this.operation.value == "pop") {
if (this.operand1.type == wee.TokenType.Register) {
var register = Assembler.getRegisterIndex(this.operand1);
view.setUint32(address, Assembler.encodeOpRegNum(0x34, register, 0));
}
else {
view.setUint32(address, Assembler.encodeOpRegNum(0x35, 0, this.operand1.value));
}
}
else if (this.operation.value == "call") {
if (this.operand1.type == wee.TokenType.Register) {
var register = Assembler.getRegisterIndex(this.operand1);
view.setUint32(address, Assembler.encodeOpRegNum(0x37, register, 0));
}
else if (this.operand1.type == wee.TokenType.IntegerLiteral) {
view.setUint32(address, Assembler.encodeOpRegNum(0x36, 0, 0));
address += 4;
view.setUint32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.FloatLiteral) {
view.setUint32(address, Assembler.encodeOpRegNum(0x36, 0, 0));
address += 4;
view.setFloat32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.Identifier) {
view.setUint32(address, Assembler.encodeOpRegNum(0x36, 0, 0));
address += 4;
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
}
else if (this.operation.value == "return") {
view.setUint32(address, Assembler.encodeOpRegNum(0x38, 0, this.operand1.value));
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Unknown stack/call instruction " + this.operation.value));
return address;
}
return address + 4;
};
return StackOrCallInstruction;
}());
var PortInstruction = (function () {
function PortInstruction(operation, operand1, operand2) {
this.operation = operation;
this.operand1 = operand1;
this.operand2 = operand2;
}
;
PortInstruction.prototype.emit = function (view, address, patches, diagnostics) {
this.address = address;
if (this.operation.value == "port_write") {
if (this.operand2.type == wee.TokenType.IntegerLiteral) {
var portNumber = this.operand2.value;
if (this.operand1.type == wee.TokenType.Register) {
var register = Assembler.getRegisterIndex(this.operand1);
view.setUint32(address, Assembler.encodeOpRegRegNum(0x39, register, 0, portNumber));
}
else if (this.operand1.type == wee.TokenType.IntegerLiteral) {
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3a, 0, 0, portNumber));
address += 4;
view.setUint32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.FloatLiteral) {
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3a, 0, 0, portNumber));
address += 4;
view.setFloat32(address, this.operand1.value);
}
else if (this.operand1.type == wee.TokenType.Identifier) {
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3a, 0, 0, portNumber));
address += 4;
view.setUint32(address, 0xdeadbeaf);
patches.push(new Patch(address, this.operand1));
}
}
else {
var register1 = Assembler.getRegisterIndex(this.operand1);
var register2 = Assembler.getRegisterIndex(this.operand2);
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3b, register1, register2, 0));
}
}
else if (this.operation.value == "port_read") {
if (this.operand1.type == wee.TokenType.IntegerLiteral) {
var portNumber = this.operand1.value;
var register = Assembler.getRegisterIndex(this.operand2);
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3c, register, 0, portNumber));
}
else {
var register1 = Assembler.getRegisterIndex(this.operand1);
var register2 = Assembler.getRegisterIndex(this.operand2);
view.setUint32(address, Assembler.encodeOpRegRegNum(0x3d, register1, register2, 0));
}
}
else {
diagnostics.push(new wee.Diagnostic(wee.Severity.Error, this.operation.range, "Unknown port instruction " + this.operation.value));
return address;
}
return address + 4;
};
return PortInstruction;
}());
})(wee || (wee = {}));
var wee;
(function (wee) {
var Position = (function () {
function Position(line, column, index) {
if (line === void 0) { line = 0; }
if (column === void 0) { column = 0; }
if (index === void 0) { index = 0; }
this.line = line;
this.column = column;
this.index = index;
}
return Position;
}());
wee.Position = Position;
var Range = (function () {
function Range(source) {
this.source = source;
this.start = new Position();
this.end = new Position();
}
;
Range.prototype.length = function () {
return this.end.index - this.start.index;
};
return Range;
}());
wee.Range = Range;
var Severity;
(function (Severity) {
Severity[Severity["Debug"] = "Debug"] = "Debug";
Severity[Severity["Info"] = "Info"] = "Info";
Severity[Severity["Warning"] = "Warning"] = "Warning";
Severity[Severity["Error"] = "Error"] = "Error";
})(Severity = wee.Severity || (wee.Severity = {}));
var Diagnostic = (function () {
function Diagnostic(severity, range, message) {
this.severity = severity;
this.range = range;
this.message = message;
}
;
Diagnostic.prototype.toString = function () {
var lines = this.range.source.split(/\r?\n/);
var result = this.severity + " (" + this.range.start.line + "):" + this.range.start.column + ": " + this.message + "\n\n ";
var line = lines[this.range.start.line - 1];
result += line + "\n ";
var startColumn = this.range.start.column;
var endColumn = this.range.start.line != this.range.end.line ? line.length : this.range.end.column;
for (var i = 1; i <= line.length; i++) {
if (i >= startColumn && i < endColumn) {
result += "~";
}
else {
result += line.charAt(i - 1) == '\t' ? '\t' : ' ';
}
}
result += "\n";
return result;
};
return Diagnostic;
}());
wee.Diagnostic = Diagnostic;
})(wee || (wee = {}));
var wee;
(function (wee) {
var TokenType;
(function (TokenType) {
TokenType[TokenType["IntegerLiteral"] = "IntegerLiteral"] = "IntegerLiteral";
TokenType[TokenType["FloatLiteral"] = "FloatLiteral"] = "FloatLiteral";
TokenType[TokenType["StringLiteral"] = "StringLiteral"] = "StringLiteral";
TokenType[TokenType["Identifier"] = "Identifier"] = "Identifier";
TokenType[TokenType["Opcode"] = "Opcode"] = "Opcode";
TokenType[TokenType["Keyword"] = "Keyword"] = "Keyword";
TokenType[TokenType["Register"] = "Register"] = "Register";
TokenType[TokenType["Colon"] = "Colon"] = "Colon";
TokenType[TokenType["Coma"] = "Coma"] = "Coma";
TokenType[TokenType["EndOfFile"] = "EndOfFile"] = "EndOfFile";
})(TokenType = wee.TokenType || (wee.TokenType = {}));
var Token = (function () {
function Token(range, type, value) {
if (value === void 0) { value = null; }
this.range = range;
this.type = type;
this.value = value;
}
return Token;
}());
wee.Token = Token;
var CharacterStream = (function () {
function CharacterStream(source) {
this.source = source;
this.index = 0;
this.line = 1;
this.column = 1;
}
CharacterStream.prototype.peek = function () {
return this.source.charAt(this.index);
};
CharacterStream.prototype.next = function () {
var char = this.source.charAt(this.index);
this.index++;
this.column++;
if (char == "\n") {
this.line++;
this.column = 1;
}
return char;
};
CharacterStream.prototype.startRange = function () {
var range = new wee.Range(this.source);
range.start.line = this.line;
range.start.column = this.column;
range.start.index = this.index;
this.range = range;
};
CharacterStream.prototype.endRange = function () {
var range = this.range;
range.end.line = this.line;
range.end.column = this.column;
range.end.index = this.index;
this.range = null;
return range;
};
return CharacterStream;
}());
var OPCODES = [
"halt",
"add", "sub", "mul", "div", "div_unsigned", "remainder", "remainder_unsigned", "add_float", "sub_float", "mul_float", "div_float", "cos_float", "sin_float", "atan2_float", "sqrt_float", "pow_float", "convert_int_float", "convert_float_int", "cmp", "cmp_unsigned", "fcmp",
"not", "and", "or", "xor", "shift_left", "shift_right",
"jump", "jump_equal", "jump_not_equal", "jump_less", "jump_greater", "jump_less_equal", "jump_greater_equal",
"move", "load", "store", "load_byte", "store_byte", "load_short", "store_short",
"push", "stackalloc", "pop", "call", "return",
"port_write", "port_read"
];
var KEYWORDS = [
"byte", "short", "integer", "float", "string"
];
var REGISTERS = ["r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13", "pc", "sp"];
var Tokenizer = (function () {
function Tokenizer() {
}
Tokenizer.prototype.isDigit = function (char) {
return char >= '0' && char <= '9';
};
Tokenizer.prototype.isHexDigit = function (char) {
var lowerCase = char.toLowerCase();
return this.isDigit(char) || lowerCase >= 'a' && lowerCase <= 'f';
};
Tokenizer.prototype.isBinaryDigit = function (char) {
return char >= '0' && char <= '1';
};
Tokenizer.prototype.isAlpha = function (char) {
var lowerCase = char.toLowerCase();
return lowerCase >= 'a' && lowerCase <= 'z';
};
Tokenizer.prototype.isWhitespace = function (char) {
return char == ' ' || char == '\n' || char == '\r' || char == '\t';
};
Tokenizer.prototype.getIdentifierType = function (identifier) {
for (var i = 0; i < OPCODES.length; i++) {
if (identifier == OPCODES[i])
return TokenType.Opcode;
}
for (var i = 0; i < KEYWORDS.length; i++) {
if (identifier == KEYWORDS[i])
return TokenType.Keyword;
}
for (var i = 0; i < REGISTERS.length; i++) {
if (identifier == REGISTERS[i])
return TokenType.Register;
}
return TokenType.Identifier;
};
Tokenizer.prototype.tokenize = function (source) {
var tokens = new Array();
var stream = new CharacterStream(source);
while (true) {
stream.startRange();
var char = stream.next();
if (char.length == 0) {
tokens.push(new Token(stream.endRange(), TokenType.EndOfFile));
break;
}
if (this.isWhitespace(char)) {
while (this.isWhitespace(stream.peek())) {
stream.next();
}
stream.endRange();
continue;
}
if (char == ':') {
tokens.push(new Token(stream.endRange(), TokenType.Colon, ":"));
continue;
}
if (char == ',') {
tokens.push(new Token(stream.endRange(), TokenType.Coma, ","));
continue;
}
if (char == '0' && stream.peek() == 'x') {
stream.next();
var number = "";
while (this.isHexDigit(stream.peek())) {
number += stream.next();
}
if (number == "") {
throw new wee.Diagnostic(wee.Severity.Error, stream.endRange(), "Expected a hex number (0xffa12)");
}
tokens.push(new Token(stream.endRange(), TokenType.IntegerLiteral, parseInt(number, 16)));
continue;
}
if (char == '0' && stream.peek() == 'b') {
stream.next();
var number = "";
while (this.isBinaryDigit(stream.peek())) {
number += stream.next();
}
if (number == "") {
throw new wee.Diagnostic(wee.Severity.Error, stream.endRange(), "Expected a binary number (0b010111)");
}
tokens.push(new Token(stream.endRange(), TokenType.IntegerLiteral, parseInt(number, 2)));
continue;
}
if (char == '-' || this.isDigit(char)) {
var number = char;
var isFloat = false;
while (this.isDigit(stream.peek())) {
number += stream.next();
}
if (stream.peek() == '.') {
isFloat = true;
number += stream.next();
while (this.isDigit(stream.peek())) {
number += stream.next();
}
}
if (number == '-') {
throw new wee.Diagnostic(wee.Severity.Error, stream.endRange(), "Expected a negative number (-1234)");
}
tokens.push(new Token(stream.endRange(), isFloat ? TokenType.FloatLiteral : TokenType.IntegerLiteral, number));
continue;
}
if (char == '_' || this.isAlpha(char)) {
var identifier = char;
while (this.isAlpha(stream.peek()) || this.isDigit(stream.peek()) || stream.peek() == '_') {
identifier += stream.next();
}
tokens.push(new Token(stream.endRange(), this.getIdentifierType(identifier), identifier));
continue;
}
if (char == '"') {
var string = "";
while (true) {
char = stream.next();
if (char == '\\') {
var special = stream.next();
if (special == '\\') {
string += special;
}
else if (special == "n") {
string += "\n";
}
else if (special == "r") {
string += "\r";
}
else if (special == "t") {
string += "\t";
}
else if (special == "\"") {
string += '"';
}
else {
string += "\\" + special;
}
}
else if (char == "\"") {
break;
}
else if (char.length == 0) {
throw new wee.Diagnostic(wee.Severity.Error, stream.endRange(), "Expected closing \" character for string");
}
else {
string += char;
}
}
tokens.push(new Token(stream.endRange(), TokenType.StringLiteral, string));
continue;
}
if (char == '#') {
while (stream.peek() != '\n' && stream.peek().length > 0) {
stream.next();
}
continue;
}
throw new wee.Diagnostic(wee.Severity.Error, stream.endRange(), "Expected a colon (:), coma (,), number (123.2), identifier (myLabel) or keyword (move, r1)! Got '" + char + "'");
}
return tokens;
};
return Tokenizer;
}());
wee.Tokenizer = Tokenizer;
})(wee || (wee = {}));
var wee;
(function (wee) {
var tests;
(function (tests) {
var Address = (function () {
function Address(address) {
this.address = address;
}
;
Address.prototype.nextInt = function () {
var result = this.address;
this.address += 4;
return result;
};
Address.prototype.nextByte = function () {
var result = this.address;
this.address += 1;
return result;
};
Address.prototype.nextShort = function () {
var result = this.address;
this.address += 2;
return result;
};
return Address;
}());
function assert(expression, errorMessage) {
if (!expression) {
console.log(errorMessage);
throw errorMessage;
}
}
function runTests() {
testLexer();
testParser();
testAssembler();
}
tests.runTests = runTests;
function testLexer() {
try {
var tokenizer = new wee.Tokenizer();
console.log(tokenizer.tokenize("\n\t\t\t\tSTRING: \"This is a test.\\nWith a new line.\"\n\t\t\t\tINTEGER: 234234\n\t\t\t\tNEGATIVEINTEGER: -234234\n\t\t\t\tFLOAT: 2.3423\n\t\t\t\tNEGATIVEFLOAT: -324.3242\n\t\t\t\tBINARY: 0b0110101\n\t\t\t\tHEX: 0xffeeff\n\n\t\t\t\t# This is a comment\n\t\t\t\tload LABEL, r0\n\t\t\t\tmove 123,\n\t\t\t\t# eol comment\n\t\t\t\t_41546546"));
}
catch (e) {
var diagnostic = e;
console.log(diagnostic.toString());
}
}
function testParser() {
try {
var assembler = new wee.Assembler();
var parserResult = assembler.parse(new wee.Tokenizer().tokenize("\n\t\t\t\thelloWorld: string \"Hello world\"\n\t\t\t\tmove 10, r0\n\t\t\t\tmove 1, r1\n\t\t\t\tloop:\n\t\t\t\t\tsub r0, r1, r0\n\t\t\t\t\tmove 0, r2\n\t\t\t\t\tcmp r0, r2, r2\n\t\t\t\t\tjump_not_equal r2, loop\n\t\t\t\t# end loop\n\t\t\t\thalt\n\t\t\t"));
for (var i = 0; i < parserResult.diagnostics.length; i++) {
console.log(parserResult.diagnostics[i].toString());
}
}
catch (e) {
console.log(e);
}
}
function testAssembler() {
var assembler = new wee.Assembler();
var result = assembler.assemble("\n\t\t\tbyte 0\n\t\t\tbyte 1\n\t\t\tbyte 2\n\t\t\tbyte 3\n\t\t\tbyte -123\n\t\t\tshort 0xabcd\n\t\t\tshort -1234\n\t\t\tinteger 0xaabbccdd\n\t\t\tinteger -123456\n\t\t\tfloat 3.299999952316284\n\t\t\tstring \"Hello world\"\n\n\t\t\thalt\n\n\t\t\tadd sp, pc, r7\n\t\t\tsub r0, r1, r2\n\t\t\tmul r0, r1, r2\n\t\t\tdiv r0, r1, r2\n\t\t\tdiv_unsigned r0, r1, r2\n\t\t\tremainder r0, r1, r2\n\t\t\tremainder_unsigned r0, r1, r2\n\t\t\tadd_float r0, r1, r2\n\t\t\tsub_float r0, r1, r2\n\t\t\tmul_float r0, r1, r2\n\t\t\tdiv_float r0, r1, r2\n\t\t\tcos_float r0, r1\n\t\t\tsin_float r0, r1\n\t\t\tatan2_float r0, r1, r2\n\t\t\tsqrt_float r0, r1\n\t\t\tpow_float r0, r1\n\t\t\tconvert_int_float r0, r1\n\t\t\tconvert_float_int r0, r1\n\t\t\tcmp r0, r1, r2\n\t\t\tcmp_unsigned r0, r1, r2\n\t\t\tfcmp r0, r1, r2\n\n\t\t\tnot r0, r1\n\t\t\tand r0, r1, r2\n\t\t\tor r0, r1, r2\n\t\t\txor r0, r1, r2\n\t\t\tshift_left r0, r1, r2\n\t\t\tshift_right r0, r1, r2\n\n\t\t\tjump 0xffffffff\n\t\t\tjump -1\n\t\t\tTARGET_JMP: jump TARGET_JMP\n\t\t\tjump_equal r0, 1234\n\t\t\tTARGET_JMP_EQUAL: jump_equal r0, TARGET_JMP_EQUAL\n\t\t\tjump_not_equal r0, 1234\n\t\t\tTARGET_JMP_NOT_EQUAL: jump_not_equal r0, TARGET_JMP_NOT_EQUAL\n\t\t\tjump_less r0, 1234\n\t\t\tTARGET_JMP_LESS: jump_less r0, TARGET_JMP_LESS\n\t\t\tjump_greater r0, 1234\n\t\t\tTARGET_JMP_GREATER: jump_greater r0, TARGET_JMP_GREATER\n\t\t\tjump_less_equal r0, 1234\n\t\t\tTARGET_JMP_LESS_EQUAL: jump_less_equal r0, TARGET_JMP_LESS_EQUAL\n\t\t\tjump_greater_equal r0, 1234\n\t\t\tTARGET_JMP_GREATER_EQUAL: jump_greater_equal r0, TARGET_JMP_GREATER_EQUAL\n\n\t\t\tmove r0, r1\n\t\t\tmove -1234, r0\n\t\t\tmove 1.234, r0\n\t\t\tTARGET_MOVE: move TARGET_MOVE, r0\n\t\t\tload r0, 15, r1\n\t\t\tload 1234, 15, r1\n\t\t\tTARGET_LOAD: load TARGET_LOAD, 15, r1\n\t\t\tstore r0, r1, 15\n\t\t\tstore r0, 1234, 15\n\t\t\tTARGET_STORE: store r0, TARGET_STORE, 15\n\t\t\tload_byte r0, 15, r1\n\t\t\tload_byte 1234, 15, r1\n\t\t\tTARGET_LOAD_BYTE: load_byte TARGET_LOAD_BYTE, 15, r1\n\t\t\tstore_byte r0, r1, 15\n\t\t\tstore_byte r0, 1234, 15\n\t\t\tTARGET_STORE_BYTE: store_byte r0, TARGET_STORE_BYTE, 15\n\t\t\tload_short r0, 15, r1\n\t\t\tload_short 1234, 15, r1\n\t\t\tTARGET_LOAD_SHORT: load_short TARGET_LOAD_SHORT, 15, r1\n\t\t\tstore_short r0, r1, 15\n\t\t\tstore_short r0, 1234, 15\n\t\t\tTARGET_STORE_SHORT: store_short r0, TARGET_STORE_SHORT, 15\n\n\t\t\tpush 1234\n\t\t\tpush 1.234\n\t\t\tTARGET_PUSH: push TARGET_PUSH\n\t\t\tpush r0\n\t\t\tstackalloc 123\n\t\t\tpop r0\n\t\t\tpop 123\n\t\t\tcall 1234\n\t\t\tTARGET_CALL: call TARGET_CALL\n\t\t\tcall r2\n\t\t\treturn 123\n\n\t\t\tport_write r2, 123\n\t\t\tport_write 1234, 123\n\t\t\tport_write 1.234, 123\n\t\t\tTARGET_PORT_WRITE: port_write TARGET_PORT_WRITE, 123\n\t\t\tport_write r2, r3\n\t\t\tport_read 123, r3\n\t\t\tport_read r2, r3\n\t\t");
var memory = result.code;
if (result.diagnostics.length != 0) {
for (var i = 0; i < result.diagnostics.length; i++)
console.log(result.diagnostics[i].toString());
assert(false, "Error assembling test.");
}
var view = new DataView(memory.buffer);
var addr = new Address(0);
assert(view.getInt8(addr.nextByte()) == 0, "Expected 0");
assert(view.getInt8(addr.nextByte()) == 1, "Expected 1");
assert(view.getInt8(addr.nextByte()) == 2, "Expected 2");
assert(view.getInt8(addr.nextByte()) == 3, "Expected 3");
assert(view.getInt8(addr.nextByte()) == -123, "Expected -123");
assert(view.getUint16(addr.nextShort()) == 0xabcd, "Expected 0xabcd");
assert(view.getInt16(addr.nextShort()) == -1234, "Expected -1234");
assert(view.getUint32(addr.nextInt()) == 0xaabbccdd, "Expected 0xaabbccdd");
assert(view.getInt32(addr.nextInt()) == -123456, "Expected 123456");
assert(view.getFloat32(addr.nextInt()) == 3.299999952316284, "Expected 3.3");
var string = "Hello world";
for (var i = 0; i < string.length; i++) {
assert(view.getUint8(addr.nextByte()) == string.charCodeAt(i), "Expected " + string.charAt(i));
}
assert(view.getUint8(addr.nextByte()) == 0, "Expected 0");
assert(view.getUint32(addr.nextInt()) == 0, "Expected 0");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x01, 15, 14, 7), "Invalid add");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x02, 0, 1, 2), "Invalid sub");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x03, 0, 1, 2), "Invalid mul");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x04, 0, 1, 2), "Invalid div");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x05, 0, 1, 2), "Invalid div_unsigned");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x06, 0, 1, 2), "Invalid remainder");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x07, 0, 1, 2), "Invalid remainder_unsigned");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x08, 0, 1, 2), "Invalid add_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x09, 0, 1, 2), "Invalid sub_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0a, 0, 1, 2), "Invalid mul_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0b, 0, 1, 2), "Invalid div_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0c, 0, 1, 0), "Invalid cos_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0d, 0, 1, 0), "Invalid sin_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0e, 0, 1, 2), "Invalid atan2_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x0f, 0, 1, 0), "Invalid sqrt_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x10, 0, 1, 0), "Invalid pow_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x11, 0, 1, 0), "Invalid convert_int_float");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x12, 0, 1, 0), "Invalid convert_float_int");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x13, 0, 1, 2), "Invalid cmp");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x14, 0, 1, 2), "Invalid cmp_unsigned");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x15, 0, 1, 2), "Invalid fcmp");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x16, 0, 1, 0), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x17, 0, 1, 2), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x18, 0, 1, 2), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x19, 0, 1, 2), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1a, 0, 1, 2), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1b, 0, 1, 2), "Invalid not");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1c, 0, 0, 0), "Invalid jmp");
assert(view.getUint32(addr.nextInt()) == 0xffffffff, "Invalid jmp");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1c, 0, 0, 0), "Invalid jmp");
assert(view.getInt32(addr.nextInt()) == -1, "Invalid jmp");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1c, 0, 0, 0), "Invalid jmp");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1d, 0, 0, 0), "Invalid jmp_equal");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1d, 0, 0, 0), "Invalid jmp_equal");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1e, 0, 0, 0), "Invalid jmp_not_equal");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_not_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1e, 0, 0, 0), "Invalid jmp_not_equal");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_not_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1f, 0, 0, 0), "Invalid jmp_less");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_less");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x1f, 0, 0, 0), "Invalid jmp_less");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_less");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x20, 0, 0, 0), "Invalid jmp_greater");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_greater");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x20, 0, 0, 0), "Invalid jmp_greater");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_greater");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x21, 0, 0, 0), "Invalid jmp_less_equal");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_less_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x21, 0, 0, 0), "Invalid jmp_less_equal");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_less_eqaul");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x22, 0, 0, 0), "Invalid jmp_greater_equal");
assert(view.getInt32(addr.nextInt()) == 1234, "Invalid jmp_greater_equal");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegReg(0x22, 0, 0, 0), "Invalid jmp_greater_equal");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid jmp_greater_eqaul");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x23, 0, 1, 0), "Invalid move");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x24, 0, 0, 0), "Invalid move");
assert(view.getInt32(addr.nextInt()) == -1234, "Invalid move");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x24, 0, 0, 0), "Invalid move");
assert(view.getFloat32(addr.nextInt()) == 1.2339999675750732, "Invalid move");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x24, 0, 0, 0), "Invalid move");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid move");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x26, 0, 1, 15), "Invalid load");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x25, 0, 1, 15), "Invalid load");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid load");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x25, 0, 1, 15), "Invalid load");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid load");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x28, 0, 1, 15), "Invalid store");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x27, 0, 0, 15), "Invalid store");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid store");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x27, 0, 0, 15), "Invalid store");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid store");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2a, 0, 1, 15), "Invalid load_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x29, 0, 1, 15), "Invalid load_byte");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid load_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x29, 0, 1, 15), "Invalid load_byte");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid load_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2c, 0, 1, 15), "Invalid store_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2b, 0, 0, 15), "Invalid store_byte");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid store_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2b, 0, 0, 15), "Invalid store_byte");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid store_byte");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2e, 0, 1, 15), "Invalid load_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2d, 0, 1, 15), "Invalid load_short");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid load_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2d, 0, 1, 15), "Invalid load_short");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid load_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x30, 0, 1, 15), "Invalid store_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2f, 0, 0, 15), "Invalid store_short");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid store_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x2f, 0, 0, 15), "Invalid store_short");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid store_short");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x31, 0, 0), "Invalid push");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid push");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x31, 0, 0), "Invalid push");
assert(view.getFloat32(addr.nextInt()) == 1.2339999675750732, "Invalid push");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x31, 0, 0), "Invalid push");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid push");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x32, 0, 0), "Invalid push");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x33, 0, 123), "Invalid stackalloc");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x34, 0, 0), "Invalid pop");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x35, 0, 123), "Invalid pop");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x36, 0, 0), "Invalid call");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid call");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x36, 0, 0), "Invalid call");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid call");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x37, 2, 0), "Invalid call");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegNum(0x38, 0, 123), "Invalid call");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x39, 2, 0, 123), "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3a, 0, 0, 123), "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == 1234, "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3a, 0, 0, 123), "Invalid port_write");
assert(view.getFloat32(addr.nextInt()) == 1.2339999675750732, "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3a, 0, 0, 123), "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == addr.address - 8, "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3b, 2, 3, 0), "Invalid port_write");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3c, 3, 0, 123), "Invalid port_read");
assert(view.getUint32(addr.nextInt()) == wee.Assembler.encodeOpRegRegNum(0x3d, 2, 3, 0), "Invalid port_read");
console.log(memory);
}
})(tests = wee.tests || (wee.tests = {}));
})(wee || (wee = {}));
var wee;
(function (wee) {
var VirtualMachine = (function () {
function VirtualMachine() {
}
return VirtualMachine;
}());
wee.VirtualMachine = VirtualMachine;
})(wee || (wee = {}));
//# sourceMappingURL=wee.js.map
|
/*!
* dependencyLibs/inputmask.dependencyLib.min.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2018 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.0-beta.19
*/
!function(e){"function"==typeof define&&define.amd?define(["../global/window","../global/document"],e):"object"==typeof exports?module.exports=e(require("../global/window"),require("../global/document")):window.dependencyLib=e(window,document)}(function(e,t){function n(e){return null!=e&&e===e.window}function i(e){return e instanceof Element}function o(n){return n instanceof o?n:this instanceof o?void(void 0!==n&&null!==n&&n!==e&&(this[0]=n.nodeName?n:void 0!==n[0]&&n[0].nodeName?n[0]:t.querySelector(n),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new o(n)}return o.prototype={on:function(e,t){if(i(this[0])){var n=this[0].eventRegistry,o=this[0];for(var r=e.split(" "),a=0;a<r.length;a++){var l=r[a].split("."),s=l[0],f=l[1]||"global";c=s,u=f,o.addEventListener?o.addEventListener(c,t,!1):o.attachEvent&&o.attachEvent("on"+c,t),n[c]=n[c]||{},n[c][u]=n[c][u]||[],n[c][u].push(t)}}var c,u;return this},off:function(e,t){if(i(this[0])){var n=this[0].eventRegistry,o=this[0];function r(e,t,i){if(e in n==!0)if(o.removeEventListener?o.removeEventListener(e,i,!1):o.detachEvent&&o.detachEvent("on"+e,i),"global"===t)for(var r in n[e])n[e][r].splice(n[e][r].indexOf(i),1);else n[e][t].splice(n[e][t].indexOf(i),1)}function a(e,i){var o,r,a=[];if(e.length>0)if(void 0===t)for(o=0,r=n[e][i].length;o<r;o++)a.push({ev:e,namespace:i&&i.length>0?i:"global",handler:n[e][i][o]});else a.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var l in n)for(var s in n[l])if(s===i)if(void 0===t)for(o=0,r=n[l][s].length;o<r;o++)a.push({ev:l,namespace:s,handler:n[l][s][o]});else a.push({ev:l,namespace:s,handler:t});return a}for(var l=e.split(" "),s=0;s<l.length;s++)for(var f=l[s].split("."),c=a(f[0],f[1]),u=0,v=c.length;u<v;u++)r(c[u].ev,c[u].namespace,c[u].handler)}return this},trigger:function(e){if(i(this[0]))for(var n=this[0].eventRegistry,r=this[0],a="string"==typeof e?e.split(" "):[e.type],l=0;l<a.length;l++){var s=a[l].split("."),f=s[0],c=s[1]||"global";if(void 0!==t&&"global"===c){var u,v,d={bubbles:!0,cancelable:!0,detail:Array.prototype.slice.call(arguments,1)};if(t.createEvent){try{u=new CustomEvent(f,d)}catch(e){(u=t.createEvent("CustomEvent")).initCustomEvent(f,d.bubbles,d.cancelable,d.detail)}e.type&&o.extend(u,e),r.dispatchEvent(u)}else(u=t.createEventObject()).eventType=f,e.type&&o.extend(u,e),r.fireEvent("on"+u.eventType,u)}else if(void 0!==n[f])if(arguments[0]=arguments[0].type?arguments[0]:o.Event(arguments[0]),"global"===c)for(var p in n[f])for(v=0;v<n[f][p].length;v++)n[f][p][v].apply(r,arguments);else for(v=0;v<n[f][c].length;v++)n[f][c][v].apply(r,arguments)}return this}},o.isFunction=function(e){return"function"==typeof e},o.noop=function(){},o.isArray=Array.isArray,o.inArray=function(e,t,n){return null==t?-1:function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}(t,e)},o.valHooks=void 0,o.isPlainObject=function(e){return"object"==typeof e&&!e.nodeType&&!n(e)&&!(e.constructor&&!Object.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))},o.extend=function(){var e,t,n,i,r,a,l=arguments[0]||{},s=1,f=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[s]||{},s++),"object"==typeof l||o.isFunction(l)||(l={}),s===f&&(l=this,s--);s<f;s++)if(null!=(e=arguments[s]))for(t in e)n=l[t],l!==(i=e[t])&&(c&&i&&(o.isPlainObject(i)||(r=o.isArray(i)))?(r?(r=!1,a=n&&o.isArray(n)?n:[]):a=n&&o.isPlainObject(n)?n:{},l[t]=o.extend(c,a,i)):void 0!==i&&(l[t]=i));return l},o.each=function(e,t){var i,o,r,a=0;if(o="length"in(i=e)&&i.length,"function"!==(r=typeof i)&&!n(i)&&(1===i.nodeType&&o||"array"===r||0===o||"number"==typeof o&&o>0&&o-1 in i))for(var l=e.length;a<l&&!1!==t.call(e[a],a,e[a]);a++);else for(a in e)if(!1===t.call(e[a],a,e[a]))break;return e},o.data=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n},"function"==typeof e.CustomEvent?o.Event=e.CustomEvent:(o.Event=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=t.createEvent("CustomEvent");return i.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),i},o.Event.prototype=e.Event.prototype),o});
|
-function(){"use strict";var f;var h=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},k=function(a){return"gwd-page"==a.tagName.toLowerCase()||"gwd-page"==a.getAttribute("is")},l=function(a){if(k(a))return a;for(;a&&9!=a.nodeType;)if((a=a.parentElement)&&k(a))return a;return null};var m=function(a,b,d){var c;d?(c=document.createEvent("CustomEvent"),c.initCustomEvent(a,!0,!0,d)):(c=document.createEvent("Event"),c.initEvent(a,!0,!0));b.dispatchEvent(c);return c};function n(){this.i={}}n.prototype.add=function(a,b){var d="string"==typeof a?a:a.getString();this.i[d]||(this.i[d]=[]);this.i[d].push(b)};var p=function(a){var b=[],d="object"==typeof gwd&&"GwdId"in gwd,c;for(c in a.i)b.push(d?new gwd.GwdId(c):c);return b},q=function(a,b){return b?a.i["string"==typeof b?b:b.getString()]||[]:[]};function r(a,b){this.c=a;this.N=b;this.A=this.F.bind(this)}r.prototype.observe=function(a){if(a.nodeType==Node.ELEMENT_NODE)for(var b=p(this.c),d=0;d<b.length;d++){var c=t(b[d]);if(c&&h(a,c)){var e=q(this.c,b[d]);e&&e.forEach(function(a){c.addEventListener(a.event,this.A,!1)}.bind(this))}}};var u=function(a,b){if(b.nodeType==Node.ELEMENT_NODE)for(var d=p(a.c),c=0;c<d.length;c++){var e=t(d[c]);if(e&&h(b,e)){var g=q(a.c,d[c]);g&&g.forEach(function(a){e.removeEventListener(a.event,this.A,!1)}.bind(a))}}};
r.prototype.F=function(a){this.N(a)};var t=function(a){return"string"==typeof a?document.getElementById(a):a.getElement(document)};document.registerElement("gwd-metric-event");document.registerElement("gwd-metric-configuration");document.registerElement("gwd-exit");document.registerElement("gwd-timer");var v=function(){};goog.inherits(v,HTMLElement);f=v.prototype;
f.createdCallback=function(){document.body.style.opacity="0";this.I=this.T.bind(this);this.C=this.V.bind(this);this.J=this.U.bind(this);this.o=this.S.bind(this);this.m=this.R.bind(this);this.s=m.bind(null,"expandfinish",this);this.l=m.bind(null,"collapsefinish",this);this.A=this.F.bind(this);this.L=this.W.bind(this);this.M=this.X.bind(this);this.v=this.w=!1;this.G=[];this.u=!1;this.ba=this.hasAttribute("fullscreen");this.j=null;this.f=!1;this.B=window.innerHeight>=window.innerWidth?1:2;this.b=null};
f.attachedCallback=function(){Enabler.addEventListener(studio.events.StudioEvent.EXPAND_START,this.o);Enabler.addEventListener(studio.events.StudioEvent.COLLAPSE_START,this.m);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_START,this.o);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_START,this.m);Enabler.addEventListener(studio.events.StudioEvent.EXPAND_FINISH,this.s);Enabler.addEventListener(studio.events.StudioEvent.COLLAPSE_FINISH,this.l);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_FINISH,
this.s);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_FINISH,this.l);this.a=this.querySelector("[is=gwd-pagedeck]");this.a.addEventListener("pagetransitionend",this.L,!1);this.b=document.getElementById(this.getAttribute("data-provider"));var a=this.querySelector("gwd-metric-configuration"),b=new n;if(a)for(var a=Array.prototype.slice.call(a.getElementsByTagName("gwd-metric-event")),d=0;d<a.length;d++){var c=a[d],e=c.getAttribute("source");if(e){var g=c.getAttribute("exit"),
c={event:c.getAttribute("event"),Y:c.getAttribute("metric")||g,O:c.hasAttribute("cumulative"),exit:g};b.add(w(e),c)}}this.c=b;this.K=new r(this.c,this.A);window.addEventListener("resize",this.M,!1)};
f.detachedCallback=function(){Enabler.removeEventListener(studio.events.StudioEvent.INIT,this.I);Enabler.removeEventListener(studio.events.StudioEvent.VISIBLE,this.C);Enabler.removeEventListener(studio.events.StudioEvent.PAGE_LOADED,this.J);Enabler.removeEventListener(studio.events.StudioEvent.EXPAND_START,this.o);Enabler.removeEventListener(studio.events.StudioEvent.COLLAPSE_START,this.m);Enabler.removeEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_START,this.o);Enabler.removeEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_START,
this.m);Enabler.removeEventListener(studio.events.StudioEvent.EXPAND_FINISH,this.s);Enabler.removeEventListener(studio.events.StudioEvent.COLLAPSE_FINISH,this.l);Enabler.removeEventListener(studio.events.StudioEvent.FULLSCREEN_EXPAND_FINISH,this.s);Enabler.removeEventListener(studio.events.StudioEvent.FULLSCREEN_COLLAPSE_FINISH,this.l);this.a.removeEventListener("pagetransitionend",this.L,!1);window.removeEventListener("resize",this.M,!1)};
f.initAd=function(){this.u=!1;var a=this.I;Enabler.removeEventListener(studio.events.StudioEvent.INIT,a);Enabler.addEventListener(studio.events.StudioEvent.INIT,a);Enabler.isInitialized()&&a()};f.exit=function(a,b,d,c){Enabler.exit(a,b);("undefined"==typeof c||c)&&x(this);d&&this.goToPage()};f.exitOverride=function(a,b,d,c){Enabler.exitOverride(a,b);("undefined"==typeof c||c)&&x(this);d&&this.goToPage()};f.incrementCounter=function(a,b){Enabler.counter(a,b)};f.startTimer=function(a){Enabler.startTimer(a)};
f.stopTimer=function(a){Enabler.stopTimer(a)};f.reportManualClose=function(){Enabler.reportManualClose()};f.F=function(a){var b=a.target,d=w(b),c=d+": "+a.type,e;a:{e=q(this.c,d);for(var g=0;g<e.length;g++)if(e[g].event==a.type){e=e[g];break a}e=void 0}e.exit&&a.detail&&a.detail.url?(c=d+": "+e.exit,a.detail["exit-id"]&&(c=a.detail["exit-id"]),Enabler.exitOverride(c,a.detail.url),a.detail.handled=!0,a.detail.collapse&&this.goToPage()):(a=l(b))&&a.gwdIsActive()&&this.incrementCounter(e.Y||c,e.O)};
f.T=function(){if(this.hasAttribute("polite-load")){var a=this.J;Enabler.isPageLoaded()?a():Enabler.addEventListener(studio.events.StudioEvent.PAGE_LOADED,a)}else y(this.C)};var y=function(a){Enabler.isVisible()?a():Enabler.addEventListener(studio.events.StudioEvent.VISIBLE,a)};v.prototype.V=function(a){if(this.u)this.b&&z(this);else{var b;a&&(b=a.detail);a=this.aa.bind(this,b);this.b?this.b?(a=this.Z.bind(this,a),this.b.isDataLoaded()&&a(),this.b.addEventListener("ready",a)):a():a()}};
v.prototype.U=function(){y(this.C)};v.prototype.Z=function(a){z(this);a()};var z=function(a){var b=document.getElementsByTagName("gwd-data-binder");if(0<b.length){var b=b[0],d=a.b.getData();if(d){var c=a.a.getElementsBySelector("*"),c=c.concat(a.a.getPages());b.bindData(d,c)}}};v.prototype.aa=function(a){this.u||(this.u=!0,document.body.style.opacity="",m("adinitialized",this,a),this.goToPage())};
v.prototype.goToPage=function(a,b,d,c,e){var g=this.a.getPage(this.a.currentIndex);if(a=a?this.a.getPage(a):this.a.getDefaultPage())this.g=a.id,b&&(this.h={transition:b,duration:d,P:c,direction:e}),g&&a&&!this.w&&!g.hasAttribute("expanded")&&a.hasAttribute("expanded")?A(this):g&&a&&!this.v&&g.hasAttribute("expanded")&&!a.hasAttribute("expanded")?this.f?Enabler.requestFullscreenCollapse():Enabler.requestCollapse():(this.v=this.w=!1,this.D())};
var A=function(a){if(a.ba&&!1!==a.j)if(a.j)a.f=!0,Enabler.requestFullscreenExpand();else{var b=function(a){(this.j=!!a.supported)&&m("fullscreensupport",this);A(this);Enabler.removeEventListener(studio.events.StudioEvent.FULLSCREEN_SUPPORT,b)}.bind(a);Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_SUPPORT,b);Enabler.queryFullscreenSupport()}else Enabler.requestExpand()};f=v.prototype;
f.S=function(){m("expandstart",this);this.w=!0;this.f?Enabler.finishFullscreenExpand():Enabler.finishExpand();setTimeout(this.D.bind(this),30)};f.R=function(){m("collapsestart",this);this.v=!0;this.f?(Enabler.finishFullscreenCollapse(),this.f=!1):Enabler.finishCollapse();this.g||(this.reportManualClose(),this.g=this.a.getDefaultPage().id);setTimeout(this.D.bind(this),30)};
f.X=function(){if(!this.g){var a=window.innerHeight>=window.innerWidth?1:2;this.B!=a&&(this.B=a,(a=this.a.getPage(this.a.currentIndex))&&setTimeout(this.goToPage.bind(this,a.id),0))}};f.D=function(){if(this.g){this.B=window.innerHeight>=window.innerWidth?1:2;var a=this.a.getOrientationSpecificPage(this.B,this.g);this.h?this.a.goToPage(a.id,this.h.transition,this.h.duration,this.h.P,this.h.direction):this.a.goToPage(a.id);this.f&&a.classList.add("fs")}this.h=this.g=void 0};
f.W=function(a){this.v=this.w=!1;if(a.target==this.a){var b=a.detail;a=b.outgoingPage;b=b.incomingPage;if(a&&(u(this.K,a),(a=a.querySelectorAll("video"))&&0<a.length))for(this.H=[];this.G.length;)studio.video.Reporter.detach(this.G.shift());this.K.observe(b);if((a=b.querySelectorAll("video"))&&0<a.length){var b=studio.video&&studio.video.Reporter,d=this.$.bind(this);this.H=Array.prototype.slice.call(a);b?d():Enabler.loadModule(studio.module.ModuleId.VIDEO,d)}}};
f.$=function(){for(var a,b;this.H.length;)if(b=this.H.shift(),a=w(b))studio.video.Reporter.attach(a,b,b.autoplay),this.G.push(a)};var w=function(a){return"object"==typeof gwd&&"GwdId"in gwd?(new gwd.GwdId(a)).getString():"string"==typeof a?a:a.id},x=function(a){Array.prototype.slice.call(a.a.querySelectorAll("video, gwd-youtube, audio")).forEach(function(a){a.pause()})};v.prototype.attributeChangedCallback=null;document.registerElement("gwd-doubleclick",{prototype:v.prototype});}()
|
var xgpiops__selftest_8c =
[
[ "XGpioPs_SelfTest", "group__gpiops__v3__4.html#ga173133193aeba362fa0a5c6e7cdd8dfa", null ]
];
|
module.exports = {
babel: {
enableTypeScript: true
},
webpack: {
loadDlls: {
"react-vendor-dll": true
}
}
};
|
/* eslint no-use-before-define: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
// eslint-disable-next-line import/no-unresolved
import ReactDOMServer from 'react-dom/server';
// eslint-disable-next-line import/no-unresolved
import ShallowRenderer from 'react-test-renderer/shallow';
import { version as testRendererVersion } from 'react-test-renderer/package.json';
// eslint-disable-next-line import/no-unresolved
import TestUtils from 'react-dom/test-utils';
import semver from 'semver';
import checkPropTypes from 'prop-types/checkPropTypes';
import has from 'has';
import {
AsyncMode,
ConcurrentMode,
ContextConsumer,
ContextProvider,
Element,
ForwardRef,
Fragment,
isContextConsumer,
isContextProvider,
isElement,
isForwardRef,
isPortal,
isSuspense,
isValidElementType,
Lazy,
Memo,
Portal,
Profiler,
StrictMode,
Suspense,
} from 'react-is';
import { EnzymeAdapter } from 'enzyme';
import { typeOfNode } from 'enzyme/build/Utils';
import shallowEqual from 'enzyme-shallow-equal';
import {
displayNameOfNode,
elementToTree as utilElementToTree,
nodeTypeFromType as utilNodeTypeFromType,
mapNativeEventNames,
propFromEvent,
assertDomAvailable,
withSetStateAllowed,
createRenderWrapper,
createMountWrapper,
propsWithKeysAndRef,
ensureKeyOrUndefined,
simulateError,
wrap,
getMaskedContext,
getComponentStack,
RootFinder,
getNodeFromRootFinder,
wrapWithWrappingComponent,
getWrappingComponentMountRenderer,
compareNodeTypeOf,
spyMethod,
} from 'enzyme-adapter-utils';
import findCurrentFiberUsingSlowPath from './findCurrentFiberUsingSlowPath';
import detectFiberTags from './detectFiberTags';
const is164 = !!TestUtils.Simulate.touchStart; // 16.4+
const is165 = !!TestUtils.Simulate.auxClick; // 16.5+
const is166 = is165 && !React.unstable_AsyncMode; // 16.6+
const is168 = is166 && typeof TestUtils.act === 'function';
const hasShouldComponentUpdateBug = semver.satisfies(testRendererVersion, '< 16.8');
// Lazily populated if DOM is available.
let FiberTags = null;
function nodeAndSiblingsArray(nodeWithSibling) {
const array = [];
let node = nodeWithSibling;
while (node != null) {
array.push(node);
node = node.sibling;
}
return array;
}
function flatten(arr) {
const result = [];
const stack = [{ i: 0, array: arr }];
while (stack.length) {
const n = stack.pop();
while (n.i < n.array.length) {
const el = n.array[n.i];
n.i += 1;
if (Array.isArray(el)) {
stack.push(n);
stack.push({ i: 0, array: el });
break;
}
result.push(el);
}
}
return result;
}
function nodeTypeFromType(type) {
if (type === Portal) {
return 'portal';
}
return utilNodeTypeFromType(type);
}
function isMemo(type) {
return compareNodeTypeOf(type, Memo);
}
function isLazy(type) {
return compareNodeTypeOf(type, Lazy);
}
function unmemoType(type) {
return isMemo(type) ? type.type : type;
}
function transformSuspense(renderedEl, prerenderEl, { suspenseFallback }) {
if (!isSuspense(renderedEl)) {
return renderedEl;
}
let { children } = renderedEl.props;
if (suspenseFallback) {
const { fallback } = renderedEl.props;
children = replaceLazyWithFallback(children, fallback);
}
const {
propTypes,
defaultProps,
contextTypes,
contextType,
childContextTypes,
} = renderedEl.type;
const FakeSuspense = Object.assign(
isStateful(prerenderEl.type)
? class FakeSuspense extends prerenderEl.type {
render() {
const { type, props } = prerenderEl;
return React.createElement(
type,
{ ...props, ...this.props },
children,
);
}
}
: function FakeSuspense(props) { // eslint-disable-line prefer-arrow-callback
return React.createElement(
renderedEl.type,
{ ...renderedEl.props, ...props },
children,
);
},
{
propTypes,
defaultProps,
contextTypes,
contextType,
childContextTypes,
},
);
return React.createElement(FakeSuspense, null, children);
}
function elementToTree(el) {
if (!isPortal(el)) {
return utilElementToTree(el, elementToTree);
}
const { children, containerInfo } = el;
const props = { children, containerInfo };
return {
nodeType: 'portal',
type: Portal,
props,
key: ensureKeyOrUndefined(el.key),
ref: el.ref || null,
instance: null,
rendered: elementToTree(el.children),
};
}
function toTree(vnode) {
if (vnode == null) {
return null;
}
// TODO(lmr): I'm not really sure I understand whether or not this is what
// i should be doing, or if this is a hack for something i'm doing wrong
// somewhere else. Should talk to sebastian about this perhaps
const node = findCurrentFiberUsingSlowPath(vnode);
switch (node.tag) {
case FiberTags.HostRoot:
return childrenToTree(node.child);
case FiberTags.HostPortal: {
const {
stateNode: { containerInfo },
memoizedProps: children,
} = node;
const props = { containerInfo, children };
return {
nodeType: 'portal',
type: Portal,
props,
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: null,
rendered: childrenToTree(node.child),
};
}
case FiberTags.ClassComponent:
return {
nodeType: 'class',
type: node.type,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: node.stateNode,
rendered: childrenToTree(node.child),
};
case FiberTags.FunctionalComponent:
return {
nodeType: 'function',
type: node.type,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: null,
rendered: childrenToTree(node.child),
};
case FiberTags.MemoClass:
return {
nodeType: 'class',
type: node.elementType.type,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: node.stateNode,
rendered: childrenToTree(node.child.child),
};
case FiberTags.MemoSFC: {
let renderedNodes = flatten(nodeAndSiblingsArray(node.child).map(toTree));
if (renderedNodes.length === 0) {
renderedNodes = childrenToTree(node.memoizedProps.children);
}
return {
nodeType: 'function',
type: node.elementType,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: null,
rendered: renderedNodes,
};
}
case FiberTags.HostComponent: {
let renderedNodes = flatten(nodeAndSiblingsArray(node.child).map(toTree));
if (renderedNodes.length === 0) {
renderedNodes = [node.memoizedProps.children];
}
return {
nodeType: 'host',
type: node.type,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: node.stateNode,
rendered: renderedNodes,
};
}
case FiberTags.HostText:
return node.memoizedProps;
case FiberTags.Fragment:
case FiberTags.Mode:
case FiberTags.ContextProvider:
case FiberTags.ContextConsumer:
return childrenToTree(node.child);
case FiberTags.Profiler:
case FiberTags.ForwardRef: {
return {
nodeType: 'function',
type: node.type,
props: { ...node.pendingProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: null,
rendered: childrenToTree(node.child),
};
}
case FiberTags.Suspense: {
return {
nodeType: 'function',
type: Suspense,
props: { ...node.memoizedProps },
key: ensureKeyOrUndefined(node.key),
ref: node.ref,
instance: null,
rendered: childrenToTree(node.child),
};
}
case FiberTags.Lazy:
return childrenToTree(node.child);
default:
throw new Error(`Enzyme Internal Error: unknown node with tag ${node.tag}`);
}
}
function childrenToTree(node) {
if (!node) {
return null;
}
const children = nodeAndSiblingsArray(node);
if (children.length === 0) {
return null;
}
if (children.length === 1) {
return toTree(children[0]);
}
return flatten(children.map(toTree));
}
function nodeToHostNode(_node) {
// NOTE(lmr): node could be a function component
// which wont have an instance prop, but we can get the
// host node associated with its return value at that point.
// Although this breaks down if the return value is an array,
// as is possible with React 16.
let node = _node;
while (node && !Array.isArray(node) && node.instance === null) {
node = node.rendered;
}
// if the SFC returned null effectively, there is no host node.
if (!node) {
return null;
}
const mapper = (item) => {
if (item && item.instance) return ReactDOM.findDOMNode(item.instance);
return null;
};
if (Array.isArray(node)) {
return node.map(mapper);
}
if (Array.isArray(node.rendered) && node.nodeType === 'class') {
return node.rendered.map(mapper);
}
return mapper(node);
}
function replaceLazyWithFallback(node, fallback) {
if (!node) {
return null;
}
if (Array.isArray(node)) {
return node.map((el) => replaceLazyWithFallback(el, fallback));
}
if (isLazy(node.type)) {
return fallback;
}
return {
...node,
props: {
...node.props,
children: replaceLazyWithFallback(node.props.children, fallback),
},
};
}
const eventOptions = {
animation: true,
pointerEvents: is164,
auxClick: is165,
};
function getEmptyStateValue() {
// this handles a bug in React 16.0 - 16.2
// see https://github.com/facebook/react/commit/39be83565c65f9c522150e52375167568a2a1459
// also see https://github.com/facebook/react/pull/11965
// eslint-disable-next-line react/prefer-stateless-function
class EmptyState extends React.Component {
render() {
return null;
}
}
const testRenderer = new ShallowRenderer();
testRenderer.render(React.createElement(EmptyState));
return testRenderer._instance.state;
}
function wrapAct(fn) {
if (!is168) {
return fn();
}
let returnVal;
TestUtils.act(() => { returnVal = fn(); });
return returnVal;
}
function getProviderDefaultValue(Provider) {
// React stores references to the Provider's defaultValue differently across versions.
if ('_defaultValue' in Provider._context) {
return Provider._context._defaultValue;
}
if ('_currentValue' in Provider._context) {
return Provider._context._currentValue;
}
throw new Error('Enzyme Internal Error: can’t figure out how to get Provider’s default value');
}
function makeFakeElement(type) {
return { $$typeof: Element, type };
}
function isStateful(Component) {
return Component.prototype && (
Component.prototype.isReactComponent
|| Array.isArray(Component.__reactAutoBindPairs) // fallback for createClass components
);
}
class ReactSixteenAdapter extends EnzymeAdapter {
constructor() {
super();
const { lifecycles } = this.options;
this.options = {
...this.options,
enableComponentDidUpdateOnSetState: true, // TODO: remove, semver-major
legacyContextMode: 'parent',
lifecycles: {
...lifecycles,
componentDidUpdate: {
onSetState: true,
},
getDerivedStateFromProps: {
hasShouldComponentUpdateBug,
},
getSnapshotBeforeUpdate: true,
setState: {
skipsComponentDidUpdateOnNullish: true,
},
getChildContext: {
calledByRenderer: false,
},
getDerivedStateFromError: is166,
},
};
}
createMountRenderer(options) {
assertDomAvailable('mount');
if (has(options, 'suspenseFallback')) {
throw new TypeError('`suspenseFallback` is not supported by the `mount` renderer');
}
if (FiberTags === null) {
// Requires DOM.
FiberTags = detectFiberTags();
}
const { attachTo, hydrateIn, wrappingComponentProps } = options;
const domNode = hydrateIn || attachTo || global.document.createElement('div');
let instance = null;
const adapter = this;
return {
render(el, context, callback) {
return wrapAct(() => {
if (instance === null) {
const { type, props, ref } = el;
const wrapperProps = {
Component: type,
props,
wrappingComponentProps,
context,
...(ref && { refProp: ref }),
};
const ReactWrapperComponent = createMountWrapper(el, { ...options, adapter });
const wrappedEl = React.createElement(ReactWrapperComponent, wrapperProps);
instance = hydrateIn
? ReactDOM.hydrate(wrappedEl, domNode)
: ReactDOM.render(wrappedEl, domNode);
if (typeof callback === 'function') {
callback();
}
} else {
instance.setChildProps(el.props, context, callback);
}
});
},
unmount() {
ReactDOM.unmountComponentAtNode(domNode);
instance = null;
},
getNode() {
if (!instance) {
return null;
}
return getNodeFromRootFinder(
adapter.isCustomComponent,
toTree(instance._reactInternalFiber),
options,
);
},
simulateError(nodeHierarchy, rootNode, error) {
const isErrorBoundary = ({ instance: elInstance, type }) => {
if (is166 && type && type.getDerivedStateFromError) {
return true;
}
return elInstance && elInstance.componentDidCatch;
};
const {
instance: catchingInstance,
type: catchingType,
} = nodeHierarchy.find(isErrorBoundary) || {};
simulateError(
error,
catchingInstance,
rootNode,
nodeHierarchy,
nodeTypeFromType,
adapter.displayNameOfNode.bind(adapter),
is166 ? catchingType : undefined,
);
},
simulateEvent(node, event, mock) {
const mappedEvent = mapNativeEventNames(event, eventOptions);
const eventFn = TestUtils.Simulate[mappedEvent];
if (!eventFn) {
throw new TypeError(`ReactWrapper::simulate() event '${event}' does not exist`);
}
wrapAct(() => {
eventFn(adapter.nodeToHostNode(node), mock);
});
},
batchedUpdates(fn) {
return fn();
// return ReactDOM.unstable_batchedUpdates(fn);
},
getWrappingComponentRenderer() {
return {
...this,
...getWrappingComponentMountRenderer({
toTree: (inst) => toTree(inst._reactInternalFiber),
getMountWrapperInstance: () => instance,
}),
};
},
...(is168 && { wrapInvoke: wrapAct }),
};
}
createShallowRenderer(options = {}) {
const adapter = this;
const renderer = new ShallowRenderer();
const { suspenseFallback } = options;
if (typeof suspenseFallback !== 'undefined' && typeof suspenseFallback !== 'boolean') {
throw TypeError('`options.suspenseFallback` should be boolean or undefined');
}
let isDOM = false;
let cachedNode = null;
let lastComponent = null;
let wrappedComponent = null;
const sentinel = {};
// wrap memo components with a PureComponent, or a class component with sCU
const wrapPureComponent = (Component, compare) => {
if (!is166) {
throw new RangeError('this function should not be called in React < 16.6. Please report this!');
}
if (lastComponent !== Component) {
if (isStateful(Component)) {
wrappedComponent = class extends Component {}; // eslint-disable-line react/prefer-stateless-function
if (compare) {
wrappedComponent.prototype.shouldComponentUpdate = (nextProps) => !compare(this.props, nextProps);
} else {
wrappedComponent.prototype.isPureReactComponent = true;
}
} else {
let memoized = sentinel;
let prevProps;
wrappedComponent = function (props, ...args) {
const shouldUpdate = memoized === sentinel || (compare
? !compare(prevProps, props)
: !shallowEqual(prevProps, props)
);
if (shouldUpdate) {
memoized = Component({ ...Component.defaultProps, ...props }, ...args);
prevProps = props;
}
return memoized;
};
}
Object.assign(
wrappedComponent,
Component,
{ displayName: adapter.displayNameOfNode({ type: Component }) },
);
lastComponent = Component;
}
return wrappedComponent;
};
// Wrap functional components on versions prior to 16.5,
// to avoid inadvertently pass a `this` instance to it.
const wrapFunctionalComponent = (Component) => {
if (is166 && has(Component, 'defaultProps')) {
if (lastComponent !== Component) {
wrappedComponent = Object.assign(
// eslint-disable-next-line new-cap
(props, ...args) => Component({ ...Component.defaultProps, ...props }, ...args),
Component,
{ displayName: adapter.displayNameOfNode({ type: Component }) },
);
lastComponent = Component;
}
return wrappedComponent;
}
if (is165) {
return Component;
}
if (lastComponent !== Component) {
wrappedComponent = Object.assign(
(...args) => Component(...args), // eslint-disable-line new-cap
Component,
);
lastComponent = Component;
}
return wrappedComponent;
};
const renderElement = (elConfig, ...rest) => {
const renderedEl = renderer.render(elConfig, ...rest);
const typeIsExisted = !!(renderedEl && renderedEl.type);
if (is166 && typeIsExisted) {
const clonedEl = transformSuspense(renderedEl, elConfig, { suspenseFallback });
const elementIsChanged = clonedEl.type !== renderedEl.type;
if (elementIsChanged) {
return renderer.render({ ...elConfig, type: clonedEl.type }, ...rest);
}
}
return renderedEl;
};
return {
render(el, unmaskedContext, {
providerValues = new Map(),
} = {}) {
cachedNode = el;
/* eslint consistent-return: 0 */
if (typeof el.type === 'string') {
isDOM = true;
} else if (isContextProvider(el)) {
providerValues.set(el.type, el.props.value);
const MockProvider = Object.assign(
(props) => props.children,
el.type,
);
return withSetStateAllowed(() => renderElement({ ...el, type: MockProvider }));
} else if (isContextConsumer(el)) {
const Provider = adapter.getProviderFromConsumer(el.type);
const value = providerValues.has(Provider)
? providerValues.get(Provider)
: getProviderDefaultValue(Provider);
const MockConsumer = Object.assign(
(props) => props.children(value),
el.type,
);
return withSetStateAllowed(() => renderElement({ ...el, type: MockConsumer }));
} else {
isDOM = false;
let renderedEl = el;
if (isLazy(renderedEl)) {
throw TypeError('`React.lazy` is not supported by shallow rendering.');
}
renderedEl = transformSuspense(renderedEl, renderedEl, { suspenseFallback });
const { type: Component } = renderedEl;
const context = getMaskedContext(Component.contextTypes, unmaskedContext);
if (isMemo(el.type)) {
const { type: InnerComp, compare } = el.type;
return withSetStateAllowed(() => renderElement(
{ ...el, type: wrapPureComponent(InnerComp, compare) },
context,
));
}
const isComponentStateful = isStateful(Component);
if (!isComponentStateful && typeof Component === 'function') {
return withSetStateAllowed(() => renderElement(
{ ...renderedEl, type: wrapFunctionalComponent(Component) },
context,
));
}
if (isComponentStateful) {
if (
renderer._instance
&& el.props === renderer._instance.props
&& !shallowEqual(context, renderer._instance.context)
) {
const { restore } = spyMethod(
renderer,
'_updateClassComponent',
(originalMethod) => function _updateClassComponent(...args) {
const { props } = renderer._instance;
const clonedProps = { ...props };
renderer._instance.props = clonedProps;
const result = originalMethod.apply(renderer, args);
renderer._instance.props = props;
restore();
return result;
},
);
}
// fix react bug; see implementation of `getEmptyStateValue`
const emptyStateValue = getEmptyStateValue();
if (emptyStateValue) {
Object.defineProperty(Component.prototype, 'state', {
configurable: true,
enumerable: true,
get() {
return null;
},
set(value) {
if (value !== emptyStateValue) {
Object.defineProperty(this, 'state', {
configurable: true,
enumerable: true,
value,
writable: true,
});
}
return true;
},
});
}
}
return withSetStateAllowed(() => renderElement(renderedEl, context));
}
},
unmount() {
renderer.unmount();
},
getNode() {
if (isDOM) {
return elementToTree(cachedNode);
}
const output = renderer.getRenderOutput();
return {
nodeType: nodeTypeFromType(cachedNode.type),
type: cachedNode.type,
props: cachedNode.props,
key: ensureKeyOrUndefined(cachedNode.key),
ref: cachedNode.ref,
instance: renderer._instance,
rendered: Array.isArray(output)
? flatten(output).map((el) => elementToTree(el))
: elementToTree(output),
};
},
simulateError(nodeHierarchy, rootNode, error) {
simulateError(
error,
renderer._instance,
cachedNode,
nodeHierarchy.concat(cachedNode),
nodeTypeFromType,
adapter.displayNameOfNode.bind(adapter),
is166 ? cachedNode.type : undefined,
);
},
simulateEvent(node, event, ...args) {
const handler = node.props[propFromEvent(event, eventOptions)];
if (handler) {
withSetStateAllowed(() => {
// TODO(lmr): create/use synthetic events
// TODO(lmr): emulate React's event propagation
// ReactDOM.unstable_batchedUpdates(() => {
handler(...args);
// });
});
}
},
batchedUpdates(fn) {
return fn();
// return ReactDOM.unstable_batchedUpdates(fn);
},
checkPropTypes(typeSpecs, values, location, hierarchy) {
return checkPropTypes(
typeSpecs,
values,
location,
displayNameOfNode(cachedNode),
() => getComponentStack(hierarchy.concat([cachedNode])),
);
},
};
}
createStringRenderer(options) {
if (has(options, 'suspenseFallback')) {
throw new TypeError('`suspenseFallback` should not be specified in options of string renderer');
}
return {
render(el, context) {
if (options.context && (el.type.contextTypes || options.childContextTypes)) {
const childContextTypes = {
...(el.type.contextTypes || {}),
...options.childContextTypes,
};
const ContextWrapper = createRenderWrapper(el, context, childContextTypes);
return ReactDOMServer.renderToStaticMarkup(React.createElement(ContextWrapper));
}
return ReactDOMServer.renderToStaticMarkup(el);
},
};
}
// Provided a bag of options, return an `EnzymeRenderer`. Some options can be implementation
// specific, like `attach` etc. for React, but not part of this interface explicitly.
// eslint-disable-next-line class-methods-use-this
createRenderer(options) {
switch (options.mode) {
case EnzymeAdapter.MODES.MOUNT: return this.createMountRenderer(options);
case EnzymeAdapter.MODES.SHALLOW: return this.createShallowRenderer(options);
case EnzymeAdapter.MODES.STRING: return this.createStringRenderer(options);
default:
throw new Error(`Enzyme Internal Error: Unrecognized mode: ${options.mode}`);
}
}
wrap(element) {
return wrap(element);
}
// converts an RSTNode to the corresponding JSX Pragma Element. This will be needed
// in order to implement the `Wrapper.mount()` and `Wrapper.shallow()` methods, but should
// be pretty straightforward for people to implement.
// eslint-disable-next-line class-methods-use-this
nodeToElement(node) {
if (!node || typeof node !== 'object') return null;
const { type } = node;
return React.createElement(unmemoType(type), propsWithKeysAndRef(node));
}
// eslint-disable-next-line class-methods-use-this
matchesElementType(node, matchingType) {
if (!node) {
return node;
}
const { type } = node;
return unmemoType(type) === unmemoType(matchingType);
}
elementToNode(element) {
return elementToTree(element);
}
nodeToHostNode(node, supportsArray = false) {
const nodes = nodeToHostNode(node);
if (Array.isArray(nodes) && !supportsArray) {
return nodes[0];
}
return nodes;
}
displayNameOfNode(node) {
if (!node) return null;
const { type, $$typeof } = node;
const adapter = this;
const nodeType = type || $$typeof;
// newer node types may be undefined, so only test if the nodeType exists
if (nodeType) {
switch (nodeType) {
case (is166 ? ConcurrentMode : AsyncMode) || NaN: return is166 ? 'ConcurrentMode' : 'AsyncMode';
case Fragment || NaN: return 'Fragment';
case StrictMode || NaN: return 'StrictMode';
case Profiler || NaN: return 'Profiler';
case Portal || NaN: return 'Portal';
case Suspense || NaN: return 'Suspense';
default:
}
}
const $$typeofType = type && type.$$typeof;
switch ($$typeofType) {
case ContextConsumer || NaN: return 'ContextConsumer';
case ContextProvider || NaN: return 'ContextProvider';
case Memo || NaN: {
const nodeName = displayNameOfNode(node);
return typeof nodeName === 'string' ? nodeName : `Memo(${adapter.displayNameOfNode(type)})`;
}
case ForwardRef || NaN: {
if (type.displayName) {
return type.displayName;
}
const name = adapter.displayNameOfNode({ type: type.render });
return name ? `ForwardRef(${name})` : 'ForwardRef';
}
case Lazy || NaN: {
return 'lazy';
}
default: return displayNameOfNode(node);
}
}
isValidElement(element) {
return isElement(element);
}
isValidElementType(object) {
return !!object && isValidElementType(object);
}
isFragment(fragment) {
return typeOfNode(fragment) === Fragment;
}
isCustomComponent(type) {
const fakeElement = makeFakeElement(type);
return !!type && (
typeof type === 'function'
|| isForwardRef(fakeElement)
|| isContextProvider(fakeElement)
|| isContextConsumer(fakeElement)
|| isSuspense(fakeElement)
);
}
isContextConsumer(type) {
return !!type && isContextConsumer(makeFakeElement(type));
}
isCustomComponentElement(inst) {
if (!inst || !this.isValidElement(inst)) {
return false;
}
return this.isCustomComponent(inst.type);
}
getProviderFromConsumer(Consumer) {
// React stores references to the Provider on a Consumer differently across versions.
if (Consumer) {
let Provider;
if (Consumer._context) { // check this first, to avoid a deprecation warning
({ Provider } = Consumer._context);
} else if (Consumer.Provider) {
({ Provider } = Consumer);
}
if (Provider) {
return Provider;
}
}
throw new Error('Enzyme Internal Error: can’t figure out how to get Provider from Consumer');
}
createElement(...args) {
return React.createElement(...args);
}
wrapWithWrappingComponent(node, options) {
return {
RootFinder,
node: wrapWithWrappingComponent(React.createElement, node, options),
};
}
}
module.exports = ReactSixteenAdapter;
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { registerGrokSimulateRoute } from './register_grok_simulate_route';
export function registerGrokdebuggerRoutes(server) {
registerGrokSimulateRoute(server);
}
|
const getFrontendHandler = require('./getFrontEndHandler');
const AMPLIFY_FRONTEND_ANDROID_CONFIG_KEY = 'amplify-frontend-android';
function getAndroidResDir(context) {
// XXX: create a util function in CLI core and use it
const { amplify } = context;
const frontEndHandler = getFrontendHandler(context);
if (frontEndHandler !== 'android') {
throw new Error('Not an android project');
}
const config = amplify.getProjectConfig();
const frontendConfig = config[AMPLIFY_FRONTEND_ANDROID_CONFIG_KEY];
return frontendConfig.config.ResDir;
}
module.exports = getAndroidResDir;
|
/**
* gleipnir.js - Gleipnir.js - a library for UI programming
* @version v0.0.1
* @link
* @license Apache 2.0
*/
var Gleipnir = Gleipnir || {}; Gleipnir["Store"] =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(4);
/***/ },
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.Basic = Basic;
/**
* Component should control its resources only via methods
* defined here. This is just a empty interface that required
* by BasicComponent. In this way, we could see how to implement
* the same architecture for real components.
**/
function Basic() {
// Resources include DOM elements and other stuff that component
// need to require them from the 'outside'. So even it's only a string,
// if the one comes from System settings or XHR, it should be a resource
// item and to be managed here.
this.resources = {};
}
/***/ }
/******/ ]);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAgNjgzYzcyYWJiOGUxNDNhMTM4MGM/N2MyNyoqKiIsIndlYnBhY2s6Ly8vLi9idWlsZF9zdGFnZS9zcmMvc3RvcmUvYmFzaWMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSx1QkFBZTtBQUNmO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOzs7QUFHQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBOzs7Ozs7Ozs7Ozs7Ozs7OztBQ3RDQyxhQUFZLENBQUM7Ozs7O1NBU0UsS0FBSyxHQUFMLEtBQUs7Ozs7Ozs7O0FBQWQsVUFBUyxLQUFLLEdBQUc7Ozs7O0FBS3RCLE9BQUksQ0FBQyxTQUFTLEdBQUcsRUFBRSxDQUFDIiwiZmlsZSI6IkdsZWlwbmlyLlN0b3JlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiIFx0Ly8gVGhlIG1vZHVsZSBjYWNoZVxuIFx0dmFyIGluc3RhbGxlZE1vZHVsZXMgPSB7fTtcblxuIFx0Ly8gVGhlIHJlcXVpcmUgZnVuY3Rpb25cbiBcdGZ1bmN0aW9uIF9fd2VicGFja19yZXF1aXJlX18obW9kdWxlSWQpIHtcblxuIFx0XHQvLyBDaGVjayBpZiBtb2R1bGUgaXMgaW4gY2FjaGVcbiBcdFx0aWYoaW5zdGFsbGVkTW9kdWxlc1ttb2R1bGVJZF0pXG4gXHRcdFx0cmV0dXJuIGluc3RhbGxlZE1vZHVsZXNbbW9kdWxlSWRdLmV4cG9ydHM7XG5cbiBcdFx0Ly8gQ3JlYXRlIGEgbmV3IG1vZHVsZSAoYW5kIHB1dCBpdCBpbnRvIHRoZSBjYWNoZSlcbiBcdFx0dmFyIG1vZHVsZSA9IGluc3RhbGxlZE1vZHVsZXNbbW9kdWxlSWRdID0ge1xuIFx0XHRcdGV4cG9ydHM6IHt9LFxuIFx0XHRcdGlkOiBtb2R1bGVJZCxcbiBcdFx0XHRsb2FkZWQ6IGZhbHNlXG4gXHRcdH07XG5cbiBcdFx0Ly8gRXhlY3V0ZSB0aGUgbW9kdWxlIGZ1bmN0aW9uXG4gXHRcdG1vZHVsZXNbbW9kdWxlSWRdLmNhbGwobW9kdWxlLmV4cG9ydHMsIG1vZHVsZSwgbW9kdWxlLmV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pO1xuXG4gXHRcdC8vIEZsYWcgdGhlIG1vZHVsZSBhcyBsb2FkZWRcbiBcdFx0bW9kdWxlLmxvYWRlZCA9IHRydWU7XG5cbiBcdFx0Ly8gUmV0dXJuIHRoZSBleHBvcnRzIG9mIHRoZSBtb2R1bGVcbiBcdFx0cmV0dXJuIG1vZHVsZS5leHBvcnRzO1xuIFx0fVxuXG5cbiBcdC8vIGV4cG9zZSB0aGUgbW9kdWxlcyBvYmplY3QgKF9fd2VicGFja19tb2R1bGVzX18pXG4gXHRfX3dlYnBhY2tfcmVxdWlyZV9fLm0gPSBtb2R1bGVzO1xuXG4gXHQvLyBleHBvc2UgdGhlIG1vZHVsZSBjYWNoZVxuIFx0X193ZWJwYWNrX3JlcXVpcmVfXy5jID0gaW5zdGFsbGVkTW9kdWxlcztcblxuIFx0Ly8gX193ZWJwYWNrX3B1YmxpY19wYXRoX19cbiBcdF9fd2VicGFja19yZXF1aXJlX18ucCA9IFwiXCI7XG5cbiBcdC8vIExvYWQgZW50cnkgbW9kdWxlIGFuZCByZXR1cm4gZXhwb3J0c1xuIFx0cmV0dXJuIF9fd2VicGFja19yZXF1aXJlX18oMCk7XG5cblxuXG4vKiogV0VCUEFDSyBGT09URVIgKipcbiAqKiB3ZWJwYWNrL2Jvb3RzdHJhcCA2ODNjNzJhYmI4ZTE0M2ExMzgwY1xuICoqLyIsIiAndXNlIHN0cmljdCc7XG5cbi8qKlxuICogQ29tcG9uZW50IHNob3VsZCBjb250cm9sIGl0cyByZXNvdXJjZXMgb25seSB2aWEgbWV0aG9kc1xuICogZGVmaW5lZCBoZXJlLiBUaGlzIGlzIGp1c3QgYSBlbXB0eSBpbnRlcmZhY2UgdGhhdCByZXF1aXJlZFxuICogYnkgQmFzaWNDb21wb25lbnQuIEluIHRoaXMgd2F5LCB3ZSBjb3VsZCBzZWUgaG93IHRvIGltcGxlbWVudFxuICogdGhlIHNhbWUgYXJjaGl0ZWN0dXJlIGZvciByZWFsIGNvbXBvbmVudHMuXG4gKiovXG5cbmV4cG9ydCBmdW5jdGlvbiBCYXNpYygpIHtcbiAgLy8gUmVzb3VyY2VzIGluY2x1ZGUgRE9NIGVsZW1lbnRzIGFuZCBvdGhlciBzdHVmZiB0aGF0IGNvbXBvbmVudFxuICAvLyBuZWVkIHRvIHJlcXVpcmUgdGhlbSBmcm9tIHRoZSAnb3V0c2lkZScuIFNvIGV2ZW4gaXQncyBvbmx5IGEgc3RyaW5nLFxuICAvLyBpZiB0aGUgb25lIGNvbWVzIGZyb20gU3lzdGVtIHNldHRpbmdzIG9yIFhIUiwgaXQgc2hvdWxkIGJlIGEgcmVzb3VyY2VcbiAgLy8gaXRlbSBhbmQgdG8gYmUgbWFuYWdlZCBoZXJlLlxuICB0aGlzLnJlc291cmNlcyA9IHt9O1xufVxuXG5cblxuXG4vKiogV0VCUEFDSyBGT09URVIgKipcbiAqKiAuL2J1aWxkX3N0YWdlL3NyYy9zdG9yZS9iYXNpYy5qc1xuICoqLyJdLCJzb3VyY2VSb290IjoiIn0=
|
const winston = require('winston');
const logger = winston.createLogger({
level: 'info',
format: winston.format.json(),
defaultMeta: { service: 'user-service' },
transports: [
new winston.transports.File({ filename: 'error.log', level: 'error' }),
new winston.transports.File({ filename: 'combined.log' }),
],
});
if (process.env.NODE_ENV !== 'production') {
logger.add(new winston.transports.Console({ format: winston.format.simple() }));
}
logger.tag = function(tag){ var o = {}; o.tag = tag; console.log(o);}
logger.tag1 = function(tag,inf){ var o = {}; o.tag = tag; o.inf=inf; console.log(o);}
module.exports = logger;
|
import request from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import { post, post_array } from '@/utils/request'
export default {
namespaced: true,
state: {
customers: []
},
getters: {
customerSize(state) {
return state.customers.length
},
orderCustomer: (state) => {
return function(flag) {
state.customers.sort((a, b) => {
if (a[flag] > b[flag]) {
return -1
} else {
return 1
}
})
return state.customers
}
}
},
mutations: {
refreshCustomers(state, customers) {
state.customers = customers
}
},
actions: {
async findAllCustomers({ dispatch, commit }) {
// 1. ajax查询
const response = await request.get('/customer/findAll')
commit('refreshCustomers', response.data)
}
}
}
|
/* jshint esnext: true */
(function () {
'use strict';
class LoginController {
constructor(options) {
this._loginURL = options.authorization_url;
this._loginWindow = null;
// init event handlers
document.getElementById('password-login').addEventListener('click', this.showLoginForm.bind(this));
document.getElementById('microsoft-login').addEventListener('click', this.showMicrosoftLogin.bind(this));
window.addEventListener('message', this.receiveMessage.bind(this));
// automatically show password login if Django gives error message
if (document.querySelector('.errornote')) {
this.showLoginForm({
target: document.getElementById('password-login')
});
}
}
// event handler for showing username/password login form
showLoginForm(event) {
// close Microsoft login window if it exists
var microsoftLoginButton = document.getElementById('microsoft-login');
if (microsoftLoginButton.classList.contains('active')) {
if (this._loginWindow !== null) {
this._loginWindow.close();
this._loginWindow = null;
}
microsoftLoginButton.classList.remove('active');
}
// only open if not already open
if (!event.target.classList.contains('active')) {
let loginForm = document.getElementById('login-container')
event.target.classList.add('active');
if (loginForm.classList.contains('hide')) {
loginForm.classList.remove('hide');
}
}
}
// event handler to init Microsoft OAuth login window
showMicrosoftLogin(event) {
// remove any existing errors first
var error = document.querySelector('.errornote');
if (error !== null) {
error.parentNode.removeChild(error);
}
// close username/password login form if it is open
var loginFormButton = document.getElementById('password-login');
if (loginFormButton.classList.contains('active')) {
let loginForm = document.getElementById('login-container');
let passwordLoginButton = document.getElementById('password-login');
loginForm.classList.add('hide');
if (passwordLoginButton.classList.contains('active')) {
passwordLoginButton.classList.remove('active');
}
}
// close existing window if it exists
if (this._loginWindow !== null) {
this._loginWindow.close();
this._loginWindow = null;
}
// open new login window
this._loginWindow = window.open(
this._loginURL,
'microsoft-login',
'height=560, width=790, left=550, top=200, menubar=no, location=no, resizable=no, scrollbars=yes, status=no, toolbar=no'
);
}
// event handler to handle messages from child Microsoft login window
receiveMessage(event) {
if (event.origin === undefined) {
event = event.originalEvent;
}
// verify the message is from us
let origin = window.location.protocol + '//' + window.location
.host;
if (event.origin === origin) {
if (event.data.microsoft_auth) {
let data = event.data.microsoft_auth;
if (data.error) {
console.warn(data);
// add error message to screen
var loginContainer = document.getElementById('content-main');
var error = document.createElement('p');
error.innerText = data.error_description;
error.className = 'errornote';
loginContainer.insertBefore(error,
loginContainer.firstChild);
} else {
// redirect to next URL if it was provided
let new_path = this.parseGETParam('next') || '/admin';
window.location = origin + new_path;
}
}
}
}
// parses GET parameter from URL
parseGETParam(val) {
let result = false;
let tmp = [];
let items = location.search.substr(1).split('&');
for (let index = 0; index < items.length; index++) {
tmp = items[index].split('=');
if (tmp[0] === val) {
result = decodeURIComponent(tmp[1]);
}
}
return result;
}
}
window.microsoft = window.microsoft || {};
window.microsoft.objects = window.microsoft.objects || {};
window.microsoft.objects.LoginController = LoginController;
})();
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Icon = require('../Icon-1f3f78db.js');
require('@carbon/icon-helpers');
require('prop-types');
var React = _interopDefault(require('react'));
var _ref2 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M23.59 19.41L26 22 21 22 21 24 26 24 23.59 26.59 25 28 30 23 25 18 23.59 19.41zM13 6A9 9 0 005.52 20l1.66-1.11A7 7 0 1113 22H2v2H13A9 9 0 0013 6z"
});
var Loop32 = /*#__PURE__*/React.forwardRef(function Loop32(_ref, ref) {
var children = _ref.children,
rest = Icon._objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon.Icon, Icon._extends({
width: 32,
height: 32,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _ref2, children);
});
module.exports = Loop32;
|
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var crypto = require('crypto');
var cors = require('cors')
agentConfig = require('./config/agentConfig')
agentConfig.initConfig();
mqttClient = require('./mqtt/mqttClient');
influxClient = require('./influx/influxClient')
agentDiscovery = require('./discovery/discovery')
swaggerSpecs = require('./utils/swaggerdocs');
const swaggerUi = require('swagger-ui-express');
scheduler = require('./scheduler/scheduler')
RFMLogger = require('./utils/logger');
mqttClient.initClient();
influxClient.initClient();
agentDiscovery.initDiscovery();
scheduler.initScheduler();
var metricsRouter = require('./routes/metrics/metrics');
var systemInfoRouter = require('./routes/system/systeminfo');
var wifiRouter = require('./routes/system/wifi');
var bluetoothRouter = require('./routes/system/bluetooth');
var diskRouter = require('./routes/system/disks');
var fsRouter = require('./routes/system/fs');
var agentRouter = require('./routes/agent/agent');
var deviceProvisionigRouter = require('./routes/device_provisioning/device_provisoning')
var schedulerRouter = require('./routes/scheduler/scheduler')
var app = express();
app.use(logger('combined', { "stream": RFMLogger.stream }));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/api', swaggerUi.serve, swaggerUi.setup(swaggerSpecs));
app.use('/systeminfo', systemInfoRouter);
app.use('/wifi', wifiRouter);
app.use('/disks', diskRouter);
app.use('/fs', fsRouter);
app.use('/agent', agentRouter)
app.use('/bluetooth', bluetoothRouter);
app.use('/metrics', metricsRouter);
app.use('/device_provisioning', deviceProvisionigRouter);
app.use('/scheduler', schedulerRouter);
// catch 404 and forward to error handler
app.use(function (req, res, next) {
next(createError(404));
});
app.get('/', function (req, res) {
throw new Error('BROKEN') // Express will catch this on its own.
})
app.listen(agentConfig.getServerConfig().port, "0.0.0.0", () => {
RFMLogger.info('Welcome to Raspberry-Pi Fleet manager Agent');
RFMLogger.info('RFM Agent REST API listening on port:' + agentConfig.getServerConfig().port);
})
app.use(cors());
process.on('SIGTERM', () => {
debug('SIGTERM signal received: closing HTTP server')
server.close(() => {
debug('HTTP server closed')
})
})
process.on('SIGINT', function () {
RFMLogger.info("Shutting down agent");
if (true)
process.exit();
});
module.exports = app;
|
module.exports = {
settings: {
admins: [ '' ],
acceptDonations: true,
language: 'en',
logger: {
timeFormat: 'HH:mm:ss',
dateFormat: 'YYYY.MM.DD',
logsFile: './log.txt'
}
},
bots: [ {
consoleName: 'Storage Bot #1',
nameToSet: 'Nyjako Storage Bot #1',
accountName: '',
accountPassword: '',
sharedSecret: '',
identitySecret: '',
steamID64: ''
},
{
consoleName: 'Storage Bot #2',
nameToSet: 'Nyjako Storage Bot #2',
accountName: '',
accountPassword: '',
sharedSecret: '',
identitySecret: '',
steamID64: ''
}
]
}
|
'use strict';
describe('Controllers Tests ', function () {
beforeEach(module('activemftApp'));
var $scope, $httpBackend, q, Auth;
// define the mock Auth service
beforeEach(function() {
Auth = {
changePassword: function() {}
};
});
beforeEach(inject(function ($rootScope, $controller, $q, $injector) {
$scope = $rootScope.$new();
q = $q;
$httpBackend = $injector.get('$httpBackend');
$controller('PasswordController', {$scope: $scope, Auth: Auth});
}));
describe('PasswordController', function () {
it('should show error if passwords do not match', function () {
//GIVEN
$scope.password = 'password1';
$scope.confirmPassword = 'password2';
//WHEN
$scope.changePassword();
//THEN
expect($scope.doNotMatch).toBe('ERROR');
});
it('should call Service and set OK on Success', function () {
//GIVEN
var pass = 'myPassword';
$scope.password = pass;
$scope.confirmPassword = pass;
spyOn(Auth, 'changePassword').and.returnValue(new function(){
var deferred = q.defer();
$scope.error = null;
$scope.success = 'OK';
return deferred.promise;
});
//WHEN
$scope.changePassword();
//THEN
expect($scope.error).toBeNull();
expect($scope.success).toBe('OK');
});
});
});
|
function constructGaugeChart(){
var gaugeOptions = {
chart: {
type: 'solidgauge',
height:260
},
credits: { enabled: false },
title: null,
pane: {
center: ['50%', '50%'], // Gauge horizhontal, vertical position
size: '10%',
startAngle: -125,
endAngle: 125,
background: {
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
innerRadius: '75%',
outerRadius: '100%',
shape: 'arc'
}
},
tooltip: {
enabled: false
},
// the value axis
yAxis: {
stops: [
[0.1, 'ff9800'], // green
[0.5, '#ff9800'], // yellow
[0.9, '#ff9800'] // red
],
lineWidth: 0,
minorTickInterval: null,
tickAmount: 2,
title: {
y: -75 // Title label position
},
labels: {
y: 16 // Min & Max value label Position
}
},
plotOptions: {
solidgauge: {
dataLabels: {
y: -75, // Inner label position
borderWidth: 0,
useHTML: true
},
startAngle: -125,
endAngle: 125,
innerRadius: '75%'
}
}
};
return gaugeOptions;
}
function constructGroupedColumn(){
var stackedColumnOptions = {
chart: {
type: 'column'
},
credits: { enabled: false },
title: {
text: null
},
xAxis: {
crosshair: true
},
yAxis: {
title: {
text: ''
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y}</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
}
};
return stackedColumnOptions;
}
function constructLineChart(){
var lineOptions = {
chart: {
type: 'line'
},
credits: { enabled: false },
legend: {
enabled: false
},
yAxis: {
labels: {
enabled: false
},
title: {
text: ''
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
}
};
return lineOptions;
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const workspace_1 = require("@nrwl/workspace");
const path_1 = require("path");
const updatePackages = workspace_1.updatePackagesInPackageJson(path_1.join(__dirname, '../../../', 'migrations.json'), '9.2.0');
const addCacheableOperations = workspace_1.updateJsonInTree('nx.json', (nxJson) => {
nxJson.tasksRunnerOptions = nxJson.tasksRunnerOptions || {};
if (!nxJson.tasksRunnerOptions.default) {
nxJson.tasksRunnerOptions.default = {
runner: '@nrwl/workspace/tasks-runners/default',
options: {
cacheableOperations: ['build', 'lint', 'test', 'e2e'],
},
};
return nxJson;
}
else if (nxJson.tasksRunnerOptions.default &&
(nxJson.tasksRunnerOptions.default.runner ===
'@nrwl/workspace/src/tasks-runner/default-task-runner' ||
nxJson.tasksRunnerOptions.default.runner ===
'@nrwl/workspace/src/tasks-runner/tasks-runner-v2')) {
nxJson.tasksRunnerOptions.default.runner =
'@nrwl/workspace/tasks-runners/default';
nxJson.tasksRunnerOptions.default.options =
nxJson.tasksRunnerOptions.default.options || {};
nxJson.tasksRunnerOptions.default.options.cacheableOperations =
nxJson.tasksRunnerOptions.default.options.cacheableOperations || [];
const cacheableOperations = new Set(nxJson.tasksRunnerOptions.default.options.cacheableOperations);
cacheableOperations.add('build');
cacheableOperations.add('lint');
cacheableOperations.add('test');
cacheableOperations.add('e2e');
nxJson.tasksRunnerOptions.default.options.cacheableOperations =
Array.from(cacheableOperations);
return nxJson;
}
return nxJson;
});
function default_1() {
return schematics_1.chain([updatePackages, addCacheableOperations, workspace_1.formatFiles()]);
}
exports.default = default_1;
//# sourceMappingURL=update-9-2-0.js.map
|
import React from 'react';
import {Col, Grid, Row} from 'react-bootstrap';
let jrcLogo = require('../../images/jr_white.svg');
require('../../styles/login/AuthPage.scss');
class AuthPage extends React.Component {
render() {
return (
<div className="auth-container clearfix">
<Grid>
<Col sm={6} smOffset={3} md={4} mdOffset={4} xs={12} className="auth-form">
<Row>
<img src={jrcLogo} alt="JrC Logo" className="img-responsive" id="logo" />
</Row>
<Row>
<this.props.form next={this.props.next} />
</Row>
</Col>
</Grid>
</div>
);
}
}
export default AuthPage;
|
require('./bootstrap');
import
|
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
// MODULES //
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var discreteUniform = require( '@stdlib/random-base-discrete-uniform' ).factory;
var isnan = require( '@stdlib/math-base-assert-is-nan' );
var pow = require( '@stdlib/math-base-special-pow' );
var floor = require( '@stdlib/math-base-special-floor' );
var Float64Array = require( '@stdlib/array-float64' );
var dcopy = require( '@stdlib/blas-base-dcopy' );
var tryRequire = require( '@stdlib/utils-try-require' );
var pkg = require( './../package.json' ).name;
// VARIABLES //
var dsort2hp = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
var opts = {
'skip': ( dsort2hp instanceof Error )
};
// FUNCTIONS //
/**
* Create a benchmark function.
*
* @private
* @param {PositiveInteger} iter - number of iterations
* @param {PositiveInteger} len - array length
* @returns {Function} benchmark function
*/
function createBenchmark( iter, len ) {
var randi;
var tmp;
var out;
var x;
var v;
var M;
var i;
var j;
randi = discreteUniform( 1, 10 );
M = floor( len*0.333 );
x = [];
for ( i = 0; i < iter; i++ ) {
tmp = new Float64Array( len );
v = randi();
for ( j = 0; j < len; j++ ) {
if ( i % M === 0 ) {
v -= randi();
}
tmp[ j ] = v;
}
x.push( tmp );
}
out = new Float64Array( len );
return benchmark;
function benchmark( b ) {
var xc;
var y;
var i;
xc = x.slice();
for ( i = 0; i < iter; i++ ) {
xc[ i ] = dcopy( len, x[ i ], 1, new Float64Array( len ), 1 );
}
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = dsort2hp( len, 1, xc[ i ], 1, 0, out, 1, 0 );
if ( isnan( y[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( y[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
b.end();
}
}
// MAIN //
function main() {
var bopts;
var iter;
var len;
var min;
var max;
var f;
var i;
iter = 1e6;
min = 1; // 10^min
max = 4; // 10^max
for ( i = min; i <= max; i++ ) {
len = pow( 10, i );
f = createBenchmark( iter, len );
bopts = {
'skip': opts.skip,
'iterations': iter
};
bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f );
iter = floor( pow( iter, 3.0/4.0 ) );
}
}
main();
|
var playerName = new URLSearchParams(window.location.search).get('name');
var stateObj = null;
function startLoop() {
var interv = setInterval(async () => {
try {
await refresh();
} catch (e) {
clearInterval(interv);
}
}, 200);
}
async function refresh() {
var state = await getStateCall();
stateObj = JSON.parse(state);
render(stateObj);
}
function render(state) {
let playerElement = document.getElementById("player");
playerElement.innerText = "Welcome " + playerName;
document.getElementById("economy").innerText = state.economy;
renderButtons(state);
renderPlayers(state);
renderBoard(state);
renderLogs(state);
}
function renderButtons(state) {
cleanButton("startGameButton");
cleanButton("rollButton");
cleanButton("dontbuyButton");
cleanButton("buyCashButton");
cleanButton("buyBorrowButton");
if(state.state.type == "AddPlayers") {
enableButton("startGameButton");
}
if(state.state.type == "DiceRoll") {
if(state.state.player == getMyIndex(state)) {
enableButton("rollButton");
}
}
if(state.state.type == "BuyOrNot") {
if(state.state.player == getMyIndex( state)) {
enableButton("dontbuyButton");
enableButton("buyCashButton");
enableButton("buyBorrowButton");
}
}
}
function renderPlayers(state) {
let playersTable = document.getElementById("playersTable");
playersTable.innerText = "";
var header = playersTable.createTHead();
header = header.insertRow(0);
header.insertCell(-1).innerText = "";
header.insertCell(-1).innerText = "Money";
header.insertCell(-1).innerText = "Assets";
header.insertCell(-1).innerText = "Debt";
header.insertCell(-1).innerText = "Start money";
state.players.forEach((player, pIdx) => {
var row = playersTable.insertRow(-1);
let cell1 = row.insertCell(-1);
cell1.innerHTML = getPlayerName(player, pIdx);
let cell2 = row.insertCell(-1);
cell2.innerText = player.money;
cell2.classList.add("playerAmount");
let cell3 = row.insertCell(-1);
cell3.innerText = player.assets;
cell3.classList.add("playerAmount");
let cell4 = row.insertCell(-1);
cell4.innerText = player.debt;
cell4.classList.add("playerAmount");
let cell5 = row.insertCell(-1);
cell5.innerText = player.startMoney;
cell5.classList.add("playerAmount");
});
}
function renderBoard(state) {
let groundTable = document.getElementById("groundTable");
groundTable.innerText = "";
state.grounds.forEach((ground, index) => {
var row = groundTable.insertRow(-1);
var cell1 = row.insertCell(-1);
var cell2 = row.insertCell(-1);
var cell3 = row.insertCell(-1);
var cell4 = row.insertCell(-1);
cell1.innerHTML = getOwnerName(state, ground.owner);
cell1.classList.add("owner");
cell2.innerHTML = ground.name;
cell2.classList.add("ground-" + ground.color);
cell3.innerHTML = ground.value || "";
cell3.classList.add("amount");
cell4.innerHTML = getPlayerOnGround(state, index);
});
}
function renderLogs(state) {
var logs = state.logs.join("<br>");
state.players.forEach((player, idx) => {
var re = new RegExp(player.name, "g");
logs = logs.replace(re, "<span class=\"player" + idx + "\">" + player.name + "</span>")
});
document.getElementById("log").innerHTML = logs;
}
function cleanButton(id) {
document.getElementById(id).classList.add("hidden");
}
function enableButton(id) {
document.getElementById(id).classList.remove("hidden");
}
function startGame() {
postAndRefresh("/game/startGame", {player: getMyIndex(stateObj), roll: roll});
}
function roll() {
var dice1 = Math.floor(Math.random() * 6) + 1;
var dice2 = Math.floor(Math.random() * 6) + 1;
var roll = dice1 + dice2;
postAndRefresh("/game/roll", {rollPlayer: getMyIndex(stateObj), roll: roll});
}
function dontBuy() {
postAndRefresh("/game/dont-buy", {player: getMyIndex(stateObj)});
}
function buyCash() {
postAndRefresh("/game/buy-cash", {player: getMyIndex(stateObj)});
}
function buyBorrow() {
postAndRefresh("/game/buy-borrow", {player: getMyIndex(stateObj)});
}
function payBackDebt() {
let asString = document.getElementById("payBackAmount").value;
let asInt = parseInt(asString);
if(isNaN(asInt)) {
return;
}
document.getElementById("payBackAmount").value = "";
postAndRefresh("/game/pay-back-debt", {payBackPlayer: getMyIndex(stateObj), payBackAmount: asInt})
}
function postAndRefresh(url, data) {
var xhttp = new XMLHttpRequest();
xhttp.open("POST", url, true);
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
refresh()
} else {
alert("Some kind of REST call went wrong, reopen game");
}
}
};
xhttp.setRequestHeader("Content-Type", "application/json");
if(data) {
xhttp.send(JSON.stringify(data));
} else {
xhttp.send();
}
}
function getOwnerName(state, idx) {
if(idx == null) {
return "";
}
return getPlayerName(state.players[idx], idx);
}
function getPlayerOnGround(state, idx) {
var names = "";
state.players.forEach((player, pIdx) => {
if(player.position == idx) {
names += getPlayerName(player, pIdx) + " ";
}
});
return names;
}
function getPlayerName(player, idx) {
var name = player.name;
return "<span class=\"player" + idx + "\">" + name + "</span>";
}
function getMyIndex(state) {
var res = null;
state.players.forEach((player, idx) => {
if(player.name == playerName) {
res = idx;
}
});
return res;
}
function getStateCall() {
return new Promise(function (acc, rej) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
acc(xhttp.responseText)
} else {
alert("Some kind of REST call went wrong, reopen game");
rej("stuff went wrong");
}
}
};
xhttp.open("GET", "/state", true);
xhttp.send();
});
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.SocialDigg = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElement(styled_icon_1.StyledIconBase, tslib_1.__assign({ iconAttrs: attrs, iconVerticalAlign: "middle", iconViewBox: "0 0 100 100" }, props, { ref: ref }),
React.createElement("path", { d: "M92.546 38.012c0-.333-.035-.667-.059-1.096h-.903c-6.932 0-13.863.014-20.794-.017-.825-.004-1.055.236-1.052 1.055.029 7.811.029 15.623-.001 23.435-.003.838.26 1.05 1.065 1.042 3.977-.036 7.954-.018 11.931-.014.33 0 .659.029 1.071.049 0 1.126-.046 2.173.015 3.214.044.745-.182.972-.944.964-4.062-.037-8.125.004-12.187-.035-.772-.008-.97.239-.947.966a67.357 67.357 0 01-.002 4.517c-.027.759.225.944.968.941a1974.21 1974.21 0 0120.793.008c.914.006 1.065-.293 1.062-1.111-.021-11.307-.013-22.613-.016-33.918zm-9.588 18.022a61.247 61.247 0 00-3.662-.002c-.605.016-.854-.16-.85-.816.026-3.719.004-7.438.031-11.157.002-.254.265-.721.419-.727 1.608-.054 3.219-.032 4.909-.032v2.229c0 3.209-.018 6.417.014 9.625.007.667-.188.904-.861.88zM66.026 36.899c-6.902.029-13.805.03-20.707-.001-.814-.004-1.054.215-1.051 1.04.03 7.811.03 15.622 0 23.434-.003.81.203 1.069 1.039 1.061 4.004-.041 8.01.012 12.014-.041.901-.012 1.142.278 1.068 1.113a14.354 14.354 0 00-.002 2.214c.048.701-.195.927-.91.922-4.033-.03-8.067-.014-12.1-.014h-1.091c0 1.898.038 3.683-.018 5.464-.024.767.227.944.966.941 6.959-.028 13.918-.016 20.877-.018.277-.001.554-.024.905-.041.021-.347.056-.65.056-.953.002-11.362-.007-22.724.02-34.086.001-.839-.264-1.038-1.066-1.035zm-7.678 18.559c-.002.188-.349.528-.544.534a69.417 69.417 0 01-4.256.001c-.176-.004-.493-.316-.494-.488-.028-4.025-.021-8.053-.021-12.216 1.696 0 3.253-.02 4.808.026.183.005.509.365.511.562.028 3.86.028 7.722-.004 11.581zM21.554 27.974v7.671c0 1.271 0 1.272-1.312 1.272-3.949 0-7.898.018-11.847-.016-.746-.007-.96.202-.958.957.026 8.607.027 17.217-.002 25.824-.003.799.232.995 1.006.991 6.932-.027 13.864-.016 20.796-.018.303 0 .605-.025.927-.04V26.96h-8.611l.001 1.014zm-.999 30.307c-1.218-.058-2.441.01-3.66-.04-.234-.009-.654-.313-.655-.484-.036-4.766-.029-9.53-.029-14.404h5.343v.908c0 4.342-.02 8.685.018 13.027.007.801-.248 1.028-1.017.993zm20.297-21.37c-2.328.013-4.658.037-6.985-.012-.781-.017-.952.268-.941.985.036 2.47.014 4.94.014 7.412 0 6.134.01 12.268-.013 18.401-.003.713.146 1.036.937.975.903-.07 1.816-.017 2.725-.017h4.961c.04-.232.067-.315.067-.398.004-8.889.001-17.776.021-26.665 0-.619-.297-.683-.786-.681zm-7.219-3.4c2.442.037 4.886.014 7.329.031.53.004.69-.209.672-.712-.03-.823-.007-1.647-.007-2.472V26.96h-8.68c0 2.08-.017 4.064.03 6.049.003.18.424.499.656.502z", key: "k0" })));
});
exports.SocialDigg.displayName = 'SocialDigg';
exports.SocialDiggDimensions = { height: 24, width: 24 };
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.createElement("path", { d: "M6 5h1.52c.12-.85.85-1.5 1.73-1.5h8c1.8 0 3.25 1.46 3.25 3.25v8c0 .88-.65 1.61-1.5 1.73V18c1.68-.13 3-1.53 3-3.24v-8A4.75 4.75 0 0017.25 2h-8a3.25 3.25 0 00-3.24 3zM2 9.25C2 7.45 3.46 6 5.25 6h9.5C16.55 6 18 7.46 18 9.25v9.5c0 1.8-1.45 3.25-3.25 3.25H11.5v-3.25c0-1.24-1-2.25-2.25-2.25H2V9.25zM2 18v.75C2 20.55 3.46 22 5.25 22H10v-3.25a.75.75 0 00-.75-.75H2z", fill: primaryFill }));
};
const TabDesktopMultipleBottom24Filled = wrapIcon_1.default(rawSvg({}), 'TabDesktopMultipleBottom24Filled');
exports.default = TabDesktopMultipleBottom24Filled;
|
import module from './module.js';
module()
|
var app = angular.module('avaliacandidatos', [ 'ngRoute', 'ui.router', 'ui.bootstrap']);
app.config([ '$urlRouterProvider', '$stateProvider',
function($urlRouterProvider, $stateProvider) {
$stateProvider.state('main', {url:'/', templateUrl:'/view/main.html'});
$stateProvider.state('main.contacts', {url:'contacts', templateUrl:'/view/contacts/contacts.html'});
$stateProvider.state('main.addeditcontact', {url:'addeditcontact', templateUrl:'/view/contacts/contactaddedit.html'});
$urlRouterProvider.otherwise("/")
} ]);
app.directive('ngBack', function() {
return function(scope, element, attrs) {
element.bind('click', function(evt) {
history.back();
});
};
});
mainController = function($scope, $window) {
return $window.initRoot = function() {
$scope.backend_ready = true;
return $scope.$apply();
};
};
app.controller('mainController', mainController);
app.$inject = [ '$scope', '$http', '$cookies' ];
|
//買い物リスト取得
$(function () {
getShowList();
})
function getShowList() {
$(function () {
$.get({//get形式
url: "../shoppinglist_api/showList", //URL
dataType: "json", //受信データ
}).done(function (rcv_data) {
// 受信データ処理
console.log("GET:showListAPI");
$("#showLiset_th").empty();
$("#input_ID").empty();
console.log(rcv_data);
for (let i of rcv_data) {
//console.log(i);
var row = makeItemRow(i);
var id = '<option>' + Number(i['id']) + '</option>'
//表データ追加
$("#showLiset_th").append(row);
$("#input_ID").append(id);
}
$("#getListMessage").text('更新: ' + GetDate());
console.log(GetDate());
console.log("END:showListAPI");
}).fail(function (rcv_data, textStatus, errorThrown) {
// エラー処理
console.log(rcv_data);
$("#getListMessage").text("サポートへご連絡ください。");
//alert(errorThrown);
console.log("ERROR");
}).always(function () {
})
})
}
function makeItemRow(itemRow) {
//console.log(UserRow);
//権限表記変更
var flag = FlagSet(itemRow['flag']);
//List要素生成
var row = '<tr><th scope="row">' + itemRow['id'] + '</th><td>' + itemRow['itemName'] + '</td><td>' + itemRow['quantity'] + '</td><td>' + flag + '</td></tr>';
//console.log(row);
return row;
}
//ステータス表示
function FlagSet(flag) {
switch (Number(flag)) {
case 0:
return '';
case 1:
return '完了';
}
}
function GetDate() {
//現在時刻取得
var date = new Date();
return date.toLocaleString()
}
|
webpackJsonp([20],{Ar8I:function(t,e){},PjKN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("3as3"),i=a("lbHh"),s=a.n(i),d={name:"group2bdList",data:function(){return{bdId:"",bdName:"",groupId:"",groupName:"",list:[],total:0,page:1,limit:10,dialogVisible:!1,dialogTitle:"",bdId_dialog:"",groupId_dialog:"",bdIdList:[],groupIdList:[],addBtnStatus:!1,updateBtnStatus:!1,checkStatus:!0,oldBdId:"",oldGroupId:""}},mounted:function(){this.searchList(),this.getBdIdList(),this.getGroupIdList()},methods:{getBdIdList:function(){var t=this;this.$axios.get("bd/bdList?start=&limit=&bdId=&bdName=&address=").then(function(e){t.bdIdList=e.data.data.list}).catch(function(t){console.log(t)})},getGroupIdList:function(){var t=this;this.$axios.get("group/groupList?start=&limit=&groupId=&groupName=&type=&structure="+this.$store.getters.info.role).then(function(e){t.groupIdList=e.data.data.list}).catch(function(t){console.log(t)})},deleteGroup2BD:function(t,e){var a=this;console.log(t,e),this.$confirm("是否确认删除该条记录? 组Id:"+e.groupId+" 局向码:"+e.bdId,"确认删除",{distinguishCancelAndClose:!0,confirmButtonText:"删除",cancelButtonText:"取消"}).then(function(){a.$axios.get("group2bd/deleteGroup2BD?bdId="+e.bdId+"&groupId="+e.groupId).then(function(){a.alertMessage("删除成功"),a.searchList()}).catch(function(t){a.alertMessage("删除失败"+t)})}).catch(function(t){console.log(t)})},updateGroup2BD:function(){var t=this,e={bdId:this.bdId_dialog,groupId:this.groupId_dialog,oldBdId:this.oldBdId,oldGroupId:this.oldGroupId};this.$axios.post("group2bd/updateGroup2BD",e).then(function(){t.alertMessage("更新成功"),t.searchList()}).catch(function(e){t.alertMessage("更新失败"+e)}),this.dialogVisible=!1},addGroup2BD:function(){var t=this,e={bdId:this.bdId_dialog,groupId:this.groupId_dialog};this.$axios.post("group2bd/addGroup2BD",e).then(function(){t.alertMessage("添加成功"),t.searchList()}).catch(function(e){t.alertMessage("添加失败"+e)}),this.dialogVisible=!1},alertMessage:function(t){var e=this.$createElement;this.$message({message:e("p",null,[e("span",{style:"color: teal"},t)])})},checkGroup2BD:function(){var t=this;if(console.log("准备检索"),this.bdId_dialog!==this.oldBdId||this.groupId_dialog!==this.oldGroupId)return""===this.bdId_dialog||""===this.groupId_dialog?(this.checkStatus=!0,void this.alertMessage("请选择组id或局向码")):void this.$axios.get("group2bd/checkGroup2BD?bdId="+this.bdId_dialog+"&groupId="+this.groupId_dialog).then(function(e){console.log(e),e.data.data?(t.checkStatus=!0,t.alertMessage("该组和局向关联已存在")):t.checkStatus=!1}).catch(function(t){console.log(t)})},showUpdateDialog:function(t,e){console.log(e),this.dialogTitle="修改关联",this.bdId_dialog=e.bdId,this.groupId_dialog=e.groupId,this.oldBdId=e.bdId,this.oldGroupId=e.groupId,this.addBtnStatus=!1,this.updateBtnStatus=!0,this.dialogVisible=!0,this.checkStatus=!1},showAddDialog:function(){this.dialogTitle="添加关联",this.bdId_dialog="",this.groupId_dialog="",this.addBtnStatus=!0,this.updateBtnStatus=!1,this.dialogVisible=!0,this.checkStatus=!0},handleClose:function(t){t()},axiosUrl:function(){var t=this,e=(this.page-1)*this.limit,a=this.limit;this.$axios.get("group2bd/group2bdList?start="+e+"&limit="+a+"&bdId="+this.bdId+"&bdName="+this.bdName+"&groupId="+this.groupId+"&groupName="+this.groupName).then(function(e){t.list=e.data.data.list,t.total=e.data.data.total}).catch(function(t){console.log(t),s.a.remove("token"),location.reload()})},searchList:function(){this.page=1,this.axiosUrl()},changeList:function(t){t&&(this.limit=t.limit),this.axiosUrl()},clearInput:function(){this.bdId="",this.bdName="",this.groupId="",this.groupName="",this.searchList()},filterHandler:function(t,e,a){return e[a.property]===t}},components:{Pagination:o.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-input",{staticClass:"searchInput",attrs:{type:"text",placeholder:"请输入组ID",maxlength:"30","show-word-limit":""},model:{value:t.groupId,callback:function(e){t.groupId=e},expression:"groupId"}}),t._v(" "),a("el-input",{staticClass:"searchInput",attrs:{type:"text",placeholder:"请输入组名称",maxlength:"50","show-word-limit":""},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}}),t._v(" "),a("el-input",{staticClass:"searchInput",attrs:{type:"text",placeholder:"请输入局向码",maxlength:"30","show-word-limit":""},model:{value:t.bdId,callback:function(e){t.bdId=e},expression:"bdId"}}),t._v(" "),a("el-input",{staticClass:"searchInput",attrs:{type:"text",placeholder:"请输入局向名称",maxlength:"50","show-word-limit":""},model:{value:t.bdName,callback:function(e){t.bdName=e},expression:"bdName"}}),t._v(" "),a("el-button",{staticClass:"searchBtn",attrs:{type:"success",loading:!1},on:{click:t.searchList}},[t._v("查 询")]),t._v(" "),a("el-button",{attrs:{type:"warning"},on:{click:t.clearInput}},[t._v("清 空")]),t._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:t.showAddDialog}},[t._v("创 建")]),t._v(" "),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{type:"index",label:"#"}}),t._v(" "),a("el-table-column",{attrs:{prop:"groupId",label:"组ID"}}),t._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"组名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"bdId",label:"局向码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"bdName",label:"局向名称"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t.showUpdateDialog(e.$index,e.row)}}},[t._v("修改\n ")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.deleteGroup2BD(e.$index,e.row)}}},[t._v("删除\n ")])]}}])})],1)],t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.page,limit:t.limit},on:{"update:page":function(e){t.page=e},"update:limit":function(e){t.limit=e},pagination:t.changeList}}),t._v(" "),a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择组"},on:{change:t.checkGroup2BD},model:{value:t.groupId_dialog,callback:function(e){t.groupId_dialog=e},expression:"groupId_dialog"}},t._l(t.groupIdList,function(t){return a("el-option",{key:t.groupId,attrs:{label:t.groupId+" "+t.groupName,value:t.groupId}})}),1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择局向"},on:{change:t.checkGroup2BD},model:{value:t.bdId_dialog,callback:function(e){t.bdId_dialog=e},expression:"bdId_dialog"}},t._l(t.bdIdList,function(t){return a("el-option",{key:t.bdId,attrs:{label:t.bdId+" "+t.bdName,value:t.bdId}})}),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.addBtnStatus,expression:"addBtnStatus"}],attrs:{type:"primary",disabled:t.checkStatus},on:{click:t.addGroup2BD}},[t._v("添 加")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.updateBtnStatus,expression:"updateBtnStatus"}],attrs:{type:"primary",disabled:t.checkStatus},on:{click:t.updateGroup2BD}},[t._v("更 新")])],1)],1)],2)},staticRenderFns:[]};var n=a("VU/8")(d,l,!1,function(t){a("Ar8I")},"data-v-432f64a8",null);e.default=n.exports}});
//# sourceMappingURL=20.219a96de2ec2379374e4.js.map
|
'use strict'
/**
* Dependencies
*/
const cwd = process.cwd()
const path = require('path')
const firebase = require('firebase')
const BaseHandler = require(path.join(cwd, 'handlers', 'BaseHandler'))
const User = require(path.join(cwd, 'models', 'User'))
/**
* Scope
*/
const scope = 'DistressHandler'
/**
* DistressHandler
*/
class DistressHandler extends BaseHandler {
static handle (event) {
let handler = new DistressHandler(event)
Promise
.resolve({handler})
}
}
/**
* Exports
*/
module.exports = DistressHandler
|
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', 'plugin:vue/recommended', '@vue/prettier'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
},
parserOptions: {
parser: 'babylon',
},
overrides: [
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
env: {
jest: true,
},
},
],
};
|
import Vue from 'vue'
import QRadio from '../radio/QRadio.js'
import QCheckbox from '../checkbox/QCheckbox.js'
import QToggle from '../toggle/QToggle.js'
import DarkMixin from '../../mixins/dark.js'
import { cache } from '../../utils/vm.js'
const components = {
radio: QRadio,
checkbox: QCheckbox,
toggle: QToggle
}
export default Vue.extend({
name: 'QOptionGroup',
mixins: [ DarkMixin ],
props: {
value: {
required: true
},
options: {
type: Array,
validator (opts) {
return opts.every(opt => 'value' in opt && 'label' in opt)
}
},
type: {
default: 'radio',
validator: v => ['radio', 'checkbox', 'toggle'].includes(v)
},
color: String,
keepColor: Boolean,
dense: Boolean,
leftLabel: Boolean,
inline: Boolean,
disable: Boolean
},
computed: {
component () {
return components[this.type]
},
model () {
return Array.isArray(this.value) ? this.value.slice() : this.value
}
},
methods: {
__update (value) {
this.$emit('input', value)
}
},
created () {
const isArray = Array.isArray(this.value)
if (this.type === 'radio') {
if (isArray) {
console.error('q-option-group: model should not be array')
}
}
else if (!isArray) {
console.error('q-option-group: model should be array in your case')
}
},
render (h) {
return h('div', {
staticClass: 'q-option-group q-gutter-x-sm',
class: this.inline ? 'q-option-group--inline' : null
}, this.options.map(opt => h('div', [
h(this.component, {
props: {
value: this.value,
val: opt.value,
disable: this.disable || opt.disable,
label: opt.label,
leftLabel: this.leftLabel || opt.leftLabel,
color: opt.color || this.color,
checkedIcon: opt.checkedIcon,
uncheckedIcon: opt.uncheckedIcon,
dark: opt.dark || this.isDark,
dense: this.dense,
keepColor: opt.keepColor || this.keepColor
},
on: cache(this, 'inp', {
input: this.__update
})
})
])))
}
})
|
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("@nestjs/common");
const error_handler_1 = require("./error-handler");
let FlubErrorHandler = class FlubErrorHandler {
constructor(options) {
this.options = options;
}
catch(exception, response) {
new error_handler_1.ErrorHandler(exception, this.options).toHTML().then((data) => {
response.status(500).send(data);
}).catch((e) => {
console.log(e);
});
}
};
FlubErrorHandler = __decorate([
common_1.Catch(Error),
__metadata("design:paramtypes", [Object])
], FlubErrorHandler);
exports.FlubErrorHandler = FlubErrorHandler;
//# sourceMappingURL=flub-error-handler.js.map
|
'use strict';
/**
* @fileOverview Testing with `gulp-mocha`
* @author Oleg Dutchenko <dutchenko.o.dev@gmail.com>
*/
// ----------------------------------------
// Imports
// ----------------------------------------
const gulp = require('gulp');
const multipipe = require('multipipe');
const gulpHappinessScss = require('./index');
// ----------------------------------------
// Exports
// ----------------------------------------
gulp.task('lint', function () {
let sources = [
'./test/**/*.{scss,md}'
];
return gulp.src(sources)
.pipe(multipipe(
gulpHappinessScss({
linterOptions: {
noDisabling: true
}
}),
gulpHappinessScss.format({
showHappyFiles: true,
linterOptions: {
formatter: 'table'
}
})
// gulpHappinessScss.failOnError()
));
});
|
/**
* Tree node
*/
class Node {
constructor(value, left, right) {
this.value = value;
this.children = [left, right];
this.size = 1;
this.height = 1;
this.key = Math.random();
}
/**
* Computer the number of childnodes
*/
resize() {
this.size =
(this.children[0] ? this.children[0].size : 0) +
(this.children[1] ? this.children[1].size : 0) +
1;
this.height =
Math.max(
this.children[0] ? this.children[0].height : 0,
this.children[1] ? this.children[1].height : 0
) + 1;
return this;
}
/**
* Zigzag rotate of tree nodes
*/
rotate(side) {
const temp = this.children[side];
// Rotate
this.children[side] = temp.children[1 - side];
temp.children[1 - side] = this;
this.resize();
temp.resize();
return temp;
}
}
/**
* Treap
*/
class Treap {
constructor() {
this.root = null;
}
/**
* Insert new value into the subtree of `node`
*/
_insert(node, value) {
if (node === null) {
return new Node(value, null, null);
}
// Passing to childnodes and update
const side = ~~(value > node.value);
node.children[side] = this._insert(node.children[side], value);
// Keep it balance
if (node.children[side].key < node.key) {
return node.rotate(side);
}
return node.resize();
}
_find(node, value) {
if (node === null) {
// Empty tree
return false;
}
if (node.value === value) {
// Found!
return true;
}
// Search within childnodes
const side = ~~(value > node.value);
return this._find(node.children[side], value);
}
_minimum(node) {
if (node === null) {
// Empty tree, returns Infinity
return Infinity;
}
return Math.min(node.value, this._minimum(node.children[0]));
}
_maximum(node) {
if (node === null) {
// Empty tree, returns -Infinity
return -Infinity;
}
return Math.max(node.value, this._maximum(node.children[1]));
}
_remove(node, value) {
if (node === null) {
// Empty node, value not found
return null;
}
let side;
if (node.value === value) {
if (node.children[0] === null && node.children[1] === null) {
// It's a leaf, set to null
return null;
}
// Rotate to a subtree and remove it
side = node.children[0] === null ? 1 : 0;
node = node.rotate(side);
node.children[1 - side] = this._remove(node.children[1 - side], value);
} else {
side = ~~(value > node.value);
node.children[side] = this._remove(node.children[side], value);
}
return node.resize();
}
insert(value) {
this.root = this._insert(this.root, value);
}
find(value) {
return this._find(this.root, value);
}
minimum() {
return this._minimum(this.root);
}
maximum() {
return this._maximum(this.root);
}
remove(value) {
this.root = this._remove(this.root, value);
}
size() {
return this.root ? this.root.size : 0;
}
height() {
return this.root ? this.root.height : 0;
}
}
|
/**
* Created by paipeng on 29.05.15.
*/
angular.module("fifaApp").directive("footer", function() {
return {
restrict: 'A',
templateUrl: '/views/footer.html',
scope: true,
transclude : false,
controller: 'FooterController'
};
});
|
var searchData=
[
['u16',['u16',['../struct_i_t_m___type.html#a12aa4eb4d9dcb589a5d953c836f4e8f4',1,'ITM_Type']]],
['u32',['u32',['../struct_i_t_m___type.html#a6882fa5af67ef5c5dfb433b3b68939df',1,'ITM_Type']]],
['u8',['u8',['../struct_i_t_m___type.html#abea77b06775d325e5f6f46203f582433',1,'ITM_Type']]],
['usagefault_5firqn',['UsageFault_IRQn',['../group___n_v_i_c__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf',1,'Ref_NVIC.txt']]],
['using_2etxt',['Using.txt',['../_using_8txt.html',1,'']]],
['using_20cmsis_20with_20generic_20arm_20processors',['Using CMSIS with generic ARM Processors',['../_using__a_r_m_pg.html',1,'Using_pg']]],
['using_20cmsis_20in_20embedded_20applications',['Using CMSIS in Embedded Applications',['../_using_pg.html',1,'']]],
['using_20interrupt_20vector_20remap',['Using Interrupt Vector Remap',['../_using__v_t_o_r_pg.html',1,'Using_pg']]]
];
|
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(198);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ (function(module, __unusedexports, __webpack_require__) {
const { requestLog } = __webpack_require__(916);
const {
restEndpointMethods
} = __webpack_require__(842);
const Core = __webpack_require__(529);
const CORE_PLUGINS = [
__webpack_require__(190),
__webpack_require__(19), // deprecated: remove in v17
requestLog,
__webpack_require__(148),
restEndpointMethods,
__webpack_require__(430),
__webpack_require__(850) // deprecated: remove in v17
];
const OctokitRest = Core.plugin(CORE_PLUGINS);
function DeprecatedOctokit(options) {
const warn =
options && options.log && options.log.warn
? options.log.warn
: console.warn;
warn(
'[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
);
return new OctokitRest(options);
}
const Octokit = Object.assign(DeprecatedOctokit, {
Octokit: OctokitRest
});
Object.keys(OctokitRest).forEach(key => {
/* istanbul ignore else */
if (OctokitRest.hasOwnProperty(key)) {
Octokit[key] = OctokitRest[key];
}
});
module.exports = Octokit;
/***/ }),
/***/ 2:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const os = __webpack_require__(87);
const macosRelease = __webpack_require__(118);
const winRelease = __webpack_require__(49);
const osName = (platform, release) => {
if (!platform && release) {
throw new Error('You can\'t specify a `release` without specifying `platform`');
}
platform = platform || os.platform();
let id;
if (platform === 'darwin') {
if (!release && os.platform() === 'darwin') {
release = os.release();
}
const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
id = release ? macosRelease(release).name : '';
return prefix + (id ? ' ' + id : '');
}
if (platform === 'linux') {
if (!release && os.platform() === 'linux') {
release = os.release();
}
id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
return 'Linux' + (id ? ' ' + id : '');
}
if (platform === 'win32') {
if (!release && os.platform() === 'win32') {
release = os.release();
}
id = release ? winRelease(release) : '';
return 'Windows' + (id ? ' ' + id : '');
}
return platform;
};
module.exports = osName;
/***/ }),
/***/ 9:
/***/ (function(module, __unusedexports, __webpack_require__) {
var once = __webpack_require__(969);
var noop = function() {};
var isRequest = function(stream) {
return stream.setHeader && typeof stream.abort === 'function';
};
var isChildProcess = function(stream) {
return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
};
var eos = function(stream, opts, callback) {
if (typeof opts === 'function') return eos(stream, null, opts);
if (!opts) opts = {};
callback = once(callback || noop);
var ws = stream._writableState;
var rs = stream._readableState;
var readable = opts.readable || (opts.readable !== false && stream.readable);
var writable = opts.writable || (opts.writable !== false && stream.writable);
var cancelled = false;
var onlegacyfinish = function() {
if (!stream.writable) onfinish();
};
var onfinish = function() {
writable = false;
if (!readable) callback.call(stream);
};
var onend = function() {
readable = false;
if (!writable) callback.call(stream);
};
var onexit = function(exitCode) {
callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
};
var onerror = function(err) {
callback.call(stream, err);
};
var onclose = function() {
process.nextTick(onclosenexttick);
};
var onclosenexttick = function() {
if (cancelled) return;
if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
};
var onrequest = function() {
stream.req.on('finish', onfinish);
};
if (isRequest(stream)) {
stream.on('complete', onfinish);
stream.on('abort', onclose);
if (stream.req) onrequest();
else stream.on('request', onrequest);
} else if (writable && !ws) { // legacy streams
stream.on('end', onlegacyfinish);
stream.on('close', onlegacyfinish);
}
if (isChildProcess(stream)) stream.on('exit', onexit);
stream.on('end', onend);
stream.on('finish', onfinish);
if (opts.error !== false) stream.on('error', onerror);
stream.on('close', onclose);
return function() {
cancelled = true;
stream.removeListener('complete', onfinish);
stream.removeListener('abort', onclose);
stream.removeListener('request', onrequest);
if (stream.req) stream.req.removeListener('finish', onfinish);
stream.removeListener('end', onlegacyfinish);
stream.removeListener('close', onlegacyfinish);
stream.removeListener('finish', onfinish);
stream.removeListener('exit', onexit);
stream.removeListener('end', onend);
stream.removeListener('error', onerror);
stream.removeListener('close', onclose);
};
};
module.exports = eos;
/***/ }),
/***/ 11:
/***/ (function(module) {
// Returns a wrapper function that returns a wrapped callback
// The wrapper function should do some stuff, and return a
// presumably different callback function.
// This makes sure that own properties are retained, so that
// decorations and such are not lost along the way.
module.exports = wrappy
function wrappy (fn, cb) {
if (fn && cb) return wrappy(fn)(cb)
if (typeof fn !== 'function')
throw new TypeError('need wrapper function')
Object.keys(fn).forEach(function (k) {
wrapper[k] = fn[k]
})
return wrapper
function wrapper() {
var args = new Array(arguments.length)
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i]
}
var ret = fn.apply(this, args)
var cb = args[args.length-1]
if (typeof ret === 'function' && ret !== cb) {
Object.keys(cb).forEach(function (k) {
ret[k] = cb[k]
})
}
return ret
}
}
/***/ }),
/***/ 16:
/***/ (function(module) {
module.exports = require("tls");
/***/ }),
/***/ 18:
/***/ (function() {
eval("require")("encoding");
/***/ }),
/***/ 19:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationPlugin;
const { Deprecation } = __webpack_require__(692);
const once = __webpack_require__(969);
const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
const authenticate = __webpack_require__(674);
const beforeRequest = __webpack_require__(471);
const requestError = __webpack_require__(349);
function authenticationPlugin(octokit, options) {
if (options.auth) {
octokit.authenticate = () => {
deprecateAuthenticate(
octokit.log,
new Deprecation(
'[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
)
);
};
return;
}
const state = {
octokit,
auth: false
};
octokit.authenticate = authenticate.bind(null, state);
octokit.hook.before("request", beforeRequest.bind(null, state));
octokit.hook.error("request", requestError.bind(null, state));
}
/***/ }),
/***/ 20:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const cp = __webpack_require__(129);
const parse = __webpack_require__(568);
const enoent = __webpack_require__(881);
function spawn(command, args, options) {
// Parse the arguments
const parsed = parse(command, args, options);
// Spawn the child process
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
// Hook into child process "exit" event to emit an error if the command
// does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
enoent.hookChildProcess(spawned, parsed);
return spawned;
}
function spawnSync(command, args, options) {
// Parse the arguments
const parsed = parse(command, args, options);
// Spawn the child process
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
// Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
return result;
}
module.exports = spawn;
module.exports.spawn = spawn;
module.exports.sync = spawnSync;
module.exports._parse = parse;
module.exports._enoent = enoent;
/***/ }),
/***/ 24:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var parse = __webpack_require__(657);
var pack = __webpack_require__(367);
exports.read = function(buffer, options) {
return parse(buffer, options || {});
};
exports.write = function(png, options) {
return pack(png, options);
};
/***/ }),
/***/ 34:
/***/ (function(module) {
module.exports = require("https");
/***/ }),
/***/ 39:
/***/ (function(module) {
"use strict";
module.exports = opts => {
opts = opts || {};
const env = opts.env || process.env;
const platform = opts.platform || process.platform;
if (platform !== 'win32') {
return 'PATH';
}
return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
};
/***/ }),
/***/ 47:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = factory;
const Octokit = __webpack_require__(402);
const registerPlugin = __webpack_require__(855);
function factory(plugins) {
const Api = Octokit.bind(null, plugins || []);
Api.plugin = registerPlugin.bind(null, plugins || []);
return Api;
}
/***/ }),
/***/ 48:
/***/ (function(module, exports) {
exports = module.exports = SemVer
var debug
/* istanbul ignore next */
if (typeof process === 'object' &&
process.env &&
process.env.NODE_DEBUG &&
/\bsemver\b/i.test(process.env.NODE_DEBUG)) {
debug = function () {
var args = Array.prototype.slice.call(arguments, 0)
args.unshift('SEMVER')
console.log.apply(console, args)
}
} else {
debug = function () {}
}
// Note: this is the semver.org version of the spec that it implements
// Not necessarily the package version of this code.
exports.SEMVER_SPEC_VERSION = '2.0.0'
var MAX_LENGTH = 256
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
/* istanbul ignore next */ 9007199254740991
// Max safe segment length for coercion.
var MAX_SAFE_COMPONENT_LENGTH = 16
// The actual regexps go on exports.re
var re = exports.re = []
var src = exports.src = []
var R = 0
// The following Regular Expressions can be used for tokenizing,
// validating, and parsing SemVer version strings.
// ## Numeric Identifier
// A single `0`, or a non-zero digit followed by zero or more digits.
var NUMERICIDENTIFIER = R++
src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
var NUMERICIDENTIFIERLOOSE = R++
src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
// ## Non-numeric Identifier
// Zero or more digits, followed by a letter or hyphen, and then zero or
// more letters, digits, or hyphens.
var NONNUMERICIDENTIFIER = R++
src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
// ## Main Version
// Three dot-separated numeric identifiers.
var MAINVERSION = R++
src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
'(' + src[NUMERICIDENTIFIER] + ')\\.' +
'(' + src[NUMERICIDENTIFIER] + ')'
var MAINVERSIONLOOSE = R++
src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
'(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
'(' + src[NUMERICIDENTIFIERLOOSE] + ')'
// ## Pre-release Version Identifier
// A numeric identifier, or a non-numeric identifier.
var PRERELEASEIDENTIFIER = R++
src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
'|' + src[NONNUMERICIDENTIFIER] + ')'
var PRERELEASEIDENTIFIERLOOSE = R++
src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
'|' + src[NONNUMERICIDENTIFIER] + ')'
// ## Pre-release Version
// Hyphen, followed by one or more dot-separated pre-release version
// identifiers.
var PRERELEASE = R++
src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
'(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
var PRERELEASELOOSE = R++
src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
'(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
// ## Build Metadata Identifier
// Any combination of digits, letters, or hyphens.
var BUILDIDENTIFIER = R++
src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
// ## Build Metadata
// Plus sign, followed by one or more period-separated build metadata
// identifiers.
var BUILD = R++
src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
'(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
// ## Full Version String
// A main version, followed optionally by a pre-release version and
// build metadata.
// Note that the only major, minor, patch, and pre-release sections of
// the version string are capturing groups. The build metadata is not a
// capturing group, because it should not ever be used in version
// comparison.
var FULL = R++
var FULLPLAIN = 'v?' + src[MAINVERSION] +
src[PRERELEASE] + '?' +
src[BUILD] + '?'
src[FULL] = '^' + FULLPLAIN + '$'
// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
// common in the npm registry.
var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
src[PRERELEASELOOSE] + '?' +
src[BUILD] + '?'
var LOOSE = R++
src[LOOSE] = '^' + LOOSEPLAIN + '$'
var GTLT = R++
src[GTLT] = '((?:<|>)?=?)'
// Something like "2.*" or "1.2.x".
// Note that "x.x" is a valid xRange identifer, meaning "any version"
// Only the first item is strictly required.
var XRANGEIDENTIFIERLOOSE = R++
src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
var XRANGEIDENTIFIER = R++
src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
var XRANGEPLAIN = R++
src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
'(?:' + src[PRERELEASE] + ')?' +
src[BUILD] + '?' +
')?)?'
var XRANGEPLAINLOOSE = R++
src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
'(?:' + src[PRERELEASELOOSE] + ')?' +
src[BUILD] + '?' +
')?)?'
var XRANGE = R++
src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
var XRANGELOOSE = R++
src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
// Coercion.
// Extract anything that could conceivably be a part of a valid semver
var COERCE = R++
src[COERCE] = '(?:^|[^\\d])' +
'(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
'(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
'(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
'(?:$|[^\\d])'
// Tilde ranges.
// Meaning is "reasonably at or greater than"
var LONETILDE = R++
src[LONETILDE] = '(?:~>?)'
var TILDETRIM = R++
src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
var tildeTrimReplace = '$1~'
var TILDE = R++
src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
var TILDELOOSE = R++
src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
// Caret ranges.
// Meaning is "at least and backwards compatible with"
var LONECARET = R++
src[LONECARET] = '(?:\\^)'
var CARETTRIM = R++
src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
var caretTrimReplace = '$1^'
var CARET = R++
src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
var CARETLOOSE = R++
src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
// A simple gt/lt/eq thing, or just "" to indicate "any version"
var COMPARATORLOOSE = R++
src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
var COMPARATOR = R++
src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
// An expression to strip any whitespace between the gtlt and the thing
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
var COMPARATORTRIM = R++
src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
'\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
// this one has to use the /g flag
re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
var comparatorTrimReplace = '$1$2$3'
// Something like `1.2.3 - 1.2.4`
// Note that these all use the loose form, because they'll be
// checked against either the strict or loose comparator form
// later.
var HYPHENRANGE = R++
src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
'\\s+-\\s+' +
'(' + src[XRANGEPLAIN] + ')' +
'\\s*$'
var HYPHENRANGELOOSE = R++
src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
'\\s+-\\s+' +
'(' + src[XRANGEPLAINLOOSE] + ')' +
'\\s*$'
// Star ranges basically just allow anything at all.
var STAR = R++
src[STAR] = '(<|>)?=?\\s*\\*'
// Compile to actual regexp objects.
// All are flag-free, unless they were created above with a flag.
for (var i = 0; i < R; i++) {
debug(i, src[i])
if (!re[i]) {
re[i] = new RegExp(src[i])
}
}
exports.parse = parse
function parse (version, options) {
if (!options || typeof options !== 'object') {
options = {
loose: !!options,
includePrerelease: false
}
}
if (version instanceof SemVer) {
return version
}
if (typeof version !== 'string') {
return null
}
if (version.length > MAX_LENGTH) {
return null
}
var r = options.loose ? re[LOOSE] : re[FULL]
if (!r.test(version)) {
return null
}
try {
return new SemVer(version, options)
} catch (er) {
return null
}
}
exports.valid = valid
function valid (version, options) {
var v = parse(version, options)
return v ? v.version : null
}
exports.clean = clean
function clean (version, options) {
var s = parse(version.trim().replace(/^[=v]+/, ''), options)
return s ? s.version : null
}
exports.SemVer = SemVer
function SemVer (version, options) {
if (!options || typeof options !== 'object') {
options = {
loose: !!options,
includePrerelease: false
}
}
if (version instanceof SemVer) {
if (version.loose === options.loose) {
return version
} else {
version = version.version
}
} else if (typeof version !== 'string') {
throw new TypeError('Invalid Version: ' + version)
}
if (version.length > MAX_LENGTH) {
throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
}
if (!(this instanceof SemVer)) {
return new SemVer(version, options)
}
debug('SemVer', version, options)
this.options = options
this.loose = !!options.loose
var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
if (!m) {
throw new TypeError('Invalid Version: ' + version)
}
this.raw = version
// these are actually numbers
this.major = +m[1]
this.minor = +m[2]
this.patch = +m[3]
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
throw new TypeError('Invalid major version')
}
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
throw new TypeError('Invalid minor version')
}
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
throw new TypeError('Invalid patch version')
}
// numberify any prerelease numeric ids
if (!m[4]) {
this.prerelease = []
} else {
this.prerelease = m[4].split('.').map(function (id) {
if (/^[0-9]+$/.test(id)) {
var num = +id
if (num >= 0 && num < MAX_SAFE_INTEGER) {
return num
}
}
return id
})
}
this.build = m[5] ? m[5].split('.') : []
this.format()
}
SemVer.prototype.format = function () {
this.version = this.major + '.' + this.minor + '.' + this.patch
if (this.prerelease.length) {
this.version += '-' + this.prerelease.join('.')
}
return this.version
}
SemVer.prototype.toString = function () {
return this.version
}
SemVer.prototype.compare = function (other) {
debug('SemVer.compare', this.version, this.options, other)
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
return this.compareMain(other) || this.comparePre(other)
}
SemVer.prototype.compareMain = function (other) {
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
return compareIdentifiers(this.major, other.major) ||
compareIdentifiers(this.minor, other.minor) ||
compareIdentifiers(this.patch, other.patch)
}
SemVer.prototype.comparePre = function (other) {
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
// NOT having a prerelease is > having one
if (this.prerelease.length && !other.prerelease.length) {
return -1
} else if (!this.prerelease.length && other.prerelease.length) {
return 1
} else if (!this.prerelease.length && !other.prerelease.length) {
return 0
}
var i = 0
do {
var a = this.prerelease[i]
var b = other.prerelease[i]
debug('prerelease compare', i, a, b)
if (a === undefined && b === undefined) {
return 0
} else if (b === undefined) {
return 1
} else if (a === undefined) {
return -1
} else if (a === b) {
continue
} else {
return compareIdentifiers(a, b)
}
} while (++i)
}
// preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way.
SemVer.prototype.inc = function (release, identifier) {
switch (release) {
case 'premajor':
this.prerelease.length = 0
this.patch = 0
this.minor = 0
this.major++
this.inc('pre', identifier)
break
case 'preminor':
this.prerelease.length = 0
this.patch = 0
this.minor++
this.inc('pre', identifier)
break
case 'prepatch':
// If this is already a prerelease, it will bump to the next version
// drop any prereleases that might already exist, since they are not
// relevant at this point.
this.prerelease.length = 0
this.inc('patch', identifier)
this.inc('pre', identifier)
break
// If the input is a non-prerelease version, this acts the same as
// prepatch.
case 'prerelease':
if (this.prerelease.length === 0) {
this.inc('patch', identifier)
}
this.inc('pre', identifier)
break
case 'major':
// If this is a pre-major version, bump up to the same major version.
// Otherwise increment major.
// 1.0.0-5 bumps to 1.0.0
// 1.1.0 bumps to 2.0.0
if (this.minor !== 0 ||
this.patch !== 0 ||
this.prerelease.length === 0) {
this.major++
}
this.minor = 0
this.patch = 0
this.prerelease = []
break
case 'minor':
// If this is a pre-minor version, bump up to the same minor version.
// Otherwise increment minor.
// 1.2.0-5 bumps to 1.2.0
// 1.2.1 bumps to 1.3.0
if (this.patch !== 0 || this.prerelease.length === 0) {
this.minor++
}
this.patch = 0
this.prerelease = []
break
case 'patch':
// If this is not a pre-release version, it will increment the patch.
// If it is a pre-release it will bump up to the same patch version.
// 1.2.0-5 patches to 1.2.0
// 1.2.0 patches to 1.2.1
if (this.prerelease.length === 0) {
this.patch++
}
this.prerelease = []
break
// This probably shouldn't be used publicly.
// 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
case 'pre':
if (this.prerelease.length === 0) {
this.prerelease = [0]
} else {
var i = this.prerelease.length
while (--i >= 0) {
if (typeof this.prerelease[i] === 'number') {
this.prerelease[i]++
i = -2
}
}
if (i === -1) {
// didn't increment anything
this.prerelease.push(0)
}
}
if (identifier) {
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
if (this.prerelease[0] === identifier) {
if (isNaN(this.prerelease[1])) {
this.prerelease = [identifier, 0]
}
} else {
this.prerelease = [identifier, 0]
}
}
break
default:
throw new Error('invalid increment argument: ' + release)
}
this.format()
this.raw = this.version
return this
}
exports.inc = inc
function inc (version, release, loose, identifier) {
if (typeof (loose) === 'string') {
identifier = loose
loose = undefined
}
try {
return new SemVer(version, loose).inc(release, identifier).version
} catch (er) {
return null
}
}
exports.diff = diff
function diff (version1, version2) {
if (eq(version1, version2)) {
return null
} else {
var v1 = parse(version1)
var v2 = parse(version2)
var prefix = ''
if (v1.prerelease.length || v2.prerelease.length) {
prefix = 'pre'
var defaultResult = 'prerelease'
}
for (var key in v1) {
if (key === 'major' || key === 'minor' || key === 'patch') {
if (v1[key] !== v2[key]) {
return prefix + key
}
}
}
return defaultResult // may be undefined
}
}
exports.compareIdentifiers = compareIdentifiers
var numeric = /^[0-9]+$/
function compareIdentifiers (a, b) {
var anum = numeric.test(a)
var bnum = numeric.test(b)
if (anum && bnum) {
a = +a
b = +b
}
return a === b ? 0
: (anum && !bnum) ? -1
: (bnum && !anum) ? 1
: a < b ? -1
: 1
}
exports.rcompareIdentifiers = rcompareIdentifiers
function rcompareIdentifiers (a, b) {
return compareIdentifiers(b, a)
}
exports.major = major
function major (a, loose) {
return new SemVer(a, loose).major
}
exports.minor = minor
function minor (a, loose) {
return new SemVer(a, loose).minor
}
exports.patch = patch
function patch (a, loose) {
return new SemVer(a, loose).patch
}
exports.compare = compare
function compare (a, b, loose) {
return new SemVer(a, loose).compare(new SemVer(b, loose))
}
exports.compareLoose = compareLoose
function compareLoose (a, b) {
return compare(a, b, true)
}
exports.rcompare = rcompare
function rcompare (a, b, loose) {
return compare(b, a, loose)
}
exports.sort = sort
function sort (list, loose) {
return list.sort(function (a, b) {
return exports.compare(a, b, loose)
})
}
exports.rsort = rsort
function rsort (list, loose) {
return list.sort(function (a, b) {
return exports.rcompare(a, b, loose)
})
}
exports.gt = gt
function gt (a, b, loose) {
return compare(a, b, loose) > 0
}
exports.lt = lt
function lt (a, b, loose) {
return compare(a, b, loose) < 0
}
exports.eq = eq
function eq (a, b, loose) {
return compare(a, b, loose) === 0
}
exports.neq = neq
function neq (a, b, loose) {
return compare(a, b, loose) !== 0
}
exports.gte = gte
function gte (a, b, loose) {
return compare(a, b, loose) >= 0
}
exports.lte = lte
function lte (a, b, loose) {
return compare(a, b, loose) <= 0
}
exports.cmp = cmp
function cmp (a, op, b, loose) {
switch (op) {
case '===':
if (typeof a === 'object')
a = a.version
if (typeof b === 'object')
b = b.version
return a === b
case '!==':
if (typeof a === 'object')
a = a.version
if (typeof b === 'object')
b = b.version
return a !== b
case '':
case '=':
case '==':
return eq(a, b, loose)
case '!=':
return neq(a, b, loose)
case '>':
return gt(a, b, loose)
case '>=':
return gte(a, b, loose)
case '<':
return lt(a, b, loose)
case '<=':
return lte(a, b, loose)
default:
throw new TypeError('Invalid operator: ' + op)
}
}
exports.Comparator = Comparator
function Comparator (comp, options) {
if (!options || typeof options !== 'object') {
options = {
loose: !!options,
includePrerelease: false
}
}
if (comp instanceof Comparator) {
if (comp.loose === !!options.loose) {
return comp
} else {
comp = comp.value
}
}
if (!(this instanceof Comparator)) {
return new Comparator(comp, options)
}
debug('comparator', comp, options)
this.options = options
this.loose = !!options.loose
this.parse(comp)
if (this.semver === ANY) {
this.value = ''
} else {
this.value = this.operator + this.semver.version
}
debug('comp', this)
}
var ANY = {}
Comparator.prototype.parse = function (comp) {
var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
var m = comp.match(r)
if (!m) {
throw new TypeError('Invalid comparator: ' + comp)
}
this.operator = m[1]
if (this.operator === '=') {
this.operator = ''
}
// if it literally is just '>' or '' then allow anything.
if (!m[2]) {
this.semver = ANY
} else {
this.semver = new SemVer(m[2], this.options.loose)
}
}
Comparator.prototype.toString = function () {
return this.value
}
Comparator.prototype.test = function (version) {
debug('Comparator.test', version, this.options.loose)
if (this.semver === ANY) {
return true
}
if (typeof version === 'string') {
version = new SemVer(version, this.options)
}
return cmp(version, this.operator, this.semver, this.options)
}
Comparator.prototype.intersects = function (comp, options) {
if (!(comp instanceof Comparator)) {
throw new TypeError('a Comparator is required')
}
if (!options || typeof options !== 'object') {
options = {
loose: !!options,
includePrerelease: false
}
}
var rangeTmp
if (this.operator === '') {
rangeTmp = new Range(comp.value, options)
return satisfies(this.value, rangeTmp, options)
} else if (comp.operator === '') {
rangeTmp = new Range(this.value, options)
return satisfies(comp.semver, rangeTmp, options)
}
var sameDirectionIncreasing =
(this.operator === '>=' || this.operator === '>') &&
(comp.operator === '>=' || comp.operator === '>')
var sameDirectionDecreasing =
(this.operator === '<=' || this.operator === '<') &&
(comp.operator === '<=' || comp.operator === '<')
var sameSemVer = this.semver.version === comp.semver.version
var differentDirectionsInclusive =
(this.operator === '>=' || this.operator === '<=') &&
(comp.operator === '>=' || comp.operator === '<=')
var oppositeDirectionsLessThan =
cmp(this.semver, '<', comp.semver, options) &&
((this.operator === '>=' || this.operator === '>') &&
(comp.operator === '<=' || comp.operator === '<'))
var oppositeDirectionsGreaterThan =
cmp(this.semver, '>', comp.semver, options) &&
((this.operator === '<=' || this.operator === '<') &&
(comp.operator === '>=' || comp.operator === '>'))
return sameDirectionIncreasing || sameDirectionDecreasing ||
(sameSemVer && differentDirectionsInclusive) ||
oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
}
exports.Range = Range
function Range (range, options) {
if (!options || typeof options !== 'object') {
options = {
loose: !!options,
includePrerelease: false
}
}
if (range instanceof Range) {
if (range.loose === !!options.loose &&
range.includePrerelease === !!options.includePrerelease) {
return range
} else {
return new Range(range.raw, options)
}
}
if (range instanceof Comparator) {
return new Range(range.value, options)
}
if (!(this instanceof Range)) {
return new Range(range, options)
}
this.options = options
this.loose = !!options.loose
this.includePrerelease = !!options.includePrerelease
// First, split based on boolean or ||
this.raw = range
this.set = range.split(/\s*\|\|\s*/).map(function (range) {
return this.parseRange(range.trim())
}, this).filter(function (c) {
// throw out any that are not relevant for whatever reason
return c.length
})
if (!this.set.length) {
throw new TypeError('Invalid SemVer Range: ' + range)
}
this.format()
}
Range.prototype.format = function () {
this.range = this.set.map(function (comps) {
return comps.join(' ').trim()
}).join('||').trim()
return this.range
}
Range.prototype.toString = function () {
return this.range
}
Range.prototype.parseRange = function (range) {
var loose = this.options.loose
range = range.trim()
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
range = range.replace(hr, hyphenReplace)
debug('hyphen replace', range)
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
debug('comparator trim', range, re[COMPARATORTRIM])
// `~ 1.2.3` => `~1.2.3`
range = range.replace(re[TILDETRIM], tildeTrimReplace)
// `^ 1.2.3` => `^1.2.3`
range = range.replace(re[CARETTRIM], caretTrimReplace)
// normalize spaces
range = range.split(/\s+/).join(' ')
// At this point, the range is completely trimmed and
// ready to be split into comparators.
var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
var set = range.split(' ').map(function (comp) {
return parseComparator(comp, this.options)
}, this).join(' ').split(/\s+/)
if (this.options.loose) {
// in loose mode, throw out any that are not valid comparators
set = set.filter(function (comp) {
return !!comp.match(compRe)
})
}
set = set.map(function (comp) {
return new Comparator(comp, this.options)
}, this)
return set
}
Range.prototype.intersects = function (range, options) {
if (!(range instanceof Range)) {
throw new TypeError('a Range is required')
}
return this.set.some(function (thisComparators) {
return thisComparators.every(function (thisComparator) {
return range.set.some(function (rangeComparators) {
return rangeComparators.every(function (rangeComparator) {
return thisComparator.intersects(rangeComparator, options)
})
})
})
})
}
// Mostly just for testing and legacy API reasons
exports.toComparators = toComparators
function toComparators (range, options) {
return new Range(range, options).set.map(function (comp) {
return comp.map(function (c) {
return c.value
}).join(' ').trim().split(' ')
})
}
// comprised of xranges, tildes, stars, and gtlt's at this point.
// already replaced the hyphen ranges
// turn into a set of JUST comparators.
function parseComparator (comp, options) {
debug('comp', comp, options)
comp = replaceCarets(comp, options)
debug('caret', comp)
comp = replaceTildes(comp, options)
debug('tildes', comp)
comp = replaceXRanges(comp, options)
debug('xrange', comp)
comp = replaceStars(comp, options)
debug('stars', comp)
return comp
}
function isX (id) {
return !id || id.toLowerCase() === 'x' || id === '*'
}
// ~, ~> --> * (any, kinda silly)
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
function replaceTildes (comp, options) {
return comp.trim().split(/\s+/).map(function (comp) {
return replaceTilde(comp, options)
}).join(' ')
}
function replaceTilde (comp, options) {
var r = options.loose ? re[TILDELOOSE] : re[TILDE]
return comp.replace(r, function (_, M, m, p, pr) {
debug('tilde', comp, _, M, m, p, pr)
var ret
if (isX(M)) {
ret = ''
} else if (isX(m)) {
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
} else if (isX(p)) {
// ~1.2 == >=1.2.0 <1.3.0
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
} else if (pr) {
debug('replaceTilde pr', pr)
ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
' <' + M + '.' + (+m + 1) + '.0'
} else {
// ~1.2.3 == >=1.2.3 <1.3.0
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + (+m + 1) + '.0'
}
debug('tilde return', ret)
return ret
})
}
// ^ --> * (any, kinda silly)
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
// ^1.2.3 --> >=1.2.3 <2.0.0
// ^1.2.0 --> >=1.2.0 <2.0.0
function replaceCarets (comp, options) {
return comp.trim().split(/\s+/).map(function (comp) {
return replaceCaret(comp, options)
}).join(' ')
}
function replaceCaret (comp, options) {
debug('caret', comp, options)
var r = options.loose ? re[CARETLOOSE] : re[CARET]
return comp.replace(r, function (_, M, m, p, pr) {
debug('caret', comp, _, M, m, p, pr)
var ret
if (isX(M)) {
ret = ''
} else if (isX(m)) {
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
} else if (isX(p)) {
if (M === '0') {
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
} else {
ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
}
} else if (pr) {
debug('replaceCaret pr', pr)
if (M === '0') {
if (m === '0') {
ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
' <' + M + '.' + m + '.' + (+p + 1)
} else {
ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
' <' + M + '.' + (+m + 1) + '.0'
}
} else {
ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
' <' + (+M + 1) + '.0.0'
}
} else {
debug('no pr')
if (M === '0') {
if (m === '0') {
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + m + '.' + (+p + 1)
} else {
ret = '>=' + M + '.' + m + '.' + p +
' <' + M + '.' + (+m + 1) + '.0'
}
} else {
ret = '>=' + M + '.' + m + '.' + p +
' <' + (+M + 1) + '.0.0'
}
}
debug('caret return', ret)
return ret
})
}
function replaceXRanges (comp, options) {
debug('replaceXRanges', comp, options)
return comp.split(/\s+/).map(function (comp) {
return replaceXRange(comp, options)
}).join(' ')
}
function replaceXRange (comp, options) {
comp = comp.trim()
var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
debug('xRange', comp, ret, gtlt, M, m, p, pr)
var xM = isX(M)
var xm = xM || isX(m)
var xp = xm || isX(p)
var anyX = xp
if (gtlt === '=' && anyX) {
gtlt = ''
}
if (xM) {
if (gtlt === '>' || gtlt === '<') {
// nothing is allowed
ret = '<0.0.0'
} else {
// nothing is forbidden
ret = '*'
}
} else if (gtlt && anyX) {
// we know patch is an x, because we have any x at all.
// replace X with 0
if (xm) {
m = 0
}
p = 0
if (gtlt === '>') {
// >1 => >=2.0.0
// >1.2 => >=1.3.0
// >1.2.3 => >= 1.2.4
gtlt = '>='
if (xm) {
M = +M + 1
m = 0
p = 0
} else {
m = +m + 1
p = 0
}
} else if (gtlt === '<=') {
// <=0.7.x is actually <0.8.0, since any 0.7.x should
// pass. Similarly, <=7.x is actually <8.0.0, etc.
gtlt = '<'
if (xm) {
M = +M + 1
} else {
m = +m + 1
}
}
ret = gtlt + M + '.' + m + '.' + p
} else if (xm) {
ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
} else if (xp) {
ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
}
debug('xRange return', ret)
return ret
})
}
// Because * is AND-ed with everything else in the comparator,
// and '' means "any version", just remove the *s entirely.
function replaceStars (comp, options) {
debug('replaceStars', comp, options)
// Looseness is ignored here. star is always as loose as it gets!
return comp.trim().replace(re[STAR], '')
}
// This function is passed to string.replace(re[HYPHENRANGE])
// M, m, patch, prerelease, build
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0
function hyphenReplace ($0,
from, fM, fm, fp, fpr, fb,
to, tM, tm, tp, tpr, tb) {
if (isX(fM)) {
from = ''
} else if (isX(fm)) {
from = '>=' + fM + '.0.0'
} else if (isX(fp)) {
from = '>=' + fM + '.' + fm + '.0'
} else {
from = '>=' + from
}
if (isX(tM)) {
to = ''
} else if (isX(tm)) {
to = '<' + (+tM + 1) + '.0.0'
} else if (isX(tp)) {
to = '<' + tM + '.' + (+tm + 1) + '.0'
} else if (tpr) {
to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
} else {
to = '<=' + to
}
return (from + ' ' + to).trim()
}
// if ANY of the sets match ALL of its comparators, then pass
Range.prototype.test = function (version) {
if (!version) {
return false
}
if (typeof version === 'string') {
version = new SemVer(version, this.options)
}
for (var i = 0; i < this.set.length; i++) {
if (testSet(this.set[i], version, this.options)) {
return true
}
}
return false
}
function testSet (set, version, options) {
for (var i = 0; i < set.length; i++) {
if (!set[i].test(version)) {
return false
}
}
if (version.prerelease.length && !options.includePrerelease) {
// Find the set of versions that are allowed to have prereleases
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
// That should allow `1.2.3-pr.2` to pass.
// However, `1.2.4-alpha.notready` should NOT be allowed,
// even though it's within the range set by the comparators.
for (i = 0; i < set.length; i++) {
debug(set[i].semver)
if (set[i].semver === ANY) {
continue
}
if (set[i].semver.prerelease.length > 0) {
var allowed = set[i].semver
if (allowed.major === version.major &&
allowed.minor === version.minor &&
allowed.patch === version.patch) {
return true
}
}
}
// Version has a -pre, but it's not one of the ones we like.
return false
}
return true
}
exports.satisfies = satisfies
function satisfies (version, range, options) {
try {
range = new Range(range, options)
} catch (er) {
return false
}
return range.test(version)
}
exports.maxSatisfying = maxSatisfying
function maxSatisfying (versions, range, options) {
var max = null
var maxSV = null
try {
var rangeObj = new Range(range, options)
} catch (er) {
return null
}
versions.forEach(function (v) {
if (rangeObj.test(v)) {
// satisfies(v, range, options)
if (!max || maxSV.compare(v) === -1) {
// compare(max, v, true)
max = v
maxSV = new SemVer(max, options)
}
}
})
return max
}
exports.minSatisfying = minSatisfying
function minSatisfying (versions, range, options) {
var min = null
var minSV = null
try {
var rangeObj = new Range(range, options)
} catch (er) {
return null
}
versions.forEach(function (v) {
if (rangeObj.test(v)) {
// satisfies(v, range, options)
if (!min || minSV.compare(v) === 1) {
// compare(min, v, true)
min = v
minSV = new SemVer(min, options)
}
}
})
return min
}
exports.minVersion = minVersion
function minVersion (range, loose) {
range = new Range(range, loose)
var minver = new SemVer('0.0.0')
if (range.test(minver)) {
return minver
}
minver = new SemVer('0.0.0-0')
if (range.test(minver)) {
return minver
}
minver = null
for (var i = 0; i < range.set.length; ++i) {
var comparators = range.set[i]
comparators.forEach(function (comparator) {
// Clone to avoid manipulating the comparator's semver object.
var compver = new SemVer(comparator.semver.version)
switch (comparator.operator) {
case '>':
if (compver.prerelease.length === 0) {
compver.patch++
} else {
compver.prerelease.push(0)
}
compver.raw = compver.format()
/* fallthrough */
case '':
case '>=':
if (!minver || gt(minver, compver)) {
minver = compver
}
break
case '<':
case '<=':
/* Ignore maximum versions */
break
/* istanbul ignore next */
default:
throw new Error('Unexpected operation: ' + comparator.operator)
}
})
}
if (minver && range.test(minver)) {
return minver
}
return null
}
exports.validRange = validRange
function validRange (range, options) {
try {
// Return '*' instead of '' so that truthiness works.
// This will throw if it's invalid anyway
return new Range(range, options).range || '*'
} catch (er) {
return null
}
}
// Determine if version is less than all the versions possible in the range
exports.ltr = ltr
function ltr (version, range, options) {
return outside(version, range, '<', options)
}
// Determine if version is greater than all the versions possible in the range.
exports.gtr = gtr
function gtr (version, range, options) {
return outside(version, range, '>', options)
}
exports.outside = outside
function outside (version, range, hilo, options) {
version = new SemVer(version, options)
range = new Range(range, options)
var gtfn, ltefn, ltfn, comp, ecomp
switch (hilo) {
case '>':
gtfn = gt
ltefn = lte
ltfn = lt
comp = '>'
ecomp = '>='
break
case '<':
gtfn = lt
ltefn = gte
ltfn = gt
comp = '<'
ecomp = '<='
break
default:
throw new TypeError('Must provide a hilo val of "<" or ">"')
}
// If it satisifes the range it is not outside
if (satisfies(version, range, options)) {
return false
}
// From now on, variable terms are as if we're in "gtr" mode.
// but note that everything is flipped for the "ltr" function.
for (var i = 0; i < range.set.length; ++i) {
var comparators = range.set[i]
var high = null
var low = null
comparators.forEach(function (comparator) {
if (comparator.semver === ANY) {
comparator = new Comparator('>=0.0.0')
}
high = high || comparator
low = low || comparator
if (gtfn(comparator.semver, high.semver, options)) {
high = comparator
} else if (ltfn(comparator.semver, low.semver, options)) {
low = comparator
}
})
// If the edge version comparator has a operator then our version
// isn't outside it
if (high.operator === comp || high.operator === ecomp) {
return false
}
// If the lowest version comparator has an operator and our version
// is less than it then it isn't higher than the range
if ((!low.operator || low.operator === comp) &&
ltefn(version, low.semver)) {
return false
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
return false
}
}
return true
}
exports.prerelease = prerelease
function prerelease (version, options) {
var parsed = parse(version, options)
return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
}
exports.intersects = intersects
function intersects (r1, r2, options) {
r1 = new Range(r1, options)
r2 = new Range(r2, options)
return r1.intersects(r2)
}
exports.coerce = coerce
function coerce (version) {
if (version instanceof SemVer) {
return version
}
if (typeof version !== 'string') {
return null
}
var match = version.match(re[COERCE])
if (match == null) {
return null
}
return parse(match[1] +
'.' + (match[2] || '0') +
'.' + (match[3] || '0'))
}
/***/ }),
/***/ 49:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const os = __webpack_require__(87);
const execa = __webpack_require__(955);
// Reference: https://www.gaijin.at/en/lstwinver.php
const names = new Map([
['10.0', '10'],
['6.3', '8.1'],
['6.2', '8'],
['6.1', '7'],
['6.0', 'Vista'],
['5.2', 'Server 2003'],
['5.1', 'XP'],
['5.0', '2000'],
['4.9', 'ME'],
['4.1', '98'],
['4.0', '95']
]);
const windowsRelease = release => {
const version = /\d+\.\d/.exec(release || os.release());
if (release && !version) {
throw new Error('`release` argument doesn\'t match `n.n`');
}
const ver = (version || [])[0];
// Server 2008, 2012 and 2016 versions are ambiguous with desktop versions and must be detected at runtime.
// If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
// then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
// If the resulting caption contains the year 2008, 2012 or 2016, it is a server version, so return a server OS name.
if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
const stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
const year = (stdout.match(/2008|2012|2016/) || [])[0];
if (year) {
return `Server ${year}`;
}
}
return names.get(ver);
};
module.exports = windowsRelease;
/***/ }),
/***/ 50:
/***/ (function(__unusedmodule, exports) {
exports.L = { bit: 1 }
exports.M = { bit: 0 }
exports.Q = { bit: 3 }
exports.H = { bit: 2 }
function fromString (string) {
if (typeof string !== 'string') {
throw new Error('Param is not a string')
}
var lcStr = string.toLowerCase()
switch (lcStr) {
case 'l':
case 'low':
return exports.L
case 'm':
case 'medium':
return exports.M
case 'q':
case 'quartile':
return exports.Q
case 'h':
case 'high':
return exports.H
default:
throw new Error('Unknown EC Level: ' + string)
}
}
exports.isValid = function isValid (level) {
return level && typeof level.bit !== 'undefined' &&
level.bit >= 0 && level.bit < 4
}
exports.from = function from (value, defaultValue) {
if (exports.isValid(value)) {
return value
}
try {
return fromString(value)
} catch (e) {
return defaultValue
}
}
/***/ }),
/***/ 54:
/***/ (function(__unusedmodule, exports) {
/**
* Check if QR Code version is valid
*
* @param {Number} version QR Code version
* @return {Boolean} true if valid version, false otherwise
*/
exports.isValid = function isValid (version) {
return !isNaN(version) && version >= 1 && version <= 40
}
/***/ }),
/***/ 80:
/***/ (function(module) {
"use strict";
var SyncReader = module.exports = function(buffer) {
this._buffer = buffer;
this._reads = [];
};
SyncReader.prototype.read = function(length, callback) {
this._reads.push({
length: Math.abs(length), // if length < 0 then at most this length
allowLess: length < 0,
func: callback
});
};
SyncReader.prototype.process = function() {
// as long as there is any data and read requests
while (this._reads.length > 0 && this._buffer.length) {
var read = this._reads[0];
if (this._buffer.length && (this._buffer.length >= read.length || read.allowLess)) {
// ok there is any data so that we can satisfy this request
this._reads.shift(); // == read
var buf = this._buffer;
this._buffer = buf.slice(read.length);
read.func.call(this, buf.slice(0, read.length));
}
else {
break;
}
}
if (this._reads.length > 0) {
return new Error('There are some read requests waitng on finished stream');
}
if (this._buffer.length > 0) {
return new Error('unrecognised content at end of stream');
}
};
/***/ }),
/***/ 83:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var util = __webpack_require__(669);
var Stream = __webpack_require__(413);
var constants = __webpack_require__(268);
var Packer = __webpack_require__(189);
var PackerAsync = module.exports = function(opt) {
Stream.call(this);
var options = opt || {};
this._packer = new Packer(options);
this._deflate = this._packer.createDeflate();
this.readable = true;
};
util.inherits(PackerAsync, Stream);
PackerAsync.prototype.pack = function(data, width, height, gamma) {
// Signature
this.emit('data', new Buffer(constants.PNG_SIGNATURE));
this.emit('data', this._packer.packIHDR(width, height));
if (gamma) {
this.emit('data', this._packer.packGAMA(gamma));
}
var filteredData = this._packer.filterData(data, width, height);
// compress it
this._deflate.on('error', this.emit.bind(this, 'error'));
this._deflate.on('data', function(compressedData) {
this.emit('data', this._packer.packIDAT(compressedData));
}.bind(this));
this._deflate.on('end', function() {
this.emit('data', this._packer.packIEND());
this.emit('end');
}.bind(this));
this._deflate.end(filteredData);
};
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = require("os");
/***/ }),
/***/ 102:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var fs = __webpack_require__(747)
var PNG = __webpack_require__(275).PNG
var Utils = __webpack_require__(178)
exports.render = function render (qrData, options) {
var opts = Utils.getOptions(options)
var pngOpts = opts.rendererOpts
var size = Utils.getImageWidth(qrData.modules.size, opts)
pngOpts.width = size
pngOpts.height = size
var pngImage = new PNG(pngOpts)
Utils.qrToImageData(pngImage.data, qrData, opts)
return pngImage
}
exports.renderToDataURL = function renderToDataURL (qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
exports.renderToBuffer(qrData, options, function (err, output) {
if (err) cb(err)
var url = 'data:image/png;base64,'
url += output.toString('base64')
cb(null, url)
})
}
exports.renderToBuffer = function renderToBuffer (qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
var png = exports.render(qrData, options)
var buffer = []
png.on('error', cb)
png.on('data', function (data) {
buffer.push(data)
})
png.on('end', function () {
cb(null, Buffer.concat(buffer))
})
png.pack()
}
exports.renderToFile = function renderToFile (path, qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
var stream = fs.createWriteStream(path)
stream.on('error', cb)
stream.on('close', cb)
exports.renderToFileStream(stream, qrData, options)
}
exports.renderToFileStream = function renderToFileStream (stream, qrData, options) {
var png = exports.render(qrData, options)
png.pack().pipe(stream)
}
/***/ }),
/***/ 107:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var svgTagRenderer = __webpack_require__(673)
exports.render = svgTagRenderer.render
exports.renderToFile = function renderToFile (path, qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
var fs = __webpack_require__(747)
var svgTag = exports.render(qrData, options)
var xmlStr = '<?xml version="1.0" encoding="utf-8"?>' +
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' +
svgTag
fs.writeFile(path, xmlStr, cb)
}
/***/ }),
/***/ 114:
/***/ (function(__unusedmodule, exports) {
var toSJISFunction
var CODEWORDS_COUNT = [
0, // Not used
26, 44, 70, 100, 134, 172, 196, 242, 292, 346,
404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,
1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,
2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
]
/**
* Returns the QR Code size for the specified version
*
* @param {Number} version QR Code version
* @return {Number} size of QR code
*/
exports.getSymbolSize = function getSymbolSize (version) {
if (!version) throw new Error('"version" cannot be null or undefined')
if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40')
return version * 4 + 17
}
/**
* Returns the total number of codewords used to store data and EC information.
*
* @param {Number} version QR Code version
* @return {Number} Data length in bits
*/
exports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {
return CODEWORDS_COUNT[version]
}
/**
* Encode data with Bose-Chaudhuri-Hocquenghem
*
* @param {Number} data Value to encode
* @return {Number} Encoded value
*/
exports.getBCHDigit = function (data) {
var digit = 0
while (data !== 0) {
digit++
data >>>= 1
}
return digit
}
exports.setToSJISFunction = function setToSJISFunction (f) {
if (typeof f !== 'function') {
throw new Error('"toSJISFunc" is not a valid function.')
}
toSJISFunction = f
}
exports.isKanjiModeEnabled = function () {
return typeof toSJISFunction !== 'undefined'
}
exports.toSJIS = function toSJIS (kanji) {
return toSJISFunction(kanji)
}
/***/ }),
/***/ 118:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const os = __webpack_require__(87);
const nameMap = new Map([
[19, 'Catalina'],
[18, 'Mojave'],
[17, 'High Sierra'],
[16, 'Sierra'],
[15, 'El Capitan'],
[14, 'Yosemite'],
[13, 'Mavericks'],
[12, 'Mountain Lion'],
[11, 'Lion'],
[10, 'Snow Leopard'],
[9, 'Leopard'],
[8, 'Tiger'],
[7, 'Panther'],
[6, 'Jaguar'],
[5, 'Puma']
]);
const macosRelease = release => {
release = Number((release || os.release()).split('.')[0]);
return {
name: nameMap.get(release),
version: '10.' + (release - 4)
};
};
module.exports = macosRelease;
// TODO: remove this in the next major version
module.exports.default = macosRelease;
/***/ }),
/***/ 126:
/***/ (function(module) {
/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]';
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/**
* A specialized version of `_.includes` for arrays without support for
* specifying an index to search from.
*
* @private
* @param {Array} [array] The array to inspect.
* @param {*} target The value to search for.
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
function arrayIncludes(array, value) {
var length = array ? array.length : 0;
return !!length && baseIndexOf(array, value, 0) > -1;
}
/**
* This function is like `arrayIncludes` except that it accepts a comparator.
*
* @private
* @param {Array} [array] The array to inspect.
* @param {*} target The value to search for.
* @param {Function} comparator The comparator invoked per element.
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
function arrayIncludesWith(array, value, comparator) {
var index = -1,
length = array ? array.length : 0;
while (++index < length) {
if (comparator(value, array[index])) {
return true;
}
}
return false;
}
/**
* The base implementation of `_.findIndex` and `_.findLastIndex` without
* support for iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
* @param {Function} predicate The function invoked per iteration.
* @param {number} fromIndex The index to search from.
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function baseFindIndex(array, predicate, fromIndex, fromRight) {
var length = array.length,
index = fromIndex + (fromRight ? 1 : -1);
while ((fromRight ? index-- : ++index < length)) {
if (predicate(array[index], index, array)) {
return index;
}
}
return -1;
}
/**
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} value The value to search for.
* @param {number} fromIndex The index to search from.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function baseIndexOf(array, value, fromIndex) {
if (value !== value) {
return baseFindIndex(array, baseIsNaN, fromIndex);
}
var index = fromIndex - 1,
length = array.length;
while (++index < length) {
if (array[index] === value) {
return index;
}
}
return -1;
}
/**
* The base implementation of `_.isNaN` without support for number objects.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
*/
function baseIsNaN(value) {
return value !== value;
}
/**
* Checks if a cache value for `key` exists.
*
* @private
* @param {Object} cache The cache to query.
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function cacheHas(cache, key) {
return cache.has(key);
}
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
/**
* Checks if `value` is a host object in IE < 9.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
function isHostObject(value) {
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var result = false;
if (value != null && typeof value.toString != 'function') {
try {
result = !!(value + '');
} catch (e) {}
}
return result;
}
/**
* Converts `set` to an array of its values.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the values.
*/
function setToArray(set) {
var index = -1,
result = Array(set.size);
set.forEach(function(value) {
result[++index] = value;
});
return result;
}
/** Used for built-in method references. */
var arrayProto = Array.prototype,
funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/** Built-in value references. */
var splice = arrayProto.splice;
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map'),
Set = getNative(root, 'Set'),
nativeCreate = getNative(Object, 'create');
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
}
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
return this.has(key) && delete this.__data__[key];
}
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
}
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
return this;
}
// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
return true;
}
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
return getMapData(this, key)['delete'](key);
}
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
getMapData(this, key).set(key, value);
return this;
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
/**
*
* Creates an array cache object to store unique values.
*
* @private
* @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
var index = -1,
length = values ? values.length : 0;
this.__data__ = new MapCache;
while (++index < length) {
this.add(values[index]);
}
}
/**
* Adds `value` to the array cache.
*
* @private
* @name add
* @memberOf SetCache
* @alias push
* @param {*} value The value to cache.
* @returns {Object} Returns the cache instance.
*/
function setCacheAdd(value) {
this.__data__.set(value, HASH_UNDEFINED);
return this;
}
/**
* Checks if `value` is in the array cache.
*
* @private
* @name has
* @memberOf SetCache
* @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
function setCacheHas(value) {
return this.__data__.has(value);
}
// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
/**
* The base implementation of `_.uniqBy` without support for iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
* @param {Function} [iteratee] The iteratee invoked per element.
* @param {Function} [comparator] The comparator invoked per element.
* @returns {Array} Returns the new duplicate free array.
*/
function baseUniq(array, iteratee, comparator) {
var index = -1,
includes = arrayIncludes,
length = array.length,
isCommon = true,
result = [],
seen = result;
if (comparator) {
isCommon = false;
includes = arrayIncludesWith;
}
else if (length >= LARGE_ARRAY_SIZE) {
var set = iteratee ? null : createSet(array);
if (set) {
return setToArray(set);
}
isCommon = false;
includes = cacheHas;
seen = new SetCache;
}
else {
seen = iteratee ? [] : result;
}
outer:
while (++index < length) {
var value = array[index],
computed = iteratee ? iteratee(value) : value;
value = (comparator || value !== 0) ? value : 0;
if (isCommon && computed === computed) {
var seenIndex = seen.length;
while (seenIndex--) {
if (seen[seenIndex] === computed) {
continue outer;
}
}
if (iteratee) {
seen.push(computed);
}
result.push(value);
}
else if (!includes(seen, computed, comparator)) {
if (seen !== result) {
seen.push(computed);
}
result.push(value);
}
}
return result;
}
/**
* Creates a set object of `values`.
*
* @private
* @param {Array} values The values to add to the set.
* @returns {Object} Returns the new set.
*/
var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
return new Set(values);
};
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
/**
* Creates a duplicate-free version of an array, using
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons, in which only the first occurrence of each
* element is kept.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to inspect.
* @returns {Array} Returns the new duplicate free array.
* @example
*
* _.uniq([2, 1, 2]);
* // => [2, 1]
*/
function uniq(array) {
return (array && array.length)
? baseUniq(array)
: [];
}
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* This method returns `undefined`.
*
* @static
* @memberOf _
* @since 2.3.0
* @category Util
* @example
*
* _.times(2, _.noop);
* // => [undefined, undefined]
*/
function noop() {
// No operation performed.
}
module.exports = uniq;
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = require("child_process");
/***/ }),
/***/ 135:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var ECLevel = __webpack_require__(50)
var EC_BLOCKS_TABLE = [
// L M Q H
1, 1, 1, 1,
1, 1, 1, 1,
1, 1, 2, 2,
1, 2, 2, 4,
1, 2, 4, 4,
2, 4, 4, 4,
2, 4, 6, 5,
2, 4, 6, 6,
2, 5, 8, 8,
4, 5, 8, 8,
4, 5, 8, 11,
4, 8, 10, 11,
4, 9, 12, 16,
4, 9, 16, 16,
6, 10, 12, 18,
6, 10, 17, 16,
6, 11, 16, 19,
6, 13, 18, 21,
7, 14, 21, 25,
8, 16, 20, 25,
8, 17, 23, 25,
9, 17, 23, 34,
9, 18, 25, 30,
10, 20, 27, 32,
12, 21, 29, 35,
12, 23, 34, 37,
12, 25, 34, 40,
13, 26, 35, 42,
14, 28, 38, 45,
15, 29, 40, 48,
16, 31, 43, 51,
17, 33, 45, 54,
18, 35, 48, 57,
19, 37, 51, 60,
19, 38, 53, 63,
20, 40, 56, 66,
21, 43, 59, 70,
22, 45, 62, 74,
24, 47, 65, 77,
25, 49, 68, 81
]
var EC_CODEWORDS_TABLE = [
// L M Q H
7, 10, 13, 17,
10, 16, 22, 28,
15, 26, 36, 44,
20, 36, 52, 64,
26, 48, 72, 88,
36, 64, 96, 112,
40, 72, 108, 130,
48, 88, 132, 156,
60, 110, 160, 192,
72, 130, 192, 224,
80, 150, 224, 264,
96, 176, 260, 308,
104, 198, 288, 352,
120, 216, 320, 384,
132, 240, 360, 432,
144, 280, 408, 480,
168, 308, 448, 532,
180, 338, 504, 588,
196, 364, 546, 650,
224, 416, 600, 700,
224, 442, 644, 750,
252, 476, 690, 816,
270, 504, 750, 900,
300, 560, 810, 960,
312, 588, 870, 1050,
336, 644, 952, 1110,
360, 700, 1020, 1200,
390, 728, 1050, 1260,
420, 784, 1140, 1350,
450, 812, 1200, 1440,
480, 868, 1290, 1530,
510, 924, 1350, 1620,
540, 980, 1440, 1710,
570, 1036, 1530, 1800,
570, 1064, 1590, 1890,
600, 1120, 1680, 1980,
630, 1204, 1770, 2100,
660, 1260, 1860, 2220,
720, 1316, 1950, 2310,
750, 1372, 2040, 2430
]
/**
* Returns the number of error correction block that the QR Code should contain
* for the specified version and error correction level.
*
* @param {Number} version QR Code version
* @param {Number} errorCorrectionLevel Error correction level
* @return {Number} Number of error correction blocks
*/
exports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {
switch (errorCorrectionLevel) {
case ECLevel.L:
return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
case ECLevel.M:
return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
case ECLevel.Q:
return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
case ECLevel.H:
return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
default:
return undefined
}
}
/**
* Returns the number of error correction codewords to use for the specified
* version and error correction level.
*
* @param {Number} version QR Code version
* @param {Number} errorCorrectionLevel Error correction level
* @return {Number} Number of error correction codewords
*/
exports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {
switch (errorCorrectionLevel) {
case ECLevel.L:
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
case ECLevel.M:
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
case ECLevel.Q:
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
case ECLevel.H:
return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
default:
return undefined
}
}
/***/ }),
/***/ 140:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var paethPredictor = __webpack_require__(594);
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
for (var x = 0; x < byteWidth; x++) {
rawData[rawPos + x] = pxData[pxPos + x];
}
}
function filterSumNone(pxData, pxPos, byteWidth) {
var sum = 0;
var length = pxPos + byteWidth;
for (var i = pxPos; i < length; i++) {
sum += Math.abs(pxData[i]);
}
return sum;
}
function filterSub(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var val = pxData[pxPos + x] - left;
rawData[rawPos + x] = val;
}
}
function filterSumSub(pxData, pxPos, byteWidth, bpp) {
var sum = 0;
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var val = pxData[pxPos + x] - left;
sum += Math.abs(val);
}
return sum;
}
function filterUp(pxData, pxPos, byteWidth, rawData, rawPos) {
for (var x = 0; x < byteWidth; x++) {
var up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
var val = pxData[pxPos + x] - up;
rawData[rawPos + x] = val;
}
}
function filterSumUp(pxData, pxPos, byteWidth) {
var sum = 0;
var length = pxPos + byteWidth;
for (var x = pxPos; x < length; x++) {
var up = pxPos > 0 ? pxData[x - byteWidth] : 0;
var val = pxData[x] - up;
sum += Math.abs(val);
}
return sum;
}
function filterAvg(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
var val = pxData[pxPos + x] - ((left + up) >> 1);
rawData[rawPos + x] = val;
}
}
function filterSumAvg(pxData, pxPos, byteWidth, bpp) {
var sum = 0;
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
var val = pxData[pxPos + x] - ((left + up) >> 1);
sum += Math.abs(val);
}
return sum;
}
function filterPaeth(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
var upleft = pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0;
var val = pxData[pxPos + x] - paethPredictor(left, up, upleft);
rawData[rawPos + x] = val;
}
}
function filterSumPaeth(pxData, pxPos, byteWidth, bpp) {
var sum = 0;
for (var x = 0; x < byteWidth; x++) {
var left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
var up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
var upleft = pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0;
var val = pxData[pxPos + x] - paethPredictor(left, up, upleft);
sum += Math.abs(val);
}
return sum;
}
var filters = {
0: filterNone,
1: filterSub,
2: filterUp,
3: filterAvg,
4: filterPaeth
};
var filterSums = {
0: filterSumNone,
1: filterSumSub,
2: filterSumUp,
3: filterSumAvg,
4: filterSumPaeth
};
module.exports = function(pxData, width, height, options, bpp) {
var filterTypes;
if (!('filterType' in options) || options.filterType === -1) {
filterTypes = [0, 1, 2, 3, 4];
}
else if (typeof options.filterType === 'number') {
filterTypes = [options.filterType];
}
else {
throw new Error('unrecognised filter types');
}
if (options.bitDepth === 16) {
bpp *= 2;
}
var byteWidth = width * bpp;
var rawPos = 0;
var pxPos = 0;
var rawData = new Buffer((byteWidth + 1) * height);
var sel = filterTypes[0];
for (var y = 0; y < height; y++) {
if (filterTypes.length > 1) {
// find best filter for this line (with lowest sum of values)
var min = Infinity;
for (var i = 0; i < filterTypes.length; i++) {
var sum = filterSums[filterTypes[i]](pxData, pxPos, byteWidth, bpp);
if (sum < min) {
sel = filterTypes[i];
min = sum;
}
}
}
rawData[rawPos] = sel;
rawPos++;
filters[sel](pxData, pxPos, byteWidth, rawData, rawPos, bpp);
rawPos += byteWidth;
pxPos += byteWidth;
}
return rawData;
};
/***/ }),
/***/ 141:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var net = __webpack_require__(631);
var tls = __webpack_require__(16);
var http = __webpack_require__(605);
var https = __webpack_require__(34);
var events = __webpack_require__(614);
var assert = __webpack_require__(357);
var util = __webpack_require__(669);
exports.httpOverHttp = httpOverHttp;
exports.httpsOverHttp = httpsOverHttp;
exports.httpOverHttps = httpOverHttps;
exports.httpsOverHttps = httpsOverHttps;
function httpOverHttp(options) {
var agent = new TunnelingAgent(options);
agent.request = http.request;
return agent;
}
function httpsOverHttp(options) {
var agent = new TunnelingAgent(options);
agent.request = http.request;
agent.createSocket = createSecureSocket;
agent.defaultPort = 443;
return agent;
}
function httpOverHttps(options) {
var agent = new TunnelingAgent(options);
agent.request = https.request;
return agent;
}
function httpsOverHttps(options) {
var agent = new TunnelingAgent(options);
agent.request = https.request;
agent.createSocket = createSecureSocket;
agent.defaultPort = 443;
return agent;
}
function TunnelingAgent(options) {
var self = this;
self.options = options || {};
self.proxyOptions = self.options.proxy || {};
self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
self.requests = [];
self.sockets = [];
self.on('free', function onFree(socket, host, port, localAddress) {
var options = toOptions(host, port, localAddress);
for (var i = 0, len = self.requests.length; i < len; ++i) {
var pending = self.requests[i];
if (pending.host === options.host && pending.port === options.port) {
// Detect the request to connect same origin server,
// reuse the connection.
self.requests.splice(i, 1);
pending.request.onSocket(socket);
return;
}
}
socket.destroy();
self.removeSocket(socket);
});
}
util.inherits(TunnelingAgent, events.EventEmitter);
TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
var self = this;
var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
if (self.sockets.length >= this.maxSockets) {
// We are over limit so we'll add it to the queue.
self.requests.push(options);
return;
}
// If we are under maxSockets create a new one.
self.createSocket(options, function(socket) {
socket.on('free', onFree);
socket.on('close', onCloseOrRemove);
socket.on('agentRemove', onCloseOrRemove);
req.onSocket(socket);
function onFree() {
self.emit('free', socket, options);
}
function onCloseOrRemove(err) {
self.removeSocket(socket);
socket.removeListener('free', onFree);
socket.removeListener('close', onCloseOrRemove);
socket.removeListener('agentRemove', onCloseOrRemove);
}
});
};
TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
var self = this;
var placeholder = {};
self.sockets.push(placeholder);
var connectOptions = mergeOptions({}, self.proxyOptions, {
method: 'CONNECT',
path: options.host + ':' + options.port,
agent: false,
headers: {
host: options.host + ':' + options.port
}
});
if (options.localAddress) {
connectOptions.localAddress = options.localAddress;
}
if (connectOptions.proxyAuth) {
connectOptions.headers = connectOptions.headers || {};
connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
new Buffer(connectOptions.proxyAuth).toString('base64');
}
debug('making CONNECT request');
var connectReq = self.request(connectOptions);
connectReq.useChunkedEncodingByDefault = false; // for v0.6
connectReq.once('response', onResponse); // for v0.6
connectReq.once('upgrade', onUpgrade); // for v0.6
connectReq.once('connect', onConnect); // for v0.7 or later
connectReq.once('error', onError);
connectReq.end();
function onResponse(res) {
// Very hacky. This is necessary to avoid http-parser leaks.
res.upgrade = true;
}
function onUpgrade(res, socket, head) {
// Hacky.
process.nextTick(function() {
onConnect(res, socket, head);
});
}
function onConnect(res, socket, head) {
connectReq.removeAllListeners();
socket.removeAllListeners();
if (res.statusCode !== 200) {
debug('tunneling socket could not be established, statusCode=%d',
res.statusCode);
socket.destroy();
var error = new Error('tunneling socket could not be established, ' +
'statusCode=' + res.statusCode);
error.code = 'ECONNRESET';
options.request.emit('error', error);
self.removeSocket(placeholder);
return;
}
if (head.length > 0) {
debug('got illegal response body from proxy');
socket.destroy();
var error = new Error('got illegal response body from proxy');
error.code = 'ECONNRESET';
options.request.emit('error', error);
self.removeSocket(placeholder);
return;
}
debug('tunneling connection has established');
self.sockets[self.sockets.indexOf(placeholder)] = socket;
return cb(socket);
}
function onError(cause) {
connectReq.removeAllListeners();
debug('tunneling socket could not be established, cause=%s\n',
cause.message, cause.stack);
var error = new Error('tunneling socket could not be established, ' +
'cause=' + cause.message);
error.code = 'ECONNRESET';
options.request.emit('error', error);
self.removeSocket(placeholder);
}
};
TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
var pos = this.sockets.indexOf(socket)
if (pos === -1) {
return;
}
this.sockets.splice(pos, 1);
var pending = this.requests.shift();
if (pending) {
// If we have pending requests and a socket gets closed a new one
// needs to be created to take over in the pool for the one that closed.
this.createSocket(pending, function(socket) {
pending.request.onSocket(socket);
});
}
};
function createSecureSocket(options, cb) {
var self = this;
TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
var hostHeader = options.request.getHeader('host');
var tlsOptions = mergeOptions({}, self.options, {
socket: socket,
servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
});
// 0 is dummy port for v0.6
var secureSocket = tls.connect(0, tlsOptions);
self.sockets[self.sockets.indexOf(socket)] = secureSocket;
cb(secureSocket);
});
}
function toOptions(host, port, localAddress) {
if (typeof host === 'string') { // since v0.10
return {
host: host,
port: port,
localAddress: localAddress
};
}
return host; // for v0.11 or later
}
function mergeOptions(target) {
for (var i = 1, len = arguments.length; i < len; ++i) {
var overrides = arguments[i];
if (typeof overrides === 'object') {
var keys = Object.keys(overrides);
for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
var k = keys[j];
if (overrides[k] !== undefined) {
target[k] = overrides[k];
}
}
}
}
return target;
}
var debug;
if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
debug = function() {
var args = Array.prototype.slice.call(arguments);
if (typeof args[0] === 'string') {
args[0] = 'TUNNEL: ' + args[0];
} else {
args.unshift('TUNNEL:');
}
console.error.apply(console, args);
}
} else {
debug = function() {};
}
exports.debug = debug; // for test
/***/ }),
/***/ 143:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = withAuthorizationPrefix;
const atob = __webpack_require__(368);
const REGEX_IS_BASIC_AUTH = /^[\w-]+:/;
function withAuthorizationPrefix(authorization) {
if (/^(basic|bearer|token) /i.test(authorization)) {
return authorization;
}
try {
if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) {
return `basic ${authorization}`;
}
} catch (error) {}
if (authorization.split(/\./).length === 3) {
return `bearer ${authorization}`;
}
return `token ${authorization}`;
}
/***/ }),
/***/ 145:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const pump = __webpack_require__(453);
const bufferStream = __webpack_require__(966);
class MaxBufferError extends Error {
constructor() {
super('maxBuffer exceeded');
this.name = 'MaxBufferError';
}
}
function getStream(inputStream, options) {
if (!inputStream) {
return Promise.reject(new Error('Expected a stream'));
}
options = Object.assign({maxBuffer: Infinity}, options);
const {maxBuffer} = options;
let stream;
return new Promise((resolve, reject) => {
const rejectPromise = error => {
if (error) { // A null check
error.bufferedData = stream.getBufferedValue();
}
reject(error);
};
stream = pump(inputStream, bufferStream(options), error => {
if (error) {
rejectPromise(error);
return;
}
resolve();
});
stream.on('data', () => {
if (stream.getBufferedLength() > maxBuffer) {
rejectPromise(new MaxBufferError());
}
});
}).then(() => stream.getBufferedValue());
}
module.exports = getStream;
module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
module.exports.MaxBufferError = MaxBufferError;
/***/ }),
/***/ 148:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = paginatePlugin;
const { paginateRest } = __webpack_require__(299);
function paginatePlugin(octokit) {
Object.assign(octokit, paginateRest(octokit));
}
/***/ }),
/***/ 160:
/***/ (function(__unusedmodule, exports) {
// var Utils = require('./utils')
exports.render = function (qrData, options, cb) {
var size = qrData.modules.size
var data = qrData.modules.data
// var opts = Utils.getOptions(options)
// use same scheme as https://github.com/gtanner/qrcode-terminal because it actually works! =)
var black = '\x1b[40m \x1b[0m'
var white = '\x1b[47m \x1b[0m'
var output = ''
var hMargin = Array(size + 3).join(white)
var vMargin = Array(2).join(white)
output += hMargin + '\n'
for (var i = 0; i < size; ++i) {
output += white
for (var j = 0; j < size; j++) {
// var topModule = data[i * size + j]
// var bottomModule = data[(i + 1) * size + j]
output += data[i * size + j] ? black : white// getBlockChar(topModule, bottomModule)
}
// output += white+'\n'
output += vMargin + '\n'
}
output += hMargin + '\n'
if (typeof cb === 'function') {
cb(null, output)
}
return output
}
/*
exports.renderToFile = function renderToFile (path, qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
var fs = require('fs')
var utf8 = exports.render(qrData, options)
fs.writeFile(path, utf8, cb)
}
*/
/***/ }),
/***/ 168:
/***/ (function(module) {
"use strict";
const alias = ['stdin', 'stdout', 'stderr'];
const hasAlias = opts => alias.some(x => Boolean(opts[x]));
module.exports = opts => {
if (!opts) {
return null;
}
if (opts.stdio && hasAlias(opts)) {
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
}
if (typeof opts.stdio === 'string') {
return opts.stdio;
}
const stdio = opts.stdio || [];
if (!Array.isArray(stdio)) {
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
}
const result = [];
const len = Math.max(stdio.length, alias.length);
for (let i = 0; i < len; i++) {
let value = null;
if (stdio[i] !== undefined) {
value = stdio[i];
} else if (opts[alias[i]] !== undefined) {
value = opts[alias[i]];
}
result[i] = value;
}
return result;
};
/***/ }),
/***/ 178:
/***/ (function(__unusedmodule, exports) {
function hex2rgba (hex) {
if (typeof hex === 'number') {
hex = hex.toString()
}
if (typeof hex !== 'string') {
throw new Error('Color should be defined as hex string')
}
var hexCode = hex.slice().replace('#', '').split('')
if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {
throw new Error('Invalid hex color: ' + hex)
}
// Convert from short to long form (fff -> ffffff)
if (hexCode.length === 3 || hexCode.length === 4) {
hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {
return [c, c]
}))
}
// Add default alpha value
if (hexCode.length === 6) hexCode.push('F', 'F')
var hexValue = parseInt(hexCode.join(''), 16)
return {
r: (hexValue >> 24) & 255,
g: (hexValue >> 16) & 255,
b: (hexValue >> 8) & 255,
a: hexValue & 255,
hex: '#' + hexCode.slice(0, 6).join('')
}
}
exports.getOptions = function getOptions (options) {
if (!options) options = {}
if (!options.color) options.color = {}
var margin = typeof options.margin === 'undefined' ||
options.margin === null ||
options.margin < 0 ? 4 : options.margin
var width = options.width && options.width >= 21 ? options.width : undefined
var scale = options.scale || 4
return {
width: width,
scale: width ? 4 : scale,
margin: margin,
color: {
dark: hex2rgba(options.color.dark || '#000000ff'),
light: hex2rgba(options.color.light || '#ffffffff')
},
type: options.type,
rendererOpts: options.rendererOpts || {}
}
}
exports.getScale = function getScale (qrSize, opts) {
return opts.width && opts.width >= qrSize + opts.margin * 2
? opts.width / (qrSize + opts.margin * 2)
: opts.scale
}
exports.getImageWidth = function getImageWidth (qrSize, opts) {
var scale = exports.getScale(qrSize, opts)
return Math.floor((qrSize + opts.margin * 2) * scale)
}
exports.qrToImageData = function qrToImageData (imgData, qr, opts) {
var size = qr.modules.size
var data = qr.modules.data
var scale = exports.getScale(size, opts)
var symbolSize = Math.floor((size + opts.margin * 2) * scale)
var scaledMargin = opts.margin * scale
var palette = [opts.color.light, opts.color.dark]
for (var i = 0; i < symbolSize; i++) {
for (var j = 0; j < symbolSize; j++) {
var posDst = (i * symbolSize + j) * 4
var pxColor = opts.color.light
if (i >= scaledMargin && j >= scaledMargin &&
i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {
var iSrc = Math.floor((i - scaledMargin) / scale)
var jSrc = Math.floor((j - scaledMargin) / scale)
pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]
}
imgData[posDst++] = pxColor.r
imgData[posDst++] = pxColor.g
imgData[posDst++] = pxColor.b
imgData[posDst] = pxColor.a
}
}
}
/***/ }),
/***/ 185:
/***/ (function(module, __unusedexports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
var Polynomial = __webpack_require__(847)
var Buffer = __webpack_require__(407).Buffer
function ReedSolomonEncoder (degree) {
this.genPoly = undefined
this.degree = degree
if (this.degree) this.initialize(this.degree)
}
/**
* Initialize the encoder.
* The input param should correspond to the number of error correction codewords.
*
* @param {Number} degree
*/
ReedSolomonEncoder.prototype.initialize = function initialize (degree) {
// create an irreducible generator polynomial
this.degree = degree
this.genPoly = Polynomial.generateECPolynomial(this.degree)
}
/**
* Encodes a chunk of data
*
* @param {Buffer} data Buffer containing input data
* @return {Buffer} Buffer containing encoded data
*/
ReedSolomonEncoder.prototype.encode = function encode (data) {
if (!this.genPoly) {
throw new Error('Encoder not initialized')
}
// Calculate EC for this data block
// extends data size to data+genPoly size
var pad = BufferUtil.alloc(this.degree)
var paddedData = Buffer.concat([data, pad], data.length + this.degree)
// The error correction codewords are the remainder after dividing the data codewords
// by a generator polynomial
var remainder = Polynomial.mod(paddedData, this.genPoly)
// return EC data blocks (last n byte, where n is the degree of genPoly)
// If coefficients number in remainder are less than genPoly degree,
// pad with 0s to the left to reach the needed number of coefficients
var start = this.degree - remainder.length
if (start > 0) {
var buff = BufferUtil.alloc(this.degree)
remainder.copy(buff, start)
return buff
}
return remainder
}
module.exports = ReedSolomonEncoder
/***/ }),
/***/ 189:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var constants = __webpack_require__(268);
var CrcStream = __webpack_require__(228);
var bitPacker = __webpack_require__(667);
var filter = __webpack_require__(140);
var zlib = __webpack_require__(761);
var Packer = module.exports = function(options) {
this._options = options;
options.deflateChunkSize = options.deflateChunkSize || 32 * 1024;
options.deflateLevel = options.deflateLevel != null ? options.deflateLevel : 9;
options.deflateStrategy = options.deflateStrategy != null ? options.deflateStrategy : 3;
options.inputHasAlpha = options.inputHasAlpha != null ? options.inputHasAlpha : true;
options.deflateFactory = options.deflateFactory || zlib.createDeflate;
options.bitDepth = options.bitDepth || 8;
// This is outputColorType
options.colorType = (typeof options.colorType === 'number') ? options.colorType : constants.COLORTYPE_COLOR_ALPHA;
options.inputColorType = (typeof options.inputColorType === 'number') ? options.inputColorType : constants.COLORTYPE_COLOR_ALPHA;
if ([
constants.COLORTYPE_GRAYSCALE,
constants.COLORTYPE_COLOR,
constants.COLORTYPE_COLOR_ALPHA,
constants.COLORTYPE_ALPHA
].indexOf(options.colorType) === -1) {
throw new Error('option color type:' + options.colorType + ' is not supported at present');
}
if ([
constants.COLORTYPE_GRAYSCALE,
constants.COLORTYPE_COLOR,
constants.COLORTYPE_COLOR_ALPHA,
constants.COLORTYPE_ALPHA
].indexOf(options.inputColorType) === -1) {
throw new Error('option input color type:' + options.inputColorType + ' is not supported at present');
}
if (options.bitDepth !== 8 && options.bitDepth !== 16) {
throw new Error('option bit depth:' + options.bitDepth + ' is not supported at present');
}
};
Packer.prototype.getDeflateOptions = function() {
return {
chunkSize: this._options.deflateChunkSize,
level: this._options.deflateLevel,
strategy: this._options.deflateStrategy
};
};
Packer.prototype.createDeflate = function() {
return this._options.deflateFactory(this.getDeflateOptions());
};
Packer.prototype.filterData = function(data, width, height) {
// convert to correct format for filtering (e.g. right bpp and bit depth)
var packedData = bitPacker(data, width, height, this._options);
// filter pixel data
var bpp = constants.COLORTYPE_TO_BPP_MAP[this._options.colorType];
var filteredData = filter(packedData, width, height, this._options, bpp);
return filteredData;
};
Packer.prototype._packChunk = function(type, data) {
var len = (data ? data.length : 0);
var buf = new Buffer(len + 12);
buf.writeUInt32BE(len, 0);
buf.writeUInt32BE(type, 4);
if (data) {
data.copy(buf, 8);
}
buf.writeInt32BE(CrcStream.crc32(buf.slice(4, buf.length - 4)), buf.length - 4);
return buf;
};
Packer.prototype.packGAMA = function(gamma) {
var buf = new Buffer(4);
buf.writeUInt32BE(Math.floor(gamma * constants.GAMMA_DIVISION), 0);
return this._packChunk(constants.TYPE_gAMA, buf);
};
Packer.prototype.packIHDR = function(width, height) {
var buf = new Buffer(13);
buf.writeUInt32BE(width, 0);
buf.writeUInt32BE(height, 4);
buf[8] = this._options.bitDepth; // Bit depth
buf[9] = this._options.colorType; // colorType
buf[10] = 0; // compression
buf[11] = 0; // filter
buf[12] = 0; // interlace
return this._packChunk(constants.TYPE_IHDR, buf);
};
Packer.prototype.packIDAT = function(data) {
return this._packChunk(constants.TYPE_IDAT, data);
};
Packer.prototype.packIEND = function() {
return this._packChunk(constants.TYPE_IEND, null);
};
/***/ }),
/***/ 190:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationPlugin;
const { createTokenAuth } = __webpack_require__(813);
const { Deprecation } = __webpack_require__(692);
const once = __webpack_require__(969);
const beforeRequest = __webpack_require__(863);
const requestError = __webpack_require__(293);
const validate = __webpack_require__(954);
const withAuthorizationPrefix = __webpack_require__(143);
const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
function authenticationPlugin(octokit, options) {
// If `options.authStrategy` is set then use it and pass in `options.auth`
if (options.authStrategy) {
const auth = options.authStrategy(options.auth);
octokit.hook.wrap("request", auth.hook);
octokit.auth = auth;
return;
}
// If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
// is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
if (!options.auth) {
octokit.auth = () =>
Promise.resolve({
type: "unauthenticated"
});
return;
}
const isBasicAuthString =
typeof options.auth === "string" &&
/^basic/.test(withAuthorizationPrefix(options.auth));
// If only `options.auth` is set to a string, use the default token authentication strategy.
if (typeof options.auth === "string" && !isBasicAuthString) {
const auth = createTokenAuth(options.auth);
octokit.hook.wrap("request", auth.hook);
octokit.auth = auth;
return;
}
// Otherwise log a deprecation message
const [deprecationMethod, deprecationMessapge] = isBasicAuthString
? [
deprecateAuthBasic,
'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
]
: [
deprecateAuthObject,
'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
];
deprecationMethod(
octokit.log,
new Deprecation("[@octokit/rest] " + deprecationMessapge)
);
octokit.auth = () =>
Promise.resolve({
type: "deprecated",
message: deprecationMessapge
});
validate(options.auth);
const state = {
octokit,
auth: options.auth
};
octokit.hook.before("request", beforeRequest.bind(null, state));
octokit.hook.error("request", requestError.bind(null, state));
}
/***/ }),
/***/ 197:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = isexe
isexe.sync = sync
var fs = __webpack_require__(747)
function isexe (path, options, cb) {
fs.stat(path, function (er, stat) {
cb(er, er ? false : checkStat(stat, options))
})
}
function sync (path, options) {
return checkStat(fs.statSync(path), options)
}
function checkStat (stat, options) {
return stat.isFile() && checkMode(stat, options)
}
function checkMode (stat, options) {
var mod = stat.mode
var uid = stat.uid
var gid = stat.gid
var myUid = options.uid !== undefined ?
options.uid : process.getuid && process.getuid()
var myGid = options.gid !== undefined ?
options.gid : process.getgid && process.getgid()
var u = parseInt('100', 8)
var g = parseInt('010', 8)
var o = parseInt('001', 8)
var ug = u | g
var ret = (mod & o) ||
(mod & g) && gid === myGid ||
(mod & u) && uid === myUid ||
(mod & ug) && myUid === 0
return ret
}
/***/ }),
/***/ 198:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const github = __importStar(__webpack_require__(469));
const QRCode = __importStar(__webpack_require__(939));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const content = core.getInput('content', { required: true });
const result = yield QRCode.toString(content);
const comment = core.getInput('comment', { required: true });
const body = comment.replace('{qrcode}', result);
const token = core.getInput('repo-token', { required: true });
const githubAPI = new github.GitHub(token);
const { repo, issue } = github.context;
yield githubAPI.issues.createComment({
owner: repo.owner,
repo: repo.repo,
// eslint-disable-next-line @typescript-eslint/camelcase
issue_number: issue.number,
body
});
}
catch (error) {
core.setFailed(error.message);
}
});
}
run();
/***/ }),
/***/ 202:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Utils = __webpack_require__(114)
var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)
var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)
var G15_BCH = Utils.getBCHDigit(G15)
/**
* Returns format information with relative error correction bits
*
* The format information is a 15-bit sequence containing 5 data bits,
* with 10 error correction bits calculated using the (15, 5) BCH code.
*
* @param {Number} errorCorrectionLevel Error correction level
* @param {Number} mask Mask pattern
* @return {Number} Encoded format information bits
*/
exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
var data = ((errorCorrectionLevel.bit << 3) | mask)
var d = data << 10
while (Utils.getBCHDigit(d) - G15_BCH >= 0) {
d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))
}
// xor final data with mask pattern in order to ensure that
// no combination of Error Correction Level and data mask pattern
// will result in an all-zero data string
return ((data << 10) | d) ^ G15_MASK
}
/***/ }),
/***/ 210:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var util = __webpack_require__(669);
var Stream = __webpack_require__(413);
var ChunkStream = module.exports = function() {
Stream.call(this);
this._buffers = [];
this._buffered = 0;
this._reads = [];
this._paused = false;
this._encoding = 'utf8';
this.writable = true;
};
util.inherits(ChunkStream, Stream);
ChunkStream.prototype.read = function(length, callback) {
this._reads.push({
length: Math.abs(length), // if length < 0 then at most this length
allowLess: length < 0,
func: callback
});
process.nextTick(function() {
this._process();
// its paused and there is not enought data then ask for more
if (this._paused && this._reads.length > 0) {
this._paused = false;
this.emit('drain');
}
}.bind(this));
};
ChunkStream.prototype.write = function(data, encoding) {
if (!this.writable) {
this.emit('error', new Error('Stream not writable'));
return false;
}
var dataBuffer;
if (Buffer.isBuffer(data)) {
dataBuffer = data;
}
else {
dataBuffer = new Buffer(data, encoding || this._encoding);
}
this._buffers.push(dataBuffer);
this._buffered += dataBuffer.length;
this._process();
// ok if there are no more read requests
if (this._reads && this._reads.length === 0) {
this._paused = true;
}
return this.writable && !this._paused;
};
ChunkStream.prototype.end = function(data, encoding) {
if (data) {
this.write(data, encoding);
}
this.writable = false;
// already destroyed
if (!this._buffers) {
return;
}
// enqueue or handle end
if (this._buffers.length === 0) {
this._end();
}
else {
this._buffers.push(null);
this._process();
}
};
ChunkStream.prototype.destroySoon = ChunkStream.prototype.end;
ChunkStream.prototype._end = function() {
if (this._reads.length > 0) {
this.emit('error',
new Error('Unexpected end of input')
);
}
this.destroy();
};
ChunkStream.prototype.destroy = function() {
if (!this._buffers) {
return;
}
this.writable = false;
this._reads = null;
this._buffers = null;
this.emit('close');
};
ChunkStream.prototype._processReadAllowingLess = function(read) {
// ok there is any data so that we can satisfy this request
this._reads.shift(); // == read
// first we need to peek into first buffer
var smallerBuf = this._buffers[0];
// ok there is more data than we need
if (smallerBuf.length > read.length) {
this._buffered -= read.length;
this._buffers[0] = smallerBuf.slice(read.length);
read.func.call(this, smallerBuf.slice(0, read.length));
}
else {
// ok this is less than maximum length so use it all
this._buffered -= smallerBuf.length;
this._buffers.shift(); // == smallerBuf
read.func.call(this, smallerBuf);
}
};
ChunkStream.prototype._processRead = function(read) {
this._reads.shift(); // == read
var pos = 0;
var count = 0;
var data = new Buffer(read.length);
// create buffer for all data
while (pos < read.length) {
var buf = this._buffers[count++];
var len = Math.min(buf.length, read.length - pos);
buf.copy(data, pos, 0, len);
pos += len;
// last buffer wasn't used all so just slice it and leave
if (len !== buf.length) {
this._buffers[--count] = buf.slice(len);
}
}
// remove all used buffers
if (count > 0) {
this._buffers.splice(0, count);
}
this._buffered -= read.length;
read.func.call(this, data);
};
ChunkStream.prototype._process = function() {
try {
// as long as there is any data and read requests
while (this._buffered > 0 && this._reads && this._reads.length > 0) {
var read = this._reads[0];
// read any data (but no more than length)
if (read.allowLess) {
this._processReadAllowingLess(read);
}
else if (this._buffered >= read.length) {
// ok we can meet some expectations
this._processRead(read);
}
else {
// not enought data to satisfy first request in queue
// so we need to wait for more
break;
}
}
if (this._buffers && !this.writable) {
this._end();
}
}
catch (ex) {
this.emit('error', ex);
}
};
/***/ }),
/***/ 211:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var osName = _interopDefault(__webpack_require__(2));
function getUserAgent() {
try {
return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
} catch (error) {
if (/wmic os get Caption/.test(error.message)) {
return "Windows <version undetectable>";
}
return "<environment undetectable>";
}
}
exports.getUserAgent = getUserAgent;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 215:
/***/ (function(module) {
module.exports = {"_args":[["@octokit/rest@16.43.1","/Users/Kentaro/workspace/github.com/kentaro-m/qr-code-commenter-action"]],"_from":"@octokit/rest@16.43.1","_id":"@octokit/rest@16.43.1","_inBundle":false,"_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_location":"/@octokit/rest","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@octokit/rest@16.43.1","name":"@octokit/rest","escapedName":"@octokit%2frest","scope":"@octokit","rawSpec":"16.43.1","saveSpec":null,"fetchSpec":"16.43.1"},"_requiredBy":["/@actions/github"],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_spec":"16.43.1","_where":"/Users/Kentaro/workspace/github.com/kentaro-m/qr-code-commenter-action","author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"bugs":{"url":"https://github.com/octokit/rest.js/issues"},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"description":"GitHub REST API client for Node.js","devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"files":["index.js","index.d.ts","lib","plugins"],"homepage":"https://github.com/octokit/rest.js#readme","keywords":["octokit","github","rest","api-client"],"license":"MIT","name":"@octokit/rest","nyc":{"ignore":["test"]},"publishConfig":{"access":"public"},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"repository":{"type":"git","url":"git+https://github.com/octokit/rest.js.git"},"scripts":{"build":"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.1"};
/***/ }),
/***/ 227:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var getSymbolSize = __webpack_require__(114).getSymbolSize
var FINDER_PATTERN_SIZE = 7
/**
* Returns an array containing the positions of each finder pattern.
* Each array's element represent the top-left point of the pattern as (x, y) coordinates
*
* @param {Number} version QR Code version
* @return {Array} Array of coordinates
*/
exports.getPositions = function getPositions (version) {
var size = getSymbolSize(version)
return [
// top-left
[0, 0],
// top-right
[size - FINDER_PATTERN_SIZE, 0],
// bottom-left
[0, size - FINDER_PATTERN_SIZE]
]
}
/***/ }),
/***/ 228:
/***/ (function(module) {
"use strict";
var crcTable = [];
(function() {
for (var i = 0; i < 256; i++) {
var currentCrc = i;
for (var j = 0; j < 8; j++) {
if (currentCrc & 1) {
currentCrc = 0xedb88320 ^ (currentCrc >>> 1);
}
else {
currentCrc = currentCrc >>> 1;
}
}
crcTable[i] = currentCrc;
}
}());
var CrcCalculator = module.exports = function() {
this._crc = -1;
};
CrcCalculator.prototype.write = function(data) {
for (var i = 0; i < data.length; i++) {
this._crc = crcTable[(this._crc ^ data[i]) & 0xff] ^ (this._crc >>> 8);
}
return true;
};
CrcCalculator.prototype.crc32 = function() {
return this._crc ^ -1;
};
CrcCalculator.crc32 = function(buf) {
var crc = -1;
for (var i = 0; i < buf.length; i++) {
crc = crcTable[(crc ^ buf[i]) & 0xff] ^ (crc >>> 8);
}
return crc ^ -1;
};
/***/ }),
/***/ 254:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
/**
* Alignment pattern are fixed reference pattern in defined positions
* in a matrix symbology, which enables the decode software to re-synchronise
* the coordinate mapping of the image modules in the event of moderate amounts
* of distortion of the image.
*
* Alignment patterns are present only in QR Code symbols of version 2 or larger
* and their number depends on the symbol version.
*/
var getSymbolSize = __webpack_require__(114).getSymbolSize
/**
* Calculate the row/column coordinates of the center module of each alignment pattern
* for the specified QR Code version.
*
* The alignment patterns are positioned symmetrically on either side of the diagonal
* running from the top left corner of the symbol to the bottom right corner.
*
* Since positions are simmetrical only half of the coordinates are returned.
* Each item of the array will represent in turn the x and y coordinate.
* @see {@link getPositions}
*
* @param {Number} version QR Code version
* @return {Array} Array of coordinate
*/
exports.getRowColCoords = function getRowColCoords (version) {
if (version === 1) return []
var posCount = Math.floor(version / 7) + 2
var size = getSymbolSize(version)
var intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2
var positions = [size - 7] // Last coord is always (size - 7)
for (var i = 1; i < posCount - 1; i++) {
positions[i] = positions[i - 1] - intervals
}
positions.push(6) // First coord is always 6
return positions.reverse()
}
/**
* Returns an array containing the positions of each alignment pattern.
* Each array's element represent the center point of the pattern as (x, y) coordinates
*
* Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}
* and filtering out the items that overlaps with finder pattern
*
* @example
* For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.
* The alignment patterns, therefore, are to be centered on (row, column)
* positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).
* Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns
* and are not therefore used for alignment patterns.
*
* var pos = getPositions(7)
* // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]
*
* @param {Number} version QR Code version
* @return {Array} Array of coordinates
*/
exports.getPositions = function getPositions (version) {
var coords = []
var pos = exports.getRowColCoords(version)
var posLength = pos.length
for (var i = 0; i < posLength; i++) {
for (var j = 0; j < posLength; j++) {
// Skip if position is occupied by finder patterns
if ((i === 0 && j === 0) || // top-left
(i === 0 && j === posLength - 1) || // bottom-left
(i === posLength - 1 && j === 0)) { // top-right
continue
}
coords.push([pos[i], pos[j]])
}
}
return coords
}
/***/ }),
/***/ 260:
/***/ (function(module, __unusedexports, __webpack_require__) {
// Note: since nyc uses this module to output coverage, any lines
// that are in the direct sync flow of nyc's outputCoverage are
// ignored, since we can never get coverage for them.
var assert = __webpack_require__(357)
var signals = __webpack_require__(654)
var EE = __webpack_require__(614)
/* istanbul ignore if */
if (typeof EE !== 'function') {
EE = EE.EventEmitter
}
var emitter
if (process.__signal_exit_emitter__) {
emitter = process.__signal_exit_emitter__
} else {
emitter = process.__signal_exit_emitter__ = new EE()
emitter.count = 0
emitter.emitted = {}
}
// Because this emitter is a global, we have to check to see if a
// previous version of this library failed to enable infinite listeners.
// I know what you're about to say. But literally everything about
// signal-exit is a compromise with evil. Get used to it.
if (!emitter.infinite) {
emitter.setMaxListeners(Infinity)
emitter.infinite = true
}
module.exports = function (cb, opts) {
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
if (loaded === false) {
load()
}
var ev = 'exit'
if (opts && opts.alwaysLast) {
ev = 'afterexit'
}
var remove = function () {
emitter.removeListener(ev, cb)
if (emitter.listeners('exit').length === 0 &&
emitter.listeners('afterexit').length === 0) {
unload()
}
}
emitter.on(ev, cb)
return remove
}
module.exports.unload = unload
function unload () {
if (!loaded) {
return
}
loaded = false
signals.forEach(function (sig) {
try {
process.removeListener(sig, sigListeners[sig])
} catch (er) {}
})
process.emit = originalProcessEmit
process.reallyExit = originalProcessReallyExit
emitter.count -= 1
}
function emit (event, code, signal) {
if (emitter.emitted[event]) {
return
}
emitter.emitted[event] = true
emitter.emit(event, code, signal)
}
// { <signal>: <listener fn>, ... }
var sigListeners = {}
signals.forEach(function (sig) {
sigListeners[sig] = function listener () {
// If there are no other listeners, an exit is coming!
// Simplest way: remove us and then re-send the signal.
// We know that this will kill the process, so we can
// safely emit now.
var listeners = process.listeners(sig)
if (listeners.length === emitter.count) {
unload()
emit('exit', null, sig)
/* istanbul ignore next */
emit('afterexit', null, sig)
/* istanbul ignore next */
process.kill(process.pid, sig)
}
}
})
module.exports.signals = function () {
return signals
}
module.exports.load = load
var loaded = false
function load () {
if (loaded) {
return
}
loaded = true
// This is the number of onSignalExit's that are in play.
// It's important so that we can count the correct number of
// listeners on signals, and don't wait for the other one to
// handle it instead of us.
emitter.count += 1
signals = signals.filter(function (sig) {
try {
process.on(sig, sigListeners[sig])
return true
} catch (er) {
return false
}
})
process.emit = processEmit
process.reallyExit = processReallyExit
}
var originalProcessReallyExit = process.reallyExit
function processReallyExit (code) {
process.exitCode = code || 0
emit('exit', process.exitCode, null)
/* istanbul ignore next */
emit('afterexit', process.exitCode, null)
/* istanbul ignore next */
originalProcessReallyExit.call(process, process.exitCode)
}
var originalProcessEmit = process.emit
function processEmit (ev, arg) {
if (ev === 'exit') {
if (arg !== undefined) {
process.exitCode = arg
}
var ret = originalProcessEmit.apply(this, arguments)
emit('exit', process.exitCode, null)
/* istanbul ignore next */
emit('afterexit', process.exitCode, null)
return ret
} else {
return originalProcessEmit.apply(this, arguments)
}
}
/***/ }),
/***/ 261:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Utils = __webpack_require__(178)
function clearCanvas (ctx, canvas, size) {
ctx.clearRect(0, 0, canvas.width, canvas.height)
if (!canvas.style) canvas.style = {}
canvas.height = size
canvas.width = size
canvas.style.height = size + 'px'
canvas.style.width = size + 'px'
}
function getCanvasElement () {
try {
return document.createElement('canvas')
} catch (e) {
throw new Error('You need to specify a canvas element')
}
}
exports.render = function render (qrData, canvas, options) {
var opts = options
var canvasEl = canvas
if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
opts = canvas
canvas = undefined
}
if (!canvas) {
canvasEl = getCanvasElement()
}
opts = Utils.getOptions(opts)
var size = Utils.getImageWidth(qrData.modules.size, opts)
var ctx = canvasEl.getContext('2d')
var image = ctx.createImageData(size, size)
Utils.qrToImageData(image.data, qrData, opts)
clearCanvas(ctx, canvasEl, size)
ctx.putImageData(image, 0, 0)
return canvasEl
}
exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {
var opts = options
if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
opts = canvas
canvas = undefined
}
if (!opts) opts = {}
var canvasEl = exports.render(qrData, canvas, opts)
var type = opts.type || 'image/png'
var rendererOpts = opts.rendererOpts || {}
return canvasEl.toDataURL(type, rendererOpts.quality)
}
/***/ }),
/***/ 262:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __webpack_require__(747);
const os_1 = __webpack_require__(87);
class Context {
/**
* Hydrate the context from the environment
*/
constructor() {
this.payload = {};
if (process.env.GITHUB_EVENT_PATH) {
if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {
this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
}
else {
const path = process.env.GITHUB_EVENT_PATH;
process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
}
}
this.eventName = process.env.GITHUB_EVENT_NAME;
this.sha = process.env.GITHUB_SHA;
this.ref = process.env.GITHUB_REF;
this.workflow = process.env.GITHUB_WORKFLOW;
this.action = process.env.GITHUB_ACTION;
this.actor = process.env.GITHUB_ACTOR;
}
get issue() {
const payload = this.payload;
return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
}
get repo() {
if (process.env.GITHUB_REPOSITORY) {
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
return { owner, repo };
}
if (this.payload.repository) {
return {
owner: this.payload.repository.owner.login,
repo: this.payload.repository.name
};
}
throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
}
}
exports.Context = Context;
//# sourceMappingURL=context.js.map
/***/ }),
/***/ 265:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = getPage
const deprecate = __webpack_require__(370)
const getPageLinks = __webpack_require__(577)
const HttpError = __webpack_require__(297)
function getPage (octokit, link, which, headers) {
deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
const url = getPageLinks(link)[which]
if (!url) {
const urlError = new HttpError(`No ${which} page found`, 404)
return Promise.reject(urlError)
}
const requestOptions = {
url,
headers: applyAcceptHeader(link, headers)
}
const promise = octokit.request(requestOptions)
return promise
}
function applyAcceptHeader (res, headers) {
const previous = res.headers && res.headers['x-github-media-type']
if (!previous || (headers && headers.accept)) {
return headers
}
headers = headers || {}
headers.accept = 'application/vnd.' + previous
.replace('; param=', '.')
.replace('; format=', '+')
return headers
}
/***/ }),
/***/ 268:
/***/ (function(module) {
"use strict";
module.exports = {
PNG_SIGNATURE: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a],
TYPE_IHDR: 0x49484452,
TYPE_IEND: 0x49454e44,
TYPE_IDAT: 0x49444154,
TYPE_PLTE: 0x504c5445,
TYPE_tRNS: 0x74524e53, // eslint-disable-line camelcase
TYPE_gAMA: 0x67414d41, // eslint-disable-line camelcase
// color-type bits
COLORTYPE_GRAYSCALE: 0,
COLORTYPE_PALETTE: 1,
COLORTYPE_COLOR: 2,
COLORTYPE_ALPHA: 4, // e.g. grayscale and alpha
// color-type combinations
COLORTYPE_PALETTE_COLOR: 3,
COLORTYPE_COLOR_ALPHA: 6,
COLORTYPE_TO_BPP_MAP: {
0: 1,
2: 3,
3: 1,
4: 2,
6: 4
},
GAMMA_DIVISION: 100000
};
/***/ }),
/***/ 275:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var util = __webpack_require__(669);
var Stream = __webpack_require__(413);
var Parser = __webpack_require__(507);
var Packer = __webpack_require__(83);
var PNGSync = __webpack_require__(24);
var PNG = exports.PNG = function(options) {
Stream.call(this);
options = options || {}; // eslint-disable-line no-param-reassign
// coerce pixel dimensions to integers (also coerces undefined -> 0):
this.width = options.width | 0;
this.height = options.height | 0;
this.data = this.width > 0 && this.height > 0 ?
new Buffer(4 * this.width * this.height) : null;
if (options.fill && this.data) {
this.data.fill(0);
}
this.gamma = 0;
this.readable = this.writable = true;
this._parser = new Parser(options);
this._parser.on('error', this.emit.bind(this, 'error'));
this._parser.on('close', this._handleClose.bind(this));
this._parser.on('metadata', this._metadata.bind(this));
this._parser.on('gamma', this._gamma.bind(this));
this._parser.on('parsed', function(data) {
this.data = data;
this.emit('parsed', data);
}.bind(this));
this._packer = new Packer(options);
this._packer.on('data', this.emit.bind(this, 'data'));
this._packer.on('end', this.emit.bind(this, 'end'));
this._parser.on('close', this._handleClose.bind(this));
this._packer.on('error', this.emit.bind(this, 'error'));
};
util.inherits(PNG, Stream);
PNG.sync = PNGSync;
PNG.prototype.pack = function() {
if (!this.data || !this.data.length) {
this.emit('error', 'No data provided');
return this;
}
process.nextTick(function() {
this._packer.pack(this.data, this.width, this.height, this.gamma);
}.bind(this));
return this;
};
PNG.prototype.parse = function(data, callback) {
if (callback) {
var onParsed, onError;
onParsed = function(parsedData) {
this.removeListener('error', onError);
this.data = parsedData;
callback(null, this);
}.bind(this);
onError = function(err) {
this.removeListener('parsed', onParsed);
callback(err, null);
}.bind(this);
this.once('parsed', onParsed);
this.once('error', onError);
}
this.end(data);
return this;
};
PNG.prototype.write = function(data) {
this._parser.write(data);
return true;
};
PNG.prototype.end = function(data) {
this._parser.end(data);
};
PNG.prototype._metadata = function(metadata) {
this.width = metadata.width;
this.height = metadata.height;
this.emit('metadata', metadata);
};
PNG.prototype._gamma = function(gamma) {
this.gamma = gamma;
};
PNG.prototype._handleClose = function() {
if (!this._parser.writable && !this._packer.readable) {
this.emit('close');
}
};
PNG.bitblt = function(src, dst, srcX, srcY, width, height, deltaX, deltaY) { // eslint-disable-line max-params
// coerce pixel dimensions to integers (also coerces undefined -> 0):
/* eslint-disable no-param-reassign */
srcX |= 0;
srcY |= 0;
width |= 0;
height |= 0;
deltaX |= 0;
deltaY |= 0;
/* eslint-enable no-param-reassign */
if (srcX > src.width || srcY > src.height || srcX + width > src.width || srcY + height > src.height) {
throw new Error('bitblt reading outside image');
}
if (deltaX > dst.width || deltaY > dst.height || deltaX + width > dst.width || deltaY + height > dst.height) {
throw new Error('bitblt writing outside image');
}
for (var y = 0; y < height; y++) {
src.data.copy(dst.data,
((deltaY + y) * dst.width + deltaX) << 2,
((srcY + y) * src.width + srcX) << 2,
((srcY + y) * src.width + srcX + width) << 2
);
}
};
PNG.prototype.bitblt = function(dst, srcX, srcY, width, height, deltaX, deltaY) { // eslint-disable-line max-params
PNG.bitblt(this, dst, srcX, srcY, width, height, deltaX, deltaY);
return this;
};
PNG.adjustGamma = function(src) {
if (src.gamma) {
for (var y = 0; y < src.height; y++) {
for (var x = 0; x < src.width; x++) {
var idx = (src.width * y + x) << 2;
for (var i = 0; i < 3; i++) {
var sample = src.data[idx + i] / 255;
sample = Math.pow(sample, 1 / 2.2 / src.gamma);
src.data[idx + i] = Math.round(sample * 255);
}
}
}
src.gamma = 0;
}
};
PNG.prototype.adjustGamma = function() {
PNG.adjustGamma(this);
};
/***/ }),
/***/ 280:
/***/ (function(module) {
module.exports = register
function register (state, name, method, options) {
if (typeof method !== 'function') {
throw new Error('method for before hook must be a function')
}
if (!options) {
options = {}
}
if (Array.isArray(name)) {
return name.reverse().reduce(function (callback, name) {
return register.bind(null, state, name, callback, options)
}, method)()
}
return Promise.resolve()
.then(function () {
if (!state.registry[name]) {
return method(options)
}
return (state.registry[name]).reduce(function (method, registered) {
return registered.hook.bind(null, method, options)
}, method)()
})
}
/***/ }),
/***/ 287:
/***/ (function(module, __unusedexports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
/**
* Helper class to handle QR Code symbol modules
*
* @param {Number} size Symbol size
*/
function BitMatrix (size) {
if (!size || size < 1) {
throw new Error('BitMatrix size must be defined and greater than 0')
}
this.size = size
this.data = BufferUtil.alloc(size * size)
this.reservedBit = BufferUtil.alloc(size * size)
}
/**
* Set bit value at specified location
* If reserved flag is set, this bit will be ignored during masking process
*
* @param {Number} row
* @param {Number} col
* @param {Boolean} value
* @param {Boolean} reserved
*/
BitMatrix.prototype.set = function (row, col, value, reserved) {
var index = row * this.size + col
this.data[index] = value
if (reserved) this.reservedBit[index] = true
}
/**
* Returns bit value at specified location
*
* @param {Number} row
* @param {Number} col
* @return {Boolean}
*/
BitMatrix.prototype.get = function (row, col) {
return this.data[row * this.size + col]
}
/**
* Applies xor operator at specified location
* (used during masking process)
*
* @param {Number} row
* @param {Number} col
* @param {Boolean} value
*/
BitMatrix.prototype.xor = function (row, col, value) {
this.data[row * this.size + col] ^= value
}
/**
* Check if bit at specified location is reserved
*
* @param {Number} row
* @param {Number} col
* @return {Boolean}
*/
BitMatrix.prototype.isReserved = function (row, col) {
return this.reservedBit[row * this.size + col]
}
module.exports = BitMatrix
/***/ }),
/***/ 290:
/***/ (function(__unusedmodule, exports) {
var numeric = '[0-9]+'
var alphanumeric = '[A-Z $%*+\\-./:]+'
var kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +
'[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +
'[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +
'[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'
kanji = kanji.replace(/u/g, '\\u')
var byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ')(?:.|[\r\n]))+'
exports.KANJI = new RegExp(kanji, 'g')
exports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g')
exports.BYTE = new RegExp(byte, 'g')
exports.NUMERIC = new RegExp(numeric, 'g')
exports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')
var TEST_KANJI = new RegExp('^' + kanji + '$')
var TEST_NUMERIC = new RegExp('^' + numeric + '$')
var TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$')
exports.testKanji = function testKanji (str) {
return TEST_KANJI.test(str)
}
exports.testNumeric = function testNumeric (str) {
return TEST_NUMERIC.test(str)
}
exports.testAlphanumeric = function testAlphanumeric (str) {
return TEST_ALPHANUMERIC.test(str)
}
/***/ }),
/***/ 293:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationRequestError;
const { RequestError } = __webpack_require__(463);
function authenticationRequestError(state, error, options) {
if (!error.headers) throw error;
const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
// handle "2FA required" error only
if (error.status !== 401 || !otpRequired) {
throw error;
}
if (
error.status === 401 &&
otpRequired &&
error.request &&
error.request.headers["x-github-otp"]
) {
if (state.otp) {
delete state.otp; // no longer valid, request again
} else {
throw new RequestError(
"Invalid one-time password for two-factor authentication",
401,
{
headers: error.headers,
request: options
}
);
}
}
if (typeof state.auth.on2fa !== "function") {
throw new RequestError(
"2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
401,
{
headers: error.headers,
request: options
}
);
}
return Promise.resolve()
.then(() => {
return state.auth.on2fa();
})
.then(oneTimePassword => {
const newOptions = Object.assign(options, {
headers: Object.assign(options.headers, {
"x-github-otp": oneTimePassword
})
});
return state.octokit.request(newOptions).then(response => {
// If OTP still valid, then persist it for following requests
state.otp = oneTimePassword;
return response;
});
});
}
/***/ }),
/***/ 294:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = parseOptions;
const { Deprecation } = __webpack_require__(692);
const { getUserAgent } = __webpack_require__(796);
const once = __webpack_require__(969);
const pkg = __webpack_require__(215);
const deprecateOptionsTimeout = once((log, deprecation) =>
log.warn(deprecation)
);
const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation));
const deprecateOptionsHeaders = once((log, deprecation) =>
log.warn(deprecation)
);
function parseOptions(options, log, hook) {
if (options.headers) {
options.headers = Object.keys(options.headers).reduce((newObj, key) => {
newObj[key.toLowerCase()] = options.headers[key];
return newObj;
}, {});
}
const clientDefaults = {
headers: options.headers || {},
request: options.request || {},
mediaType: {
previews: [],
format: ""
}
};
if (options.baseUrl) {
clientDefaults.baseUrl = options.baseUrl;
}
if (options.userAgent) {
clientDefaults.headers["user-agent"] = options.userAgent;
}
if (options.previews) {
clientDefaults.mediaType.previews = options.previews;
}
if (options.timeZone) {
clientDefaults.headers["time-zone"] = options.timeZone;
}
if (options.timeout) {
deprecateOptionsTimeout(
log,
new Deprecation(
"[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"
)
);
clientDefaults.request.timeout = options.timeout;
}
if (options.agent) {
deprecateOptionsAgent(
log,
new Deprecation(
"[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"
)
);
clientDefaults.request.agent = options.agent;
}
if (options.headers) {
deprecateOptionsHeaders(
log,
new Deprecation(
"[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"
)
);
}
const userAgentOption = clientDefaults.headers["user-agent"];
const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`;
clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent]
.filter(Boolean)
.join(" ");
clientDefaults.request.hook = hook.bind(null, "request");
return clientDefaults;
}
/***/ }),
/***/ 296:
/***/ (function(module, __unusedexports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
var Mode = __webpack_require__(364)
function ByteData (data) {
this.mode = Mode.BYTE
this.data = BufferUtil.from(data)
}
ByteData.getBitsLength = function getBitsLength (length) {
return length * 8
}
ByteData.prototype.getLength = function getLength () {
return this.data.length
}
ByteData.prototype.getBitsLength = function getBitsLength () {
return ByteData.getBitsLength(this.data.length)
}
ByteData.prototype.write = function (bitBuffer) {
for (var i = 0, l = this.data.length; i < l; i++) {
bitBuffer.put(this.data[i], 8)
}
}
module.exports = ByteData
/***/ }),
/***/ 297:
/***/ (function(module) {
module.exports = class HttpError extends Error {
constructor (message, code, headers) {
super(message)
// Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor)
}
this.name = 'HttpError'
this.code = code
this.headers = headers
}
}
/***/ }),
/***/ 299:
/***/ (function(__unusedmodule, exports) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
const VERSION = "1.1.2";
/**
* Some “list” response that can be paginated have a different response structure
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
* the list of the items which name varies from endpoint to endpoint:
*
* - https://developer.github.com/v3/search/#example (key `items`)
* - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
* - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
* - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
* - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
* paginated or not. For the exceptions with the namespace, a fallback check for the route
* paths has to be added in order to normalize the response. We cannot check for the total_count
* property because it also exists in the response of Get the combined status for a specific ref.
*/
const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];
function normalizePaginatedListResponse(octokit, url, response) {
const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
// to retrieve the same information.
const incompleteResults = response.data.incomplete_results;
const repositorySelection = response.data.repository_selection;
const totalCount = response.data.total_count;
delete response.data.incomplete_results;
delete response.data.repository_selection;
delete response.data.total_count;
const namespaceKey = Object.keys(response.data)[0];
const data = response.data[namespaceKey];
response.data = data;
if (typeof incompleteResults !== "undefined") {
response.data.incomplete_results = incompleteResults;
}
if (typeof repositorySelection !== "undefined") {
response.data.repository_selection = repositorySelection;
}
response.data.total_count = totalCount;
Object.defineProperty(response.data, namespaceKey, {
get() {
octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
return Array.from(data);
}
});
}
function iterator(octokit, route, parameters) {
const options = octokit.request.endpoint(route, parameters);
const method = options.method;
const headers = options.headers;
let url = options.url;
return {
[Symbol.asyncIterator]: () => ({
next() {
if (!url) {
return Promise.resolve({
done: true
});
}
return octokit.request({
method,
url,
headers
}).then(response => {
normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
// sets `url` to undefined if "next" URL is not present or `link` header is not set
url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
return {
value: response
};
});
}
})
};
}
function paginate(octokit, route, parameters, mapFn) {
if (typeof parameters === "function") {
mapFn = parameters;
parameters = undefined;
}
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
}
function gather(octokit, results, iterator, mapFn) {
return iterator.next().then(result => {
if (result.done) {
return results;
}
let earlyExit = false;
function done() {
earlyExit = true;
}
results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
if (earlyExit) {
return results;
}
return gather(octokit, results, iterator, mapFn);
});
}
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
*/
function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
iterator: iterator.bind(null, octokit)
})
};
}
paginateRest.VERSION = VERSION;
exports.paginateRest = paginateRest;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 319:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var interlaceUtils = __webpack_require__(724);
var pixelBppMapper = [
// 0 - dummy entry
function() {},
// 1 - L
// 0: 0, 1: 0, 2: 0, 3: 0xff
function(pxData, data, pxPos, rawPos) {
if (rawPos === data.length) {
throw new Error('Ran out of data');
}
var pixel = data[rawPos];
pxData[pxPos] = pixel;
pxData[pxPos + 1] = pixel;
pxData[pxPos + 2] = pixel;
pxData[pxPos + 3] = 0xff;
},
// 2 - LA
// 0: 0, 1: 0, 2: 0, 3: 1
function(pxData, data, pxPos, rawPos) {
if (rawPos + 1 >= data.length) {
throw new Error('Ran out of data');
}
var pixel = data[rawPos];
pxData[pxPos] = pixel;
pxData[pxPos + 1] = pixel;
pxData[pxPos + 2] = pixel;
pxData[pxPos + 3] = data[rawPos + 1];
},
// 3 - RGB
// 0: 0, 1: 1, 2: 2, 3: 0xff
function(pxData, data, pxPos, rawPos) {
if (rawPos + 2 >= data.length) {
throw new Error('Ran out of data');
}
pxData[pxPos] = data[rawPos];
pxData[pxPos + 1] = data[rawPos + 1];
pxData[pxPos + 2] = data[rawPos + 2];
pxData[pxPos + 3] = 0xff;
},
// 4 - RGBA
// 0: 0, 1: 1, 2: 2, 3: 3
function(pxData, data, pxPos, rawPos) {
if (rawPos + 3 >= data.length) {
throw new Error('Ran out of data');
}
pxData[pxPos] = data[rawPos];
pxData[pxPos + 1] = data[rawPos + 1];
pxData[pxPos + 2] = data[rawPos + 2];
pxData[pxPos + 3] = data[rawPos + 3];
}
];
var pixelBppCustomMapper = [
// 0 - dummy entry
function() {},
// 1 - L
// 0: 0, 1: 0, 2: 0, 3: 0xff
function(pxData, pixelData, pxPos, maxBit) {
var pixel = pixelData[0];
pxData[pxPos] = pixel;
pxData[pxPos + 1] = pixel;
pxData[pxPos + 2] = pixel;
pxData[pxPos + 3] = maxBit;
},
// 2 - LA
// 0: 0, 1: 0, 2: 0, 3: 1
function(pxData, pixelData, pxPos) {
var pixel = pixelData[0];
pxData[pxPos] = pixel;
pxData[pxPos + 1] = pixel;
pxData[pxPos + 2] = pixel;
pxData[pxPos + 3] = pixelData[1];
},
// 3 - RGB
// 0: 0, 1: 1, 2: 2, 3: 0xff
function(pxData, pixelData, pxPos, maxBit) {
pxData[pxPos] = pixelData[0];
pxData[pxPos + 1] = pixelData[1];
pxData[pxPos + 2] = pixelData[2];
pxData[pxPos + 3] = maxBit;
},
// 4 - RGBA
// 0: 0, 1: 1, 2: 2, 3: 3
function(pxData, pixelData, pxPos) {
pxData[pxPos] = pixelData[0];
pxData[pxPos + 1] = pixelData[1];
pxData[pxPos + 2] = pixelData[2];
pxData[pxPos + 3] = pixelData[3];
}
];
function bitRetriever(data, depth) {
var leftOver = [];
var i = 0;
function split() {
if (i === data.length) {
throw new Error('Ran out of data');
}
var byte = data[i];
i++;
var byte8, byte7, byte6, byte5, byte4, byte3, byte2, byte1;
switch (depth) {
default:
throw new Error('unrecognised depth');
case 16:
byte2 = data[i];
i++;
leftOver.push(((byte << 8) + byte2));
break;
case 4:
byte2 = byte & 0x0f;
byte1 = byte >> 4;
leftOver.push(byte1, byte2);
break;
case 2:
byte4 = byte & 3;
byte3 = byte >> 2 & 3;
byte2 = byte >> 4 & 3;
byte1 = byte >> 6 & 3;
leftOver.push(byte1, byte2, byte3, byte4);
break;
case 1:
byte8 = byte & 1;
byte7 = byte >> 1 & 1;
byte6 = byte >> 2 & 1;
byte5 = byte >> 3 & 1;
byte4 = byte >> 4 & 1;
byte3 = byte >> 5 & 1;
byte2 = byte >> 6 & 1;
byte1 = byte >> 7 & 1;
leftOver.push(byte1, byte2, byte3, byte4, byte5, byte6, byte7, byte8);
break;
}
}
return {
get: function(count) {
while (leftOver.length < count) {
split();
}
var returner = leftOver.slice(0, count);
leftOver = leftOver.slice(count);
return returner;
},
resetAfterLine: function() {
leftOver.length = 0;
},
end: function() {
if (i !== data.length) {
throw new Error('extra data found');
}
}
};
}
function mapImage8Bit(image, pxData, getPxPos, bpp, data, rawPos) { // eslint-disable-line max-params
var imageWidth = image.width;
var imageHeight = image.height;
var imagePass = image.index;
for (var y = 0; y < imageHeight; y++) {
for (var x = 0; x < imageWidth; x++) {
var pxPos = getPxPos(x, y, imagePass);
pixelBppMapper[bpp](pxData, data, pxPos, rawPos);
rawPos += bpp; //eslint-disable-line no-param-reassign
}
}
return rawPos;
}
function mapImageCustomBit(image, pxData, getPxPos, bpp, bits, maxBit) { // eslint-disable-line max-params
var imageWidth = image.width;
var imageHeight = image.height;
var imagePass = image.index;
for (var y = 0; y < imageHeight; y++) {
for (var x = 0; x < imageWidth; x++) {
var pixelData = bits.get(bpp);
var pxPos = getPxPos(x, y, imagePass);
pixelBppCustomMapper[bpp](pxData, pixelData, pxPos, maxBit);
}
bits.resetAfterLine();
}
}
exports.dataToBitMap = function(data, bitmapInfo) {
var width = bitmapInfo.width;
var height = bitmapInfo.height;
var depth = bitmapInfo.depth;
var bpp = bitmapInfo.bpp;
var interlace = bitmapInfo.interlace;
if (depth !== 8) {
var bits = bitRetriever(data, depth);
}
var pxData;
if (depth <= 8) {
pxData = new Buffer(width * height * 4);
}
else {
pxData = new Uint16Array(width * height * 4);
}
var maxBit = Math.pow(2, depth) - 1;
var rawPos = 0;
var images;
var getPxPos;
if (interlace) {
images = interlaceUtils.getImagePasses(width, height);
getPxPos = interlaceUtils.getInterlaceIterator(width, height);
}
else {
var nonInterlacedPxPos = 0;
getPxPos = function() {
var returner = nonInterlacedPxPos;
nonInterlacedPxPos += 4;
return returner;
};
images = [{ width: width, height: height }];
}
for (var imageIndex = 0; imageIndex < images.length; imageIndex++) {
if (depth === 8) {
rawPos = mapImage8Bit(images[imageIndex], pxData, getPxPos, bpp, data, rawPos);
}
else {
mapImageCustomBit(images[imageIndex], pxData, getPxPos, bpp, bits, maxBit);
}
}
if (depth === 8) {
if (rawPos !== data.length) {
throw new Error('extra data found');
}
}
else {
bits.end();
}
return pxData;
};
/***/ }),
/***/ 323:
/***/ (function(module) {
"use strict";
var isStream = module.exports = function (stream) {
return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
};
isStream.writable = function (stream) {
return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
};
isStream.readable = function (stream) {
return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
};
isStream.duplex = function (stream) {
return isStream.writable(stream) && isStream.readable(stream);
};
isStream.transform = function (stream) {
return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
};
/***/ }),
/***/ 335:
/***/ (function(module) {
function allocUnsafe (size) {
if (typeof size !== 'number') {
throw new TypeError('"size" argument must be a number')
}
if (size < 0) {
throw new RangeError('"size" argument must not be negative')
}
if (Buffer.allocUnsafe) {
return Buffer.allocUnsafe(size)
} else {
return new Buffer(size)
}
}
module.exports = allocUnsafe
/***/ }),
/***/ 336:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = hasLastPage
const deprecate = __webpack_require__(370)
const getPageLinks = __webpack_require__(577)
function hasLastPage (link) {
deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
return getPageLinks(link).last
}
/***/ }),
/***/ 345:
/***/ (function(module, __unusedexports, __webpack_require__) {
var bufferFill = __webpack_require__(425)
var allocUnsafe = __webpack_require__(335)
module.exports = function alloc (size, fill, encoding) {
if (typeof size !== 'number') {
throw new TypeError('"size" argument must be a number')
}
if (size < 0) {
throw new RangeError('"size" argument must not be negative')
}
if (Buffer.alloc) {
return Buffer.alloc(size, fill, encoding)
}
var buffer = allocUnsafe(size)
if (size === 0) {
return buffer
}
if (fill === undefined) {
return bufferFill(buffer, 0)
}
if (typeof encoding !== 'string') {
encoding = undefined
}
return bufferFill(buffer, fill, encoding)
}
/***/ }),
/***/ 348:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
module.exports = validate;
const { RequestError } = __webpack_require__(463);
const get = __webpack_require__(854);
const set = __webpack_require__(883);
function validate(octokit, options) {
if (!options.request.validate) {
return;
}
const { validate: params } = options.request;
Object.keys(params).forEach(parameterName => {
const parameter = get(params, parameterName);
const expectedType = parameter.type;
let parentParameterName;
let parentValue;
let parentParamIsPresent = true;
let parentParameterIsArray = false;
if (/\./.test(parameterName)) {
parentParameterName = parameterName.replace(/\.[^.]+$/, "");
parentParameterIsArray = parentParameterName.slice(-2) === "[]";
if (parentParameterIsArray) {
parentParameterName = parentParameterName.slice(0, -2);
}
parentValue = get(options, parentParameterName);
parentParamIsPresent =
parentParameterName === "headers" ||
(typeof parentValue === "object" && parentValue !== null);
}
const values = parentParameterIsArray
? (get(options, parentParameterName) || []).map(
value => value[parameterName.split(/\./).pop()]
)
: [get(options, parameterName)];
values.forEach((value, i) => {
const valueIsPresent = typeof value !== "undefined";
const valueIsNull = value === null;
const currentParameterName = parentParameterIsArray
? parameterName.replace(/\[\]/, `[${i}]`)
: parameterName;
if (!parameter.required && !valueIsPresent) {
return;
}
// if the parent parameter is of type object but allows null
// then the child parameters can be ignored
if (!parentParamIsPresent) {
return;
}
if (parameter.allowNull && valueIsNull) {
return;
}
if (!parameter.allowNull && valueIsNull) {
throw new RequestError(
`'${currentParameterName}' cannot be null`,
400,
{
request: options
}
);
}
if (parameter.required && !valueIsPresent) {
throw new RequestError(
`Empty value for parameter '${currentParameterName}': ${JSON.stringify(
value
)}`,
400,
{
request: options
}
);
}
// parse to integer before checking for enum
// so that string "1" will match enum with number 1
if (expectedType === "integer") {
const unparsedValue = value;
value = parseInt(value, 10);
if (isNaN(value)) {
throw new RequestError(
`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
unparsedValue
)} is NaN`,
400,
{
request: options
}
);
}
}
if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) {
throw new RequestError(
`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
value
)}`,
400,
{
request: options
}
);
}
if (parameter.validation) {
const regex = new RegExp(parameter.validation);
if (!regex.test(value)) {
throw new RequestError(
`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
value
)}`,
400,
{
request: options
}
);
}
}
if (expectedType === "object" && typeof value === "string") {
try {
value = JSON.parse(value);
} catch (exception) {
throw new RequestError(
`JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(
value
)}`,
400,
{
request: options
}
);
}
}
set(options, parameter.mapTo || currentParameterName, value);
});
});
return options;
}
/***/ }),
/***/ 349:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationRequestError;
const { RequestError } = __webpack_require__(463);
function authenticationRequestError(state, error, options) {
/* istanbul ignore next */
if (!error.headers) throw error;
const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
// handle "2FA required" error only
if (error.status !== 401 || !otpRequired) {
throw error;
}
if (
error.status === 401 &&
otpRequired &&
error.request &&
error.request.headers["x-github-otp"]
) {
throw new RequestError(
"Invalid one-time password for two-factor authentication",
401,
{
headers: error.headers,
request: options
}
);
}
if (typeof state.auth.on2fa !== "function") {
throw new RequestError(
"2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
401,
{
headers: error.headers,
request: options
}
);
}
return Promise.resolve()
.then(() => {
return state.auth.on2fa();
})
.then(oneTimePassword => {
const newOptions = Object.assign(options, {
headers: Object.assign(
{ "x-github-otp": oneTimePassword },
options.headers
)
});
return state.octokit.request(newOptions);
});
}
/***/ }),
/***/ 355:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Utils = __webpack_require__(178)
var BLOCK_CHAR = {
WW: ' ',
WB: '▄',
BB: '█',
BW: '▀'
}
var INVERTED_BLOCK_CHAR = {
BB: ' ',
BW: '▄',
WW: '█',
WB: '▀'
}
function getBlockChar (top, bottom, blocks) {
if (top && bottom) return blocks.BB
if (top && !bottom) return blocks.BW
if (!top && bottom) return blocks.WB
return blocks.WW
}
exports.render = function (qrData, options, cb) {
var opts = Utils.getOptions(options)
var blocks = BLOCK_CHAR
if (opts.color.dark.hex === '#ffffff' || opts.color.light.hex === '#000000') {
blocks = INVERTED_BLOCK_CHAR
}
var size = qrData.modules.size
var data = qrData.modules.data
var output = ''
var hMargin = Array(size + (opts.margin * 2) + 1).join(blocks.WW)
hMargin = Array((opts.margin / 2) + 1).join(hMargin + '\n')
var vMargin = Array(opts.margin + 1).join(blocks.WW)
output += hMargin
for (var i = 0; i < size; i += 2) {
output += vMargin
for (var j = 0; j < size; j++) {
var topModule = data[i * size + j]
var bottomModule = data[(i + 1) * size + j]
output += getBlockChar(topModule, bottomModule, blocks)
}
output += vMargin + '\n'
}
output += hMargin.slice(0, -1)
if (typeof cb === 'function') {
cb(null, output)
}
return output
}
exports.renderToFile = function renderToFile (path, qrData, options, cb) {
if (typeof cb === 'undefined') {
cb = options
options = undefined
}
var fs = __webpack_require__(747)
var utf8 = exports.render(qrData, options)
fs.writeFile(path, utf8, cb)
}
/***/ }),
/***/ 357:
/***/ (function(module) {
module.exports = require("assert");
/***/ }),
/***/ 363:
/***/ (function(module, __unusedexports, __webpack_require__) {
var Mode = __webpack_require__(364)
function NumericData (data) {
this.mode = Mode.NUMERIC
this.data = data.toString()
}
NumericData.getBitsLength = function getBitsLength (length) {
return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)
}
NumericData.prototype.getLength = function getLength () {
return this.data.length
}
NumericData.prototype.getBitsLength = function getBitsLength () {
return NumericData.getBitsLength(this.data.length)
}
NumericData.prototype.write = function write (bitBuffer) {
var i, group, value
// The input data string is divided into groups of three digits,
// and each group is converted to its 10-bit binary equivalent.
for (i = 0; i + 3 <= this.data.length; i += 3) {
group = this.data.substr(i, 3)
value = parseInt(group, 10)
bitBuffer.put(value, 10)
}
// If the number of input digits is not an exact multiple of three,
// the final one or two digits are converted to 4 or 7 bits respectively.
var remainingNum = this.data.length - i
if (remainingNum > 0) {
group = this.data.substr(i)
value = parseInt(group, 10)
bitBuffer.put(value, remainingNum * 3 + 1)
}
}
module.exports = NumericData
/***/ }),
/***/ 364:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var VersionCheck = __webpack_require__(54)
var Regex = __webpack_require__(290)
/**
* Numeric mode encodes data from the decimal digit set (0 - 9)
* (byte values 30HEX to 39HEX).
* Normally, 3 data characters are represented by 10 bits.
*
* @type {Object}
*/
exports.NUMERIC = {
id: 'Numeric',
bit: 1 << 0,
ccBits: [10, 12, 14]
}
/**
* Alphanumeric mode encodes data from a set of 45 characters,
* i.e. 10 numeric digits (0 - 9),
* 26 alphabetic characters (A - Z),
* and 9 symbols (SP, $, %, *, +, -, ., /, :).
* Normally, two input characters are represented by 11 bits.
*
* @type {Object}
*/
exports.ALPHANUMERIC = {
id: 'Alphanumeric',
bit: 1 << 1,
ccBits: [9, 11, 13]
}
/**
* In byte mode, data is encoded at 8 bits per character.
*
* @type {Object}
*/
exports.BYTE = {
id: 'Byte',
bit: 1 << 2,
ccBits: [8, 16, 16]
}
/**
* The Kanji mode efficiently encodes Kanji characters in accordance with
* the Shift JIS system based on JIS X 0208.
* The Shift JIS values are shifted from the JIS X 0208 values.
* JIS X 0208 gives details of the shift coded representation.
* Each two-byte character value is compacted to a 13-bit binary codeword.
*
* @type {Object}
*/
exports.KANJI = {
id: 'Kanji',
bit: 1 << 3,
ccBits: [8, 10, 12]
}
/**
* Mixed mode will contain a sequences of data in a combination of any of
* the modes described above
*
* @type {Object}
*/
exports.MIXED = {
bit: -1
}
/**
* Returns the number of bits needed to store the data length
* according to QR Code specifications.
*
* @param {Mode} mode Data mode
* @param {Number} version QR Code version
* @return {Number} Number of bits
*/
exports.getCharCountIndicator = function getCharCountIndicator (mode, version) {
if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)
if (!VersionCheck.isValid(version)) {
throw new Error('Invalid version: ' + version)
}
if (version >= 1 && version < 10) return mode.ccBits[0]
else if (version < 27) return mode.ccBits[1]
return mode.ccBits[2]
}
/**
* Returns the most efficient mode to store the specified data
*
* @param {String} dataStr Input data string
* @return {Mode} Best mode
*/
exports.getBestModeForData = function getBestModeForData (dataStr) {
if (Regex.testNumeric(dataStr)) return exports.NUMERIC
else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC
else if (Regex.testKanji(dataStr)) return exports.KANJI
else return exports.BYTE
}
/**
* Return mode name as string
*
* @param {Mode} mode Mode object
* @returns {String} Mode name
*/
exports.toString = function toString (mode) {
if (mode && mode.id) return mode.id
throw new Error('Invalid mode')
}
/**
* Check if input param is a valid mode object
*
* @param {Mode} mode Mode object
* @returns {Boolean} True if valid mode, false otherwise
*/
exports.isValid = function isValid (mode) {
return mode && mode.bit && mode.ccBits
}
/**
* Get mode object from its name
*
* @param {String} string Mode name
* @returns {Mode} Mode object
*/
function fromString (string) {
if (typeof string !== 'string') {
throw new Error('Param is not a string')
}
var lcStr = string.toLowerCase()
switch (lcStr) {
case 'numeric':
return exports.NUMERIC
case 'alphanumeric':
return exports.ALPHANUMERIC
case 'kanji':
return exports.KANJI
case 'byte':
return exports.BYTE
default:
throw new Error('Unknown mode: ' + string)
}
}
/**
* Returns mode from a value.
* If value is not a valid mode, returns defaultValue
*
* @param {Mode|String} value Encoding mode
* @param {Mode} defaultValue Fallback value
* @return {Mode} Encoding mode
*/
exports.from = function from (value, defaultValue) {
if (exports.isValid(value)) {
return value
}
try {
return fromString(value)
} catch (e) {
return defaultValue
}
}
/***/ }),
/***/ 367:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var hasSyncZlib = true;
var zlib = __webpack_require__(761);
if (!zlib.deflateSync) {
hasSyncZlib = false;
}
var constants = __webpack_require__(268);
var Packer = __webpack_require__(189);
module.exports = function(metaData, opt) {
if (!hasSyncZlib) {
throw new Error('To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0');
}
var options = opt || {};
var packer = new Packer(options);
var chunks = [];
// Signature
chunks.push(new Buffer(constants.PNG_SIGNATURE));
// Header
chunks.push(packer.packIHDR(metaData.width, metaData.height));
if (metaData.gamma) {
chunks.push(packer.packGAMA(metaData.gamma));
}
var filteredData = packer.filterData(metaData.data, metaData.width, metaData.height);
// compress it
var compressedData = zlib.deflateSync(filteredData, packer.getDeflateOptions());
filteredData = null;
if (!compressedData || !compressedData.length) {
throw new Error('bad png - invalid compressed data response');
}
chunks.push(packer.packIDAT(compressedData));
// End
chunks.push(packer.packIEND());
return Buffer.concat(chunks);
};
/***/ }),
/***/ 368:
/***/ (function(module) {
module.exports = function atob(str) {
return Buffer.from(str, 'base64').toString('binary')
}
/***/ }),
/***/ 369:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stream = _interopDefault(__webpack_require__(413));
var http = _interopDefault(__webpack_require__(605));
var Url = _interopDefault(__webpack_require__(835));
var https = _interopDefault(__webpack_require__(34));
var zlib = _interopDefault(__webpack_require__(761));
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
// fix for "Readable" isn't a named export issue
const Readable = Stream.Readable;
const BUFFER = Symbol('buffer');
const TYPE = Symbol('type');
class Blob {
constructor() {
this[TYPE] = '';
const blobParts = arguments[0];
const options = arguments[1];
const buffers = [];
let size = 0;
if (blobParts) {
const a = blobParts;
const length = Number(a.length);
for (let i = 0; i < length; i++) {
const element = a[i];
let buffer;
if (element instanceof Buffer) {
buffer = element;
} else if (ArrayBuffer.isView(element)) {
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
} else if (element instanceof ArrayBuffer) {
buffer = Buffer.from(element);
} else if (element instanceof Blob) {
buffer = element[BUFFER];
} else {
buffer = Buffer.from(typeof element === 'string' ? element : String(element));
}
size += buffer.length;
buffers.push(buffer);
}
}
this[BUFFER] = Buffer.concat(buffers);
let type = options && options.type !== undefined && String(options.type).toLowerCase();
if (type && !/[^\u0020-\u007E]/.test(type)) {
this[TYPE] = type;
}
}
get size() {
return this[BUFFER].length;
}
get type() {
return this[TYPE];
}
text() {
return Promise.resolve(this[BUFFER].toString());
}
arrayBuffer() {
const buf = this[BUFFER];
const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
return Promise.resolve(ab);
}
stream() {
const readable = new Readable();
readable._read = function () {};
readable.push(this[BUFFER]);
readable.push(null);
return readable;
}
toString() {
return '[object Blob]';
}
slice() {
const size = this.size;
const start = arguments[0];
const end = arguments[1];
let relativeStart, relativeEnd;
if (start === undefined) {
relativeStart = 0;
} else if (start < 0) {
relativeStart = Math.max(size + start, 0);
} else {
relativeStart = Math.min(start, size);
}
if (end === undefined) {
relativeEnd = size;
} else if (end < 0) {
relativeEnd = Math.max(size + end, 0);
} else {
relativeEnd = Math.min(end, size);
}
const span = Math.max(relativeEnd - relativeStart, 0);
const buffer = this[BUFFER];
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
const blob = new Blob([], { type: arguments[2] });
blob[BUFFER] = slicedBuffer;
return blob;
}
}
Object.defineProperties(Blob.prototype, {
size: { enumerable: true },
type: { enumerable: true },
slice: { enumerable: true }
});
Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
value: 'Blob',
writable: false,
enumerable: false,
configurable: true
});
/**
* fetch-error.js
*
* FetchError interface for operational errors
*/
/**
* Create FetchError instance
*
* @param String message Error message for human
* @param String type Error type for machine
* @param String systemError For Node.js system error
* @return FetchError
*/
function FetchError(message, type, systemError) {
Error.call(this, message);
this.message = message;
this.type = type;
// when err.type is `system`, err.code contains system error code
if (systemError) {
this.code = this.errno = systemError.code;
}
// hide custom error implementation details from end-users
Error.captureStackTrace(this, this.constructor);
}
FetchError.prototype = Object.create(Error.prototype);
FetchError.prototype.constructor = FetchError;
FetchError.prototype.name = 'FetchError';
let convert;
try {
convert = __webpack_require__(18).convert;
} catch (e) {}
const INTERNALS = Symbol('Body internals');
// fix an issue where "PassThrough" isn't a named export for node <10
const PassThrough = Stream.PassThrough;
/**
* Body mixin
*
* Ref: https://fetch.spec.whatwg.org/#body
*
* @param Stream body Readable stream
* @param Object opts Response options
* @return Void
*/
function Body(body) {
var _this = this;
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref$size = _ref.size;
let size = _ref$size === undefined ? 0 : _ref$size;
var _ref$timeout = _ref.timeout;
let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
if (body == null) {
// body is undefined or null
body = null;
} else if (isURLSearchParams(body)) {
// body is a URLSearchParams
body = Buffer.from(body.toString());
} else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
// body is ArrayBuffer
body = Buffer.from(body);
} else if (ArrayBuffer.isView(body)) {
// body is ArrayBufferView
body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
} else if (body instanceof Stream) ; else {
// none of the above
// coerce to string then buffer
body = Buffer.from(String(body));
}
this[INTERNALS] = {
body,
disturbed: false,
error: null
};
this.size = size;
this.timeout = timeout;
if (body instanceof Stream) {
body.on('error', function (err) {
const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
_this[INTERNALS].error = error;
});
}
}
Body.prototype = {
get body() {
return this[INTERNALS].body;
},
get bodyUsed() {
return this[INTERNALS].disturbed;
},
/**
* Decode response as ArrayBuffer
*
* @return Promise
*/
arrayBuffer() {
return consumeBody.call(this).then(function (buf) {
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
});
},
/**
* Return raw response as Blob
*
* @return Promise
*/
blob() {
let ct = this.headers && this.headers.get('content-type') || '';
return consumeBody.call(this).then(function (buf) {
return Object.assign(
// Prevent copying
new Blob([], {
type: ct.toLowerCase()
}), {
[BUFFER]: buf
});
});
},
/**
* Decode response as json
*
* @return Promise
*/
json() {
var _this2 = this;
return consumeBody.call(this).then(function (buffer) {
try {
return JSON.parse(buffer.toString());
} catch (err) {
return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
}
});
},
/**
* Decode response as text
*
* @return Promise
*/
text() {
return consumeBody.call(this).then(function (buffer) {
return buffer.toString();
});
},
/**
* Decode response as buffer (non-spec api)
*
* @return Promise
*/
buffer() {
return consumeBody.call(this);
},
/**
* Decode response as text, while automatically detecting the encoding and
* trying to decode to UTF-8 (non-spec api)
*
* @return Promise
*/
textConverted() {
var _this3 = this;
return consumeBody.call(this).then(function (buffer) {
return convertBody(buffer, _this3.headers);
});
}
};
// In browsers, all properties are enumerable.
Object.defineProperties(Body.prototype, {
body: { enumerable: true },
bodyUsed: { enumerable: true },
arrayBuffer: { enumerable: true },
blob: { enumerable: true },
json: { enumerable: true },
text: { enumerable: true }
});
Body.mixIn = function (proto) {
for (const name of Object.getOwnPropertyNames(Body.prototype)) {
// istanbul ignore else: future proof
if (!(name in proto)) {
const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
Object.defineProperty(proto, name, desc);
}
}
};
/**
* Consume and convert an entire Body to a Buffer.
*
* Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
*
* @return Promise
*/
function consumeBody() {
var _this4 = this;
if (this[INTERNALS].disturbed) {
return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
}
this[INTERNALS].disturbed = true;
if (this[INTERNALS].error) {
return Body.Promise.reject(this[INTERNALS].error);
}
let body = this.body;
// body is null
if (body === null) {
return Body.Promise.resolve(Buffer.alloc(0));
}
// body is blob
if (isBlob(body)) {
body = body.stream();
}
// body is buffer
if (Buffer.isBuffer(body)) {
return Body.Promise.resolve(body);
}
// istanbul ignore if: should never happen
if (!(body instanceof Stream)) {
return Body.Promise.resolve(Buffer.alloc(0));
}
// body is stream
// get ready to actually consume the body
let accum = [];
let accumBytes = 0;
let abort = false;
return new Body.Promise(function (resolve, reject) {
let resTimeout;
// allow timeout on slow response body
if (_this4.timeout) {
resTimeout = setTimeout(function () {
abort = true;
reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
}, _this4.timeout);
}
// handle stream errors
body.on('error', function (err) {
if (err.name === 'AbortError') {
// if the request was aborted, reject with this Error
abort = true;
reject(err);
} else {
// other errors, such as incorrect content-encoding
reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
}
});
body.on('data', function (chunk) {
if (abort || chunk === null) {
return;
}
if (_this4.size && accumBytes + chunk.length > _this4.size) {
abort = true;
reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
return;
}
accumBytes += chunk.length;
accum.push(chunk);
});
body.on('end', function () {
if (abort) {
return;
}
clearTimeout(resTimeout);
try {
resolve(Buffer.concat(accum, accumBytes));
} catch (err) {
// handle streams that have accumulated too much data (issue #414)
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
}
});
});
}
/**
* Detect buffer encoding and convert to target encoding
* ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
*
* @param Buffer buffer Incoming buffer
* @param String encoding Target encoding
* @return String
*/
function convertBody(buffer, headers) {
if (typeof convert !== 'function') {
throw new Error('The package `encoding` must be installed to use the textConverted() function');
}
const ct = headers.get('content-type');
let charset = 'utf-8';
let res, str;
// header
if (ct) {
res = /charset=([^;]*)/i.exec(ct);
}
// no charset in content type, peek at response body for at most 1024 bytes
str = buffer.slice(0, 1024).toString();
// html5
if (!res && str) {
res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
}
// html4
if (!res && str) {
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
if (res) {
res = /charset=(.*)/i.exec(res.pop());
}
}
// xml
if (!res && str) {
res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
}
// found charset
if (res) {
charset = res.pop();
// prevent decode issues when sites use incorrect encoding
// ref: https://hsivonen.fi/encoding-menu/
if (charset === 'gb2312' || charset === 'gbk') {
charset = 'gb18030';
}
}
// turn raw buffers into a single utf-8 buffer
return convert(buffer, 'UTF-8', charset).toString();
}
/**
* Detect a URLSearchParams object
* ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
*
* @param Object obj Object to detect by type or brand
* @return String
*/
function isURLSearchParams(obj) {
// Duck-typing as a necessary condition.
if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
return false;
}
// Brand-checking and more duck-typing as optional condition.
return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
}
/**
* Check if `obj` is a W3C `Blob` object (which `File` inherits from)
* @param {*} obj
* @return {boolean}
*/
function isBlob(obj) {
return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
}
/**
* Clone body given Res/Req instance
*
* @param Mixed instance Response or Request instance
* @return Mixed
*/
function clone(instance) {
let p1, p2;
let body = instance.body;
// don't allow cloning a used body
if (instance.bodyUsed) {
throw new Error('cannot clone body after it is used');
}
// check that body is a stream and not form-data object
// note: we can't clone the form-data object without having it as a dependency
if (body instanceof Stream && typeof body.getBoundary !== 'function') {
// tee instance body
p1 = new PassThrough();
p2 = new PassThrough();
body.pipe(p1);
body.pipe(p2);
// set instance body to teed body and return the other teed body
instance[INTERNALS].body = p1;
body = p2;
}
return body;
}
/**
* Performs the operation "extract a `Content-Type` value from |object|" as
* specified in the specification:
* https://fetch.spec.whatwg.org/#concept-bodyinit-extract
*
* This function assumes that instance.body is present.
*
* @param Mixed instance Any options.body input
*/
function extractContentType(body) {
if (body === null) {
// body is null
return null;
} else if (typeof body === 'string') {
// body is string
return 'text/plain;charset=UTF-8';
} else if (isURLSearchParams(body)) {
// body is a URLSearchParams
return 'application/x-www-form-urlencoded;charset=UTF-8';
} else if (isBlob(body)) {
// body is blob
return body.type || null;
} else if (Buffer.isBuffer(body)) {
// body is buffer
return null;
} else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
// body is ArrayBuffer
return null;
} else if (ArrayBuffer.isView(body)) {
// body is ArrayBufferView
return null;
} else if (typeof body.getBoundary === 'function') {
// detect form data input from form-data module
return `multipart/form-data;boundary=${body.getBoundary()}`;
} else if (body instanceof Stream) {
// body is stream
// can't really do much about this
return null;
} else {
// Body constructor defaults other things to string
return 'text/plain;charset=UTF-8';
}
}
/**
* The Fetch Standard treats this as if "total bytes" is a property on the body.
* For us, we have to explicitly get it with a function.
*
* ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
*
* @param Body instance Instance of Body
* @return Number? Number of bytes, or null if not possible
*/
function getTotalBytes(instance) {
const body = instance.body;
if (body === null) {
// body is null
return 0;
} else if (isBlob(body)) {
return body.size;
} else if (Buffer.isBuffer(body)) {
// body is buffer
return body.length;
} else if (body && typeof body.getLengthSync === 'function') {
// detect form data input from form-data module
if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
body.hasKnownLength && body.hasKnownLength()) {
// 2.x
return body.getLengthSync();
}
return null;
} else {
// body is stream
return null;
}
}
/**
* Write a Body to a Node.js WritableStream (e.g. http.Request) object.
*
* @param Body instance Instance of Body
* @return Void
*/
function writeToStream(dest, instance) {
const body = instance.body;
if (body === null) {
// body is null
dest.end();
} else if (isBlob(body)) {
body.stream().pipe(dest);
} else if (Buffer.isBuffer(body)) {
// body is buffer
dest.write(body);
dest.end();
} else {
// body is stream
body.pipe(dest);
}
}
// expose Promise
Body.Promise = global.Promise;
/**
* headers.js
*
* Headers class offers convenient helpers
*/
const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
function validateName(name) {
name = `${name}`;
if (invalidTokenRegex.test(name) || name === '') {
throw new TypeError(`${name} is not a legal HTTP header name`);
}
}
function validateValue(value) {
value = `${value}`;
if (invalidHeaderCharRegex.test(value)) {
throw new TypeError(`${value} is not a legal HTTP header value`);
}
}
/**
* Find the key in the map object given a header name.
*
* Returns undefined if not found.
*
* @param String name Header name
* @return String|Undefined
*/
function find(map, name) {
name = name.toLowerCase();
for (const key in map) {
if (key.toLowerCase() === name) {
return key;
}
}
return undefined;
}
const MAP = Symbol('map');
class Headers {
/**
* Headers class
*
* @param Object headers Response headers
* @return Void
*/
constructor() {
let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
this[MAP] = Object.create(null);
if (init instanceof Headers) {
const rawHeaders = init.raw();
const headerNames = Object.keys(rawHeaders);
for (const headerName of headerNames) {
for (const value of rawHeaders[headerName]) {
this.append(headerName, value);
}
}
return;
}
// We don't worry about converting prop to ByteString here as append()
// will handle it.
if (init == null) ; else if (typeof init === 'object') {
const method = init[Symbol.iterator];
if (method != null) {
if (typeof method !== 'function') {
throw new TypeError('Header pairs must be iterable');
}
// sequence<sequence<ByteString>>
// Note: per spec we have to first exhaust the lists then process them
const pairs = [];
for (const pair of init) {
if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
throw new TypeError('Each header pair must be iterable');
}
pairs.push(Array.from(pair));
}
for (const pair of pairs) {
if (pair.length !== 2) {
throw new TypeError('Each header pair must be a name/value tuple');
}
this.append(pair[0], pair[1]);
}
} else {
// record<ByteString, ByteString>
for (const key of Object.keys(init)) {
const value = init[key];
this.append(key, value);
}
}
} else {
throw new TypeError('Provided initializer must be an object');
}
}
/**
* Return combined header value given name
*
* @param String name Header name
* @return Mixed
*/
get(name) {
name = `${name}`;
validateName(name);
const key = find(this[MAP], name);
if (key === undefined) {
return null;
}
return this[MAP][key].join(', ');
}
/**
* Iterate over all headers
*
* @param Function callback Executed for each item with parameters (value, name, thisArg)
* @param Boolean thisArg `this` context for callback function
* @return Void
*/
forEach(callback) {
let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
let pairs = getHeaders(this);
let i = 0;
while (i < pairs.length) {
var _pairs$i = pairs[i];
const name = _pairs$i[0],
value = _pairs$i[1];
callback.call(thisArg, value, name, this);
pairs = getHeaders(this);
i++;
}
}
/**
* Overwrite header values given name
*
* @param String name Header name
* @param String value Header value
* @return Void
*/
set(name, value) {
name = `${name}`;
value = `${value}`;
validateName(name);
validateValue(value);
const key = find(this[MAP], name);
this[MAP][key !== undefined ? key : name] = [value];
}
/**
* Append a value onto existing header
*
* @param String name Header name
* @param String value Header value
* @return Void
*/
append(name, value) {
name = `${name}`;
value = `${value}`;
validateName(name);
validateValue(value);
const key = find(this[MAP], name);
if (key !== undefined) {
this[MAP][key].push(value);
} else {
this[MAP][name] = [value];
}
}
/**
* Check for header name existence
*
* @param String name Header name
* @return Boolean
*/
has(name) {
name = `${name}`;
validateName(name);
return find(this[MAP], name) !== undefined;
}
/**
* Delete all header values given name
*
* @param String name Header name
* @return Void
*/
delete(name) {
name = `${name}`;
validateName(name);
const key = find(this[MAP], name);
if (key !== undefined) {
delete this[MAP][key];
}
}
/**
* Return raw headers (non-spec api)
*
* @return Object
*/
raw() {
return this[MAP];
}
/**
* Get an iterator on keys.
*
* @return Iterator
*/
keys() {
return createHeadersIterator(this, 'key');
}
/**
* Get an iterator on values.
*
* @return Iterator
*/
values() {
return createHeadersIterator(this, 'value');
}
/**
* Get an iterator on entries.
*
* This is the default iterator of the Headers object.
*
* @return Iterator
*/
[Symbol.iterator]() {
return createHeadersIterator(this, 'key+value');
}
}
Headers.prototype.entries = Headers.prototype[Symbol.iterator];
Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
value: 'Headers',
writable: false,
enumerable: false,
configurable: true
});
Object.defineProperties(Headers.prototype, {
get: { enumerable: true },
forEach: { enumerable: true },
set: { enumerable: true },
append: { enumerable: true },
has: { enumerable: true },
delete: { enumerable: true },
keys: { enumerable: true },
values: { enumerable: true },
entries: { enumerable: true }
});
function getHeaders(headers) {
let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
const keys = Object.keys(headers[MAP]).sort();
return keys.map(kind === 'key' ? function (k) {
return k.toLowerCase();
} : kind === 'value' ? function (k) {
return headers[MAP][k].join(', ');
} : function (k) {
return [k.toLowerCase(), headers[MAP][k].join(', ')];
});
}
const INTERNAL = Symbol('internal');
function createHeadersIterator(target, kind) {
const iterator = Object.create(HeadersIteratorPrototype);
iterator[INTERNAL] = {
target,
kind,
index: 0
};
return iterator;
}
const HeadersIteratorPrototype = Object.setPrototypeOf({
next() {
// istanbul ignore if
if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
throw new TypeError('Value of `this` is not a HeadersIterator');
}
var _INTERNAL = this[INTERNAL];
const target = _INTERNAL.target,
kind = _INTERNAL.kind,
index = _INTERNAL.index;
const values = getHeaders(target, kind);
const len = values.length;
if (index >= len) {
return {
value: undefined,
done: true
};
}
this[INTERNAL].index = index + 1;
return {
value: values[index],
done: false
};
}
}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
value: 'HeadersIterator',
writable: false,
enumerable: false,
configurable: true
});
/**
* Export the Headers object in a form that Node.js can consume.
*
* @param Headers headers
* @return Object
*/
function exportNodeCompatibleHeaders(headers) {
const obj = Object.assign({ __proto__: null }, headers[MAP]);
// http.request() only supports string as Host header. This hack makes
// specifying custom Host header possible.
const hostHeaderKey = find(headers[MAP], 'Host');
if (hostHeaderKey !== undefined) {
obj[hostHeaderKey] = obj[hostHeaderKey][0];
}
return obj;
}
/**
* Create a Headers object from an object of headers, ignoring those that do
* not conform to HTTP grammar productions.
*
* @param Object obj Object of headers
* @return Headers
*/
function createHeadersLenient(obj) {
const headers = new Headers();
for (const name of Object.keys(obj)) {
if (invalidTokenRegex.test(name)) {
continue;
}
if (Array.isArray(obj[name])) {
for (const val of obj[name]) {
if (invalidHeaderCharRegex.test(val)) {
continue;
}
if (headers[MAP][name] === undefined) {
headers[MAP][name] = [val];
} else {
headers[MAP][name].push(val);
}
}
} else if (!invalidHeaderCharRegex.test(obj[name])) {
headers[MAP][name] = [obj[name]];
}
}
return headers;
}
const INTERNALS$1 = Symbol('Response internals');
// fix an issue where "STATUS_CODES" aren't a named export for node <10
const STATUS_CODES = http.STATUS_CODES;
/**
* Response class
*
* @param Stream body Readable stream
* @param Object opts Response options
* @return Void
*/
class Response {
constructor() {
let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
Body.call(this, body, opts);
const status = opts.status || 200;
const headers = new Headers(opts.headers);
if (body != null && !headers.has('Content-Type')) {
const contentType = extractContentType(body);
if (contentType) {
headers.append('Content-Type', contentType);
}
}
this[INTERNALS$1] = {
url: opts.url,
status,
statusText: opts.statusText || STATUS_CODES[status],
headers,
counter: opts.counter
};
}
get url() {
return this[INTERNALS$1].url || '';
}
get status() {
return this[INTERNALS$1].status;
}
/**
* Convenience property representing if the request ended normally
*/
get ok() {
return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
}
get redirected() {
return this[INTERNALS$1].counter > 0;
}
get statusText() {
return this[INTERNALS$1].statusText;
}
get headers() {
return this[INTERNALS$1].headers;
}
/**
* Clone this response
*
* @return Response
*/
clone() {
return new Response(clone(this), {
url: this.url,
status: this.status,
statusText: this.statusText,
headers: this.headers,
ok: this.ok,
redirected: this.redirected
});
}
}
Body.mixIn(Response.prototype);
Object.defineProperties(Response.prototype, {
url: { enumerable: true },
status: { enumerable: true },
ok: { enumerable: true },
redirected: { enumerable: true },
statusText: { enumerable: true },
headers: { enumerable: true },
clone: { enumerable: true }
});
Object.defineProperty(Response.prototype, Symbol.toStringTag, {
value: 'Response',
writable: false,
enumerable: false,
configurable: true
});
const INTERNALS$2 = Symbol('Request internals');
// fix an issue where "format", "parse" aren't a named export for node <10
const parse_url = Url.parse;
const format_url = Url.format;
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
/**
* Check if a value is an instance of Request.
*
* @param Mixed input
* @return Boolean
*/
function isRequest(input) {
return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
}
function isAbortSignal(signal) {
const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
return !!(proto && proto.constructor.name === 'AbortSignal');
}
/**
* Request class
*
* @param Mixed input Url or Request instance
* @param Object init Custom options
* @return Void
*/
class Request {
constructor(input) {
let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
let parsedURL;
// normalize input
if (!isRequest(input)) {
if (input && input.href) {
// in order to support Node.js' Url objects; though WHATWG's URL objects
// will fall into this branch also (since their `toString()` will return
// `href` property anyway)
parsedURL = parse_url(input.href);
} else {
// coerce input to a string before attempting to parse
parsedURL = parse_url(`${input}`);
}
input = {};
} else {
parsedURL = parse_url(input.url);
}
let method = init.method || input.method || 'GET';
method = method.toUpperCase();
if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
throw new TypeError('Request with GET/HEAD method cannot have body');
}
let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
Body.call(this, inputBody, {
timeout: init.timeout || input.timeout || 0,
size: init.size || input.size || 0
});
const headers = new Headers(init.headers || input.headers || {});
if (inputBody != null && !headers.has('Content-Type')) {
const contentType = extractContentType(inputBody);
if (contentType) {
headers.append('Content-Type', contentType);
}
}
let signal = isRequest(input) ? input.signal : null;
if ('signal' in init) signal = init.signal;
if (signal != null && !isAbortSignal(signal)) {
throw new TypeError('Expected signal to be an instanceof AbortSignal');
}
this[INTERNALS$2] = {
method,
redirect: init.redirect || input.redirect || 'follow',
headers,
parsedURL,
signal
};
// node-fetch-only options
this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
this.counter = init.counter || input.counter || 0;
this.agent = init.agent || input.agent;
}
get method() {
return this[INTERNALS$2].method;
}
get url() {
return format_url(this[INTERNALS$2].parsedURL);
}
get headers() {
return this[INTERNALS$2].headers;
}
get redirect() {
return this[INTERNALS$2].redirect;
}
get signal() {
return this[INTERNALS$2].signal;
}
/**
* Clone this request
*
* @return Request
*/
clone() {
return new Request(this);
}
}
Body.mixIn(Request.prototype);
Object.defineProperty(Request.prototype, Symbol.toStringTag, {
value: 'Request',
writable: false,
enumerable: false,
configurable: true
});
Object.defineProperties(Request.prototype, {
method: { enumerable: true },
url: { enumerable: true },
headers: { enumerable: true },
redirect: { enumerable: true },
clone: { enumerable: true },
signal: { enumerable: true }
});
/**
* Convert a Request to Node.js http request options.
*
* @param Request A Request instance
* @return Object The options object to be passed to http.request
*/
function getNodeRequestOptions(request) {
const parsedURL = request[INTERNALS$2].parsedURL;
const headers = new Headers(request[INTERNALS$2].headers);
// fetch step 1.3
if (!headers.has('Accept')) {
headers.set('Accept', '*/*');
}
// Basic fetch
if (!parsedURL.protocol || !parsedURL.hostname) {
throw new TypeError('Only absolute URLs are supported');
}
if (!/^https?:$/.test(parsedURL.protocol)) {
throw new TypeError('Only HTTP(S) protocols are supported');
}
if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
}
// HTTP-network-or-cache fetch steps 2.4-2.7
let contentLengthValue = null;
if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
contentLengthValue = '0';
}
if (request.body != null) {
const totalBytes = getTotalBytes(request);
if (typeof totalBytes === 'number') {
contentLengthValue = String(totalBytes);
}
}
if (contentLengthValue) {
headers.set('Content-Length', contentLengthValue);
}
// HTTP-network-or-cache fetch step 2.11
if (!headers.has('User-Agent')) {
headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
}
// HTTP-network-or-cache fetch step 2.15
if (request.compress && !headers.has('Accept-Encoding')) {
headers.set('Accept-Encoding', 'gzip,deflate');
}
let agent = request.agent;
if (typeof agent === 'function') {
agent = agent(parsedURL);
}
if (!headers.has('Connection') && !agent) {
headers.set('Connection', 'close');
}
// HTTP-network fetch step 4.2
// chunked encoding is handled by Node.js
return Object.assign({}, parsedURL, {
method: request.method,
headers: exportNodeCompatibleHeaders(headers),
agent
});
}
/**
* abort-error.js
*
* AbortError interface for cancelled requests
*/
/**
* Create AbortError instance
*
* @param String message Error message for human
* @return AbortError
*/
function AbortError(message) {
Error.call(this, message);
this.type = 'aborted';
this.message = message;
// hide custom error implementation details from end-users
Error.captureStackTrace(this, this.constructor);
}
AbortError.prototype = Object.create(Error.prototype);
AbortError.prototype.constructor = AbortError;
AbortError.prototype.name = 'AbortError';
// fix an issue where "PassThrough", "resolve" aren't a named export for node <10
const PassThrough$1 = Stream.PassThrough;
const resolve_url = Url.resolve;
/**
* Fetch function
*
* @param Mixed url Absolute url or Request instance
* @param Object opts Fetch options
* @return Promise
*/
function fetch(url, opts) {
// allow custom promise
if (!fetch.Promise) {
throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
}
Body.Promise = fetch.Promise;
// wrap http.request into fetch
return new fetch.Promise(function (resolve, reject) {
// build request object
const request = new Request(url, opts);
const options = getNodeRequestOptions(request);
const send = (options.protocol === 'https:' ? https : http).request;
const signal = request.signal;
let response = null;
const abort = function abort() {
let error = new AbortError('The user aborted a request.');
reject(error);
if (request.body && request.body instanceof Stream.Readable) {
request.body.destroy(error);
}
if (!response || !response.body) return;
response.body.emit('error', error);
};
if (signal && signal.aborted) {
abort();
return;
}
const abortAndFinalize = function abortAndFinalize() {
abort();
finalize();
};
// send request
const req = send(options);
let reqTimeout;
if (signal) {
signal.addEventListener('abort', abortAndFinalize);
}
function finalize() {
req.abort();
if (signal) signal.removeEventListener('abort', abortAndFinalize);
clearTimeout(reqTimeout);
}
if (request.timeout) {
req.once('socket', function (socket) {
reqTimeout = setTimeout(function () {
reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
finalize();
}, request.timeout);
});
}
req.on('error', function (err) {
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
finalize();
});
req.on('response', function (res) {
clearTimeout(reqTimeout);
const headers = createHeadersLenient(res.headers);
// HTTP fetch step 5
if (fetch.isRedirect(res.statusCode)) {
// HTTP fetch step 5.2
const location = headers.get('Location');
// HTTP fetch step 5.3
const locationURL = location === null ? null : resolve_url(request.url, location);
// HTTP fetch step 5.5
switch (request.redirect) {
case 'error':
reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
finalize();
return;
case 'manual':
// node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
if (locationURL !== null) {
// handle corrupted header
try {
headers.set('Location', locationURL);
} catch (err) {
// istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
reject(err);
}
}
break;
case 'follow':
// HTTP-redirect fetch step 2
if (locationURL === null) {
break;
}
// HTTP-redirect fetch step 5
if (request.counter >= request.follow) {
reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
finalize();
return;
}
// HTTP-redirect fetch step 6 (counter increment)
// Create a new Request object.
const requestOpts = {
headers: new Headers(request.headers),
follow: request.follow,
counter: request.counter + 1,
agent: request.agent,
compress: request.compress,
method: request.method,
body: request.body,
signal: request.signal,
timeout: request.timeout
};
// HTTP-redirect fetch step 9
if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
finalize();
return;
}
// HTTP-redirect fetch step 11
if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
requestOpts.method = 'GET';
requestOpts.body = undefined;
requestOpts.headers.delete('content-length');
}
// HTTP-redirect fetch step 15
resolve(fetch(new Request(locationURL, requestOpts)));
finalize();
return;
}
}
// prepare response
res.once('end', function () {
if (signal) signal.removeEventListener('abort', abortAndFinalize);
});
let body = res.pipe(new PassThrough$1());
const response_options = {
url: request.url,
status: res.statusCode,
statusText: res.statusMessage,
headers: headers,
size: request.size,
timeout: request.timeout,
counter: request.counter
};
// HTTP-network fetch step 12.1.1.3
const codings = headers.get('Content-Encoding');
// HTTP-network fetch step 12.1.1.4: handle content codings
// in following scenarios we ignore compression support
// 1. compression support is disabled
// 2. HEAD request
// 3. no Content-Encoding header
// 4. no content response (204)
// 5. content not modified response (304)
if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
response = new Response(body, response_options);
resolve(response);
return;
}
// For Node v6+
// Be less strict when decoding compressed responses, since sometimes
// servers send slightly invalid responses that are still accepted
// by common browsers.
// Always using Z_SYNC_FLUSH is what cURL does.
const zlibOptions = {
flush: zlib.Z_SYNC_FLUSH,
finishFlush: zlib.Z_SYNC_FLUSH
};
// for gzip
if (codings == 'gzip' || codings == 'x-gzip') {
body = body.pipe(zlib.createGunzip(zlibOptions));
response = new Response(body, response_options);
resolve(response);
return;
}
// for deflate
if (codings == 'deflate' || codings == 'x-deflate') {
// handle the infamous raw deflate response from old servers
// a hack for old IIS and Apache servers
const raw = res.pipe(new PassThrough$1());
raw.once('data', function (chunk) {
// see http://stackoverflow.com/questions/37519828
if ((chunk[0] & 0x0F) === 0x08) {
body = body.pipe(zlib.createInflate());
} else {
body = body.pipe(zlib.createInflateRaw());
}
response = new Response(body, response_options);
resolve(response);
});
return;
}
// for br
if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
body = body.pipe(zlib.createBrotliDecompress());
response = new Response(body, response_options);
resolve(response);
return;
}
// otherwise, use response as-is
response = new Response(body, response_options);
resolve(response);
});
writeToStream(req, request);
});
}
/**
* Redirect code matching
*
* @param Number code Status code
* @return Boolean
*/
fetch.isRedirect = function (code) {
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
};
// expose Promise
fetch.Promise = global.Promise;
module.exports = exports = fetch;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exports;
exports.Headers = Headers;
exports.Request = Request;
exports.Response = Response;
exports.FetchError = FetchError;
/***/ }),
/***/ 370:
/***/ (function(module) {
module.exports = deprecate
const loggedMessages = {}
function deprecate (message) {
if (loggedMessages[message]) {
return
}
console.warn(`DEPRECATED (@octokit/rest): ${message}`)
loggedMessages[message] = 1
}
/***/ }),
/***/ 385:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var isPlainObject = _interopDefault(__webpack_require__(626));
var universalUserAgent = __webpack_require__(562);
function lowercaseKeys(object) {
if (!object) {
return {};
}
return Object.keys(object).reduce((newObj, key) => {
newObj[key.toLowerCase()] = object[key];
return newObj;
}, {});
}
function mergeDeep(defaults, options) {
const result = Object.assign({}, defaults);
Object.keys(options).forEach(key => {
if (isPlainObject(options[key])) {
if (!(key in defaults)) Object.assign(result, {
[key]: options[key]
});else result[key] = mergeDeep(defaults[key], options[key]);
} else {
Object.assign(result, {
[key]: options[key]
});
}
});
return result;
}
function merge(defaults, route, options) {
if (typeof route === "string") {
let [method, url] = route.split(" ");
options = Object.assign(url ? {
method,
url
} : {
url: method
}, options);
} else {
options = Object.assign({}, route);
} // lowercase header names before merging with defaults to avoid duplicates
options.headers = lowercaseKeys(options.headers);
const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
if (defaults && defaults.mediaType.previews.length) {
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
}
mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
return mergedOptions;
}
function addQueryParameters(url, parameters) {
const separator = /\?/.test(url) ? "&" : "?";
const names = Object.keys(parameters);
if (names.length === 0) {
return url;
}
return url + separator + names.map(name => {
if (name === "q") {
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
}
return `${name}=${encodeURIComponent(parameters[name])}`;
}).join("&");
}
const urlVariableRegex = /\{[^}]+\}/g;
function removeNonChars(variableName) {
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
}
function extractUrlVariableNames(url) {
const matches = url.match(urlVariableRegex);
if (!matches) {
return [];
}
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
}
function omit(object, keysToOmit) {
return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
obj[key] = object[key];
return obj;
}, {});
}
// Based on https://github.com/bramstein/url-template, licensed under BSD
// TODO: create separate package.
//
// Copyright (c) 2012-2014, Bram Stein
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. The name of the author may not be used to endorse or promote products
// derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* istanbul ignore file */
function encodeReserved(str) {
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
if (!/%[0-9A-Fa-f]/.test(part)) {
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
}
return part;
}).join("");
}
function encodeUnreserved(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
});
}
function encodeValue(operator, value, key) {
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
if (key) {
return encodeUnreserved(key) + "=" + value;
} else {
return value;
}
}
function isDefined(value) {
return value !== undefined && value !== null;
}
function isKeyOperator(operator) {
return operator === ";" || operator === "&" || operator === "?";
}
function getValues(context, operator, key, modifier) {
var value = context[key],
result = [];
if (isDefined(value) && value !== "") {
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
value = value.toString();
if (modifier && modifier !== "*") {
value = value.substring(0, parseInt(modifier, 10));
}
result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
} else {
if (modifier === "*") {
if (Array.isArray(value)) {
value.filter(isDefined).forEach(function (value) {
result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
});
} else {
Object.keys(value).forEach(function (k) {
if (isDefined(value[k])) {
result.push(encodeValue(operator, value[k], k));
}
});
}
} else {
const tmp = [];
if (Array.isArray(value)) {
value.filter(isDefined).forEach(function (value) {
tmp.push(encodeValue(operator, value));
});
} else {
Object.keys(value).forEach(function (k) {
if (isDefined(value[k])) {
tmp.push(encodeUnreserved(k));
tmp.push(encodeValue(operator, value[k].toString()));
}
});
}
if (isKeyOperator(operator)) {
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
} else if (tmp.length !== 0) {
result.push(tmp.join(","));
}
}
}
} else {
if (operator === ";") {
if (isDefined(value)) {
result.push(encodeUnreserved(key));
}
} else if (value === "" && (operator === "&" || operator === "?")) {
result.push(encodeUnreserved(key) + "=");
} else if (value === "") {
result.push("");
}
}
return result;
}
function parseUrl(template) {
return {
expand: expand.bind(null, template)
};
}
function expand(template, context) {
var operators = ["+", "#", ".", "/", ";", "?", "&"];
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
if (expression) {
let operator = "";
const values = [];
if (operators.indexOf(expression.charAt(0)) !== -1) {
operator = expression.charAt(0);
expression = expression.substr(1);
}
expression.split(/,/g).forEach(function (variable) {
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
});
if (operator && operator !== "+") {
var separator = ",";
if (operator === "?") {
separator = "&";
} else if (operator !== "#") {
separator = operator;
}
return (values.length !== 0 ? operator : "") + values.join(separator);
} else {
return values.join(",");
}
} else {
return encodeReserved(literal);
}
});
}
function parse(options) {
// https://fetch.spec.whatwg.org/#methods
let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
let headers = Object.assign({}, options.headers);
let body;
let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
const urlVariableNames = extractUrlVariableNames(url);
url = parseUrl(url).expand(parameters);
if (!/^http/.test(url)) {
url = options.baseUrl + url;
}
const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
const remainingParameters = omit(parameters, omittedParameters);
const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequset) {
if (options.mediaType.format) {
// e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
}
if (options.mediaType.previews.length) {
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
return `application/vnd.github.${preview}-preview${format}`;
}).join(",");
}
} // for GET/HEAD requests, set URL query parameters from remaining parameters
// for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
if (["GET", "HEAD"].includes(method)) {
url = addQueryParameters(url, remainingParameters);
} else {
if ("data" in remainingParameters) {
body = remainingParameters.data;
} else {
if (Object.keys(remainingParameters).length) {
body = remainingParameters;
} else {
headers["content-length"] = 0;
}
}
} // default content-type for JSON if body is set
if (!headers["content-type"] && typeof body !== "undefined") {
headers["content-type"] = "application/json; charset=utf-8";
} // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
// fetch does not allow to set `content-length` header, but we can set body to an empty string
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
body = "";
} // Only return body/request keys if present
return Object.assign({
method,
url,
headers
}, typeof body !== "undefined" ? {
body
} : null, options.request ? {
request: options.request
} : null);
}
function endpointWithDefaults(defaults, route, options) {
return parse(merge(defaults, route, options));
}
function withDefaults(oldDefaults, newDefaults) {
const DEFAULTS = merge(oldDefaults, newDefaults);
const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
return Object.assign(endpoint, {
DEFAULTS,
defaults: withDefaults.bind(null, DEFAULTS),
merge: merge.bind(null, DEFAULTS),
parse
});
}
const VERSION = "5.5.3";
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.
const DEFAULTS = {
method: "GET",
baseUrl: "https://api.github.com",
headers: {
accept: "application/vnd.github.v3+json",
"user-agent": userAgent
},
mediaType: {
format: "",
previews: []
}
};
const endpoint = withDefaults(null, DEFAULTS);
exports.endpoint = endpoint;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 389:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const fs = __webpack_require__(747);
const shebangCommand = __webpack_require__(866);
function readShebang(command) {
// Read the first 150 bytes from the file
const size = 150;
let buffer;
if (Buffer.alloc) {
// Node.js v4.5+ / v5.10+
buffer = Buffer.alloc(size);
} else {
// Old Node.js API
buffer = new Buffer(size);
buffer.fill(0); // zero-fill
}
let fd;
try {
fd = fs.openSync(command, 'r');
fs.readSync(fd, buffer, 0, size, 0);
fs.closeSync(fd);
} catch (e) { /* Empty */ }
// Attempt to extract shebang (null is returned if not a shebang)
return shebangCommand(buffer.toString());
}
module.exports = readShebang;
/***/ }),
/***/ 402:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = Octokit;
const { request } = __webpack_require__(753);
const Hook = __webpack_require__(523);
const parseClientOptions = __webpack_require__(294);
function Octokit(plugins, options) {
options = options || {};
const hook = new Hook.Collection();
const log = Object.assign(
{
debug: () => {},
info: () => {},
warn: console.warn,
error: console.error
},
options && options.log
);
const api = {
hook,
log,
request: request.defaults(parseClientOptions(options, log, hook))
};
plugins.forEach(pluginFunction => pluginFunction(api, options));
return api;
}
/***/ }),
/***/ 407:
/***/ (function(module) {
module.exports = require("buffer");
/***/ }),
/***/ 413:
/***/ (function(module) {
module.exports = require("stream");
/***/ }),
/***/ 424:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Utils = __webpack_require__(114)
var ECCode = __webpack_require__(135)
var ECLevel = __webpack_require__(50)
var Mode = __webpack_require__(364)
var VersionCheck = __webpack_require__(54)
var isArray = __webpack_require__(714)
// Generator polynomial used to encode version information
var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)
var G18_BCH = Utils.getBCHDigit(G18)
function getBestVersionForDataLength (mode, length, errorCorrectionLevel) {
for (var currentVersion = 1; currentVersion <= 40; currentVersion++) {
if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {
return currentVersion
}
}
return undefined
}
function getReservedBitsCount (mode, version) {
// Character count indicator + mode indicator bits
return Mode.getCharCountIndicator(mode, version) + 4
}
function getTotalBitsFromDataArray (segments, version) {
var totalBits = 0
segments.forEach(function (data) {
var reservedBits = getReservedBitsCount(data.mode, version)
totalBits += reservedBits + data.getBitsLength()
})
return totalBits
}
function getBestVersionForMixedData (segments, errorCorrectionLevel) {
for (var currentVersion = 1; currentVersion <= 40; currentVersion++) {
var length = getTotalBitsFromDataArray(segments, currentVersion)
if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {
return currentVersion
}
}
return undefined
}
/**
* Returns version number from a value.
* If value is not a valid version, returns defaultValue
*
* @param {Number|String} value QR Code version
* @param {Number} defaultValue Fallback value
* @return {Number} QR Code version number
*/
exports.from = function from (value, defaultValue) {
if (VersionCheck.isValid(value)) {
return parseInt(value, 10)
}
return defaultValue
}
/**
* Returns how much data can be stored with the specified QR code version
* and error correction level
*
* @param {Number} version QR Code version (1-40)
* @param {Number} errorCorrectionLevel Error correction level
* @param {Mode} mode Data mode
* @return {Number} Quantity of storable data
*/
exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {
if (!VersionCheck.isValid(version)) {
throw new Error('Invalid QR Code version')
}
// Use Byte mode as default
if (typeof mode === 'undefined') mode = Mode.BYTE
// Total codewords for this QR code version (Data + Error correction)
var totalCodewords = Utils.getSymbolTotalCodewords(version)
// Total number of error correction codewords
var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
// Total number of data codewords
var dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8
if (mode === Mode.MIXED) return dataTotalCodewordsBits
var usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)
// Return max number of storable codewords
switch (mode) {
case Mode.NUMERIC:
return Math.floor((usableBits / 10) * 3)
case Mode.ALPHANUMERIC:
return Math.floor((usableBits / 11) * 2)
case Mode.KANJI:
return Math.floor(usableBits / 13)
case Mode.BYTE:
default:
return Math.floor(usableBits / 8)
}
}
/**
* Returns the minimum version needed to contain the amount of data
*
* @param {Segment} data Segment of data
* @param {Number} [errorCorrectionLevel=H] Error correction level
* @param {Mode} mode Data mode
* @return {Number} QR Code version
*/
exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {
var seg
var ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)
if (isArray(data)) {
if (data.length > 1) {
return getBestVersionForMixedData(data, ecl)
}
if (data.length === 0) {
return 1
}
seg = data[0]
} else {
seg = data
}
return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)
}
/**
* Returns version information with relative error correction bits
*
* The version information is included in QR Code symbols of version 7 or larger.
* It consists of an 18-bit sequence containing 6 data bits,
* with 12 error correction bits calculated using the (18, 6) Golay code.
*
* @param {Number} version QR Code version
* @return {Number} Encoded version info bits
*/
exports.getEncodedBits = function getEncodedBits (version) {
if (!VersionCheck.isValid(version) || version < 7) {
throw new Error('Invalid QR Code version')
}
var d = version << 12
while (Utils.getBCHDigit(d) - G18_BCH >= 0) {
d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))
}
return (version << 12) | d
}
/***/ }),
/***/ 425:
/***/ (function(module) {
/* Node.js 6.4.0 and up has full support */
var hasFullSupport = (function () {
try {
if (!Buffer.isEncoding('latin1')) {
return false
}
var buf = Buffer.alloc ? Buffer.alloc(4) : new Buffer(4)
buf.fill('ab', 'ucs2')
return (buf.toString('hex') === '61006200')
} catch (_) {
return false
}
}())
function isSingleByte (val) {
return (val.length === 1 && val.charCodeAt(0) < 256)
}
function fillWithNumber (buffer, val, start, end) {
if (start < 0 || end > buffer.length) {
throw new RangeError('Out of range index')
}
start = start >>> 0
end = end === undefined ? buffer.length : end >>> 0
if (end > start) {
buffer.fill(val, start, end)
}
return buffer
}
function fillWithBuffer (buffer, val, start, end) {
if (start < 0 || end > buffer.length) {
throw new RangeError('Out of range index')
}
if (end <= start) {
return buffer
}
start = start >>> 0
end = end === undefined ? buffer.length : end >>> 0
var pos = start
var len = val.length
while (pos <= (end - len)) {
val.copy(buffer, pos)
pos += len
}
if (pos !== end) {
val.copy(buffer, pos, 0, end - pos)
}
return buffer
}
function fill (buffer, val, start, end, encoding) {
if (hasFullSupport) {
return buffer.fill(val, start, end, encoding)
}
if (typeof val === 'number') {
return fillWithNumber(buffer, val, start, end)
}
if (typeof val === 'string') {
if (typeof start === 'string') {
encoding = start
start = 0
end = buffer.length
} else if (typeof end === 'string') {
encoding = end
end = buffer.length
}
if (encoding !== undefined && typeof encoding !== 'string') {
throw new TypeError('encoding must be a string')
}
if (encoding === 'latin1') {
encoding = 'binary'
}
if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
throw new TypeError('Unknown encoding: ' + encoding)
}
if (val === '') {
return fillWithNumber(buffer, 0, start, end)
}
if (isSingleByte(val)) {
return fillWithNumber(buffer, val.charCodeAt(0), start, end)
}
val = new Buffer(val, encoding)
}
if (Buffer.isBuffer(val)) {
return fillWithBuffer(buffer, val, start, end)
}
// Other values (e.g. undefined, boolean, object) results in zero-fill
return fillWithNumber(buffer, 0, start, end)
}
module.exports = fill
/***/ }),
/***/ 427:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
// Older verions of Node.js might not have `util.getSystemErrorName()`.
// In that case, fall back to a deprecated internal.
const util = __webpack_require__(669);
let uv;
if (typeof util.getSystemErrorName === 'function') {
module.exports = util.getSystemErrorName;
} else {
try {
uv = process.binding('uv');
if (typeof uv.errname !== 'function') {
throw new TypeError('uv.errname is not a function');
}
} catch (err) {
console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
uv = null;
}
module.exports = code => errname(uv, code);
}
// Used for testing the fallback behavior
module.exports.__test__ = errname;
function errname(uv, code) {
if (uv) {
return uv.errname(code);
}
if (!(code < 0)) {
throw new Error('err >= 0');
}
return `Unknown system error ${code}`;
}
/***/ }),
/***/ 430:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = octokitValidate;
const validate = __webpack_require__(348);
function octokitValidate(octokit) {
octokit.hook.before("request", validate.bind(null, octokit));
}
/***/ }),
/***/ 431:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const os = __webpack_require__(87);
/**
* Commands
*
* Command Format:
* ##[name key=value;key=value]message
*
* Examples:
* ##[warning]This is the user warning message
* ##[set-secret name=mypassword]definitelyNotAPassword!
*/
function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL);
}
exports.issueCommand = issueCommand;
function issue(name, message = '') {
issueCommand(name, {}, message);
}
exports.issue = issue;
const CMD_STRING = '::';
class Command {
constructor(command, properties, message) {
if (!command) {
command = 'missing.command';
}
this.command = command;
this.properties = properties;
this.message = message;
}
toString() {
let cmdStr = CMD_STRING + this.command;
if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' ';
for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key];
if (val) {
// safely append the val - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason
cmdStr += `${key}=${escape(`${val || ''}`)},`;
}
}
}
}
cmdStr += CMD_STRING;
// safely append the message - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason
const message = `${this.message || ''}`;
cmdStr += escapeData(message);
return cmdStr;
}
}
function escapeData(s) {
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
}
function escape(s) {
return s
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A')
.replace(/]/g, '%5D')
.replace(/;/g, '%3B');
}
//# sourceMappingURL=command.js.map
/***/ }),
/***/ 432:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var util = __webpack_require__(669);
var ChunkStream = __webpack_require__(210);
var Filter = __webpack_require__(447);
var FilterAsync = module.exports = function(bitmapInfo) {
ChunkStream.call(this);
var buffers = [];
var that = this;
this._filter = new Filter(bitmapInfo, {
read: this.read.bind(this),
write: function(buffer) {
buffers.push(buffer);
},
complete: function() {
that.emit('complete', Buffer.concat(buffers));
}
});
this._filter.start();
};
util.inherits(FilterAsync, ChunkStream);
/***/ }),
/***/ 447:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var interlaceUtils = __webpack_require__(724);
var paethPredictor = __webpack_require__(594);
function getByteWidth(width, bpp, depth) {
var byteWidth = width * bpp;
if (depth !== 8) {
byteWidth = Math.ceil(byteWidth / (8 / depth));
}
return byteWidth;
}
var Filter = module.exports = function(bitmapInfo, dependencies) {
var width = bitmapInfo.width;
var height = bitmapInfo.height;
var interlace = bitmapInfo.interlace;
var bpp = bitmapInfo.bpp;
var depth = bitmapInfo.depth;
this.read = dependencies.read;
this.write = dependencies.write;
this.complete = dependencies.complete;
this._imageIndex = 0;
this._images = [];
if (interlace) {
var passes = interlaceUtils.getImagePasses(width, height);
for (var i = 0; i < passes.length; i++) {
this._images.push({
byteWidth: getByteWidth(passes[i].width, bpp, depth),
height: passes[i].height,
lineIndex: 0
});
}
}
else {
this._images.push({
byteWidth: getByteWidth(width, bpp, depth),
height: height,
lineIndex: 0
});
}
// when filtering the line we look at the pixel to the left
// the spec also says it is done on a byte level regardless of the number of pixels
// so if the depth is byte compatible (8 or 16) we subtract the bpp in order to compare back
// a pixel rather than just a different byte part. However if we are sub byte, we ignore.
if (depth === 8) {
this._xComparison = bpp;
}
else if (depth === 16) {
this._xComparison = bpp * 2;
}
else {
this._xComparison = 1;
}
};
Filter.prototype.start = function() {
this.read(this._images[this._imageIndex].byteWidth + 1, this._reverseFilterLine.bind(this));
};
Filter.prototype._unFilterType1 = function(rawData, unfilteredLine, byteWidth) {
var xComparison = this._xComparison;
var xBiggerThan = xComparison - 1;
for (var x = 0; x < byteWidth; x++) {
var rawByte = rawData[1 + x];
var f1Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
unfilteredLine[x] = rawByte + f1Left;
}
};
Filter.prototype._unFilterType2 = function(rawData, unfilteredLine, byteWidth) {
var lastLine = this._lastLine;
for (var x = 0; x < byteWidth; x++) {
var rawByte = rawData[1 + x];
var f2Up = lastLine ? lastLine[x] : 0;
unfilteredLine[x] = rawByte + f2Up;
}
};
Filter.prototype._unFilterType3 = function(rawData, unfilteredLine, byteWidth) {
var xComparison = this._xComparison;
var xBiggerThan = xComparison - 1;
var lastLine = this._lastLine;
for (var x = 0; x < byteWidth; x++) {
var rawByte = rawData[1 + x];
var f3Up = lastLine ? lastLine[x] : 0;
var f3Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
var f3Add = Math.floor((f3Left + f3Up) / 2);
unfilteredLine[x] = rawByte + f3Add;
}
};
Filter.prototype._unFilterType4 = function(rawData, unfilteredLine, byteWidth) {
var xComparison = this._xComparison;
var xBiggerThan = xComparison - 1;
var lastLine = this._lastLine;
for (var x = 0; x < byteWidth; x++) {
var rawByte = rawData[1 + x];
var f4Up = lastLine ? lastLine[x] : 0;
var f4Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
var f4UpLeft = x > xBiggerThan && lastLine ? lastLine[x - xComparison] : 0;
var f4Add = paethPredictor(f4Left, f4Up, f4UpLeft);
unfilteredLine[x] = rawByte + f4Add;
}
};
Filter.prototype._reverseFilterLine = function(rawData) {
var filter = rawData[0];
var unfilteredLine;
var currentImage = this._images[this._imageIndex];
var byteWidth = currentImage.byteWidth;
if (filter === 0) {
unfilteredLine = rawData.slice(1, byteWidth + 1);
}
else {
unfilteredLine = new Buffer(byteWidth);
switch (filter) {
case 1:
this._unFilterType1(rawData, unfilteredLine, byteWidth);
break;
case 2:
this._unFilterType2(rawData, unfilteredLine, byteWidth);
break;
case 3:
this._unFilterType3(rawData, unfilteredLine, byteWidth);
break;
case 4:
this._unFilterType4(rawData, unfilteredLine, byteWidth);
break;
default:
throw new Error('Unrecognised filter type - ' + filter);
}
}
this.write(unfilteredLine);
currentImage.lineIndex++;
if (currentImage.lineIndex >= currentImage.height) {
this._lastLine = null;
this._imageIndex++;
currentImage = this._images[this._imageIndex];
}
else {
this._lastLine = unfilteredLine;
}
if (currentImage) {
// read, using the byte width that may be from the new current image
this.read(currentImage.byteWidth + 1, this._reverseFilterLine.bind(this));
}
else {
this._lastLine = null;
this.complete();
}
};
/***/ }),
/***/ 453:
/***/ (function(module, __unusedexports, __webpack_require__) {
var once = __webpack_require__(969)
var eos = __webpack_require__(9)
var fs = __webpack_require__(747) // we only need fs to get the ReadStream and WriteStream prototypes
var noop = function () {}
var ancient = /^v?\.0/.test(process.version)
var isFn = function (fn) {
return typeof fn === 'function'
}
var isFS = function (stream) {
if (!ancient) return false // newer node version do not need to care about fs is a special way
if (!fs) return false // browser
return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
}
var isRequest = function (stream) {
return stream.setHeader && isFn(stream.abort)
}
var destroyer = function (stream, reading, writing, callback) {
callback = once(callback)
var closed = false
stream.on('close', function () {
closed = true
})
eos(stream, {readable: reading, writable: writing}, function (err) {
if (err) return callback(err)
closed = true
callback()
})
var destroyed = false
return function (err) {
if (closed) return
if (destroyed) return
destroyed = true
if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
if (isFn(stream.destroy)) return stream.destroy()
callback(err || new Error('stream was destroyed'))
}
}
var call = function (fn) {
fn()
}
var pipe = function (from, to) {
return from.pipe(to)
}
var pump = function () {
var streams = Array.prototype.slice.call(arguments)
var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
if (Array.isArray(streams[0])) streams = streams[0]
if (streams.length < 2) throw new Error('pump requires two streams per minimum')
var error
var destroys = streams.map(function (stream, i) {
var reading = i < streams.length - 1
var writing = i > 0
return destroyer(stream, reading, writing, function (err) {
if (!error) error = err
if (err) destroys.forEach(call)
if (reading) return
destroys.forEach(call)
callback(error)
})
})
return streams.reduce(pipe)
}
module.exports = pump
/***/ }),
/***/ 462:
/***/ (function(module) {
"use strict";
// See http://www.robvanderwoude.com/escapechars.php
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
function escapeCommand(arg) {
// Escape meta chars
arg = arg.replace(metaCharsRegExp, '^$1');
return arg;
}
function escapeArgument(arg, doubleEscapeMetaChars) {
// Convert to string
arg = `${arg}`;
// Algorithm below is based on https://qntm.org/cmd
// Sequence of backslashes followed by a double quote:
// double up all the backslashes and escape the double quote
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
// Sequence of backslashes followed by the end of the string
// (which will become a double quote later):
// double up all the backslashes
arg = arg.replace(/(\\*)$/, '$1$1');
// All other backslashes occur literally
// Quote the whole thing:
arg = `"${arg}"`;
// Escape meta chars
arg = arg.replace(metaCharsRegExp, '^$1');
// Double escape meta chars if necessary
if (doubleEscapeMetaChars) {
arg = arg.replace(metaCharsRegExp, '^$1');
}
return arg;
}
module.exports.command = escapeCommand;
module.exports.argument = escapeArgument;
/***/ }),
/***/ 463:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var deprecation = __webpack_require__(692);
var once = _interopDefault(__webpack_require__(969));
const logOnce = once(deprecation => console.warn(deprecation));
/**
* Error with extra properties to help with debugging
*/
class RequestError extends Error {
constructor(message, statusCode, options) {
super(message); // Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = "HttpError";
this.status = statusCode;
Object.defineProperty(this, "code", {
get() {
logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
return statusCode;
}
});
this.headers = options.headers || {}; // redact request credentials without mutating original request options
const requestCopy = Object.assign({}, options.request);
if (options.request.headers.authorization) {
requestCopy.headers = Object.assign({}, options.request.headers, {
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
});
}
requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
// see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
// see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
.replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
this.request = requestCopy;
}
}
exports.RequestError = RequestError;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 467:
/***/ (function(module) {
"use strict";
/******************************************************************************
* Created 2008-08-19.
*
* Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
*
* Copyright (C) 2008
* Wyatt Baldwin <self@wyattbaldwin.com>
* All rights reserved
*
* Licensed under the MIT license.
*
* http://www.opensource.org/licenses/mit-license.php
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*****************************************************************************/
var dijkstra = {
single_source_shortest_paths: function(graph, s, d) {
// Predecessor map for each node that has been encountered.
// node ID => predecessor node ID
var predecessors = {};
// Costs of shortest paths from s to all nodes encountered.
// node ID => cost
var costs = {};
costs[s] = 0;
// Costs of shortest paths from s to all nodes encountered; differs from
// `costs` in that it provides easy access to the node that currently has
// the known shortest path from s.
// XXX: Do we actually need both `costs` and `open`?
var open = dijkstra.PriorityQueue.make();
open.push(s, 0);
var closest,
u, v,
cost_of_s_to_u,
adjacent_nodes,
cost_of_e,
cost_of_s_to_u_plus_cost_of_e,
cost_of_s_to_v,
first_visit;
while (!open.empty()) {
// In the nodes remaining in graph that have a known cost from s,
// find the node, u, that currently has the shortest path from s.
closest = open.pop();
u = closest.value;
cost_of_s_to_u = closest.cost;
// Get nodes adjacent to u...
adjacent_nodes = graph[u] || {};
// ...and explore the edges that connect u to those nodes, updating
// the cost of the shortest paths to any or all of those nodes as
// necessary. v is the node across the current edge from u.
for (v in adjacent_nodes) {
if (adjacent_nodes.hasOwnProperty(v)) {
// Get the cost of the edge running from u to v.
cost_of_e = adjacent_nodes[v];
// Cost of s to u plus the cost of u to v across e--this is *a*
// cost from s to v that may or may not be less than the current
// known cost to v.
cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
// If we haven't visited v yet OR if the current known cost from s to
// v is greater than the new cost we just found (cost of s to u plus
// cost of u to v across e), update v's cost in the cost list and
// update v's predecessor in the predecessor list (it's now u).
cost_of_s_to_v = costs[v];
first_visit = (typeof costs[v] === 'undefined');
if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
costs[v] = cost_of_s_to_u_plus_cost_of_e;
open.push(v, cost_of_s_to_u_plus_cost_of_e);
predecessors[v] = u;
}
}
}
}
if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {
var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');
throw new Error(msg);
}
return predecessors;
},
extract_shortest_path_from_predecessor_list: function(predecessors, d) {
var nodes = [];
var u = d;
var predecessor;
while (u) {
nodes.push(u);
predecessor = predecessors[u];
u = predecessors[u];
}
nodes.reverse();
return nodes;
},
find_path: function(graph, s, d) {
var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
return dijkstra.extract_shortest_path_from_predecessor_list(
predecessors, d);
},
/**
* A very naive priority queue implementation.
*/
PriorityQueue: {
make: function (opts) {
var T = dijkstra.PriorityQueue,
t = {},
key;
opts = opts || {};
for (key in T) {
if (T.hasOwnProperty(key)) {
t[key] = T[key];
}
}
t.queue = [];
t.sorter = opts.sorter || T.default_sorter;
return t;
},
default_sorter: function (a, b) {
return a.cost - b.cost;
},
/**
* Add a new item to the queue and ensure the highest priority element
* is at the front of the queue.
*/
push: function (value, cost) {
var item = {value: value, cost: cost};
this.queue.push(item);
this.queue.sort(this.sorter);
},
/**
* Return the highest priority element in the queue.
*/
pop: function () {
return this.queue.shift();
},
empty: function () {
return this.queue.length === 0;
}
}
};
// node.js module exports
if (true) {
module.exports = dijkstra;
}
/***/ }),
/***/ 469:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
const graphql_1 = __webpack_require__(898);
const rest_1 = __webpack_require__(0);
const Context = __importStar(__webpack_require__(262));
const httpClient = __importStar(__webpack_require__(539));
// We need this in order to extend Octokit
rest_1.Octokit.prototype = new rest_1.Octokit();
exports.context = new Context.Context();
class GitHub extends rest_1.Octokit {
constructor(token, opts) {
super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
}
/**
* Disambiguates the constructor overload parameters
*/
static disambiguate(token, opts) {
return [
typeof token === 'string' ? token : '',
typeof token === 'object' ? token : opts || {}
];
}
static getOctokitOptions(args) {
const token = args[0];
const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
// Auth
const auth = GitHub.getAuthString(token, options);
if (auth) {
options.auth = auth;
}
// Proxy
const agent = GitHub.getProxyAgent(options);
if (agent) {
// Shallow clone - don't mutate the object provided by the caller
options.request = options.request ? Object.assign({}, options.request) : {};
// Set the agent
options.request.agent = agent;
}
return options;
}
static getGraphQL(args) {
const defaults = {};
const token = args[0];
const options = args[1];
// Authorization
const auth = this.getAuthString(token, options);
if (auth) {
defaults.headers = {
authorization: auth
};
}
// Proxy
const agent = GitHub.getProxyAgent(options);
if (agent) {
defaults.request = { agent };
}
return graphql_1.graphql.defaults(defaults);
}
static getAuthString(token, options) {
// Validate args
if (!token && !options.auth) {
throw new Error('Parameter token or opts.auth is required');
}
else if (token && options.auth) {
throw new Error('Parameters token and opts.auth may not both be specified');
}
return typeof options.auth === 'string' ? options.auth : `token ${token}`;
}
static getProxyAgent(options) {
var _a;
if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
const serverUrl = 'https://api.github.com';
if (httpClient.getProxyUrl(serverUrl)) {
const hc = new httpClient.HttpClient();
return hc.getAgent(serverUrl);
}
}
return undefined;
}
}
exports.GitHub = GitHub;
//# sourceMappingURL=github.js.map
/***/ }),
/***/ 470:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = __webpack_require__(431);
const os = __webpack_require__(87);
const path = __webpack_require__(622);
/**
* The code to exit an action
*/
var ExitCode;
(function (ExitCode) {
/**
* A code indicating that the action was successful
*/
ExitCode[ExitCode["Success"] = 0] = "Success";
/**
* A code indicating that the action was a failure
*/
ExitCode[ExitCode["Failure"] = 1] = "Failure";
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
/**
* Sets env variable for this action and future actions in the job
* @param name the name of the variable to set
* @param val the value of the variable
*/
function exportVariable(name, val) {
process.env[name] = val;
command_1.issueCommand('set-env', { name }, val);
}
exports.exportVariable = exportVariable;
/**
* Registers a secret which will get masked from logs
* @param secret value of the secret
*/
function setSecret(secret) {
command_1.issueCommand('add-mask', {}, secret);
}
exports.setSecret = setSecret;
/**
* Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath
*/
function addPath(inputPath) {
command_1.issueCommand('add-path', {}, inputPath);
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
}
exports.addPath = addPath;
/**
* Gets the value of an input. The value is also trimmed.
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns string
*/
function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`);
}
return val.trim();
}
exports.getInput = getInput;
/**
* Sets the value of an output.
*
* @param name name of the output to set
* @param value value to store
*/
function setOutput(name, value) {
command_1.issueCommand('set-output', { name }, value);
}
exports.setOutput = setOutput;
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------
/**
* Sets the action status to failed.
* When the action exits it will be with an exit code of 1
* @param message add error issue message
*/
function setFailed(message) {
process.exitCode = ExitCode.Failure;
error(message);
}
exports.setFailed = setFailed;
//-----------------------------------------------------------------------
// Logging Commands
//-----------------------------------------------------------------------
/**
* Writes debug message to user log
* @param message debug message
*/
function debug(message) {
command_1.issueCommand('debug', {}, message);
}
exports.debug = debug;
/**
* Adds an error issue
* @param message error issue message
*/
function error(message) {
command_1.issue('error', message);
}
exports.error = error;
/**
* Adds an warning issue
* @param message warning issue message
*/
function warning(message) {
command_1.issue('warning', message);
}
exports.warning = warning;
/**
* Writes info to log with console.log.
* @param message info message
*/
function info(message) {
process.stdout.write(message + os.EOL);
}
exports.info = info;
/**
* Begin an output group.
*
* Output until the next `groupEnd` will be foldable in this group
*
* @param name The name of the output group
*/
function startGroup(name) {
command_1.issue('group', name);
}
exports.startGroup = startGroup;
/**
* End an output group.
*/
function endGroup() {
command_1.issue('endgroup');
}
exports.endGroup = endGroup;
/**
* Wrap an asynchronous function call in a group.
*
* Returns the same type as the function itself.
*
* @param name The name of the group
* @param fn The function to wrap in the group
*/
function group(name, fn) {
return __awaiter(this, void 0, void 0, function* () {
startGroup(name);
let result;
try {
result = yield fn();
}
finally {
endGroup();
}
return result;
});
}
exports.group = group;
//-----------------------------------------------------------------------
// Wrapper action state
//-----------------------------------------------------------------------
/**
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store
*/
function saveState(name, value) {
command_1.issueCommand('save-state', { name }, value);
}
exports.saveState = saveState;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
function getState(name) {
return process.env[`STATE_${name}`] || '';
}
exports.getState = getState;
//# sourceMappingURL=core.js.map
/***/ }),
/***/ 471:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationBeforeRequest;
const btoa = __webpack_require__(675);
const uniq = __webpack_require__(126);
function authenticationBeforeRequest(state, options) {
if (!state.auth.type) {
return;
}
if (state.auth.type === "basic") {
const hash = btoa(`${state.auth.username}:${state.auth.password}`);
options.headers.authorization = `Basic ${hash}`;
return;
}
if (state.auth.type === "token") {
options.headers.authorization = `token ${state.auth.token}`;
return;
}
if (state.auth.type === "app") {
options.headers.authorization = `Bearer ${state.auth.token}`;
const acceptHeaders = options.headers.accept
.split(",")
.concat("application/vnd.github.machine-man-preview+json");
options.headers.accept = uniq(acceptHeaders)
.filter(Boolean)
.join(",");
return;
}
options.url += options.url.indexOf("?") === -1 ? "?" : "&";
if (state.auth.token) {
options.url += `access_token=${encodeURIComponent(state.auth.token)}`;
return;
}
const key = encodeURIComponent(state.auth.key);
const secret = encodeURIComponent(state.auth.secret);
options.url += `client_id=${key}&client_secret=${secret}`;
}
/***/ }),
/***/ 475:
/***/ (function(module, __unusedexports, __webpack_require__) {
var Mode = __webpack_require__(364)
/**
* Array of characters available in alphanumeric mode
*
* As per QR Code specification, to each character
* is assigned a value from 0 to 44 which in this case coincides
* with the array index
*
* @type {Array}
*/
var ALPHA_NUM_CHARS = [
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
' ', '$', '%', '*', '+', '-', '.', '/', ':'
]
function AlphanumericData (data) {
this.mode = Mode.ALPHANUMERIC
this.data = data
}
AlphanumericData.getBitsLength = function getBitsLength (length) {
return 11 * Math.floor(length / 2) + 6 * (length % 2)
}
AlphanumericData.prototype.getLength = function getLength () {
return this.data.length
}
AlphanumericData.prototype.getBitsLength = function getBitsLength () {
return AlphanumericData.getBitsLength(this.data.length)
}
AlphanumericData.prototype.write = function write (bitBuffer) {
var i
// Input data characters are divided into groups of two characters
// and encoded as 11-bit binary codes.
for (i = 0; i + 2 <= this.data.length; i += 2) {
// The character value of the first character is multiplied by 45
var value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45
// The character value of the second digit is added to the product
value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])
// The sum is then stored as 11-bit binary number
bitBuffer.put(value, 11)
}
// If the number of input data characters is not a multiple of two,
// the character value of the final character is encoded as a 6-bit binary number.
if (this.data.length % 2) {
bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)
}
}
module.exports = AlphanumericData
/***/ }),
/***/ 489:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const path = __webpack_require__(622);
const which = __webpack_require__(814);
const pathKey = __webpack_require__(39)();
function resolveCommandAttempt(parsed, withoutPathExt) {
const cwd = process.cwd();
const hasCustomCwd = parsed.options.cwd != null;
// If a custom `cwd` was specified, we need to change the process cwd
// because `which` will do stat calls but does not support a custom cwd
if (hasCustomCwd) {
try {
process.chdir(parsed.options.cwd);
} catch (err) {
/* Empty */
}
}
let resolved;
try {
resolved = which.sync(parsed.command, {
path: (parsed.options.env || process.env)[pathKey],
pathExt: withoutPathExt ? path.delimiter : undefined,
});
} catch (e) {
/* Empty */
} finally {
process.chdir(cwd);
}
// If we successfully resolved, ensure that an absolute path is returned
// Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
if (resolved) {
resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
}
return resolved;
}
function resolveCommand(parsed) {
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
}
module.exports = resolveCommand;
/***/ }),
/***/ 501:
/***/ (function(module) {
var toString = Object.prototype.toString
var isModern = (
typeof Buffer.alloc === 'function' &&
typeof Buffer.allocUnsafe === 'function' &&
typeof Buffer.from === 'function'
)
function isArrayBuffer (input) {
return toString.call(input).slice(8, -1) === 'ArrayBuffer'
}
function fromArrayBuffer (obj, byteOffset, length) {
byteOffset >>>= 0
var maxLength = obj.byteLength - byteOffset
if (maxLength < 0) {
throw new RangeError("'offset' is out of bounds")
}
if (length === undefined) {
length = maxLength
} else {
length >>>= 0
if (length > maxLength) {
throw new RangeError("'length' is out of bounds")
}
}
return isModern
? Buffer.from(obj.slice(byteOffset, byteOffset + length))
: new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length)))
}
function fromString (string, encoding) {
if (typeof encoding !== 'string' || encoding === '') {
encoding = 'utf8'
}
if (!Buffer.isEncoding(encoding)) {
throw new TypeError('"encoding" must be a valid string encoding')
}
return isModern
? Buffer.from(string, encoding)
: new Buffer(string, encoding)
}
function bufferFrom (value, encodingOrOffset, length) {
if (typeof value === 'number') {
throw new TypeError('"value" argument must not be a number')
}
if (isArrayBuffer(value)) {
return fromArrayBuffer(value, encodingOrOffset, length)
}
if (typeof value === 'string') {
return fromString(value, encodingOrOffset)
}
return isModern
? Buffer.from(value)
: new Buffer(value)
}
module.exports = bufferFrom
/***/ }),
/***/ 507:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var util = __webpack_require__(669);
var zlib = __webpack_require__(761);
var ChunkStream = __webpack_require__(210);
var FilterAsync = __webpack_require__(432);
var Parser = __webpack_require__(932);
var bitmapper = __webpack_require__(319);
var formatNormaliser = __webpack_require__(994);
var ParserAsync = module.exports = function(options) {
ChunkStream.call(this);
this._parser = new Parser(options, {
read: this.read.bind(this),
error: this._handleError.bind(this),
metadata: this._handleMetaData.bind(this),
gamma: this.emit.bind(this, 'gamma'),
palette: this._handlePalette.bind(this),
transColor: this._handleTransColor.bind(this),
finished: this._finished.bind(this),
inflateData: this._inflateData.bind(this),
simpleTransparency: this._simpleTransparency.bind(this),
headersFinished: this._headersFinished.bind(this)
});
this._options = options;
this.writable = true;
this._parser.start();
};
util.inherits(ParserAsync, ChunkStream);
ParserAsync.prototype._handleError = function(err) {
this.emit('error', err);
this.writable = false;
this.destroy();
if (this._inflate && this._inflate.destroy) {
this._inflate.destroy();
}
if (this._filter) {
this._filter.destroy();
// For backward compatibility with Node 7 and below.
// Suppress errors due to _inflate calling write() even after
// it's destroy()'ed.
this._filter.on('error', function() {});
}
this.errord = true;
};
ParserAsync.prototype._inflateData = function(data) {
if (!this._inflate) {
if (this._bitmapInfo.interlace) {
this._inflate = zlib.createInflate();
this._inflate.on('error', this.emit.bind(this, 'error'));
this._filter.on('complete', this._complete.bind(this));
this._inflate.pipe(this._filter);
}
else {
var rowSize = ((this._bitmapInfo.width * this._bitmapInfo.bpp * this._bitmapInfo.depth + 7) >> 3) + 1;
var imageSize = rowSize * this._bitmapInfo.height;
var chunkSize = Math.max(imageSize, zlib.Z_MIN_CHUNK);
this._inflate = zlib.createInflate({ chunkSize: chunkSize });
var leftToInflate = imageSize;
var emitError = this.emit.bind(this, 'error');
this._inflate.on('error', function(err) {
if (!leftToInflate) {
return;
}
emitError(err);
});
this._filter.on('complete', this._complete.bind(this));
var filterWrite = this._filter.write.bind(this._filter);
this._inflate.on('data', function(chunk) {
if (!leftToInflate) {
return;
}
if (chunk.length > leftToInflate) {
chunk = chunk.slice(0, leftToInflate);
}
leftToInflate -= chunk.length;
filterWrite(chunk);
});
this._inflate.on('end', this._filter.end.bind(this._filter));
}
}
this._inflate.write(data);
};
ParserAsync.prototype._handleMetaData = function(metaData) {
this._metaData = metaData;
this._bitmapInfo = Object.create(metaData);
this._filter = new FilterAsync(this._bitmapInfo);
};
ParserAsync.prototype._handleTransColor = function(transColor) {
this._bitmapInfo.transColor = transColor;
};
ParserAsync.prototype._handlePalette = function(palette) {
this._bitmapInfo.palette = palette;
};
ParserAsync.prototype._simpleTransparency = function() {
this._metaData.alpha = true;
};
ParserAsync.prototype._headersFinished = function() {
// Up until this point, we don't know if we have a tRNS chunk (alpha)
// so we can't emit metadata any earlier
this.emit('metadata', this._metaData);
};
ParserAsync.prototype._finished = function() {
if (this.errord) {
return;
}
if (!this._inflate) {
this.emit('error', 'No Inflate block');
}
else {
// no more data to inflate
this._inflate.end();
}
this.destroySoon();
};
ParserAsync.prototype._complete = function(filteredData) {
if (this.errord) {
return;
}
try {
var bitmapData = bitmapper.dataToBitMap(filteredData, this._bitmapInfo);
var normalisedBitmapData = formatNormaliser(bitmapData, this._bitmapInfo);
bitmapData = null;
}
catch (ex) {
this._handleError(ex);
return;
}
this.emit('parsed', normalisedBitmapData);
};
/***/ }),
/***/ 510:
/***/ (function(module) {
module.exports = addHook
function addHook (state, kind, name, hook) {
var orig = hook
if (!state.registry[name]) {
state.registry[name] = []
}
if (kind === 'before') {
hook = function (method, options) {
return Promise.resolve()
.then(orig.bind(null, options))
.then(method.bind(null, options))
}
}
if (kind === 'after') {
hook = function (method, options) {
var result
return Promise.resolve()
.then(method.bind(null, options))
.then(function (result_) {
result = result_
return orig(result, options)
})
.then(function () {
return result
})
}
}
if (kind === 'error') {
hook = function (method, options) {
return Promise.resolve()
.then(method.bind(null, options))
.catch(function (error) {
return orig(error, options)
})
}
}
state.registry[name].push({
hook: hook,
orig: orig
})
}
/***/ }),
/***/ 523:
/***/ (function(module, __unusedexports, __webpack_require__) {
var register = __webpack_require__(280)
var addHook = __webpack_require__(510)
var removeHook = __webpack_require__(763)
// bind with array of arguments: https://stackoverflow.com/a/21792913
var bind = Function.bind
var bindable = bind.bind(bind)
function bindApi (hook, state, name) {
var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
hook.api = { remove: removeHookRef }
hook.remove = removeHookRef
;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
var args = name ? [state, kind, name] : [state, kind]
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
})
}
function HookSingular () {
var singularHookName = 'h'
var singularHookState = {
registry: {}
}
var singularHook = register.bind(null, singularHookState, singularHookName)
bindApi(singularHook, singularHookState, singularHookName)
return singularHook
}
function HookCollection () {
var state = {
registry: {}
}
var hook = register.bind(null, state)
bindApi(hook, state)
return hook
}
var collectionHookDeprecationMessageDisplayed = false
function Hook () {
if (!collectionHookDeprecationMessageDisplayed) {
console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
collectionHookDeprecationMessageDisplayed = true
}
return HookCollection()
}
Hook.Singular = HookSingular.bind()
Hook.Collection = HookCollection.bind()
module.exports = Hook
// expose constructors as a named property for TypeScript
module.exports.Hook = Hook
module.exports.Singular = Hook.Singular
module.exports.Collection = Hook.Collection
/***/ }),
/***/ 526:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
var EXP_TABLE = BufferUtil.alloc(512)
var LOG_TABLE = BufferUtil.alloc(256)
/**
* Precompute the log and anti-log tables for faster computation later
*
* For each possible value in the galois field 2^8, we will pre-compute
* the logarithm and anti-logarithm (exponential) of this value
*
* ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
*/
;(function initTables () {
var x = 1
for (var i = 0; i < 255; i++) {
EXP_TABLE[i] = x
LOG_TABLE[x] = i
x <<= 1 // multiply by 2
// The QR code specification says to use byte-wise modulo 100011101 arithmetic.
// This means that when a number is 256 or larger, it should be XORed with 0x11D.
if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
x ^= 0x11D
}
}
// Optimization: double the size of the anti-log table so that we don't need to mod 255 to
// stay inside the bounds (because we will mainly use this table for the multiplication of
// two GF numbers, no more).
// @see {@link mul}
for (i = 255; i < 512; i++) {
EXP_TABLE[i] = EXP_TABLE[i - 255]
}
}())
/**
* Returns log value of n inside Galois Field
*
* @param {Number} n
* @return {Number}
*/
exports.log = function log (n) {
if (n < 1) throw new Error('log(' + n + ')')
return LOG_TABLE[n]
}
/**
* Returns anti-log value of n inside Galois Field
*
* @param {Number} n
* @return {Number}
*/
exports.exp = function exp (n) {
return EXP_TABLE[n]
}
/**
* Multiplies two number inside Galois Field
*
* @param {Number} x
* @param {Number} y
* @return {Number}
*/
exports.mul = function mul (x, y) {
if (x === 0 || y === 0) return 0
// should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
// @see {@link initTables}
return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
}
/***/ }),
/***/ 529:
/***/ (function(module, __unusedexports, __webpack_require__) {
const factory = __webpack_require__(47);
module.exports = factory();
/***/ }),
/***/ 536:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = hasFirstPage
const deprecate = __webpack_require__(370)
const getPageLinks = __webpack_require__(577)
function hasFirstPage (link) {
deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
return getPageLinks(link).first
}
/***/ }),
/***/ 539:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const url = __webpack_require__(835);
const http = __webpack_require__(605);
const https = __webpack_require__(34);
const pm = __webpack_require__(950);
let tunnel;
var HttpCodes;
(function (HttpCodes) {
HttpCodes[HttpCodes["OK"] = 200] = "OK";
HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
var Headers;
(function (Headers) {
Headers["Accept"] = "accept";
Headers["ContentType"] = "content-type";
})(Headers = exports.Headers || (exports.Headers = {}));
var MediaTypes;
(function (MediaTypes) {
MediaTypes["ApplicationJson"] = "application/json";
})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
function getProxyUrl(serverUrl) {
let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
return proxyUrl ? proxyUrl.href : '';
}
exports.getProxyUrl = getProxyUrl;
const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
const ExponentialBackoffCeiling = 10;
const ExponentialBackoffTimeSlice = 5;
class HttpClientResponse {
constructor(message) {
this.message = message;
}
readBody() {
return new Promise(async (resolve, reject) => {
let output = Buffer.alloc(0);
this.message.on('data', (chunk) => {
output = Buffer.concat([output, chunk]);
});
this.message.on('end', () => {
resolve(output.toString());
});
});
}
}
exports.HttpClientResponse = HttpClientResponse;
function isHttps(requestUrl) {
let parsedUrl = url.parse(requestUrl);
return parsedUrl.protocol === 'https:';
}
exports.isHttps = isHttps;
class HttpClient {
constructor(userAgent, handlers, requestOptions) {
this._ignoreSslError = false;
this._allowRedirects = true;
this._allowRedirectDowngrade = false;
this._maxRedirects = 50;
this._allowRetries = false;
this._maxRetries = 1;
this._keepAlive = false;
this._disposed = false;
this.userAgent = userAgent;
this.handlers = handlers || [];
this.requestOptions = requestOptions;
if (requestOptions) {
if (requestOptions.ignoreSslError != null) {
this._ignoreSslError = requestOptions.ignoreSslError;
}
this._socketTimeout = requestOptions.socketTimeout;
if (requestOptions.allowRedirects != null) {
this._allowRedirects = requestOptions.allowRedirects;
}
if (requestOptions.allowRedirectDowngrade != null) {
this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
}
if (requestOptions.maxRedirects != null) {
this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
}
if (requestOptions.keepAlive != null) {
this._keepAlive = requestOptions.keepAlive;
}
if (requestOptions.allowRetries != null) {
this._allowRetries = requestOptions.allowRetries;
}
if (requestOptions.maxRetries != null) {
this._maxRetries = requestOptions.maxRetries;
}
}
}
options(requestUrl, additionalHeaders) {
return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
}
get(requestUrl, additionalHeaders) {
return this.request('GET', requestUrl, null, additionalHeaders || {});
}
del(requestUrl, additionalHeaders) {
return this.request('DELETE', requestUrl, null, additionalHeaders || {});
}
post(requestUrl, data, additionalHeaders) {
return this.request('POST', requestUrl, data, additionalHeaders || {});
}
patch(requestUrl, data, additionalHeaders) {
return this.request('PATCH', requestUrl, data, additionalHeaders || {});
}
put(requestUrl, data, additionalHeaders) {
return this.request('PUT', requestUrl, data, additionalHeaders || {});
}
head(requestUrl, additionalHeaders) {
return this.request('HEAD', requestUrl, null, additionalHeaders || {});
}
sendStream(verb, requestUrl, stream, additionalHeaders) {
return this.request(verb, requestUrl, stream, additionalHeaders);
}
/**
* Gets a typed object from an endpoint
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
*/
async getJson(requestUrl, additionalHeaders = {}) {
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
let res = await this.get(requestUrl, additionalHeaders);
return this._processResponse(res, this.requestOptions);
}
async postJson(requestUrl, obj, additionalHeaders = {}) {
let data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
let res = await this.post(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
}
async putJson(requestUrl, obj, additionalHeaders = {}) {
let data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
let res = await this.put(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
}
async patchJson(requestUrl, obj, additionalHeaders = {}) {
let data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
let res = await this.patch(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
}
/**
* Makes a raw http request.
* All other methods such as get, post, patch, and request ultimately call this.
* Prefer get, del, post and patch
*/
async request(verb, requestUrl, data, headers) {
if (this._disposed) {
throw new Error("Client has already been disposed.");
}
let parsedUrl = url.parse(requestUrl);
let info = this._prepareRequest(verb, parsedUrl, headers);
// Only perform retries on reads since writes may not be idempotent.
let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
let numTries = 0;
let response;
while (numTries < maxTries) {
response = await this.requestRaw(info, data);
// Check if it's an authentication challenge
if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
let authenticationHandler;
for (let i = 0; i < this.handlers.length; i++) {
if (this.handlers[i].canHandleAuthentication(response)) {
authenticationHandler = this.handlers[i];
break;
}
}
if (authenticationHandler) {
return authenticationHandler.handleAuthentication(this, info, data);
}
else {
// We have received an unauthorized response but have no handlers to handle it.
// Let the response return to the caller.
return response;
}
}
let redirectsRemaining = this._maxRedirects;
while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
&& this._allowRedirects
&& redirectsRemaining > 0) {
const redirectUrl = response.message.headers["location"];
if (!redirectUrl) {
// if there's no location to redirect to, we won't
break;
}
let parsedRedirectUrl = url.parse(redirectUrl);
if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");
}
// we need to finish reading the response before reassigning response
// which will leak the open socket.
await response.readBody();
// let's make the request with the new redirectUrl
info = this._prepareRequest(verb, parsedRedirectUrl, headers);
response = await this.requestRaw(info, data);
redirectsRemaining--;
}
if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
// If not a retry code, return immediately instead of retrying
return response;
}
numTries += 1;
if (numTries < maxTries) {
await response.readBody();
await this._performExponentialBackoff(numTries);
}
}
return response;
}
/**
* Needs to be called if keepAlive is set to true in request options.
*/
dispose() {
if (this._agent) {
this._agent.destroy();
}
this._disposed = true;
}
/**
* Raw request.
* @param info
* @param data
*/
requestRaw(info, data) {
return new Promise((resolve, reject) => {
let callbackForResult = function (err, res) {
if (err) {
reject(err);
}
resolve(res);
};
this.requestRawWithCallback(info, data, callbackForResult);
});
}
/**
* Raw request with callback.
* @param info
* @param data
* @param onResult
*/
requestRawWithCallback(info, data, onResult) {
let socket;
if (typeof (data) === 'string') {
info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
}
let callbackCalled = false;
let handleResult = (err, res) => {
if (!callbackCalled) {
callbackCalled = true;
onResult(err, res);
}
};
let req = info.httpModule.request(info.options, (msg) => {
let res = new HttpClientResponse(msg);
handleResult(null, res);
});
req.on('socket', (sock) => {
socket = sock;
});
// If we ever get disconnected, we want the socket to timeout eventually
req.setTimeout(this._socketTimeout || 3 * 60000, () => {
if (socket) {
socket.end();
}
handleResult(new Error('Request timeout: ' + info.options.path), null);
});
req.on('error', function (err) {
// err has statusCode property
// res should have headers
handleResult(err, null);
});
if (data && typeof (data) === 'string') {
req.write(data, 'utf8');
}
if (data && typeof (data) !== 'string') {
data.on('close', function () {
req.end();
});
data.pipe(req);
}
else {
req.end();
}
}
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
getAgent(serverUrl) {
let parsedUrl = url.parse(serverUrl);
return this._getAgent(parsedUrl);
}
_prepareRequest(method, requestUrl, headers) {
const info = {};
info.parsedUrl = requestUrl;
const usingSsl = info.parsedUrl.protocol === 'https:';
info.httpModule = usingSsl ? https : http;
const defaultPort = usingSsl ? 443 : 80;
info.options = {};
info.options.host = info.parsedUrl.hostname;
info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
info.options.method = method;
info.options.headers = this._mergeHeaders(headers);
if (this.userAgent != null) {
info.options.headers["user-agent"] = this.userAgent;
}
info.options.agent = this._getAgent(info.parsedUrl);
// gives handlers an opportunity to participate
if (this.handlers) {
this.handlers.forEach((handler) => {
handler.prepareRequest(info.options);
});
}
return info;
}
_mergeHeaders(headers) {
const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
if (this.requestOptions && this.requestOptions.headers) {
return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
}
return lowercaseKeys(headers || {});
}
_getExistingOrDefaultHeader(additionalHeaders, header, _default) {
const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
let clientHeader;
if (this.requestOptions && this.requestOptions.headers) {
clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
}
return additionalHeaders[header] || clientHeader || _default;
}
_getAgent(parsedUrl) {
let agent;
let proxyUrl = pm.getProxyUrl(parsedUrl);
let useProxy = proxyUrl && proxyUrl.hostname;
if (this._keepAlive && useProxy) {
agent = this._proxyAgent;
}
if (this._keepAlive && !useProxy) {
agent = this._agent;
}
// if agent is already assigned use that agent.
if (!!agent) {
return agent;
}
const usingSsl = parsedUrl.protocol === 'https:';
let maxSockets = 100;
if (!!this.requestOptions) {
maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
}
if (useProxy) {
// If using proxy, need tunnel
if (!tunnel) {
tunnel = __webpack_require__(856);
}
const agentOptions = {
maxSockets: maxSockets,
keepAlive: this._keepAlive,
proxy: {
proxyAuth: proxyUrl.auth,
host: proxyUrl.hostname,
port: proxyUrl.port
},
};
let tunnelAgent;
const overHttps = proxyUrl.protocol === 'https:';
if (usingSsl) {
tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
}
else {
tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
}
agent = tunnelAgent(agentOptions);
this._proxyAgent = agent;
}
// if reusing agent across request and tunneling agent isn't assigned create a new agent
if (this._keepAlive && !agent) {
const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent;
}
// if not using private agent and tunnel agent isn't setup then use global agent
if (!agent) {
agent = usingSsl ? https.globalAgent : http.globalAgent;
}
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
}
return agent;
}
_performExponentialBackoff(retryNumber) {
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
return new Promise(resolve => setTimeout(() => resolve(), ms));
}
static dateTimeDeserializer(key, value) {
if (typeof value === 'string') {
let a = new Date(value);
if (!isNaN(a.valueOf())) {
return a;
}
}
return value;
}
async _processResponse(res, options) {
return new Promise(async (resolve, reject) => {
const statusCode = res.message.statusCode;
const response = {
statusCode: statusCode,
result: null,
headers: {}
};
// not found leads to null obj returned
if (statusCode == HttpCodes.NotFound) {
resolve(response);
}
let obj;
let contents;
// get the result from the body
try {
contents = await res.readBody();
if (contents && contents.length > 0) {
if (options && options.deserializeDates) {
obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
}
else {
obj = JSON.parse(contents);
}
response.result = obj;
}
response.headers = res.message.headers;
}
catch (err) {
// Invalid resource (contents not json); leaving result obj null
}
// note that 3xx redirects are handled by the http layer.
if (statusCode > 299) {
let msg;
// if exception/error in body, attempt to get better error
if (obj && obj.message) {
msg = obj.message;
}
else if (contents && contents.length > 0) {
// it may be the case that the exception is in the body message as string
msg = contents;
}
else {
msg = "Failed request: (" + statusCode + ")";
}
let err = new Error(msg);
// attach statusCode and body obj (if available) to the error object
err['statusCode'] = statusCode;
if (response.result) {
err['result'] = response.result;
}
reject(err);
}
else {
resolve(response);
}
});
}
}
exports.HttpClient = HttpClient;
/***/ }),
/***/ 548:
/***/ (function(module) {
"use strict";
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
}
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
}
function isPlainObject(o) {
var ctor,prot;
if (isObjectObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
}
module.exports = isPlainObject;
/***/ }),
/***/ 550:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = getNextPage
const getPage = __webpack_require__(265)
function getNextPage (octokit, link, headers) {
return getPage(octokit, link, 'next', headers)
}
/***/ }),
/***/ 558:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = hasPreviousPage
const deprecate = __webpack_require__(370)
const getPageLinks = __webpack_require__(577)
function hasPreviousPage (link) {
deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
return getPageLinks(link).prev
}
/***/ }),
/***/ 562:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var osName = _interopDefault(__webpack_require__(2));
function getUserAgent() {
try {
return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
} catch (error) {
if (/wmic os get Caption/.test(error.message)) {
return "Windows <version undetectable>";
}
return "<environment undetectable>";
}
}
exports.getUserAgent = getUserAgent;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 563:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = getPreviousPage
const getPage = __webpack_require__(265)
function getPreviousPage (octokit, link, headers) {
return getPage(octokit, link, 'prev', headers)
}
/***/ }),
/***/ 568:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const path = __webpack_require__(622);
const niceTry = __webpack_require__(948);
const resolveCommand = __webpack_require__(489);
const escape = __webpack_require__(462);
const readShebang = __webpack_require__(389);
const semver = __webpack_require__(48);
const isWin = process.platform === 'win32';
const isExecutableRegExp = /\.(?:com|exe)$/i;
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
function detectShebang(parsed) {
parsed.file = resolveCommand(parsed);
const shebang = parsed.file && readShebang(parsed.file);
if (shebang) {
parsed.args.unshift(parsed.file);
parsed.command = shebang;
return resolveCommand(parsed);
}
return parsed.file;
}
function parseNonShell(parsed) {
if (!isWin) {
return parsed;
}
// Detect & add support for shebangs
const commandFile = detectShebang(parsed);
// We don't need a shell if the command filename is an executable
const needsShell = !isExecutableRegExp.test(commandFile);
// If a shell is required, use cmd.exe and take care of escaping everything correctly
// Note that `forceShell` is an hidden option used only in tests
if (parsed.options.forceShell || needsShell) {
// Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
// The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
// Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
// we need to double escape them
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
// This is necessary otherwise it will always fail with ENOENT in those cases
parsed.command = path.normalize(parsed.command);
// Escape command & arguments
parsed.command = escape.command(parsed.command);
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
parsed.command = process.env.comspec || 'cmd.exe';
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
}
return parsed;
}
function parseShell(parsed) {
// If node supports the shell option, there's no need to mimic its behavior
if (supportsShellOption) {
return parsed;
}
// Mimic node shell option
// See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
if (isWin) {
parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
} else {
if (typeof parsed.options.shell === 'string') {
parsed.command = parsed.options.shell;
} else if (process.platform === 'android') {
parsed.command = '/system/bin/sh';
} else {
parsed.command = '/bin/sh';
}
parsed.args = ['-c', shellCommand];
}
return parsed;
}
function parse(command, args, options) {
// Normalize arguments, similar to nodejs
if (args && !Array.isArray(args)) {
options = args;
args = null;
}
args = args ? args.slice(0) : []; // Clone array to avoid changing the original
options = Object.assign({}, options); // Clone object to avoid changing the original
// Build our parsed object
const parsed = {
command,
args,
options,
file: undefined,
original: {
command,
args,
},
};
// Delegate further parsing to shell or non-shell
return options.shell ? parseShell(parsed) : parseNonShell(parsed);
}
module.exports = parse;
/***/ }),
/***/ 577:
/***/ (function(module) {
module.exports = getPageLinks
function getPageLinks (link) {
link = link.link || link.headers.link || ''
const links = {}
// link format:
// '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
links[type] = uri
})
return links
}
/***/ }),
/***/ 594:
/***/ (function(module) {
"use strict";
module.exports = function paethPredictor(left, above, upLeft) {
var paeth = left + above - upLeft;
var pLeft = Math.abs(paeth - left);
var pAbove = Math.abs(paeth - above);
var pUpLeft = Math.abs(paeth - upLeft);
if (pLeft <= pAbove && pLeft <= pUpLeft) {
return left;
}
if (pAbove <= pUpLeft) {
return above;
}
return upLeft;
};
/***/ }),
/***/ 605:
/***/ (function(module) {
module.exports = require("http");
/***/ }),
/***/ 614:
/***/ (function(module) {
module.exports = require("events");
/***/ }),
/***/ 621:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const path = __webpack_require__(622);
const pathKey = __webpack_require__(39);
module.exports = opts => {
opts = Object.assign({
cwd: process.cwd(),
path: process.env[pathKey()]
}, opts);
let prev;
let pth = path.resolve(opts.cwd);
const ret = [];
while (prev !== pth) {
ret.push(path.join(pth, 'node_modules/.bin'));
prev = pth;
pth = path.resolve(pth, '..');
}
// ensure the running `node` binary is used
ret.push(path.dirname(process.execPath));
return ret.concat(opts.path).join(path.delimiter);
};
module.exports.env = opts => {
opts = Object.assign({
env: process.env
}, opts);
const env = Object.assign({}, opts.env);
const path = pathKey({env});
opts.path = env[path];
env[path] = module.exports(opts);
return env;
};
/***/ }),
/***/ 622:
/***/ (function(module) {
module.exports = require("path");
/***/ }),
/***/ 626:
/***/ (function(module) {
"use strict";
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
}
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
}
function isPlainObject(o) {
var ctor,prot;
if (isObjectObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
}
module.exports = isPlainObject;
/***/ }),
/***/ 628:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports.alloc = __webpack_require__(345)
module.exports.from = __webpack_require__(501)
/***/ }),
/***/ 631:
/***/ (function(module) {
module.exports = require("net");
/***/ }),
/***/ 634:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var canPromise = __webpack_require__(778)
var QRCode = __webpack_require__(702)
var CanvasRenderer = __webpack_require__(261)
var SvgRenderer = __webpack_require__(673)
function renderCanvas (renderFunc, canvas, text, opts, cb) {
var args = [].slice.call(arguments, 1)
var argsNum = args.length
var isLastArgCb = typeof args[argsNum - 1] === 'function'
if (!isLastArgCb && !canPromise()) {
throw new Error('Callback required as last argument')
}
if (isLastArgCb) {
if (argsNum < 2) {
throw new Error('Too few arguments provided')
}
if (argsNum === 2) {
cb = text
text = canvas
canvas = opts = undefined
} else if (argsNum === 3) {
if (canvas.getContext && typeof cb === 'undefined') {
cb = opts
opts = undefined
} else {
cb = opts
opts = text
text = canvas
canvas = undefined
}
}
} else {
if (argsNum < 1) {
throw new Error('Too few arguments provided')
}
if (argsNum === 1) {
text = canvas
canvas = opts = undefined
} else if (argsNum === 2 && !canvas.getContext) {
opts = text
text = canvas
canvas = undefined
}
return new Promise(function (resolve, reject) {
try {
var data = QRCode.create(text, opts)
resolve(renderFunc(data, canvas, opts))
} catch (e) {
reject(e)
}
})
}
try {
var data = QRCode.create(text, opts)
cb(null, renderFunc(data, canvas, opts))
} catch (e) {
cb(e)
}
}
exports.create = QRCode.create
exports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)
exports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)
// only svg for now.
exports.toString = renderCanvas.bind(null, function (data, _, opts) {
return SvgRenderer.render(data, opts)
})
/***/ }),
/***/ 649:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = getLastPage
const getPage = __webpack_require__(265)
function getLastPage (octokit, link, headers) {
return getPage(octokit, link, 'last', headers)
}
/***/ }),
/***/ 654:
/***/ (function(module) {
// This is not the set of all possible signals.
//
// It IS, however, the set of all signals that trigger
// an exit on either Linux or BSD systems. Linux is a
// superset of the signal names supported on BSD, and
// the unknown signals just fail to register, so we can
// catch that easily enough.
//
// Don't bother with SIGKILL. It's uncatchable, which
// means that we can't fire any callbacks anyway.
//
// If a user does happen to register a handler on a non-
// fatal signal like SIGWINCH or something, and then
// exit, it'll end up firing `process.emit('exit')`, so
// the handler will be fired anyway.
//
// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
// artificially, inherently leave the process in a
// state from which it is not safe to try and enter JS
// listeners.
module.exports = [
'SIGABRT',
'SIGALRM',
'SIGHUP',
'SIGINT',
'SIGTERM'
]
if (process.platform !== 'win32') {
module.exports.push(
'SIGVTALRM',
'SIGXCPU',
'SIGXFSZ',
'SIGUSR2',
'SIGTRAP',
'SIGSYS',
'SIGQUIT',
'SIGIOT'
// should detect profiler and enable/disable accordingly.
// see #21
// 'SIGPROF'
)
}
if (process.platform === 'linux') {
module.exports.push(
'SIGIO',
'SIGPOLL',
'SIGPWR',
'SIGSTKFLT',
'SIGUNUSED'
)
}
/***/ }),
/***/ 656:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var assert = __webpack_require__(357).ok;
var zlib = __webpack_require__(761);
var util = __webpack_require__(669);
var kMaxLength = __webpack_require__(407).kMaxLength;
function Inflate(opts) {
if (!(this instanceof Inflate)) {
return new Inflate(opts);
}
if (opts && opts.chunkSize < zlib.Z_MIN_CHUNK) {
opts.chunkSize = zlib.Z_MIN_CHUNK;
}
zlib.Inflate.call(this, opts);
// Node 8 --> 9 compatibility check
this._offset = this._offset === undefined ? this._outOffset : this._offset;
this._buffer = this._buffer || this._outBuffer;
if (opts && opts.maxLength != null) {
this._maxLength = opts.maxLength;
}
}
function createInflate(opts) {
return new Inflate(opts);
}
function _close(engine, callback) {
if (callback) {
process.nextTick(callback);
}
// Caller may invoke .close after a zlib error (which will null _handle).
if (!engine._handle) {
return;
}
engine._handle.close();
engine._handle = null;
}
Inflate.prototype._processChunk = function(chunk, flushFlag, asyncCb) {
if (typeof asyncCb === 'function') {
return zlib.Inflate._processChunk.call(this, chunk, flushFlag, asyncCb);
}
var self = this;
var availInBefore = chunk && chunk.length;
var availOutBefore = this._chunkSize - this._offset;
var leftToInflate = this._maxLength;
var inOff = 0;
var buffers = [];
var nread = 0;
var error;
this.on('error', function(err) {
error = err;
});
function handleChunk(availInAfter, availOutAfter) {
if (self._hadError) {
return;
}
var have = availOutBefore - availOutAfter;
assert(have >= 0, 'have should not go down');
if (have > 0) {
var out = self._buffer.slice(self._offset, self._offset + have);
self._offset += have;
if (out.length > leftToInflate) {
out = out.slice(0, leftToInflate);
}
buffers.push(out);
nread += out.length;
leftToInflate -= out.length;
if (leftToInflate === 0) {
return false;
}
}
if (availOutAfter === 0 || self._offset >= self._chunkSize) {
availOutBefore = self._chunkSize;
self._offset = 0;
self._buffer = Buffer.allocUnsafe(self._chunkSize);
}
if (availOutAfter === 0) {
inOff += (availInBefore - availInAfter);
availInBefore = availInAfter;
return true;
}
return false;
}
assert(this._handle, 'zlib binding closed');
do {
var res = this._handle.writeSync(flushFlag,
chunk, // in
inOff, // in_off
availInBefore, // in_len
this._buffer, // out
this._offset, //out_off
availOutBefore); // out_len
// Node 8 --> 9 compatibility check
res = res || this._writeState;
} while (!this._hadError && handleChunk(res[0], res[1]));
if (this._hadError) {
throw error;
}
if (nread >= kMaxLength) {
_close(this);
throw new RangeError('Cannot create final Buffer. It would be larger than 0x' + kMaxLength.toString(16) + ' bytes');
}
var buf = Buffer.concat(buffers, nread);
_close(this);
return buf;
};
util.inherits(Inflate, zlib.Inflate);
function zlibBufferSync(engine, buffer) {
if (typeof buffer === 'string') {
buffer = Buffer.from(buffer);
}
if (!(buffer instanceof Buffer)) {
throw new TypeError('Not a string or buffer');
}
var flushFlag = engine._finishFlushFlag;
if (flushFlag == null) {
flushFlag = zlib.Z_FINISH;
}
return engine._processChunk(buffer, flushFlag);
}
function inflateSync(buffer, opts) {
return zlibBufferSync(new Inflate(opts), buffer);
}
module.exports = exports = inflateSync;
exports.Inflate = Inflate;
exports.createInflate = createInflate;
exports.inflateSync = inflateSync;
/***/ }),
/***/ 657:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var hasSyncZlib = true;
var zlib = __webpack_require__(761);
var inflateSync = __webpack_require__(656);
if (!zlib.deflateSync) {
hasSyncZlib = false;
}
var SyncReader = __webpack_require__(80);
var FilterSync = __webpack_require__(904);
var Parser = __webpack_require__(932);
var bitmapper = __webpack_require__(319);
var formatNormaliser = __webpack_require__(994);
module.exports = function(buffer, options) {
if (!hasSyncZlib) {
throw new Error('To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0');
}
var err;
function handleError(_err_) {
err = _err_;
}
var metaData;
function handleMetaData(_metaData_) {
metaData = _metaData_;
}
function handleTransColor(transColor) {
metaData.transColor = transColor;
}
function handlePalette(palette) {
metaData.palette = palette;
}
function handleSimpleTransparency() {
metaData.alpha = true;
}
var gamma;
function handleGamma(_gamma_) {
gamma = _gamma_;
}
var inflateDataList = [];
function handleInflateData(inflatedData) {
inflateDataList.push(inflatedData);
}
var reader = new SyncReader(buffer);
var parser = new Parser(options, {
read: reader.read.bind(reader),
error: handleError,
metadata: handleMetaData,
gamma: handleGamma,
palette: handlePalette,
transColor: handleTransColor,
inflateData: handleInflateData,
simpleTransparency: handleSimpleTransparency
});
parser.start();
reader.process();
if (err) {
throw err;
}
//join together the inflate datas
var inflateData = Buffer.concat(inflateDataList);
inflateDataList.length = 0;
var inflatedData;
if (metaData.interlace) {
inflatedData = zlib.inflateSync(inflateData);
}
else {
var rowSize = ((metaData.width * metaData.bpp * metaData.depth + 7) >> 3) + 1;
var imageSize = rowSize * metaData.height;
inflatedData = inflateSync(inflateData, { chunkSize: imageSize, maxLength: imageSize });
}
inflateData = null;
if (!inflatedData || !inflatedData.length) {
throw new Error('bad png - invalid inflate data response');
}
var unfilteredData = FilterSync.process(inflatedData, metaData);
inflateData = null;
var bitmapData = bitmapper.dataToBitMap(unfilteredData, metaData);
unfilteredData = null;
var normalisedBitmapData = formatNormaliser(bitmapData, metaData);
metaData.data = normalisedBitmapData;
metaData.gamma = gamma || 0;
return metaData;
};
/***/ }),
/***/ 667:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var constants = __webpack_require__(268);
module.exports = function(dataIn, width, height, options) {
var outHasAlpha = [constants.COLORTYPE_COLOR_ALPHA, constants.COLORTYPE_ALPHA].indexOf(options.colorType) !== -1;
if (options.colorType === options.inputColorType) {
var bigEndian = (function() {
var buffer = new ArrayBuffer(2);
new DataView(buffer).setInt16(0, 256, true /* littleEndian */);
// Int16Array uses the platform's endianness.
return new Int16Array(buffer)[0] !== 256;
})();
// If no need to convert to grayscale and alpha is present/absent in both, take a fast route
if (options.bitDepth === 8 || (options.bitDepth === 16 && bigEndian)) {
return dataIn;
}
}
// map to a UInt16 array if data is 16bit, fix endianness below
var data = options.bitDepth !== 16 ? dataIn : new Uint16Array(dataIn.buffer);
var maxValue = 255;
var inBpp = constants.COLORTYPE_TO_BPP_MAP[options.inputColorType];
if (inBpp === 4 && !options.inputHasAlpha) {
inBpp = 3;
}
var outBpp = constants.COLORTYPE_TO_BPP_MAP[options.colorType];
if (options.bitDepth === 16) {
maxValue = 65535;
outBpp *= 2;
}
var outData = new Buffer(width * height * outBpp);
var inIndex = 0;
var outIndex = 0;
var bgColor = options.bgColor || {};
if (bgColor.red === undefined) {
bgColor.red = maxValue;
}
if (bgColor.green === undefined) {
bgColor.green = maxValue;
}
if (bgColor.blue === undefined) {
bgColor.blue = maxValue;
}
function getRGBA() {
var red;
var green;
var blue;
var alpha = maxValue;
switch (options.inputColorType) {
case constants.COLORTYPE_COLOR_ALPHA:
alpha = data[inIndex + 3];
red = data[inIndex];
green = data[inIndex + 1];
blue = data[inIndex + 2];
break;
case constants.COLORTYPE_COLOR:
red = data[inIndex];
green = data[inIndex + 1];
blue = data[inIndex + 2];
break;
case constants.COLORTYPE_ALPHA:
alpha = data[inIndex + 1];
red = data[inIndex];
green = red;
blue = red;
break;
case constants.COLORTYPE_GRAYSCALE:
red = data[inIndex];
green = red;
blue = red;
break;
default:
throw new Error('input color type:' + options.inputColorType + ' is not supported at present');
}
if (options.inputHasAlpha) {
if (!outHasAlpha) {
alpha /= maxValue;
red = Math.min(Math.max(Math.round((1 - alpha) * bgColor.red + alpha * red), 0), maxValue);
green = Math.min(Math.max(Math.round((1 - alpha) * bgColor.green + alpha * green), 0), maxValue);
blue = Math.min(Math.max(Math.round((1 - alpha) * bgColor.blue + alpha * blue), 0), maxValue);
}
}
return { red: red, green: green, blue: blue, alpha: alpha };
}
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
var rgba = getRGBA(data, inIndex);
switch (options.colorType) {
case constants.COLORTYPE_COLOR_ALPHA:
case constants.COLORTYPE_COLOR:
if (options.bitDepth === 8) {
outData[outIndex] = rgba.red;
outData[outIndex + 1] = rgba.green;
outData[outIndex + 2] = rgba.blue;
if (outHasAlpha) {
outData[outIndex + 3] = rgba.alpha;
}
}
else {
outData.writeUInt16BE(rgba.red, outIndex);
outData.writeUInt16BE(rgba.green, outIndex + 2);
outData.writeUInt16BE(rgba.blue, outIndex + 4);
if (outHasAlpha) {
outData.writeUInt16BE(rgba.alpha, outIndex + 6);
}
}
break;
case constants.COLORTYPE_ALPHA:
case constants.COLORTYPE_GRAYSCALE:
// Convert to grayscale and alpha
var grayscale = (rgba.red + rgba.green + rgba.blue) / 3;
if (options.bitDepth === 8) {
outData[outIndex] = grayscale;
if (outHasAlpha) {
outData[outIndex + 1] = rgba.alpha;
}
}
else {
outData.writeUInt16BE(grayscale, outIndex);
if (outHasAlpha) {
outData.writeUInt16BE(rgba.alpha, outIndex + 2);
}
}
break;
default:
throw new Error('unrecognised color Type ' + options.colorType);
}
inIndex += inBpp;
outIndex += outBpp;
}
}
return outData;
};
/***/ }),
/***/ 669:
/***/ (function(module) {
module.exports = require("util");
/***/ }),
/***/ 673:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Utils = __webpack_require__(178)
function getColorAttrib (color, attrib) {
var alpha = color.a / 255
var str = attrib + '="' + color.hex + '"'
return alpha < 1
? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"'
: str
}
function svgCmd (cmd, x, y) {
var str = cmd + x
if (typeof y !== 'undefined') str += ' ' + y
return str
}
function qrToPath (data, size, margin) {
var path = ''
var moveBy = 0
var newRow = false
var lineLength = 0
for (var i = 0; i < data.length; i++) {
var col = Math.floor(i % size)
var row = Math.floor(i / size)
if (!col && !newRow) newRow = true
if (data[i]) {
lineLength++
if (!(i > 0 && col > 0 && data[i - 1])) {
path += newRow
? svgCmd('M', col + margin, 0.5 + row + margin)
: svgCmd('m', moveBy, 0)
moveBy = 0
newRow = false
}
if (!(col + 1 < size && data[i + 1])) {
path += svgCmd('h', lineLength)
lineLength = 0
}
} else {
moveBy++
}
}
return path
}
exports.render = function render (qrData, options, cb) {
var opts = Utils.getOptions(options)
var size = qrData.modules.size
var data = qrData.modules.data
var qrcodesize = size + opts.margin * 2
var bg = !opts.color.light.a
? ''
: '<path ' + getColorAttrib(opts.color.light, 'fill') +
' d="M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z"/>'
var path =
'<path ' + getColorAttrib(opts.color.dark, 'stroke') +
' d="' + qrToPath(data, size, opts.margin) + '"/>'
var viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"'
var width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" '
var svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path + '</svg>\n'
if (typeof cb === 'function') {
cb(null, svgTag)
}
return svgTag
}
/***/ }),
/***/ 674:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticate;
const { Deprecation } = __webpack_require__(692);
const once = __webpack_require__(969);
const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
function authenticate(state, options) {
deprecateAuthenticate(
state.octokit.log,
new Deprecation(
'[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
)
);
if (!options) {
state.auth = false;
return;
}
switch (options.type) {
case "basic":
if (!options.username || !options.password) {
throw new Error(
"Basic authentication requires both a username and password to be set"
);
}
break;
case "oauth":
if (!options.token && !(options.key && options.secret)) {
throw new Error(
"OAuth2 authentication requires a token or key & secret to be set"
);
}
break;
case "token":
case "app":
if (!options.token) {
throw new Error("Token authentication requires a token to be set");
}
break;
default:
throw new Error(
"Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
);
}
state.auth = options;
}
/***/ }),
/***/ 675:
/***/ (function(module) {
module.exports = function btoa(str) {
return new Buffer(str).toString('base64')
}
/***/ }),
/***/ 692:
/***/ (function(__unusedmodule, exports) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
class Deprecation extends Error {
constructor(message) {
super(message); // Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = 'Deprecation';
}
}
exports.Deprecation = Deprecation;
/***/ }),
/***/ 697:
/***/ (function(module) {
"use strict";
module.exports = (promise, onFinally) => {
onFinally = onFinally || (() => {});
return promise.then(
val => new Promise(resolve => {
resolve(onFinally());
}).then(() => val),
err => new Promise(resolve => {
resolve(onFinally());
}).then(() => {
throw err;
})
);
};
/***/ }),
/***/ 702:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
var Utils = __webpack_require__(114)
var ECLevel = __webpack_require__(50)
var BitBuffer = __webpack_require__(765)
var BitMatrix = __webpack_require__(287)
var AlignmentPattern = __webpack_require__(254)
var FinderPattern = __webpack_require__(227)
var MaskPattern = __webpack_require__(741)
var ECCode = __webpack_require__(135)
var ReedSolomonEncoder = __webpack_require__(185)
var Version = __webpack_require__(424)
var FormatInfo = __webpack_require__(202)
var Mode = __webpack_require__(364)
var Segments = __webpack_require__(797)
var isArray = __webpack_require__(714)
/**
* QRCode for JavaScript
*
* modified by Ryan Day for nodejs support
* Copyright (c) 2011 Ryan Day
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
//---------------------------------------------------------------------
// QRCode for JavaScript
//
// Copyright (c) 2009 Kazuhiko Arase
//
// URL: http://www.d-project.com/
//
// Licensed under the MIT license:
// http://www.opensource.org/licenses/mit-license.php
//
// The word "QR Code" is registered trademark of
// DENSO WAVE INCORPORATED
// http://www.denso-wave.com/qrcode/faqpatent-e.html
//
//---------------------------------------------------------------------
*/
/**
* Add finder patterns bits to matrix
*
* @param {BitMatrix} matrix Modules matrix
* @param {Number} version QR Code version
*/
function setupFinderPattern (matrix, version) {
var size = matrix.size
var pos = FinderPattern.getPositions(version)
for (var i = 0; i < pos.length; i++) {
var row = pos[i][0]
var col = pos[i][1]
for (var r = -1; r <= 7; r++) {
if (row + r <= -1 || size <= row + r) continue
for (var c = -1; c <= 7; c++) {
if (col + c <= -1 || size <= col + c) continue
if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||
(c >= 0 && c <= 6 && (r === 0 || r === 6)) ||
(r >= 2 && r <= 4 && c >= 2 && c <= 4)) {
matrix.set(row + r, col + c, true, true)
} else {
matrix.set(row + r, col + c, false, true)
}
}
}
}
}
/**
* Add timing pattern bits to matrix
*
* Note: this function must be called before {@link setupAlignmentPattern}
*
* @param {BitMatrix} matrix Modules matrix
*/
function setupTimingPattern (matrix) {
var size = matrix.size
for (var r = 8; r < size - 8; r++) {
var value = r % 2 === 0
matrix.set(r, 6, value, true)
matrix.set(6, r, value, true)
}
}
/**
* Add alignment patterns bits to matrix
*
* Note: this function must be called after {@link setupTimingPattern}
*
* @param {BitMatrix} matrix Modules matrix
* @param {Number} version QR Code version
*/
function setupAlignmentPattern (matrix, version) {
var pos = AlignmentPattern.getPositions(version)
for (var i = 0; i < pos.length; i++) {
var row = pos[i][0]
var col = pos[i][1]
for (var r = -2; r <= 2; r++) {
for (var c = -2; c <= 2; c++) {
if (r === -2 || r === 2 || c === -2 || c === 2 ||
(r === 0 && c === 0)) {
matrix.set(row + r, col + c, true, true)
} else {
matrix.set(row + r, col + c, false, true)
}
}
}
}
}
/**
* Add version info bits to matrix
*
* @param {BitMatrix} matrix Modules matrix
* @param {Number} version QR Code version
*/
function setupVersionInfo (matrix, version) {
var size = matrix.size
var bits = Version.getEncodedBits(version)
var row, col, mod
for (var i = 0; i < 18; i++) {
row = Math.floor(i / 3)
col = i % 3 + size - 8 - 3
mod = ((bits >> i) & 1) === 1
matrix.set(row, col, mod, true)
matrix.set(col, row, mod, true)
}
}
/**
* Add format info bits to matrix
*
* @param {BitMatrix} matrix Modules matrix
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
* @param {Number} maskPattern Mask pattern reference value
*/
function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {
var size = matrix.size
var bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)
var i, mod
for (i = 0; i < 15; i++) {
mod = ((bits >> i) & 1) === 1
// vertical
if (i < 6) {
matrix.set(i, 8, mod, true)
} else if (i < 8) {
matrix.set(i + 1, 8, mod, true)
} else {
matrix.set(size - 15 + i, 8, mod, true)
}
// horizontal
if (i < 8) {
matrix.set(8, size - i - 1, mod, true)
} else if (i < 9) {
matrix.set(8, 15 - i - 1 + 1, mod, true)
} else {
matrix.set(8, 15 - i - 1, mod, true)
}
}
// fixed module
matrix.set(size - 8, 8, 1, true)
}
/**
* Add encoded data bits to matrix
*
* @param {BitMatrix} matrix Modules matrix
* @param {Buffer} data Data codewords
*/
function setupData (matrix, data) {
var size = matrix.size
var inc = -1
var row = size - 1
var bitIndex = 7
var byteIndex = 0
for (var col = size - 1; col > 0; col -= 2) {
if (col === 6) col--
while (true) {
for (var c = 0; c < 2; c++) {
if (!matrix.isReserved(row, col - c)) {
var dark = false
if (byteIndex < data.length) {
dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)
}
matrix.set(row, col - c, dark)
bitIndex--
if (bitIndex === -1) {
byteIndex++
bitIndex = 7
}
}
}
row += inc
if (row < 0 || size <= row) {
row -= inc
inc = -inc
break
}
}
}
}
/**
* Create encoded codewords from data input
*
* @param {Number} version QR Code version
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
* @param {ByteData} data Data input
* @return {Buffer} Buffer containing encoded codewords
*/
function createData (version, errorCorrectionLevel, segments) {
// Prepare data buffer
var buffer = new BitBuffer()
segments.forEach(function (data) {
// prefix data with mode indicator (4 bits)
buffer.put(data.mode.bit, 4)
// Prefix data with character count indicator.
// The character count indicator is a string of bits that represents the
// number of characters that are being encoded.
// The character count indicator must be placed after the mode indicator
// and must be a certain number of bits long, depending on the QR version
// and data mode
// @see {@link Mode.getCharCountIndicator}.
buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))
// add binary data sequence to buffer
data.write(buffer)
})
// Calculate required number of bits
var totalCodewords = Utils.getSymbolTotalCodewords(version)
var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
var dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8
// Add a terminator.
// If the bit string is shorter than the total number of required bits,
// a terminator of up to four 0s must be added to the right side of the string.
// If the bit string is more than four bits shorter than the required number of bits,
// add four 0s to the end.
if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {
buffer.put(0, 4)
}
// If the bit string is fewer than four bits shorter, add only the number of 0s that
// are needed to reach the required number of bits.
// After adding the terminator, if the number of bits in the string is not a multiple of 8,
// pad the string on the right with 0s to make the string's length a multiple of 8.
while (buffer.getLengthInBits() % 8 !== 0) {
buffer.putBit(0)
}
// Add pad bytes if the string is still shorter than the total number of required bits.
// Extend the buffer to fill the data capacity of the symbol corresponding to
// the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)
// and 00010001 (0x11) alternately.
var remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8
for (var i = 0; i < remainingByte; i++) {
buffer.put(i % 2 ? 0x11 : 0xEC, 8)
}
return createCodewords(buffer, version, errorCorrectionLevel)
}
/**
* Encode input data with Reed-Solomon and return codewords with
* relative error correction bits
*
* @param {BitBuffer} bitBuffer Data to encode
* @param {Number} version QR Code version
* @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
* @return {Buffer} Buffer containing encoded codewords
*/
function createCodewords (bitBuffer, version, errorCorrectionLevel) {
// Total codewords for this QR code version (Data + Error correction)
var totalCodewords = Utils.getSymbolTotalCodewords(version)
// Total number of error correction codewords
var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
// Total number of data codewords
var dataTotalCodewords = totalCodewords - ecTotalCodewords
// Total number of blocks
var ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)
// Calculate how many blocks each group should contain
var blocksInGroup2 = totalCodewords % ecTotalBlocks
var blocksInGroup1 = ecTotalBlocks - blocksInGroup2
var totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)
var dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)
var dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1
// Number of EC codewords is the same for both groups
var ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1
// Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount
var rs = new ReedSolomonEncoder(ecCount)
var offset = 0
var dcData = new Array(ecTotalBlocks)
var ecData = new Array(ecTotalBlocks)
var maxDataSize = 0
var buffer = BufferUtil.from(bitBuffer.buffer)
// Divide the buffer into the required number of blocks
for (var b = 0; b < ecTotalBlocks; b++) {
var dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2
// extract a block of data from buffer
dcData[b] = buffer.slice(offset, offset + dataSize)
// Calculate EC codewords for this data block
ecData[b] = rs.encode(dcData[b])
offset += dataSize
maxDataSize = Math.max(maxDataSize, dataSize)
}
// Create final data
// Interleave the data and error correction codewords from each block
var data = BufferUtil.alloc(totalCodewords)
var index = 0
var i, r
// Add data codewords
for (i = 0; i < maxDataSize; i++) {
for (r = 0; r < ecTotalBlocks; r++) {
if (i < dcData[r].length) {
data[index++] = dcData[r][i]
}
}
}
// Apped EC codewords
for (i = 0; i < ecCount; i++) {
for (r = 0; r < ecTotalBlocks; r++) {
data[index++] = ecData[r][i]
}
}
return data
}
/**
* Build QR Code symbol
*
* @param {String} data Input string
* @param {Number} version QR Code version
* @param {ErrorCorretionLevel} errorCorrectionLevel Error level
* @param {MaskPattern} maskPattern Mask pattern
* @return {Object} Object containing symbol data
*/
function createSymbol (data, version, errorCorrectionLevel, maskPattern) {
var segments
if (isArray(data)) {
segments = Segments.fromArray(data)
} else if (typeof data === 'string') {
var estimatedVersion = version
if (!estimatedVersion) {
var rawSegments = Segments.rawSplit(data)
// Estimate best version that can contain raw splitted segments
estimatedVersion = Version.getBestVersionForData(rawSegments,
errorCorrectionLevel)
}
// Build optimized segments
// If estimated version is undefined, try with the highest version
segments = Segments.fromString(data, estimatedVersion || 40)
} else {
throw new Error('Invalid data')
}
// Get the min version that can contain data
var bestVersion = Version.getBestVersionForData(segments,
errorCorrectionLevel)
// If no version is found, data cannot be stored
if (!bestVersion) {
throw new Error('The amount of data is too big to be stored in a QR Code')
}
// If not specified, use min version as default
if (!version) {
version = bestVersion
// Check if the specified version can contain the data
} else if (version < bestVersion) {
throw new Error('\n' +
'The chosen QR Code version cannot contain this amount of data.\n' +
'Minimum version required to store current data is: ' + bestVersion + '.\n'
)
}
var dataBits = createData(version, errorCorrectionLevel, segments)
// Allocate matrix buffer
var moduleCount = Utils.getSymbolSize(version)
var modules = new BitMatrix(moduleCount)
// Add function modules
setupFinderPattern(modules, version)
setupTimingPattern(modules)
setupAlignmentPattern(modules, version)
// Add temporary dummy bits for format info just to set them as reserved.
// This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}
// since the masking operation must be performed only on the encoding region.
// These blocks will be replaced with correct values later in code.
setupFormatInfo(modules, errorCorrectionLevel, 0)
if (version >= 7) {
setupVersionInfo(modules, version)
}
// Add data codewords
setupData(modules, dataBits)
if (isNaN(maskPattern)) {
// Find best mask pattern
maskPattern = MaskPattern.getBestMask(modules,
setupFormatInfo.bind(null, modules, errorCorrectionLevel))
}
// Apply mask pattern
MaskPattern.applyMask(maskPattern, modules)
// Replace format info bits with correct values
setupFormatInfo(modules, errorCorrectionLevel, maskPattern)
return {
modules: modules,
version: version,
errorCorrectionLevel: errorCorrectionLevel,
maskPattern: maskPattern,
segments: segments
}
}
/**
* QR Code
*
* @param {String | Array} data Input data
* @param {Object} options Optional configurations
* @param {Number} options.version QR Code version
* @param {String} options.errorCorrectionLevel Error correction level
* @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis
*/
exports.create = function create (data, options) {
if (typeof data === 'undefined' || data === '') {
throw new Error('No input text')
}
var errorCorrectionLevel = ECLevel.M
var version
var mask
if (typeof options !== 'undefined') {
// Use higher error correction level as default
errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)
version = Version.from(options.version)
mask = MaskPattern.from(options.maskPattern)
if (options.toSJISFunc) {
Utils.setToSJISFunction(options.toSJISFunc)
}
}
return createSymbol(data, version, errorCorrectionLevel, mask)
}
/***/ }),
/***/ 714:
/***/ (function(module) {
var toString = {}.toString;
module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
/***/ }),
/***/ 724:
/***/ (function(__unusedmodule, exports) {
"use strict";
// Adam 7
// 0 1 2 3 4 5 6 7
// 0 x 6 4 6 x 6 4 6
// 1 7 7 7 7 7 7 7 7
// 2 5 6 5 6 5 6 5 6
// 3 7 7 7 7 7 7 7 7
// 4 3 6 4 6 3 6 4 6
// 5 7 7 7 7 7 7 7 7
// 6 5 6 5 6 5 6 5 6
// 7 7 7 7 7 7 7 7 7
var imagePasses = [
{ // pass 1 - 1px
x: [0],
y: [0]
},
{ // pass 2 - 1px
x: [4],
y: [0]
},
{ // pass 3 - 2px
x: [0, 4],
y: [4]
},
{ // pass 4 - 4px
x: [2, 6],
y: [0, 4]
},
{ // pass 5 - 8px
x: [0, 2, 4, 6],
y: [2, 6]
},
{ // pass 6 - 16px
x: [1, 3, 5, 7],
y: [0, 2, 4, 6]
},
{ // pass 7 - 32px
x: [0, 1, 2, 3, 4, 5, 6, 7],
y: [1, 3, 5, 7]
}
];
exports.getImagePasses = function(width, height) {
var images = [];
var xLeftOver = width % 8;
var yLeftOver = height % 8;
var xRepeats = (width - xLeftOver) / 8;
var yRepeats = (height - yLeftOver) / 8;
for (var i = 0; i < imagePasses.length; i++) {
var pass = imagePasses[i];
var passWidth = xRepeats * pass.x.length;
var passHeight = yRepeats * pass.y.length;
for (var j = 0; j < pass.x.length; j++) {
if (pass.x[j] < xLeftOver) {
passWidth++;
}
else {
break;
}
}
for (j = 0; j < pass.y.length; j++) {
if (pass.y[j] < yLeftOver) {
passHeight++;
}
else {
break;
}
}
if (passWidth > 0 && passHeight > 0) {
images.push({ width: passWidth, height: passHeight, index: i });
}
}
return images;
};
exports.getInterlaceIterator = function(width) {
return function(x, y, pass) {
var outerXLeftOver = x % imagePasses[pass].x.length;
var outerX = (((x - outerXLeftOver) / imagePasses[pass].x.length) * 8) + imagePasses[pass].x[outerXLeftOver];
var outerYLeftOver = y % imagePasses[pass].y.length;
var outerY = (((y - outerYLeftOver) / imagePasses[pass].y.length) * 8) + imagePasses[pass].y[outerYLeftOver];
return (outerX * 4) + (outerY * width * 4);
};
};
/***/ }),
/***/ 741:
/***/ (function(__unusedmodule, exports) {
/**
* Data mask pattern reference
* @type {Object}
*/
exports.Patterns = {
PATTERN000: 0,
PATTERN001: 1,
PATTERN010: 2,
PATTERN011: 3,
PATTERN100: 4,
PATTERN101: 5,
PATTERN110: 6,
PATTERN111: 7
}
/**
* Weighted penalty scores for the undesirable features
* @type {Object}
*/
var PenaltyScores = {
N1: 3,
N2: 3,
N3: 40,
N4: 10
}
/**
* Check if mask pattern value is valid
*
* @param {Number} mask Mask pattern
* @return {Boolean} true if valid, false otherwise
*/
exports.isValid = function isValid (mask) {
return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7
}
/**
* Returns mask pattern from a value.
* If value is not valid, returns undefined
*
* @param {Number|String} value Mask pattern value
* @return {Number} Valid mask pattern or undefined
*/
exports.from = function from (value) {
return exports.isValid(value) ? parseInt(value, 10) : undefined
}
/**
* Find adjacent modules in row/column with the same color
* and assign a penalty value.
*
* Points: N1 + i
* i is the amount by which the number of adjacent modules of the same color exceeds 5
*/
exports.getPenaltyN1 = function getPenaltyN1 (data) {
var size = data.size
var points = 0
var sameCountCol = 0
var sameCountRow = 0
var lastCol = null
var lastRow = null
for (var row = 0; row < size; row++) {
sameCountCol = sameCountRow = 0
lastCol = lastRow = null
for (var col = 0; col < size; col++) {
var module = data.get(row, col)
if (module === lastCol) {
sameCountCol++
} else {
if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
lastCol = module
sameCountCol = 1
}
module = data.get(col, row)
if (module === lastRow) {
sameCountRow++
} else {
if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
lastRow = module
sameCountRow = 1
}
}
if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
}
return points
}
/**
* Find 2x2 blocks with the same color and assign a penalty value
*
* Points: N2 * (m - 1) * (n - 1)
*/
exports.getPenaltyN2 = function getPenaltyN2 (data) {
var size = data.size
var points = 0
for (var row = 0; row < size - 1; row++) {
for (var col = 0; col < size - 1; col++) {
var last = data.get(row, col) +
data.get(row, col + 1) +
data.get(row + 1, col) +
data.get(row + 1, col + 1)
if (last === 4 || last === 0) points++
}
}
return points * PenaltyScores.N2
}
/**
* Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,
* preceded or followed by light area 4 modules wide
*
* Points: N3 * number of pattern found
*/
exports.getPenaltyN3 = function getPenaltyN3 (data) {
var size = data.size
var points = 0
var bitsCol = 0
var bitsRow = 0
for (var row = 0; row < size; row++) {
bitsCol = bitsRow = 0
for (var col = 0; col < size; col++) {
bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)
if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++
bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)
if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++
}
}
return points * PenaltyScores.N3
}
/**
* Calculate proportion of dark modules in entire symbol
*
* Points: N4 * k
*
* k is the rating of the deviation of the proportion of dark modules
* in the symbol from 50% in steps of 5%
*/
exports.getPenaltyN4 = function getPenaltyN4 (data) {
var darkCount = 0
var modulesCount = data.data.length
for (var i = 0; i < modulesCount; i++) darkCount += data.data[i]
var k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)
return k * PenaltyScores.N4
}
/**
* Return mask value at given position
*
* @param {Number} maskPattern Pattern reference value
* @param {Number} i Row
* @param {Number} j Column
* @return {Boolean} Mask value
*/
function getMaskAt (maskPattern, i, j) {
switch (maskPattern) {
case exports.Patterns.PATTERN000: return (i + j) % 2 === 0
case exports.Patterns.PATTERN001: return i % 2 === 0
case exports.Patterns.PATTERN010: return j % 3 === 0
case exports.Patterns.PATTERN011: return (i + j) % 3 === 0
case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0
case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0
case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0
case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0
default: throw new Error('bad maskPattern:' + maskPattern)
}
}
/**
* Apply a mask pattern to a BitMatrix
*
* @param {Number} pattern Pattern reference number
* @param {BitMatrix} data BitMatrix data
*/
exports.applyMask = function applyMask (pattern, data) {
var size = data.size
for (var col = 0; col < size; col++) {
for (var row = 0; row < size; row++) {
if (data.isReserved(row, col)) continue
data.xor(row, col, getMaskAt(pattern, row, col))
}
}
}
/**
* Returns the best mask pattern for data
*
* @param {BitMatrix} data
* @return {Number} Mask pattern reference number
*/
exports.getBestMask = function getBestMask (data, setupFormatFunc) {
var numPatterns = Object.keys(exports.Patterns).length
var bestPattern = 0
var lowerPenalty = Infinity
for (var p = 0; p < numPatterns; p++) {
setupFormatFunc(p)
exports.applyMask(p, data)
// Calculate penalty
var penalty =
exports.getPenaltyN1(data) +
exports.getPenaltyN2(data) +
exports.getPenaltyN3(data) +
exports.getPenaltyN4(data)
// Undo previously applied mask
exports.applyMask(p, data)
if (penalty < lowerPenalty) {
lowerPenalty = penalty
bestPattern = p
}
}
return bestPattern
}
/***/ }),
/***/ 742:
/***/ (function(module, __unusedexports, __webpack_require__) {
var fs = __webpack_require__(747)
var core
if (process.platform === 'win32' || global.TESTING_WINDOWS) {
core = __webpack_require__(818)
} else {
core = __webpack_require__(197)
}
module.exports = isexe
isexe.sync = sync
function isexe (path, options, cb) {
if (typeof options === 'function') {
cb = options
options = {}
}
if (!cb) {
if (typeof Promise !== 'function') {
throw new TypeError('callback not provided')
}
return new Promise(function (resolve, reject) {
isexe(path, options || {}, function (er, is) {
if (er) {
reject(er)
} else {
resolve(is)
}
})
})
}
core(path, options || {}, function (er, is) {
// ignore EACCES because that just means we aren't allowed to run it
if (er) {
if (er.code === 'EACCES' || options && options.ignoreErrors) {
er = null
is = false
}
}
cb(er, is)
})
}
function sync (path, options) {
// my kingdom for a filtered catch
try {
return core.sync(path, options || {})
} catch (er) {
if (options && options.ignoreErrors || er.code === 'EACCES') {
return false
} else {
throw er
}
}
}
/***/ }),
/***/ 747:
/***/ (function(module) {
module.exports = require("fs");
/***/ }),
/***/ 753:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var endpoint = __webpack_require__(385);
var universalUserAgent = __webpack_require__(211);
var isPlainObject = _interopDefault(__webpack_require__(548));
var nodeFetch = _interopDefault(__webpack_require__(369));
var requestError = __webpack_require__(463);
const VERSION = "5.3.2";
function getBufferResponse(response) {
return response.arrayBuffer();
}
function fetchWrapper(requestOptions) {
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
requestOptions.body = JSON.stringify(requestOptions.body);
}
let headers = {};
let status;
let url;
const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
return fetch(requestOptions.url, Object.assign({
method: requestOptions.method,
body: requestOptions.body,
headers: requestOptions.headers,
redirect: requestOptions.redirect
}, requestOptions.request)).then(response => {
url = response.url;
status = response.status;
for (const keyAndValue of response.headers) {
headers[keyAndValue[0]] = keyAndValue[1];
}
if (status === 204 || status === 205) {
return;
} // GitHub API returns 200 for HEAD requests
if (requestOptions.method === "HEAD") {
if (status < 400) {
return;
}
throw new requestError.RequestError(response.statusText, status, {
headers,
request: requestOptions
});
}
if (status === 304) {
throw new requestError.RequestError("Not modified", status, {
headers,
request: requestOptions
});
}
if (status >= 400) {
return response.text().then(message => {
const error = new requestError.RequestError(message, status, {
headers,
request: requestOptions
});
try {
let responseBody = JSON.parse(error.message);
Object.assign(error, responseBody);
let errors = responseBody.errors; // Assumption `errors` would always be in Array format
error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
} catch (e) {// ignore, see octokit/rest.js#684
}
throw error;
});
}
const contentType = response.headers.get("content-type");
if (/application\/json/.test(contentType)) {
return response.json();
}
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
return response.text();
}
return getBufferResponse(response);
}).then(data => {
return {
status,
url,
headers,
data
};
}).catch(error => {
if (error instanceof requestError.RequestError) {
throw error;
}
throw new requestError.RequestError(error.message, 500, {
headers,
request: requestOptions
});
});
}
function withDefaults(oldEndpoint, newDefaults) {
const endpoint = oldEndpoint.defaults(newDefaults);
const newApi = function (route, parameters) {
const endpointOptions = endpoint.merge(route, parameters);
if (!endpointOptions.request || !endpointOptions.request.hook) {
return fetchWrapper(endpoint.parse(endpointOptions));
}
const request = (route, parameters) => {
return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
};
Object.assign(request, {
endpoint,
defaults: withDefaults.bind(null, endpoint)
});
return endpointOptions.request.hook(request, endpointOptions);
};
return Object.assign(newApi, {
endpoint,
defaults: withDefaults.bind(null, endpoint)
});
}
const request = withDefaults(endpoint.endpoint, {
headers: {
"user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
}
});
exports.request = request;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 761:
/***/ (function(module) {
module.exports = require("zlib");
/***/ }),
/***/ 763:
/***/ (function(module) {
module.exports = removeHook
function removeHook (state, name, method) {
if (!state.registry[name]) {
return
}
var index = state.registry[name]
.map(function (registered) { return registered.orig })
.indexOf(method)
if (index === -1) {
return
}
state.registry[name].splice(index, 1)
}
/***/ }),
/***/ 765:
/***/ (function(module) {
function BitBuffer () {
this.buffer = []
this.length = 0
}
BitBuffer.prototype = {
get: function (index) {
var bufIndex = Math.floor(index / 8)
return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1
},
put: function (num, length) {
for (var i = 0; i < length; i++) {
this.putBit(((num >>> (length - i - 1)) & 1) === 1)
}
},
getLengthInBits: function () {
return this.length
},
putBit: function (bit) {
var bufIndex = Math.floor(this.length / 8)
if (this.buffer.length <= bufIndex) {
this.buffer.push(0)
}
if (bit) {
this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))
}
this.length++
}
}
module.exports = BitBuffer
/***/ }),
/***/ 768:
/***/ (function(module) {
"use strict";
module.exports = function (x) {
var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
if (x[x.length - 1] === lf) {
x = x.slice(0, x.length - 1);
}
if (x[x.length - 1] === cr) {
x = x.slice(0, x.length - 1);
}
return x;
};
/***/ }),
/***/ 777:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = getFirstPage
const getPage = __webpack_require__(265)
function getFirstPage (octokit, link, headers) {
return getPage(octokit, link, 'first', headers)
}
/***/ }),
/***/ 778:
/***/ (function(module) {
// can-promise has a crash in some versions of react native that dont have
// standard global objects
// https://github.com/soldair/node-qrcode/issues/157
module.exports = function () {
return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
}
/***/ }),
/***/ 796:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var osName = _interopDefault(__webpack_require__(2));
function getUserAgent() {
try {
return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
} catch (error) {
if (/wmic os get Caption/.test(error.message)) {
return "Windows <version undetectable>";
}
throw error;
}
}
exports.getUserAgent = getUserAgent;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 797:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var Mode = __webpack_require__(364)
var NumericData = __webpack_require__(363)
var AlphanumericData = __webpack_require__(475)
var ByteData = __webpack_require__(296)
var KanjiData = __webpack_require__(801)
var Regex = __webpack_require__(290)
var Utils = __webpack_require__(114)
var dijkstra = __webpack_require__(467)
/**
* Returns UTF8 byte length
*
* @param {String} str Input string
* @return {Number} Number of byte
*/
function getStringByteLength (str) {
return unescape(encodeURIComponent(str)).length
}
/**
* Get a list of segments of the specified mode
* from a string
*
* @param {Mode} mode Segment mode
* @param {String} str String to process
* @return {Array} Array of object with segments data
*/
function getSegments (regex, mode, str) {
var segments = []
var result
while ((result = regex.exec(str)) !== null) {
segments.push({
data: result[0],
index: result.index,
mode: mode,
length: result[0].length
})
}
return segments
}
/**
* Extracts a series of segments with the appropriate
* modes from a string
*
* @param {String} dataStr Input string
* @return {Array} Array of object with segments data
*/
function getSegmentsFromString (dataStr) {
var numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)
var alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)
var byteSegs
var kanjiSegs
if (Utils.isKanjiModeEnabled()) {
byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)
kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)
} else {
byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)
kanjiSegs = []
}
var segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)
return segs
.sort(function (s1, s2) {
return s1.index - s2.index
})
.map(function (obj) {
return {
data: obj.data,
mode: obj.mode,
length: obj.length
}
})
}
/**
* Returns how many bits are needed to encode a string of
* specified length with the specified mode
*
* @param {Number} length String length
* @param {Mode} mode Segment mode
* @return {Number} Bit length
*/
function getSegmentBitsLength (length, mode) {
switch (mode) {
case Mode.NUMERIC:
return NumericData.getBitsLength(length)
case Mode.ALPHANUMERIC:
return AlphanumericData.getBitsLength(length)
case Mode.KANJI:
return KanjiData.getBitsLength(length)
case Mode.BYTE:
return ByteData.getBitsLength(length)
}
}
/**
* Merges adjacent segments which have the same mode
*
* @param {Array} segs Array of object with segments data
* @return {Array} Array of object with segments data
*/
function mergeSegments (segs) {
return segs.reduce(function (acc, curr) {
var prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null
if (prevSeg && prevSeg.mode === curr.mode) {
acc[acc.length - 1].data += curr.data
return acc
}
acc.push(curr)
return acc
}, [])
}
/**
* Generates a list of all possible nodes combination which
* will be used to build a segments graph.
*
* Nodes are divided by groups. Each group will contain a list of all the modes
* in which is possible to encode the given text.
*
* For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.
* The group for '12345' will contain then 3 objects, one for each
* possible encoding mode.
*
* Each node represents a possible segment.
*
* @param {Array} segs Array of object with segments data
* @return {Array} Array of object with segments data
*/
function buildNodes (segs) {
var nodes = []
for (var i = 0; i < segs.length; i++) {
var seg = segs[i]
switch (seg.mode) {
case Mode.NUMERIC:
nodes.push([seg,
{ data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },
{ data: seg.data, mode: Mode.BYTE, length: seg.length }
])
break
case Mode.ALPHANUMERIC:
nodes.push([seg,
{ data: seg.data, mode: Mode.BYTE, length: seg.length }
])
break
case Mode.KANJI:
nodes.push([seg,
{ data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
])
break
case Mode.BYTE:
nodes.push([
{ data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
])
}
}
return nodes
}
/**
* Builds a graph from a list of nodes.
* All segments in each node group will be connected with all the segments of
* the next group and so on.
*
* At each connection will be assigned a weight depending on the
* segment's byte length.
*
* @param {Array} nodes Array of object with segments data
* @param {Number} version QR Code version
* @return {Object} Graph of all possible segments
*/
function buildGraph (nodes, version) {
var table = {}
var graph = {'start': {}}
var prevNodeIds = ['start']
for (var i = 0; i < nodes.length; i++) {
var nodeGroup = nodes[i]
var currentNodeIds = []
for (var j = 0; j < nodeGroup.length; j++) {
var node = nodeGroup[j]
var key = '' + i + j
currentNodeIds.push(key)
table[key] = { node: node, lastCount: 0 }
graph[key] = {}
for (var n = 0; n < prevNodeIds.length; n++) {
var prevNodeId = prevNodeIds[n]
if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {
graph[prevNodeId][key] =
getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -
getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)
table[prevNodeId].lastCount += node.length
} else {
if (table[prevNodeId]) table[prevNodeId].lastCount = node.length
graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +
4 + Mode.getCharCountIndicator(node.mode, version) // switch cost
}
}
}
prevNodeIds = currentNodeIds
}
for (n = 0; n < prevNodeIds.length; n++) {
graph[prevNodeIds[n]]['end'] = 0
}
return { map: graph, table: table }
}
/**
* Builds a segment from a specified data and mode.
* If a mode is not specified, the more suitable will be used.
*
* @param {String} data Input data
* @param {Mode | String} modesHint Data mode
* @return {Segment} Segment
*/
function buildSingleSegment (data, modesHint) {
var mode
var bestMode = Mode.getBestModeForData(data)
mode = Mode.from(modesHint, bestMode)
// Make sure data can be encoded
if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {
throw new Error('"' + data + '"' +
' cannot be encoded with mode ' + Mode.toString(mode) +
'.\n Suggested mode is: ' + Mode.toString(bestMode))
}
// Use Mode.BYTE if Kanji support is disabled
if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {
mode = Mode.BYTE
}
switch (mode) {
case Mode.NUMERIC:
return new NumericData(data)
case Mode.ALPHANUMERIC:
return new AlphanumericData(data)
case Mode.KANJI:
return new KanjiData(data)
case Mode.BYTE:
return new ByteData(data)
}
}
/**
* Builds a list of segments from an array.
* Array can contain Strings or Objects with segment's info.
*
* For each item which is a string, will be generated a segment with the given
* string and the more appropriate encoding mode.
*
* For each item which is an object, will be generated a segment with the given
* data and mode.
* Objects must contain at least the property "data".
* If property "mode" is not present, the more suitable mode will be used.
*
* @param {Array} array Array of objects with segments data
* @return {Array} Array of Segments
*/
exports.fromArray = function fromArray (array) {
return array.reduce(function (acc, seg) {
if (typeof seg === 'string') {
acc.push(buildSingleSegment(seg, null))
} else if (seg.data) {
acc.push(buildSingleSegment(seg.data, seg.mode))
}
return acc
}, [])
}
/**
* Builds an optimized sequence of segments from a string,
* which will produce the shortest possible bitstream.
*
* @param {String} data Input string
* @param {Number} version QR Code version
* @return {Array} Array of segments
*/
exports.fromString = function fromString (data, version) {
var segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())
var nodes = buildNodes(segs)
var graph = buildGraph(nodes, version)
var path = dijkstra.find_path(graph.map, 'start', 'end')
var optimizedSegs = []
for (var i = 1; i < path.length - 1; i++) {
optimizedSegs.push(graph.table[path[i]].node)
}
return exports.fromArray(mergeSegments(optimizedSegs))
}
/**
* Splits a string in various segments with the modes which
* best represent their content.
* The produced segments are far from being optimized.
* The output of this function is only used to estimate a QR Code version
* which may contain the data.
*
* @param {string} data Input string
* @return {Array} Array of segments
*/
exports.rawSplit = function rawSplit (data) {
return exports.fromArray(
getSegmentsFromString(data, Utils.isKanjiModeEnabled())
)
}
/***/ }),
/***/ 801:
/***/ (function(module, __unusedexports, __webpack_require__) {
var Mode = __webpack_require__(364)
var Utils = __webpack_require__(114)
function KanjiData (data) {
this.mode = Mode.KANJI
this.data = data
}
KanjiData.getBitsLength = function getBitsLength (length) {
return length * 13
}
KanjiData.prototype.getLength = function getLength () {
return this.data.length
}
KanjiData.prototype.getBitsLength = function getBitsLength () {
return KanjiData.getBitsLength(this.data.length)
}
KanjiData.prototype.write = function (bitBuffer) {
var i
// In the Shift JIS system, Kanji characters are represented by a two byte combination.
// These byte values are shifted from the JIS X 0208 values.
// JIS X 0208 gives details of the shift coded representation.
for (i = 0; i < this.data.length; i++) {
var value = Utils.toSJIS(this.data[i])
// For characters with Shift JIS values from 0x8140 to 0x9FFC:
if (value >= 0x8140 && value <= 0x9FFC) {
// Subtract 0x8140 from Shift JIS value
value -= 0x8140
// For characters with Shift JIS values from 0xE040 to 0xEBBF
} else if (value >= 0xE040 && value <= 0xEBBF) {
// Subtract 0xC140 from Shift JIS value
value -= 0xC140
} else {
throw new Error(
'Invalid SJIS character: ' + this.data[i] + '\n' +
'Make sure your charset is UTF-8')
}
// Multiply most significant byte of result by 0xC0
// and add least significant byte to product
value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)
// Convert result to a 13-bit binary string
bitBuffer.put(value, 13)
}
}
module.exports = KanjiData
/***/ }),
/***/ 813:
/***/ (function(__unusedmodule, exports) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
async function auth(token) {
const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
return {
type: "token",
token: token,
tokenType
};
}
/**
* Prefix token for usage in the Authorization header
*
* @param token OAuth token or JSON Web Token
*/
function withAuthorizationPrefix(token) {
if (token.split(/\./).length === 3) {
return `bearer ${token}`;
}
return `token ${token}`;
}
async function hook(token, request, route, parameters) {
const endpoint = request.endpoint.merge(route, parameters);
endpoint.headers.authorization = withAuthorizationPrefix(token);
return request(endpoint);
}
const createTokenAuth = function createTokenAuth(token) {
if (!token) {
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
}
if (typeof token !== "string") {
throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
}
token = token.replace(/^(token|bearer) +/i, "");
return Object.assign(auth.bind(null, token), {
hook: hook.bind(null, token)
});
};
exports.createTokenAuth = createTokenAuth;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 814:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = which
which.sync = whichSync
var isWindows = process.platform === 'win32' ||
process.env.OSTYPE === 'cygwin' ||
process.env.OSTYPE === 'msys'
var path = __webpack_require__(622)
var COLON = isWindows ? ';' : ':'
var isexe = __webpack_require__(742)
function getNotFoundError (cmd) {
var er = new Error('not found: ' + cmd)
er.code = 'ENOENT'
return er
}
function getPathInfo (cmd, opt) {
var colon = opt.colon || COLON
var pathEnv = opt.path || process.env.PATH || ''
var pathExt = ['']
pathEnv = pathEnv.split(colon)
var pathExtExe = ''
if (isWindows) {
pathEnv.unshift(process.cwd())
pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
pathExt = pathExtExe.split(colon)
// Always test the cmd itself first. isexe will check to make sure
// it's found in the pathExt set.
if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
pathExt.unshift('')
}
// If it has a slash, then we don't bother searching the pathenv.
// just check the file itself, and that's it.
if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
pathEnv = ['']
return {
env: pathEnv,
ext: pathExt,
extExe: pathExtExe
}
}
function which (cmd, opt, cb) {
if (typeof opt === 'function') {
cb = opt
opt = {}
}
var info = getPathInfo(cmd, opt)
var pathEnv = info.env
var pathExt = info.ext
var pathExtExe = info.extExe
var found = []
;(function F (i, l) {
if (i === l) {
if (opt.all && found.length)
return cb(null, found)
else
return cb(getNotFoundError(cmd))
}
var pathPart = pathEnv[i]
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
pathPart = pathPart.slice(1, -1)
var p = path.join(pathPart, cmd)
if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
p = cmd.slice(0, 2) + p
}
;(function E (ii, ll) {
if (ii === ll) return F(i + 1, l)
var ext = pathExt[ii]
isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
if (!er && is) {
if (opt.all)
found.push(p + ext)
else
return cb(null, p + ext)
}
return E(ii + 1, ll)
})
})(0, pathExt.length)
})(0, pathEnv.length)
}
function whichSync (cmd, opt) {
opt = opt || {}
var info = getPathInfo(cmd, opt)
var pathEnv = info.env
var pathExt = info.ext
var pathExtExe = info.extExe
var found = []
for (var i = 0, l = pathEnv.length; i < l; i ++) {
var pathPart = pathEnv[i]
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
pathPart = pathPart.slice(1, -1)
var p = path.join(pathPart, cmd)
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
p = cmd.slice(0, 2) + p
}
for (var j = 0, ll = pathExt.length; j < ll; j ++) {
var cur = p + pathExt[j]
var is
try {
is = isexe.sync(cur, { pathExt: pathExtExe })
if (is) {
if (opt.all)
found.push(cur)
else
return cur
}
} catch (ex) {}
}
}
if (opt.all && found.length)
return found
if (opt.nothrow)
return null
throw getNotFoundError(cmd)
}
/***/ }),
/***/ 816:
/***/ (function(module) {
"use strict";
module.exports = /^#!.*/;
/***/ }),
/***/ 818:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = isexe
isexe.sync = sync
var fs = __webpack_require__(747)
function checkPathExt (path, options) {
var pathext = options.pathExt !== undefined ?
options.pathExt : process.env.PATHEXT
if (!pathext) {
return true
}
pathext = pathext.split(';')
if (pathext.indexOf('') !== -1) {
return true
}
for (var i = 0; i < pathext.length; i++) {
var p = pathext[i].toLowerCase()
if (p && path.substr(-p.length).toLowerCase() === p) {
return true
}
}
return false
}
function checkStat (stat, path, options) {
if (!stat.isSymbolicLink() && !stat.isFile()) {
return false
}
return checkPathExt(path, options)
}
function isexe (path, options, cb) {
fs.stat(path, function (er, stat) {
cb(er, er ? false : checkStat(stat, path, options))
})
}
function sync (path, options) {
return checkStat(fs.statSync(path), path, options)
}
/***/ }),
/***/ 835:
/***/ (function(module) {
module.exports = require("url");
/***/ }),
/***/ 842:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
var deprecation = __webpack_require__(692);
var endpointsByScope = {
actions: {
cancelWorkflowRun: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
},
createOrUpdateSecretForRepo: {
method: "PUT",
params: {
encrypted_value: {
type: "string"
},
key_id: {
type: "string"
},
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/secrets/:name"
},
createRegistrationToken: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/runners/registration-token"
},
createRemoveToken: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/runners/remove-token"
},
deleteArtifact: {
method: "DELETE",
params: {
artifact_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
},
deleteSecretFromRepo: {
method: "DELETE",
params: {
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/secrets/:name"
},
downloadArtifact: {
method: "GET",
params: {
archive_format: {
required: true,
type: "string"
},
artifact_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
},
getArtifact: {
method: "GET",
params: {
artifact_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
},
getPublicKey: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/secrets/public-key"
},
getSecret: {
method: "GET",
params: {
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/secrets/:name"
},
getSelfHostedRunner: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
runner_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runners/:runner_id"
},
getWorkflow: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
workflow_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
},
getWorkflowJob: {
method: "GET",
params: {
job_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/jobs/:job_id"
},
getWorkflowRun: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id"
},
listDownloadsForSelfHostedRunnerApplication: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/runners/downloads"
},
listJobsForWorkflowRun: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
},
listRepoWorkflowRuns: {
method: "GET",
params: {
actor: {
type: "string"
},
branch: {
type: "string"
},
event: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
status: {
enum: ["completed", "status", "conclusion"],
type: "string"
}
},
url: "/repos/:owner/:repo/actions/runs"
},
listRepoWorkflows: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/workflows"
},
listSecretsForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/secrets"
},
listSelfHostedRunnersForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/runners"
},
listWorkflowJobLogs: {
method: "GET",
params: {
job_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
},
listWorkflowRunArtifacts: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
},
listWorkflowRunLogs: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
},
listWorkflowRuns: {
method: "GET",
params: {
actor: {
type: "string"
},
branch: {
type: "string"
},
event: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
status: {
enum: ["completed", "status", "conclusion"],
type: "string"
},
workflow_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
},
reRunWorkflow: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
run_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
},
removeSelfHostedRunner: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
runner_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/actions/runners/:runner_id"
}
},
activity: {
checkStarringRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/user/starred/:owner/:repo"
},
deleteRepoSubscription: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/subscription"
},
deleteThreadSubscription: {
method: "DELETE",
params: {
thread_id: {
required: true,
type: "integer"
}
},
url: "/notifications/threads/:thread_id/subscription"
},
getRepoSubscription: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/subscription"
},
getThread: {
method: "GET",
params: {
thread_id: {
required: true,
type: "integer"
}
},
url: "/notifications/threads/:thread_id"
},
getThreadSubscription: {
method: "GET",
params: {
thread_id: {
required: true,
type: "integer"
}
},
url: "/notifications/threads/:thread_id/subscription"
},
listEventsForOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/events/orgs/:org"
},
listEventsForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/events"
},
listFeeds: {
method: "GET",
params: {},
url: "/feeds"
},
listNotifications: {
method: "GET",
params: {
all: {
type: "boolean"
},
before: {
type: "string"
},
page: {
type: "integer"
},
participating: {
type: "boolean"
},
per_page: {
type: "integer"
},
since: {
type: "string"
}
},
url: "/notifications"
},
listNotificationsForRepo: {
method: "GET",
params: {
all: {
type: "boolean"
},
before: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
participating: {
type: "boolean"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
}
},
url: "/repos/:owner/:repo/notifications"
},
listPublicEvents: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/events"
},
listPublicEventsForOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/events"
},
listPublicEventsForRepoNetwork: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/networks/:owner/:repo/events"
},
listPublicEventsForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/events/public"
},
listReceivedEventsForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/received_events"
},
listReceivedPublicEventsForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/received_events/public"
},
listRepoEvents: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/events"
},
listReposStarredByAuthenticatedUser: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/user/starred"
},
listReposStarredByUser: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
sort: {
enum: ["created", "updated"],
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/starred"
},
listReposWatchedByUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/subscriptions"
},
listStargazersForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stargazers"
},
listWatchedReposForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/subscriptions"
},
listWatchersForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/subscribers"
},
markAsRead: {
method: "PUT",
params: {
last_read_at: {
type: "string"
}
},
url: "/notifications"
},
markNotificationsAsReadForRepo: {
method: "PUT",
params: {
last_read_at: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/notifications"
},
markThreadAsRead: {
method: "PATCH",
params: {
thread_id: {
required: true,
type: "integer"
}
},
url: "/notifications/threads/:thread_id"
},
setRepoSubscription: {
method: "PUT",
params: {
ignored: {
type: "boolean"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
subscribed: {
type: "boolean"
}
},
url: "/repos/:owner/:repo/subscription"
},
setThreadSubscription: {
method: "PUT",
params: {
ignored: {
type: "boolean"
},
thread_id: {
required: true,
type: "integer"
}
},
url: "/notifications/threads/:thread_id/subscription"
},
starRepo: {
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/user/starred/:owner/:repo"
},
unstarRepo: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/user/starred/:owner/:repo"
}
},
apps: {
addRepoToInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "PUT",
params: {
installation_id: {
required: true,
type: "integer"
},
repository_id: {
required: true,
type: "integer"
}
},
url: "/user/installations/:installation_id/repositories/:repository_id"
},
checkAccountIsAssociatedWithAny: {
method: "GET",
params: {
account_id: {
required: true,
type: "integer"
}
},
url: "/marketplace_listing/accounts/:account_id"
},
checkAccountIsAssociatedWithAnyStubbed: {
method: "GET",
params: {
account_id: {
required: true,
type: "integer"
}
},
url: "/marketplace_listing/stubbed/accounts/:account_id"
},
checkAuthorization: {
deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
method: "GET",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
checkToken: {
headers: {
accept: "application/vnd.github.doctor-strange-preview+json"
},
method: "POST",
params: {
access_token: {
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/token"
},
createContentAttachment: {
headers: {
accept: "application/vnd.github.corsair-preview+json"
},
method: "POST",
params: {
body: {
required: true,
type: "string"
},
content_reference_id: {
required: true,
type: "integer"
},
title: {
required: true,
type: "string"
}
},
url: "/content_references/:content_reference_id/attachments"
},
createFromManifest: {
headers: {
accept: "application/vnd.github.fury-preview+json"
},
method: "POST",
params: {
code: {
required: true,
type: "string"
}
},
url: "/app-manifests/:code/conversions"
},
createInstallationToken: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "POST",
params: {
installation_id: {
required: true,
type: "integer"
},
permissions: {
type: "object"
},
repository_ids: {
type: "integer[]"
}
},
url: "/app/installations/:installation_id/access_tokens"
},
deleteAuthorization: {
headers: {
accept: "application/vnd.github.doctor-strange-preview+json"
},
method: "DELETE",
params: {
access_token: {
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/grant"
},
deleteInstallation: {
headers: {
accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
},
method: "DELETE",
params: {
installation_id: {
required: true,
type: "integer"
}
},
url: "/app/installations/:installation_id"
},
deleteToken: {
headers: {
accept: "application/vnd.github.doctor-strange-preview+json"
},
method: "DELETE",
params: {
access_token: {
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/token"
},
findOrgInstallation: {
deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/installation"
},
findRepoInstallation: {
deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/installation"
},
findUserInstallation: {
deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
username: {
required: true,
type: "string"
}
},
url: "/users/:username/installation"
},
getAuthenticated: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {},
url: "/app"
},
getBySlug: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
app_slug: {
required: true,
type: "string"
}
},
url: "/apps/:app_slug"
},
getInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
installation_id: {
required: true,
type: "integer"
}
},
url: "/app/installations/:installation_id"
},
getOrgInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/installation"
},
getRepoInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/installation"
},
getUserInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
username: {
required: true,
type: "string"
}
},
url: "/users/:username/installation"
},
listAccountsUserOrOrgOnPlan: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
plan_id: {
required: true,
type: "integer"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/marketplace_listing/plans/:plan_id/accounts"
},
listAccountsUserOrOrgOnPlanStubbed: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
plan_id: {
required: true,
type: "integer"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
},
listInstallationReposForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
installation_id: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/installations/:installation_id/repositories"
},
listInstallations: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/app/installations"
},
listInstallationsForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/installations"
},
listMarketplacePurchasesForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/marketplace_purchases"
},
listMarketplacePurchasesForAuthenticatedUserStubbed: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/marketplace_purchases/stubbed"
},
listPlans: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/marketplace_listing/plans"
},
listPlansStubbed: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/marketplace_listing/stubbed/plans"
},
listRepos: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/installation/repositories"
},
removeRepoFromInstallation: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "DELETE",
params: {
installation_id: {
required: true,
type: "integer"
},
repository_id: {
required: true,
type: "integer"
}
},
url: "/user/installations/:installation_id/repositories/:repository_id"
},
resetAuthorization: {
deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
method: "POST",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
resetToken: {
headers: {
accept: "application/vnd.github.doctor-strange-preview+json"
},
method: "PATCH",
params: {
access_token: {
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/token"
},
revokeAuthorizationForApplication: {
deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
method: "DELETE",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
revokeGrantForApplication: {
deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
method: "DELETE",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/grants/:access_token"
},
revokeInstallationToken: {
headers: {
accept: "application/vnd.github.gambit-preview+json"
},
method: "DELETE",
params: {},
url: "/installation/token"
}
},
checks: {
create: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "POST",
params: {
actions: {
type: "object[]"
},
"actions[].description": {
required: true,
type: "string"
},
"actions[].identifier": {
required: true,
type: "string"
},
"actions[].label": {
required: true,
type: "string"
},
completed_at: {
type: "string"
},
conclusion: {
enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
type: "string"
},
details_url: {
type: "string"
},
external_id: {
type: "string"
},
head_sha: {
required: true,
type: "string"
},
name: {
required: true,
type: "string"
},
output: {
type: "object"
},
"output.annotations": {
type: "object[]"
},
"output.annotations[].annotation_level": {
enum: ["notice", "warning", "failure"],
required: true,
type: "string"
},
"output.annotations[].end_column": {
type: "integer"
},
"output.annotations[].end_line": {
required: true,
type: "integer"
},
"output.annotations[].message": {
required: true,
type: "string"
},
"output.annotations[].path": {
required: true,
type: "string"
},
"output.annotations[].raw_details": {
type: "string"
},
"output.annotations[].start_column": {
type: "integer"
},
"output.annotations[].start_line": {
required: true,
type: "integer"
},
"output.annotations[].title": {
type: "string"
},
"output.images": {
type: "object[]"
},
"output.images[].alt": {
required: true,
type: "string"
},
"output.images[].caption": {
type: "string"
},
"output.images[].image_url": {
required: true,
type: "string"
},
"output.summary": {
required: true,
type: "string"
},
"output.text": {
type: "string"
},
"output.title": {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
started_at: {
type: "string"
},
status: {
enum: ["queued", "in_progress", "completed"],
type: "string"
}
},
url: "/repos/:owner/:repo/check-runs"
},
createSuite: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "POST",
params: {
head_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-suites"
},
get: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
check_run_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-runs/:check_run_id"
},
getSuite: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
check_suite_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-suites/:check_suite_id"
},
listAnnotations: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
check_run_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
},
listForRef: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
check_name: {
type: "string"
},
filter: {
enum: ["latest", "all"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
status: {
enum: ["queued", "in_progress", "completed"],
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref/check-runs"
},
listForSuite: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
check_name: {
type: "string"
},
check_suite_id: {
required: true,
type: "integer"
},
filter: {
enum: ["latest", "all"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
status: {
enum: ["queued", "in_progress", "completed"],
type: "string"
}
},
url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
},
listSuitesForRef: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "GET",
params: {
app_id: {
type: "integer"
},
check_name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref/check-suites"
},
rerequestSuite: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "POST",
params: {
check_suite_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
},
setSuitesPreferences: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "PATCH",
params: {
auto_trigger_checks: {
type: "object[]"
},
"auto_trigger_checks[].app_id": {
required: true,
type: "integer"
},
"auto_trigger_checks[].setting": {
required: true,
type: "boolean"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/check-suites/preferences"
},
update: {
headers: {
accept: "application/vnd.github.antiope-preview+json"
},
method: "PATCH",
params: {
actions: {
type: "object[]"
},
"actions[].description": {
required: true,
type: "string"
},
"actions[].identifier": {
required: true,
type: "string"
},
"actions[].label": {
required: true,
type: "string"
},
check_run_id: {
required: true,
type: "integer"
},
completed_at: {
type: "string"
},
conclusion: {
enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
type: "string"
},
details_url: {
type: "string"
},
external_id: {
type: "string"
},
name: {
type: "string"
},
output: {
type: "object"
},
"output.annotations": {
type: "object[]"
},
"output.annotations[].annotation_level": {
enum: ["notice", "warning", "failure"],
required: true,
type: "string"
},
"output.annotations[].end_column": {
type: "integer"
},
"output.annotations[].end_line": {
required: true,
type: "integer"
},
"output.annotations[].message": {
required: true,
type: "string"
},
"output.annotations[].path": {
required: true,
type: "string"
},
"output.annotations[].raw_details": {
type: "string"
},
"output.annotations[].start_column": {
type: "integer"
},
"output.annotations[].start_line": {
required: true,
type: "integer"
},
"output.annotations[].title": {
type: "string"
},
"output.images": {
type: "object[]"
},
"output.images[].alt": {
required: true,
type: "string"
},
"output.images[].caption": {
type: "string"
},
"output.images[].image_url": {
required: true,
type: "string"
},
"output.summary": {
required: true,
type: "string"
},
"output.text": {
type: "string"
},
"output.title": {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
started_at: {
type: "string"
},
status: {
enum: ["queued", "in_progress", "completed"],
type: "string"
}
},
url: "/repos/:owner/:repo/check-runs/:check_run_id"
}
},
codesOfConduct: {
getConductCode: {
headers: {
accept: "application/vnd.github.scarlet-witch-preview+json"
},
method: "GET",
params: {
key: {
required: true,
type: "string"
}
},
url: "/codes_of_conduct/:key"
},
getForRepo: {
headers: {
accept: "application/vnd.github.scarlet-witch-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/community/code_of_conduct"
},
listConductCodes: {
headers: {
accept: "application/vnd.github.scarlet-witch-preview+json"
},
method: "GET",
params: {},
url: "/codes_of_conduct"
}
},
emojis: {
get: {
method: "GET",
params: {},
url: "/emojis"
}
},
gists: {
checkIsStarred: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/star"
},
create: {
method: "POST",
params: {
description: {
type: "string"
},
files: {
required: true,
type: "object"
},
"files.content": {
type: "string"
},
public: {
type: "boolean"
}
},
url: "/gists"
},
createComment: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/comments"
},
delete: {
method: "DELETE",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id"
},
deleteComment: {
method: "DELETE",
params: {
comment_id: {
required: true,
type: "integer"
},
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/comments/:comment_id"
},
fork: {
method: "POST",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/forks"
},
get: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id"
},
getComment: {
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/comments/:comment_id"
},
getRevision: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
},
sha: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/:sha"
},
list: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
}
},
url: "/gists"
},
listComments: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/gists/:gist_id/comments"
},
listCommits: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/gists/:gist_id/commits"
},
listForks: {
method: "GET",
params: {
gist_id: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/gists/:gist_id/forks"
},
listPublic: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
}
},
url: "/gists/public"
},
listPublicForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/gists"
},
listStarred: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
}
},
url: "/gists/starred"
},
star: {
method: "PUT",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/star"
},
unstar: {
method: "DELETE",
params: {
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/star"
},
update: {
method: "PATCH",
params: {
description: {
type: "string"
},
files: {
type: "object"
},
"files.content": {
type: "string"
},
"files.filename": {
type: "string"
},
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id"
},
updateComment: {
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_id: {
required: true,
type: "integer"
},
gist_id: {
required: true,
type: "string"
}
},
url: "/gists/:gist_id/comments/:comment_id"
}
},
git: {
createBlob: {
method: "POST",
params: {
content: {
required: true,
type: "string"
},
encoding: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/blobs"
},
createCommit: {
method: "POST",
params: {
author: {
type: "object"
},
"author.date": {
type: "string"
},
"author.email": {
type: "string"
},
"author.name": {
type: "string"
},
committer: {
type: "object"
},
"committer.date": {
type: "string"
},
"committer.email": {
type: "string"
},
"committer.name": {
type: "string"
},
message: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
parents: {
required: true,
type: "string[]"
},
repo: {
required: true,
type: "string"
},
signature: {
type: "string"
},
tree: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/commits"
},
createRef: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/refs"
},
createTag: {
method: "POST",
params: {
message: {
required: true,
type: "string"
},
object: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
tag: {
required: true,
type: "string"
},
tagger: {
type: "object"
},
"tagger.date": {
type: "string"
},
"tagger.email": {
type: "string"
},
"tagger.name": {
type: "string"
},
type: {
enum: ["commit", "tree", "blob"],
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/tags"
},
createTree: {
method: "POST",
params: {
base_tree: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
tree: {
required: true,
type: "object[]"
},
"tree[].content": {
type: "string"
},
"tree[].mode": {
enum: ["100644", "100755", "040000", "160000", "120000"],
type: "string"
},
"tree[].path": {
type: "string"
},
"tree[].sha": {
allowNull: true,
type: "string"
},
"tree[].type": {
enum: ["blob", "tree", "commit"],
type: "string"
}
},
url: "/repos/:owner/:repo/git/trees"
},
deleteRef: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/refs/:ref"
},
getBlob: {
method: "GET",
params: {
file_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/blobs/:file_sha"
},
getCommit: {
method: "GET",
params: {
commit_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/commits/:commit_sha"
},
getRef: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/ref/:ref"
},
getTag: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
tag_sha: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/tags/:tag_sha"
},
getTree: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
recursive: {
enum: ["1"],
type: "integer"
},
repo: {
required: true,
type: "string"
},
tree_sha: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/trees/:tree_sha"
},
listMatchingRefs: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/matching-refs/:ref"
},
listRefs: {
method: "GET",
params: {
namespace: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/refs/:namespace"
},
updateRef: {
method: "PATCH",
params: {
force: {
type: "boolean"
},
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/git/refs/:ref"
}
},
gitignore: {
getTemplate: {
method: "GET",
params: {
name: {
required: true,
type: "string"
}
},
url: "/gitignore/templates/:name"
},
listTemplates: {
method: "GET",
params: {},
url: "/gitignore/templates"
}
},
interactions: {
addOrUpdateRestrictionsForOrg: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "PUT",
params: {
limit: {
enum: ["existing_users", "contributors_only", "collaborators_only"],
required: true,
type: "string"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/interaction-limits"
},
addOrUpdateRestrictionsForRepo: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "PUT",
params: {
limit: {
enum: ["existing_users", "contributors_only", "collaborators_only"],
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/interaction-limits"
},
getRestrictionsForOrg: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/interaction-limits"
},
getRestrictionsForRepo: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/interaction-limits"
},
removeRestrictionsForOrg: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "DELETE",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/interaction-limits"
},
removeRestrictionsForRepo: {
headers: {
accept: "application/vnd.github.sombra-preview+json"
},
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/interaction-limits"
}
},
issues: {
addAssignees: {
method: "POST",
params: {
assignees: {
type: "string[]"
},
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/assignees"
},
addLabels: {
method: "POST",
params: {
issue_number: {
required: true,
type: "integer"
},
labels: {
required: true,
type: "string[]"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/labels"
},
checkAssignee: {
method: "GET",
params: {
assignee: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/assignees/:assignee"
},
create: {
method: "POST",
params: {
assignee: {
type: "string"
},
assignees: {
type: "string[]"
},
body: {
type: "string"
},
labels: {
type: "string[]"
},
milestone: {
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
title: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues"
},
createComment: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/comments"
},
createLabel: {
method: "POST",
params: {
color: {
required: true,
type: "string"
},
description: {
type: "string"
},
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/labels"
},
createMilestone: {
method: "POST",
params: {
description: {
type: "string"
},
due_on: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["open", "closed"],
type: "string"
},
title: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/milestones"
},
deleteComment: {
method: "DELETE",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments/:comment_id"
},
deleteLabel: {
method: "DELETE",
params: {
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/labels/:name"
},
deleteMilestone: {
method: "DELETE",
params: {
milestone_number: {
required: true,
type: "integer"
},
number: {
alias: "milestone_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/milestones/:milestone_number"
},
get: {
method: "GET",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number"
},
getComment: {
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments/:comment_id"
},
getEvent: {
method: "GET",
params: {
event_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/events/:event_id"
},
getLabel: {
method: "GET",
params: {
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/labels/:name"
},
getMilestone: {
method: "GET",
params: {
milestone_number: {
required: true,
type: "integer"
},
number: {
alias: "milestone_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/milestones/:milestone_number"
},
list: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
filter: {
enum: ["assigned", "created", "mentioned", "subscribed", "all"],
type: "string"
},
labels: {
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated", "comments"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/issues"
},
listAssignees: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/assignees"
},
listComments: {
method: "GET",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/comments"
},
listCommentsForRepo: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments"
},
listEvents: {
method: "GET",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/events"
},
listEventsForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/events"
},
listEventsForTimeline: {
headers: {
accept: "application/vnd.github.mockingbird-preview+json"
},
method: "GET",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/timeline"
},
listForAuthenticatedUser: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
filter: {
enum: ["assigned", "created", "mentioned", "subscribed", "all"],
type: "string"
},
labels: {
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated", "comments"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/user/issues"
},
listForOrg: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
filter: {
enum: ["assigned", "created", "mentioned", "subscribed", "all"],
type: "string"
},
labels: {
type: "string"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated", "comments"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/orgs/:org/issues"
},
listForRepo: {
method: "GET",
params: {
assignee: {
type: "string"
},
creator: {
type: "string"
},
direction: {
enum: ["asc", "desc"],
type: "string"
},
labels: {
type: "string"
},
mentioned: {
type: "string"
},
milestone: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated", "comments"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/repos/:owner/:repo/issues"
},
listLabelsForMilestone: {
method: "GET",
params: {
milestone_number: {
required: true,
type: "integer"
},
number: {
alias: "milestone_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
},
listLabelsForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/labels"
},
listLabelsOnIssue: {
method: "GET",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/labels"
},
listMilestonesForRepo: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
sort: {
enum: ["due_on", "completeness"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/repos/:owner/:repo/milestones"
},
lock: {
method: "PUT",
params: {
issue_number: {
required: true,
type: "integer"
},
lock_reason: {
enum: ["off-topic", "too heated", "resolved", "spam"],
type: "string"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/lock"
},
removeAssignees: {
method: "DELETE",
params: {
assignees: {
type: "string[]"
},
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/assignees"
},
removeLabel: {
method: "DELETE",
params: {
issue_number: {
required: true,
type: "integer"
},
name: {
required: true,
type: "string"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
},
removeLabels: {
method: "DELETE",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/labels"
},
replaceLabels: {
method: "PUT",
params: {
issue_number: {
required: true,
type: "integer"
},
labels: {
type: "string[]"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/labels"
},
unlock: {
method: "DELETE",
params: {
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/lock"
},
update: {
method: "PATCH",
params: {
assignee: {
type: "string"
},
assignees: {
type: "string[]"
},
body: {
type: "string"
},
issue_number: {
required: true,
type: "integer"
},
labels: {
type: "string[]"
},
milestone: {
allowNull: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["open", "closed"],
type: "string"
},
title: {
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number"
},
updateComment: {
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments/:comment_id"
},
updateLabel: {
method: "PATCH",
params: {
color: {
type: "string"
},
current_name: {
required: true,
type: "string"
},
description: {
type: "string"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/labels/:current_name"
},
updateMilestone: {
method: "PATCH",
params: {
description: {
type: "string"
},
due_on: {
type: "string"
},
milestone_number: {
required: true,
type: "integer"
},
number: {
alias: "milestone_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["open", "closed"],
type: "string"
},
title: {
type: "string"
}
},
url: "/repos/:owner/:repo/milestones/:milestone_number"
}
},
licenses: {
get: {
method: "GET",
params: {
license: {
required: true,
type: "string"
}
},
url: "/licenses/:license"
},
getForRepo: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/license"
},
list: {
deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
method: "GET",
params: {},
url: "/licenses"
},
listCommonlyUsed: {
method: "GET",
params: {},
url: "/licenses"
}
},
markdown: {
render: {
method: "POST",
params: {
context: {
type: "string"
},
mode: {
enum: ["markdown", "gfm"],
type: "string"
},
text: {
required: true,
type: "string"
}
},
url: "/markdown"
},
renderRaw: {
headers: {
"content-type": "text/plain; charset=utf-8"
},
method: "POST",
params: {
data: {
mapTo: "data",
required: true,
type: "string"
}
},
url: "/markdown/raw"
}
},
meta: {
get: {
method: "GET",
params: {},
url: "/meta"
}
},
migrations: {
cancelImport: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/import"
},
deleteArchiveForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "DELETE",
params: {
migration_id: {
required: true,
type: "integer"
}
},
url: "/user/migrations/:migration_id/archive"
},
deleteArchiveForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "DELETE",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/migrations/:migration_id/archive"
},
downloadArchiveForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/migrations/:migration_id/archive"
},
getArchiveForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
}
},
url: "/user/migrations/:migration_id/archive"
},
getArchiveForOrg: {
deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/migrations/:migration_id/archive"
},
getCommitAuthors: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
}
},
url: "/repos/:owner/:repo/import/authors"
},
getImportProgress: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/import"
},
getLargeFiles: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/import/large_files"
},
getStatusForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
}
},
url: "/user/migrations/:migration_id"
},
getStatusForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/migrations/:migration_id"
},
listForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/migrations"
},
listForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/migrations"
},
listReposForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/migrations/:migration_id/repositories"
},
listReposForUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "GET",
params: {
migration_id: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/:migration_id/repositories"
},
mapCommitAuthor: {
method: "PATCH",
params: {
author_id: {
required: true,
type: "integer"
},
email: {
type: "string"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/import/authors/:author_id"
},
setLfsPreference: {
method: "PATCH",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
use_lfs: {
enum: ["opt_in", "opt_out"],
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/import/lfs"
},
startForAuthenticatedUser: {
method: "POST",
params: {
exclude_attachments: {
type: "boolean"
},
lock_repositories: {
type: "boolean"
},
repositories: {
required: true,
type: "string[]"
}
},
url: "/user/migrations"
},
startForOrg: {
method: "POST",
params: {
exclude_attachments: {
type: "boolean"
},
lock_repositories: {
type: "boolean"
},
org: {
required: true,
type: "string"
},
repositories: {
required: true,
type: "string[]"
}
},
url: "/orgs/:org/migrations"
},
startImport: {
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
tfvc_project: {
type: "string"
},
vcs: {
enum: ["subversion", "git", "mercurial", "tfvc"],
type: "string"
},
vcs_password: {
type: "string"
},
vcs_url: {
required: true,
type: "string"
},
vcs_username: {
type: "string"
}
},
url: "/repos/:owner/:repo/import"
},
unlockRepoForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "DELETE",
params: {
migration_id: {
required: true,
type: "integer"
},
repo_name: {
required: true,
type: "string"
}
},
url: "/user/migrations/:migration_id/repos/:repo_name/lock"
},
unlockRepoForOrg: {
headers: {
accept: "application/vnd.github.wyandotte-preview+json"
},
method: "DELETE",
params: {
migration_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
repo_name: {
required: true,
type: "string"
}
},
url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
},
updateImport: {
method: "PATCH",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
vcs_password: {
type: "string"
},
vcs_username: {
type: "string"
}
},
url: "/repos/:owner/:repo/import"
}
},
oauthAuthorizations: {
checkAuthorization: {
deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
method: "GET",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
createAuthorization: {
deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
method: "POST",
params: {
client_id: {
type: "string"
},
client_secret: {
type: "string"
},
fingerprint: {
type: "string"
},
note: {
required: true,
type: "string"
},
note_url: {
type: "string"
},
scopes: {
type: "string[]"
}
},
url: "/authorizations"
},
deleteAuthorization: {
deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
method: "DELETE",
params: {
authorization_id: {
required: true,
type: "integer"
}
},
url: "/authorizations/:authorization_id"
},
deleteGrant: {
deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
method: "DELETE",
params: {
grant_id: {
required: true,
type: "integer"
}
},
url: "/applications/grants/:grant_id"
},
getAuthorization: {
deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
method: "GET",
params: {
authorization_id: {
required: true,
type: "integer"
}
},
url: "/authorizations/:authorization_id"
},
getGrant: {
deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
method: "GET",
params: {
grant_id: {
required: true,
type: "integer"
}
},
url: "/applications/grants/:grant_id"
},
getOrCreateAuthorizationForApp: {
deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
method: "PUT",
params: {
client_id: {
required: true,
type: "string"
},
client_secret: {
required: true,
type: "string"
},
fingerprint: {
type: "string"
},
note: {
type: "string"
},
note_url: {
type: "string"
},
scopes: {
type: "string[]"
}
},
url: "/authorizations/clients/:client_id"
},
getOrCreateAuthorizationForAppAndFingerprint: {
deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
method: "PUT",
params: {
client_id: {
required: true,
type: "string"
},
client_secret: {
required: true,
type: "string"
},
fingerprint: {
required: true,
type: "string"
},
note: {
type: "string"
},
note_url: {
type: "string"
},
scopes: {
type: "string[]"
}
},
url: "/authorizations/clients/:client_id/:fingerprint"
},
getOrCreateAuthorizationForAppFingerprint: {
deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
method: "PUT",
params: {
client_id: {
required: true,
type: "string"
},
client_secret: {
required: true,
type: "string"
},
fingerprint: {
required: true,
type: "string"
},
note: {
type: "string"
},
note_url: {
type: "string"
},
scopes: {
type: "string[]"
}
},
url: "/authorizations/clients/:client_id/:fingerprint"
},
listAuthorizations: {
deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/authorizations"
},
listGrants: {
deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/applications/grants"
},
resetAuthorization: {
deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
method: "POST",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
revokeAuthorizationForApplication: {
deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
method: "DELETE",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/tokens/:access_token"
},
revokeGrantForApplication: {
deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
method: "DELETE",
params: {
access_token: {
required: true,
type: "string"
},
client_id: {
required: true,
type: "string"
}
},
url: "/applications/:client_id/grants/:access_token"
},
updateAuthorization: {
deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
method: "PATCH",
params: {
add_scopes: {
type: "string[]"
},
authorization_id: {
required: true,
type: "integer"
},
fingerprint: {
type: "string"
},
note: {
type: "string"
},
note_url: {
type: "string"
},
remove_scopes: {
type: "string[]"
},
scopes: {
type: "string[]"
}
},
url: "/authorizations/:authorization_id"
}
},
orgs: {
addOrUpdateMembership: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
role: {
enum: ["admin", "member"],
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/memberships/:username"
},
blockUser: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/blocks/:username"
},
checkBlockedUser: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/blocks/:username"
},
checkMembership: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/members/:username"
},
checkPublicMembership: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/public_members/:username"
},
concealMembership: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/public_members/:username"
},
convertMemberToOutsideCollaborator: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/outside_collaborators/:username"
},
createHook: {
method: "POST",
params: {
active: {
type: "boolean"
},
config: {
required: true,
type: "object"
},
"config.content_type": {
type: "string"
},
"config.insecure_ssl": {
type: "string"
},
"config.secret": {
type: "string"
},
"config.url": {
required: true,
type: "string"
},
events: {
type: "string[]"
},
name: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/hooks"
},
createInvitation: {
method: "POST",
params: {
email: {
type: "string"
},
invitee_id: {
type: "integer"
},
org: {
required: true,
type: "string"
},
role: {
enum: ["admin", "direct_member", "billing_manager"],
type: "string"
},
team_ids: {
type: "integer[]"
}
},
url: "/orgs/:org/invitations"
},
deleteHook: {
method: "DELETE",
params: {
hook_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/hooks/:hook_id"
},
get: {
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org"
},
getHook: {
method: "GET",
params: {
hook_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/hooks/:hook_id"
},
getMembership: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/memberships/:username"
},
getMembershipForAuthenticatedUser: {
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/user/memberships/orgs/:org"
},
list: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "integer"
}
},
url: "/organizations"
},
listBlockedUsers: {
method: "GET",
params: {
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/blocks"
},
listForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/orgs"
},
listForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/orgs"
},
listHooks: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/hooks"
},
listInstallations: {
headers: {
accept: "application/vnd.github.machine-man-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/installations"
},
listInvitationTeams: {
method: "GET",
params: {
invitation_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/invitations/:invitation_id/teams"
},
listMembers: {
method: "GET",
params: {
filter: {
enum: ["2fa_disabled", "all"],
type: "string"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
role: {
enum: ["all", "admin", "member"],
type: "string"
}
},
url: "/orgs/:org/members"
},
listMemberships: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
state: {
enum: ["active", "pending"],
type: "string"
}
},
url: "/user/memberships/orgs"
},
listOutsideCollaborators: {
method: "GET",
params: {
filter: {
enum: ["2fa_disabled", "all"],
type: "string"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/outside_collaborators"
},
listPendingInvitations: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/invitations"
},
listPublicMembers: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/public_members"
},
pingHook: {
method: "POST",
params: {
hook_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/hooks/:hook_id/pings"
},
publicizeMembership: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/public_members/:username"
},
removeMember: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/members/:username"
},
removeMembership: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/memberships/:username"
},
removeOutsideCollaborator: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/outside_collaborators/:username"
},
unblockUser: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/blocks/:username"
},
update: {
method: "PATCH",
params: {
billing_email: {
type: "string"
},
company: {
type: "string"
},
default_repository_permission: {
enum: ["read", "write", "admin", "none"],
type: "string"
},
description: {
type: "string"
},
email: {
type: "string"
},
has_organization_projects: {
type: "boolean"
},
has_repository_projects: {
type: "boolean"
},
location: {
type: "string"
},
members_allowed_repository_creation_type: {
enum: ["all", "private", "none"],
type: "string"
},
members_can_create_internal_repositories: {
type: "boolean"
},
members_can_create_private_repositories: {
type: "boolean"
},
members_can_create_public_repositories: {
type: "boolean"
},
members_can_create_repositories: {
type: "boolean"
},
name: {
type: "string"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org"
},
updateHook: {
method: "PATCH",
params: {
active: {
type: "boolean"
},
config: {
type: "object"
},
"config.content_type": {
type: "string"
},
"config.insecure_ssl": {
type: "string"
},
"config.secret": {
type: "string"
},
"config.url": {
required: true,
type: "string"
},
events: {
type: "string[]"
},
hook_id: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/hooks/:hook_id"
},
updateMembership: {
method: "PATCH",
params: {
org: {
required: true,
type: "string"
},
state: {
enum: ["active"],
required: true,
type: "string"
}
},
url: "/user/memberships/orgs/:org"
}
},
projects: {
addCollaborator: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PUT",
params: {
permission: {
enum: ["read", "write", "admin"],
type: "string"
},
project_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/projects/:project_id/collaborators/:username"
},
createCard: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
column_id: {
required: true,
type: "integer"
},
content_id: {
type: "integer"
},
content_type: {
type: "string"
},
note: {
type: "string"
}
},
url: "/projects/columns/:column_id/cards"
},
createColumn: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
name: {
required: true,
type: "string"
},
project_id: {
required: true,
type: "integer"
}
},
url: "/projects/:project_id/columns"
},
createForAuthenticatedUser: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
body: {
type: "string"
},
name: {
required: true,
type: "string"
}
},
url: "/user/projects"
},
createForOrg: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
body: {
type: "string"
},
name: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
}
},
url: "/orgs/:org/projects"
},
createForRepo: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
body: {
type: "string"
},
name: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/projects"
},
delete: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "DELETE",
params: {
project_id: {
required: true,
type: "integer"
}
},
url: "/projects/:project_id"
},
deleteCard: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "DELETE",
params: {
card_id: {
required: true,
type: "integer"
}
},
url: "/projects/columns/cards/:card_id"
},
deleteColumn: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "DELETE",
params: {
column_id: {
required: true,
type: "integer"
}
},
url: "/projects/columns/:column_id"
},
get: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
project_id: {
required: true,
type: "integer"
}
},
url: "/projects/:project_id"
},
getCard: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
card_id: {
required: true,
type: "integer"
}
},
url: "/projects/columns/cards/:card_id"
},
getColumn: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
column_id: {
required: true,
type: "integer"
}
},
url: "/projects/columns/:column_id"
},
listCards: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
archived_state: {
enum: ["all", "archived", "not_archived"],
type: "string"
},
column_id: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/projects/columns/:column_id/cards"
},
listCollaborators: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
affiliation: {
enum: ["outside", "direct", "all"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
project_id: {
required: true,
type: "integer"
}
},
url: "/projects/:project_id/collaborators"
},
listColumns: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
project_id: {
required: true,
type: "integer"
}
},
url: "/projects/:project_id/columns"
},
listForOrg: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/orgs/:org/projects"
},
listForRepo: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/repos/:owner/:repo/projects"
},
listForUser: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/projects"
},
moveCard: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
card_id: {
required: true,
type: "integer"
},
column_id: {
type: "integer"
},
position: {
required: true,
type: "string",
validation: "^(top|bottom|after:\\d+)$"
}
},
url: "/projects/columns/cards/:card_id/moves"
},
moveColumn: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "POST",
params: {
column_id: {
required: true,
type: "integer"
},
position: {
required: true,
type: "string",
validation: "^(first|last|after:\\d+)$"
}
},
url: "/projects/columns/:column_id/moves"
},
removeCollaborator: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "DELETE",
params: {
project_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/projects/:project_id/collaborators/:username"
},
reviewUserPermissionLevel: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
project_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/projects/:project_id/collaborators/:username/permission"
},
update: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PATCH",
params: {
body: {
type: "string"
},
name: {
type: "string"
},
organization_permission: {
type: "string"
},
private: {
type: "boolean"
},
project_id: {
required: true,
type: "integer"
},
state: {
enum: ["open", "closed"],
type: "string"
}
},
url: "/projects/:project_id"
},
updateCard: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PATCH",
params: {
archived: {
type: "boolean"
},
card_id: {
required: true,
type: "integer"
},
note: {
type: "string"
}
},
url: "/projects/columns/cards/:card_id"
},
updateColumn: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PATCH",
params: {
column_id: {
required: true,
type: "integer"
},
name: {
required: true,
type: "string"
}
},
url: "/projects/columns/:column_id"
}
},
pulls: {
checkIfMerged: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/merge"
},
create: {
method: "POST",
params: {
base: {
required: true,
type: "string"
},
body: {
type: "string"
},
draft: {
type: "boolean"
},
head: {
required: true,
type: "string"
},
maintainer_can_modify: {
type: "boolean"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
title: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls"
},
createComment: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
commit_id: {
required: true,
type: "string"
},
in_reply_to: {
deprecated: true,
description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
type: "integer"
},
line: {
type: "integer"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
position: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
side: {
enum: ["LEFT", "RIGHT"],
type: "string"
},
start_line: {
type: "integer"
},
start_side: {
enum: ["LEFT", "RIGHT", "side"],
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/comments"
},
createCommentReply: {
deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
method: "POST",
params: {
body: {
required: true,
type: "string"
},
commit_id: {
required: true,
type: "string"
},
in_reply_to: {
deprecated: true,
description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
type: "integer"
},
line: {
type: "integer"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
position: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
side: {
enum: ["LEFT", "RIGHT"],
type: "string"
},
start_line: {
type: "integer"
},
start_side: {
enum: ["LEFT", "RIGHT", "side"],
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/comments"
},
createFromIssue: {
deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
method: "POST",
params: {
base: {
required: true,
type: "string"
},
draft: {
type: "boolean"
},
head: {
required: true,
type: "string"
},
issue: {
required: true,
type: "integer"
},
maintainer_can_modify: {
type: "boolean"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls"
},
createReview: {
method: "POST",
params: {
body: {
type: "string"
},
comments: {
type: "object[]"
},
"comments[].body": {
required: true,
type: "string"
},
"comments[].path": {
required: true,
type: "string"
},
"comments[].position": {
required: true,
type: "integer"
},
commit_id: {
type: "string"
},
event: {
enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
},
createReviewCommentReply: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
},
createReviewRequest: {
method: "POST",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
reviewers: {
type: "string[]"
},
team_reviewers: {
type: "string[]"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
},
deleteComment: {
method: "DELETE",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments/:comment_id"
},
deletePendingReview: {
method: "DELETE",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
},
deleteReviewRequest: {
method: "DELETE",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
reviewers: {
type: "string[]"
},
team_reviewers: {
type: "string[]"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
},
dismissReview: {
method: "PUT",
params: {
message: {
required: true,
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
},
get: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number"
},
getComment: {
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments/:comment_id"
},
getCommentsForReview: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
},
getReview: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
},
list: {
method: "GET",
params: {
base: {
type: "string"
},
direction: {
enum: ["asc", "desc"],
type: "string"
},
head: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
sort: {
enum: ["created", "updated", "popularity", "long-running"],
type: "string"
},
state: {
enum: ["open", "closed", "all"],
type: "string"
}
},
url: "/repos/:owner/:repo/pulls"
},
listComments: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/comments"
},
listCommentsForRepo: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
since: {
type: "string"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments"
},
listCommits: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/commits"
},
listFiles: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/files"
},
listReviewRequests: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
},
listReviews: {
method: "GET",
params: {
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
},
merge: {
method: "PUT",
params: {
commit_message: {
type: "string"
},
commit_title: {
type: "string"
},
merge_method: {
enum: ["merge", "squash", "rebase"],
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/merge"
},
submitReview: {
method: "POST",
params: {
body: {
type: "string"
},
event: {
enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
required: true,
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
},
update: {
method: "PATCH",
params: {
base: {
type: "string"
},
body: {
type: "string"
},
maintainer_can_modify: {
type: "boolean"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["open", "closed"],
type: "string"
},
title: {
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number"
},
updateBranch: {
headers: {
accept: "application/vnd.github.lydian-preview+json"
},
method: "PUT",
params: {
expected_head_sha: {
type: "string"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
},
updateComment: {
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments/:comment_id"
},
updateReview: {
method: "PUT",
params: {
body: {
required: true,
type: "string"
},
number: {
alias: "pull_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
pull_number: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
review_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
}
},
rateLimit: {
get: {
method: "GET",
params: {},
url: "/rate_limit"
}
},
reactions: {
createForCommitComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments/:comment_id/reactions"
},
createForIssue: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/reactions"
},
createForIssueComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
},
createForPullRequestReviewComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
},
createForTeamDiscussion: {
deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/reactions"
},
createForTeamDiscussionComment: {
deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
},
createForTeamDiscussionCommentInOrg: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
},
createForTeamDiscussionCommentLegacy: {
deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
},
createForTeamDiscussionInOrg: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
},
createForTeamDiscussionLegacy: {
deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "POST",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/reactions"
},
delete: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "DELETE",
params: {
reaction_id: {
required: true,
type: "integer"
}
},
url: "/reactions/:reaction_id"
},
listForCommitComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments/:comment_id/reactions"
},
listForIssue: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
issue_number: {
required: true,
type: "integer"
},
number: {
alias: "issue_number",
deprecated: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/:issue_number/reactions"
},
listForIssueComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
},
listForPullRequestReviewComment: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
},
listForTeamDiscussion: {
deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/reactions"
},
listForTeamDiscussionComment: {
deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
},
listForTeamDiscussionCommentInOrg: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
},
listForTeamDiscussionCommentLegacy: {
deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
},
listForTeamDiscussionInOrg: {
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
},
listForTeamDiscussionLegacy: {
deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
headers: {
accept: "application/vnd.github.squirrel-girl-preview+json"
},
method: "GET",
params: {
content: {
enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/reactions"
}
},
repos: {
acceptInvitation: {
method: "PATCH",
params: {
invitation_id: {
required: true,
type: "integer"
}
},
url: "/user/repository_invitations/:invitation_id"
},
addCollaborator: {
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
repo: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/collaborators/:username"
},
addDeployKey: {
method: "POST",
params: {
key: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
read_only: {
type: "boolean"
},
repo: {
required: true,
type: "string"
},
title: {
type: "string"
}
},
url: "/repos/:owner/:repo/keys"
},
addProtectedBranchAdminEnforcement: {
method: "POST",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
},
addProtectedBranchAppRestrictions: {
method: "POST",
params: {
apps: {
mapTo: "data",
required: true,
type: "string[]"
},
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
addProtectedBranchRequiredSignatures: {
headers: {
accept: "application/vnd.github.zzzax-preview+json"
},
method: "POST",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
},
addProtectedBranchRequiredStatusChecksContexts: {
method: "POST",
params: {
branch: {
required: true,
type: "string"
},
contexts: {
mapTo: "data",
required: true,
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
},
addProtectedBranchTeamRestrictions: {
method: "POST",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
teams: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
addProtectedBranchUserRestrictions: {
method: "POST",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
users: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
checkCollaborator: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/collaborators/:username"
},
checkVulnerabilityAlerts: {
headers: {
accept: "application/vnd.github.dorian-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/vulnerability-alerts"
},
compareCommits: {
method: "GET",
params: {
base: {
required: true,
type: "string"
},
head: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/compare/:base...:head"
},
createCommitComment: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
commit_sha: {
required: true,
type: "string"
},
line: {
type: "integer"
},
owner: {
required: true,
type: "string"
},
path: {
type: "string"
},
position: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
sha: {
alias: "commit_sha",
deprecated: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:commit_sha/comments"
},
createDeployment: {
method: "POST",
params: {
auto_merge: {
type: "boolean"
},
description: {
type: "string"
},
environment: {
type: "string"
},
owner: {
required: true,
type: "string"
},
payload: {
type: "string"
},
production_environment: {
type: "boolean"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
required_contexts: {
type: "string[]"
},
task: {
type: "string"
},
transient_environment: {
type: "boolean"
}
},
url: "/repos/:owner/:repo/deployments"
},
createDeploymentStatus: {
method: "POST",
params: {
auto_inactive: {
type: "boolean"
},
deployment_id: {
required: true,
type: "integer"
},
description: {
type: "string"
},
environment: {
enum: ["production", "staging", "qa"],
type: "string"
},
environment_url: {
type: "string"
},
log_url: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
state: {
enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
required: true,
type: "string"
},
target_url: {
type: "string"
}
},
url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
},
createDispatchEvent: {
method: "POST",
params: {
client_payload: {
type: "object"
},
event_type: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/dispatches"
},
createFile: {
deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
method: "PUT",
params: {
author: {
type: "object"
},
"author.email": {
required: true,
type: "string"
},
"author.name": {
required: true,
type: "string"
},
branch: {
type: "string"
},
committer: {
type: "object"
},
"committer.email": {
required: true,
type: "string"
},
"committer.name": {
required: true,
type: "string"
},
content: {
required: true,
type: "string"
},
message: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
}
},
url: "/repos/:owner/:repo/contents/:path"
},
createForAuthenticatedUser: {
method: "POST",
params: {
allow_merge_commit: {
type: "boolean"
},
allow_rebase_merge: {
type: "boolean"
},
allow_squash_merge: {
type: "boolean"
},
auto_init: {
type: "boolean"
},
delete_branch_on_merge: {
type: "boolean"
},
description: {
type: "string"
},
gitignore_template: {
type: "string"
},
has_issues: {
type: "boolean"
},
has_projects: {
type: "boolean"
},
has_wiki: {
type: "boolean"
},
homepage: {
type: "string"
},
is_template: {
type: "boolean"
},
license_template: {
type: "string"
},
name: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
team_id: {
type: "integer"
},
visibility: {
enum: ["public", "private", "visibility", "internal"],
type: "string"
}
},
url: "/user/repos"
},
createFork: {
method: "POST",
params: {
organization: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/forks"
},
createHook: {
method: "POST",
params: {
active: {
type: "boolean"
},
config: {
required: true,
type: "object"
},
"config.content_type": {
type: "string"
},
"config.insecure_ssl": {
type: "string"
},
"config.secret": {
type: "string"
},
"config.url": {
required: true,
type: "string"
},
events: {
type: "string[]"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks"
},
createInOrg: {
method: "POST",
params: {
allow_merge_commit: {
type: "boolean"
},
allow_rebase_merge: {
type: "boolean"
},
allow_squash_merge: {
type: "boolean"
},
auto_init: {
type: "boolean"
},
delete_branch_on_merge: {
type: "boolean"
},
description: {
type: "string"
},
gitignore_template: {
type: "string"
},
has_issues: {
type: "boolean"
},
has_projects: {
type: "boolean"
},
has_wiki: {
type: "boolean"
},
homepage: {
type: "string"
},
is_template: {
type: "boolean"
},
license_template: {
type: "string"
},
name: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
team_id: {
type: "integer"
},
visibility: {
enum: ["public", "private", "visibility", "internal"],
type: "string"
}
},
url: "/orgs/:org/repos"
},
createOrUpdateFile: {
method: "PUT",
params: {
author: {
type: "object"
},
"author.email": {
required: true,
type: "string"
},
"author.name": {
required: true,
type: "string"
},
branch: {
type: "string"
},
committer: {
type: "object"
},
"committer.email": {
required: true,
type: "string"
},
"committer.name": {
required: true,
type: "string"
},
content: {
required: true,
type: "string"
},
message: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
}
},
url: "/repos/:owner/:repo/contents/:path"
},
createRelease: {
method: "POST",
params: {
body: {
type: "string"
},
draft: {
type: "boolean"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
prerelease: {
type: "boolean"
},
repo: {
required: true,
type: "string"
},
tag_name: {
required: true,
type: "string"
},
target_commitish: {
type: "string"
}
},
url: "/repos/:owner/:repo/releases"
},
createStatus: {
method: "POST",
params: {
context: {
type: "string"
},
description: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
required: true,
type: "string"
},
state: {
enum: ["error", "failure", "pending", "success"],
required: true,
type: "string"
},
target_url: {
type: "string"
}
},
url: "/repos/:owner/:repo/statuses/:sha"
},
createUsingTemplate: {
headers: {
accept: "application/vnd.github.baptiste-preview+json"
},
method: "POST",
params: {
description: {
type: "string"
},
name: {
required: true,
type: "string"
},
owner: {
type: "string"
},
private: {
type: "boolean"
},
template_owner: {
required: true,
type: "string"
},
template_repo: {
required: true,
type: "string"
}
},
url: "/repos/:template_owner/:template_repo/generate"
},
declineInvitation: {
method: "DELETE",
params: {
invitation_id: {
required: true,
type: "integer"
}
},
url: "/user/repository_invitations/:invitation_id"
},
delete: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo"
},
deleteCommitComment: {
method: "DELETE",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments/:comment_id"
},
deleteDownload: {
method: "DELETE",
params: {
download_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/downloads/:download_id"
},
deleteFile: {
method: "DELETE",
params: {
author: {
type: "object"
},
"author.email": {
type: "string"
},
"author.name": {
type: "string"
},
branch: {
type: "string"
},
committer: {
type: "object"
},
"committer.email": {
type: "string"
},
"committer.name": {
type: "string"
},
message: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/contents/:path"
},
deleteHook: {
method: "DELETE",
params: {
hook_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks/:hook_id"
},
deleteInvitation: {
method: "DELETE",
params: {
invitation_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/invitations/:invitation_id"
},
deleteRelease: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
release_id: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/:release_id"
},
deleteReleaseAsset: {
method: "DELETE",
params: {
asset_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/assets/:asset_id"
},
disableAutomatedSecurityFixes: {
headers: {
accept: "application/vnd.github.london-preview+json"
},
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/automated-security-fixes"
},
disablePagesSite: {
headers: {
accept: "application/vnd.github.switcheroo-preview+json"
},
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages"
},
disableVulnerabilityAlerts: {
headers: {
accept: "application/vnd.github.dorian-preview+json"
},
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/vulnerability-alerts"
},
enableAutomatedSecurityFixes: {
headers: {
accept: "application/vnd.github.london-preview+json"
},
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/automated-security-fixes"
},
enablePagesSite: {
headers: {
accept: "application/vnd.github.switcheroo-preview+json"
},
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
source: {
type: "object"
},
"source.branch": {
enum: ["master", "gh-pages"],
type: "string"
},
"source.path": {
type: "string"
}
},
url: "/repos/:owner/:repo/pages"
},
enableVulnerabilityAlerts: {
headers: {
accept: "application/vnd.github.dorian-preview+json"
},
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/vulnerability-alerts"
},
get: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo"
},
getAppsWithAccessToProtectedBranch: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
getArchiveLink: {
method: "GET",
params: {
archive_format: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/:archive_format/:ref"
},
getBranch: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch"
},
getBranchProtection: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection"
},
getClones: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
per: {
enum: ["day", "week"],
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/traffic/clones"
},
getCodeFrequencyStats: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stats/code_frequency"
},
getCollaboratorPermissionLevel: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/collaborators/:username/permission"
},
getCombinedStatusForRef: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref/status"
},
getCommit: {
method: "GET",
params: {
commit_sha: {
alias: "ref",
deprecated: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
alias: "ref",
deprecated: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref"
},
getCommitActivityStats: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stats/commit_activity"
},
getCommitComment: {
method: "GET",
params: {
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments/:comment_id"
},
getCommitRefSha: {
deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
headers: {
accept: "application/vnd.github.v3.sha"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref"
},
getContents: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
ref: {
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/contents/:path"
},
getContributorsStats: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stats/contributors"
},
getDeployKey: {
method: "GET",
params: {
key_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/keys/:key_id"
},
getDeployment: {
method: "GET",
params: {
deployment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/deployments/:deployment_id"
},
getDeploymentStatus: {
method: "GET",
params: {
deployment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
status_id: {
required: true,
type: "integer"
}
},
url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
},
getDownload: {
method: "GET",
params: {
download_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/downloads/:download_id"
},
getHook: {
method: "GET",
params: {
hook_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks/:hook_id"
},
getLatestPagesBuild: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages/builds/latest"
},
getLatestRelease: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/latest"
},
getPages: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages"
},
getPagesBuild: {
method: "GET",
params: {
build_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages/builds/:build_id"
},
getParticipationStats: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stats/participation"
},
getProtectedBranchAdminEnforcement: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
},
getProtectedBranchPullRequestReviewEnforcement: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
},
getProtectedBranchRequiredSignatures: {
headers: {
accept: "application/vnd.github.zzzax-preview+json"
},
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
},
getProtectedBranchRequiredStatusChecks: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
},
getProtectedBranchRestrictions: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
},
getPunchCardStats: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/stats/punch_card"
},
getReadme: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
ref: {
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/readme"
},
getRelease: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
release_id: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/:release_id"
},
getReleaseAsset: {
method: "GET",
params: {
asset_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/assets/:asset_id"
},
getReleaseByTag: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
tag: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/tags/:tag"
},
getTeamsWithAccessToProtectedBranch: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
getTopPaths: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/traffic/popular/paths"
},
getTopReferrers: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/traffic/popular/referrers"
},
getUsersWithAccessToProtectedBranch: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
getViews: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
per: {
enum: ["day", "week"],
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/traffic/views"
},
list: {
method: "GET",
params: {
affiliation: {
type: "string"
},
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
sort: {
enum: ["created", "updated", "pushed", "full_name"],
type: "string"
},
type: {
enum: ["all", "owner", "public", "private", "member"],
type: "string"
},
visibility: {
enum: ["all", "public", "private"],
type: "string"
}
},
url: "/user/repos"
},
listAppsWithAccessToProtectedBranch: {
deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
listAssetsForRelease: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
release_id: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/:release_id/assets"
},
listBranches: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
protected: {
type: "boolean"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches"
},
listBranchesForHeadCommit: {
headers: {
accept: "application/vnd.github.groot-preview+json"
},
method: "GET",
params: {
commit_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
},
listCollaborators: {
method: "GET",
params: {
affiliation: {
enum: ["outside", "direct", "all"],
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/collaborators"
},
listCommentsForCommit: {
method: "GET",
params: {
commit_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
alias: "commit_sha",
deprecated: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:commit_sha/comments"
},
listCommitComments: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments"
},
listCommits: {
method: "GET",
params: {
author: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
path: {
type: "string"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
},
since: {
type: "string"
},
until: {
type: "string"
}
},
url: "/repos/:owner/:repo/commits"
},
listContributors: {
method: "GET",
params: {
anon: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/contributors"
},
listDeployKeys: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/keys"
},
listDeploymentStatuses: {
method: "GET",
params: {
deployment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
},
listDeployments: {
method: "GET",
params: {
environment: {
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
},
task: {
type: "string"
}
},
url: "/repos/:owner/:repo/deployments"
},
listDownloads: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/downloads"
},
listForOrg: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
sort: {
enum: ["created", "updated", "pushed", "full_name"],
type: "string"
},
type: {
enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
type: "string"
}
},
url: "/orgs/:org/repos"
},
listForUser: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
sort: {
enum: ["created", "updated", "pushed", "full_name"],
type: "string"
},
type: {
enum: ["all", "owner", "member"],
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/repos"
},
listForks: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
},
sort: {
enum: ["newest", "oldest", "stargazers"],
type: "string"
}
},
url: "/repos/:owner/:repo/forks"
},
listHooks: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks"
},
listInvitations: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/invitations"
},
listInvitationsForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/repository_invitations"
},
listLanguages: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/languages"
},
listPagesBuilds: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages/builds"
},
listProtectedBranchRequiredStatusChecksContexts: {
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
},
listProtectedBranchTeamRestrictions: {
deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
listProtectedBranchUserRestrictions: {
deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
listPublic: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "integer"
}
},
url: "/repositories"
},
listPullRequestsAssociatedWithCommit: {
headers: {
accept: "application/vnd.github.groot-preview+json"
},
method: "GET",
params: {
commit_sha: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
},
listReleases: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases"
},
listStatusesForRef: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
ref: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/commits/:ref/statuses"
},
listTags: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/tags"
},
listTeams: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/teams"
},
listTeamsWithAccessToProtectedBranch: {
deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
listTopics: {
headers: {
accept: "application/vnd.github.mercy-preview+json"
},
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/topics"
},
listUsersWithAccessToProtectedBranch: {
deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
method: "GET",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
merge: {
method: "POST",
params: {
base: {
required: true,
type: "string"
},
commit_message: {
type: "string"
},
head: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/merges"
},
pingHook: {
method: "POST",
params: {
hook_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks/:hook_id/pings"
},
removeBranchProtection: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection"
},
removeCollaborator: {
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/collaborators/:username"
},
removeDeployKey: {
method: "DELETE",
params: {
key_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/keys/:key_id"
},
removeProtectedBranchAdminEnforcement: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
},
removeProtectedBranchAppRestrictions: {
method: "DELETE",
params: {
apps: {
mapTo: "data",
required: true,
type: "string[]"
},
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
removeProtectedBranchPullRequestReviewEnforcement: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
},
removeProtectedBranchRequiredSignatures: {
headers: {
accept: "application/vnd.github.zzzax-preview+json"
},
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
},
removeProtectedBranchRequiredStatusChecks: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
},
removeProtectedBranchRequiredStatusChecksContexts: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
contexts: {
mapTo: "data",
required: true,
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
},
removeProtectedBranchRestrictions: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
},
removeProtectedBranchTeamRestrictions: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
teams: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
removeProtectedBranchUserRestrictions: {
method: "DELETE",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
users: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
replaceProtectedBranchAppRestrictions: {
method: "PUT",
params: {
apps: {
mapTo: "data",
required: true,
type: "string[]"
},
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
replaceProtectedBranchRequiredStatusChecksContexts: {
method: "PUT",
params: {
branch: {
required: true,
type: "string"
},
contexts: {
mapTo: "data",
required: true,
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
},
replaceProtectedBranchTeamRestrictions: {
method: "PUT",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
teams: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
},
replaceProtectedBranchUserRestrictions: {
method: "PUT",
params: {
branch: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
users: {
mapTo: "data",
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
replaceTopics: {
headers: {
accept: "application/vnd.github.mercy-preview+json"
},
method: "PUT",
params: {
names: {
required: true,
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/topics"
},
requestPageBuild: {
method: "POST",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/pages/builds"
},
retrieveCommunityProfileMetrics: {
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/community/profile"
},
testPushHook: {
method: "POST",
params: {
hook_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks/:hook_id/tests"
},
transfer: {
method: "POST",
params: {
new_owner: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_ids: {
type: "integer[]"
}
},
url: "/repos/:owner/:repo/transfer"
},
update: {
method: "PATCH",
params: {
allow_merge_commit: {
type: "boolean"
},
allow_rebase_merge: {
type: "boolean"
},
allow_squash_merge: {
type: "boolean"
},
archived: {
type: "boolean"
},
default_branch: {
type: "string"
},
delete_branch_on_merge: {
type: "boolean"
},
description: {
type: "string"
},
has_issues: {
type: "boolean"
},
has_projects: {
type: "boolean"
},
has_wiki: {
type: "boolean"
},
homepage: {
type: "string"
},
is_template: {
type: "boolean"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
repo: {
required: true,
type: "string"
},
visibility: {
enum: ["public", "private", "visibility", "internal"],
type: "string"
}
},
url: "/repos/:owner/:repo"
},
updateBranchProtection: {
method: "PUT",
params: {
allow_deletions: {
type: "boolean"
},
allow_force_pushes: {
allowNull: true,
type: "boolean"
},
branch: {
required: true,
type: "string"
},
enforce_admins: {
allowNull: true,
required: true,
type: "boolean"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
required_linear_history: {
type: "boolean"
},
required_pull_request_reviews: {
allowNull: true,
required: true,
type: "object"
},
"required_pull_request_reviews.dismiss_stale_reviews": {
type: "boolean"
},
"required_pull_request_reviews.dismissal_restrictions": {
type: "object"
},
"required_pull_request_reviews.dismissal_restrictions.teams": {
type: "string[]"
},
"required_pull_request_reviews.dismissal_restrictions.users": {
type: "string[]"
},
"required_pull_request_reviews.require_code_owner_reviews": {
type: "boolean"
},
"required_pull_request_reviews.required_approving_review_count": {
type: "integer"
},
required_status_checks: {
allowNull: true,
required: true,
type: "object"
},
"required_status_checks.contexts": {
required: true,
type: "string[]"
},
"required_status_checks.strict": {
required: true,
type: "boolean"
},
restrictions: {
allowNull: true,
required: true,
type: "object"
},
"restrictions.apps": {
type: "string[]"
},
"restrictions.teams": {
required: true,
type: "string[]"
},
"restrictions.users": {
required: true,
type: "string[]"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection"
},
updateCommitComment: {
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/comments/:comment_id"
},
updateFile: {
deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
method: "PUT",
params: {
author: {
type: "object"
},
"author.email": {
required: true,
type: "string"
},
"author.name": {
required: true,
type: "string"
},
branch: {
type: "string"
},
committer: {
type: "object"
},
"committer.email": {
required: true,
type: "string"
},
"committer.name": {
required: true,
type: "string"
},
content: {
required: true,
type: "string"
},
message: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
path: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
sha: {
type: "string"
}
},
url: "/repos/:owner/:repo/contents/:path"
},
updateHook: {
method: "PATCH",
params: {
active: {
type: "boolean"
},
add_events: {
type: "string[]"
},
config: {
type: "object"
},
"config.content_type": {
type: "string"
},
"config.insecure_ssl": {
type: "string"
},
"config.secret": {
type: "string"
},
"config.url": {
required: true,
type: "string"
},
events: {
type: "string[]"
},
hook_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
remove_events: {
type: "string[]"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/hooks/:hook_id"
},
updateInformationAboutPagesSite: {
method: "PUT",
params: {
cname: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
source: {
enum: ['"gh-pages"', '"master"', '"master /docs"'],
type: "string"
}
},
url: "/repos/:owner/:repo/pages"
},
updateInvitation: {
method: "PATCH",
params: {
invitation_id: {
required: true,
type: "integer"
},
owner: {
required: true,
type: "string"
},
permissions: {
enum: ["read", "write", "admin"],
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/invitations/:invitation_id"
},
updateProtectedBranchPullRequestReviewEnforcement: {
method: "PATCH",
params: {
branch: {
required: true,
type: "string"
},
dismiss_stale_reviews: {
type: "boolean"
},
dismissal_restrictions: {
type: "object"
},
"dismissal_restrictions.teams": {
type: "string[]"
},
"dismissal_restrictions.users": {
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
require_code_owner_reviews: {
type: "boolean"
},
required_approving_review_count: {
type: "integer"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
},
updateProtectedBranchRequiredStatusChecks: {
method: "PATCH",
params: {
branch: {
required: true,
type: "string"
},
contexts: {
type: "string[]"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
strict: {
type: "boolean"
}
},
url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
},
updateRelease: {
method: "PATCH",
params: {
body: {
type: "string"
},
draft: {
type: "boolean"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
prerelease: {
type: "boolean"
},
release_id: {
required: true,
type: "integer"
},
repo: {
required: true,
type: "string"
},
tag_name: {
type: "string"
},
target_commitish: {
type: "string"
}
},
url: "/repos/:owner/:repo/releases/:release_id"
},
updateReleaseAsset: {
method: "PATCH",
params: {
asset_id: {
required: true,
type: "integer"
},
label: {
type: "string"
},
name: {
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
}
},
url: "/repos/:owner/:repo/releases/assets/:asset_id"
},
uploadReleaseAsset: {
method: "POST",
params: {
data: {
mapTo: "data",
required: true,
type: "string | object"
},
file: {
alias: "data",
deprecated: true,
type: "string | object"
},
headers: {
required: true,
type: "object"
},
"headers.content-length": {
required: true,
type: "integer"
},
"headers.content-type": {
required: true,
type: "string"
},
label: {
type: "string"
},
name: {
required: true,
type: "string"
},
url: {
required: true,
type: "string"
}
},
url: ":url"
}
},
search: {
code: {
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["indexed"],
type: "string"
}
},
url: "/search/code"
},
commits: {
headers: {
accept: "application/vnd.github.cloak-preview+json"
},
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["author-date", "committer-date"],
type: "string"
}
},
url: "/search/commits"
},
issues: {
deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
type: "string"
}
},
url: "/search/issues"
},
issuesAndPullRequests: {
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
type: "string"
}
},
url: "/search/issues"
},
labels: {
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
q: {
required: true,
type: "string"
},
repository_id: {
required: true,
type: "integer"
},
sort: {
enum: ["created", "updated"],
type: "string"
}
},
url: "/search/labels"
},
repos: {
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["stars", "forks", "help-wanted-issues", "updated"],
type: "string"
}
},
url: "/search/repositories"
},
topics: {
method: "GET",
params: {
q: {
required: true,
type: "string"
}
},
url: "/search/topics"
},
users: {
method: "GET",
params: {
order: {
enum: ["desc", "asc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
q: {
required: true,
type: "string"
},
sort: {
enum: ["followers", "repositories", "joined"],
type: "string"
}
},
url: "/search/users"
}
},
teams: {
addMember: {
deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
method: "PUT",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
addMemberLegacy: {
deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
method: "PUT",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
addOrUpdateMembership: {
deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
method: "PUT",
params: {
role: {
enum: ["member", "maintainer"],
type: "string"
},
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
addOrUpdateMembershipInOrg: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
role: {
enum: ["member", "maintainer"],
type: "string"
},
team_slug: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/memberships/:username"
},
addOrUpdateMembershipLegacy: {
deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
method: "PUT",
params: {
role: {
enum: ["member", "maintainer"],
type: "string"
},
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
addOrUpdateProject: {
deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PUT",
params: {
permission: {
enum: ["read", "write", "admin"],
type: "string"
},
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
addOrUpdateProjectInOrg: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
permission: {
enum: ["read", "write", "admin"],
type: "string"
},
project_id: {
required: true,
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/projects/:project_id"
},
addOrUpdateProjectLegacy: {
deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "PUT",
params: {
permission: {
enum: ["read", "write", "admin"],
type: "string"
},
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
addOrUpdateRepo: {
deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
addOrUpdateRepoInOrg: {
method: "PUT",
params: {
org: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
repo: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
},
addOrUpdateRepoLegacy: {
deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
method: "PUT",
params: {
owner: {
required: true,
type: "string"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
checkManagesRepo: {
deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
checkManagesRepoInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
},
checkManagesRepoLegacy: {
deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
method: "GET",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
create: {
method: "POST",
params: {
description: {
type: "string"
},
maintainers: {
type: "string[]"
},
name: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
},
parent_team_id: {
type: "integer"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
privacy: {
enum: ["secret", "closed"],
type: "string"
},
repo_names: {
type: "string[]"
}
},
url: "/orgs/:org/teams"
},
createDiscussion: {
deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
method: "POST",
params: {
body: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
team_id: {
required: true,
type: "integer"
},
title: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/discussions"
},
createDiscussionComment: {
deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
method: "POST",
params: {
body: {
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments"
},
createDiscussionCommentInOrg: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
},
createDiscussionCommentLegacy: {
deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
method: "POST",
params: {
body: {
required: true,
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments"
},
createDiscussionInOrg: {
method: "POST",
params: {
body: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
team_slug: {
required: true,
type: "string"
},
title: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions"
},
createDiscussionLegacy: {
deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
method: "POST",
params: {
body: {
required: true,
type: "string"
},
private: {
type: "boolean"
},
team_id: {
required: true,
type: "integer"
},
title: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/discussions"
},
delete: {
deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
},
deleteDiscussion: {
deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
method: "DELETE",
params: {
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
deleteDiscussionComment: {
deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
method: "DELETE",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
deleteDiscussionCommentInOrg: {
method: "DELETE",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
},
deleteDiscussionCommentLegacy: {
deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
method: "DELETE",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
deleteDiscussionInOrg: {
method: "DELETE",
params: {
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
},
deleteDiscussionLegacy: {
deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
method: "DELETE",
params: {
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
deleteInOrg: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug"
},
deleteLegacy: {
deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
},
get: {
deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
},
getByName: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug"
},
getDiscussion: {
deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
method: "GET",
params: {
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
getDiscussionComment: {
deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
getDiscussionCommentInOrg: {
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
},
getDiscussionCommentLegacy: {
deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
method: "GET",
params: {
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
getDiscussionInOrg: {
method: "GET",
params: {
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
},
getDiscussionLegacy: {
deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
method: "GET",
params: {
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
getLegacy: {
deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
},
getMember: {
deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
getMemberLegacy: {
deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
getMembership: {
deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
getMembershipInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/memberships/:username"
},
getMembershipLegacy: {
deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
method: "GET",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
list: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/orgs/:org/teams"
},
listChild: {
deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/teams"
},
listChildInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/teams"
},
listChildLegacy: {
deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/teams"
},
listDiscussionComments: {
deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments"
},
listDiscussionCommentsInOrg: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
},
listDiscussionCommentsLegacy: {
deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments"
},
listDiscussions: {
deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions"
},
listDiscussionsInOrg: {
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions"
},
listDiscussionsLegacy: {
deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
method: "GET",
params: {
direction: {
enum: ["asc", "desc"],
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions"
},
listForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/teams"
},
listMembers: {
deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
role: {
enum: ["member", "maintainer", "all"],
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/members"
},
listMembersInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
role: {
enum: ["member", "maintainer", "all"],
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/members"
},
listMembersLegacy: {
deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
role: {
enum: ["member", "maintainer", "all"],
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/members"
},
listPendingInvitations: {
deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/invitations"
},
listPendingInvitationsInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/invitations"
},
listPendingInvitationsLegacy: {
deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/invitations"
},
listProjects: {
deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects"
},
listProjectsInOrg: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/projects"
},
listProjectsLegacy: {
deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects"
},
listRepos: {
deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos"
},
listReposInOrg: {
method: "GET",
params: {
org: {
required: true,
type: "string"
},
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/repos"
},
listReposLegacy: {
deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos"
},
removeMember: {
deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
removeMemberLegacy: {
deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/members/:username"
},
removeMembership: {
deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
removeMembershipInOrg: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/memberships/:username"
},
removeMembershipLegacy: {
deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
method: "DELETE",
params: {
team_id: {
required: true,
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/teams/:team_id/memberships/:username"
},
removeProject: {
deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
method: "DELETE",
params: {
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
removeProjectInOrg: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
project_id: {
required: true,
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/projects/:project_id"
},
removeProjectLegacy: {
deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
method: "DELETE",
params: {
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
removeRepo: {
deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
removeRepoInOrg: {
method: "DELETE",
params: {
org: {
required: true,
type: "string"
},
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
},
removeRepoLegacy: {
deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
method: "DELETE",
params: {
owner: {
required: true,
type: "string"
},
repo: {
required: true,
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/repos/:owner/:repo"
},
reviewProject: {
deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
reviewProjectInOrg: {
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
org: {
required: true,
type: "string"
},
project_id: {
required: true,
type: "integer"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/projects/:project_id"
},
reviewProjectLegacy: {
deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
headers: {
accept: "application/vnd.github.inertia-preview+json"
},
method: "GET",
params: {
project_id: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/projects/:project_id"
},
update: {
deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
method: "PATCH",
params: {
description: {
type: "string"
},
name: {
required: true,
type: "string"
},
parent_team_id: {
type: "integer"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
privacy: {
enum: ["secret", "closed"],
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
},
updateDiscussion: {
deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
method: "PATCH",
params: {
body: {
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
},
title: {
type: "string"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
updateDiscussionComment: {
deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
updateDiscussionCommentInOrg: {
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
},
updateDiscussionCommentLegacy: {
deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
method: "PATCH",
params: {
body: {
required: true,
type: "string"
},
comment_number: {
required: true,
type: "integer"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
},
updateDiscussionInOrg: {
method: "PATCH",
params: {
body: {
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
org: {
required: true,
type: "string"
},
team_slug: {
required: true,
type: "string"
},
title: {
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
},
updateDiscussionLegacy: {
deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
method: "PATCH",
params: {
body: {
type: "string"
},
discussion_number: {
required: true,
type: "integer"
},
team_id: {
required: true,
type: "integer"
},
title: {
type: "string"
}
},
url: "/teams/:team_id/discussions/:discussion_number"
},
updateInOrg: {
method: "PATCH",
params: {
description: {
type: "string"
},
name: {
required: true,
type: "string"
},
org: {
required: true,
type: "string"
},
parent_team_id: {
type: "integer"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
privacy: {
enum: ["secret", "closed"],
type: "string"
},
team_slug: {
required: true,
type: "string"
}
},
url: "/orgs/:org/teams/:team_slug"
},
updateLegacy: {
deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
method: "PATCH",
params: {
description: {
type: "string"
},
name: {
required: true,
type: "string"
},
parent_team_id: {
type: "integer"
},
permission: {
enum: ["pull", "push", "admin"],
type: "string"
},
privacy: {
enum: ["secret", "closed"],
type: "string"
},
team_id: {
required: true,
type: "integer"
}
},
url: "/teams/:team_id"
}
},
users: {
addEmails: {
method: "POST",
params: {
emails: {
required: true,
type: "string[]"
}
},
url: "/user/emails"
},
block: {
method: "PUT",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/blocks/:username"
},
checkBlocked: {
method: "GET",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/blocks/:username"
},
checkFollowing: {
method: "GET",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/following/:username"
},
checkFollowingForUser: {
method: "GET",
params: {
target_user: {
required: true,
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/following/:target_user"
},
createGpgKey: {
method: "POST",
params: {
armored_public_key: {
type: "string"
}
},
url: "/user/gpg_keys"
},
createPublicKey: {
method: "POST",
params: {
key: {
type: "string"
},
title: {
type: "string"
}
},
url: "/user/keys"
},
deleteEmails: {
method: "DELETE",
params: {
emails: {
required: true,
type: "string[]"
}
},
url: "/user/emails"
},
deleteGpgKey: {
method: "DELETE",
params: {
gpg_key_id: {
required: true,
type: "integer"
}
},
url: "/user/gpg_keys/:gpg_key_id"
},
deletePublicKey: {
method: "DELETE",
params: {
key_id: {
required: true,
type: "integer"
}
},
url: "/user/keys/:key_id"
},
follow: {
method: "PUT",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/following/:username"
},
getAuthenticated: {
method: "GET",
params: {},
url: "/user"
},
getByUsername: {
method: "GET",
params: {
username: {
required: true,
type: "string"
}
},
url: "/users/:username"
},
getContextForUser: {
method: "GET",
params: {
subject_id: {
type: "string"
},
subject_type: {
enum: ["organization", "repository", "issue", "pull_request"],
type: "string"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/hovercard"
},
getGpgKey: {
method: "GET",
params: {
gpg_key_id: {
required: true,
type: "integer"
}
},
url: "/user/gpg_keys/:gpg_key_id"
},
getPublicKey: {
method: "GET",
params: {
key_id: {
required: true,
type: "integer"
}
},
url: "/user/keys/:key_id"
},
list: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
since: {
type: "string"
}
},
url: "/users"
},
listBlocked: {
method: "GET",
params: {},
url: "/user/blocks"
},
listEmails: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/emails"
},
listFollowersForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/followers"
},
listFollowersForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/followers"
},
listFollowingForAuthenticatedUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/following"
},
listFollowingForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/following"
},
listGpgKeys: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/gpg_keys"
},
listGpgKeysForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/gpg_keys"
},
listPublicEmails: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/public_emails"
},
listPublicKeys: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
}
},
url: "/user/keys"
},
listPublicKeysForUser: {
method: "GET",
params: {
page: {
type: "integer"
},
per_page: {
type: "integer"
},
username: {
required: true,
type: "string"
}
},
url: "/users/:username/keys"
},
togglePrimaryEmailVisibility: {
method: "PATCH",
params: {
email: {
required: true,
type: "string"
},
visibility: {
required: true,
type: "string"
}
},
url: "/user/email/visibility"
},
unblock: {
method: "DELETE",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/blocks/:username"
},
unfollow: {
method: "DELETE",
params: {
username: {
required: true,
type: "string"
}
},
url: "/user/following/:username"
},
updateAuthenticated: {
method: "PATCH",
params: {
bio: {
type: "string"
},
blog: {
type: "string"
},
company: {
type: "string"
},
email: {
type: "string"
},
hireable: {
type: "boolean"
},
location: {
type: "string"
},
name: {
type: "string"
}
},
url: "/user"
}
}
};
const VERSION = "2.4.0";
function registerEndpoints(octokit, routes) {
Object.keys(routes).forEach(namespaceName => {
if (!octokit[namespaceName]) {
octokit[namespaceName] = {};
}
Object.keys(routes[namespaceName]).forEach(apiName => {
const apiOptions = routes[namespaceName][apiName];
const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
if (typeof apiOptions[key] !== "undefined") {
map[key] = apiOptions[key];
}
return map;
}, {});
endpointDefaults.request = {
validate: apiOptions.params
};
let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
// Not the most elegant solution, but we don’t want to move deprecation
// logic into octokit/endpoint.js as it’s out of scope
const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
if (hasDeprecatedParam) {
const patch = patchForDeprecation.bind(null, octokit, apiOptions);
request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
}
if (apiOptions.deprecated) {
octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
octokit[namespaceName][apiName] = request;
return request.apply(null, arguments);
}, request);
return;
}
octokit[namespaceName][apiName] = request;
});
});
}
function patchForDeprecation(octokit, apiOptions, method, methodName) {
const patchedMethod = options => {
options = Object.assign({}, options);
Object.keys(options).forEach(key => {
if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
const aliasKey = apiOptions.params[key].alias;
octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
if (!(aliasKey in options)) {
options[aliasKey] = options[key];
}
delete options[key];
}
});
return method(options);
};
Object.keys(method).forEach(key => {
patchedMethod[key] = method[key];
});
return patchedMethod;
}
/**
* This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
* goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
* done, we will remove the registerEndpoints methods and return the methods
* directly as with the other plugins. At that point we will also remove the
* legacy workarounds and deprecations.
*
* See the plan at
* https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
*/
function restEndpointMethods(octokit) {
// @ts-ignore
octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
// See https://github.com/octokit/rest.js/pull/1134
[["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
Object.defineProperty(octokit, deprecatedScope, {
get() {
octokit.log.warn( // @ts-ignore
new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
return octokit[scope];
}
});
});
return {};
}
restEndpointMethods.VERSION = VERSION;
exports.restEndpointMethods = restEndpointMethods;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 847:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var BufferUtil = __webpack_require__(628)
var GF = __webpack_require__(526)
/**
* Multiplies two polynomials inside Galois Field
*
* @param {Buffer} p1 Polynomial
* @param {Buffer} p2 Polynomial
* @return {Buffer} Product of p1 and p2
*/
exports.mul = function mul (p1, p2) {
var coeff = BufferUtil.alloc(p1.length + p2.length - 1)
for (var i = 0; i < p1.length; i++) {
for (var j = 0; j < p2.length; j++) {
coeff[i + j] ^= GF.mul(p1[i], p2[j])
}
}
return coeff
}
/**
* Calculate the remainder of polynomials division
*
* @param {Buffer} divident Polynomial
* @param {Buffer} divisor Polynomial
* @return {Buffer} Remainder
*/
exports.mod = function mod (divident, divisor) {
var result = BufferUtil.from(divident)
while ((result.length - divisor.length) >= 0) {
var coeff = result[0]
for (var i = 0; i < divisor.length; i++) {
result[i] ^= GF.mul(divisor[i], coeff)
}
// remove all zeros from buffer head
var offset = 0
while (offset < result.length && result[offset] === 0) offset++
result = result.slice(offset)
}
return result
}
/**
* Generate an irreducible generator polynomial of specified degree
* (used by Reed-Solomon encoder)
*
* @param {Number} degree Degree of the generator polynomial
* @return {Buffer} Buffer containing polynomial coefficients
*/
exports.generateECPolynomial = function generateECPolynomial (degree) {
var poly = BufferUtil.from([1])
for (var i = 0; i < degree; i++) {
poly = exports.mul(poly, [1, GF.exp(i)])
}
return poly
}
/***/ }),
/***/ 850:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = paginationMethodsPlugin
function paginationMethodsPlugin (octokit) {
octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
octokit.getLastPage = __webpack_require__(649).bind(null, octokit)
octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
octokit.hasFirstPage = __webpack_require__(536)
octokit.hasLastPage = __webpack_require__(336)
octokit.hasNextPage = __webpack_require__(929)
octokit.hasPreviousPage = __webpack_require__(558)
}
/***/ }),
/***/ 854:
/***/ (function(module) {
/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
symbolTag = '[object Symbol]';
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/,
reLeadingDot = /^\./,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
/**
* Checks if `value` is a host object in IE < 9.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
function isHostObject(value) {
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var result = false;
if (value != null && typeof value.toString != 'function') {
try {
result = !!(value + '');
} catch (e) {}
}
return result;
}
/** Used for built-in method references. */
var arrayProto = Array.prototype,
funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/** Built-in value references. */
var Symbol = root.Symbol,
splice = arrayProto.splice;
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map'),
nativeCreate = getNative(Object, 'create');
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
}
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
return this.has(key) && delete this.__data__[key];
}
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
}
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
return this;
}
// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
return true;
}
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
return getMapData(this, key)['delete'](key);
}
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
getMapData(this, key).set(key, value);
return this;
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
/**
* The base implementation of `_.get` without support for default values.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
path = isKey(path, object) ? [path] : castPath(path);
var index = 0,
length = path.length;
while (object != null && index < length) {
object = object[toKey(path[index++])];
}
return (index && index == length) ? object : undefined;
}
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
/**
* The base implementation of `_.toString` which doesn't convert nullish
* values to empty strings.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
// Exit early for strings to avoid a performance hit in some environments.
if (typeof value == 'string') {
return value;
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
/**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value) {
return isArray(value) ? value : stringToPath(value);
}
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object));
}
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
/**
* Converts `string` to a property path array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoize(function(string) {
string = toString(string);
var result = [];
if (reLeadingDot.test(string)) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value == 'string' || isSymbol(value)) {
return value;
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
* @returns {Function} Returns the new memoized function.
* @example
*
* var object = { 'a': 1, 'b': 2 };
* var other = { 'c': 3, 'd': 4 };
*
* var values = _.memoize(_.values);
* values(object);
* // => [1, 2]
*
* values(other);
* // => [3, 4]
*
* object.a = 2;
* values(object);
* // => [1, 2]
*
* // Modify the result cache.
* values.cache.set(object, ['a', 'b']);
* values(object);
* // => ['a', 'b']
*
* // Replace `_.memoize.Cache`.
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
var args = arguments,
key = resolver ? resolver.apply(this, args) : args[0],
cache = memoized.cache;
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result);
return result;
};
memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
// Assign cache to `_.memoize`.
memoize.Cache = MapCache;
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
/**
* Converts `value` to a string. An empty string is returned for `null`
* and `undefined` values. The sign of `-0` is preserved.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
* @example
*
* _.toString(null);
* // => ''
*
* _.toString(-0);
* // => '-0'
*
* _.toString([1, 2, 3]);
* // => '1,2,3'
*/
function toString(value) {
return value == null ? '' : baseToString(value);
}
/**
* Gets the value at `path` of `object`. If the resolved value is
* `undefined`, the `defaultValue` is returned in its place.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.get(object, 'a[0].b.c');
* // => 3
*
* _.get(object, ['a', '0', 'b', 'c']);
* // => 3
*
* _.get(object, 'a.b.c', 'default');
* // => 'default'
*/
function get(object, path, defaultValue) {
var result = object == null ? undefined : baseGet(object, path);
return result === undefined ? defaultValue : result;
}
module.exports = get;
/***/ }),
/***/ 855:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = registerPlugin;
const factory = __webpack_require__(47);
function registerPlugin(plugins, pluginFunction) {
return factory(
plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
);
}
/***/ }),
/***/ 856:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = __webpack_require__(141);
/***/ }),
/***/ 863:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = authenticationBeforeRequest;
const btoa = __webpack_require__(675);
const withAuthorizationPrefix = __webpack_require__(143);
function authenticationBeforeRequest(state, options) {
if (typeof state.auth === "string") {
options.headers.authorization = withAuthorizationPrefix(state.auth);
return;
}
if (state.auth.username) {
const hash = btoa(`${state.auth.username}:${state.auth.password}`);
options.headers.authorization = `Basic ${hash}`;
if (state.otp) {
options.headers["x-github-otp"] = state.otp;
}
return;
}
if (state.auth.clientId) {
// There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as
// Basic Authorization instead of query parameters. The only routes where that applies share the same
// URL though: `/applications/:client_id/tokens/:access_token`.
//
// 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)
// 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)
// 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)
//
// We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token"
// as well as "/applications/123/tokens/token456"
if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) {
const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`);
options.headers.authorization = `Basic ${hash}`;
return;
}
options.url += options.url.indexOf("?") === -1 ? "?" : "&";
options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`;
return;
}
return Promise.resolve()
.then(() => {
return state.auth();
})
.then(authorization => {
options.headers.authorization = withAuthorizationPrefix(authorization);
});
}
/***/ }),
/***/ 866:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var shebangRegex = __webpack_require__(816);
module.exports = function (str) {
var match = str.match(shebangRegex);
if (!match) {
return null;
}
var arr = match[0].replace(/#! ?/, '').split(' ');
var bin = arr[0].split('/').pop();
var arg = arr[1];
return (bin === 'env' ?
arg :
bin + (arg ? ' ' + arg : '')
);
};
/***/ }),
/***/ 881:
/***/ (function(module) {
"use strict";
const isWin = process.platform === 'win32';
function notFoundError(original, syscall) {
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
code: 'ENOENT',
errno: 'ENOENT',
syscall: `${syscall} ${original.command}`,
path: original.command,
spawnargs: original.args,
});
}
function hookChildProcess(cp, parsed) {
if (!isWin) {
return;
}
const originalEmit = cp.emit;
cp.emit = function (name, arg1) {
// If emitting "exit" event and exit code is 1, we need to check if
// the command exists and emit an "error" instead
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
if (name === 'exit') {
const err = verifyENOENT(arg1, parsed, 'spawn');
if (err) {
return originalEmit.call(cp, 'error', err);
}
}
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
};
}
function verifyENOENT(status, parsed) {
if (isWin && status === 1 && !parsed.file) {
return notFoundError(parsed.original, 'spawn');
}
return null;
}
function verifyENOENTSync(status, parsed) {
if (isWin && status === 1 && !parsed.file) {
return notFoundError(parsed.original, 'spawnSync');
}
return null;
}
module.exports = {
hookChildProcess,
verifyENOENT,
verifyENOENTSync,
notFoundError,
};
/***/ }),
/***/ 883:
/***/ (function(module) {
/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_SAFE_INTEGER = 9007199254740991;
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
symbolTag = '[object Symbol]';
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/,
reLeadingDot = /^\./,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
/**
* Checks if `value` is a host object in IE < 9.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
*/
function isHostObject(value) {
// Many host objects are `Object` objects that can coerce to strings
// despite having improperly defined `toString` methods.
var result = false;
if (value != null && typeof value.toString != 'function') {
try {
result = !!(value + '');
} catch (e) {}
}
return result;
}
/** Used for built-in method references. */
var arrayProto = Array.prototype,
funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/** Built-in value references. */
var Symbol = root.Symbol,
splice = arrayProto.splice;
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map'),
nativeCreate = getNative(Object, 'create');
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
}
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
return this.has(key) && delete this.__data__[key];
}
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
}
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
return this;
}
// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
}
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
return true;
}
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries ? entries.length : 0;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
return getMapData(this, key)['delete'](key);
}
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
getMapData(this, key).set(key, value);
return this;
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
var objValue = object[key];
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
}
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
/**
* The base implementation of `_.set`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
* @param {*} value The value to set.
* @param {Function} [customizer] The function to customize path creation.
* @returns {Object} Returns `object`.
*/
function baseSet(object, path, value, customizer) {
if (!isObject(object)) {
return object;
}
path = isKey(path, object) ? [path] : castPath(path);
var index = -1,
length = path.length,
lastIndex = length - 1,
nested = object;
while (nested != null && ++index < length) {
var key = toKey(path[index]),
newValue = value;
if (index != lastIndex) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;
if (newValue === undefined) {
newValue = isObject(objValue)
? objValue
: (isIndex(path[index + 1]) ? [] : {});
}
}
assignValue(nested, key, newValue);
nested = nested[key];
}
return object;
}
/**
* The base implementation of `_.toString` which doesn't convert nullish
* values to empty strings.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
// Exit early for strings to avoid a performance hit in some environments.
if (typeof value == 'string') {
return value;
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
/**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value) {
return isArray(value) ? value : stringToPath(value);
}
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(typeof value == 'number' || reIsUint.test(value)) &&
(value > -1 && value % 1 == 0 && value < length);
}
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object));
}
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
/**
* Converts `string` to a property path array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoize(function(string) {
string = toString(string);
var result = [];
if (reLeadingDot.test(string)) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value == 'string' || isSymbol(value)) {
return value;
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
* @returns {Function} Returns the new memoized function.
* @example
*
* var object = { 'a': 1, 'b': 2 };
* var other = { 'c': 3, 'd': 4 };
*
* var values = _.memoize(_.values);
* values(object);
* // => [1, 2]
*
* values(other);
* // => [3, 4]
*
* object.a = 2;
* values(object);
* // => [1, 2]
*
* // Modify the result cache.
* values.cache.set(object, ['a', 'b']);
* values(object);
* // => ['a', 'b']
*
* // Replace `_.memoize.Cache`.
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
var args = arguments,
key = resolver ? resolver.apply(this, args) : args[0],
cache = memoized.cache;
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result);
return result;
};
memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
// Assign cache to `_.memoize`.
memoize.Cache = MapCache;
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
/**
* Converts `value` to a string. An empty string is returned for `null`
* and `undefined` values. The sign of `-0` is preserved.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
* @example
*
* _.toString(null);
* // => ''
*
* _.toString(-0);
* // => '-0'
*
* _.toString([1, 2, 3]);
* // => '1,2,3'
*/
function toString(value) {
return value == null ? '' : baseToString(value);
}
/**
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
* it's created. Arrays are created for missing index properties while objects
* are created for all other missing properties. Use `_.setWith` to customize
* `path` creation.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
* @param {*} value The value to set.
* @returns {Object} Returns `object`.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.set(object, 'a[0].b.c', 4);
* console.log(object.a[0].b.c);
* // => 4
*
* _.set(object, ['x', '0', 'y', 'z'], 5);
* console.log(object.x[0].y.z);
* // => 5
*/
function set(object, path, value) {
return object == null ? object : baseSet(object, path, value);
}
module.exports = set;
/***/ }),
/***/ 898:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
var request = __webpack_require__(753);
var universalUserAgent = __webpack_require__(796);
const VERSION = "4.3.1";
class GraphqlError extends Error {
constructor(request, response) {
const message = response.data.errors[0].message;
super(message);
Object.assign(this, response.data);
this.name = "GraphqlError";
this.request = request; // Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
}
}
const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
function graphql(request, query, options) {
options = typeof query === "string" ? options = Object.assign({
query
}, options) : options = query;
const requestOptions = Object.keys(options).reduce((result, key) => {
if (NON_VARIABLE_OPTIONS.includes(key)) {
result[key] = options[key];
return result;
}
if (!result.variables) {
result.variables = {};
}
result.variables[key] = options[key];
return result;
}, {});
return request(requestOptions).then(response => {
if (response.data.errors) {
throw new GraphqlError(requestOptions, {
data: response.data
});
}
return response.data.data;
});
}
function withDefaults(request$1, newDefaults) {
const newRequest = request$1.defaults(newDefaults);
const newApi = (query, options) => {
return graphql(newRequest, query, options);
};
return Object.assign(newApi, {
defaults: withDefaults.bind(null, newRequest),
endpoint: request.request.endpoint
});
}
const graphql$1 = withDefaults(request.request, {
headers: {
"user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
},
method: "POST",
url: "/graphql"
});
function withCustomRequest(customRequest) {
return withDefaults(customRequest, {
method: "POST",
url: "/graphql"
});
}
exports.graphql = graphql$1;
exports.withCustomRequest = withCustomRequest;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 904:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var SyncReader = __webpack_require__(80);
var Filter = __webpack_require__(447);
exports.process = function(inBuffer, bitmapInfo) {
var outBuffers = [];
var reader = new SyncReader(inBuffer);
var filter = new Filter(bitmapInfo, {
read: reader.read.bind(reader),
write: function(bufferPart) {
outBuffers.push(bufferPart);
},
complete: function() {
}
});
filter.start();
reader.process();
return Buffer.concat(outBuffers);
};
/***/ }),
/***/ 916:
/***/ (function(__unusedmodule, exports) {
"use strict";
Object.defineProperty(exports, '__esModule', { value: true });
const VERSION = "1.0.0";
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
*/
function requestLog(octokit) {
octokit.hook.wrap("request", (request, options) => {
octokit.log.debug("request", options);
const start = Date.now();
const requestOptions = octokit.request.endpoint.parse(options);
const path = requestOptions.url.replace(options.baseUrl, "");
return request(options).then(response => {
octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
return response;
}).catch(error => {
octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
throw error;
});
});
}
requestLog.VERSION = VERSION;
exports.requestLog = requestLog;
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 927:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
var canPromise = __webpack_require__(778)
var QRCode = __webpack_require__(702)
var PngRenderer = __webpack_require__(102)
var Utf8Renderer = __webpack_require__(355)
var TerminalRenderer = __webpack_require__(160)
var SvgRenderer = __webpack_require__(107)
function checkParams (text, opts, cb) {
if (typeof text === 'undefined') {
throw new Error('String required as first argument')
}
if (typeof cb === 'undefined') {
cb = opts
opts = {}
}
if (typeof cb !== 'function') {
if (!canPromise()) {
throw new Error('Callback required as last argument')
} else {
opts = cb || {}
cb = null
}
}
return {
opts: opts,
cb: cb
}
}
function getTypeFromFilename (path) {
return path.slice((path.lastIndexOf('.') - 1 >>> 0) + 2).toLowerCase()
}
function getRendererFromType (type) {
switch (type) {
case 'svg':
return SvgRenderer
case 'txt':
case 'utf8':
return Utf8Renderer
case 'png':
case 'image/png':
default:
return PngRenderer
}
}
function getStringRendererFromType (type) {
switch (type) {
case 'svg':
return SvgRenderer
case 'terminal':
return TerminalRenderer
case 'utf8':
default:
return Utf8Renderer
}
}
function render (renderFunc, text, params) {
if (!params.cb) {
return new Promise(function (resolve, reject) {
try {
var data = QRCode.create(text, params.opts)
return renderFunc(data, params.opts, function (err, data) {
return err ? reject(err) : resolve(data)
})
} catch (e) {
reject(e)
}
})
}
try {
var data = QRCode.create(text, params.opts)
return renderFunc(data, params.opts, params.cb)
} catch (e) {
params.cb(e)
}
}
exports.create = QRCode.create
exports.toCanvas = __webpack_require__(634).toCanvas
exports.toString = function toString (text, opts, cb) {
var params = checkParams(text, opts, cb)
var renderer = getStringRendererFromType(params.opts.type)
return render(renderer.render, text, params)
}
exports.toDataURL = function toDataURL (text, opts, cb) {
var params = checkParams(text, opts, cb)
var renderer = getRendererFromType(params.opts.type)
return render(renderer.renderToDataURL, text, params)
}
exports.toBuffer = function toBuffer (text, opts, cb) {
var params = checkParams(text, opts, cb)
var renderer = getRendererFromType(params.opts.type)
return render(renderer.renderToBuffer, text, params)
}
exports.toFile = function toFile (path, text, opts, cb) {
if (typeof path !== 'string' || !(typeof text === 'string' || typeof text === 'object')) {
throw new Error('Invalid argument')
}
if ((arguments.length < 3) && !canPromise()) {
throw new Error('Too few arguments provided')
}
var params = checkParams(text, opts, cb)
var type = params.opts.type || getTypeFromFilename(path)
var renderer = getRendererFromType(type)
var renderToFile = renderer.renderToFile.bind(null, path)
return render(renderToFile, text, params)
}
exports.toFileStream = function toFileStream (stream, text, opts) {
if (arguments.length < 2) {
throw new Error('Too few arguments provided')
}
var params = checkParams(text, opts, stream.emit.bind(stream, 'error'))
var renderer = getRendererFromType('png') // Only png support for now
var renderToFileStream = renderer.renderToFileStream.bind(null, stream)
render(renderToFileStream, text, params)
}
/***/ }),
/***/ 929:
/***/ (function(module, __unusedexports, __webpack_require__) {
module.exports = hasNextPage
const deprecate = __webpack_require__(370)
const getPageLinks = __webpack_require__(577)
function hasNextPage (link) {
deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
return getPageLinks(link).next
}
/***/ }),
/***/ 932:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
var constants = __webpack_require__(268);
var CrcCalculator = __webpack_require__(228);
var Parser = module.exports = function(options, dependencies) {
this._options = options;
options.checkCRC = options.checkCRC !== false;
this._hasIHDR = false;
this._hasIEND = false;
this._emittedHeadersFinished = false;
// input flags/metadata
this._palette = [];
this._colorType = 0;
this._chunks = {};
this._chunks[constants.TYPE_IHDR] = this._handleIHDR.bind(this);
this._chunks[constants.TYPE_IEND] = this._handleIEND.bind(this);
this._chunks[constants.TYPE_IDAT] = this._handleIDAT.bind(this);
this._chunks[constants.TYPE_PLTE] = this._handlePLTE.bind(this);
this._chunks[constants.TYPE_tRNS] = this._handleTRNS.bind(this);
this._chunks[constants.TYPE_gAMA] = this._handleGAMA.bind(this);
this.read = dependencies.read;
this.error = dependencies.error;
this.metadata = dependencies.metadata;
this.gamma = dependencies.gamma;
this.transColor = dependencies.transColor;
this.palette = dependencies.palette;
this.parsed = dependencies.parsed;
this.inflateData = dependencies.inflateData;
this.finished = dependencies.finished;
this.simpleTransparency = dependencies.simpleTransparency;
this.headersFinished = dependencies.headersFinished || function() {};
};
Parser.prototype.start = function() {
this.read(constants.PNG_SIGNATURE.length,
this._parseSignature.bind(this)
);
};
Parser.prototype._parseSignature = function(data) {
var signature = constants.PNG_SIGNATURE;
for (var i = 0; i < signature.length; i++) {
if (data[i] !== signature[i]) {
this.error(new Error('Invalid file signature'));
return;
}
}
this.read(8, this._parseChunkBegin.bind(this));
};
Parser.prototype._parseChunkBegin = function(data) {
// chunk content length
var length = data.readUInt32BE(0);
// chunk type
var type = data.readUInt32BE(4);
var name = '';
for (var i = 4; i < 8; i++) {
name += String.fromCharCode(data[i]);
}
//console.log('chunk ', name, length);
// chunk flags
var ancillary = Boolean(data[4] & 0x20); // or critical
// priv = Boolean(data[5] & 0x20), // or public
// safeToCopy = Boolean(data[7] & 0x20); // or unsafe
if (!this._hasIHDR && type !== constants.TYPE_IHDR) {
this.error(new Error('Expected IHDR on beggining'));
return;
}
this._crc = new CrcCalculator();
this._crc.write(new Buffer(name));
if (this._chunks[type]) {
return this._chunks[type](length);
}
if (!ancillary) {
this.error(new Error('Unsupported critical chunk type ' + name));
return;
}
this.read(length + 4, this._skipChunk.bind(this));
};
Parser.prototype._skipChunk = function(/*data*/) {
this.read(8, this._parseChunkBegin.bind(this));
};
Parser.prototype._handleChunkEnd = function() {
this.read(4, this._parseChunkEnd.bind(this));
};
Parser.prototype._parseChunkEnd = function(data) {
var fileCrc = data.readInt32BE(0);
var calcCrc = this._crc.crc32();
// check CRC
if (this._options.checkCRC && calcCrc !== fileCrc) {
this.error(new Error('Crc error - ' + fileCrc + ' - ' + calcCrc));
return;
}
if (!this._hasIEND) {
this.read(8, this._parseChunkBegin.bind(this));
}
};
Parser.prototype._handleIHDR = function(length) {
this.read(length, this._parseIHDR.bind(this));
};
Parser.prototype._parseIHDR = function(data) {
this._crc.write(data);
var width = data.readUInt32BE(0);
var height = data.readUInt32BE(4);
var depth = data[8];
var colorType = data[9]; // bits: 1 palette, 2 color, 4 alpha
var compr = data[10];
var filter = data[11];
var interlace = data[12];
// console.log(' width', width, 'height', height,
// 'depth', depth, 'colorType', colorType,
// 'compr', compr, 'filter', filter, 'interlace', interlace
// );
if (depth !== 8 && depth !== 4 && depth !== 2 && depth !== 1 && depth !== 16) {
this.error(new Error('Unsupported bit depth ' + depth));
return;
}
if (!(colorType in constants.COLORTYPE_TO_BPP_MAP)) {
this.error(new Error('Unsupported color type'));
return;
}
if (compr !== 0) {
this.error(new Error('Unsupported compression method'));
return;
}
if (filter !== 0) {
this.error(new Error('Unsupported filter method'));
return;
}
if (interlace !== 0 && interlace !== 1) {
this.error(new Error('Unsupported interlace method'));
return;
}
this._colorType = colorType;
var bpp = constants.COLORTYPE_TO_BPP_MAP[this._colorType];
this._hasIHDR = true;
this.metadata({
width: width,
height: height,
depth: depth,
interlace: Boolean(interlace),
palette: Boolean(colorType & constants.COLORTYPE_PALETTE),
color: Boolean(colorType & constants.COLORTYPE_COLOR),
alpha: Boolean(colorType & constants.COLORTYPE_ALPHA),
bpp: bpp,
colorType: colorType
});
this._handleChunkEnd();
};
Parser.prototype._handlePLTE = function(length) {
this.read(length, this._parsePLTE.bind(this));
};
Parser.prototype._parsePLTE = function(data) {
this._crc.write(data);
var entries = Math.floor(data.length / 3);
// console.log('Palette:', entries);
for (var i = 0; i < entries; i++) {
this._palette.push([
data[i * 3],
data[i * 3 + 1],
data[i * 3 + 2],
0xff
]);
}
this.palette(this._palette);
this._handleChunkEnd();
};
Parser.prototype._handleTRNS = function(length) {
this.simpleTransparency();
this.read(length, this._parseTRNS.bind(this));
};
Parser.prototype._parseTRNS = function(data) {
this._crc.write(data);
// palette
if (this._colorType === constants.COLORTYPE_PALETTE_COLOR) {
if (this._palette.length === 0) {
this.error(new Error('Transparency chunk must be after palette'));
return;
}
if (data.length > this._palette.length) {
this.error(new Error('More transparent colors than palette size'));
return;
}
for (var i = 0; i < data.length; i++) {
this._palette[i][3] = data[i];
}
this.palette(this._palette);
}
// for colorType 0 (grayscale) and 2 (rgb)
// there might be one gray/color defined as transparent
if (this._colorType === constants.COLORTYPE_GRAYSCALE) {
// grey, 2 bytes
this.transColor([data.readUInt16BE(0)]);
}
if (this._colorType === constants.COLORTYPE_COLOR) {
this.transColor([data.readUInt16BE(0), data.readUInt16BE(2), data.readUInt16BE(4)]);
}
this._handleChunkEnd();
};
Parser.prototype._handleGAMA = function(length) {
this.read(length, this._parseGAMA.bind(this));
};
Parser.prototype._parseGAMA = function(data) {
this._crc.write(data);
this.gamma(data.readUInt32BE(0) / constants.GAMMA_DIVISION);
this._handleChunkEnd();
};
Parser.prototype._handleIDAT = function(length) {
if (!this._emittedHeadersFinished) {
this._emittedHeadersFinished = true;
this.headersFinished();
}
this.read(-length, this._parseIDAT.bind(this, length));
};
Parser.prototype._parseIDAT = function(length, data) {
this._crc.write(data);
if (this._colorType === constants.COLORTYPE_PALETTE_COLOR && this._palette.length === 0) {
throw new Error('Expected palette not found');
}
this.inflateData(data);
var leftOverLength = length - data.length;
if (leftOverLength > 0) {
this._handleIDAT(leftOverLength);
}
else {
this._handleChunkEnd();
}
};
Parser.prototype._handleIEND = function(length) {
this.read(length, this._parseIEND.bind(this));
};
Parser.prototype._parseIEND = function(data) {
this._crc.write(data);
this._hasIEND = true;
this._handleChunkEnd();
if (this.finished) {
this.finished();
}
};
/***/ }),
/***/ 939:
/***/ (function(module, __unusedexports, __webpack_require__) {
/*
*copyright Ryan Day 2012
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* this is the main server side application file for node-qrcode.
* these exports use serverside canvas api methods for file IO and buffers
*
*/
module.exports = __webpack_require__(927)
/***/ }),
/***/ 948:
/***/ (function(module) {
"use strict";
/**
* Tries to execute a function and discards any error that occurs.
* @param {Function} fn - Function that might or might not throw an error.
* @returns {?*} Return-value of the function when no error occurred.
*/
module.exports = function(fn) {
try { return fn() } catch (e) {}
}
/***/ }),
/***/ 950:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const url = __webpack_require__(835);
function getProxyUrl(reqUrl) {
let usingSsl = reqUrl.protocol === 'https:';
let proxyUrl;
if (checkBypass(reqUrl)) {
return proxyUrl;
}
let proxyVar;
if (usingSsl) {
proxyVar = process.env["https_proxy"] ||
process.env["HTTPS_PROXY"];
}
else {
proxyVar = process.env["http_proxy"] ||
process.env["HTTP_PROXY"];
}
if (proxyVar) {
proxyUrl = url.parse(proxyVar);
}
return proxyUrl;
}
exports.getProxyUrl = getProxyUrl;
function checkBypass(reqUrl) {
if (!reqUrl.hostname) {
return false;
}
let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || '';
if (!noProxy) {
return false;
}
// Determine the request port
let reqPort;
if (reqUrl.port) {
reqPort = Number(reqUrl.port);
}
else if (reqUrl.protocol === 'http:') {
reqPort = 80;
}
else if (reqUrl.protocol === 'https:') {
reqPort = 443;
}
// Format the request hostname and hostname with port
let upperReqHosts = [reqUrl.hostname.toUpperCase()];
if (typeof reqPort === 'number') {
upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
}
// Compare request host against noproxy
for (let upperNoProxyItem of noProxy.split(',').map(x => x.trim().toUpperCase()).filter(x => x)) {
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
return true;
}
}
return false;
}
exports.checkBypass = checkBypass;
/***/ }),
/***/ 954:
/***/ (function(module) {
module.exports = validateAuth;
function validateAuth(auth) {
if (typeof auth === "string") {
return;
}
if (typeof auth === "function") {
return;
}
if (auth.username && auth.password) {
return;
}
if (auth.clientId && auth.clientSecret) {
return;
}
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
}
/***/ }),
/***/ 955:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const path = __webpack_require__(622);
const childProcess = __webpack_require__(129);
const crossSpawn = __webpack_require__(20);
const stripEof = __webpack_require__(768);
const npmRunPath = __webpack_require__(621);
const isStream = __webpack_require__(323);
const _getStream = __webpack_require__(145);
const pFinally = __webpack_require__(697);
const onExit = __webpack_require__(260);
const errname = __webpack_require__(427);
const stdio = __webpack_require__(168);
const TEN_MEGABYTES = 1000 * 1000 * 10;
function handleArgs(cmd, args, opts) {
let parsed;
opts = Object.assign({
extendEnv: true,
env: {}
}, opts);
if (opts.extendEnv) {
opts.env = Object.assign({}, process.env, opts.env);
}
if (opts.__winShell === true) {
delete opts.__winShell;
parsed = {
command: cmd,
args,
options: opts,
file: cmd,
original: {
cmd,
args
}
};
} else {
parsed = crossSpawn._parse(cmd, args, opts);
}
opts = Object.assign({
maxBuffer: TEN_MEGABYTES,
buffer: true,
stripEof: true,
preferLocal: true,
localDir: parsed.options.cwd || process.cwd(),
encoding: 'utf8',
reject: true,
cleanup: true
}, parsed.options);
opts.stdio = stdio(opts);
if (opts.preferLocal) {
opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
}
if (opts.detached) {
// #115
opts.cleanup = false;
}
if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
// #116
parsed.args.unshift('/q');
}
return {
cmd: parsed.command,
args: parsed.args,
opts,
parsed
};
}
function handleInput(spawned, input) {
if (input === null || input === undefined) {
return;
}
if (isStream(input)) {
input.pipe(spawned.stdin);
} else {
spawned.stdin.end(input);
}
}
function handleOutput(opts, val) {
if (val && opts.stripEof) {
val = stripEof(val);
}
return val;
}
function handleShell(fn, cmd, opts) {
let file = '/bin/sh';
let args = ['-c', cmd];
opts = Object.assign({}, opts);
if (process.platform === 'win32') {
opts.__winShell = true;
file = process.env.comspec || 'cmd.exe';
args = ['/s', '/c', `"${cmd}"`];
opts.windowsVerbatimArguments = true;
}
if (opts.shell) {
file = opts.shell;
delete opts.shell;
}
return fn(file, args, opts);
}
function getStream(process, stream, {encoding, buffer, maxBuffer}) {
if (!process[stream]) {
return null;
}
let ret;
if (!buffer) {
// TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
ret = new Promise((resolve, reject) => {
process[stream]
.once('end', resolve)
.once('error', reject);
});
} else if (encoding) {
ret = _getStream(process[stream], {
encoding,
maxBuffer
});
} else {
ret = _getStream.buffer(process[stream], {maxBuffer});
}
return ret.catch(err => {
err.stream = stream;
err.message = `${stream} ${err.message}`;
throw err;
});
}
function makeError(result, options) {
const {stdout, stderr} = result;
let err = result.error;
const {code, signal} = result;
const {parsed, joinedCmd} = options;
const timedOut = options.timedOut || false;
if (!err) {
let output = '';
if (Array.isArray(parsed.opts.stdio)) {
if (parsed.opts.stdio[2] !== 'inherit') {
output += output.length > 0 ? stderr : `\n${stderr}`;
}
if (parsed.opts.stdio[1] !== 'inherit') {
output += `\n${stdout}`;
}
} else if (parsed.opts.stdio !== 'inherit') {
output = `\n${stderr}${stdout}`;
}
err = new Error(`Command failed: ${joinedCmd}${output}`);
err.code = code < 0 ? errname(code) : code;
}
err.stdout = stdout;
err.stderr = stderr;
err.failed = true;
err.signal = signal || null;
err.cmd = joinedCmd;
err.timedOut = timedOut;
return err;
}
function joinCmd(cmd, args) {
let joinedCmd = cmd;
if (Array.isArray(args) && args.length > 0) {
joinedCmd += ' ' + args.join(' ');
}
return joinedCmd;
}
module.exports = (cmd, args, opts) => {
const parsed = handleArgs(cmd, args, opts);
const {encoding, buffer, maxBuffer} = parsed.opts;
const joinedCmd = joinCmd(cmd, args);
let spawned;
try {
spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
} catch (err) {
return Promise.reject(err);
}
let removeExitHandler;
if (parsed.opts.cleanup) {
removeExitHandler = onExit(() => {
spawned.kill();
});
}
let timeoutId = null;
let timedOut = false;
const cleanup = () => {
if (timeoutId) {
clearTimeout(timeoutId);
timeoutId = null;
}
if (removeExitHandler) {
removeExitHandler();
}
};
if (parsed.opts.timeout > 0) {
timeoutId = setTimeout(() => {
timeoutId = null;
timedOut = true;
spawned.kill(parsed.opts.killSignal);
}, parsed.opts.timeout);
}
const processDone = new Promise(resolve => {
spawned.on('exit', (code, signal) => {
cleanup();
resolve({code, signal});
});
spawned.on('error', err => {
cleanup();
resolve({error: err});
});
if (spawned.stdin) {
spawned.stdin.on('error', err => {
cleanup();
resolve({error: err});
});
}
});
function destroy() {
if (spawned.stdout) {
spawned.stdout.destroy();
}
if (spawned.stderr) {
spawned.stderr.destroy();
}
}
const handlePromise = () => pFinally(Promise.all([
processDone,
getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
]).then(arr => {
const result = arr[0];
result.stdout = arr[1];
result.stderr = arr[2];
if (result.error || result.code !== 0 || result.signal !== null) {
const err = makeError(result, {
joinedCmd,
parsed,
timedOut
});
// TODO: missing some timeout logic for killed
// https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
// err.killed = spawned.killed || killed;
err.killed = err.killed || spawned.killed;
if (!parsed.opts.reject) {
return err;
}
throw err;
}
return {
stdout: handleOutput(parsed.opts, result.stdout),
stderr: handleOutput(parsed.opts, result.stderr),
code: 0,
failed: false,
killed: false,
signal: null,
cmd: joinedCmd,
timedOut: false
};
}), destroy);
crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
handleInput(spawned, parsed.opts.input);
spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
spawned.catch = onrejected => handlePromise().catch(onrejected);
return spawned;
};
// TODO: set `stderr: 'ignore'` when that option is implemented
module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
// TODO: set `stdout: 'ignore'` when that option is implemented
module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
module.exports.sync = (cmd, args, opts) => {
const parsed = handleArgs(cmd, args, opts);
const joinedCmd = joinCmd(cmd, args);
if (isStream(parsed.opts.input)) {
throw new TypeError('The `input` option cannot be a stream in sync mode');
}
const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
result.code = result.status;
if (result.error || result.status !== 0 || result.signal !== null) {
const err = makeError(result, {
joinedCmd,
parsed
});
if (!parsed.opts.reject) {
return err;
}
throw err;
}
return {
stdout: handleOutput(parsed.opts, result.stdout),
stderr: handleOutput(parsed.opts, result.stderr),
code: 0,
failed: false,
signal: null,
cmd: joinedCmd,
timedOut: false
};
};
module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
/***/ }),
/***/ 966:
/***/ (function(module, __unusedexports, __webpack_require__) {
"use strict";
const {PassThrough} = __webpack_require__(413);
module.exports = options => {
options = Object.assign({}, options);
const {array} = options;
let {encoding} = options;
const buffer = encoding === 'buffer';
let objectMode = false;
if (array) {
objectMode = !(encoding || buffer);
} else {
encoding = encoding || 'utf8';
}
if (buffer) {
encoding = null;
}
let len = 0;
const ret = [];
const stream = new PassThrough({objectMode});
if (encoding) {
stream.setEncoding(encoding);
}
stream.on('data', chunk => {
ret.push(chunk);
if (objectMode) {
len = ret.length;
} else {
len += chunk.length;
}
});
stream.getBufferedValue = () => {
if (array) {
return ret;
}
return buffer ? Buffer.concat(ret, len) : ret.join('');
};
stream.getBufferedLength = () => len;
return stream;
};
/***/ }),
/***/ 969:
/***/ (function(module, __unusedexports, __webpack_require__) {
var wrappy = __webpack_require__(11)
module.exports = wrappy(once)
module.exports.strict = wrappy(onceStrict)
once.proto = once(function () {
Object.defineProperty(Function.prototype, 'once', {
value: function () {
return once(this)
},
configurable: true
})
Object.defineProperty(Function.prototype, 'onceStrict', {
value: function () {
return onceStrict(this)
},
configurable: true
})
})
function once (fn) {
var f = function () {
if (f.called) return f.value
f.called = true
return f.value = fn.apply(this, arguments)
}
f.called = false
return f
}
function onceStrict (fn) {
var f = function () {
if (f.called)
throw new Error(f.onceError)
f.called = true
return f.value = fn.apply(this, arguments)
}
var name = fn.name || 'Function wrapped with `once`'
f.onceError = name + " shouldn't be called more than once"
f.called = false
return f
}
/***/ }),
/***/ 994:
/***/ (function(module) {
"use strict";
function dePalette(indata, outdata, width, height, palette) {
var pxPos = 0;
// use values from palette
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
var color = palette[indata[pxPos]];
if (!color) {
throw new Error('index ' + indata[pxPos] + ' not in palette');
}
for (var i = 0; i < 4; i++) {
outdata[pxPos + i] = color[i];
}
pxPos += 4;
}
}
}
function replaceTransparentColor(indata, outdata, width, height, transColor) {
var pxPos = 0;
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
var makeTrans = false;
if (transColor.length === 1) {
if (transColor[0] === indata[pxPos]) {
makeTrans = true;
}
}
else if (transColor[0] === indata[pxPos] && transColor[1] === indata[pxPos + 1] && transColor[2] === indata[pxPos + 2]) {
makeTrans = true;
}
if (makeTrans) {
for (var i = 0; i < 4; i++) {
outdata[pxPos + i] = 0;
}
}
pxPos += 4;
}
}
}
function scaleDepth(indata, outdata, width, height, depth) {
var maxOutSample = 255;
var maxInSample = Math.pow(2, depth) - 1;
var pxPos = 0;
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
for (var i = 0; i < 4; i++) {
outdata[pxPos + i] = Math.floor((indata[pxPos + i] * maxOutSample) / maxInSample + 0.5);
}
pxPos += 4;
}
}
}
module.exports = function(indata, imageData) {
var depth = imageData.depth;
var width = imageData.width;
var height = imageData.height;
var colorType = imageData.colorType;
var transColor = imageData.transColor;
var palette = imageData.palette;
var outdata = indata; // only different for 16 bits
if (colorType === 3) { // paletted
dePalette(indata, outdata, width, height, palette);
}
else {
if (transColor) {
replaceTransparentColor(indata, outdata, width, height, transColor);
}
// if it needs scaling
if (depth !== 8) {
// if we need to change the buffer size
if (depth === 16) {
outdata = new Buffer(width * height * 4);
}
scaleDepth(indata, outdata, width, height, depth);
}
}
return outdata;
};
/***/ })
/******/ });
|
const Path = require('path')
const Webpack = require('webpack')
const merge = require('webpack-merge')
const WriteFilePlugin = require('write-file-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const common = require('./webpack.common.js')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = merge(common, {
mode: 'development',
devtool: 'cheap-eval-source-map',
output: {
chunkFilename: 'js/[name].chunk.js'
},
devServer: {
host: '0.0.0.0',
watchContentBase: true,
proxy: [
{
path: '/',
target: 'http://localhost:2368'
}
]
},
plugins: [
new Webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development')
}),
new MiniCssExtractPlugin({
filename: '[name].css'
}),
new WriteFilePlugin(),
new VueLoaderPlugin()
],
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.js$/,
include: Path.resolve(__dirname, '../src'),
enforce: 'pre',
loader: 'eslint-loader',
options: {
emitWarning: true
}
},
{
test: /\.js$/,
include: Path.resolve(__dirname, '../src'),
loader: 'babel-loader'
},
{
test: /\.s?css$/i,
use: ['vue-style-loader', MiniCssExtractPlugin.loader, 'css-loader?sourceMap=true', 'sass-loader']
}
]
}
})
|
/*
@licstart The following is the entire license notice for the JavaScript code in this file.
The MIT License (MIT)
Copyright (C) 1997-2020 by Dimitri van Heesch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@licend The above is the entire license notice for the JavaScript code in this file
*/
var menudata={children:[
{text:"Main Page",url:"index.html"},
{text:"Classes",url:"annotated.html",children:[
{text:"Class List",url:"annotated.html"},
{text:"Class Index",url:"classes.html"},
{text:"Class Hierarchy",url:"hierarchy.html"},
{text:"Class Members",url:"functions.html",children:[
{text:"All",url:"functions.html",children:[
{text:"a",url:"functions.html#index_a"},
{text:"b",url:"functions.html#index_b"},
{text:"c",url:"functions.html#index_c"},
{text:"d",url:"functions.html#index_d"},
{text:"e",url:"functions.html#index_e"},
{text:"g",url:"functions.html#index_g"},
{text:"i",url:"functions.html#index_i"},
{text:"l",url:"functions.html#index_l"},
{text:"m",url:"functions.html#index_m"},
{text:"p",url:"functions.html#index_p"},
{text:"r",url:"functions.html#index_r"},
{text:"s",url:"functions.html#index_s"},
{text:"t",url:"functions.html#index_t"},
{text:"u",url:"functions.html#index_u"}]},
{text:"Functions",url:"functions_func.html",children:[
{text:"a",url:"functions_func.html#index_a"},
{text:"b",url:"functions_func.html#index_b"},
{text:"c",url:"functions_func.html#index_c"},
{text:"d",url:"functions_func.html#index_d"},
{text:"e",url:"functions_func.html#index_e"},
{text:"g",url:"functions_func.html#index_g"},
{text:"i",url:"functions_func.html#index_i"},
{text:"l",url:"functions_func.html#index_l"},
{text:"p",url:"functions_func.html#index_p"},
{text:"r",url:"functions_func.html#index_r"},
{text:"s",url:"functions_func.html#index_s"},
{text:"t",url:"functions_func.html#index_t"},
{text:"u",url:"functions_func.html#index_u"}]},
{text:"Variables",url:"functions_vars.html"}]}]},
{text:"Files",url:"files.html",children:[
{text:"File List",url:"files.html"}]}]}
|
const { magenta, blue, green, yellow, red } = require('../helpers/colors');
const trm = console;
function trace(msg) {
process.stdout.write(`[${magenta('T')}] `);
msg.forEach(m => trm.debug(m));
}
function debug(msg) {
process.stdout.write(`[${blue('D')}] `);
msg.forEach(m => trm.debug(m));
}
function info(msg) {
process.stdout.write(`[${green('I')}] `);
msg.forEach(m => trm.info(m));
}
function warn(msg) {
process.stdout.write(`[${yellow('W')}] `);
msg.forEach(m => trm.warn(getMessage(m)));
}
function error(msg) {
process.stdout.write(`[${red('E')}] `);
msg.forEach(m => trm.error(getMessage(m)));
}
function getMessage(msg) {
try {
return typeof msg === 'object' ? JSON.stringify(msg, null, 2) : msg;
} catch (_) {
return msg;
}
}
module.exports = {
trace,
debug,
info,
warn,
error
};
|
//
// To-Do example
// You can replace this file with any of the examples from agilityjs.com...
// ... they work right out of the box!
//
//
// Item prototype
//
var item = $$({}, '<li><span data-bind="content"/> <button>x</button></li>', '& span { cursor:pointer; }', {
'click span': function(){
var input = prompt('Edit to-do item:', this.model.get('content'));
if (!input) return;
this.model.set({content:input});
},
'click button': function(){
this.destroy();
}
});
//
// List of items
//
var list = $$({}, '<div> <button id="new">New item</button> <ul></ul> </div>', {
'click #new': function(){
var newItem = $$(item, {content:'Click to edit'});
this.append(newItem, 'ul'); // add to container, appending at <ul>
}
});
$$.document.append(list);
|
const { spawn } = require("child_process");
const detect = require("detect-port");
const { GANACHE_PORT } = process.env;
const port = GANACHE_PORT !== undefined ? Number(GANACHE_PORT) : 8545;
function cleanup(ganacheChild) {
if (ganacheChild === undefined || ganacheChild === null) {
return;
}
return new Promise((resolve) => {
ganacheChild.on("exit", resolve);
ganacheChild.kill();
});
}
async function startGanache(args = []) {
const ganacheCliPath = require.resolve("ganache-cli/cli.js");
const ganacheChild = spawn("node", [ganacheCliPath, ...args]);
console.time("Ganache spawn");
// wait for ganache child process to start
await new Promise((resolve, reject) => {
ganacheChild.stdout.setEncoding("utf8");
ganacheChild.stderr.setEncoding("utf8");
function checkIsRunning(data) {
const log = data.toString();
const logLower = log.toLowerCase();
const isRunning = logLower.includes("listening on");
if (isRunning) {
return resolve();
}
const isError = logLower.includes("error") && !log.includes("mnemonic");
if (isError) {
return reject(new Error(log));
}
}
ganacheChild.stdout.on("data", checkIsRunning);
ganacheChild.stderr.on("data", checkIsRunning);
});
console.timeEnd("Ganache spawn");
return ganacheChild;
}
/**
* Returns true if port is already in use.
*/
async function isGanacheRunning() {
const suggestedFreePort = await detect(port);
return suggestedFreePort !== port;
}
async function ganacheSetup(args = []) {
if (await isGanacheRunning()) {
// if ganache is already running, we just reuse the instance
return null;
}
return startGanache(args);
}
module.exports.ganacheSetup = ganacheSetup;
module.exports.cleanup = cleanup;
|
/**
* @author Yosuke Ota
* See LICENSE file in root directory for full license.
*/
'use strict'
const utils = require('../utils')
const slotScopeAttribute = require('./syntaxes/slot-scope-attribute')
module.exports = {
meta: {
type: 'suggestion',
docs: {
description:
'disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+)',
categories: ['vue3-essential'],
url:
'https://eslint.vuejs.org/rules/no-deprecated-slot-scope-attribute.html'
},
fixable: 'code',
schema: [],
messages: {
forbiddenSlotScopeAttribute: '`slot-scope` are deprecated.'
}
},
/** @param {RuleContext} context */
create(context) {
const templateBodyVisitor = slotScopeAttribute.createTemplateBodyVisitor(
context,
{ fixToUpgrade: true }
)
return utils.defineTemplateBodyVisitor(context, templateBodyVisitor)
}
}
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_precision) {
var v = opt_precision;
if (undefined === v) {
v = Math.min(getDecimals(n), 3);
}
var base = Math.pow(10, v);
var f = ((n * base) | 0) % base;
return {v: v, f: f};
}
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"Uhr v\u00f6rmiddaachs",
"Uhr nommendaachs"
],
"DAY": [
"Sunndaach",
"Moondaach",
"Dinnsdaach",
"Metwoch",
"Dunnersdaach",
"Friidaach",
"Samsdaach"
],
"ERANAMES": [
"v\u00fcr Chrestus",
"noh Chrestus"
],
"ERAS": [
"v. Chr.",
"n. Chr."
],
"FIRSTDAYOFWEEK": 0,
"MONTH": [
"Jannewa",
"F\u00e4browa",
"M\u00e4\u00e4z",
"Aprell",
"M\u00e4i",
"Juuni",
"Juuli",
"Oujo\u00df",
"Sept\u00e4mber",
"Oktoober",
"Nov\u00e4mber",
"Dez\u00e4mber"
],
"SHORTDAY": [
"Su.",
"Mo.",
"Di.",
"Me.",
"Du.",
"Fr.",
"Sa."
],
"SHORTMONTH": [
"Jan",
"F\u00e4b",
"M\u00e4z",
"Apr",
"M\u00e4i",
"Jun",
"Jul",
"Ouj",
"S\u00e4p",
"Okt",
"Nov",
"Dez"
],
"STANDALONEMONTH": [
"Jannewa",
"F\u00e4browa",
"M\u00e4\u00e4z",
"Aprell",
"M\u00e4i",
"Juuni",
"Juuli",
"Oujo\u00df",
"Sept\u00e4mber",
"Oktoober",
"Nov\u00e4mber",
"Dez\u00e4mber"
],
"WEEKENDRANGE": [
5,
6
],
"fullDate": "EEEE, 'd\u00e4' d. MMMM y",
"longDate": "d. MMMM y",
"medium": "d. MMM. y HH:mm:ss",
"mediumDate": "d. MMM. y",
"mediumTime": "HH:mm:ss",
"short": "d. M. y HH:mm",
"shortDate": "d. M. y",
"shortTime": "HH:mm"
},
"NUMBER_FORMATS": {
"CURRENCY_SYM": "\u20ac",
"DECIMAL_SEP": ",",
"GROUP_SEP": "\u00a0",
"PATTERNS": [
{
"gSize": 3,
"lgSize": 3,
"maxFrac": 3,
"minFrac": 0,
"minInt": 1,
"negPre": "-",
"negSuf": "",
"posPre": "",
"posSuf": ""
},
{
"gSize": 3,
"lgSize": 3,
"maxFrac": 2,
"minFrac": 2,
"minInt": 1,
"negPre": "-",
"negSuf": "\u00a0\u00a4",
"posPre": "",
"posSuf": "\u00a0\u00a4"
}
]
},
"id": "ksh-de",
"localeID": "ksh_DE",
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
});
}]);
|
'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require('../../support'),
Sequelize = Support.Sequelize,
dialect = Support.getTestDialect(),
sinon = require('sinon');
if (dialect === 'sqlite') {
describe('[SQLITE Specific] ConnectionManager', () => {
describe('getConnection', () => {
it('should forward empty string storage to SQLite connector to create temporary disk-based database', () => {
// storage='' means anonymous disk-based database
const sequelize = new Sequelize('', '', '', { dialect: 'sqlite', storage: '' });
sinon.stub(sequelize.connectionManager, 'lib').value({
Database: function FakeDatabase(_s, _m, cb) {
cb();
return {};
}
});
sinon.stub(sequelize.connectionManager, 'connections').value({ default: { run: () => {} } });
const options = {};
sequelize.dialect.connectionManager.getConnection(options);
expect(options.storage).to.be.equal('');
});
});
});
}
|
// Here we are testing exceptions and the handler should be ours, we need to avoid tape-catch
import tape from 'tape';
import axios from 'axios';
import includes from 'lodash/includes';
import MockAdapter from 'axios-mock-adapter';
import splitChangesMock1 from './splitChanges.since.-1.json';
import mySegmentsMock from './mySegments.nico@split.io.json';
import splitChangesMock2 from './splitChanges.since.1500492097547.json';
import splitChangesMock3 from './splitChanges.since.1500492297547.json';
// Set the mock adapter on the default instance with a delay of 1.5 seconds.
const mock = new MockAdapter(axios, { delayResponse: 1500 });
import SettingsFactory from '../../utils/settings';
const settings = SettingsFactory({
core: {
authorizationKey: '<fake-token>'
}
});
mock.onGet(settings.url('/splitChanges?since=-1')).reply(200, splitChangesMock1);
mock.onGet(settings.url('/splitChanges?since=1500492097547')).reply(200, splitChangesMock2);
mock.onGet(settings.url('/splitChanges?since=1500492297547')).reply(200, splitChangesMock3);
mock.onGet(settings.url('/mySegments/nico@split.io')).reply(200, mySegmentsMock);
import { SplitFactory } from '../../';
const assertionsPlanned = 3;
let errCount = 0;
const factory = SplitFactory({
core: {
authorizationKey: '<fake-token-1>',
key: 'nico@split.io'
},
startup: {
eventsFirstPushWindow: 100000,
readyTimeout: 1.4,
requestTimeoutBeforeReady: 100000
},
scheduler: {
featuresRefreshRate: 3,
segmentsRefreshRate: 100000,
metricsRefreshRate: 100000,
impressionsRefreshRate: 100000,
eventsPushRate: 100000
}
});
tape('Error catching on callbacks - Browsers', assert => {
const client = factory.client();
client.on(client.Event.SDK_READY_TIMED_OUT, () => {
null.willThrowForTimedOut();
});
client.once(client.Event.SDK_READY, () => {
null.willThrowForReady();
});
client.once(client.Event.SDK_UPDATE, () => {
null.willThrowForUpdate();
});
const previousErrorHandler = window.onerror || null;
const exceptionHandler = err => {
if (includes(err, 'willThrowFor')) {
errCount++;
assert.pass(`But this should be loud, all should throw as Uncaught Exception: ${err}`);
if (errCount === assertionsPlanned) {
client.destroy();
window.onerror = previousErrorHandler;
assert.end();
}
return true;
}
assert.fail(err);
return false;
};
window.onerror = exceptionHandler;
});
|
import axios from 'axios';
import { GET_DELIVERY_ORDER } from '../types';
/**
* Request action
* @returns {{type: string}}
* @private
*/
const _getDeliveryOrderRequest = () => ({ type: GET_DELIVERY_ORDER.REQUEST });
/**
* Success action
* @returns {{type: string}}
* @private
*/
const _getDeliveryOrderSuccess = () => ({
type: GET_DELIVERY_ORDER.SUCCESS,
});
/**
* Set action
* @param {Object} data
* @return {{payload: {provider: Object}, type: string}}
* @private
*/
const _getDeliveryOrderSet = data => ({
type: GET_DELIVERY_ORDER.SET,
payload: data,
});
/**
* Error action for getInitData
* @param error
* @returns {{type: string, error: _getProvidersError.props}}
* @private
*/
const _getDeliveryOrderError = error => ({
type: GET_DELIVERY_ORDER.FAILURE,
error,
});
/**
* Trae los proveedores
* @returns {function(...[*]=)}
*/
export const getDeliveryOrder = id => async dispatch => {
dispatch(_getDeliveryOrderRequest());
try {
const { data } = await axios(`deliveryorders/${id}`);
dispatch(_getDeliveryOrderSuccess());
dispatch(_getDeliveryOrderSet(data));
} catch (error) {
dispatch(_getDeliveryOrderError(error));
}
};
|
(function($){"use strict";if(!String.prototype.includes){(function(){"use strict";var toString={}.toString;var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var indexOf="".indexOf;var includes=function(search){if(this==null){throw new TypeError}var string=String(this);if(search&&toString.call(search)=="[object RegExp]"){throw new TypeError}var stringLength=string.length;var searchString=String(search);var searchLength=searchString.length;var position=arguments.length>1?arguments[1]:undefined;var pos=position?Number(position):0;if(pos!=pos){pos=0}var start=Math.min(Math.max(pos,0),stringLength);if(searchLength+start>stringLength){return false}return indexOf.call(string,searchString,pos)!=-1};if(defineProperty){defineProperty(String.prototype,"includes",{value:includes,configurable:true,writable:true})}else{String.prototype.includes=includes}})()}if(!String.prototype.startsWith){(function(){"use strict";var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var toString={}.toString;var startsWith=function(search){if(this==null){throw new TypeError}var string=String(this);if(search&&toString.call(search)=="[object RegExp]"){throw new TypeError}var stringLength=string.length;var searchString=String(search);var searchLength=searchString.length;var position=arguments.length>1?arguments[1]:undefined;var pos=position?Number(position):0;if(pos!=pos){pos=0}var start=Math.min(Math.max(pos,0),stringLength);if(searchLength+start>stringLength){return false}var index=-1;while(++index<searchLength){if(string.charCodeAt(start+index)!=searchString.charCodeAt(index)){return false}}return true};if(defineProperty){defineProperty(String.prototype,"startsWith",{value:startsWith,configurable:true,writable:true})}else{String.prototype.startsWith=startsWith}})()}if(!Object.keys){Object.keys=function(o,k,r){r=[];for(k in o)r.hasOwnProperty.call(o,k)&&r.push(k);return r}}var valHooks={useDefault:false,_set:$.valHooks.select.set};$.valHooks.select.set=function(elem,value){if(value&&!valHooks.useDefault)$(elem).data("selected",true);return valHooks._set.apply(this,arguments)};var changed_arguments=null;var EventIsSupported=function(){try{new Event("change");return true}catch(e){return false}}();$.fn.triggerNative=function(eventName){var el=this[0],event;if(el.dispatchEvent){if(EventIsSupported){event=new Event(eventName,{bubbles:true})}else{event=document.createEvent("Event");event.initEvent(eventName,true,false)}el.dispatchEvent(event)}else if(el.fireEvent){event=document.createEventObject();event.eventType=eventName;el.fireEvent("on"+eventName,event)}else{this.trigger(eventName)}};$.expr.pseudos.icontains=function(obj,index,meta){var $obj=$(obj).find("a");var haystack=($obj.data("tokens")||$obj.text()).toString().toUpperCase();return haystack.includes(meta[3].toUpperCase())};$.expr.pseudos.ibegins=function(obj,index,meta){var $obj=$(obj).find("a");var haystack=($obj.data("tokens")||$obj.text()).toString().toUpperCase();return haystack.startsWith(meta[3].toUpperCase())};$.expr.pseudos.aicontains=function(obj,index,meta){var $obj=$(obj).find("a");var haystack=($obj.data("tokens")||$obj.data("normalizedText")||$obj.text()).toString().toUpperCase();return haystack.includes(meta[3].toUpperCase())};$.expr.pseudos.aibegins=function(obj,index,meta){var $obj=$(obj).find("a");var haystack=($obj.data("tokens")||$obj.data("normalizedText")||$obj.text()).toString().toUpperCase();return haystack.startsWith(meta[3].toUpperCase())};function normalizeToBase(text){var rExps=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];$.each(rExps,function(){text=text?text.replace(this.re,this.ch):""});return text}var escapeMap={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var unescapeMap={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"};var createEscaper=function(map){var escaper=function(match){return map[match]};var source="(?:"+Object.keys(map).join("|")+")";var testRegexp=RegExp(source);var replaceRegexp=RegExp(source,"g");return function(string){string=string==null?"":""+string;return testRegexp.test(string)?string.replace(replaceRegexp,escaper):string}};var htmlEscape=createEscaper(escapeMap);var htmlUnescape=createEscaper(unescapeMap);var Selectpicker=function(element,options){if(!valHooks.useDefault){$.valHooks.select.set=valHooks._set;valHooks.useDefault=true}this.$element=$(element);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=options;if(this.options.title===null){this.options.title=this.$element.attr("title")}var winPad=this.options.windowPadding;if(typeof winPad==="number"){this.options.windowPadding=[winPad,winPad,winPad,winPad]}this.val=Selectpicker.prototype.val;this.render=Selectpicker.prototype.render;this.refresh=Selectpicker.prototype.refresh;this.setStyle=Selectpicker.prototype.setStyle;this.selectAll=Selectpicker.prototype.selectAll;this.deselectAll=Selectpicker.prototype.deselectAll;this.destroy=Selectpicker.prototype.destroy;this.remove=Selectpicker.prototype.remove;this.show=Selectpicker.prototype.show;this.hide=Selectpicker.prototype.hide;this.init()};Selectpicker.VERSION="1.12.4";Selectpicker.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(numSelected,numTotal){return numSelected==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(numAll,numGroup){return[numAll==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",numGroup==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:false,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:false,container:false,hideDisabled:false,showSubtext:false,showIcon:true,showContent:true,dropupAuto:true,header:false,liveSearch:false,liveSearchPlaceholder:null,liveSearchNormalize:false,liveSearchStyle:"contains",actionsBox:false,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:false,template:{caret:'<span class="caret"></span>'},maxOptions:false,mobile:false,selectOnTab:false,dropdownAlignRight:false,windowPadding:0};Selectpicker.prototype={constructor:Selectpicker,init:function(){var that=this,id=this.$element.attr("id");this.$element.addClass("bs-select-hidden");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element.removeClass("bs-select-hidden");if(this.options.dropdownAlignRight===true)this.$menu.addClass("dropdown-menu-right");if(typeof id!=="undefined"){this.$button.attr("data-id",id);$('label[for="'+id+'"]').click(function(e){e.preventDefault();that.$button.focus()})}this.checkDisabled();this.clickListener();if(this.options.liveSearch)this.liveSearchListener();this.render();this.setStyle();this.setWidth();if(this.options.container)this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);if(this.options.mobile)this.mobile();this.$newElement.on({"hide.bs.dropdown":function(e){that.$menuInner.attr("aria-expanded",false);that.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){that.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){that.$menuInner.attr("aria-expanded",true);that.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){that.$element.trigger("shown.bs.select",e)}});if(that.$element[0].hasAttribute("required")){this.$element.on("invalid",function(){that.$button.addClass("bs-invalid");that.$element.on({"focus.bs.select":function(){that.$button.focus();that.$element.off("focus.bs.select")},"shown.bs.select":function(){that.$element.val(that.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){if(this.validity.valid)that.$button.removeClass("bs-invalid");that.$element.off("rendered.bs.select")}});that.$button.on("blur.bs.select",function(){that.$element.focus().blur();that.$button.off("blur.bs.select")})})}setTimeout(function(){that.$element.trigger("loaded.bs.select")})},createDropdown:function(){var showTick=this.multiple||this.options.showTick?" show-tick":"",inputGroup=this.$element.parent().hasClass("input-group")?" input-group-btn":"",autofocus=this.autofocus?" autofocus":"";var header=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"";var searchbox=this.options.liveSearch?'<div class="bs-searchbox">'+'<input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+htmlEscape(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search">'+"</div>":"";var actionsbox=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox">'+'<div class="btn-group btn-group-sm btn-block">'+'<button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+"</button>"+'<button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button>"+"</div>"+"</div>":"";var donebutton=this.multiple&&this.options.doneButton?'<div class="bs-donebutton">'+'<div class="btn-group btn-block">'+'<button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button>"+"</div>"+"</div>":"";var drop='<div class="btn-group bootstrap-select'+showTick+inputGroup+'">'+'<button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+autofocus+' role="button">'+'<span class="filter-option pull-left"></span> '+'<span class="bs-caret">'+this.options.template.caret+"</span>"+"</button>"+'<div class="dropdown-menu open" role="combobox">'+header+searchbox+actionsbox+'<ul class="dropdown-menu inner" role="listbox" aria-expanded="false">'+"</ul>"+donebutton+"</div>"+"</div>";return $(drop)},createView:function(){var $drop=this.createDropdown(),li=this.createLi();$drop.find("ul")[0].innerHTML=li;return $drop},reloadLi:function(){var li=this.createLi();this.$menuInner[0].innerHTML=li},createLi:function(){var that=this,_li=[],optID=0,titleOption=document.createElement("option"),liIndex=-1;var generateLI=function(content,index,classes,optgroup){return"<li"+(typeof classes!=="undefined"&&""!==classes?' class="'+classes+'"':"")+(typeof index!=="undefined"&&null!==index?' data-original-index="'+index+'"':"")+(typeof optgroup!=="undefined"&&null!==optgroup?'data-optgroup="'+optgroup+'"':"")+">"+content+"</li>"};var generateA=function(text,classes,inline,tokens){return'<a tabindex="0"'+(typeof classes!=="undefined"?' class="'+classes+'"':"")+(inline?' style="'+inline+'"':"")+(that.options.liveSearchNormalize?' data-normalized-text="'+normalizeToBase(htmlEscape($(text).html()))+'"':"")+(typeof tokens!=="undefined"||tokens!==null?' data-tokens="'+tokens+'"':"")+' role="option">'+text+'<span class="'+that.options.iconBase+" "+that.options.tickIcon+' check-mark"></span>'+"</a>"};if(this.options.title&&!this.multiple){liIndex--;if(!this.$element.find(".bs-title-option").length){var element=this.$element[0];titleOption.className="bs-title-option";titleOption.innerHTML=this.options.title;titleOption.value="";element.insertBefore(titleOption,element.firstChild);var $opt=$(element.options[element.selectedIndex]);if($opt.attr("selected")===undefined&&this.$element.data("selected")===undefined){titleOption.selected=true}}}var $selectOptions=this.$element.find("option");$selectOptions.each(function(index){var $this=$(this);liIndex++;if($this.hasClass("bs-title-option"))return;var optionClass=this.className||"",inline=htmlEscape(this.style.cssText),text=$this.data("content")?$this.data("content"):$this.html(),tokens=$this.data("tokens")?$this.data("tokens"):null,subtext=typeof $this.data("subtext")!=="undefined"?'<small class="text-muted">'+$this.data("subtext")+"</small>":"",icon=typeof $this.data("icon")!=="undefined"?'<span class="'+that.options.iconBase+" "+$this.data("icon")+'"></span> ':"",$parent=$this.parent(),isOptgroup=$parent[0].tagName==="OPTGROUP",isOptgroupDisabled=isOptgroup&&$parent[0].disabled,isDisabled=this.disabled||isOptgroupDisabled,prevHiddenIndex;if(icon!==""&&isDisabled){icon="<span>"+icon+"</span>"}if(that.options.hideDisabled&&(isDisabled&&!isOptgroup||isOptgroupDisabled)){prevHiddenIndex=$this.data("prevHiddenIndex");$this.next().data("prevHiddenIndex",prevHiddenIndex!==undefined?prevHiddenIndex:index);liIndex--;return}if(!$this.data("content")){text=icon+'<span class="text">'+text+subtext+"</span>"}if(isOptgroup&&$this.data("divider")!==true){if(that.options.hideDisabled&&isDisabled){if($parent.data("allOptionsDisabled")===undefined){var $options=$parent.children();$parent.data("allOptionsDisabled",$options.filter(":disabled").length===$options.length)}if($parent.data("allOptionsDisabled")){liIndex--;return}}var optGroupClass=" "+$parent[0].className||"";if($this.index()===0){optID+=1;var label=$parent[0].label,labelSubtext=typeof $parent.data("subtext")!=="undefined"?'<small class="text-muted">'+$parent.data("subtext")+"</small>":"",labelIcon=$parent.data("icon")?'<span class="'+that.options.iconBase+" "+$parent.data("icon")+'"></span> ':"";label=labelIcon+'<span class="text">'+htmlEscape(label)+labelSubtext+"</span>";if(index!==0&&_li.length>0){liIndex++;_li.push(generateLI("",null,"divider",optID+"div"))}liIndex++;_li.push(generateLI(label,null,"dropdown-header"+optGroupClass,optID))}if(that.options.hideDisabled&&isDisabled){liIndex--;return}_li.push(generateLI(generateA(text,"opt "+optionClass+optGroupClass,inline,tokens),index,"",optID))}else if($this.data("divider")===true){_li.push(generateLI("",index,"divider"))}else if($this.data("hidden")===true){prevHiddenIndex=$this.data("prevHiddenIndex");$this.next().data("prevHiddenIndex",prevHiddenIndex!==undefined?prevHiddenIndex:index);_li.push(generateLI(generateA(text,optionClass,inline,tokens),index,"hidden is-hidden"))}else{var showDivider=this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP";if(!showDivider&&that.options.hideDisabled){prevHiddenIndex=$this.data("prevHiddenIndex");if(prevHiddenIndex!==undefined){var prevHidden=$selectOptions.eq(prevHiddenIndex)[0].previousElementSibling;if(prevHidden&&prevHidden.tagName==="OPTGROUP"&&!prevHidden.disabled){showDivider=true}}}if(showDivider){liIndex++;_li.push(generateLI("",null,"divider",optID+"div"))}_li.push(generateLI(generateA(text,optionClass,inline,tokens),index))}that.liObj[index]=liIndex});if(!this.multiple&&this.$element.find("option:selected").length===0&&!this.options.title){this.$element.find("option").eq(0).prop("selected",true).attr("selected","selected")}return _li.join("")},findLis:function(){if(this.$lis==null)this.$lis=this.$menu.find("li");return this.$lis},render:function(updateLi){var that=this,notDisabled,$selectOptions=this.$element.find("option");if(updateLi!==false){$selectOptions.each(function(index){var $lis=that.findLis().eq(that.liObj[index]);that.setDisabled(index,this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled,$lis);that.setSelected(index,this.selected,$lis)})}this.togglePlaceholder();this.tabIndex();var selectedItems=$selectOptions.map(function(){if(this.selected){if(that.options.hideDisabled&&(this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled))return;var $this=$(this),icon=$this.data("icon")&&that.options.showIcon?'<i class="'+that.options.iconBase+" "+$this.data("icon")+'"></i> ':"",subtext;if(that.options.showSubtext&&$this.data("subtext")&&!that.multiple){subtext=' <small class="text-muted">'+$this.data("subtext")+"</small>"}else{subtext=""}if(typeof $this.attr("title")!=="undefined"){return $this.attr("title")}else if($this.data("content")&&that.options.showContent){return $this.data("content").toString()}else{return icon+$this.html()+subtext}}}).toArray();var title=!this.multiple?selectedItems[0]:selectedItems.join(this.options.multipleSeparator);if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var max=this.options.selectedTextFormat.split(">");if(max.length>1&&selectedItems.length>max[1]||max.length==1&&selectedItems.length>=2){notDisabled=this.options.hideDisabled?", [disabled]":"";var totalCount=$selectOptions.not('[data-divider="true"], [data-hidden="true"]'+notDisabled).length,tr8nText=typeof this.options.countSelectedText==="function"?this.options.countSelectedText(selectedItems.length,totalCount):this.options.countSelectedText;title=tr8nText.replace("{0}",selectedItems.length.toString()).replace("{1}",totalCount.toString())}}if(this.options.title==undefined){this.options.title=this.$element.attr("title")}if(this.options.selectedTextFormat=="static"){title=this.options.title}if(!title){title=typeof this.options.title!=="undefined"?this.options.title:this.options.noneSelectedText}this.$button.attr("title",htmlUnescape($.trim(title.replace(/<[^>]*>?/g,""))));this.$button.children(".filter-option").html(title);this.$element.trigger("rendered.bs.select")},setStyle:function(style,status){if(this.$element.attr("class")){this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""))}var buttonClass=style?style:this.options.style;if(status=="add"){this.$button.addClass(buttonClass)}else if(status=="remove"){this.$button.removeClass(buttonClass)}else{this.$button.removeClass(this.options.style);this.$button.addClass(buttonClass)}},liHeight:function(refresh){if(!refresh&&(this.options.size===false||this.sizeInfo))return;var newElement=document.createElement("div"),menu=document.createElement("div"),menuInner=document.createElement("ul"),divider=document.createElement("li"),li=document.createElement("li"),a=document.createElement("a"),text=document.createElement("span"),header=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(true):null,search=this.options.liveSearch?document.createElement("div"):null,actions=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(true):null,doneButton=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(true):null;text.className="text";newElement.className=this.$menu[0].parentNode.className+" open";menu.className="dropdown-menu open";menuInner.className="dropdown-menu inner";divider.className="divider";text.appendChild(document.createTextNode("Inner text"));a.appendChild(text);li.appendChild(a);menuInner.appendChild(li);menuInner.appendChild(divider);if(header)menu.appendChild(header);if(search){var input=document.createElement("input");search.className="bs-searchbox";input.className="form-control";search.appendChild(input);menu.appendChild(search)}if(actions)menu.appendChild(actions);menu.appendChild(menuInner);if(doneButton)menu.appendChild(doneButton);newElement.appendChild(menu);document.body.appendChild(newElement);var liHeight=a.offsetHeight,headerHeight=header?header.offsetHeight:0,searchHeight=search?search.offsetHeight:0,actionsHeight=actions?actions.offsetHeight:0,doneButtonHeight=doneButton?doneButton.offsetHeight:0,dividerHeight=$(divider).outerHeight(true),menuStyle=typeof getComputedStyle==="function"?getComputedStyle(menu):false,$menu=menuStyle?null:$(menu),menuPadding={vert:parseInt(menuStyle?menuStyle.paddingTop:$menu.css("paddingTop"))+parseInt(menuStyle?menuStyle.paddingBottom:$menu.css("paddingBottom"))+parseInt(menuStyle?menuStyle.borderTopWidth:$menu.css("borderTopWidth"))+parseInt(menuStyle?menuStyle.borderBottomWidth:$menu.css("borderBottomWidth")),horiz:parseInt(menuStyle?menuStyle.paddingLeft:$menu.css("paddingLeft"))+parseInt(menuStyle?menuStyle.paddingRight:$menu.css("paddingRight"))+parseInt(menuStyle?menuStyle.borderLeftWidth:$menu.css("borderLeftWidth"))+parseInt(menuStyle?menuStyle.borderRightWidth:$menu.css("borderRightWidth"))},menuExtras={vert:menuPadding.vert+parseInt(menuStyle?menuStyle.marginTop:$menu.css("marginTop"))+parseInt(menuStyle?menuStyle.marginBottom:$menu.css("marginBottom"))+2,horiz:menuPadding.horiz+parseInt(menuStyle?menuStyle.marginLeft:$menu.css("marginLeft"))+parseInt(menuStyle?menuStyle.marginRight:$menu.css("marginRight"))+2};document.body.removeChild(newElement);this.sizeInfo={liHeight:liHeight,headerHeight:headerHeight,searchHeight:searchHeight,actionsHeight:actionsHeight,doneButtonHeight:doneButtonHeight,dividerHeight:dividerHeight,menuPadding:menuPadding,menuExtras:menuExtras}},setSize:function(){this.findLis();this.liHeight();if(this.options.header)this.$menu.css("padding-top",0);if(this.options.size===false)return;var that=this,$menu=this.$menu,$menuInner=this.$menuInner,$window=$(window),selectHeight=this.$newElement[0].offsetHeight,selectWidth=this.$newElement[0].offsetWidth,liHeight=this.sizeInfo["liHeight"],headerHeight=this.sizeInfo["headerHeight"],searchHeight=this.sizeInfo["searchHeight"],actionsHeight=this.sizeInfo["actionsHeight"],doneButtonHeight=this.sizeInfo["doneButtonHeight"],divHeight=this.sizeInfo["dividerHeight"],menuPadding=this.sizeInfo["menuPadding"],menuExtras=this.sizeInfo["menuExtras"],notDisabled=this.options.hideDisabled?".disabled":"",menuHeight,menuWidth,getHeight,getWidth,selectOffsetTop,selectOffsetBot,selectOffsetLeft,selectOffsetRight,getPos=function(){var pos=that.$newElement.offset(),$container=$(that.options.container),containerPos;if(that.options.container&&!$container.is("body")){containerPos=$container.offset();containerPos.top+=parseInt($container.css("borderTopWidth"));containerPos.left+=parseInt($container.css("borderLeftWidth"))}else{containerPos={top:0,left:0}}var winPad=that.options.windowPadding;selectOffsetTop=pos.top-containerPos.top-$window.scrollTop();selectOffsetBot=$window.height()-selectOffsetTop-selectHeight-containerPos.top-winPad[2];selectOffsetLeft=pos.left-containerPos.left-$window.scrollLeft();selectOffsetRight=$window.width()-selectOffsetLeft-selectWidth-containerPos.left-winPad[1];selectOffsetTop-=winPad[0];selectOffsetLeft-=winPad[3]};getPos();if(this.options.size==="auto"){var getSize=function(){var minHeight,hasClass=function(className,include){return function(element){if(include){return element.classList?element.classList.contains(className):$(element).hasClass(className)}else{return!(element.classList?element.classList.contains(className):$(element).hasClass(className))}}},lis=that.$menuInner[0].getElementsByTagName("li"),lisVisible=Array.prototype.filter?Array.prototype.filter.call(lis,hasClass("hidden",false)):that.$lis.not(".hidden"),optGroup=Array.prototype.filter?Array.prototype.filter.call(lisVisible,hasClass("dropdown-header",true)):lisVisible.filter(".dropdown-header");getPos();menuHeight=selectOffsetBot-menuExtras.vert;menuWidth=selectOffsetRight-menuExtras.horiz;if(that.options.container){if(!$menu.data("height"))$menu.data("height",$menu.height());getHeight=$menu.data("height");if(!$menu.data("width"))$menu.data("width",$menu.width());getWidth=$menu.data("width")}else{getHeight=$menu.height();getWidth=$menu.width()}if(that.options.dropupAuto){that.$newElement.toggleClass("dropup",selectOffsetTop>selectOffsetBot&&menuHeight-menuExtras.vert<getHeight)}if(that.$newElement.hasClass("dropup")){menuHeight=selectOffsetTop-menuExtras.vert}if(that.options.dropdownAlignRight==="auto"){$menu.toggleClass("dropdown-menu-right",selectOffsetLeft>selectOffsetRight&&menuWidth-menuExtras.horiz<getWidth-selectWidth)}if(lisVisible.length+optGroup.length>3){minHeight=liHeight*3+menuExtras.vert-2}else{minHeight=0}$menu.css({"max-height":menuHeight+"px",overflow:"hidden","min-height":minHeight+headerHeight+searchHeight+actionsHeight+doneButtonHeight+"px"});$menuInner.css({"max-height":menuHeight-headerHeight-searchHeight-actionsHeight-doneButtonHeight-menuPadding.vert+"px","overflow-y":"auto","min-height":Math.max(minHeight-menuPadding.vert,0)+"px"})};getSize();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",getSize);$window.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",getSize)}else if(this.options.size&&this.options.size!="auto"&&this.$lis.not(notDisabled).length>this.options.size){var optIndex=this.$lis.not(".divider").not(notDisabled).children().slice(0,this.options.size).last().parent().index(),divLength=this.$lis.slice(0,optIndex+1).filter(".divider").length;menuHeight=liHeight*this.options.size+divLength*divHeight+menuPadding.vert;if(that.options.container){if(!$menu.data("height"))$menu.data("height",$menu.height());getHeight=$menu.data("height")}else{getHeight=$menu.height()}if(that.options.dropupAuto){this.$newElement.toggleClass("dropup",selectOffsetTop>selectOffsetBot&&menuHeight-menuExtras.vert<getHeight)}$menu.css({"max-height":menuHeight+headerHeight+searchHeight+actionsHeight+doneButtonHeight+"px",overflow:"hidden","min-height":""});$menuInner.css({"max-height":menuHeight-menuPadding.vert+"px","overflow-y":"auto","min-height":""})}},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var $selectClone=this.$menu.parent().clone().appendTo("body"),$selectClone2=this.options.container?this.$newElement.clone().appendTo("body"):$selectClone,ulWidth=$selectClone.children(".dropdown-menu").outerWidth(),btnWidth=$selectClone2.css("width","auto").children("button").outerWidth();$selectClone.remove();$selectClone2.remove();this.$newElement.css("width",Math.max(ulWidth,btnWidth)+"px")}else if(this.options.width==="fit"){this.$menu.css("min-width","");this.$newElement.css("width","").addClass("fit-width")}else if(this.options.width){this.$menu.css("min-width","");this.$newElement.css("width",this.options.width)}else{this.$menu.css("min-width","");this.$newElement.css("width","")}if(this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"){this.$newElement.removeClass("fit-width")}},selectPosition:function(){this.$bsContainer=$('<div class="bs-container" />');var that=this,$container=$(this.options.container),pos,containerPos,actualHeight,getPlacement=function($element){that.$bsContainer.addClass($element.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",$element.hasClass("dropup"));pos=$element.offset();if(!$container.is("body")){containerPos=$container.offset();containerPos.top+=parseInt($container.css("borderTopWidth"))-$container.scrollTop();containerPos.left+=parseInt($container.css("borderLeftWidth"))-$container.scrollLeft()}else{containerPos={top:0,left:0}}actualHeight=$element.hasClass("dropup")?0:$element[0].offsetHeight;that.$bsContainer.css({top:pos.top-containerPos.top+actualHeight,left:pos.left-containerPos.left,width:$element[0].offsetWidth})};this.$button.on("click",function(){var $this=$(this);if(that.isDisabled()){return}getPlacement(that.$newElement);that.$bsContainer.appendTo(that.options.container).toggleClass("open",!$this.hasClass("open")).append(that.$menu)});$(window).on("resize scroll",function(){getPlacement(that.$newElement)});this.$element.on("hide.bs.select",function(){that.$menu.data("height",that.$menu.height());that.$bsContainer.detach()})},setSelected:function(index,selected,$lis){if(!$lis){this.togglePlaceholder();$lis=this.findLis().eq(this.liObj[index])}$lis.toggleClass("selected",selected).find("a").attr("aria-selected",selected)},setDisabled:function(index,disabled,$lis){if(!$lis){$lis=this.findLis().eq(this.liObj[index])}if(disabled){$lis.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",true)}else{$lis.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",false)}},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var that=this;if(this.isDisabled()){this.$newElement.addClass("disabled");this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",true)}else{if(this.$button.hasClass("disabled")){this.$newElement.removeClass("disabled");this.$button.removeClass("disabled").attr("aria-disabled",false)}if(this.$button.attr("tabindex")==-1&&!this.$element.data("tabindex")){this.$button.removeAttr("tabindex")}}this.$button.click(function(){return!that.isDisabled()})},togglePlaceholder:function(){var value=this.$element.val();this.$button.toggleClass("bs-placeholder",value===null||value===""||value.constructor===Array&&value.length===0)},tabIndex:function(){if(this.$element.data("tabindex")!==this.$element.attr("tabindex")&&(this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98")){this.$element.data("tabindex",this.$element.attr("tabindex"));this.$button.attr("tabindex",this.$element.data("tabindex"))}this.$element.attr("tabindex",-98)},clickListener:function(){var that=this,$document=$(document);$document.data("spaceSelect",false);this.$button.on("keyup",function(e){if(/(32)/.test(e.keyCode.toString(10))&&$document.data("spaceSelect")){e.preventDefault();$document.data("spaceSelect",false)}});this.$button.on("click",function(){that.setSize()});this.$element.on("shown.bs.select",function(){if(!that.options.liveSearch&&!that.multiple){that.$menuInner.find(".selected a").focus()}else if(!that.multiple){var selectedIndex=that.liObj[that.$element[0].selectedIndex];if(typeof selectedIndex!=="number"||that.options.size===false)return;var offset=that.$lis.eq(selectedIndex)[0].offsetTop-that.$menuInner[0].offsetTop;offset=offset-that.$menuInner[0].offsetHeight/2+that.sizeInfo.liHeight/2;that.$menuInner[0].scrollTop=offset}});this.$menuInner.on("click","li a",function(e){var $this=$(this),clickedIndex=$this.parent().data("originalIndex"),prevValue=that.$element.val(),prevIndex=that.$element.prop("selectedIndex"),triggerChange=true;if(that.multiple&&that.options.maxOptions!==1){e.stopPropagation()}e.preventDefault();if(!that.isDisabled()&&!$this.parent().hasClass("disabled")){var $options=that.$element.find("option"),$option=$options.eq(clickedIndex),state=$option.prop("selected"),$optgroup=$option.parent("optgroup"),maxOptions=that.options.maxOptions,maxOptionsGrp=$optgroup.data("maxOptions")||false;if(!that.multiple){$options.prop("selected",false);$option.prop("selected",true);that.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",false);that.setSelected(clickedIndex,true)}else{$option.prop("selected",!state);that.setSelected(clickedIndex,!state);$this.blur();if(maxOptions!==false||maxOptionsGrp!==false){var maxReached=maxOptions<$options.filter(":selected").length,maxReachedGrp=maxOptionsGrp<$optgroup.find("option:selected").length;if(maxOptions&&maxReached||maxOptionsGrp&&maxReachedGrp){if(maxOptions&&maxOptions==1){$options.prop("selected",false);$option.prop("selected",true);that.$menuInner.find(".selected").removeClass("selected");that.setSelected(clickedIndex,true)}else if(maxOptionsGrp&&maxOptionsGrp==1){$optgroup.find("option:selected").prop("selected",false);$option.prop("selected",true);var optgroupID=$this.parent().data("optgroup");that.$menuInner.find('[data-optgroup="'+optgroupID+'"]').removeClass("selected");that.setSelected(clickedIndex,true)}else{var maxOptionsText=typeof that.options.maxOptionsText==="string"?[that.options.maxOptionsText,that.options.maxOptionsText]:that.options.maxOptionsText,maxOptionsArr=typeof maxOptionsText==="function"?maxOptionsText(maxOptions,maxOptionsGrp):maxOptionsText,maxTxt=maxOptionsArr[0].replace("{n}",maxOptions),maxTxtGrp=maxOptionsArr[1].replace("{n}",maxOptionsGrp),$notify=$('<div class="notify"></div>');if(maxOptionsArr[2]){maxTxt=maxTxt.replace("{var}",maxOptionsArr[2][maxOptions>1?0:1]);maxTxtGrp=maxTxtGrp.replace("{var}",maxOptionsArr[2][maxOptionsGrp>1?0:1])}$option.prop("selected",false);that.$menu.append($notify);if(maxOptions&&maxReached){$notify.append($("<div>"+maxTxt+"</div>"));triggerChange=false;that.$element.trigger("maxReached.bs.select")}if(maxOptionsGrp&&maxReachedGrp){$notify.append($("<div>"+maxTxtGrp+"</div>"));triggerChange=false;that.$element.trigger("maxReachedGrp.bs.select")}setTimeout(function(){that.setSelected(clickedIndex,false)},10);$notify.delay(750).fadeOut(300,function(){$(this).remove()})}}}}if(!that.multiple||that.multiple&&that.options.maxOptions===1){that.$button.focus()}else if(that.options.liveSearch){that.$searchbox.focus()}if(triggerChange){if(prevValue!=that.$element.val()&&that.multiple||prevIndex!=that.$element.prop("selectedIndex")&&!that.multiple){changed_arguments=[clickedIndex,$option.prop("selected"),state];that.$element.triggerNative("change")}}}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(e){if(e.currentTarget==this){e.preventDefault();e.stopPropagation();if(that.options.liveSearch&&!$(e.target).hasClass("close")){that.$searchbox.focus()}else{that.$button.focus()}}});this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault();e.stopPropagation();if(that.options.liveSearch){that.$searchbox.focus()}else{that.$button.focus()}});this.$menu.on("click",".popover-title .close",function(){that.$button.click()});this.$searchbox.on("click",function(e){e.stopPropagation()});this.$menu.on("click",".actions-btn",function(e){if(that.options.liveSearch){that.$searchbox.focus()}else{that.$button.focus()}e.preventDefault();e.stopPropagation();if($(this).hasClass("bs-select-all")){that.selectAll()}else{that.deselectAll()}});this.$element.change(function(){that.render(false);that.$element.trigger("changed.bs.select",changed_arguments);changed_arguments=null})},liveSearchListener:function(){var that=this,$no_results=$('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api",function(){that.$menuInner.find(".active").removeClass("active");if(!!that.$searchbox.val()){that.$searchbox.val("");that.$lis.not(".is-hidden").removeClass("hidden");if(!!$no_results.parent().length)$no_results.remove()}if(!that.multiple)that.$menuInner.find(".selected").addClass("active");setTimeout(function(){that.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(e){e.stopPropagation()});this.$searchbox.on("input propertychange",function(){that.$lis.not(".is-hidden").removeClass("hidden");that.$lis.filter(".active").removeClass("active");$no_results.remove();if(that.$searchbox.val()){var $searchBase=that.$lis.not(".is-hidden, .divider, .dropdown-header"),$hideItems;if(that.options.liveSearchNormalize){$hideItems=$searchBase.not(":a"+that._searchStyle()+'("'+normalizeToBase(that.$searchbox.val())+'")')}else{$hideItems=$searchBase.not(":"+that._searchStyle()+'("'+that.$searchbox.val()+'")')}if($hideItems.length===$searchBase.length){$no_results.html(that.options.noneResultsText.replace("{0}",'"'+htmlEscape(that.$searchbox.val())+'"'));that.$menuInner.append($no_results);that.$lis.addClass("hidden")}else{$hideItems.addClass("hidden");var $lisVisible=that.$lis.not(".hidden"),$foundDiv;$lisVisible.each(function(index){var $this=$(this);if($this.hasClass("divider")){if($foundDiv===undefined){$this.addClass("hidden")}else{if($foundDiv)$foundDiv.addClass("hidden");$foundDiv=$this}}else if($this.hasClass("dropdown-header")&&$lisVisible.eq(index+1).data("optgroup")!==$this.data("optgroup")){$this.addClass("hidden")}else{$foundDiv=null}});if($foundDiv)$foundDiv.addClass("hidden");$searchBase.not(".hidden").first().addClass("active");that.$menuInner.scrollTop(0)}}})},_searchStyle:function(){var styles={begins:"ibegins",startsWith:"ibegins"};return styles[this.options.liveSearchStyle]||"icontains"},val:function(value){if(typeof value!=="undefined"){this.$element.val(value);this.render();return this.$element}else{return this.$element.val()}},changeAll:function(status){if(!this.multiple)return;if(typeof status==="undefined")status=true;this.findLis();var $options=this.$element.find("option"),$lisVisible=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),lisVisLen=$lisVisible.length,selectedOptions=[];if(status){if($lisVisible.filter(".selected").length===$lisVisible.length)return}else{if($lisVisible.filter(".selected").length===0)return}$lisVisible.toggleClass("selected",status);for(var i=0;i<lisVisLen;i++){var origIndex=$lisVisible[i].getAttribute("data-original-index");selectedOptions[selectedOptions.length]=$options.eq(origIndex)[0]}$(selectedOptions).prop("selected",status);this.render(false);this.togglePlaceholder();this.$element.triggerNative("change")},selectAll:function(){return this.changeAll(true)},deselectAll:function(){return this.changeAll(false)},toggle:function(e){e=e||window.event;if(e)e.stopPropagation();this.$button.trigger("click")},keydown:function(e){var $this=$(this),$parent=$this.is("input")?$this.parent().parent():$this.parent(),$items,that=$parent.data("this"),index,prevIndex,isActive,selector=":not(.disabled, .hidden, .dropdown-header, .divider)",keyCodeMap={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};isActive=that.$newElement.hasClass("open");if(!isActive&&(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||e.keyCode>=65&&e.keyCode<=90)){if(!that.options.container){that.setSize();that.$menu.parent().addClass("open");isActive=true}else{that.$button.trigger("click")}that.$searchbox.focus();return}if(that.options.liveSearch){if(/(^9$|27)/.test(e.keyCode.toString(10))&&isActive){e.preventDefault();e.stopPropagation();that.$menuInner.click();that.$button.focus()}}if(/(38|40)/.test(e.keyCode.toString(10))){$items=that.$lis.filter(selector);if(!$items.length)return;if(!that.options.liveSearch){index=$items.index($items.find("a").filter(":focus").parent())}else{index=$items.index($items.filter(".active"))}prevIndex=that.$menuInner.data("prevIndex");if(e.keyCode==38){if((that.options.liveSearch||index==prevIndex)&&index!=-1)index--;if(index<0)index+=$items.length}else if(e.keyCode==40){if(that.options.liveSearch||index==prevIndex)index++;index=index%$items.length}that.$menuInner.data("prevIndex",index);if(!that.options.liveSearch){$items.eq(index).children("a").focus()}else{e.preventDefault();if(!$this.hasClass("dropdown-toggle")){$items.removeClass("active").eq(index).addClass("active").children("a").focus();$this.focus()}}}else if(!$this.is("input")){var keyIndex=[],count,prevKey;$items=that.$lis.filter(selector);$items.each(function(i){if($.trim($(this).children("a").text().toLowerCase()).substring(0,1)==keyCodeMap[e.keyCode]){keyIndex.push(i)}});count=$(document).data("keycount");count++;$(document).data("keycount",count);prevKey=$.trim($(":focus").text().toLowerCase()).substring(0,1);if(prevKey!=keyCodeMap[e.keyCode]){count=1;$(document).data("keycount",count)}else if(count>=keyIndex.length){$(document).data("keycount",0);if(count>keyIndex.length)count=1}$items.eq(keyIndex[count-1]).children("a").focus()}if((/(13|32)/.test(e.keyCode.toString(10))||/(^9$)/.test(e.keyCode.toString(10))&&that.options.selectOnTab)&&isActive){if(!/(32)/.test(e.keyCode.toString(10)))e.preventDefault();if(!that.options.liveSearch){var elem=$(":focus");elem.click();elem.focus();e.preventDefault();$(document).data("spaceSelect",true)}else if(!/(32)/.test(e.keyCode.toString(10))){that.$menuInner.find(".active a").click();$this.focus()}$(document).data("keycount",0)}if(/(^9$|27)/.test(e.keyCode.toString(10))&&isActive&&(that.multiple||that.options.liveSearch)||/(27)/.test(e.keyCode.toString(10))&&!isActive){that.$menu.parent().removeClass("open");if(that.options.container)that.$newElement.removeClass("open");that.$button.focus()}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(true);this.setStyle();this.setWidth();if(this.$lis)this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();if(this.$bsContainer){this.$bsContainer.remove()}else{this.$menu.remove()}this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};function Plugin(option){var args=arguments;var _option=option;[].shift.apply(args);var value;var chain=this.each(function(){var $this=$(this);if($this.is("select")){var data=$this.data("selectpicker"),options=typeof _option=="object"&&_option;if(!data){var config=$.extend({},Selectpicker.DEFAULTS,$.fn.selectpicker.defaults||{},$this.data(),options);config.template=$.extend({},Selectpicker.DEFAULTS.template,$.fn.selectpicker.defaults?$.fn.selectpicker.defaults.template:{},$this.data().template,options.template);$this.data("selectpicker",data=new Selectpicker(this,config))}else if(options){for(var i in options){if(options.hasOwnProperty(i)){data.options[i]=options[i]}}}if(typeof _option=="string"){if(data[_option]instanceof Function){value=data[_option].apply(data,args)}else{value=data.options[_option]}}}});if(typeof value!=="undefined"){return value}else{return chain}}var old=$.fn.selectpicker;$.fn.selectpicker=Plugin;$.fn.selectpicker.Constructor=Selectpicker;$.fn.selectpicker.noConflict=function(){$.fn.selectpicker=old;return this};$(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',Selectpicker.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(e){e.stopPropagation()});$(window).on("load.bs.select.data-api",function(){$(".selectpicker").each(function(){var $selectpicker=$(this);Plugin.call($selectpicker,$selectpicker.data())})})})(jQuery);
|
'use strict';
describe('nrgiContractsMethodSrvc', function () {
beforeEach(module('app'));
var nrgiContractsMethodSrvc;
var $q, nrgiContractsSrvc;
var $qDeferStub, $qDeferSpy, expectedPromise;
beforeEach(inject(function (_nrgiContractsMethodSrvc_, _$q_, _nrgiContractsSrvc_) {
$q = _$q_;
nrgiContractsSrvc = _nrgiContractsSrvc_;
nrgiContractsMethodSrvc = _nrgiContractsMethodSrvc_;
}));
describe('#createContract', function () {
var nrgiContractSrvcStub;
it('resolves the deferred in positive case', function () {
expectedPromise = 'POSITIVE';
nrgiContractSrvcStub = sinon.stub(nrgiContractsSrvc.prototype, '$save', function () {
return {
then: function (callback) {
callback();
}
};
});
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
resolve: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.createContract([expectedPromise]).should.be.equal(expectedPromise);
$qDeferSpy.called.should.be.equal(true);
});
it('resolves the deferred in positive case', function () {
expectedPromise = 'NEGATIVE';
var REJECT_RESPONSE = {
data: {reason: 'REJECT_INSERTION'}
};
nrgiContractSrvcStub = sinon.stub(nrgiContractsSrvc.prototype, '$save', function () {
return {
then: function (callbackPositive, callbackNegative) {
callbackNegative(REJECT_RESPONSE);
}
};
});
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
reject: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.createContract([expectedPromise]).should.be.equal(expectedPromise);
$qDeferSpy.should.have.been.calledWith(REJECT_RESPONSE.data.reason);
});
afterEach(function () {
nrgiContractSrvcStub.restore();
});
});
describe('#updateContract', function () {
it('resolves the deferred in positive case', function () {
expectedPromise = 'POSITIVE';
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
resolve: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.updateContract({
$update: function () {
return {
then: function (callbackPositive) {
callbackPositive();
}
};
}
}).should.be.equal(expectedPromise);
$qDeferSpy.called.should.be.equal(true);
});
it('rejects the deferred in negative case', function () {
expectedPromise = 'NEGATIVE';
var REASON = 'REASON';
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
reject: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.updateContract({
$update: function () {
return {
then: function (uselessCallbackPositive, callbackNegative) {
callbackNegative({
data: {reason: REASON}
});
}
};
}
}).should.be.equal(expectedPromise);
$qDeferSpy.should.have.been.calledWith(REASON);
});
});
describe('#deleteContract', function () {
var nrgiContractSrvcStub;
it('resolves the deferred in positive case', function () {
expectedPromise = 'POSITIVE';
nrgiContractSrvcStub = sinon.stub(nrgiContractsSrvc.prototype, '$delete', function () {
return {
then: function (callback) {
callback();
}
};
});
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
resolve: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.deleteContract([expectedPromise]).should.be.equal(expectedPromise);
$qDeferSpy.called.should.be.equal(true);
});
it('resolves the deferred in negative case', function () {
expectedPromise = 'NEGATIVE';
var REJECT_RESPONSE = {
data: {reason: 'REJECT_INSERTION'}
};
nrgiContractSrvcStub = sinon.stub(nrgiContractsSrvc.prototype, '$delete', function () {
return {
then: function (callbackPositive, callbackNegative) {
callbackNegative(REJECT_RESPONSE);
}
};
});
$qDeferSpy = sinon.spy();
$qDeferStub = sinon.stub($q, 'defer', function () {
return {
reject: $qDeferSpy,
promise: expectedPromise
};
});
nrgiContractsMethodSrvc.deleteContract([expectedPromise]).should.be.equal(expectedPromise);
$qDeferSpy.should.have.been.calledWith(REJECT_RESPONSE.data.reason);
});
afterEach(function () {
$qDeferStub.restore();
});
});
afterEach(function () {
$qDeferStub.restore();
});
});
|
(function() {
'use strict';
angular.module('ag-admin').directive('agHover', function() {
return {
restrict: 'A',
controller: function($scope) {
var target;
this.setTarget = function(element) {
target = element;
};
this.toggleHide = $scope.toggleHide = function(flag) {
target.toggleClass('hide', flag);
};
},
link: function(scope, element, attr) {
element.on('mouseover', function(event) {
scope.toggleHide(false);
});
element.on('mouseleave', function(event) {
scope.toggleHide(true);
});
}
};
}).directive('agHoverTarget', function() {
return {
require: '^agHover',
restrict: 'A',
link: function(scope, element, attr, hoverCtrl) {
if (hoverCtrl) {
hoverCtrl.setTarget(element);
hoverCtrl.toggleHide(true);
}
}
};
});
})();
|
import React from 'react'
import './price.css'
import PriceCard from './PriceCards'
const Price = () => {
return (
<section className='section-white' id='pricing'>
<div className="container">
<div className="row">
<div className="col-md-12 text-center padding-bottom-40">
<h2>Pricing fro every business, at any stage</h2>
</div>
{
PriceCard.map(price => (
<div className="col-md-4">
<div className="price-box">
<ul className="pricing-list">
<li className="price-title">{price.title}</li>
<li className="price-value">{price.value}</li>
<li className="price-subtitle">{price.subtitle}</li>
<li className="price-text"><i>{price.icon}</i>{price.price.custom}</li>
<li className="price-text"><i>{price.icon}</i>{price.price.mailbox}</li>
<li className="price-text"><i>{price.icon}</i>{price.price.free}</li>
<li className="price-text"><i>{price.icon}</i>{price.price.api}</li>
<li className="price-tag-line"><a href="#">FREE 15-DAY TRIAL</a></li>
</ul>
</div>
</div>
))
}
</div>
</div>
</section>
)
}
export default Price
|
var showProgress = false;
var confDialog;
function runAPI(parameters, onSuccess, onKO, onFailure) {
showProgress = true;
var timeout = setTimeout(function() { progressDialog(true); }, 2000);
$.post("api.php", parameters, function(data, timeout) {
progressDialog(false, timeout);
if (data.status == "ok") {
onSuccess(data);
} else {
if (onKO != undefined) {
onKO(data);
} else {
alert("ERROR: " + data.errmsg);
}
}
}, 'json')
.fail(function(timeout, jqXHR, textStatus, errorThrown) {
progressDialog(false, timeout);
if (onFailure != undefined) {
onFailure();
} else {
alert("Unspecified error " + textStatus);
}
});
}
function progressDialog(show, timeout) {
if (!show && timeout != undefined) {
clearTimeout(timeout);
}
if (show && showProgress) {
$('#progressDialog').modal('show');
} else {
showProgress = false;
$('#progressDialog').modal('hide');
}
}
function confirmDialog(msg, onOK) {
if (confDialog == undefined) {
confDialog = $('#confirmDialog');
}
confDialog.find('#confirmMsg').text(msg);
confDialog.find('.submitButton').unbind('click');
if (onOK != undefined) {
confDialog.find('.submitButton').click(onOK);
}
confDialog.modal('show');
}
/******************************************************
TV Show
*****************************************************/
/******************************************************
Season
*****************************************************/
function loadTVShowSeasons(showId) {
var showElem = $('#show' + showId);
showElem.find('.seasons').removeClass('notFetched');
runAPI(
{
action:"getTVShowSeasons",
showId:showId
},
function(data) {
for (var i = 0; i < data.result.length; i++) {
Season.add(data.result[i]);
}
Season.sort(showElem);
}
);
}
function deleteSeason(e, seasonElement) {
e.preventDefault();
var goOn = confirm("DELETE SEASON " + seasonElement.attr('id').substr(6));
if (goOn) {
runAPI(
{
action:"removeSeason",
seasonId:seasonElement.attr('id').substr(6)
},
function(data) {
seasonElement.remove();
});
}
}
function toggleSeason(seasonElement) {
var toggleButton = seasonElement.find('.toggleSeason .glyphicon');
if (toggleButton.hasClass('glyphicon-collapse-down')) {
toggleButton.removeClass('glyphicon-collapse-down');
toggleButton.addClass('glyphicon-collapse-up');
} else {
toggleButton.removeClass('glyphicon-collapse-up');
toggleButton.addClass('glyphicon-collapse-down');
}
var epList = seasonElement.find('.episodeList');
if (epList.hasClass('notFetched')) {
loadSeasonEpisodes(seasonElement.attr('id').substr(6));
}
seasonElement.find('.episodes').slideToggle();
var scraperList = seasonElement.find('.scraperList');
if (scraperList.hasClass('notFetched')) {
loadSeasonScrapers(seasonElement.attr('id').substr(6));
}
seasonElement.find('.scrapers').slideToggle();
}
function refreshSeason(seasonElement) {
runAPI(
{
action:"getSeason",
seasonId:seasonElement.attr('id').substr(6)
},
function(dataSeason) {
Season.set(dataSeason.result, seasonElement);
TVShow.refresh(seasonElement.closest('.show'));
});
}
function editSeason(e, seasonElement) {
e.preventDefault();
seasonId = seasonElement.attr('id').substr(6);
seasonN = seasonElement.find('.seasonN').first().text();
seasonStatus = seasonElement.find('.seasonStatus').first().text();
setEditSeasonDialog(seasonId, seasonN, seasonStatus, function (e) {
e.preventDefault();
runAPI(
{
action:"setSeason",
seasonId:seasonId,
n:$('#seasonEditDialog #editSeasonN').val(),
status:$('#seasonEditDialog #editSeasonStatus').find(':selected').first().val()
},
function(data) {
$('#seasonEditDialog').modal('hide');
refreshSeason(seasonElement);
}
);
});
$('#seasonEditDialog').modal('show');
}
function setEditSeasonDialog(seasonId, seasonN, seasonStatus, onClick) {
$('#seasonEditDialog #editSeasonId').val(seasonId == undefined ? "" : seasonId);
$('#seasonEditDialog #editSeasonN').val(seasonN == undefined ? 1 : seasonN);
$('#seasonEditDialog #editSeasonStatus option').each(function() { this.selected = (this.value == (seasonStatus == undefined ? "watched" : seasonStatus)); });
$('#seasonEditDialog #editSeasonSave').unbind('click');
if (onClick != undefined) {
$('#seasonEditDialog #editSeasonSave').click(onClick);
}
}
/******************************************************
Scraper
*****************************************************/
function loadTVShowScrapers(showId) {
$('#show' + showId + ' .showScrapers .scraperList').removeClass('notFetched');
runAPI({
action:"getTVShowScrapers",
showId:showId
}, function(data) {
for (var i = 0; i < data.result.length; i++) {
addTVShowScraper(showId, data.result[i]);
}
});
}
function loadSeasonScrapers(seasonId) {
var seasonElem = $('#season' + seasonId);
seasonElem.find('.scraperList').removeClass('notFetched');
runAPI({
action:"getSeasonScrapers",
seasonId:seasonId
}, function(data) {
for (var i = 0; i < data.result.length; i++) {
SeasonScraper.add(data.result[i]);
}
SeasonScraper.sort(seasonElem);
});
}
function addTVShowScraper(showId, scraperObj) {
var newScraperElem = $('#guiSkeleton .showScraper').clone(true);
setTVShowScraper(scraperObj, newScraperElem);
$('#show' + showId + ' .showScrapers .scraperList').append(newScraperElem);
//seasonScraperSort(seasonId);
}
function setTVShowScraper(scraperObj, scraperElem) {
if (scraperObj.id != undefined) scraperElem.attr('id', 'scraper' + scraperObj.id);
if (scraperObj.source != undefined) scraperElem.find('.scraperSource').text(scraperObj.source);
if (scraperObj.uri != undefined) {
scraperElem.find('.scraperUriText').text(scraperObj.uri.trunc(100));
scraperElem.find('.scraperUri').attr('href', scraperObj.uri);
}
scraperElem.find('.scraperAutoAdd').attr("checked", scraperObj.autoAdd == "1" ? true : false);
scraperElem.find('.scraperNotify').attr("checked", scraperObj.notify == "1" ? true : false);
}
function seasonScraperSort(seasonId) {
$('#season' + seasonId + ' .scraperPreference').sortElements(function(a,b) {
var aTxt = $(a).text(), bTxt = $(b).text();
if (aTxt == '' && bTxt == '') return 0;
else if (aTxt == '') return -1;
else if (bTxt == '') return 1;
else return (aTxt - bTxt);
}, function() {
return $(this).closest('.seasonScraper').get(0);
});
$('#season' + seasonId + ' .seasonScraper').each(function(index) {
$(this).find('.scraperOrder').text('(' + (index + 1) + ')');
});
}
function deleteScraper(e, scraperElement) {
e.preventDefault();
runAPI(
{
action:"removeScraper",
scraperId:scraperElement.attr('id').substr(7)
},
function(data) {
var seasonElement = scraperElement.closest('.season');
scraperElement.remove();
if (seasonElement != undefined && seasonElement.length != 0) {
refreshEpisodeList(seasonElement);
refreshSeason(seasonElement);
}
});
}
function runScraper(e, scraperElement) {
e.preventDefault();
runAPI(
{
action:"runScraper",
scraperId:scraperElement.attr('id').substr(7)
},
function(data) {
var seasonElement = scraperElement.closest('.season');
if (seasonElement != undefined && seasonElement.length != 0) {
refreshEpisodeList(seasonElement);
refreshSeason(seasonElement);
} else {
var showElement = scraperElement.closest('.show');
refreshScrapedSeasons(showElement);
}
});
}
function refreshEpisodeList(seasonElement) {
seasonElement.find('.episodeList .episode').remove();
seasonElement.find('.episodeList').addClass('notFetched');
loadSeasonEpisodes(seasonElement.attr('id').substr(6));
}
function refreshTVShowScraper(scraperElement) {
runAPI(
{
action:"getScraper",
scraperId:scraperElement.attr('id').substr(7)
},
function(dataScraper) {
setTVShowScraper(dataScraper.result, scraperElement);
});
}
function refreshSeasonScraper(scraperElement) {
runAPI(
{
action:"getScraper",
scraperId:scraperElement.attr('id').substr(7)
},
function(dataScraper) {
SeasonScraper.set(dataScraper.result, scraperElement);
seasonScraperSort(scraperElement.closest('.season').attr('id').substr(6));
refreshEpisodeList(scraperElement.closest('.season'));
});
}
function addFormTVShowScraper(e, showElement) {
e.preventDefault();
var showId = showElement.attr('id').substr(4);
setEditTVShowScraperDialog(function (e) {
e.preventDefault();
runAPI(
{
action:"addScraper",
rootId:showId,
uri:$('#showScraperEditDialog #editTVShowScraperURI').val(),
source:$('#showScraperEditDialog #editTVShowScraperSource').find(':selected').first().val(),
autoAdd:$('#showScraperEditDialog #editTVShowScraperAutoAdd').first().is(':checked') ? 1 : 0,
notify:$('#showScraperEditDialog #editTVShowScraperNotify').first().is(':checked') ? 1 : 0
},
function(data) {
$('#showScraperEditDialog').modal('hide');
addTVShowScraper(showId, data.result);
}
);
});
$('#showScraperEditDialog').modal('show');
}
function editTVShowScraper(e, scraperElement) {
e.preventDefault();
scraperId = scraperElement.attr('id').substr(7);
scraperSource = scraperElement.find('.scraperSource').first().text();
scraperURI = scraperElement.find('.scraperUriText').first().text();
scraperAutoAdd = scraperElement.find('.scraperAutoAdd').first().attr('checked');
scraperNotify = scraperElement.find('.scraperNotify').first().attr('checked');
setEditTVShowScraperDialog(function (e) {
e.preventDefault();
runAPI(
{
action:"setScraper",
scraperId:scraperId,
uri:$('#showScraperEditDialog #editTVShowScraperURI').val(),
source:$('#showScraperEditDialog #editTVShowScraperSource').find(':selected').first().val(),
autoAdd:$('#showScraperEditDialog #editTVShowScraperAutoAdd').first().is(':checked') ? 1 : 0,
notify:$('#showScraperEditDialog #editTVShowScraperNotify').first().is(':checked') ? 1 : 0
},
function(data) {
$('#showScraperEditDialog').modal('hide');
refreshTVShowScraper(scraperElement);
}
);
}, scraperId, scraperSource, scraperURI, scraperAutoAdd, scraperNotify);
$('#showScraperEditDialog').modal('show');
}
function editSeasonScraper(e, scraperElement) {
e.preventDefault();
scraperId = scraperElement.attr('id').substr(7);
scraperPreference = scraperElement.find('.scraperPreference').first().text();
scraperSource = scraperElement.find('.scraperSource').first().text();
scraperURI = scraperElement.find('.scraperUriText').first().text();
scraperDelay = scraperElement.find('.scraperDelay').first().text();
setEditSeasonScraperDialog(scraperId, scraperPreference, scraperSource, scraperURI, scraperDelay, function (e) {
e.preventDefault();
var pref = $('#seasonScraperEditDialog #editSeasonScraperPreference').val();
runAPI(
{
action:"setScraper",
scraperId:scraperId,
preference:(pref != "" ? pref : "_REMOVE_"),
uri:$('#seasonScraperEditDialog #editSeasonScraperURI').val(),
delay:$('#seasonScraperEditDialog #editSeasonScraperDelay').val(),
source:$('#seasonScraperEditDialog #editSeasonScraperSource').find(':selected').first().val()
},
function(data) {
$('#seasonScraperEditDialog').modal('hide');
refreshSeasonScraper(scraperElement);
}
);
});
$('#seasonScraperEditDialog').modal('show');
}
function setEditTVShowScraperDialog(onClick, scraperId, scraperSource, scraperURI, scraperAutoAdd, scraperNotify) {
$('#showScraperEditDialog #editTVShowScraperId').val(scraperId == undefined ? "" : scraperId);
$('#showScraperEditDialog #editTVShowScraperURI').val(scraperURI == undefined ? "" : scraperURI);
$('#showScraperEditDialog #editTVShowScraperAutoAdd').attr('checked', scraperAutoAdd ? true : false);
$('#showScraperEditDialog #editTVShowScraperNotify').attr('checked', scraperNotify ? true : false);
$('#showScraperEditDialog #editTVShowScraperSource option').each(function() { this.selected = (this.value == (scraperSource == undefined ? "DDU" : scraperSource)); });
$('#showScraperEditDialog #editTVShowScraperSave').unbind('click');
if (onClick != undefined) {
$('#showScraperEditDialog #editTVShowScraperSave').click(onClick);
}
}
function setEditSeasonScraperDialog(scraperId, scraperPreference, scraperSource, scraperURI, scraperDelay, onClick) {
$('#seasonScraperEditDialog #editSeasonScraperId').val(scraperId == undefined ? "" : scraperId);
$('#seasonScraperEditDialog #editSeasonScraperPreference').val(scraperPreference == undefined ? "" : scraperPreference);
$('#seasonScraperEditDialog #editSeasonScraperURI').val(scraperURI == undefined ? "" : scraperURI);
$('#seasonScraperEditDialog #editSeasonScraperDelay').val(scraperDelay == undefined ? "" : scraperDelay);
$('#seasonScraperEditDialog #editSeasonScraperSource option').each(function() { this.selected = (this.value == (scraperSource == undefined ? "DDU" : scraperSource)); });
$('#seasonScraperEditDialog #editSeasonScraperSave').unbind('click');
if (onClick != undefined) {
$('#seasonScraperEditDialog #editSeasonScraperSave').click(onClick);
}
}
/******************************************************
Scraped Seasons
*****************************************************/
function refreshScrapedSeasons(showElement) {
showElement.find('.scrapedSeason').remove();
showElement.find('.scrapedSeasonsList').addClass('notFetched');
loadScrapedSeasons(showElement.attr('id').substr(4));
}
function loadScrapedSeasons(showId) {
$('#show' + showId + ' .showScrapers .scrapedSeasonsList').removeClass('notFetched');
$('#show' + showId + ' .showScrapers .scrapedSeasonsSection').hide();
$('#show' + showId + ' .showScrapers .hiddenScrapedSeasonsSection').hide();
runAPI({
action:"getScrapedSeasons",
showId:showId
}, function(data) {
for (var i = 0; i < data.result.length; i++) {
addScrapedSeason(showId, data.result[i]);
}
});
}
function addScrapedSeason(showId, scrapedSeasonObj) {
var scrapedSeasonElem = $('#guiSkeleton .scrapedSeason').clone(true);
setScrapedSeason(scrapedSeasonElem, scrapedSeasonObj);
if (scrapedSeasonObj.hide == undefined || scrapedSeasonObj.hide == '0') {
$('#show' + showId + ' .showScrapers .scrapedSeasonsList').append(scrapedSeasonElem);
$('#show' + showId + ' .showScrapers .scrapedSeasonsSection').show();
} else {
$('#show' + showId + ' .showScrapers .hiddenScrapedSeasonsList').append(scrapedSeasonElem);
if (showHiddenScrapedSeasons) {
$('#show' + showId + ' .showScrapers .hiddenScrapedSeasonsSection').show();
}
}
}
function setScrapedSeason(scrapedSeasonElem, scrapedSeasonObj) {
if (scrapedSeasonObj.id != undefined) scrapedSeasonElem.attr('id', scrapedSeasonObj.id);
if (scrapedSeasonObj.n != undefined) scrapedSeasonElem.find('.scrapedSeasonN').text(scrapedSeasonObj.n);
if (scrapedSeasonObj.source != undefined) scrapedSeasonElem.find('.scrapedSeasonSource').text(scrapedSeasonObj.source);
if (scrapedSeasonObj.uri != undefined) {
scrapedSeasonElem.find('.scrapedSeasonUri').attr('href', scrapedSeasonObj.uri);
scrapedSeasonElem.find('.scrapedSeasonUriText').text(scrapedSeasonObj.uri);
}
if (scrapedSeasonObj.hide == undefined || scrapedSeasonObj.hide == '0') {
scrapedSeasonElem.find('.toggleScrapedSeason i').attr('class', 'glyphicon glyphicon-thumbs-down');
} else {
scrapedSeasonElem.find('.toggleScrapedSeason i').attr('class', 'glyphicon glyphicon-thumbs-up');
}
}
function addScrapedSeasonToSeasons(e, scrapedSeasonElem) {
e.preventDefault();
scrapedSeasonId = scrapedSeasonElem.attr('id');
runAPI({
action:"createSeasonScraperFromScraped",
scrapedSeasonId:scrapedSeasonId
}, function(data) {
var showElem = scrapedSeasonElem.closest('.show');
var showId = showElem.attr('id').substr(4);
$('#show' + showId + ' .scrapedSeason').remove();
$('#show' + showId + ' .scrapedSeasonsList').addClass('notFetched');
$('#show' + showId + ' .season').remove();
$('#show' + showId + ' .seasons').addClass('notFetched');
TVShow.refresh(showElem);
loadTVShowSeasons(showId);
loadScrapedSeasons(showId);
});
}
function toggleScrapedSeason(e, scrapedSeasonElem) {
e.preventDefault();
scrapedSeasonId = scrapedSeasonElem.attr('id');
var hide = scrapedSeasonElem.closest('.hiddenScrapedSeasonsList').length == 0 ? '1' : '0';
runAPI({
action:"setScrapedSeason",
scrapedSeasonId:scrapedSeasonId,
hide:hide,
tbn:"_REMOVE_"
}, function(data) {
//var container = scrapedSeasonElem.closest('.showScrapers').find((hide == '0' ? '.s' : '.hiddenS') +'crapedSeasonsList');
//container.append(scrapedSeasonElem);
var showId = scrapedSeasonElem.closest('.show').attr('id').substr(4);
$('#show' + showId + ' .scrapedSeason').remove();
loadScrapedSeasons(showId);
});
}
function removeScrapedSeason(e, scrapedSeasonElem) {
e.preventDefault();
scrapedSeasonId = scrapedSeasonElem.attr('id');
runAPI({
action:"removeScrapedSeason",
scrapedSeasonId:scrapedSeasonId,
}, function(data) {
var showId = scrapedSeasonElem.closest('.show').attr('id').substr(4);
$('#show' + showId + ' .scrapedSeason').remove();
loadScrapedSeasons(showId);
});
}
function loadSeasonEpisodes(seasonId) {
var epList = $('#season' + seasonId + ' .episodeList');
epList.removeClass('notFetched');
$.post("api.php",
{
action:"getSeasonEpisodes",
seasonId:seasonId
},
function(data) {
if (data.status == "ok") {
var newEpisodeElement = $('#guiSkeleton .episode');
for (var i = 0; i < data.result.length; i++) {
var newEp = newEpisodeElement.clone(true);
newEp.attr('id', 'episode' + data.result[i].id);
newEp.find('.episodeN').text(data.result[i].n);
if (data.result[i].airDate != undefined) {
var d = new Date(Number(data.result[i].airDate * 1000));
newEp.find('.episodeAirDate').text(d.getDate() + '/' + (d.getMonth() + 1) + "/" + d.getFullYear());
newEp.find('.episodeAirDateShort').text(d.getDate() + '/' + (d.getMonth() + 1));
} else {
newEp.find('.episodeAirDate').text("Unknown");
newEp.find('.episodeAirDateShort').text("Unk");
}
if (data.result[i].lastFilePubDate != undefined) {
var d = new Date(Number(data.result[i].lastFilePubDate * 1000));
newEp.find('.episodeLastPubDate').text(d.getDate() + '/' + (d.getMonth() + 1) + "/" + d.getFullYear());
newEp.find('.bestUriText').text("Loading...");
} else {
newEp.find('.episodeLastPubDate').text("Not yet");
}
newEp.find('.bestUriTextShort').text('');
if (data.result[i].bestSticky) {
newEp.find('.removeFile').hide();
newEp.find('.discardFile').hide();
newEp.find('.lockFile').hide();
newEp.find('.unlockFile').show();
} else {
newEp.find('.removeFile').show();
newEp.find('.discardFile').show();
newEp.find('.lockFile').show();
newEp.find('.unlockFile').hide();
}
epList.append(newEp);
}
runAPI( {
action:"getBestFilesForSeason",
seasonId:seasonId
},
function(data) {
for (var j = 0; j < data.result.length; j++) {
$('#episode' + data.result[j].episode + ' .bestUri').attr('href', data.result[j].uri);
$('#episode' + data.result[j].episode + ' .bestUriTextLG').text(data.result[j].uri.trunc(110));
$('#episode' + data.result[j].episode + ' .bestUriTextMD').text(data.result[j].uri.trunc(80));
$('#episode' + data.result[j].episode + ' .bestUriTextSM').text(data.result[j].uri.trunc(40));
$('#episode' + data.result[j].episode + ' .bestUriTextXS').text('URI');
$('#episode' + data.result[j].episode + ' .bestFileId').text(data.result[j].id);
$('#episode' + data.result[j].episode + ' .bestFileSource').text($('#season' + seasonId + ' #scraper' + data.result[j].scraper + ' .scraperOrder').text());
}
});
} else {
// TODO: handle error
alert('ERROR: ' + data.errmsg);
}
}, "json");
}
function setSortFlag(menuElem) {
menuElem.closest('ul').find('.glyphicon').removeClass('glyphicon-ok');
menuElem.closest('li').find('.glyphicon').addClass('glyphicon-ok');
}
var showSortBy = 'nextAirDate';
var showHiddenScrapedSeasons = false;
$(document).ready(function() {
//refreshShowList();
$('.season .seasonTitle').click(function() { toggleSeason($(this).closest('.season'));});
$('.season .toggleSeason').click(function(e) { e.preventDefault(); toggleSeason($(this).closest('.season'));});
$('.seasonScraper .removeScraper').click(function(e) { deleteScraper(e, $(this).closest('.seasonScraper')); });
$('.showScraper .removeScraper').click(function(e) { deleteScraper(e, $(this).closest('.showScraper')); });
$('.scrapedSeason .addScrapedSeason').click(function(e) { addScrapedSeasonToSeasons(e, $(this).closest('.scrapedSeason')); });
$('.scrapedSeason .toggleScrapedSeason').click(function(e) { toggleScrapedSeason(e, $(this).closest('.scrapedSeason')); });
$('.scrapedSeason .removeScrapedSeason').click(function(e) { removeScrapedSeason(e, $(this).closest('.scrapedSeason')); });
$('.seasonScraper .runScraper').click(function(e) { runScraper(e, $(this).closest('.seasonScraper')); });
$('.showScraper .runScraper').click(function(e) { runScraper(e, $(this).closest('.showScraper')); });
$('.removeSeason').click(function(e) { deleteSeason(e, $(this).closest('.season')); });
$('.episodeList').addClass('notFetched');
$('.scraperList').addClass('notFetched');
$('.scrapedSeasonsList').addClass('notFetched');
$('.seasons').addClass('notFetched');
$('#toggleHiddenScrapedSeasons').click(function(e) {
e.preventDefault();
var menuIcon = $(this).closest('li').find('.glyphicon');
showHiddenScrapedSeasons = ! showHiddenScrapedSeasons;
if (!showHiddenScrapedSeasons) {
menuIcon.removeClass('glyphicon-ok');
$('.hiddenScrapedSeasonsSection').hide();
} else {
menuIcon.addClass('glyphicon-ok');
$('.hiddenScrapedSeasonsSection').each(function() {
if ($(this).find('.scrapedSeason').length == 0) {
$(this).hide();
} else {
$(this).show();
}
});
}
});
$('.editSeason').click(function(e) { editSeason(e, $(this).closest('.season'));} );
$('.seasonScraper .editScraper').click(function(e) { editSeasonScraper(e, $(this).closest('.seasonScraper'));} );
$('.showScraper .editScraper').click(function(e) { editTVShowScraper(e, $(this).closest('.showScraper'));} );
$('.addTVShowScraper').click(function(e) { addFormTVShowScraper(e, $(this).closest('.show'));});
});
|
import request from "@/utils/request";
export function getFuncChildrenNode(params) {
return request({
url: '/sys/func/getFuncChildrenNode',
method: 'get',
params
})
}
export function getFuncTree(params) {
return request({
url: '/sys/func/getFuncTree',
method: 'get',
params
})
}
export function getFuncList(params) {
return request({
url: '/sys/func/getFuncList',
method: 'get',
params
})
}
export function addFunc(data) {
return request({
url: '/sys/func/addFunc',
method: 'post',
data
})
}
export function updateFunc(data) {
return request({
url: '/sys/func/updateFunc',
method: 'post',
data
})
}
export function deleteFunc(data) {
return request({
url: '/sys/func/deleteFunc',
method: 'post',
data
})
}
|
module.exports = function(app, passport, db) {
// normal routes ===============================================================
// show the home page (will also have our login links)
app.get('/', function(req, res) {
res.render('index.ejs');
});
// PROFILE SECTION =========================
app.get('/profile', isLoggedIn, function(req, res) {
db.collection('messages').find().toArray((err, result) => {
if (err) return console.log(err)
res.render('profile.ejs', {
user : req.user,
messages: result
})
})
});
// LOGOUT ==============================
app.get('/logout', function(req, res) {
req.logout();
res.redirect('/');
});
// message board routes ===============================================================
app.post('/messages', (req, res) => {
db.collection('messages').save({name: req.body.name, order: req.body.order}, (err, result) => {
if (err) return console.log(err)
console.log('saved to database')
res.redirect('/profile')
})
})
app.put('/messages', (req, res) => {
db.collection('messages')
.findOneAndUpdate({name: req.body.name, msg: req.body.msg}, {
$set: {
thumbUp:req.body.thumbUp + 1
}
}, {
sort: {_id: -1},
upsert: true
}, (err, result) => {
if (err) return res.send(err)
res.send(result)
})
})
app.delete('/messages', (req, res) => {
db.collection('messages').findOneAndDelete({name: req.body.name, order: req.body.order}, (err, result) => {
if (err) return res.send(500, err)
res.send('Message deleted!')
})
})
// =============================================================================
// AUTHENTICATE (FIRST LOGIN) ==================================================
// =============================================================================
// locally --------------------------------
// LOGIN ===============================
// show the login form
app.get('/login', function(req, res) {
res.render('login.ejs', { message: req.flash('loginMessage') });
});
// process the login form
app.post('/login', passport.authenticate('local-login', {
successRedirect : '/profile', // redirect to the secure profile section
failureRedirect : '/login', // redirect back to the signup page if there is an error
failureFlash : true // allow flash messages
}));
// SIGNUP =================================
// show the signup form
app.get('/signup', function(req, res) {
res.render('signup.ejs', { message: req.flash('signupMessage') });
});
// process the signup form
app.post('/signup', passport.authenticate('local-signup', {
successRedirect : '/profile', // redirect to the secure profile section
failureRedirect : '/signup', // redirect back to the signup page if there is an error
failureFlash : true // allow flash messages
}));
// =============================================================================
// UNLINK ACCOUNTS =============================================================
// =============================================================================
// used to unlink accounts. for social accounts, just remove the token
// for local account, remove email and password
// user account will stay active in case they want to reconnect in the future
// local -----------------------------------
app.get('/unlink/local', isLoggedIn, function(req, res) {
var user = req.user;
user.local.email = undefined;
user.local.password = undefined;
user.save(function(err) {
res.redirect('/profile');
});
});
};
// route middleware to ensure user is logged in
function isLoggedIn(req, res, next) {
if (req.isAuthenticated())
return next();
res.redirect('/');
}
|
import { geomReduce } from "@turf/meta";
// Note: change RADIUS => earthRadius
var RADIUS = 6378137;
/**
* Takes one or more features and returns their area in square meters.
*
* @name area
* @param {GeoJSON} geojson input GeoJSON feature(s)
* @returns {number} area in square meters
* @example
* var polygon = turf.polygon([[[125, -15], [113, -22], [154, -27], [144, -15], [125, -15]]]);
*
* var area = turf.area(polygon);
*
* //addToMap
* var addToMap = [polygon]
* polygon.properties.area = area
*/
export default function area(geojson) {
return geomReduce(geojson, function (value, geom) {
return value + calculateArea(geom);
}, 0);
}
/**
* Calculate Area
*
* @private
* @param {Geometry} geom GeoJSON Geometries
* @returns {number} area
*/
function calculateArea(geom) {
var total = 0;
var i;
switch (geom.type) {
case "Polygon":
return polygonArea(geom.coordinates);
case "MultiPolygon":
for (i = 0; i < geom.coordinates.length; i++) {
total += polygonArea(geom.coordinates[i]);
}
return total;
case "Point":
case "MultiPoint":
case "LineString":
case "MultiLineString":
return 0;
}
return 0;
}
function polygonArea(coords) {
var total = 0;
if (coords && coords.length > 0) {
total += Math.abs(ringArea(coords[0]));
for (var i = 1; i < coords.length; i++) {
total -= Math.abs(ringArea(coords[i]));
}
}
return total;
}
/**
* @private
* Calculate the approximate area of the polygon were it projected onto the earth.
* Note that this area will be positive if ring is oriented clockwise, otherwise it will be negative.
*
* Reference:
* Robert. G. Chamberlain and William H. Duquette, "Some Algorithms for Polygons on a Sphere",
* JPL Publication 07-03, Jet Propulsion
* Laboratory, Pasadena, CA, June 2007 https://trs.jpl.nasa.gov/handle/2014/40409
*
* @param {Array<Array<number>>} coords Ring Coordinates
* @returns {number} The approximate signed geodesic area of the polygon in square meters.
*/
function ringArea(coords) {
var p1;
var p2;
var p3;
var lowerIndex;
var middleIndex;
var upperIndex;
var i;
var total = 0;
var coordsLength = coords.length;
if (coordsLength > 2) {
for (i = 0; i < coordsLength; i++) {
if (i === coordsLength - 2) {
// i = N-2
lowerIndex = coordsLength - 2;
middleIndex = coordsLength - 1;
upperIndex = 0;
}
else if (i === coordsLength - 1) {
// i = N-1
lowerIndex = coordsLength - 1;
middleIndex = 0;
upperIndex = 1;
}
else {
// i = 0 to N-3
lowerIndex = i;
middleIndex = i + 1;
upperIndex = i + 2;
}
p1 = coords[lowerIndex];
p2 = coords[middleIndex];
p3 = coords[upperIndex];
total += (rad(p3[0]) - rad(p1[0])) * Math.sin(rad(p2[1]));
}
total = (total * RADIUS * RADIUS) / 2;
}
return total;
}
function rad(num) {
return (num * Math.PI) / 180;
}
|
/**
* @license
* Copyright 2018-2021 Streamlit Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
describe("st.error and friends", () => {
before(() => {
cy.visit("http://localhost:3000/");
// Wait for the "Please, wait" alert to disappear.
cy.get(
".element-container .stAlert [data-testid='stMarkdownContainer']"
).should("have.length", 4);
});
it("displays an error message correctly", () => {
cy.get(".element-container .stAlert [data-testid='stMarkdownContainer']")
.eq(0)
.contains("This is an error");
});
it("displays a warning message correctly", () => {
cy.get(".element-container .stAlert [data-testid='stMarkdownContainer']")
.eq(1)
.contains("This is a warning");
});
it("displays an info message correctly", () => {
cy.get(".element-container .stAlert [data-testid='stMarkdownContainer']")
.eq(2)
.contains("This is an info message");
});
it("displays a success message correctly", () => {
cy.get(".element-container .stAlert [data-testid='stMarkdownContainer']")
.eq(3)
.contains("This is a success message");
});
it("matches the snapshot", () => {
cy.get(".main > .block-container").matchThemedSnapshots("alerts");
});
});
|
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import { Chat, Actions, Sheet } from '../components/Chat';
import ChatServer from '../components/ChatServer';
import CustomActions from '../components/CustomActions';
import CustomView from '../components/CustomView';
export default class Lobby extends Component {
constructor(props) {
super(props);
this.username = (this.props.route.params.user_hash) ? this.props.route.params.user_hash : this.props.user_hash
this.topic = this.props.route.params.topic
this.channeltabs = (this.props.route.params.channeltabs) ? this.props.route.params.channeltabs: this.props.channeltabs
this.state = {
slides: [],
loadEarlier: true,
footer: null,
};
this.onSend = this.onSend.bind(this);
this.onReceive = this.onReceive.bind(this);
this.server = ChatServer(this.props.username)
this.lobby = this.server.lobby(this.topic, this.onReceive)
/*
this.renderCustomActions = this.renderCustomActions.bind(this);
this.renderSheet = this.renderSheet.bind(this);
this.renderCustomView = this.renderCustomView.bind(this);
*/
this.onLoadEarlier = this.onLoadEarlier.bind(this);
this.onBackPress = this.onBackPress.bind(this);
this._isAlright = null;
}
componentWillMount() {
// load data from chat server
let slides = require('../data/slides.js')
//console.log(slides);
this.setState(() => {
return {
slides: slides,
};
});
}
onLoadEarlier() {
// load previous data from chat server
const previousSlides = require('../data/old_slides.js')
this.setState((previousState) => {
return {
slides: Chat.prepend(previousState.slides, previousSlides),
loadEarlier: false,
};
});
}
onAddPress() {
this.props.navigator.push({
id: 'add'
})
}
onSignupPress() {
this.props.navigator.push({
id: 'login'
})
}
onBackPress() {
this.props.navigator.pop();
}
onSend(slides = []) {
this.server.send(this.lobby, slides)
// for demo purpose
this.answerDemo(slides);
}
answerDemo(slides) {
// must come from backend
if (slides.length > 0) {
if ((slides[0].image || slides[0].location) || !this._isAlright) {
this.setState((previousState) => {
return {
footer: (props) => {
return (
<View style={styles.footer}>
<Text>Pingal is typing...</Text>
</View>
);
},
};
});
}
}
setTimeout(() => {
if (slides.length > 0) {
if (slides[0].image) {
this.onReceive( {body:'Nice picture!', user:'Pingal', timestamp: new Date()});
} else if (slides[0].location) {
this.onReceive({body:'My favorite place' , user:'Pingal', timestamp: new Date()});
} else {
if (!this._isAlright) {
this._isAlright = true;
this.onReceive({body:'Alright', user:'Pingal', timestamp: new Date()});
}
}
}
this.setState((previousState) => {
return {
footer: null,
};
});
}, 1000);
}
onReceive(text) {
//console.log("Rendering received msg")
//console.log(text)
this.setState((previousState) => {
return {
slides: Chat.append(previousState.slides, {
_id: Math.round(Math.random() * 1000000),
body: text.body,
timestamp: text.timestamp,
user: {
_id: 2,
name: text.user,
// avatar: 'https://facebook.github.io/react/img/logo_og.png',
},
}),
};
});
}
/*
renderCustomActions(props) {
if (Platform.OS === 'ios') {
return (
<CustomActions {...props} />
);
}
const options = {
'Action 1': (props) => {
alert('option 1');
},
'Action 2': (props) => {
alert('option 2');
},
'Cancel': () => {},
};
return (
<Actions {...props} options={options} />
);
}
*/
/*
renderSheet(props) {
return (
<Sheet
{...props}
wrapperStyle={{
left: {
backgroundColor: '#f0f0f0',
}
}}
/>
);
}
*/
/*
renderCustomView(props) {
return (
<CustomView
{...props}
/>
);
}
*/
render() {
let slides = this.state.slides
let loadEarlier = this.state.loadEarlier
let footer = this.state.footer
const navigator = this.props.navigator
const buttons = this.channeltabs
/*
renderActions={this.renderCustomActions}
renderSheet={this.renderSheet}
renderCustomView={this.renderCustomView}
*/
return (
<Chat
slides={slides}
onSend={this.onSend}
loadEarlier={loadEarlier}
onLoadEarlier={this.onLoadEarlier}
footer={footer}
navigator={navigator}
buttons={buttons}
user={{
_id: 1, // sent messages should have same user._id
name: `${this.props.username}`
}}
lobby={this.lobby}
channeltabs={this.channeltabs}
chatserver={this.server}
{...this.props}
/>
);
}
}
const styles = StyleSheet.create({
footer: {
margin: 10,
},
});
Lobby.defaultProps = {
username: 'Vihaan',
room: '',
channeltabs: ['#Local','#User'],
server: null,
}
|
import * as React from "react";
function IconColorSwatch({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg className="icon icon-tabler icon-tabler-color-swatch" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round" strokeLinejoin="round" {...props}><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M19 3h-4a2 2 0 0 0 -2 2v12a4 4 0 0 0 8 0v-12a2 2 0 0 0 -2 -2" /><path d="M13 7.35l-2 -2a2 2 0 0 0 -2.828 0l-2.828 2.828a2 2 0 0 0 0 2.828l9 9" /><path d="M7.3 13h-2.3a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h12" /><line x1={17} y1={17} x2={17} y2={17.01} /></svg>;
}
export default IconColorSwatch;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.