hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
4a97a1653f1e02496f08c0bf424ac0f1e297d3f5
607
js
JavaScript
src/pages/404.js
cboard-org/gatsby-cboard-io
2b2ed776a34cd6a39a9fa2512120f65e99a0a1b0
[ "MIT" ]
null
null
null
src/pages/404.js
cboard-org/gatsby-cboard-io
2b2ed776a34cd6a39a9fa2512120f65e99a0a1b0
[ "MIT" ]
null
null
null
src/pages/404.js
cboard-org/gatsby-cboard-io
2b2ed776a34cd6a39a9fa2512120f65e99a0a1b0
[ "MIT" ]
null
null
null
import React from 'react'; import Footer from '../components/Footer'; import Layout from '../components/Layout'; import { Link } from 'gatsby'; const IndexPage = () => ( <Layout> <section className="cta"> <div className="cta-content"> <div className="container"> <h2> 404 Page not found <br /> <Link className="btn btn-outline btn-xl" to="/"> Go back </Link> </h2> </div> </div> <div className="overlay"></div> </section> <Footer /> </Layout> ); export default IndexPage;
21.678571
60
0.525535
4a9945a36699889e19eeea9a20579fd068319ae2
312
js
JavaScript
app/scripts/directives/notation-directive.js
dst-hackathon/chessmate
4a263300bd491896f78e5367bf92f1426173b9a6
[ "MIT" ]
null
null
null
app/scripts/directives/notation-directive.js
dst-hackathon/chessmate
4a263300bd491896f78e5367bf92f1426173b9a6
[ "MIT" ]
4
2015-11-04T21:13:19.000Z
2016-12-15T13:09:46.000Z
app/scripts/directives/notation-directive.js
dst-hackathon/chessmate
4a263300bd491896f78e5367bf92f1426173b9a6
[ "MIT" ]
null
null
null
angular.module('chessmateApp') .directive('notationSection', function(){ return { restrict: 'E', //E = element, A = attribute, C = class, M = comment templateUrl: 'app/views/notation-section.html', controller: 'NotationCtrl' //Embed a custom controller in the directive }; });
39
79
0.641026
4a9a01e5e68e2ccdb139c91019e2104ed2b58719
2,177
js
JavaScript
node_modules/encrypter/Encrypter.js
nitinprajapati/crm
068c5dd86be0bed2c46790f357a276029b325d89
[ "MIT" ]
5
2020-04-12T12:56:38.000Z
2021-11-23T19:21:55.000Z
node_modules/encrypter/Encrypter.js
nitinprajapati/crm
068c5dd86be0bed2c46790f357a276029b325d89
[ "MIT" ]
null
null
null
node_modules/encrypter/Encrypter.js
nitinprajapati/crm
068c5dd86be0bed2c46790f357a276029b325d89
[ "MIT" ]
3
2020-04-15T12:56:06.000Z
2022-03-13T19:33:30.000Z
/** * Encrypter.js * * @author: Harish Anchu <harishanchu@gmail.com> * @copyright 2015, Harish Anchu. All rights reserved. * @license Licensed under MIT */ var crypto = require('crypto'); /** * Create a new Encrypter instance. * * @param {String} key * @param {String} cipAlgm * @param {String} msgDigestAlgm * @constructor */ function Encrypter(key, cipAlgm, msgDigestAlgm) { this.__key = key; this.__cipAlgm = cipAlgm || 'aes-256-ctr'; this.__msgDigestAlgm = msgDigestAlgm || 'sha1'; } /** * Encrypt the given value. * * @param {String|Buffer} value * @return {String} */ Encrypter.prototype.encrypt = function(value) { var ct = this.__encryptData(value); return JSON.stringify({ ct: ct, mac: this.__digest(ct) }); }; /** * Decrypt the given value. * * @param {String} payload * @return {String} */ Encrypter.prototype.decrypt = function(payload){ payload = JSON.parse(payload); var hmac = this.__digest(payload.ct); if (hmac != payload.mac) { throw 'Encrypted data was tampered!'; } return this.__decryptData(payload.ct); }; /** * Creates cipher text from plain text * * @param {String|Buffer} value */ Encrypter.prototype.__encryptData = function(value) { value = (Buffer.isBuffer(value)) ? value : new Buffer(value); var cipher = crypto.createCipher(this.__cipAlgm, this.__key); var ct = []; ct.push(cipher.update(value).toString('base64')); ct.push(cipher.final('base64')); return ct.join(''); }; /** * Creates plain text from cipher text * * @param {String} ct */ Encrypter.prototype.__decryptData = function(ct) { var cipher = crypto.createDecipher(this.__cipAlgm, this.__key); var pt = []; pt.push(cipher.update(ct, 'base64', 'utf8')); pt.push(cipher.final('utf8')); return pt.join(''); }; /** * Generates HMAC as digest of cipher text * * @param {String} obj */ Encrypter.prototype.__digest = function(obj) { var hmac = crypto.createHmac(this.__msgDigestAlgm, this.__key); hmac.setEncoding('base64'); hmac.write(obj); hmac.end(); return hmac.read(); }; module.exports = Encrypter;
21.343137
67
0.643087
4a9a83d31e2a4b8a099ba698fed2d50546c0fcb8
14,562
js
JavaScript
pages/mine/mine.js
linhanyang/timer_weapp
a608cf98888693534a8b9ded38fa83d87691b909
[ "Apache-2.0" ]
1
2020-07-29T08:26:05.000Z
2020-07-29T08:26:05.000Z
pages/mine/mine.js
linhanyang/timer_weapp
a608cf98888693534a8b9ded38fa83d87691b909
[ "Apache-2.0" ]
null
null
null
pages/mine/mine.js
linhanyang/timer_weapp
a608cf98888693534a8b9ded38fa83d87691b909
[ "Apache-2.0" ]
null
null
null
/** * 1、把自己的权限通过转发分享 * 2、权限情况 * a、使用它人权限 (取消按钮) * b、使用自己权限 (扫一扫共享权限按钮,已经共享用户列表) */ var COS = require('../../dist/cos-wx-sdk-v5') let Parse = require('../../parse'); var config = require('./config') let sOwnRole; const IMAGE_URL = 'https://hulu-timer-1255588408.cos.ap-guangzhou.myqcloud.com/'; //上传到时腾讯云的对象存储 let cos = new COS({ getAuthorization: function (params, callback) {//获取签名 必填参数 // 方法二(适用于前端调试) var authorization = COS.getAuthorization({ SecretId: config.SecretId, SecretKey: config.SecretKey, Method: params.Method, Key: params.Key }); callback(authorization); } }); Page({ /** * 页面的初始数据 */ data: { curRole: undefined, isShared: false,//是否共享的其它的人权限 根据对比当前用户的curRole来确定 users: [], sharedUser: null,//共享了谁的权限 //右滑相关 toggles: [],//左滑开关 oldExpanded: false,//右滑是否打开 nextExpanded: false, soUser: null,//正在右滑的User //ActionSheet相关 asVisible: false, asActions: [ { name: '删除', color: '#ed3f14' } ] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { console.log(`mine:onLoad:options`) if (Parse.User.current()) { console.log(`mine:onLoad:currentUser:${Parse.User.current().get('username')}`); this._init(); this._subscribeOwnRole(); } else { console.log(`mine:onLoad:currentUser is null`) let app = getApp(); let that = this; app.userReadyCallback = res => { console.log(`mine:onLoad:userReadyCallback:${Parse.User.current().get('username')}`) that._init(); this._subscribeOwnRole(); } } }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { if (sOwnRole) { sOwnRole.unsubscribe(); } }, onPullDownRefresh: function () { this._init(); }, /** * 设置将在大屏幕上显示的title */ onTitleClicked: function (e) { if (this.data.curRole) { //跳转到editDeviceGame wx.navigateTo({ url: `../editRoleTitle/editRoleTitle?roleId=${this.data.curRole.id}`, }) } }, /** * 设置自己icon 将在大屏幕上显示 */ onIconClicked: function (e) { let that = this; let curRole = this.data.curRole; wx.chooseImage({ count: 1, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], success(res) { var filePath = res.tempFilePaths[0] console.log(`mine:onIconClicked:filePath:${filePath}`); var format = filePath.substr(filePath.lastIndexOf('.')); // 文件后缀 let Key = 'i_' + curRole.id + format; console.log(`mine:onIconClicked:Key:${Key}`); cos.postObject({ Bucket: config.Bucket, Region: config.Region, Key: Key, FilePath: filePath, onProgress: function (info) { console.log(`mine:onIconClicked:info:${JSON.stringify(info)}`); } }, function (err, data) { if (err && err.error) { wx.showModal({ title: '上传Icon错误', content: '请求失败:' + err.error.Message + ';状态码:' + err.statusCode, showCancel: false }); } else if (err) { wx.showModal({ title: '上传Icon出错', content: '请求出错:' + err + ';状态码:' + err.statusCode, showCancel: false }); } else { wx.showToast({ title: '上传Icon成功', icon: 'success', duration: 2000 }); curRole.set('icon', IMAGE_URL + Key); curRole.save().then(function (role) { console.log(`mine:onIconClicked:curRole:${role.get('icon')}`); //懒得监听 直接重新初始化 that._init(); }) } }); }, }); }, /** * 设置自己的背景 将在大屏幕上显示 * @param {*} e */ onBGClicked: function (e) { let that = this; let curRole = this.data.curRole; wx.chooseImage({ count: 1, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], success(res) { var filePath = res.tempFilePaths[0] console.log(`mine:onIconClicked:filePath:${filePath}`); var format = filePath.substr(filePath.lastIndexOf('.')); // 文件后缀 let Key = 'bg_' + curRole.id + format; console.log(`mine:onIconClicked:Key:${Key}`); cos.postObject({ Bucket: config.Bucket, Region: config.Region, Key: Key, FilePath: filePath, onProgress: function (info) { console.log(`mine:onIconClicked:info:${JSON.stringify(info)}`); } }, function (err, data) { if (err && err.error) { wx.showModal({ title: '上传背景错误', content: '请求失败:' + err.error.Message + ';状态码:' + err.statusCode, showCancel: false }); } else if (err) { wx.showModal({ title: '上传背景出错', content: '请求出错:' + err + ';状态码:' + err.statusCode, showCancel: false }); } else { wx.showToast({ title: '上传背景成功', icon: 'success', duration: 2000 }); curRole.set('bg', IMAGE_URL + Key); curRole.save().then(function (role) { console.log(`mine:onIconClicked:curRole:${role.get('icon')}`); //懒得监听 直接重新初始化 that._init(); }) } }); }, }); }, /** * 这里拼接需要携带的参数 */ onShareAppMessage: function (object) { console.log(`mine:onShareAppMessage:`); let user = Parse.User.current(); let title = `[${user.get('nickName')}]分享权限给您]`; let imageUrl = user.get('avatarUrl'); let path = `/pages/dealShareRole/dealShareRole?userId=${user.id}&avatarUrl=${user.get('avatarUrl')}&nickName=${user.get('nickName')}` return { title, imageUrl, path } }, /** * 扫描取消共享 */ bindCancelShareTap: function (e) { this.setData({ canceling: true, }); let userId = Parse.User.current().id; let that = this; Parse.Cloud.run('cancelShareRole', { userId }) .then(function (result) { console.log(`shareRole:bindCancelShareTap:result:${result}`); that.setData({ canceling: false }); }).catch(function (error) { console.log(`shareRole:bindCancelShareTap:error:${error}`); that.setData({ canceling: false }); }); }, /** * 单击有两种操作 * 如果是展开状态,关闭展开 * 如果是关闭状态,跳转 */ soCotentTapAction: function (e) { console.log(`mine:soCotentTapAction:oldExpanded:${this.data.oldExpanded} nextExpanded:${this.data.nextExpanded}`); let oldExpanded = this.data.oldExpanded; let nextExpanded = this.data.nextExpanded; //因为swipeout的Touchstart,Touchmove,Touchend顺序执行完之后才会执行到content的Tap事件, //swipeout在touchend中通过前两个方法中产生的数据计算当前操作是展开还是关半,因此expanded状态的值也是在touchend中改变的 //因此只有oldExpanded和nextExpanded都为false时,才能说明这个swipeout是真正关闭的,才能跳转 if (oldExpanded == false && nextExpanded == false) { this.setData({ asVisible: false, soUser: null, }); this._closeAllSwipeout(); } }, /** * 获取swipeout展开状态的变化 * 有两个值 一个是当前 一个是上一次 * 通过对比两个值 来确定做什么操作。 */ onExpandedChange: function (e) { let old = e.detail.oldValue; let next = e.detail.nextValue; let index = e.currentTarget.dataset.index; console.log(`mine:onExpandedChange:old:${old} next:${next} toggles:${this.data.toggles}`); this.setData({ oldExpanded: old, nextExpaned: next }); if (old == false && next == true) { this._closeAllSwipeoutExcept(index); } }, /** * ActionSheet取消按钮事件 */ handleASCancel: function () { this.setData({ asVisible: false, soUser: null, }); this._closeAllSwipeout(); }, /** * ActionSheet单击事件 可能有多个操作 * 通过detail.index区分 * 只有删除 */ handleASItemClick: function ({ detail }) { console.log(`shareRole:handleClickASItem:detail:${detail}`); //先设置转圈 let index = detail.index; let actions = [...this.data.asActions]; actions[index].loading = true; this.setData({ asActions: actions }); let userId = this.data.soUser.id; let that = this; Parse.Cloud.run('cancelShareRole', { userId }).then(function (result) { console.log(`shareRole:handleClickASItem:result:${result}`); //不再转圈 actions[index].loading = false; that.setData({ asVisible: false, soUser: null, asActions: actions, }); that._closeAllSwipeout(); }).catch(function (error) { console.log(`shareRole:handleClickASItem:error:${error}`); actions[index].loading = false; that.setData({ asVisible: false, soGame: null, asActions: actions, }); that._closeAllSwipeout(); }); }, /** * swipeOut的删除事件 */ soDeleteTapAction(e) { let objectId = e.currentTarget.dataset.user; console.log(`shareRole:soDeleteTapAction:objectId:${objectId}`); //找 let user = this.data.users.find(function (value, index, arr) { return value.id === objectId; }); this.setData({ asVisible: true, soUser: user }); }, /** * 初始化数据 * 1、获取当前用户 * 2、根据user.curRole来判断权限情况 * a、使用它人权限 isShareing = true * b、使用自己权限 isShareing = true 获取这个权限的所有用户 列表表现 */ _init: function () { let that = this; //1、获取当前用户 //用户取消分享他人权限会触发curRole的修改 //但Parse.User.current()不会重新获取 所以fetch一下curUser let curUser = Parse.User.current(); curUser.fetch().then(function (user) { let role = user.get('curRole'); return role.fetch() }).then(function (curRole) { // 2、根据curUser.curRole来判断权限情况 curUser.id 即是role的name 如果不相同 说明是共享别人的权限 if (curRole.get('name') === curUser.id) { return that._dealNoShared(curRole, that, curUser); } else { return that._dealShared(curRole, that); } }).catch(function (error) { console.log(`shareRole:_init:error:${error}`); }); }, /** * 处理共享别人权限 * 1、通过curRole获取到sharedUser user.id 即是role的name * 2、添加监听 所括当前用户 */ _dealShared: function (curRole, that) { let query = new Parse.Query(Parse.User); return query.get(curRole.get('name')) .then(function (user) { //关闭下拉刷新的动画 wx.stopPullDownRefresh() that.setData({ curRole, curRoleForView: { id: curRole.id, objectId: curRole.id, icon: curRole.get('icon'), bg: curRole.get('bg'), title: curRole.get('title') }, isShared: true, sharedUser: user, sharedUserForView: { id: user.id, objectId: user.id, nickName: user.get('nickName'), avatarUrl: user.get('avatarUrl') }, users: [], }); }); }, /** * 处理未共享他人权限界面 * 1、获取curRole的users 自己除外 * 2、添加监听对ownRole的监听 * 3、 */ _dealNoShared: function (curRole, that, curUser) { var relation = curRole.relation("users"); var query = relation.query(); query.notContainedIn("objectId", [curUser.id]);//把当前用户剔除 return query.find().then(function (users) { console.log(`shareRole:_dealNoShared:curRole:users.length:${users.length}`); let toggles = []; users.forEach(user => { toggles.push(false); }); //关闭下拉刷新的动画 wx.stopPullDownRefresh() that.setData({ curRole, curRoleForView: { id: curRole.id, objectId: curRole.id, icon: curRole.get('icon'), bg: curRole.get('bg'), title: curRole.get('title') }, isShared: false, users, usersForView: that._createUsersForView(users), sharedUser: null, }); }); }, /** * wxml中wx:for如果传Parse Object * 凡是通过object.get('name')来获取的数据都可能为空 还会报Expect FLOW_CREATE_NODE but get another错误 * 所以重新生成一usersForView数组,专门用于wxml中显示使用 */ _createUsersForView: function (users) { let usersForView = []; users.forEach(item => { usersForView.push({ objectId: item.id, id: item.id, username: item.get('username'), nickName: item.get('nickName'), avatarUrl: item.get('avatarUrl') }) }); return usersForView; }, /** * 调用cloudCode实现共享权限给他人 * 然后重新执行_init()方法更新界面 因为共享操作的对象无法确定 无法提前监听到 * @param {*} userId * @param {*} that */ _shareRoleToOtherUser: function (userId, that) { Parse.Cloud.run('shareRoleToOtherUser', { sourceUserId: Parse.User.current().id, targetUserId: userId }) .then(function (result) { console.log(`shareRole:_shareRoleToOtherUser:result:${JSON.stringify(result)}`); if (result.code === 200) { that._init(); } else { wx.showToast({ title: result.msg, icon: 'none', duration: 2000 }) } that.setData({ sharing: false, }); }).catch(function (error) { console.log(`shareRole:_shareRoleToOtherUser:error:${error}`); that.setData({ sharing: false, }); }); }, /** * 关闭所有有的swipeout 除了指定的index */ _closeAllSwipeoutExcept: function (index) { console.log(`mine:_closeAllSwipeoutExcept:index:${index} toggles:${this.data.toggles}`); let toggles = this.data.toggles; for (let i = 0; i < toggles.length; i++) { if (i !== index) { toggles[i] = toggles[i] ? false : true; } } this.setData({ toggles }); }, /** * 关闭所有有的swipeout */ _closeAllSwipeout: function () { console.log(`mine:_closeAllSwipeout:toggles:${this.data.toggles}`); let toggles = this.data.toggles; for (let i = 0; i < toggles.length; i++) { toggles[i] = toggles[i] ? false : true;; } this.setData({ toggles }); }, /** * 监听 共享操作完成后更新界面 * 三种情况 * 1、未共享他们权限 通过转发分享权限 监听Parse.User.current()的ownRole对象 对方接受 ownRole的users会更新 本方法实现 * 2、自己共享他人权限 他人取消 ownRole 会把自己加入ownRole的users中 本方法实现 * 3、自己共享他人权限 自己取消 ownRole 会把自己加入ownRole的users中 本方法实现 */ _subscribeOwnRole: function () { console.log(`shareRole:_subscribeOwnRole:`); if (sOwnRole) { sOwnRole.unsubscribe(); sOwnRole = null; } let that = this; let user = Parse.User.current(); let ownRole = user.get('ownRole'); let query = new Parse.Query('_Role'); query.equalTo("objectId", ownRole.id); sOwnRole = query.subscribe(); sOwnRole.on('open', () => { console.log(`shareRole:sOwnRole:opened`); }); sOwnRole.on('update', (role) => { console.log(`shareRole:sOwnRole updated1:${role.id}`); //有更新 直接update that._init(); }); sOwnRole.on('enter', (role) => { console.log(`shareRole:sOwnRole:entered:${JSON.stringify(role)}`); }); sOwnRole.on('close', () => { console.log('shareRole:sOwnRole:closed'); }); }, })
28.111969
157
0.584466
4a9a8d225733f65f1f8e2689b49e155448c1fa0f
131
js
JavaScript
dist/resources/openui5/fc/SeriesRenderer.js
fokind/fc
aac9e21f0d1104c7ab8373428878de31f69b24c6
[ "MIT" ]
2
2020-03-18T19:06:04.000Z
2021-04-08T17:58:49.000Z
dist/resources/openui5/financial/chart/ValueAxisRenderer.js
fokind/openui5-financial-charts
d65e84ca1e65a00d02ab2a1680c6ecbaadaa1db5
[ "MIT" ]
5
2019-08-02T05:46:11.000Z
2021-05-09T22:46:57.000Z
dist/resources/openui5/fc/ValueAxisRenderer.js
fokind/fc
aac9e21f0d1104c7ab8373428878de31f69b24c6
[ "MIT" ]
null
null
null
sap.ui.define([],function(){"use strict";return{render:function(t,e){t.write("<g");t.writeControlData(e);t.write("></g>")}}},true);
131
131
0.656489
4a9bffcf848de6f3e8487d34ef288459c90940e9
1,153
js
JavaScript
src/modules/role.upgrader.js
Kirinel/Screeps-scripts
eb4e04d98db06559b3927dc9d3d8b6f0fcdcc748
[ "MIT" ]
null
null
null
src/modules/role.upgrader.js
Kirinel/Screeps-scripts
eb4e04d98db06559b3927dc9d3d8b6f0fcdcc748
[ "MIT" ]
null
null
null
src/modules/role.upgrader.js
Kirinel/Screeps-scripts
eb4e04d98db06559b3927dc9d3d8b6f0fcdcc748
[ "MIT" ]
null
null
null
export var roleUpgrader = { /** @param {Creep} creep **/ run: function(creep) { if(creep.store[RESOURCE_ENERGY] == 0) { creep.memory.upgrading = false; } if(creep.store.getFreeCapacity() == 0) { creep.memory.upgrading = true; } if(creep.memory.upgrading) { if(creep.upgradeController(creep.room.controller) == ERR_NOT_IN_RANGE) { creep.moveTo(creep.room.controller, {visualizePathStyle: {stroke: '#ffffff'}}); } } else { // var closestContainer = creep.room.find(FIND_STRUCTURES, { // filter: structure => structure.structureType == STRUCTURE_CONTAINER // }); // if(creep.withdraw(closestContainer[0], RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) { // creep.moveTo(closestContainer[0], {visualizePathStyle: {stroke: '#ffaa00'}}) // } if(creep.withdraw(creep.room.storage, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) { creep.moveTo(creep.room.storage, {visualizePathStyle: {stroke: '#ffaa00'}}) } } } };
37.193548
95
0.55941
4a9d5af7cce3dc381a232b78deea0fb065f67c46
4,856
js
JavaScript
docs/static/js/main.c0e7bb5b.chunk.js
jleon253/react-music
18657e43aa700cefd6ea96d54ad85ad4fb01cee5
[ "Apache-2.0" ]
null
null
null
docs/static/js/main.c0e7bb5b.chunk.js
jleon253/react-music
18657e43aa700cefd6ea96d54ad85ad4fb01cee5
[ "Apache-2.0" ]
null
null
null
docs/static/js/main.c0e7bb5b.chunk.js
jleon253/react-music
18657e43aa700cefd6ea96d54ad85ad4fb01cee5
[ "Apache-2.0" ]
null
null
null
(this["webpackJsonpletras-canciones"]=this["webpackJsonpletras-canciones"]||[]).push([[0],{18:function(e,t,a){e.exports=a(42)},23:function(e,t,a){},42:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a.n(n),r=a(16),l=a.n(r),o=(a(23),a(4)),s=a.n(o),i=a(17),m=a(2),u=a(5),d=a.n(u),E=a(3),p=a(6),b=function(e){var t=e.setBusquedaLetra,a=Object(n.useState)({artista:"",cancion:""}),r=Object(m.a)(a,2),l=r[0],o=r[1],s=Object(n.useState)(!1),i=Object(m.a)(s,2),u=i[0],d=i[1],b=l.artista,f=l.cancion,g=function(e){o(Object(p.a)(Object(p.a)({},l),{},Object(E.a)({},e.target.name,e.target.value)))};return c.a.createElement("div",{className:"bg-info"},c.a.createElement("div",{className:"container"},c.a.createElement("div",{className:"row"},c.a.createElement("form",{onSubmit:function(e){e.preventDefault(),""!==b.trim()&&""!==f.trim()?(d(!1),t(l)):d(!0)},className:"col card text-white bg-transparent mb-5 pt-5 pb-2"},c.a.createElement("fieldset",null,c.a.createElement("legend",{className:"text-center"},"Buscador en letras de canciones"),c.a.createElement("div",{className:"row"},u?c.a.createElement("div",{className:"col-md-12"},c.a.createElement("div",{className:"alert alert-danger p-2 text-center"},c.a.createElement("strong",null,"Todos los campos son obligatorios!!"))):null,c.a.createElement("div",{className:"col-md-6"},c.a.createElement("div",{className:"form-group"},c.a.createElement("label",null,"Artista"),c.a.createElement("input",{type:"text",className:"form-control",name:"artista",placeholder:"Nombre Artista",value:b,onChange:g}))),c.a.createElement("div",{className:"col-md-6"},c.a.createElement("div",{className:"form-group"},c.a.createElement("label",null,"Canci\xf3n"),c.a.createElement("input",{type:"text",className:"form-control",name:"cancion",placeholder:"Nombre Canci\xf3n",value:f,onChange:g})))),c.a.createElement("button",{type:"submit",className:"btn btn-primary float-right"},"Buscar"))))))},f=function(e){var t=e.letra;return 0===t.length?null:c.a.createElement(n.Fragment,null,c.a.createElement("h3",null,"Letra de canci\xf3n"),c.a.createElement("hr",null),c.a.createElement("p",{className:"letra"},t))},g=function(e){var t=e.bioArtista;return Object(n.useEffect)((function(){document.getElementById("bio").innerHTML=t}),[t]),c.a.createElement(n.Fragment,null,c.a.createElement("h3",null,"Biograf\xeda del artista."),c.a.createElement("hr",null),c.a.createElement("p",{id:"bio",className:"letra"}))};var h=function(){var e=Object(n.useState)({}),t=Object(m.a)(e,2),a=t[0],r=t[1],l=Object(n.useState)(""),o=Object(m.a)(l,2),u=o[0],E=o[1],p=Object(n.useState)(""),h=Object(m.a)(p,2),v=h[0],N=h[1],j=Object(n.useState)(!1),O=Object(m.a)(j,2),w=O[0],y=O[1],k=a.artista,x=a.cancion;return Object(n.useEffect)((function(){0!==Object.keys(a).length&&function(){var e=Object(i.a)(s.a.mark((function e(){var t,a,n,c,r,l;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),"Mjg0MzA1NDktNzI3OC00YjQ3LWFkNzEtMzdhOWE0YjQ0YTIw",t="http://api.napster.com/v2.2/search?apikey=".concat("Mjg0MzA1NDktNzI3OC00YjQ3LWFkNzEtMzdhOWE0YjQ0YTIw","&query=").concat(k,"&type=artist"),a="https://api.lyrics.ovh/v1/".concat(k,"/").concat(x),e.next=6,Promise.all([d.a.get(t).then((function(e){return e})).catch((function(e){if(e.response)return console.log(e.response.data),console.log(e.response.status),console.log(e.response.headers),e.response;e.request?console.log(e.request):console.log("Error",e.message)})),d.a.get(a).then((function(e){return e})).catch((function(e){if(e.response)return e.response}))]);case 6:n=e.sent,c=Object(m.a)(n,2),r=c[0],l=c[1],console.log("Artista",r),console.log("Cancion",l),404!==r.status&&404!==l.status?(N(r.data.search.data.artists[0].bios[0].bio),E(l.data.lyrics)):(N("No encontrado"),E("No encontrado")),y(!1);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[a]),c.a.createElement("div",{className:"App"},c.a.createElement(b,{setBusquedaLetra:r}),c.a.createElement("div",{className:"container mt-4"},c.a.createElement("div",{className:"row"},w?c.a.createElement("div",{className:"col-md-6 offset-md-3 text-center"},"Cargando..."):c.a.createElement(n.Fragment,null,c.a.createElement("div",{className:"col-md-6 my-3"},v?c.a.createElement(g,{bioArtista:v}):null),c.a.createElement("div",{className:"col-md-6 my-3"},c.a.createElement(f,{letra:u}))))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));l.a.render(c.a.createElement(c.a.StrictMode,null,c.a.createElement(h,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[18,1,2]]]); //# sourceMappingURL=main.c0e7bb5b.chunk.js.map
2,428
4,808
0.696458
4a9ef90a67380b7e93319ee3c6601b4242808702
561
js
JavaScript
server/schemas/typeDefs/index.js
Supasiti/lend-it-forward
1514a44f84510bd0301e3fdf78587ae19aaf5462
[ "MIT" ]
1
2021-11-11T07:46:22.000Z
2021-11-11T07:46:22.000Z
server/schemas/typeDefs/index.js
Supasiti/lend-it-forward
1514a44f84510bd0301e3fdf78587ae19aaf5462
[ "MIT" ]
null
null
null
server/schemas/typeDefs/index.js
Supasiti/lend-it-forward
1514a44f84510bd0301e3fdf78587ae19aaf5462
[ "MIT" ]
null
null
null
const { gql } = require('apollo-server-express'); const user = require('./user'); const loan = require('./loan'); const queuer = require('./queuer'); const root = gql` scalar Upload input UploadPhotoInput { photo: Upload! _id: ID! model: String! } type UploadPhotoResponse { success: Boolean imageUrl: String } type Query { root: String } type Mutation { root: String uploadPhoto(upload: UploadPhotoInput!): UploadPhotoResponse } `; const typeDefs = [root, user, loan, queuer]; module.exports = typeDefs;
17.53125
63
0.652406
4a9f0bd8cef4c00f74e52a14d039dc2a9061806c
101
js
JavaScript
pages/docs/index.js
revgum/docs
72145a943aede606359e45ea5ff1d715a2aff380
[ "MIT" ]
2
2020-03-13T22:45:31.000Z
2021-11-15T12:07:44.000Z
pages/docs/index.js
revgum/docs
72145a943aede606359e45ea5ff1d715a2aff380
[ "MIT" ]
13
2019-11-01T13:14:48.000Z
2021-09-01T06:03:15.000Z
pages/docs/index.js
revgum/docs
72145a943aede606359e45ea5ff1d715a2aff380
[ "MIT" ]
1
2019-01-31T04:12:16.000Z
2019-01-31T04:12:16.000Z
import Introduction from './v2/getting-started/introduction-to-now.mdx' export default Introduction
25.25
71
0.821782
4a9f40a14f68cfc8f74601b59bf56797aea2911c
88,467
js
JavaScript
dist/logicRunner.min.js
stoplightio/logic-runner
1bcca09edc56f6fce120a7d17d04827e858ed317
[ "Apache-2.0" ]
1
2016-09-29T20:04:30.000Z
2016-09-29T20:04:30.000Z
dist/logicRunner.min.js
stoplightio/logic-runner
1bcca09edc56f6fce120a7d17d04827e858ed317
[ "Apache-2.0" ]
null
null
null
dist/logicRunner.min.js
stoplightio/logic-runner
1bcca09edc56f6fce120a7d17d04827e858ed317
[ "Apache-2.0" ]
null
null
null
var logicRunner=function(){function isPrototype$2(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||objectProto$2;return e===r}function overArg$1(e,t){return function(r){return e(t(r))}}function baseKeys$1(e){if(!isPrototype$1(e))return nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$1.call(e,r)&&"constructor"!=r&&t.push(r);return t}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}function getRawTag$1(e){var t=hasOwnProperty$3.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(e){}var n=nativeObjectToString.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),n}function objectToString$1(e){return nativeObjectToString$1.call(e)}function baseGetTag$2(e){return null==e?void 0===e?undefinedTag:nullTag:(e=Object(e),symToStringTag&&symToStringTag in e?getRawTag(e):objectToString(e))}function isObject$2(e){var t="undefined"==typeof e?"undefined":_typeof(e);return null!=e&&("object"==t||"function"==t)}function isFunction$1(e){if(!isObject$1(e))return!1;var t=baseGetTag$1(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function baseIsNative$1(e){if(!isObject(e)||isMasked(e))return!1;var t=isFunction(e)?reIsNative:reIsHostCtor;return t.test(toSource$1(e))}function getValue$1(e,t){return null==e?void 0:e[t]}function getNative$1(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}function isObjectLike$2(e){return null!=e&&"object"==("undefined"==typeof e?"undefined":_typeof(e))}function baseIsArguments$1(e){return isObjectLike$1(e)&&baseGetTag$3(e)==argsTag}function isLength$1(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike$1(e){return null!=e&&isLength(e.length)&&!isFunction$2(e)}function stubFalse(){return!1}function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$2(e.length)&&!!typedArrayTags[baseGetTag$4(e)]}function baseUnary$1(e){return function(t){return e(t)}}function isEmpty(e){if(null==e)return!0;if(isArrayLike(e)&&(isArray(e)||"string"==typeof e||"function"==typeof e.splice||isBuffer(e)||isTypedArray(e)||isArguments(e)))return!e.length;var t=getTag(e);if(t==mapTag||t==setTag)return!e.size;if(isPrototype(e))return!baseKeys(e).length;for(var r in e)if(hasOwnProperty.call(e,r))return!1;return!0}function baseHas$1(e,t){return null!=e&&hasOwnProperty$5.call(e,t)}function isSymbol$1(e){return"symbol"==("undefined"==typeof e?"undefined":_typeof(e))||isObjectLike$4(e)&&baseGetTag$5(e)==symbolTag}function isKey$1(e,t){if(isArray$5(e))return!1;var r="undefined"==typeof e?"undefined":_typeof(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}function hashClear$1(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED?void 0:r}return hasOwnProperty$6.call(t,e)?t[e]:void 0}function hashHas$1(e){var t=this.__data__;return nativeCreate$3?void 0!==t[e]:hasOwnProperty$7.call(t,e)}function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$4&&void 0===t?HASH_UNDEFINED$1:t,this}function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function listCacheClear$1(){this.__data__=[],this.size=0}function eq$1(e,t){return e===t||e!==e&&t!==t}function assocIndexOf$1(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():splice.call(t,r,1),--this.size,!0}function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}function listCacheHas$1(e){return assocIndexOf$3(this.__data__,e)>-1}function listCacheSet$1(e,t){var r=this.__data__,a=assocIndexOf$4(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function ListCache$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable$1(e){var t="undefined"==typeof e?"undefined":_typeof(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function getMapData$1(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}function mapCacheDelete$1(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}function mapCacheHas$1(e){return getMapData$3(this,e).has(e)}function mapCacheSet$1(e,t){var r=getMapData$4(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function MapCache$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);var r=function r(){var a=arguments,n=t?t.apply(this,a):a[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,a);return r.cache=o.set(n,s)||o,s};return r.cache=new(memoize$1.Cache||MapCache),r}function memoizeCapped$1(e){var t=memoize(e,function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e}),r=t.cache;return t}function arrayMap$1(e,t){for(var r=-1,a=null==e?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}function baseToString$1(e){if("string"==typeof e)return e;if(isArray$6(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function toString$2(e){return null==e?"":baseToString(e)}function castPath$1(e,t){return isArray$4(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}function isIndex$1(e,t){return t=null==t?MAX_SAFE_INTEGER$1:t,!!t&&("number"==typeof e||reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function toKey$1(e){if("string"==typeof e||isSymbol$3(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}function hasPath$1(e,t,r){t=castPath(t,e);for(var a=-1,n=t.length,o=!1;++a<n;){var s=toKey(t[a]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}return o||++a!=n?o:(n=null==e?0:e.length,!!n&&isLength$3(n)&&isIndex(s,n)&&(isArray$3(e)||isArguments$2(e)))}function has(e,t){return null!=e&&hasPath(e,t,baseHas)}function stackClear$1(){this.__data__=new ListCache$3,this.size=0}function stackDelete$1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function stackGet$1(e){return this.__data__.get(e)}function stackHas$1(e){return this.__data__.has(e)}function stackSet$1(e,t){var r=this.__data__;if(r instanceof ListCache$4){var a=r.__data__;if(!Map$3||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache$2(a)}return r.set(e,t),this.size=r.size,this}function Stack$1(e){var t=this.__data__=new ListCache$2(e);this.size=t.size}function baseAssignValue$1(e,t,r){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function assignMergeValue$1(e,t,r){(void 0===r||eq$2(e[t],r))&&(void 0!==r||t in e)||baseAssignValue(e,t,r)}function createBaseFor$1(e){return function(t,r,a){for(var n=-1,o=Object(t),s=a(t),i=s.length;i--;){var c=s[e?i:++n];if(r(o[c],c,o)===!1)break}return t}}function cloneArrayBuffer$1(e){var t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function cloneTypedArray$1(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function copyArray$1(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype$3(e)?{}:baseCreate(getPrototype(e))}function isArrayLikeObject$1(e){return isObjectLike$5(e)&&isArrayLike$2(e)}function isPlainObject$1(e){if(!isObjectLike$6(e)||baseGetTag$6(e)!=objectTag$2)return!1;var t=getPrototype$2(e);if(null===t)return!0;var r=hasOwnProperty$8.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&funcToString$2.call(r)==objectCtorString}function assignValue$1(e,t,r){var a=e[t];hasOwnProperty$9.call(e,t)&&eq$3(a,r)&&(void 0!==r||t in e)||baseAssignValue$3(e,t,r)}function copyObject$1(e,t,r,a){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var i=t[o],c=a?a(r[i],e[i],i,r,e):void 0;void 0===c&&(c=e[i]),n?baseAssignValue$2(r,i,c):assignValue(r,i,c)}return r}function baseTimes$1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}function arrayLikeKeys$1(e,t){var r=isArray$8(e),a=!r&&isArguments$4(e),n=!r&&!a&&isBuffer$3(e),o=!r&&!a&&!n&&isTypedArray$3(e),s=r||a||n||o,i=s?baseTimes(e.length,String):[],c=i.length;for(var u in e)!t&&!hasOwnProperty$10.call(e,u)||s&&("length"==u||n&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||isIndex$2(u,c))||i.push(u);return i}function nativeKeysIn$1(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function baseKeysIn$1(e){if(!isObject$6(e))return nativeKeysIn(e);var t=isPrototype$4(e),r=[];for(var a in e)("constructor"!=a||!t&&hasOwnProperty$11.call(e,a))&&r.push(a);return r}function keysIn$3(e){return isArrayLike$3(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}function toPlainObject$1(e){return copyObject(e,keysIn$2(e))}function baseMergeDeep$1(e,t,r,a,n,o,s){var i=e[r],c=t[r],u=s.get(c);if(u)return void assignMergeValue$2(e,r,u);var l=o?o(i,c,r+"",e,t,s):void 0,f=void 0===l;if(f){var y=isArray$7(c),p=!y&&isBuffer$2(c),g=!y&&!p&&isTypedArray$2(c);l=c,y||p||g?isArray$7(i)?l=i:isArrayLikeObject(i)?l=copyArray(i):p?(f=!1,l=cloneBuffer(c,!0)):g?(f=!1,l=cloneTypedArray(c,!0)):l=[]:isPlainObject(c)||isArguments$3(c)?(l=i,isArguments$3(i)?l=toPlainObject(i):(!isObject$4(i)||a&&isFunction$3(i))&&(l=initCloneObject(c))):f=!1}f&&(s.set(c,l),n(l,c,a,o,s),s.delete(c)),assignMergeValue$2(e,r,l)}function baseMerge$1(e,t,r,a,n){e!==t&&baseFor(t,function(o,s){if(isObject$3(o))n||(n=new Stack),baseMergeDeep(e,t,s,r,baseMerge$1,a,n);else{var i=a?a(e[s],o,s+"",e,t,n):void 0;void 0===i&&(i=o),assignMergeValue(e,s,i)}},keysIn$1)}function identity$1(e){return e}function apply$1(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function overRest$1(e,t,r){return t=nativeMax(void 0===t?e.length-1:t,0),function(){for(var a=arguments,n=-1,o=nativeMax(a.length-t,0),s=Array(o);++n<o;)s[n]=a[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=a[n];return i[t]=r(s),apply(e,this,i)}}function constant$1(e){return function(){return e}}function shortOut$1(e){var t=0,r=0;return function(){var a=nativeNow(),n=HOT_SPAN-(a-r);if(r=a,n>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function baseRest$1(e,t){return setToString(overRest(e,t,identity),e+"")}function isIterateeCall$1(e,t,r){if(!isObject$7(r))return!1;var a="undefined"==typeof t?"undefined":_typeof(t);return!!("number"==a?isArrayLike$4(r)&&isIndex$3(t,r.length):"string"==a&&t in r)&&eq$4(r[t],e)}function createAssigner$1(e){return baseRest(function(t,r){var a=-1,n=r.length,o=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,s&&isIterateeCall(r[0],r[1],s)&&(o=n<3?void 0:o,n=1),t=Object(t);++a<n;){var i=r[a];i&&e(t,i,a,o)}return t})}function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED$2),this}function setCacheHas$1(e){return this.__data__.has(e)}function SetCache$1(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache$3;++t<r;)this.add(e[t])}function arraySome$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function cacheHas$1(e,t){return e.has(t)}function equalArrays$1(e,t,r,a,n,o){var s=r&COMPARE_PARTIAL_FLAG$2,i=e.length,c=t.length;if(i!=c&&!(s&&c>i))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,f=!0,y=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(o.set(e,t),o.set(t,e);++l<i;){var p=e[l],g=t[l];if(a)var $=s?a(g,p,l,t,e,o):a(p,g,l,e,t,o);if(void 0!==$){if($)continue;f=!1;break}if(y){if(!arraySome(t,function(e,t){if(!cacheHas(y,t)&&(p===e||n(p,e,r,a,o)))return y.push(t)})){f=!1;break}}else if(p!==g&&!n(p,g,r,a,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function mapToArray$1(e){var t=-1,r=Array(e.size);return e.forEach(function(e,a){r[++t]=[a,e]}),r}function setToArray$1(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function equalByTag$1(e,t,r,a,n,o,s){switch(r){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!o(new Uint8Array$2(e),new Uint8Array$2(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$5(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$3:var i=mapToArray;case setTag$3:var c=a&COMPARE_PARTIAL_FLAG$3;if(i||(i=setToArray),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;a|=COMPARE_UNORDERED_FLAG$2,s.set(e,t);var l=equalArrays$2(i(e),i(t),a,n,o,s);return s.delete(e),l;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}function keys$1(e){return isArrayLike$5(e)?arrayLikeKeys$2(e):baseKeys$2(e)}function equalObjects$1(e,t,r,a,n,o){var s=r&COMPARE_PARTIAL_FLAG$4,i=keys(e),c=i.length,u=keys(t),l=u.length;if(c!=l&&!s)return!1;for(var f=c;f--;){var y=i[f];if(!(s?y in t:hasOwnProperty$13.call(t,y)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var g=!0;o.set(e,t),o.set(t,e);for(var $=s;++f<c;){y=i[f];var b=e[y],_=t[y];if(a)var h=s?a(_,b,y,t,e,o):a(b,_,y,e,t,o);if(!(void 0===h?b===_||n(b,_,r,a,o):h)){g=!1;break}$||($="constructor"==y)}if(g&&!$){var d=e.constructor,m=t.constructor;d!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof d&&d instanceof d&&"function"==typeof m&&m instanceof m)&&(g=!1)}return o.delete(e),o.delete(t),g}function baseIsEqualDeep$1(e,t,r,a,n,o){var s=isArray$11(e),i=isArray$11(t),c=arrayTag$1,u=arrayTag$1;s||(c=getTag$2(e),c=c==argsTag$2?objectTag$3:c),i||(u=getTag$2(t),u=u==argsTag$2?objectTag$3:u);var l=c==objectTag$3,f=u==objectTag$3,y=c==u;if(y&&isBuffer$4(e)){if(!isBuffer$4(t))return!1;s=!0,l=!1}if(y&&!l)return o||(o=new Stack$3),s||isTypedArray$4(e)?equalArrays(e,t,r,a,n,o):equalByTag(e,t,c,r,a,n,o);if(!(r&COMPARE_PARTIAL_FLAG$1)){var p=l&&hasOwnProperty$12.call(e,"__wrapped__"),g=f&&hasOwnProperty$12.call(t,"__wrapped__");if(p||g){var $=p?e.value():e,b=g?t.value():t;return o||(o=new Stack$3),n($,b,r,a,o)}}return!!y&&(o||(o=new Stack$3),equalObjects(e,t,r,a,n,o))}function baseIsEqual$1(e,t,r,a,n){return e===t||(null==e||null==t||!isObject$8(e)&&!isObjectLike$7(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,a,baseIsEqual$1,n))}function baseIsMatch$1(e,t,r,a){var n=r.length,o=n,s=!a;if(null==e)return!o;for(e=Object(e);n--;){var i=r[n];if(s&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++n<o;){i=r[n];var c=i[0],u=e[c],l=i[1];if(s&&i[2]){if(void 0===u&&!(c in e))return!1}else{var f=new Stack$2;if(a)var y=a(u,l,c,e,t,f);if(!(void 0===y?baseIsEqual(l,u,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,a,f):y))return!1}}return!0}function isStrictComparable$1(e){return e===e&&!isObject$9(e)}function getMatchData$1(e){for(var t=keys$2(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,isStrictComparable(n)]}return t}function matchesStrictComparable$1(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function baseMatches$1(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}function baseGet$1(e,t){t=castPath$2(t,e);for(var r=0,a=t.length;null!=e&&r<a;)e=e[toKey$3(t[r++])];return r&&r==a?e:void 0}function get$2(e,t,r){var a=null==e?void 0:baseGet(e,t);return void 0===a?r:a}function baseHasIn$1(e,t){return null!=e&&t in Object(e)}function hasIn$1(e,t){return null!=e&&hasPath$2(e,t,baseHasIn)}function baseMatchesProperty$1(e,t){return isKey$2(e)&&isStrictComparable$2(t)?matchesStrictComparable$2(toKey$2(e),t):function(r){var a=get$1(r,e);return void 0===a&&a===t?hasIn(r,e):baseIsEqual$2(t,a,COMPARE_PARTIAL_FLAG$5|COMPARE_UNORDERED_FLAG$3)}}function baseProperty$1(e){return function(t){return null==t?void 0:t[e]}}function basePropertyDeep$1(e){return function(t){return baseGet$2(t,e)}}function property$1(e){return isKey$3(e)?baseProperty(toKey$4(e)):basePropertyDeep(e)}function baseIteratee$1(e){return"function"==typeof e?e:null==e?identity$3:"object"==("undefined"==typeof e?"undefined":_typeof(e))?isArray$10(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}function baseForOwn$1(e,t){return e&&baseFor$2(e,t,keys$3)}function createBaseEach$1(e,t){return function(r,a){if(null==r)return r;if(!isArrayLike$7(r))return e(r,a);for(var n=r.length,o=t?n:-1,s=Object(r);(t?o--:++o<n)&&a(s[o],o,s)!==!1;);return r}}function baseMap$1(e,t){var r=-1,a=isArrayLike$6(e)?Array(e.length):[];return baseEach(e,function(e,n,o){a[++r]=t(e,n,o)}),a}function map(e,t){var r=isArray$9(e)?arrayMap$2:baseMap;return r(e,baseIteratee(t,3))}function baseSet$1(e,t,r,a){if(!isObject$10(e))return e;t=castPath$3(t,e);for(var n=-1,o=t.length,s=o-1,i=e;null!=i&&++n<o;){var c=toKey$5(t[n]),u=r;if(n!=s){var l=i[c];u=a?a(l,c,i):void 0,void 0===u&&(u=isObject$10(l)?l:isIndex$4(t[n+1])?[]:{})}assignValue$2(i,c,u),i=i[c]}return e}function set$1(e,t,r){return null==e?e:baseSet(e,t,r)}function baseFindIndex$1(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o<n;)if(t(e[o],o,e))return o;return-1}function baseIsNaN$1(e){return e!==e}function strictIndexOf$1(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}function baseIndexOf$1(e,t,r){return t===t?strictIndexOf(e,t,r):baseFindIndex(e,baseIsNaN,r)}function isString$1(e){return"string"==typeof e||!isArray$12(e)&&isObjectLike$8(e)&&baseGetTag$7(e)==stringTag$2}function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$4(e))return NAN;if(isObject$11(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$11(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}function toFinite$1(e){if(!e)return 0===e?e:0;if(e=toNumber(e),e===INFINITY$2||e===-INFINITY$2){var t=e<0?-1:1;return t*MAX_INTEGER}return e===e?e:0}function toInteger$1(e){var t=toFinite(e),r=t%1;return t===t?r?t-r:t:0}function baseValues$1(e,t){return arrayMap$3(t,function(t){return e[t]})}function values$1(e){return null==e?[]:baseValues(e,keys$4(e))}function includes(e,t,r,a){e=isArrayLike$8(e)?e:values(e),r=r&&!a?toInteger(r):0;var n=e.length;return r<0&&(r=nativeMax$1(n+r,0)),isString(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&baseIndexOf(e,t,r)>-1}function arrayEach$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}function baseAssign$1(e,t){return e&&copyObject$2(t,keys$6(t),e)}function baseAssignIn$1(e,t){return e&&copyObject$3(t,keysIn$4(t),e)}function stubArray$1(){return[]}function copySymbols$1(e,t){return copyObject$4(e,getSymbols(e),t)}function arrayPush$1(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}function copySymbolsIn$1(e,t){return copyObject$5(e,getSymbolsIn(e),t)}function baseGetAllKeys$1(e,t,r){var a=t(e);return isArray$14(e)?a:arrayPush$2(a,r(e))}function getAllKeys$1(e){return baseGetAllKeys(e,keys$7,getSymbols$3)}function getAllKeysIn$1(e){return baseGetAllKeys$2(e,keysIn$5,getSymbolsIn$2)}function initCloneArray$1(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$14.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function cloneDataView$1(e,t){var r=t?cloneArrayBuffer$3(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function addMapEntry$1(e,t){return e.set(t[0],t[1]),e}function arrayReduce$1(e,t,r,a){var n=-1,o=null==e?0:e.length;for(a&&o&&(r=e[++n]);++n<o;)r=t(r,e[n],n,e);return r}function cloneMap$1(e,t,r){var a=t?r(mapToArray$2(e),CLONE_DEEP_FLAG$1):mapToArray$2(e);return arrayReduce(a,addMapEntry,new e.constructor)}function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}function addSetEntry$1(e,t){return e.add(t),e}function cloneSet$1(e,t,r){var a=t?r(setToArray$2(e),CLONE_DEEP_FLAG$2):setToArray$2(e);return arrayReduce$2(a,addSetEntry,new e.constructor)}function cloneSymbol$1(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}function initCloneByTag$1(e,t,r,a){var n=e.constructor;switch(t){case arrayBufferTag$3:return cloneArrayBuffer$2(e);case boolTag$3:case dateTag$3:return new n(+e);case dataViewTag$4:return cloneDataView(e,a);case float32Tag$2:case float64Tag$2:case int8Tag$2:case int16Tag$2:case int32Tag$2:case uint8Tag$2:case uint8ClampedTag$2:case uint16Tag$2:case uint32Tag$2:return cloneTypedArray$2(e,a);case mapTag$5:return cloneMap(e,a,r);case numberTag$3:case stringTag$4:return new n(e);case regexpTag$3:return cloneRegExp(e);case setTag$5:return cloneSet(e,a,r);case symbolTag$3:return cloneSymbol(e)}}function baseClone$1(e,t,r,a,n,o){var s,i=t&CLONE_DEEP_FLAG,c=t&CLONE_FLAT_FLAG,u=t&CLONE_SYMBOLS_FLAG$1;if(r&&(s=n?r(e,a,n,o):r(e)),void 0!==s)return s;if(!isObject$12(e))return e;var l=isArray$13(e);if(l){if(s=initCloneArray(e),!i)return copyArray$2(e,s)}else{var f=getTag$3(e),y=f==funcTag$2||f==genTag$1;if(isBuffer$5(e))return cloneBuffer$1(e,i);if(f==objectTag$4||f==argsTag$3||y&&!n){if(s=c||y?{}:initCloneObject$2(e),!i)return c?copySymbolsIn(e,baseAssignIn(s,e)):copySymbols(e,baseAssign(s,e))}else{if(!cloneableTags[f])return n?e:{};s=initCloneByTag(e,f,baseClone$1,i)}}o||(o=new Stack$4);var p=o.get(e);if(p)return p;o.set(e,s);var g=u?c?getAllKeysIn:getAllKeys:c?keysIn:keys$5,$=l?void 0:g(e);return arrayEach($||e,function(a,n){$&&(n=a,a=e[n]),assignValue$3(s,n,baseClone$1(a,t,r,n,e,o))}),s}function clone$1(e){return baseClone(e,CLONE_SYMBOLS_FLAG)}function castFunction$1(e){return"function"==typeof e?e:identity$4}function forEach(e,t){var r=isArray$15(e)?arrayEach$2:baseEach$2;return r(e,castFunction(t))}function baseSlice$1(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++a<n;)o[a]=e[a+t];return o}function castSlice$1(e,t,r){var a=e.length;return r=void 0===r?a:r,!t&&r>=a?e:baseSlice(e,t,r)}function charsEndIndex$1(e,t){for(var r=e.length;r--&&baseIndexOf$2(t,e[r],0)>-1;);return r}function charsStartIndex$1(e,t){for(var r=-1,a=e.length;++r<a&&baseIndexOf$3(t,e[r],0)>-1;);return r}function asciiToArray$1(e){return e.split("")}function hasUnicode$1(e){return reHasUnicode.test(e)}function unicodeToArray$1(e){return e.match(reUnicode)||[]}function stringToArray$1(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function trim(e,t,r){if(e=toString$3(e),e&&(r||void 0===t))return e.replace(reTrim$1,"");if(!e||!(t=baseToString$2(t)))return e;var a=stringToArray(e),n=stringToArray(t),o=charsStartIndex(a,n),s=charsEndIndex(a,n)+1;return castSlice(a,o,s).join("")}function arrayIncludes$1(e,t){var r=null==e?0:e.length;return!!r&&baseIndexOf$4(e,t,0)>-1}function arrayIncludesWith$1(e,t,r){for(var a=-1,n=null==e?0:e.length;++a<n;)if(r(t,e[a]))return!0;return!1}function noop$1(){}function baseUniq$1(e,t,r){var a=-1,n=arrayIncludes,o=e.length,s=!0,i=[],c=i;if(r)s=!1,n=arrayIncludesWith;else if(o>=LARGE_ARRAY_SIZE$1){var u=t?null:createSet(e);if(u)return setToArray$3(u);s=!1,n=cacheHas$2,c=new SetCache$2}else c=t?[]:i;e:for(;++a<o;){var l=e[a],f=t?t(l):l;if(l=r||0!==l?l:0,s&&f===f){for(var y=c.length;y--;)if(c[y]===f)continue e;t&&c.push(f),i.push(l)}else n(c,f,r)||(c!==i&&c.push(f),i.push(l))}return i}function uniq(e){return e&&e.length?baseUniq(e):[]}function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function parent$1(e,t){return t.length<2?e:baseGet$3(e,baseSlice$2(t,0,-1))}function baseUnset$1(e,t){return t=castPath$5(t,e),e=parent(e,t),null==e||delete e[toKey$6(last(t))]}function isFlattenable$1(e){return isArray$16(e)||isArguments$5(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}function baseFlatten$1(e,t,r,a,n){var o=-1,s=e.length;for(r||(r=isFlattenable),n||(n=[]);++o<s;){var i=e[o];t>0&&r(i)?t>1?baseFlatten$1(i,t-1,r,a,n):arrayPush$3(n,i):a||(n[n.length]=i)}return n}function flatten$1(e){var t=null==e?0:e.length;return t?baseFlatten(e,1):[]}function flatRest$1(e){return setToString$2(overRest$2(e,void 0,flatten),e+"")}function escapeRegExp(e){return e=toString$4(e),e&&reHasRegExpChar.test(e)?e.replace(reRegExpChar$1,"\\$&"):e}function isEqual(e,t){return baseIsEqual$3(e,t)}function isNumber(e){return"number"==typeof e||isObjectLike$9(e)&&baseGetTag$8(e)==numberTag$4}function isUndefined(e){return void 0===e}function baseGt$1(e,t){return e>t}function createRelationalOperation$1(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=toNumber$2(t),r=toNumber$2(r)),e(t,r)}}function baseLt$1(e,t){return e<t}var objectProto$2=Object.prototype,_isPrototype=isPrototype$2,_overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty,_baseKeys=baseKeys$1,commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},freeGlobal$1="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,_Symbol2=root$1.Symbol,_Symbol$1=_Symbol2,_Symbol$3=_Symbol$1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,nativeObjectToString=objectProto$4.toString,symToStringTag$1=_Symbol$3?_Symbol$3.toStringTag:void 0,_getRawTag=getRawTag$1,objectProto$5=Object.prototype,nativeObjectToString$1=objectProto$5.toString,_objectToString=objectToString$1,_Symbol=_Symbol$1,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag$2,isObject_1=isObject$2,baseGetTag$1=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]",isFunction_1=isFunction$1,root$3=_root,coreJsData$1=root$3["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString,_toSource=toSource$2,isFunction=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$3=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$3.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_baseIsNative=baseIsNative$1,_getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue,_getNative=getNative$1,getNative=_getNative,root=_root,DataView$1=getNative(root,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$4=_root,Map$1=getNative$2(root$4,"Map"),_Map=Map$1,getNative$3=_getNative,root$5=_root,Promise$2=getNative$3(root$5,"Promise"),_Promise=Promise$2,getNative$4=_getNative,root$6=_root,Set$1=getNative$4(root$6,"Set"),_Set=Set$1,getNative$5=_getNative,root$7=_root,WeakMap$1=getNative$5(root$7,"WeakMap"),_WeakMap=WeakMap$1,DataView=_DataView,Map=_Map,Promise$1=_Promise,Set=_Set,WeakMap=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag$1="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag$1(new Map)!=mapTag$1||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set&&getTag$1(new Set)!=setTag$1||WeakMap&&getTag$1(new WeakMap)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),r=t==objectTag?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,isObjectLike_1=isObjectLike$2,baseGetTag$3=_baseGetTag,isObjectLike$1=isObjectLike_1,argsTag="[object Arguments]",_baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike=isObjectLike_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$1,isArray$1=Array.isArray,isArray_1=isArray$1,MAX_SAFE_INTEGER=9007199254740991,isLength_1=isLength$1,isFunction$2=isFunction_1,isLength=isLength_1,isArrayLike_1=isArrayLike$1,stubFalse_1=stubFalse,isBuffer_1=createCommonjsModule(function(e,t){var r=_root,a=stubFalse_1,n="object"==("undefined"==typeof t?"undefined":_typeof(t))&&t&&!t.nodeType&&t,o=n&&"object"==("undefined"==typeof e?"undefined":_typeof(e))&&e&&!e.nodeType&&e,s=o&&o.exports===n,i=s?r.Buffer:void 0,c=i?i.isBuffer:void 0,u=c||a;e.exports=u}),baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag$1="[object Function]",mapTag$2="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag]=typedArrayTags[setTag$2]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1; var _baseIsTypedArray=baseIsTypedArray$1,_baseUnary=baseUnary$1,_nodeUtil=createCommonjsModule(function(e,t){var r=_freeGlobal,a="object"==("undefined"==typeof t?"undefined":_typeof(t))&&t&&!t.nodeType&&t,n=a&&"object"==("undefined"==typeof e?"undefined":_typeof(e))&&e&&!e.nodeType&&e,o=n&&n.exports===a,s=o&&r.process,i=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=i}),baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseKeys=_baseKeys,getTag=_getTag,isArguments=isArguments_1,isArray=isArray_1,isArrayLike=isArrayLike_1,isBuffer=isBuffer_1,isPrototype=_isPrototype,isTypedArray=isTypedArray_1,mapTag="[object Map]",setTag="[object Set]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,isEmpty_1=isEmpty,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,_baseHas=baseHas$1,baseGetTag$5=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag="[object Symbol]",isSymbol_1=isSymbol$1,isArray$5=isArray_1,isSymbol=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,_isKey=isKey$1,getNative$6=_getNative,nativeCreate$1=getNative$6(Object,"create"),_nativeCreate=nativeCreate$1,nativeCreate=_nativeCreate,_hashClear=hashClear$1,_hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty,_hashGet=hashGet$1,nativeCreate$3=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty,_hashHas=hashHas$1,nativeCreate$4=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",_hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1,_listCacheClear=listCacheClear$1,eq_1=eq$1,eq=eq_1,_assocIndexOf=assocIndexOf$1,assocIndexOf=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice,_listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf,_listCacheGet=listCacheGet$1,assocIndexOf$3=_assocIndexOf,_listCacheHas=listCacheHas$1,assocIndexOf$4=_assocIndexOf,_listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;ListCache$1.prototype.clear=listCacheClear,ListCache$1.prototype.delete=listCacheDelete,ListCache$1.prototype.get=listCacheGet,ListCache$1.prototype.has=listCacheHas,ListCache$1.prototype.set=listCacheSet;var _ListCache=ListCache$1,Hash=_Hash,ListCache=_ListCache,Map$2=_Map,_mapCacheClear=mapCacheClear$1,_isKeyable=isKeyable$1,isKeyable=_isKeyable,_getMapData=getMapData$1,getMapData=_getMapData,_mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData,_mapCacheGet=mapCacheGet$1,getMapData$3=_getMapData,_mapCacheHas=mapCacheHas$1,getMapData$4=_getMapData,_mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;MapCache$1.prototype.clear=mapCacheClear,MapCache$1.prototype.delete=mapCacheDelete,MapCache$1.prototype.get=mapCacheGet,MapCache$1.prototype.has=mapCacheHas,MapCache$1.prototype.set=mapCacheSet;var _MapCache=MapCache$1,MapCache=_MapCache,FUNC_ERROR_TEXT="Expected a function";memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500,_memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var t=[];return reLeadingDot.test(e)&&t.push(""),e.replace(rePropName,function(e,r,a,n){t.push(a?n.replace(reEscapeChar,"$1"):r||e)}),t}),_stringToPath=stringToPath$1,_arrayMap=arrayMap$1,_Symbol$4=_Symbol$1,arrayMap=_arrayMap,isArray$6=isArray_1,isSymbol$2=isSymbol_1,INFINITY=1/0,symbolProto=_Symbol$4?_Symbol$4.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,_baseToString=baseToString$1,baseToString=_baseToString,toString_1=toString$2,isArray$4=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1,_castPath=castPath$1,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/,_isIndex=isIndex$1,isSymbol$3=isSymbol_1,INFINITY$1=1/0,_toKey=toKey$1,castPath=_castPath,isArguments$2=isArguments_1,isArray$3=isArray_1,isIndex=_isIndex,isLength$3=isLength_1,toKey=_toKey,_hasPath=hasPath$1,baseHas=_baseHas,hasPath=_hasPath,has_1=has,oauth1_0a=createCommonjsModule(function(e,t){function r(e){if(!(this instanceof r))return new r(e);if(e||(e={}),!e.consumer)throw new Error("consumer option is required");if(this.consumer=e.consumer,this.nonce_length=e.nonce_length||32,this.version=e.version||"1.0",this.parameter_seperator=e.parameter_seperator||", ","undefined"==typeof e.last_ampersand?this.last_ampersand=!0:this.last_ampersand=e.last_ampersand,this.signature_method=e.signature_method||"PLAINTEXT","PLAINTEXT"!=this.signature_method||e.hash_function||(e.hash_function=function(e,t){return t}),!e.hash_function)throw new Error("hash_function option is required");this.hash_function=e.hash_function}"undefined"!=typeof e&&"undefined"!=typeof t&&(e.exports=r),r.prototype.authorize=function(e,t){var r={oauth_consumer_key:this.consumer.key,oauth_nonce:this.getNonce(),oauth_signature_method:this.signature_method,oauth_timestamp:this.getTimeStamp(),oauth_version:this.version};return t||(t={}),t.key&&(r.oauth_token=t.key),e.data||(e.data={}),r.oauth_signature=this.getSignature(e,t.secret,r),r},r.prototype.getSignature=function(e,t,r){return this.hash_function(this.getBaseString(e,r),this.getSigningKey(t))},r.prototype.getBaseString=function(e,t){return e.method.toUpperCase()+"&"+this.percentEncode(this.getBaseUrl(e.url))+"&"+this.percentEncode(this.getParameterString(e,t))},r.prototype.getParameterString=function(e,t){var r=this.sortObject(this.percentEncodeData(this.mergeObject(t,this.mergeObject(e.data,this.deParamUrl(e.url))))),a="";for(var n in r){var o=r[n];if(o&&Array.isArray(o)){o.sort();var s="";o.forEach(function(e,t){s+=n+"="+e,t<o.length&&(s+="&")}.bind(this)),a+=s}else a+=n+"="+o+"&"}return a=a.substr(0,a.length-1)},r.prototype.getSigningKey=function(e){return e=e||"",this.last_ampersand||e?this.percentEncode(this.consumer.secret)+"&"+this.percentEncode(e):this.percentEncode(this.consumer.secret)},r.prototype.getBaseUrl=function(e){return e.split("?")[0]},r.prototype.deParam=function(e){for(var t=e.split("&"),r={},a=0;a<t.length;a++){var n=t[a].split("=");n[1]=n[1]||"",r[n[0]]=decodeURIComponent(n[1])}return r},r.prototype.deParamUrl=function(e){var t=e.split("?");return 1===t.length?{}:this.deParam(t[1])},r.prototype.percentEncode=function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},r.prototype.percentEncodeData=function(e){var t={};for(var r in e){var a=e[r];if(a&&Array.isArray(a)){var n=[];a.forEach(function(e){n.push(this.percentEncode(e))}.bind(this)),a=n}else a=this.percentEncode(a);t[this.percentEncode(r)]=a}return t},r.prototype.toHeader=function(e){e=this.sortObject(e);var t="OAuth ";for(var r in e)r.indexOf("oauth_")!==-1&&(t+=this.percentEncode(r)+'="'+this.percentEncode(e[r])+'"'+this.parameter_seperator);return{Authorization:t.substr(0,t.length-this.parameter_seperator.length)}},r.prototype.getNonce=function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="",r=0;r<this.nonce_length;r++)t+=e[parseInt(Math.random()*e.length,10)];return t},r.prototype.getTimeStamp=function(){return parseInt((new Date).getTime()/1e3,10)},r.prototype.mergeObject=function(e,t){e=e||{},t=t||{};var r=e;for(var a in t)r[a]=t[a];return r},r.prototype.sortObject=function(e){var t=Object.keys(e),r={};t.sort();for(var a=0;a<t.length;a++){var n=t[a];r[n]=e[n]}return r}}),core=createCommonjsModule(function(e,t){!function(r,a){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a():r.CryptoJS=a()}(commonjsGlobal,function(){var e=e||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},n=a.lib={},o=n.Base=function(){return{extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=n.WordArray=o.extend({init:function(e,r){e=this.words=e||[],r!=t?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,a=this.sigBytes,n=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;t[a+o>>>2]|=s<<24-(a+o)%4*8}else for(var o=0;o<n;o+=4)t[a+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function e(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,a=[],n=function(t){var t=t,r=987654321,a=4294967295;return function(){r=36969*(65535&r)+(r>>16)&a,t=18e3*(65535&t)+(t>>16)&a;var n=(r<<16)+t&a;return n/=4294967296,n+=.5,n*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var i=n(4294967296*(r||e.random()));r=987654071*i(),a.push(4294967296*i()|0)}return new s.init(a,t)}}),i=a.enc={},c=i.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n<r;n++){var o=t[n>>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a+=2)r[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new s.init(r,t/2)}},u=i.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,a=[],n=0;n<r;n++){var o=t[n>>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a++)r[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new s.init(r,t)}},l=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,a=r.words,n=r.sigBytes,o=this.blockSize,i=4*o,c=n/i;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var u=c*o,l=e.min(4*u,n);if(u){for(var f=0;f<u;f+=o)this._doProcessBlock(a,f);var y=a.splice(0,u);r.sigBytes-=l}return new s.init(y,l)},clone:function e(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),y=(n.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new y.HMAC.init(e,r).finalize(t)}}}),a.algo={});return a}(Math);return e})}),sha1=createCommonjsModule(function(e,t){!function(r,a){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core):a(r.CryptoJS)}(commonjsGlobal,function(e){return function(){var t=e,r=t.lib,a=r.WordArray,n=r.Hasher,o=t.algo,s=[],i=o.SHA1=n.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,a=r[0],n=r[1],o=r[2],i=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var f=(a<<5|a>>>27)+c+s[u];f+=u<20?(n&o|~n&i)+1518500249:u<40?(n^o^i)+1859775393:u<60?(n&o|n&i|o&i)-1894007588:(n^o^i)-899497514,c=i,i=o,o=n<<30|n>>>2,n=a,a=f}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[(a+64>>>9<<4)+14]=Math.floor(r/4294967296),t[(a+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function e(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=n._createHelper(i),t.HmacSHA1=n._createHmacHelper(i)}(),e.SHA1})}),hmac=createCommonjsModule(function(e,t){!function(r,a){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core):a(r.CryptoJS)}(commonjsGlobal,function(e){!function(){var t=e,r=t.lib,a=r.Base,n=t.enc,o=n.Utf8,s=t.algo;s.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,a=4*r;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),s=this._iKey=t.clone(),i=n.words,c=s.words,u=0;u<r;u++)i[u]^=1549556828,c[u]^=909522486;n.sigBytes=s.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var a=t.finalize(this._oKey.clone().concat(r));return a}})}()})}),hmacSha1=createCommonjsModule(function(e,t){!function(r,a,n){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core,sha1,hmac):a(r.CryptoJS)}(commonjsGlobal,function(e){return e.HmacSHA1})}),sha256=createCommonjsModule(function(e,t){!function(r,a){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core):a(r.CryptoJS)}(commonjsGlobal,function(e){return function(t){var r=e,a=r.lib,n=a.WordArray,o=a.Hasher,s=r.algo,i=[],c=[];!function(){function e(e){for(var r=t.sqrt(e),a=2;a<=r;a++)if(!(e%a))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var a=2,n=0;n<64;)e(a)&&(n<8&&(i[n]=r(t.pow(a,.5))),c[n]=r(t.pow(a,1/3)),n++),a++}();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(i.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,a=r[0],n=r[1],o=r[2],s=r[3],i=r[4],l=r[5],f=r[6],y=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var g=u[p-15],$=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,b=u[p-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[p]=$+u[p-7]+_+u[p-16]}var h=i&l^~i&f,d=a&n^a&o^n&o,m=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),A=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),v=y+A+h+c[p]+u[p],T=m+d;y=f,f=l,l=i,i=s+v|0,s=o,o=n,n=a,a=v+T|0}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+i|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+y|0},_doFinalize:function(){var e=this._data,r=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=t.floor(a/4294967296),r[(n+64>>>9<<4)+15]=a,e.sigBytes=4*r.length,this._process(),this._hash},clone:function e(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256})}),hmacSha256=createCommonjsModule(function(e,t){!function(r,a,n){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core,sha256,hmac):a(r.CryptoJS)}(commonjsGlobal,function(e){return e.HmacSHA256})}),encBase64=createCommonjsModule(function(e,t){!function(r,a){"object"===("undefined"==typeof t?"undefined":_typeof(t))?e.exports=t=a(core):a(r.CryptoJS)}(commonjsGlobal,function(e){return function(){function t(e,t,r){for(var a=[],o=0,s=0;s<t;s++)if(s%4){var i=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2;a[o>>>2]|=(i|c)<<24-o%4*8,o++}return n.create(a,o)}var r=e,a=r.lib,n=a.WordArray,o=r.enc;o.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,a=this._map;e.clamp();for(var n=[],o=0;o<r;o+=3)for(var s=t[o>>>2]>>>24-o%4*8&255,i=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|i<<8|c,l=0;l<4&&o+.75*l<r;l++)n.push(a.charAt(u>>>6*(3-l)&63));var f=a.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var r=e.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<a.length;o++)n[a.charCodeAt(o)]=o}var s=a.charAt(64);if(s){var i=e.indexOf(s);i!==-1&&(r=i)}return t(e,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})}),Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="",r=void 0,a=void 0,n=void 0,o=void 0,s=void 0,i=void 0,c=void 0,u=0;for(e=Base64._utf8_encode(e);u<e.length;)r=e.charCodeAt(u++),a=e.charCodeAt(u++),n=e.charCodeAt(u++),o=r>>2,s=(3&r)<<4|a>>4,i=(15&a)<<2|n>>6,c=63&n,isNaN(a)?i=c=64:isNaN(n)&&(c=64),t=t+this._keyStr.charAt(o)+this._keyStr.charAt(s)+this._keyStr.charAt(i)+this._keyStr.charAt(c);return t},decode:function(e){var t="",r=void 0,a=void 0,n=void 0,o=void 0,s=void 0,i=void 0,c=void 0,u=0;for(e=e.replace(/[^A-Za-z0-9+\/=]/g,"");u<e.length;)o=this._keyStr.indexOf(e.charAt(u++)),s=this._keyStr.indexOf(e.charAt(u++)),i=this._keyStr.indexOf(e.charAt(u++)),c=this._keyStr.indexOf(e.charAt(u++)),r=o<<2|s>>4,a=(15&s)<<4|i>>2,n=(3&i)<<6|c,t+=String.fromCharCode(r),64!=i&&(t+=String.fromCharCode(a)),64!=c&&(t+=String.fromCharCode(n));return t=Base64._utf8_decode(t)},_utf8_encode:function(e){e=e.replace(/rn/g,"n");for(var t="",r=0;r<e.length;r++){var a=e.charCodeAt(r);a<128?t+=String.fromCharCode(a):a>127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},_utf8_decode:function(e){for(var t="",r=0,a=c1=c2=0;r<e.length;)a=e.charCodeAt(r),a<128?(t+=String.fromCharCode(a),r++):a>191&&a<224?(c2=e.charCodeAt(r+1),t+=String.fromCharCode((31&a)<<6|63&c2),r+=2):(c2=e.charCodeAt(r+1),c3=e.charCodeAt(r+2),t+=String.fromCharCode((15&a)<<12|(63&c2)<<6|63&c3),r+=3);return t}},utils$1=createCommonjsModule(function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)"undefined"!=typeof e[a]&&(r[a]=e[a]);return r},t.merge=function(e,a,n){if(!a)return e;if("object"!==("undefined"==typeof a?"undefined":_typeof(a))){if(Array.isArray(e))e.push(a);else{if("object"!==("undefined"==typeof e?"undefined":_typeof(e)))return[e,a];e[a]=!0}return e}if("object"!==("undefined"==typeof e?"undefined":_typeof(e)))return[e].concat(a);var o=e;return Array.isArray(e)&&!Array.isArray(a)&&(o=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(a)?(a.forEach(function(a,o){r.call(e,o)?e[o]&&"object"===_typeof(e[o])?e[o]=t.merge(e[o],a,n):e.push(a):e[o]=a}),e):Object.keys(a).reduce(function(e,r){var o=a[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],o,n):e[r]=o,e},o)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var o=t.charCodeAt(n);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=t.charAt(n):o<128?r+=a[o]:o<2048?r+=a[192|o>>6]+a[128|63&o]:o<55296||o>=57344?r+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),r+=a[240|o>>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o])}return r},t.compact=function(e,r){if("object"!==("undefined"==typeof e?"undefined":_typeof(e))||null===e)return e;var a=r||[],n=a.indexOf(e);if(n!==-1)return a[n];if(a.push(e),Array.isArray(e)){for(var o=[],s=0;s<e.length;++s)e[s]&&"object"===_typeof(e[s])?o.push(t.compact(e[s],a)):"undefined"!=typeof e[s]&&o.push(e[s]);return o}var i=Object.keys(e);return i.forEach(function(r){e[r]=t.compact(e[r],a)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}}),replace=String.prototype.replace,percentTwenties=/%20/g,formats$2={default:"RFC3986",formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"},utils=utils$1,formats$1=formats$2,arrayPrefixGenerators={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},toISO=Date.prototype.toISOString,defaults$1={delimiter:"&",encode:!0,encoder:utils.encode,serializeDate:function(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},stringify$2=function e(t,r,a,n,o,s,i,c,u,l,f){var y=t;if("function"==typeof i)y=i(r,y);else if(y instanceof Date)y=l(y);else if(null===y){if(n)return s?s(r):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||utils.isBuffer(y))return s?[f(s(r))+"="+f(s(y))]:[f(r)+"="+f(String(y))];var p=[];if("undefined"==typeof y)return p;var g;if(Array.isArray(i))g=i;else{var $=Object.keys(y);g=c?$.sort(c):$}for(var b=0;b<g.length;++b){var _=g[b];o&&null===y[_]||(p=Array.isArray(y)?p.concat(e(y[_],a(r,_),a,n,o,s,i,c,u,l,f)):p.concat(e(y[_],r+(u?"."+_:"["+_+"]"),a,n,o,s,i,c,u,l,f)))}return p},stringify_1=function(e,t){var r=e,a=t||{},n="undefined"==typeof a.delimiter?defaults$1.delimiter:a.delimiter,o="boolean"==typeof a.strictNullHandling?a.strictNullHandling:defaults$1.strictNullHandling,s="boolean"==typeof a.skipNulls?a.skipNulls:defaults$1.skipNulls,i="boolean"==typeof a.encode?a.encode:defaults$1.encode,c=i?"function"==typeof a.encoder?a.encoder:defaults$1.encoder:null,u="function"==typeof a.sort?a.sort:null,l="undefined"!=typeof a.allowDots&&a.allowDots,f="function"==typeof a.serializeDate?a.serializeDate:defaults$1.serializeDate;if("undefined"==typeof a.format)a.format=formats$1.default;else if(!Object.prototype.hasOwnProperty.call(formats$1.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,p,g=formats$1.formatters[a.format];if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof a.filter?(p=a.filter,r=p("",r)):Array.isArray(a.filter)&&(p=a.filter,y=p);var $=[];if("object"!==("undefined"==typeof r?"undefined":_typeof(r))||null===r)return"";var b;b=a.arrayFormat in arrayPrefixGenerators?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=arrayPrefixGenerators[b];y||(y=Object.keys(r)),u&&y.sort(u);for(var h=0;h<y.length;++h){var d=y[h];s&&null===r[d]||($=$.concat(stringify$2(r[d],d,_,o,s,c,p,u,l,f,g)))}return $.join(n)},utils$3=utils$1,has$2=Object.prototype.hasOwnProperty,defaults$2={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:utils$3.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},parseValues=function(e,t){for(var r={},a=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),n=0;n<a.length;++n){var o,s,i=a[n],c=i.indexOf("]=")===-1?i.indexOf("="):i.indexOf("]=")+1;c===-1?(o=t.decoder(i),s=t.strictNullHandling?null:""):(o=t.decoder(i.slice(0,c)),s=t.decoder(i.slice(c+1))),has$2.call(r,o)?r[o]=[].concat(r[o]).concat(s):r[o]=s}return r},parseObject=function e(t,r,a){if(!t.length)return r;var n,o=t.shift();if("[]"===o)n=[],n=n.concat(e(t,r,a));else{n=a.plainObjects?Object.create(null):{};var s="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,i=parseInt(s,10);!isNaN(i)&&o!==s&&String(i)===s&&i>=0&&a.parseArrays&&i<=a.arrayLimit?(n=[],n[i]=e(t,r,a)):n[s]=e(t,r,a)}return n},parseKeys=function(e,t,r){if(e){var a=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,n=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,s=n.exec(a),i=[];if(s[1]){if(!r.plainObjects&&has$2.call(Object.prototype,s[1])&&!r.allowPrototypes)return;i.push(s[1])}for(var c=0;null!==(s=o.exec(a))&&c<r.depth;)c+=1,(r.plainObjects||!has$2.call(Object.prototype,s[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&i.push(s[1]);return s&&i.push("["+a.slice(s.index)+"]"),parseObject(i,t,r)}},parse$2=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||utils$3.isRegExp(r.delimiter)?r.delimiter:defaults$2.delimiter,r.depth="number"==typeof r.depth?r.depth:defaults$2.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:defaults$2.arrayLimit,r.parseArrays=r.parseArrays!==!1,r.decoder="function"==typeof r.decoder?r.decoder:defaults$2.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:defaults$2.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:defaults$2.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:defaults$2.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:defaults$2.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:defaults$2.strictNullHandling,""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?parseValues(e,r):e,n=r.plainObjects?Object.create(null):{},o=Object.keys(a),s=0;s<o.length;++s){var i=o[s],c=parseKeys(i,a[i],r);n=utils$3.merge(n,c,r)}return utils$3.compact(n)},stringify$1=stringify_1,parse$1=parse$2,formats=formats$2,index$1={formats:formats,parse:parse$1,stringify:stringify$1},ListCache$3=_ListCache,_stackClear=stackClear$1,_stackDelete=stackDelete$1,_stackGet=stackGet$1,_stackHas=stackHas$1,ListCache$4=_ListCache,Map$3=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE=200,_stackSet=stackSet$1,ListCache$2=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;Stack$1.prototype.clear=stackClear,Stack$1.prototype.delete=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1,getNative$7=_getNative,defineProperty$2=function(){try{var e=getNative$7(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty,_baseAssignValue=baseAssignValue$1,baseAssignValue=_baseAssignValue,eq$2=eq_1,_assignMergeValue=assignMergeValue$1,_createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,_cloneBuffer=createCommonjsModule(function(e,t){function r(e,t){if(t)return e.slice();var r=e.length,a=c?c(r):new e.constructor(r);return e.copy(a),a}var a=_root,n="object"==("undefined"==typeof t?"undefined":_typeof(t))&&t&&!t.nodeType&&t,o=n&&"object"==("undefined"==typeof e?"undefined":_typeof(e))&&e&&!e.nodeType&&e,s=o&&o.exports===n,i=s?a.Buffer:void 0,c=i?i.allocUnsafe:void 0;e.exports=r}),root$8=_root,Uint8Array$1=root$8.Uint8Array,_Uint8Array=Uint8Array$1,Uint8Array=_Uint8Array,_cloneArrayBuffer=cloneArrayBuffer$1,cloneArrayBuffer=_cloneArrayBuffer,_cloneTypedArray=cloneTypedArray$1,_copyArray=copyArray$1,isObject$5=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function e(){}return function(t){if(!isObject$5(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_baseCreate=baseCreate$1,overArg$2=_overArg,getPrototype$1=overArg$2(Object.getPrototypeOf,Object),_getPrototype=getPrototype$1,baseCreate=_baseCreate,getPrototype=_getPrototype,isPrototype$3=_isPrototype,_initCloneObject=initCloneObject$1,isArrayLike$2=isArrayLike_1,isObjectLike$5=isObjectLike_1,isArrayLikeObject_1=isArrayLikeObject$1,baseGetTag$6=_baseGetTag,getPrototype$2=_getPrototype,isObjectLike$6=isObjectLike_1,objectTag$2="[object Object]",funcProto$2=Function.prototype,objectProto$10=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$8=objectProto$10.hasOwnProperty,objectCtorString=funcToString$2.call(Object),isPlainObject_1=isPlainObject$1,baseAssignValue$3=_baseAssignValue,eq$3=eq_1,objectProto$11=Object.prototype,hasOwnProperty$9=objectProto$11.hasOwnProperty,_assignValue=assignValue$1,assignValue=_assignValue,baseAssignValue$2=_baseAssignValue,_copyObject=copyObject$1,_baseTimes=baseTimes$1,baseTimes=_baseTimes,isArguments$4=isArguments_1,isArray$8=isArray_1,isBuffer$3=isBuffer_1,isIndex$2=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$12=Object.prototype,hasOwnProperty$10=objectProto$12.hasOwnProperty,_arrayLikeKeys=arrayLikeKeys$1,_nativeKeysIn=nativeKeysIn$1,isObject$6=isObject_1,isPrototype$4=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$13=Object.prototype,hasOwnProperty$11=objectProto$13.hasOwnProperty,_baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$3=isArrayLike_1,keysIn_1=keysIn$3,copyObject=_copyObject,keysIn$2=keysIn_1,toPlainObject_1=toPlainObject$1,assignMergeValue$2=_assignMergeValue,cloneBuffer=_cloneBuffer,cloneTypedArray=_cloneTypedArray,copyArray=_copyArray,initCloneObject=_initCloneObject,isArguments$3=isArguments_1,isArray$7=isArray_1,isArrayLikeObject=isArrayLikeObject_1,isBuffer$2=isBuffer_1,isFunction$3=isFunction_1,isObject$4=isObject_1,isPlainObject=isPlainObject_1,isTypedArray$2=isTypedArray_1,toPlainObject=toPlainObject_1,_baseMergeDeep=baseMergeDeep$1,Stack=_Stack,assignMergeValue=_assignMergeValue,baseFor=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$3=isObject_1,keysIn$1=keysIn_1,_baseMerge=baseMerge$1,identity_1=identity$1,_apply=apply$1,apply=_apply,nativeMax=Math.max,_overRest=overRest$1,constant_1=constant$1,constant=constant_1,defineProperty$3=_defineProperty,identity$2=identity_1,baseSetToString$1=defineProperty$3?function(e,t){return defineProperty$3(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$2,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now,_shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString,_baseRest=baseRest$1,eq$4=eq_1,isArrayLike$4=isArrayLike_1,isIndex$3=_isIndex,isObject$7=isObject_1,_isIterateeCall=isIterateeCall$1,baseRest=_baseRest,isIterateeCall=_isIterateeCall,_createAssigner=createAssigner$1,baseMerge=_baseMerge,createAssigner=_createAssigner,merge$1=createAssigner(function(e,t,r){baseMerge(e,t,r)}),merge_1=merge$1,setQuery=function(e,t,r){if(r=r||{},isEmpty_1(t))return e;var a=e.split("?"),n=a[1],o=index$1.parse(n);return r.preserve&&merge_1(t,o),merge_1(o,t),a[0]+"?"+index$1.stringify(o)},QueryHelpers=Object.freeze({setQuery:setQuery}),HASH_UNDEFINED$2="__lodash_hash_undefined__",_setCacheAdd=setCacheAdd$1,_setCacheHas=setCacheHas$1,MapCache$3=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1,_arraySome=arraySome$1,_cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG$1=2,_equalArrays=equalArrays$1,_mapToArray=mapToArray$1,_setToArray=setToArray$1,_Symbol$5=_Symbol$1,Uint8Array$2=_Uint8Array,eq$5=eq_1,equalArrays$2=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$3="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$3="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto$1=_Symbol$5?_Symbol$5.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0,_equalByTag=equalByTag$1,arrayLikeKeys$2=_arrayLikeKeys,baseKeys$2=_baseKeys,isArrayLike$5=isArrayLike_1,keys_1=keys$1,keys=keys_1,COMPARE_PARTIAL_FLAG$4=1,objectProto$15=Object.prototype,hasOwnProperty$13=objectProto$15.hasOwnProperty,_equalObjects=equalObjects$1,Stack$3=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$2=_getTag,isArray$11=isArray_1,isBuffer$4=isBuffer_1,isTypedArray$4=isTypedArray_1,COMPARE_PARTIAL_FLAG$1=1,argsTag$2="[object Arguments]",arrayTag$1="[object Array]",objectTag$3="[object Object]",objectProto$14=Object.prototype,hasOwnProperty$12=objectProto$14.hasOwnProperty,_baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObject$8=isObject_1,isObjectLike$7=isObjectLike_1,_baseIsEqual=baseIsEqual$1,Stack$2=_Stack,baseIsEqual=_baseIsEqual,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2,_baseIsMatch=baseIsMatch$1,isObject$9=isObject_1,_isStrictComparable=isStrictComparable$1,isStrictComparable=_isStrictComparable,keys$2=keys_1,_getMatchData=getMatchData$1,_matchesStrictComparable=matchesStrictComparable$1,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable=_matchesStrictComparable,_baseMatches=baseMatches$1,castPath$2=_castPath,toKey$3=_toKey,_baseGet=baseGet$1,baseGet=_baseGet,get_1=get$2,_baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath$2=_hasPath,hasIn_1=hasIn$1,baseIsEqual$2=_baseIsEqual,get$1=get_1,hasIn=hasIn_1,isKey$2=_isKey,isStrictComparable$2=_isStrictComparable,matchesStrictComparable$2=_matchesStrictComparable,toKey$2=_toKey,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2,_baseMatchesProperty=baseMatchesProperty$1,_baseProperty=baseProperty$1,baseGet$2=_baseGet,_basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey$3=_isKey,toKey$4=_toKey,property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$3=identity_1,isArray$10=isArray_1,property=property_1,_baseIteratee=baseIteratee$1,baseFor$2=_baseFor,keys$3=keys_1,_baseForOwn=baseForOwn$1,isArrayLike$7=isArrayLike_1,_createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike$6=isArrayLike_1,_baseMap=baseMap$1,arrayMap$2=_arrayMap,baseIteratee=_baseIteratee,baseMap=_baseMap,isArray$9=isArray_1,map_1=map,stringify_1$2=createCommonjsModule(function(e,t){ function r(e,t,r,n){return JSON.stringify(e,a(t,n),r)}function a(e,t){var r=[],a=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+a.slice(0,r.indexOf(t)).join(".")+"]"}),function(n,o){if(r.length>0){var s=r.indexOf(this);~s?r.splice(s+1):r.push(this),~s?a.splice(s,1/0,n):a.push(n),~r.indexOf(o)&&(o=t.call(this,n,o))}else r.push(o);return null==e?o:e.call(this,n,o)}}t=e.exports=r,t.getSerialize=a}),safeParse=function(e,t){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return t||{}}return e},safeStringify=function(e,t){return e&&"string"!=typeof e?stringify_1$2(e,null,t||4):e},mapToNameValue=function(e){return e instanceof Array?e:map_1(e||{},function(e,t){return{name:t,value:e}})},nameValueToMap=function(e){if(!isArray_1(e))return e;var t={},r=!0,a=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var i=o.value,c=i.name,u=i.value;t[c]=u}}catch(e){a=!0,n=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw n}}return t},JSONHelpers=Object.freeze({safeParse:safeParse,safeStringify:safeStringify,mapToNameValue:mapToNameValue,nameValueToMap:nameValueToMap}),AUTH_TYPES=["basic","digest","oauth1","oauth2","aws"],generateBasicAuth=function(e,t,r){r=r||{};var a=[e,t].join(":");return a=Base64.encode(a),{request:{headers:{Authorization:"Basic "+a}}}},hashFunction=function(e,t,r){return r=r||{},function(r,a){var n=void 0;switch(e){case"HMAC-SHA1":n=hmacSha1(r,a);break;case"HMAC-SHA256":n=hmacSha256(r,a);break;default:return a}return t?n.toString(encBase64):n.toString()}},generateOAuth1=function(e,t,r){r=r||{};var a={};if(e.useHeader&&has_1(t,"headers.Authorization"))return a;var n=e.signatureMethod||"HMAC-SHA1",o=e.encode,s=oauth1_0a({consumer:{key:e.consumerKey,secret:e.consumerSecret},signature_method:n,hash_function:hashFunction(n,o,r),version:e.version||"1.0",nonce_length:e.nonceLength||32,parameter_seperator:e.parameterSeperator||", "}),i=null;e.token&&(i={key:e.token,secret:e.tokenSecret});var c={url:t.url,method:t.method.toUpperCase(),data:t.body},u=s.authorize(c,i);if(a.authorization={oauth1:{nonce:u.oauth_nonce}},e.useHeader){var l=s.toHeader(u);a.request={headers:{Authorization:l.Authorization}}}else a.request={url:setQuery(t.url,u,{preserve:!0})};return a},generateAws=function(e,t,r){r=r||{};var a={};if(!r.signAws)return console.warn("authorization/generateAws signAws function not supplied!"),a;if(has_1(t,"headers.Authorization"))return a;var n=_extends({},t,{method:t.method.toUpperCase(),body:safeStringify(t.body)||"",service:e.service,region:e.region}),o=r.signAws(n,{secretAccessKey:e.secretKey,accessKeyId:e.accessKey,sessionToken:e.sessionToken});return a.request={headers:o},a},generateAuthPatch=function(e,t,r){r=r||{};var a={};if(!e||AUTH_TYPES.indexOf(e.type)<0)return a;var n=e[e.type];if(isEmpty_1(n))return a;switch(e.type){case"basic":has_1(t,"headers.Authorization")||(a=generateBasicAuth(n.username,n.password,r));break;case"oauth1":a=generateOAuth1(n,t,r);break;case"aws":a=generateAws(n,t,r);break;default:console.log(e.type+" auth not implemented")}return a},assignValue$2=_assignValue,castPath$3=_castPath,isIndex$4=_isIndex,isObject$10=isObject_1,toKey$5=_toKey,_baseSet=baseSet$1,baseSet=_baseSet,set_1=set$1,_baseFindIndex=baseFindIndex$1,_baseIsNaN=baseIsNaN$1,_strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf,_baseIndexOf=baseIndexOf$1,baseGetTag$7=_baseGetTag,isArray$12=isArray_1,isObjectLike$8=isObjectLike_1,stringTag$2="[object String]",isString_1=isString$1,isObject$11=isObject_1,isSymbol$4=isSymbol_1,NAN=NaN,reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY$2=1/0,MAX_INTEGER=1.7976931348623157e308,toFinite_1=toFinite$1,toFinite=toFinite_1,toInteger_1=toInteger$1,arrayMap$3=_arrayMap,_baseValues=baseValues$1,baseValues=_baseValues,keys$4=keys_1,values_1=values$1,baseIndexOf=_baseIndexOf,isArrayLike$8=isArrayLike_1,isString=isString_1,toInteger=toInteger_1,values=values_1,nativeMax$1=Math.max,includes_1=includes,_arrayEach=arrayEach$1,copyObject$2=_copyObject,keys$6=keys_1,_baseAssign=baseAssign$1,copyObject$3=_copyObject,keysIn$4=keysIn_1,_baseAssignIn=baseAssignIn$1,stubArray_1=stubArray$1,overArg$3=_overArg,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?overArg$3(nativeGetSymbols,Object):stubArray,_getSymbols=getSymbols$1,copyObject$4=_copyObject,getSymbols=_getSymbols,_copySymbols=copySymbols$1,_arrayPush=arrayPush$1,arrayPush=_arrayPush,getPrototype$3=_getPrototype,getSymbols$2=_getSymbols,stubArray$2=stubArray_1,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbolsIn$1=nativeGetSymbols$1?function(e){for(var t=[];e;)arrayPush(t,getSymbols$2(e)),e=getPrototype$3(e);return t}:stubArray$2,_getSymbolsIn=getSymbolsIn$1,copyObject$5=_copyObject,getSymbolsIn=_getSymbolsIn,_copySymbolsIn=copySymbolsIn$1,arrayPush$2=_arrayPush,isArray$14=isArray_1,_baseGetAllKeys=baseGetAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols$3=_getSymbols,keys$7=keys_1,_getAllKeys=getAllKeys$1,baseGetAllKeys$2=_baseGetAllKeys,getSymbolsIn$2=_getSymbolsIn,keysIn$5=keysIn_1,_getAllKeysIn=getAllKeysIn$1,objectProto$16=Object.prototype,hasOwnProperty$14=objectProto$16.hasOwnProperty,_initCloneArray=initCloneArray$1,cloneArrayBuffer$3=_cloneArrayBuffer,_cloneDataView=cloneDataView$1,_addMapEntry=addMapEntry$1,_arrayReduce=arrayReduce$1,addMapEntry=_addMapEntry,arrayReduce=_arrayReduce,mapToArray$2=_mapToArray,CLONE_DEEP_FLAG$1=1,_cloneMap=cloneMap$1,reFlags=/\w*$/,_cloneRegExp=cloneRegExp$1,_addSetEntry=addSetEntry$1,addSetEntry=_addSetEntry,arrayReduce$2=_arrayReduce,setToArray$2=_setToArray,CLONE_DEEP_FLAG$2=1,_cloneSet=cloneSet$1,_Symbol$6=_Symbol$1,symbolProto$2=_Symbol$6?_Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0,_cloneSymbol=cloneSymbol$1,cloneArrayBuffer$2=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneMap=_cloneMap,cloneRegExp=_cloneRegExp,cloneSet=_cloneSet,cloneSymbol=_cloneSymbol,cloneTypedArray$2=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$3="[object Date]",mapTag$5="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",symbolTag$3="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",_initCloneByTag=initCloneByTag$1,Stack$4=_Stack,arrayEach=_arrayEach,assignValue$3=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer$1=_cloneBuffer,copyArray$2=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag$3=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject$2=_initCloneObject,isArray$13=isArray_1,isBuffer$5=isBuffer_1,isObject$12=isObject_1,keys$5=keys_1,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$4="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$3="[object String]",symbolTag$2="[object Symbol]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$3]=cloneableTags[arrayTag$2]=cloneableTags[arrayBufferTag$2]=cloneableTags[dataViewTag$3]=cloneableTags[boolTag$2]=cloneableTags[dateTag$2]=cloneableTags[float32Tag$1]=cloneableTags[float64Tag$1]=cloneableTags[int8Tag$1]=cloneableTags[int16Tag$1]=cloneableTags[int32Tag$1]=cloneableTags[mapTag$4]=cloneableTags[numberTag$2]=cloneableTags[objectTag$4]=cloneableTags[regexpTag$2]=cloneableTags[setTag$4]=cloneableTags[stringTag$3]=cloneableTags[symbolTag$2]=cloneableTags[uint8Tag$1]=cloneableTags[uint8ClampedTag$1]=cloneableTags[uint16Tag$1]=cloneableTags[uint32Tag$1]=!0,cloneableTags[errorTag$2]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag$2]=!1;var _baseClone=baseClone$1,baseClone=_baseClone,CLONE_SYMBOLS_FLAG=4,clone_1=clone$1,identity$4=identity_1,_castFunction=castFunction$1,arrayEach$2=_arrayEach,baseEach$2=_baseEach,castFunction=_castFunction,isArray$15=isArray_1,forEach_1=forEach,_baseSlice=baseSlice$1,baseSlice=_baseSlice,_castSlice=castSlice$1,baseIndexOf$2=_baseIndexOf,_charsEndIndex=charsEndIndex$1,baseIndexOf$3=_baseIndexOf,_charsStartIndex=charsStartIndex$1,_asciiToArray=asciiToArray$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsZWJ="\\u200d",reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]"),_hasUnicode=hasUnicode$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo="["+rsComboRange$1+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange$1+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange$1+"]?",rsOptJoin="(?:"+rsZWJ$1+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),_unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode=_hasUnicode,unicodeToArray=_unicodeToArray,_stringToArray=stringToArray$1,baseToString$2=_baseToString,castSlice=_castSlice,charsEndIndex=_charsEndIndex,charsStartIndex=_charsStartIndex,stringToArray=_stringToArray,toString$3=toString_1,reTrim$1=/^\s+|\s+$/g,trim_1=trim,baseIndexOf$4=_baseIndexOf,_arrayIncludes=arrayIncludes$1,_arrayIncludesWith=arrayIncludesWith$1,noop_1=noop$1,Set$2=_Set,noop=noop_1,setToArray$4=_setToArray,INFINITY$3=1/0,createSet$1=Set$2&&1/setToArray$4(new Set$2([,-0]))[1]==INFINITY$3?function(e){return new Set$2(e)}:noop,_createSet=createSet$1,SetCache$2=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas$2=_cacheHas,createSet=_createSet,setToArray$3=_setToArray,LARGE_ARRAY_SIZE$1=200,_baseUniq=baseUniq$1,baseUniq=_baseUniq,uniq_1=uniq,last_1=last$1,baseGet$3=_baseGet,baseSlice$2=_baseSlice,_parent=parent$1,castPath$5=_castPath,last=last_1,parent=_parent,toKey$6=_toKey,_baseUnset=baseUnset$1,_Symbol$7=_Symbol$1,isArguments$5=isArguments_1,isArray$16=isArray_1,spreadableSymbol=_Symbol$7?_Symbol$7.isConcatSpreadable:void 0,_isFlattenable=isFlattenable$1,arrayPush$3=_arrayPush,isFlattenable=_isFlattenable,_baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten,flatten_1=flatten$1,flatten=flatten_1,overRest$2=_overRest,setToString$2=_setToString,_flatRest=flatRest$1,arrayMap$4=_arrayMap,baseClone$2=_baseClone,baseUnset=_baseUnset,castPath$4=_castPath,copyObject$6=_copyObject,flatRest=_flatRest,getAllKeysIn$2=_getAllKeysIn,CLONE_DEEP_FLAG$3=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,omit=flatRest(function(e,t){var r={};if(null==e)return r;var a=!1;t=arrayMap$4(t,function(t){return t=castPath$4(t,e),a||(a=t.length>1),t}),copyObject$6(e,getAllKeysIn$2(e),r),a&&(r=baseClone$2(r,CLONE_DEEP_FLAG$3|CLONE_FLAT_FLAG$1|CLONE_SYMBOLS_FLAG$2));for(var n=t.length;n--;)baseUnset(r,t[n]);return r}),omit_1=omit,toString$4=toString_1,reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar$1.source),escapeRegExp_1=escapeRegExp,extractVariables=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.strip,a=void 0!==r&&r,n=t.required,o=void 0!==n&&n,s=safeStringify(e),i=void 0;if(i=o?uniq_1(s.match(/<<!([\[\]\.\w- ]+)>>/gm))||[]:uniq_1(s.match(/<<!([\[\]\.\w- ]+)>>|<<([\[\]\.\w- ]+)>>|\{([\[\]\.\w- ]+)\}|%3C%3C([[\[\]\.\w- ]+)%3E%3E|\\<\\<([[\[\]\.\w- ]+)\\>\\>/gm))||[],a)for(var c in i)i[c]=trim_1(i[c],"<!>{}\\<\\>").replace(/%3C|%3E/g,"");return i},replaceVariables=function(e,t){var r=safeParse(t);if(isEmpty_1(e)||isEmpty_1(r))return e;var a=safeStringify(e),n=extractVariables(e);return forEach_1(n,function(e){var t=trim_1(e,"<!>{}\\<\\>").replace(/%3C|%3E/g,""),n=get_1(r,t);"undefined"!=typeof n&&(a="string"==typeof n?a.replace(new RegExp(escapeRegExp_1(e),"g"),n):a.replace(new RegExp('"'+e+'"|'+e,"g"),n))}),safeParse(a,a||e)},replaceNodeVariables=function(e){var t=e.steps,r=e.children,a=e.functions,n=replaceVariables(omit_1(e,"steps","children","functions"),e.state);return t&&(n.steps=t),r&&(n.children=r),a&&(n.functions=a),n},VariableHelpers=Object.freeze({extractVariables:extractVariables,replaceVariables:replaceVariables,replaceNodeVariables:replaceNodeVariables}),baseIsEqual$3=_baseIsEqual,isEqual_1=isEqual,baseGetTag$8=_baseGetTag,isObjectLike$9=isObjectLike_1,numberTag$4="[object Number]",isNumber_1=isNumber,isUndefined_1=isUndefined,_baseGt=baseGt$1,toNumber$2=toNumber_1,_createRelationalOperation=createRelationalOperation$1,baseGt=_baseGt,createRelationalOperation=_createRelationalOperation,gt=createRelationalOperation(baseGt),gt_1=gt,createRelationalOperation$2=_createRelationalOperation,gte=createRelationalOperation$2(function(e,t){return e>=t}),gte_1=gte,_baseLt=baseLt$1,baseLt=_baseLt,createRelationalOperation$3=_createRelationalOperation,lt=createRelationalOperation$3(baseLt),lt_1=lt,createRelationalOperation$4=_createRelationalOperation,lte=createRelationalOperation$4(function(e,t){return e<=t}),lte_1=lte,buildPathSelector=function(e){e=e||[];var t="";return forEach_1(e,function(e){isEmpty_1(e)||(t+=isEmpty_1(t)||"["===e.charAt(0)?e:"."+e)}),t},ASSERTION_OPS=["eq","ne","exists","contains","gt","gte","lt","lte","validate","validate.pass","validate.contract","validate.fail"],runAssertion=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={pass:!1,message:"",details:""};try{var n=r.validate,o=buildPathSelector([t.location,t.target]),s=get_1(e,o);try{switch(t.op){case"eq":if(!isEqual_1(s,t.expected))throw new Error("Expected "+o+" to equal "+t.expected+" - actual is '"+s+"'");break;case"ne":if(isEqual_1(s,t.expected))throw new Error("Expected "+o+" to NOT equal "+t.expected+" - actual is '"+s+"'");break;case"exists":var i=!t.hasOwnProperty("expected")||t.expected;if(isUndefined_1(s)){if(i)throw new Error("Expected "+o+" to exist")}else if(!i)throw new Error("Expected "+o+" NOT to exist - actual is '"+s+"'");break;case"contains":if(!includes_1(s,t.expected))throw new Error("Expected "+o+" to contain "+t.expected+" - actual is '"+s+"'");break;case"gt":if(!gt_1(s,t.expected))throw new Error("Expected "+o+" to be greater than "+t.expected+" - actual is '"+s+"'");break;case"gte":if(!gte_1(s,t.expected))throw new Error("Expected "+o+" to be greater than or equal to "+t.expected+" - actual is '"+s+"'");break;case"lt":if(!lt_1(s,t.expected))throw new Error("Expected "+o+" to be less than "+t.expected+" - actual is '"+s+"'");break;case"lte":if(!lte_1(s,t.expected))throw new Error("Expected "+o+" to be less than or equal to "+t.expected+" - actual is '"+s+"'");break;case"gt":case"gte":case"lt":case"lte":if(!isNumber_1(s))throw new Error("Expected "+o+" to be a number - actual is "+("undefined"==typeof s?"undefined":_typeof(s)));break;case"validate":case"validate.contract":case"validate.pass":case"validate.fail":if(!n)throw new Error("Cannot run "+t.op+" assertion - no validate function provided in options");var c=safeParse(t.expected);if(!c||isEmpty_1(c))throw new Error("Cannot run "+t.op+" assertion - JSON schema is null or empty. If using the 'Link to API design' feature,\n please make sure there is an endpoint that matches this request, with the appropriate status code, defined in your design.");var u=n(s,c);if(!u)throw new Error("Unknown validation error");if(isEmpty_1(u.details)||(a.details=safeStringify(u.details)),u.error&&["validate.pass","validate","validate.contract"].indexOf(t.op)>-1)throw new Error(u.error);if(!u.error&&"validate.fail"===t.op)throw new Error("Expected validate to fail - actual passed");break;default:throw a.details="valid types are "+ASSERTION_OPS.join(","),new Error("'"+t.op+"' is not a valid operation type")}a.pass=!0}catch(e){a.pass=!1,a.message=e.message}return a}catch(e){return a.pass=!1,a.message=e.message,a}},runAssertions=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t||[],forEach_1(t,function(t){t.result=runAssertion(e,t,r)}),t},SOURCE_REGEX=new RegExp(/^root|state|status|result|input|response/),ROOT_REGEX=new RegExp(/^root\./),runTransform=function(e,t,r){arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var a=r.sourceLocation,n=a.match(ROOT_REGEX);n&&(a=a.replace(ROOT_REGEX,""));var o=buildPathSelector([a,r.sourcePath]);if(!o.match(SOURCE_REGEX))return;var s=r.targetLocation,i=s.match(ROOT_REGEX);i&&(s=s.replace(ROOT_REGEX,""));var c=buildPathSelector([s,r.targetPath]);if(!c.match(SOURCE_REGEX))return;var u=n?e:t,l=i?e:t,f=get_1(u,o);set_1(l,c,f)}catch(e){console.warn("transforms#runTransform",e,t,r)}},runTransforms=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r=r||[],forEach_1(r,function(r){runTransform(e,t,r,a)})},patchAuthorization=function(e,t){var r=get_1(e,"input.authorization");if(!isEmpty_1(r)){var a=generateAuthPatch(r,get_1(e,"input.request"),t);if(!isEmpty_1(a)){var n=get_1(e,"input")||{};merge_1(n,a),set_1(e,"input",n)}}},runScript=function runScript(script,root){var state=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},tests=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],input=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},output=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},logger=arguments[6],Base64$$1=Base64,safeStringify$$1=safeStringify,safeParse$$1=safeParse,skip=function(){throw new Error("SKIP")},stop=function(){throw new Error("STOP")},reportError=function(e){logger?logger.log("error","script",["script syntax error",String(e)]):console.error("unknown script error",e)},result={status:null};try{eval("\n if (logger) {\n console.debug = function() {\n logger.log('debug', 'script', _.values(arguments));\n }\n console.log = console.info = function() {\n logger.log('info', 'script', _.values(arguments));\n }\n console.warn = function() {\n logger.log('warn', 'script', _.values(arguments));\n }\n console.error = function() {\n logger.log('error', 'script', _.values(arguments));\n }\n }\n\n with (input) {\n with (output) {\n "+script+"\n }\n }\n ")}catch(e){if("SKIP"===e.message)result.status="skipped";else if("STOP"===e.message)result.status="stopped";else{var match=e.message.match(/line [0-9]+/);if(match){var parts=match[0].split(" "),lineNum=Number(parts[1]);e.message=e.message.replace("line "+lineNum,"line "+(lineNum-18))}reportError(e)}}return result},runLogic=function(e,t,r,a){if(!t)return{};var n=get_1(t,"result.logs")||[];a=a||{},a.logger={log:function(e,t,a){isEmpty_1(a)&&console.warn("You cannot log with no messages.");var o=a.map(function(e){return safeStringify(e)});n.push({type:e,context:[r].concat(t||[]).join("."),messages:o})}},t=replaceNodeVariables(t);var o=get_1(t,r);if(!o)return patchAuthorization(t,a),t;runTransforms(e,t,o.transforms,a);var s={},i=o.script,c=void 0;if(!isEmpty_1(i)){if("before"===r){var u=get_1(t,"input")||{},l=clone_1(get_1(t,"state")||{}),f=get_1(e,"output");c=runScript(i,f,l,s,u,{},a.logger),set_1(t,"state",l)}else{var y=get_1(t,"result.input")||{},p=get_1(t,"result.output")||{},g=clone_1(get_1(t,"result.state")||{}),$=get_1(e,"output");c=runScript(i,$,g,s,y,p,a.logger),set_1(t,"result.state",g)}if(includes_1(["skipped","stopped"],c.status))return t.status=c.status,t}patchAuthorization(t,a),t=replaceNodeVariables(t);var b=runAssertions(t,o.assertions,a);if(!isEmpty_1(s))for(var _ in s){var h=s[_];b.push({location:r+" script",target:"",op:"tests",expected:"",result:{pass:h,message:_}})}return set_1(t,r+".assertions",b),set_1(t,"result.logs",n),t},index=_extends({generateAuthPatch:generateAuthPatch,runLogic:runLogic,buildPathSelector:buildPathSelector},VariableHelpers,JSONHelpers,QueryHelpers);return index}();
22,116.75
34,797
0.742412
4a9f7e293f4db834e960e4331d1ac4582cb96e19
1,464
js
JavaScript
lib/routes/users.js
prince21298/College_Event_App
ee597b5a6bf3af4d3e1f3ff1263ee10257ab6496
[ "MIT" ]
null
null
null
lib/routes/users.js
prince21298/College_Event_App
ee597b5a6bf3af4d3e1f3ff1263ee10257ab6496
[ "MIT" ]
null
null
null
lib/routes/users.js
prince21298/College_Event_App
ee597b5a6bf3af4d3e1f3ff1263ee10257ab6496
[ "MIT" ]
null
null
null
var express = require('express'); var router = express.Router(); const Users = require('../Services/users'); const userData= new Users; const {generateAccessToken,authenticateToken}=require('../Jwt/auth/auth') router.get('/users',async function(req,res){ const data = await userData.findAll(); res.send({data:data}) }) router.post('/sign_up',async function(req,res){ var data=req.body data["user_role"] = 'student' await userData.Insert(data).then(data=>{ res.send(data) }) .catch(err=>{ res.send(err) }) }) router.post('/login',async function (req,res){ var data= req.body; let emailVerify=await userData.emailVerify(data.email) if(emailVerify){ let passCheck = await userData.passChecking(emailVerify,data.password) if (passCheck){ let genrateToken = generateAccessToken(emailVerify) res.cookie("key",genrateToken) emailVerify['password']=NaN; res.send({'Data':emailVerify}) } else{ res.send({'oops!': 'your password is wrong'}) } }else{ res.send({'oops!': 'your email is wrong'}) } }) router.get('/hello',authenticateToken,function (req,res){ res.send({data:req.decode}) }) router.put('/update_role',authenticateToken,async function(req,res){ let details = req.decode; let data = req.body; await userData.updateRole(data,details['username']).then(data=>{ res.send({ 'data':"make admin sucessfully.. " }) }) }) module.exports = router;
24
74
0.665301
4a9ff0229509afa038393fa38b1d0579122db556
163
js
JavaScript
src/components/Icons/Close.js
portalspace/portal-app
9e53636aca8265dbf9d587fb50df2cdb1942de6e
[ "MIT" ]
null
null
null
src/components/Icons/Close.js
portalspace/portal-app
9e53636aca8265dbf9d587fb50df2cdb1942de6e
[ "MIT" ]
null
null
null
src/components/Icons/Close.js
portalspace/portal-app
9e53636aca8265dbf9d587fb50df2cdb1942de6e
[ "MIT" ]
null
null
null
import styled from 'styled-components' import { X } from 'react-feather' export const Close = styled(X)` &:hover { cursor: pointer; opacity: 0.6; } `
16.3
38
0.644172
4aa01cc769eb512ede5ffce3a7c884df1cccf732
123
js
JavaScript
docs/html/search/files_4.js
Mediwatch/Blazywatch
66beab8d41c9f0973589b2283a7a5e57f21d3259
[ "CC0-1.0" ]
2
2021-12-06T14:00:38.000Z
2022-01-04T20:44:19.000Z
docs/html/search/files_4.js
Mediwatch/Blazywatch
66beab8d41c9f0973589b2283a7a5e57f21d3259
[ "CC0-1.0" ]
1
2020-10-05T01:44:52.000Z
2020-10-05T01:44:52.000Z
docs/html/search/files_4.js
Mediwatch/BlazyWatch
e20334b63c30823dc33d5c6838f895c37eb84348
[ "CC0-1.0" ]
null
null
null
var searchData= [ ['compagnycontroller_2ecs_173',['CompagnyController.cs',['../_compagny_controller_8cs.html',1,'']]] ];
24.6
101
0.723577
4aa127293bd9c43b7b482a5aa4d052074fe8c639
8,313
js
JavaScript
JS-NODEJS/Array to HTML Table convertor.js
Chalibou/A-bit-of-my-work
6fc12861fac8a80b139693289a600cd9a3ec190d
[ "MIT" ]
null
null
null
JS-NODEJS/Array to HTML Table convertor.js
Chalibou/A-bit-of-my-work
6fc12861fac8a80b139693289a600cd9a3ec190d
[ "MIT" ]
null
null
null
JS-NODEJS/Array to HTML Table convertor.js
Chalibou/A-bit-of-my-work
6fc12861fac8a80b139693289a600cd9a3ec190d
[ "MIT" ]
null
null
null
//###---ArrayToTable---### // Convert an input Array into an HTML table async function createTable(tableID,destination,canAddRemove,canEdit,hide) { //get data from server var tableData = CSVToArray(await httpAsyncPost('req='+ tableID)) var table = document.createElement('table'); table.setAttribute("class","genTable"); table.setAttribute("id",tableID); var tableBody = document.createElement('tbody'); for(var i = 0; i<tableData.length;i++){ if(tableData[i][2]=='T'){ var row = document.createElement('tr'); row.setAttribute("class","genTr"); for(var j = 3;j<tableData[i].length;j++){ var leave = false; //Handle the "hide" if (typeof(hide) !=='undefined'){ for (k=0;k<hide.length;k++){ if(j==hide[k]+3){ leave=true; } } } if (leave==true){ continue; } var header = document.createElement('th'); header.setAttribute("class","genTh"); header.setAttribute("id",tableData[i][1] + ":" + tableData[i][0] + ':' + j); header.appendChild(document.createTextNode(tableData[i][j])); row.appendChild(header); } if (canAddRemove == true){ //Button for adding a column var btn_new_col = document.createElement('button'); btn_new_col.innerText = "+"; btn_new_col.setAttribute("class","genBtnNew"); btn_new_col.onclick = async function(event){//Add one column to data await httpAsyncPost("new="+"C:"+tableData[0][1]); socket.emit('refresh', tableData[0][1]); refreshUI(tableData[0][1]); } row.appendChild(btn_new_col); } }else{ var row = document.createElement('tr'); row.setAttribute("class","genTr"); for(var j = 3;j<tableData[i].length;j++){ var leave = false; //Handle the "hide" if (typeof(hide) !=='undefined'){ for (k=0;k<hide.length;k++){ if(j==hide[k]+3){ leave=true; } } } if (leave==true){ continue; } var cell = document.createElement('td'); cell.setAttribute("class","genTd"); cell.setAttribute("id",tableData[i][1] + ":" + tableData[i][0] + ':' + j); cell.appendChild(document.createTextNode(tableData[i][j])); row.appendChild(cell); } if (canAddRemove == true){ //Button for deleting a line var btn_del_line = document.createElement('button'); btn_del_line.innerText = "x"; btn_del_line.setAttribute("class","genBtnDel"); btn_del_line.setAttribute("id",tableData[i][1]+":"+tableData[i][0]); btn_del_line.onclick = async function(event){//Erase one column to data await httpAsyncPost("del="+"L:"+event.target.id); socket.emit('refresh', tableData[0][1]); refreshUI(tableData[0][1]); } row.appendChild(btn_del_line); } } tableBody.appendChild(row); } table.appendChild(tableBody); if (canAddRemove == true){ //Button for adding a line var btn_new_line = document.createElement('button'); btn_new_line.innerText = "+"; btn_new_line.setAttribute("class","genBtnNew"); btn_new_line.setAttribute("id",tableData[0][1]); btn_new_line.onclick = async function(event){//Add one column to data await httpAsyncPost("new="+"L:"+event.target.id); socket.emit('refresh', tableData[0][1]); refreshUI(tableData[0][1]); } table.appendChild(btn_new_line); } //Sort the table table.onclick = function(event) { let target = event.target; // where was the click? switch(target.tagName){ case 'TH': var col = target.cellIndex; var rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0; switching = true; dir = "asc"; //Make a loop that will continue until no switching has been done while (switching) { switching = false; rows = table.getElementsByTagName("TR"); for (i = 1; i < (rows.length - 1); i++) { shouldSwitch = false; x = rows[i].getElementsByTagName("TD")[col]; y = rows[i + 1].getElementsByTagName("TD")[col]; x= x.innerHTML.toLowerCase() y = y.innerHTML.toLowerCase() if(x.indexOf("/") != -1){//Si est une date alors on convertis x=convertDate(x); y=convertDate(y); } if(!isNaN(x) && x!=''){//Si est un nombre alors on convertis x=+x; y=+y; } if (dir == "asc") { if (x > y) { shouldSwitch = true; break; } } else if (dir == "desc") { if (x < y) { shouldSwitch = true; break; } } } if (shouldSwitch) { //If a switch has been marked, make the switch and mark that a switch has been done rows[i].parentNode.insertBefore(rows[i + 1], rows[i]); switching = true; switchcount ++; } else { //If no switching has been done AND the direction is "asc", set the direction to "desc" and run the while loop again if (switchcount == 0 && dir == "asc") { dir = "desc"; switching = true; } } } break; } function convertDate(d) { var p = d.split("/"); return +(p[2]+p[1]+p[0]); } }; if (canEdit == true){ table.ondblclick = function(event) { event.stopPropagation() let target = event.target; // where was the click? var tarContent = target.innerHTML; var targetTag = target.tagName; if (targetTag != "TD" && targetTag != "TH"){ return; } var targetIndex = target.cellIndex; var targetTableID = target.id.split(':')[0]; //Modify clicked value //We replace the text with input area var inputArea = document.createElement('input'); //inputArea properties inputArea.setAttribute("class","genInput"); inputArea.value = target.innerHTML; inputArea.id = target.id; //Cancel modification on focus out inputArea.onblur = function(event){ target.innerHTML = ''; target.appendChild(document.createTextNode(tarContent)); } inputArea.onkeyup = async function(event) { // Cancel the default action, if needed event.preventDefault(); // Number 13 is the "Enter" key on the keyboard if (event.keyCode === 13) { let target = event.target; // where was the click? var value = target.value; if (value.indexOf(";")!=-1){ value = value.replace(/;/g,","); } //If we modify a TH target into '' then column is erased if (targetTag == "TH" && value == ""){ //send request for data modification await httpAsyncPost("del="+"C:"+targetTableID+":"+ targetIndex); socket.emit('refresh', targetTableID); }else{ //send request for data modification await httpAsyncPost("mod="+target.id+":"+value); socket.emit('refresh', targetTableID); } //Refresh all component that hole the tabId reference refreshUI(targetTableID); } }; target.innerHTML = ''; target.appendChild(inputArea); inputArea.focus(); }; } document.getElementById(destination).appendChild(table); tabElmt.push(["table",tableID,destination,canAddRemove,canEdit,hide]);//Save the table declaration }
39.212264
129
0.517743
4aa5598a05ba3a58113b7048a990bff10dd8211a
9,329
js
JavaScript
src/main/resources/client-web/js/chunk-9bd2e852.95ea697a.js
CCC-NULS/offline-smart-contract-platform
2cf953c4e96ab3eacb90e7c768e7dee135dcc4c1
[ "MIT" ]
4
2019-07-18T09:13:51.000Z
2020-06-11T15:14:57.000Z
src/main/resources/client-web/js/chunk-9bd2e852.95ea697a.js
CCC-NULS/offline-smart-contract-platform
2cf953c4e96ab3eacb90e7c768e7dee135dcc4c1
[ "MIT" ]
null
null
null
src/main/resources/client-web/js/chunk-9bd2e852.95ea697a.js
CCC-NULS/offline-smart-contract-platform
2cf953c4e96ab3eacb90e7c768e7dee135dcc4c1
[ "MIT" ]
1
2019-08-06T14:01:48.000Z
2019-08-06T14:01:48.000Z
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9bd2e852"],{"188a":function(e,s,t){},"21a6":function(e,s,t){(function(t){var o,n,r;(function(t,a){n=[],o=a,r="function"===typeof o?o.apply(s,n):o,void 0===r||(e.exports=r)})(0,(function(){"use strict";function s(e,s){return"undefined"==typeof s?s={autoBom:!1}:"object"!=typeof s&&(console.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function o(e,s,t){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){i(o.response,s,t)},o.onerror=function(){console.error("could not download file")},o.send()}function n(e){var s=new XMLHttpRequest;s.open("HEAD",e,!1);try{s.send()}catch(e){}return 200<=s.status&&299>=s.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(s)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof t&&t.global===t?t:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,s,t){var i=a.URL||a.webkitURL,c=document.createElement("a");s=s||e.name||"download",c.download=s,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):n(c.href)?o(e,s,t):r(c,c.target="_blank")):(c.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(c.href)}),4e4),setTimeout((function(){r(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,a){if(t=t||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(s(e,a),t);else if(n(e))o(e,t,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){r(i)}))}}:function(e,s,t,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return o(e,s,t);var r="application/octet-stream"===e.type,i=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&i)&&"object"==typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},d.readAsDataURL(e)}else{var l=a.URL||a.webkitURL,u=l.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout((function(){l.revokeObjectURL(u)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i}))}).call(this,t("c8ba"))},"2e64":function(e,s,t){"use strict";var o=t("ff03"),n=t.n(o);n.a},7672:function(e,s,t){"use strict";var o=t("188a"),n=t.n(o);n.a},b301:function(e,s,t){"use strict";var o=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"back",attrs:{backUrl:e.backUrl}},[t("span",{staticClass:"back-box",on:{click:e.back}},[t("i",{staticClass:"el-icon-arrow-left"}),t("span",[e._v(e._s(e.backTitle))])])])},n=[],r={props:{backTitle:{type:String,default:""},backUrl:{type:String,default:"1"},backParams:{type:String,default:""}},methods:{back:function(){"1"===this.backUrl?this.$router.go(-1):this.$router.push({name:this.backUrl})}}},a=r,i=(t("2e64"),t("2877")),c=Object(i["a"])(a,o,n,!1,null,null,null);s["a"]=c.exports},c26c:function(e,s,t){},c742:function(e,s,t){"use strict";var o=t("c26c"),n=t.n(o);n.a},d1f0:function(e,s,t){"use strict";var o=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("el-dialog",{staticClass:"password-dialog",attrs:{title:e.$t("password.password1"),visible:e.passwordVisible,top:"30vh",width:"30rem","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(s){e.passwordVisible=s},open:e.passwordShow,close:e.passwordClose}},[t("el-form",{ref:"passwordForm",attrs:{model:e.passwordForm,rules:e.passwordRules},nativeOn:{submit:function(e){e.preventDefault()}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._v(e._s(e.$t("password.password1")))]),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{ref:"inpus",attrs:{type:"password",maxlength:22},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.enterSubmit("passwordForm")}},model:{value:e.passwordForm.password,callback:function(s){e.$set(e.passwordForm,"password",s)},expression:"passwordForm.password"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.passwordClose}},[e._v(e._s(e.$t("password.password2")))]),t("el-button",{attrs:{type:"success",id:"passwordInfo"},on:{click:function(s){return e.dialogSubmit("passwordForm")}}},[e._v(e._s(e.$t("password.password3"))+"\n ")])],1)],1)},n=[],r={props:{},data:function(){var e=function(e,s,t){t()};return{passwordVisible:!1,passwordForm:{password:""},passwordRules:{password:[{validator:e,trigger:["blur","change"]}]}}},created:function(){},mounted:function(){},watch:{passwordVisible:function(e){e&&setTimeout((function(){}),200)}},methods:{enterSubmit:function(e){this.passwordForm.password&&this.dialogSubmit(e)},passwordShow:function(){},passwordClose:function(){this.$refs["passwordForm"].resetFields(),this.passwordVisible=!1},showPassword:function(e){this.passwordVisible=e},dialogSubmit:function(e){var s=this;this.$refs[e].validate((function(e){if(!e)return!1;s.$emit("passwordSubmit",s.passwordForm.password),s.passwordVisible=!1}))}}},a=r,i=(t("7672"),t("2877")),c=Object(i["a"])(a,o,n,!1,null,null,null);s["a"]=c.exports},ec22:function(e,s,t){"use strict";t.r(s);var o=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"new_address bg-gray"},[t("div",{staticClass:"bg-white"},[t("div",{staticClass:"w1200"},[t("BackBar",{attrs:{backTitle:e.$t("address.address0")}}),t("h3",{staticClass:"title"},[t("font",[e._v(e._s(e.$t("newAddress.newAddress1"))+" ")]),t("font",[e._v(":"+e._s(e.newAddressInfo.address)+"\n "),t("i",{staticClass:"iconfont iconfuzhi clicks",on:{click:function(s){return e.copy(e.newAddressInfo.address)}}})])],1)],1)]),t("div",{staticClass:"new w1200 mt_20 bg-white"},[t("div",{staticClass:"step_tow w630"},[t("div",{staticClass:"tip bg-gray"},[(e.RUN_PATTERN,t("p",{staticClass:"tc"},[e._v(e._s(e.$t("newAddress.newAddress13")))]))]),t("div",{staticClass:"btn mb_20"},[t("el-button",{attrs:{type:"success"},on:{click:e.backKeystore}},[e._v(e._s(e.$t("newAddress.newAddress16"))+"\n ")]),t("el-button",{attrs:{type:"success"},on:{click:e.backKey}},[e._v(e._s(e.$t("newAddress.newAddress17")))]),t("el-button",{on:{click:function(s){return e.toUrl("home")}}},[e._v(e._s(e.$t("tab.tab12")))])],1)])]),t("Password",{ref:"password",on:{passwordSubmit:e.passSubmit}}),t("el-dialog",{attrs:{title:e.$t("newAddress.newAddress19"),width:"40%",visible:e.keyDialog,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(s){e.keyDialog=s}}},[t("span",[e._v(e._s(e.$t("newAddress.newAddress20")))]),t("p",{staticClass:"bg-white"},[e._v("\n "+e._s(e.newAddressInfo.pri)+"\n ")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"success"},on:{click:function(s){return e.copy(e.newAddressInfo.pri)}}},[e._v(e._s(e.$t("newAddress.newAddress21")))])],1)])],1)},n=[],r=(t("96cf"),t("3b8d")),a=t("d1f0"),i=t("b301"),c=t("6ace"),d=t("db49"),l=t("bc3a"),u=t.n(l),p={data:function(){return{prefix:"",newAddressInfo:{},keyDialog:!1,backType:0,RUN_PATTERN:d["f"]}},created:function(){this.newAddressInfo=this.$route.query.backAddressInfo},mounted:function(){},components:{Password:a["a"],BackBar:i["a"]},methods:{backKeystore:function(){this.backType=0,this.$refs.password.showPassword(!0)},backKey:function(){this.backType=1,this.$refs.password.showPassword(!0)},passSubmit:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(s){var o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:d["e"].method="exportKeyByAddress",d["e"].params=[Object(c["d"])(),this.newAddressInfo.address,s],u.a.post(d["d"],d["e"]).then((function(e){if(e.data.hasOwnProperty("result"))if(o.newAddressInfo.pri=e.data.result.privateKey,o.newAddressInfo.pub=e.data.result.pubKey,o.newAddressInfo.aesPri=e.data.result.aesPri,0===o.backType){var s=t("21a6"),n={address:o.newAddressInfo.address,encryptedPrivateKey:o.newAddressInfo.aesPri,pubKey:o.newAddressInfo.pub,priKey:null},r=new Blob([JSON.stringify(n)],{type:"text/plain;charset=utf-8"});s.saveAs(r,o.newAddressInfo.address+".keystore")}else o.newAddressInfo.pri=o.newAddressInfo.pri,o.keyDialog=!0;else o.$message({message:o.$t("newAddress.newAddress31")+e.data.error.message,type:"error",duration:1e3})})).catch((function(e){console.log(e)}));case 3:case"end":return e.stop()}}),e,this)})));function s(s){return e.apply(this,arguments)}return s}(),copy:function(e){Object(c["g"])(e),this.$message({message:this.$t("public.copySuccess"),type:"success",duration:1e3}),this.keyDialog=!1},toUrl:function(e){this.$router.push({name:e})}}},f=p,w=(t("c742"),t("2877")),b=Object(w["a"])(f,o,n,!1,null,null,null);s["default"]=b.exports},ff03:function(e,s,t){}}]); //# sourceMappingURL=chunk-9bd2e852.95ea697a.js.map
4,664.5
9,277
0.691392
4aa71a4bad2b95da8609ad307924dba5f8563473
5,376
js
JavaScript
src/components/items/PokemonDescription.js
CesarAdan1/DaCodes-Pokemon
4caaf899138465dabac68f566cee53e404f7ac1e
[ "MIT" ]
null
null
null
src/components/items/PokemonDescription.js
CesarAdan1/DaCodes-Pokemon
4caaf899138465dabac68f566cee53e404f7ac1e
[ "MIT" ]
null
null
null
src/components/items/PokemonDescription.js
CesarAdan1/DaCodes-Pokemon
4caaf899138465dabac68f566cee53e404f7ac1e
[ "MIT" ]
null
null
null
import React, { useContext, useState } from 'react' import '../../static/styles/pokemon.scss' import Modal from '../modal/Modal'; import { convertionWeight, convertionHeight } from '../../constants/convertions'; import { Text, PokeContext } from '../../state/context/PokeContext'; const PokemonDescription = (props) => { //console.log(props) const { pokemon, dictionary, description, dictionaryPokemon, } = props; console.log(pokemon) //console.log(dictionary) const [modalShown, toggleModal] = useState(false); return ( <> <li data-testid="item-container" className="pokemon-item"> <figure className="pokemon-item__fg"> <img className="pokemon-item__img" src={pokemon.sprites.front_default} alt={pokemon.name} /> </figure> <div className="pokemon-item__poke--info"> <p className="pokemon-item__number"> {" "} <span className="pokemon-item__number--prefix">N.º{" "}{pokemon.id}</span> </p> <h5 className="pokemon-item__name">{pokemon.name}</h5> <div className="pokemon-item__abilities"> {pokemon.types.map((type, id) => ( <span key={id} className={"pokemon-item__type"} >{type.type.name}</span> ))} </div> </div> <div className="pokemon-item__card-bottom"> <button className="pokemon-item__btn-more" onClick={() => { toggleModal(!modalShown) }} > <Text tid="SHOW_MORE"/> </button> </div> </li> <Modal title={<Text tid="CLOSE"/>} shown={modalShown} close={() => { toggleModal(false) }} > <div className="pokemon__details_container"> <h2 onClick={() => { }} style={{ display: 'flex', justifyContent: 'center', textTransform: 'capitalize' }}> {pokemon.name}</h2> <div className="pokemon__details_container--measures"> <h2 className="pokemon__details_container--title"><Text tid="MEASURES"/></h2> <span className="pokemon__details_container-H"><Text tid="HEIGHT"/> </span> {" "} <span className="pokemon__details_container--Hnumber">{convertionHeight(props.pokemon.height)}{" "}m</span> <span className="pokemon__details_container-W"><Text tid="WEIGHT"/>: {" "}</span> <span className="pokemon__details_container-Wnum">{convertionWeight(props.pokemon.weight)}{" "}kg</span> </div> <div> <h2 className="pokemon__details_container--title"><Text tid="ABILITIES"/></h2> <div className="pokemon__details_container--sect"> {props.pokemon.abilities.map((ability, i) => { return ( <div key={i} id={i} className="pokemon__details_container--move-type"> {ability.ability.name} </div> ); })} </div> </div> <div> <h2 className="pokemon__details_container--title"><Text tid="DESCRIPTION"/></h2> <div className="pokemon__details_container--sect"> {/* {props.pokemon.flavor_text_entries.map((description, i) => ( <h6 className="pokemon__details_container--Hnumber" key={i}> {description.flavor_text} </h6> ))} */} {/*console.log(data.flavor_text.language.name)*/} </div> </div> <div> <h2 className="pokemon__details_container--title"><Text tid="MOVEMENTS"/></h2> <div className="pokemon__details_container--sect"> {props.pokemon.moves.map((move, i) => { return ( <div key={i} id={i} className="pokemon__details_container--move-type"> {move.move.name} </div> ); })} </div> </div> </div> </Modal> </> ) } export default PokemonDescription;
44.429752
131
0.415923
4aa79b3d8e9279e810c0b13de528be454c6debe4
99
js
JavaScript
src/containers/Modals/ModalUnlockMetamask.js
tcsiwula/gnosis-management
eefa164bf482dea91bd92aa6c15659c399c9ff55
[ "MIT" ]
null
null
null
src/containers/Modals/ModalUnlockMetamask.js
tcsiwula/gnosis-management
eefa164bf482dea91bd92aa6c15659c399c9ff55
[ "MIT" ]
null
null
null
src/containers/Modals/ModalUnlockMetamask.js
tcsiwula/gnosis-management
eefa164bf482dea91bd92aa6c15659c399c9ff55
[ "MIT" ]
null
null
null
import UnlockMetamask from 'components/ModalContent/UnlockMetamask' export default UnlockMetamask
24.75
67
0.878788
4aa7a122b1c3f679915d6f107bbe600fb5be11c9
1,521
js
JavaScript
routes/api/invitationpage.test.js
cs130-w21/17
684b9cb02ec844e9c847096e7e8f3a0eb605ab3b
[ "Apache-2.0" ]
3
2021-01-09T01:57:18.000Z
2021-01-30T02:13:16.000Z
routes/api/invitationpage.test.js
cs130-w21/17
684b9cb02ec844e9c847096e7e8f3a0eb605ab3b
[ "Apache-2.0" ]
34
2021-01-13T02:37:21.000Z
2021-03-06T04:06:45.000Z
routes/api/invitationpage.test.js
cs130-w21/17
684b9cb02ec844e9c847096e7e8f3a0eb605ab3b
[ "Apache-2.0" ]
1
2021-05-22T07:09:20.000Z
2021-05-22T07:09:20.000Z
import app from '../../app'; require('dotenv').config(); const supertest = require("supertest"); /** * @name Invitation page tests * @route /api/invitationpage * @desc Unit tests for routes in /api/invitationpage */ describe('Post invitation page', () => { let user_data = { id: 'impossible_token' } /** * @name Post invalid invitation page access token * @route {POST} /api/invitationpage/accessToken * @routeparam {request} Send in an invitation's id in an effort to gain an access token from it * This test is expected to fail given a fake id */ test("POST INVALID INVITATION PAGE ACCESS TOKEN", async() => { await supertest(app) .post('/api/invitationpage/accessToken') .send(user_data) .expect(400) }); /** * @name Post invalid invitation page access token * @route {POST} /api/invitationpage/accessToken * @routeparam {request} Send in an invitation's id in an effort to gain an access token from it * This test is expected to succeed given a real invitation's id. This invitation should be * set to expire years from now, to ensure the test doesn't suddenly fail in the future. */ test("POST VALID INVITATION PAGE ACCESS TOKEN", async() => { let new_data = { id: process.env.TEST_ID } await supertest(app) .post('/api/invitationpage/accessToken') .send(new_data) .expect(200) }); });
36.214286
100
0.618672
4aa81bc36194da7218a60889921ac1f5d334fff4
927
js
JavaScript
frontend/src/components/layout/Alert.js
CMPUT404-stev-sand-pant-ashw-mehr/CMPUT404-stev-sand-pant-ashw-mehr-repo
0f96d938e9e3ec51103f2b20cb9673bd0b145343
[ "MIT" ]
null
null
null
frontend/src/components/layout/Alert.js
CMPUT404-stev-sand-pant-ashw-mehr/CMPUT404-stev-sand-pant-ashw-mehr-repo
0f96d938e9e3ec51103f2b20cb9673bd0b145343
[ "MIT" ]
50
2021-10-08T00:01:43.000Z
2021-12-06T06:34:29.000Z
frontend/src/components/layout/Alert.js
CMPUT404-stev-sand-pant-ashw-mehr/CMPUT404-stev-sand-pant-ashw-mehr-repo
0f96d938e9e3ec51103f2b20cb9673bd0b145343
[ "MIT" ]
null
null
null
import React, { Component, Fragment } from "react"; import { withAlert } from "react-alert"; import { connect } from "react-redux"; import PropTypes from "prop-types"; export class Alert extends Component { componentDidUpdate(prevProps) { const { alert, alerts } = this.props; if (alerts !== prevProps.alerts) { for (var msg in alerts.msg) { if (msg == "success") { alert.success(`${alerts.msg[msg]}`); } else { if (alerts.msg[msg] instanceof Array) { alert.error(`${alerts.msg[msg].join(", ")}`); } else { alert.error(`${alerts.msg[msg]}`); } } break; } } } render() { return <Fragment />; } static propTypes = { alerts: PropTypes.object.isRequired, }; } const mapStateToProps = (state) => ({ alerts: state.alerts, }); export default connect(mapStateToProps)(withAlert()(Alert));
24.394737
60
0.572816
4aa912fea3da0851d948f7b6e06ea9ab36ed65f9
431
js
JavaScript
node_modules/node-geocoder/lib/model/adress.js
radjivC/node-geolocation
db5822c9ed8657d3193b6937fb8eed9ce8894d75
[ "MIT" ]
6
2015-01-24T15:19:26.000Z
2016-12-08T06:14:07.000Z
node_modules/node-geocoder/lib/model/adress.js
radjivC/node-geolocation
db5822c9ed8657d3193b6937fb8eed9ce8894d75
[ "MIT" ]
9
2015-02-03T17:34:24.000Z
2016-08-26T01:04:57.000Z
node_modules/node-geocoder/lib/model/adress.js
radjivC/node-geolocalisation
db5822c9ed8657d3193b6937fb8eed9ce8894d75
[ "MIT" ]
7
2015-05-04T15:47:11.000Z
2017-02-28T10:57:21.000Z
var Adress = function(data) { // 'latitude' : result.geometry.location.lat, // 'longitude' : result.geometry.location.lng, // 'country' : country, // 'city' : city, // 'state' : state, // 'stateCode' : stateCode, // 'zipcode' : zipcode, // 'streetName': streetName, // 'streetNumber' : streetNumber, // 'countryCode' : countryCode }; module.exports = Adress;
23.944444
50
0.549884
4aab6481540495d7dbf7b985959907b7cf4fc66a
533
js
JavaScript
test/ui/main.js
drejahl/vue-partnering-model
1c1e0bede718f152a144b40a9687b55d6229735c
[ "MIT" ]
4
2018-07-19T03:59:15.000Z
2019-01-04T08:14:37.000Z
test/ui/main.js
drejahl/vue-partnering-model
1c1e0bede718f152a144b40a9687b55d6229735c
[ "MIT" ]
2
2018-04-10T09:15:18.000Z
2018-04-10T09:17:50.000Z
test/ui/main.js
drejahl/vue-service-impact-canvas
6f822ce23b8f6d0726c77423ae80eb7ccf1a4e6b
[ "MIT" ]
1
2018-07-27T07:34:47.000Z
2018-07-27T07:34:47.000Z
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import { VueGrid } from '@liqueflies/vue-grid' const gridConf = { columns: 10, gutter: 0, breakpoints: { xs: 320, sm: 576, md: 768, lg: 992, xl: 1200 }, }; Vue.use(VueGrid, gridConf) Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', template: '<App/>', components: { App } })
18.37931
80
0.634146
4aac5e9b5dcc63cc85f915d60bdb84fec912fb9b
1,399
js
JavaScript
src/IEManageSystem.Web/ClientApp/src/RNApp/RNStart/src/index.js
IceEmblem/IEManageSystem
fa0bc629f2eab61a54334895837ec4ac0bd59a72
[ "MIT" ]
51
2020-01-07T11:17:00.000Z
2022-02-11T16:57:42.000Z
src/IEManageSystem.Web/ClientApp/src/RNApp/RNStart/src/index.js
1373611035/IEManageSystem
fa0bc629f2eab61a54334895837ec4ac0bd59a72
[ "MIT" ]
6
2020-07-15T12:07:32.000Z
2020-10-25T10:35:25.000Z
src/IEManageSystem.Web/ClientApp/src/RNApp/RNStart/src/index.js
IceEmblem/IEManageSystem
fa0bc629f2eab61a54334895837ec4ac0bd59a72
[ "MIT" ]
12
2020-01-07T11:17:02.000Z
2021-12-28T12:15:06.000Z
import { AppRegistry } from 'react-native'; import React, { Suspense } from 'react'; import { NativeRouter, Switch, Route } from 'react-router-native'; import { Provider } from 'react-redux' import { View, Text } from 'react-native' // 导入入口模块 import './Module' import {ModuleFactory} from 'ice-common' import {IEStore} from 'ice-common' import {PageProvider} from 'ice-common' class Start extends React.Component { state = { show: false } componentDidMount() { let moduleFactory = new ModuleFactory(); moduleFactory.init().then(() => { this.setState({ show: true }); }) } render() { if (!this.state.show) { return <></>; } let store = IEStore.ieStore; const fallback = (props) => ( <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> <Text>loading...</Text> </View> ); return <Provider store={store}> <NativeRouter> <Suspense fallback={fallback}> <Switch> {PageProvider.pages.map(item => (<Route key={item.url} path={item.url} component={item.component} />))} </Switch> </Suspense> </NativeRouter> </Provider> } } AppRegistry.registerComponent('IceEmblem', () => Start);
26.903846
127
0.54253
4aac8376c178087e37e58ddb0339c199b48e50c8
1,015
js
JavaScript
app/main.js
AtoMaso/FullLoudWhisperer
697b126989dc02d1965d04d6456fef3d5c44e517
[ "MIT" ]
null
null
null
app/main.js
AtoMaso/FullLoudWhisperer
697b126989dc02d1965d04d6456fef3d5c44e517
[ "MIT" ]
null
null
null
app/main.js
AtoMaso/FullLoudWhisperer
697b126989dc02d1965d04d6456fef3d5c44e517
[ "MIT" ]
null
null
null
"use strict"; var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic'); var app_component_1 = require('./app.component'); var router_deprecated_1 = require('@angular/router-deprecated'); var common_1 = require('@angular/common'); var http_1 = require('@angular/http'); var core_1 = require('ng2-idle/core'); var authentication_service_1 = require('./services/authentication.service'); var processmessage_service_1 = require('./services/processmessage.service'); var pagetitle_service_1 = require('./services/pagetitle.service'); var logger_service_1 = require('./services/logger.service'); platform_browser_dynamic_1.bootstrap(app_component_1.AppComponent, [http_1.HTTP_PROVIDERS, common_1.FORM_PROVIDERS, router_deprecated_1.ROUTER_PROVIDERS, core_1.IDLE_PROVIDERS, authentication_service_1.AuthenticationService, processmessage_service_1.ProcessMessageService, pagetitle_service_1.PageTitleService, logger_service_1.LoggerService]); //# sourceMappingURL=main.js.map
63.4375
116
0.8
4aad272a28d3e968ccf638d8fe33d27bacfd460b
1,780
js
JavaScript
public/js/238.js
aftabgithub1/laraprime
0f4c8081e8bb04d8e351d4f5d4bcc372c53347e5
[ "MIT" ]
null
null
null
public/js/238.js
aftabgithub1/laraprime
0f4c8081e8bb04d8e351d4f5d4bcc372c53347e5
[ "MIT" ]
2
2021-09-06T11:01:14.000Z
2021-09-06T11:13:35.000Z
public/js/238.js
aftabgithub1/laraprime
0f4c8081e8bb04d8e351d4f5d4bcc372c53347e5
[ "MIT" ]
6
2021-09-02T05:15:04.000Z
2021-09-05T06:12:54.000Z
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[238],{5238:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const a={name:"InputRepeater",data:function(){return{products:[{name:"",category:"",price:""}]}},methods:{add:function(){this.products.push({name:"",category:"",price:""})},remove:function(e){this.products.splice(e,1)}}};const r=(0,n(1900).Z)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"p-d-flex p-jc-center"},[n("div",{staticClass:"p-col-10"},e._l(e.products,(function(t,a){return n("div",{key:a},[e._v("\n Name: "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"product.name"}],staticClass:"p-mb-2 p-mr-3",attrs:{type:"text"},domProps:{value:t.name},on:{input:function(n){n.target.composing||e.$set(t,"name",n.target.value)}}}),e._v("\n Category: "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.category,expression:"product.category"}],staticClass:"p-mb-2 p-mr-3",attrs:{type:"text"},domProps:{value:t.category},on:{input:function(n){n.target.composing||e.$set(t,"category",n.target.value)}}}),e._v("\n Price: "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.price,expression:"product.price"}],staticClass:"p-mb-2 p-mr-4",attrs:{type:"number"},domProps:{value:t.price},on:{input:function(n){n.target.composing||e.$set(t,"price",n.target.value)}}}),e._v(" "),n("button",{on:{click:function(t){return e.remove(a)}}},[e._v("Delete")])])})),0)]),e._v(" "),n("div",{staticClass:"p-mt-4"},[n("button",{staticClass:"p-m-auto",on:{click:e.add}},[e._v("Add")])])]},proxy:!0}])})],1)}),[],!1,null,null,null).exports}}]);
1,780
1,780
0.632022
4aad4595a4aa9619773c40bee90fbef320b5ae83
1,082
js
JavaScript
countryshapes/NORFOLK_ISLAND.js
code-watch/Mapnews
a4d8219e9c3dab50e2084eb1e85ee373fec003d2
[ "MIT" ]
20
2020-06-01T03:49:30.000Z
2022-03-21T20:44:06.000Z
countryshapes/NORFOLK_ISLAND.js
code-watch/Mapnews
a4d8219e9c3dab50e2084eb1e85ee373fec003d2
[ "MIT" ]
2
2020-06-02T08:19:08.000Z
2020-11-17T07:59:46.000Z
countryshapes/NORFOLK_ISLAND.js
code-watch/Mapnews
a4d8219e9c3dab50e2084eb1e85ee373fec003d2
[ "MIT" ]
5
2020-06-01T03:49:35.000Z
2022-03-03T12:51:05.000Z
[[[[167.9841414720001, -29.01783619599989], [167.99634850400008, -29.02564869599989], [167.99463951900015, -29.04257577899996], [167.98503665500004, -29.05925872199991], [167.97348066500007, -29.06633879999997], [167.970062696, -29.068942966999956], [167.96794681100005, -29.07203541499986], [167.96648196700005, -29.075778903999975], [167.96664472700002, -29.08001067499991], [167.96070397200003, -29.06560637799994], [167.9504500660001, -29.056573174999926], [167.93970787900008, -29.055759372999916], [167.9326278000001, -29.06633879999997], [167.92644290500004, -29.06633879999997], [167.9243270190001, -29.05559661299995], [167.92017662900008, -29.0455054669999], [167.918304884, -29.036390882999896], [167.9223738940001, -29.02874114399988], [167.92994225400003, -29.01946379999991], [167.930511915, -29.012139580999914], [167.92457116000008, -29.008721612999906], [167.91211998800014, -29.011651299999926], [167.92652428500003, -28.99749114399991], [167.94556725400003, -29.00123463299994], [167.9658309250001, -29.011814059999978], [167.9841414720001, -29.01783619599989]]]]
1,082
1,082
0.780037
4aad97aa6ae4112fc72659df5065e3d23514c93a
3,543
js
JavaScript
Services/MySqlService.js
DenisLanks/adonisjs-scaffold
be1670586b717b41eb5c7cffd38122671391e608
[ "MIT" ]
1
2020-08-29T20:11:18.000Z
2020-08-29T20:11:18.000Z
Services/MySqlService.js
DenisLanks/adonisjs-scaffold
be1670586b717b41eb5c7cffd38122671391e608
[ "MIT" ]
3
2019-12-26T20:28:32.000Z
2020-08-26T13:33:03.000Z
Services/MySqlService.js
DenisLanks/adonisjs-scaffold
be1670586b717b41eb5c7cffd38122671391e608
[ "MIT" ]
1
2019-12-10T15:07:00.000Z
2019-12-10T15:07:00.000Z
'use strict' const DatabaseService = require('./DatabaseService') class MySqlService extends DatabaseService { async getSchemas() { console.info('loading schemas from database...'); let schemas = await this.connection.select('SCHEMA_NAME as schemaname').from('information_schema.SCHEMATA') return Promise.resolve(schemas.map(function (value, index) { return value.schemaname })); } async getTables(schema) { this.schemaName = schema; return await this.connection.select('TABLE_NAME as name', 'TABLE_TYPE as type', 'TABLE_COMMENT as comment') .from('information_schema.TABLES') .where('TABLE_SCHEMA', schema); } async getColumns(table) { return await this.connection.from('information_schema.COLUMNS') .where('TABLE_NAME', table) .where('TABLE_SCHEMA', this.schemaName) .orderBy('ORDINAL_POSITION', 'asc') .select('COLUMN_NAME as name', 'DATA_TYPE as type', 'IS_NULLABLE as nullable', 'CHARACTER_MAXIMUM_LENGTH as length', 'NUMERIC_PRECISION as precision', 'NUMERIC_SCALE as scale', 'COLUMN_COMMENT as comment') } async getColumnsConstraints(name, table){ return await this.connection.from('information_schema.KEY_COLUMN_USAGE as kcu') .where("kcu.TABLE_NAME", table) .where("kcu.CONSTRAINT_NAME", name) .where("kcu.TABLE_SCHEMA", this.schemaName) .orderBy('ORDINAL_POSITION','asc') .select('kcu.COLUMN_NAME as name','kcu.REFERENCED_COLUMN_NAME as reference'); } async getConstraints(table) { //Get constraint's names let constraints = await this.connection.from('information_schema.TABLE_CONSTRAINTS as tc') .leftJoin('information_schema.REFERENTIAL_CONSTRAINTS as rc', function() { this.on('tc.TABLE_NAME', '=', 'rc.TABLE_NAME') .on('tc.CONSTRAINT_NAME', '=', 'rc.CONSTRAINT_NAME') }) .where("tc.TABLE_SCHEMA", this.schemaName) .where("tc.TABLE_NAME", table) .distinct('tc.CONSTRAINT_NAME as name', 'tc.CONSTRAINT_TYPE as type','rc.REFERENCED_TABLE_NAME as foreign_table'); //for each constraint get columns informations for (let constraint of constraints) { let columns = await this.getColumnsConstraints(constraint.name,table); constraint.foreign_keys =[]; constraint.keys =[]; for (const column of columns) { constraint.keys.push(column.name); if (constraint.type === "FOREIGN KEY") { constraint.keys.push(column.reference); } } } return Promise.resolve(constraints); } getType(dbtype) { switch (dbtype) { case 'timestamp': return dbtype; case 'text': return dbtype; case 'date': return dbtype; case 'datetime': return dbtype; case 'int8': return 'biginteger'; case 'int4': return 'integer'; case 'float8': return 'double'; case 'float4': return 'float'; case 'numeric': return 'decimal'; default: { return 'string'; } } } } module.exports = MySqlService;
38.934066
143
0.572961
4aadd452439df71373a1b609a90047071b062911
136
js
JavaScript
app/utilities/actions.js
JevinAnderson/Flash-Cards
4a7569eccc7d533ee19a3af6331fd5bf1e6b1be0
[ "MIT" ]
null
null
null
app/utilities/actions.js
JevinAnderson/Flash-Cards
4a7569eccc7d533ee19a3af6331fd5bf1e6b1be0
[ "MIT" ]
1
2018-03-01T08:27:32.000Z
2018-03-01T08:27:32.000Z
app/utilities/actions.js
JevinAnderson/Flash-Cards
4a7569eccc7d533ee19a3af6331fd5bf1e6b1be0
[ "MIT" ]
null
null
null
export const perform = type => ({ type }); export const set = (type, payload) => ({ type, payload }); export default { perform, set };
27.2
58
0.625
4aae86bdf48deb364613090c632d835f91851ee6
2,426
js
JavaScript
jokes/jokes-router.js
BW-PT-DadJokes/Back-End
5f7c1d975c10b037a93a883a93b8ca659c94bb16
[ "MIT" ]
null
null
null
jokes/jokes-router.js
BW-PT-DadJokes/Back-End
5f7c1d975c10b037a93a883a93b8ca659c94bb16
[ "MIT" ]
1
2021-05-10T21:48:51.000Z
2021-05-10T21:48:51.000Z
jokes/jokes-router.js
BW-PT-DadJokes/Back-End
5f7c1d975c10b037a93a883a93b8ca659c94bb16
[ "MIT" ]
5
2019-12-20T23:31:32.000Z
2020-02-24T20:44:49.000Z
const router = require("express").Router(); const Jokes = require("./jokes-model.js"); const restricted = require("../auth/restricted-middleware.js"); // add joke router.post("/", restricted, (req, res) => { const joke = req.body; console.log(joke); Jokes.addJoke(joke) .then(saved => { res .status(201) .json({ created_joke: saved, message: "Joke added successfully!" }); }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not add joke" }); }); }); // get all public jokes router.get("/", (req, res) => { Jokes.findJoke() .then(jokes => { res.status(200).json(jokes); }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not get public jokes" }); }); }); // get all jokes including private router.get("/allJokes", restricted, (req, res) => { Jokes.findJoke() .then(jokes => { res.status(200).json(jokes); }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not get jokes" }); }); }); // get joke by id router.get("/:id", (req, res) => { const id = req.params.id; Jokes.findJokeById(id) .then(joke => { res.status(200).json(joke); }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not get joke" }); }); }); // edit joke router.put("/:id", restricted, (req, res) => { const id = req.params.id; const body = req.body; Jokes.updateJoke(body, id) .then(updatedJoke => { if (updatedJoke) { res.status(200).json({ message: "Joke updated" }); } else { res.status(404).json({ message: "Joke not found" }); } }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not update joke" }); }); }); // delete joke router.delete("/:id", restricted, (req, res) => { const id = req.params.id; Jokes.deleteJoke(id) .then(deleted => { if (deleted) { res.status(200).json({ message: "Joke deleted" }); } else { res.status(404).json({ message: "Joke not found" }); } }) .catch(error => { console.log(error); res.status(500).json({ message: "Could not delete joke" }); }); }); module.exports = router;
24.755102
77
0.535037
4aafb3119033f3bdac999d7ca30dfd1baae3a2f8
1,387
js
JavaScript
src/screens/Auth/Onboarding/index.js
CrisRonda/Travels
78229c434ad3a888e1c9ac6a7c45561881b895f2
[ "MIT" ]
null
null
null
src/screens/Auth/Onboarding/index.js
CrisRonda/Travels
78229c434ad3a888e1c9ac6a7c45561881b895f2
[ "MIT" ]
null
null
null
src/screens/Auth/Onboarding/index.js
CrisRonda/Travels
78229c434ad3a888e1c9ac6a7c45561881b895f2
[ "MIT" ]
1
2021-02-15T23:16:36.000Z
2021-02-15T23:16:36.000Z
import React from 'react'; import {SafeAreaView} from 'react-native'; import {Box, ButtonOutline, Text, Logo} from 'src/components'; import BackgroundImage from './components/BackgroundImage'; import {backgroundImage} from 'src/constans'; import {useNavigation} from '@react-navigation/native'; const Index = () => { const {navigate} = useNavigation(); return ( <Box flex={1} alignItems="center" justifyContent="space-around" p="xl"> <BackgroundImage time={1500} images={backgroundImage} /> <SafeAreaView style={{flex: 1, width: '100%'}}> <Logo row={false} flex={1 / 3} /> <Box flex={1} width="100%" mt="xl" justifyContent="center" alignItems="flex-start"> <Text variant="h2" color="white"> Bienvenido </Text> <Text color="white">Descubre más!</Text> </Box> <Box flex={1 / 3} flexDirection="row" alignItems="center" justifyContent="space-around"> <ButtonOutline enableDecoration label="Inicial sesión" onPress={() => navigate('SignIn')} /> <ButtonOutline label="Registrar" onPress={() => navigate('SignUp')} /> </Box> </SafeAreaView> </Box> ); }; Index.propTypes = {}; Index.defaultProps = {}; export default Index;
30.822222
80
0.571738
4ab055ccee53cc9be8d0f5d5ab8a79dfe7276209
1,219
js
JavaScript
xlab/static/js/passwordscheck.js
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
xlab/static/js/passwordscheck.js
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
xlab/static/js/passwordscheck.js
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
function passwordStrength(f,i,d){var k=1,h=2,b=3,a=4,c=5,g=0,j,e;if((f!=d)&&d.length>0){return c}if(f.length==0){return 0;} if(f.length<6){ return false } if(f.match(/[0-9]/)){g+=10}if(f.match(/[a-z]/)){g+=26}if(f.match(/[A-Z]/)){g+=26}if(f.match(/[^a-zA-Z0-9]/)){g+=31}j=Math.log(Math.pow(g,f.length));e=j/Math.LN2;if(e<40){return h}if(e<56){return b}return a}; function widthofpr(p){ if(p==0){return "0%";} if(p==1){return "25%";} if(p==2){return "50%";} if(p==3){return "75%";} if(p==4){return "100%";} } function textofpr(p){ if(p==0){return "Type A Password";} if(p==1){return "Short Password";} if(p==2){return "Bad Password";} if(p==3){return "Good Password";} if(p==4){return "Strong Password";} if(p==5){return "Password Mismatch";} } $(document).ready(function(){ u=$("#user"); v=$("#pass"); v2=$("#pass2"); p=$("#pbar"); pt=$("#ppbartxt"); v.bind('keyup',function(){ p.css('width',widthofpr(passwordStrength(v.val(),u.val(),v2.val()))); pt.text(textofpr(passwordStrength(v.val(),u.val(),v2.val()))); }); v2.bind('keyup',function(){ p.css('width',widthofpr(passwordStrength(v.val(),u.val(),v2.val()))); pt.text(textofpr(passwordStrength(v.val(),u.val(),v2.val()))); }); });
32.945946
208
0.593929
4ab062bbc71595fafbabb226deacb27ee26b8662
63
js
JavaScript
src/jspm_packages/npm/browserify-sign@2.8.0/index.js
thomjoy/turftest
ae57677fb41a105a134f7caf32b9abf0e4aa6dbc
[ "MIT" ]
null
null
null
src/jspm_packages/npm/browserify-sign@2.8.0/index.js
thomjoy/turftest
ae57677fb41a105a134f7caf32b9abf0e4aa6dbc
[ "MIT" ]
null
null
null
src/jspm_packages/npm/browserify-sign@2.8.0/index.js
thomjoy/turftest
ae57677fb41a105a134f7caf32b9abf0e4aa6dbc
[ "MIT" ]
null
null
null
/* */ require("./inject")(module.exports, require("crypto"));
21
55
0.619048
4ab09848903967e0a3df8a0db85c0cc057338d77
1,151
js
JavaScript
views/app/js/rrhh/rrhh.js
Xappie/helpdesk
1dd58b35abf44591dfb238309b283fd31e39b146
[ "MIT" ]
1
2019-04-18T02:34:14.000Z
2019-04-18T02:34:14.000Z
views/app/js/rrhh/rrhh.js
Xappie/helpdesk
1dd58b35abf44591dfb238309b283fd31e39b146
[ "MIT" ]
null
null
null
views/app/js/rrhh/rrhh.js
Xappie/helpdesk
1dd58b35abf44591dfb238309b283fd31e39b146
[ "MIT" ]
null
null
null
function GetListarAnticipoMes(annomes,mesano){ $("a > i").removeClass("rojo"); $("#"+mesano).addClass("rojo"); $("#input_annomes").val(annomes); var formData = new FormData(); formData.append('annomes',annomes); $.ajax({ type: "POST", url: "api/GetListarAnticipoMes", contentType:false, processData:false, data : formData, success : function(data){ var table= $('#dataTables4').DataTable(); table.clear().draw(); if(data.success==1){ var ruta="views/app/temp/"+data.message; var request = $.ajax(ruta,{dataType:'json'}); request.done(function (resultado) { table.rows.add(resultado.aaData).draw(); }); } }, error : function(xhr, status) { msg_box_alert(99,"Error",xhr.responseText); } }); } $('#btn_exportar_excel_listado_anticipos').click(function(e) { var annomes=document.getElementById('input_annomes').value; location.href = 'rrhh/exportar_excel_listado_anticipos?annomes='+annomes; });
31.972222
77
0.559513
4ab0e13539be4aa87fbc3c120b266717afb94831
678
js
JavaScript
src/samples/button_message.js
smalltalk-ai/botkit-messenger-samples
45a475f50a81af9d7b7fb7dc2ea931dea50a46f1
[ "MIT" ]
2
2017-02-18T13:10:22.000Z
2019-05-10T14:26:22.000Z
src/samples/button_message.js
smalltalk-ai/botkit-messenger-samples
45a475f50a81af9d7b7fb7dc2ea931dea50a46f1
[ "MIT" ]
1
2021-05-10T16:59:47.000Z
2021-05-10T16:59:47.000Z
src/samples/button_message.js
smalltalk-ai/botkit-messenger-samples
45a475f50a81af9d7b7fb7dc2ea931dea50a46f1
[ "MIT" ]
1
2018-04-16T19:33:54.000Z
2018-04-16T19:33:54.000Z
/* jshint node: true */ 'use strict'; /* * Get sample Buttom Template message in Facebook format. */ module.exports = function() { return { attachment: { type: 'template', payload: { template_type: 'button', text: 'This is test text', buttons:[{ type: 'web_url', url: 'https://www.oculus.com/en-us/rift/', title: 'Open Web URL' }, { type: 'postback', title: 'Trigger Postback', payload: 'DEVELOPED_DEFINED_PAYLOAD' }, { type: 'phone_number', title: 'Call Phone Number', payload: '+16505551234' }] } } }; };
21.870968
57
0.50295
4ab10fedf77a8deae73c4d380931893de62fdf6b
491
js
JavaScript
test/test.js
openaplis/ap-mysql
d8ac861b27943fea4a7ad8cb7293b2ea0363f5b9
[ "MIT" ]
null
null
null
test/test.js
openaplis/ap-mysql
d8ac861b27943fea4a7ad8cb7293b2ea0363f5b9
[ "MIT" ]
null
null
null
test/test.js
openaplis/ap-mysql
d8ac861b27943fea4a7ad8cb7293b2ea0363f5b9
[ "MIT" ]
2
2017-05-04T17:03:12.000Z
2017-05-10T15:09:05.000Z
const path = require('path') const grpc = require('grpc') const PROTO_PATH = path.join(__dirname, '../node_modules/ap-protobuf/src/core/mysql/mysql-service.proto') const mysql_proto = grpc.load(PROTO_PATH).mysql const mysqlService = new mysql_proto.MysqlService(process.env.AP_MYSQL_SERVICE_BINDING, grpc.credentials.createInsecure()) mysqlService.getUnacknowledgedTrackingNumbers({ message: 'null'}, function (err, message) { if(err) return console.log(err) console.log(message) })
35.071429
122
0.778004
4ab5643e15211bb1e06e82ea4e5ed155a1caadc1
1,215
js
JavaScript
resources/js/src/Reports/PDF/PSPDFKit.js
rafaellross/smart_api
9f4d7b81ce690591488fe2430b739ac6237b2bc8
[ "MIT" ]
null
null
null
resources/js/src/Reports/PDF/PSPDFKit.js
rafaellross/smart_api
9f4d7b81ce690591488fe2430b739ac6237b2bc8
[ "MIT" ]
1
2021-02-02T18:13:45.000Z
2021-02-02T18:13:45.000Z
resources/js/src/Reports/PDF/PSPDFKit.js
rafaellross/smart_api
9f4d7b81ce690591488fe2430b739ac6237b2bc8
[ "MIT" ]
null
null
null
import React, { Component } from "react"; const LICENSE_KEY = "HvWt82h94RsmeBTTU_4_G0FED3nnsfWwGBVHtty44kDbxr8C806DsVHTCzambnmuWV3y06YrQdkZwuSTpX-MEyiBPD91lCKXD0sNnMhDUVdOZIktooaoHjIdGcsO3LZL-b3rOlJcjjK9ERpZ_n74UG_VRcMF2Uc_YwmOF8q-dUjvwF6bLcK6ooewdgc-KfJYi2p2WqRD_StWjSIDFFPmio7PTFH7Rbx8r7jVh20DiM8iQnCBw5bH737BIuVekjehazdTGWLzJzKrf4GTlhYELDX8TWj_lbNbpe22K0SSV1aCZ-hWDHg0Hkk70YxAAY-k8Tph44oVUcMX7lADdx8W5sMXaFqdLiG5OVkEs1bLY6yFLFuFeXlC3YoYbqAvFSWoCYJr03DxcF0Rk-PUp17guzTHDvnse3TI0pzKWi974fuXEbNlq1Skoq2aMNGlUw_jK_pUIXewakeN4nG3n_T8pRe4H6joQNRXpZfRjE_nOc6lakGR5p2amRHan2tP_Bsby-VHdIekjNwP6BrttRaH4Q77ye9cpVevlG3Sz1L94p2zcnJmWYczcAB-uxOtpxyUZb2PShWmrEulU3tNDpL13A=="; export default class PSPDFKit extends Component { containerRef = React.createRef(); componentDidMount() { const url = URL.createObjectURL(this.props.blob); window.PSPDFKit.load({ pdf: url, container: this.containerRef.current, licenseKey: LICENSE_KEY }); } componentWillUnmount() { window.PSPDFKit.unload(this.containerRef.current); } render() { return ( <div ref={this.containerRef} style={{ width: "100%", height: "100%", position: "absolute" }} /> ); } }
39.193548
605
0.798354
4ab5d4443a46c1f6cce490b1865a2b0623e01875
2,243
js
JavaScript
frontend/src/components/back_up/BoardTitle.js
hoangnguyen94/trollo
a68c3725232e24d8b628238e25c2b6394c82e249
[ "MIT" ]
1
2020-10-19T16:16:36.000Z
2020-10-19T16:16:36.000Z
frontend/src/components/back_up/BoardTitle.js
hoangnguyen94/trollo
a68c3725232e24d8b628238e25c2b6394c82e249
[ "MIT" ]
null
null
null
frontend/src/components/back_up/BoardTitle.js
hoangnguyen94/trollo
a68c3725232e24d8b628238e25c2b6394c82e249
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; import "./BoardTitle.scss"; import { boardConstants } from "../actions/constants"; class BoardTitle extends Component { static propTypes = { boardTitle: PropTypes.string.isRequired, boardId: PropTypes.string.isRequired, dispatch: PropTypes.func.isRequired }; constructor(props) { super(props); this.state = { isOpen: false, newTitle: props.boardTitle }; } handleClick = () => { this.setState({ isOpen: true }); }; handleChange = event => { this.setState({ newTitle: event.target.value }); }; submitTitle = () => { const { dispatch, boardId, boardTitle } = this.props; const { newTitle } = this.state; if (newTitle === "") return; if (boardTitle !== newTitle) { dispatch({ type: boardConstants.CHANGE_BOARD_TITLE, payload: newTitle }); } this.setState({ isOpen: false }); }; revertTitle = () => { const { boardTitle } = this.props; this.setState({ newTitle: boardTitle, isOpen: false }); }; handleKeyDown = event => { if (event.keyCode === 13) { this.submitTitle(); } else if (event.keyCode === 27) { this.revertTitle(); } }; handleFocus = event => { event.target.select(); }; render() { const { isOpen, newTitle } = this.state; const { boardTitle } = this.props; return isOpen ? ( <input autoFocus value={newTitle} type="text" onKeyDown={this.handleKeyDown} onChange={this.handleChange} onBlur={this.revertTitle} onFocus={this.handleFocus} className="board-title-input" spellCheck={false} /> ) : ( <button className="board-title-button" onClick={this.handleClick}> <h1 className="board-title-text">{boardTitle}</h1> </button> ); } } const mapStateToProps = (state, ownProps) => { const { boardId } = ownProps.match.params; return { boardTitle: state.boardReducer.currentBoard.titel, boardId }; }; export default withRouter(connect(mapStateToProps)(BoardTitle));
24.11828
72
0.610343
4ab6ed0d424998536970f6605d597ec0c66c9eee
79
js
JavaScript
src/MaterialUI/SVGIcon/Icon/Filter4Sharp.js
matoruru/purescript-react-material-ui-svgicon
e5ea02a5ef5165f5756bea9d21cf056c5f16e635
[ "MIT" ]
null
null
null
src/MaterialUI/SVGIcon/Icon/Filter4Sharp.js
matoruru/purescript-react-material-ui-svgicon
e5ea02a5ef5165f5756bea9d21cf056c5f16e635
[ "MIT" ]
2
2019-07-15T09:55:03.000Z
2019-07-15T10:56:16.000Z
src/MaterialUI/SVGIcon/Icon/Filter4Sharp.js
matoruru/purescript-react-material-ui-svgicon
e5ea02a5ef5165f5756bea9d21cf056c5f16e635
[ "MIT" ]
null
null
null
exports.filter4SharpImpl = require('@material-ui/icons/Filter4Sharp').default;
39.5
78
0.810127
4ab86452fe20af05a4ad1516acfa0285181c97b5
749
js
JavaScript
src/store/types.js
mengqingone/music
94eb11123ce561398eca77f4a1c6e1e1eab638fb
[ "MIT" ]
null
null
null
src/store/types.js
mengqingone/music
94eb11123ce561398eca77f4a1c6e1e1eab638fb
[ "MIT" ]
null
null
null
src/store/types.js
mengqingone/music
94eb11123ce561398eca77f4a1c6e1e1eab638fb
[ "MIT" ]
null
null
null
const SET_SINGER = 'SET_SINGER' const SET_PLAYINGSTATE = 'SET_PLAYINGSTATE' const SET_FULLSCREEN = 'SET_FULLSCREEN' const SET_PLAYLIST = 'SET_PLAYLIST' const SET_SEQUENCELIST = 'SET_SEQUENCELIST' const SET_MODE = 'SET_MODE' const SET_CURRENTINDEX = 'SET_CURRENTINDEX' const SET_CURRENTSONG = 'SET_CURRENTSONG' const SET_CURRENTLYRIC = 'SET_CURRENTLYRIC' const SET_CURRENTDISC = 'SET_CURRENTDISC' const SET_RANK = 'SET_RANK' const SET_SEARCHHISTORY = 'SET_SEARCHHISTORY' const SET_PLAYHISTORY = 'SET_PLAYHISTORY' export { SET_SINGER, SET_PLAYINGSTATE, SET_FULLSCREEN, SET_PLAYLIST, SET_SEQUENCELIST, SET_MODE, SET_CURRENTINDEX, SET_CURRENTSONG, SET_CURRENTLYRIC, SET_CURRENTDISC, SET_RANK, SET_SEARCHHISTORY, SET_PLAYHISTORY }
27.740741
45
0.807744
4ab8f8603086b15bf33fe74ddb853dbeee8551e6
1,304
js
JavaScript
auth/db.js
vijaykrishnavanshi/micro-auth
2c985f739932e61de296867d0197ea8ea27d4d82
[ "Apache-2.0" ]
null
null
null
auth/db.js
vijaykrishnavanshi/micro-auth
2c985f739932e61de296867d0197ea8ea27d4d82
[ "Apache-2.0" ]
null
null
null
auth/db.js
vijaykrishnavanshi/micro-auth
2c985f739932e61de296867d0197ea8ea27d4d82
[ "Apache-2.0" ]
null
null
null
// Bring Mongoose into the app const mongoose = require("mongoose"); const dotenv = require("dotenv"); dotenv.config(); // Build the connection string const dbURI = process.env.MONGOURI || "mongodb://localhost/micro-auth"; // Create the database connection mongoose.connect( dbURI, { useNewUrlParser: true }, err => { if (err) { console.log("DB Error: ", err); throw err; } else { console.log(dbURI); console.log("MongoDB Connected"); } } ); // CONNECTION EVENTS // When successfully connected mongoose.connection.on("connected", function() { console.log("Mongoose default connection open to " + dbURI); }); // If the connection throws an error mongoose.connection.on("error", function(err) { console.log("Mongoose default connection error: " + err); }); // When the connection is disconnected mongoose.connection.on("disconnected", function() { console.log("Mongoose default connection disconnected"); }); // If the Node process ends, close the Mongoose connection process.on("SIGINT", function() { mongoose.connection.close(function() { console.log( "Mongoose default connection disconnected through app termination" ); throw new Error( "Mongoose default connection disconnected through app termination" ); }); });
26.08
72
0.689417
4abb793c53dc125b0ab9a2c8712c0c76e38564f8
7,268
js
JavaScript
app/js/components/CreateUser.js
prateeksawhney97/Decentralized-Twitter-dApp
ec699f4d6627a3acf6718d92b8df66470b1c33c1
[ "MIT" ]
1
2020-10-08T03:10:53.000Z
2020-10-08T03:10:53.000Z
app/js/components/CreateUser.js
prateeksawhney97/Decentralized-Twitter-dApp
ec699f4d6627a3acf6718d92b8df66470b1c33c1
[ "MIT" ]
null
null
null
app/js/components/CreateUser.js
prateeksawhney97/Decentralized-Twitter-dApp
ec699f4d6627a3acf6718d92b8df66470b1c33c1
[ "MIT" ]
2
2019-08-30T19:02:13.000Z
2020-05-14T01:50:52.000Z
import { Button, FormGroup, ControlLabel, FormControl, HelpBlock, Grid, Row, Col, PageHeader } from 'react-bootstrap'; import { withRouter } from 'react-router-dom' import React, { Component } from 'react'; import FieldGroup from './FieldGroup'; /** * Class that renders a form to facilitate the creation * of a user in the contract. * * @extends React.Component */ class CreateUser extends Component { //#region Constructor constructor(props, context) { super(props, context); // initial state this.state = { isLoading: false, username: '', description: '', usernameHasChanged: false, error: '' }; } //#endregion //#region Component events /** * Handles the 'Create Account' button click event which * sends a transaction to the contract to create a user. * * @returns {null} */ _handleClick = async () => { this.setState({ isLoading: true }); const { username, description } = this.state; try { // set up our contract method with the input values from the form const createAccount = DTwitter.methods.createAccount(username, description); // get a gas estimate before sending the transaction const gasEstimate = await createAccount.estimateGas({ from: web3.eth.defaultAccount }); // send the transaction to create an account with our gas estimate // (plus a little bit more in case the contract state has changed). const result = await createAccount.send({ from: web3.eth.defaultAccount, gas: gasEstimate + 1000 }); // check result status. if status is false or '0x0', show user the tx details to debug error if (result.status && !Boolean(result.status.toString().replace('0x', ''))) { // possible result values: '0x0', '0x1', or false, true return this.setState({ isLoading: false, error: 'Error executing transaction, transaction details: ' + JSON.stringify(result) }); } // Completed of async action, set loading state back this.setState({ isLoading: false }); // tell our parent that we've created a user so it // will re-fetch the current user details from the contract this.props.onAfterUserUpdate(); // redirect user to the profile update page this.props.history.push('/update/@' + username); } catch (err) { // stop loading state and show the error this.setState({ isLoading: false, error: err.message }); }; } /** * When user changes an input value, record that in the state. * Additionally, if the username field was updated, perform a * check to see if the username already exists in the contract * and set the component state accordingly * * @param {SyntheticEvent} cross-browser wrapper around the browser’s native event * * @return {null} */ _handleChange = async(e) => { let state = {}; const input = e.target.name; const value = e.target.value; state[input] = value; if (input === 'username') { state.usernameHasChanged = true; if (value.length >= 5) { // ensure we're not already loading the last lookup if (!this.state.isLoading) { DTwitter.methods.userExists(web3.utils.keccak256(value)).call() // call the userExists method in our contract asynchronously .then((exists) => { // stop loading state state.isLoading = false; // show error to user if user doesn't exist state.error = exists ? 'Username not available' : ''; this.setState(state); }).catch((err) => { // stop loading state state.isLoading = false; // show error message to user state.error = err.message; this.setState(state); }); // set loading state while checking the contract state.isLoading = true; } // we are loading already, do nothing while we wait return true; } } this.setState(state); } //#endregion //#region Helper methods /** * Validates the form. Return null for no state change, * 'success' if valid, and error' if invalid. * * @return {string} null for no state change, 'success' * if valid, and error' if invalid */ _getValidationState() { // considered valid while loading as we don't know yet if (this.state.isLoading) return null; // check that we have at least 5 characters in the username const length = this.state.username.length; if (length === 0){ if(this.state.usernameHasChanged) return 'error'; return null; } if (length <= 5) return 'error'; // don't allow '@' or spaces if(new RegExp(/[@\s]/gi).test(this.state.username)) return 'error'; // if we have an error, returning 'error' shows the user // the form is in error (red). Conversely, returning 'success' // shows the user the form is valid (green). return this.state.error.length > 0 ? 'error' : 'success'; } //#endregion //#region React lifecycle events render() { const { isLoading } = this.state; let validationState = this._getValidationState(); let isValid = validationState === 'success' && !isLoading && !this.state.error; let feedback = isValid ? 'Username is available' : this.state.error || 'Usernames must be 6 or more characters and cannot include @ or spaces.'; if (!this.state.usernameHasChanged) feedback = ''; return ( <Grid> <Row> <Col xs={12}> <PageHeader>Create a user <small>for { this.props.account }</small></PageHeader> </Col> </Row> <Row> <Col xs={12}> <form onSubmit={ !isValid ? null : (e) => this._handleClick(e) }> <FieldGroup type="text" value={ this.state.username } disabled={ isLoading } placeholder="germany2018champs" onKeyPress={ (e) => e.key === '@' || e.key === ' ' ? e.preventDefault() : true } onChange={ (e) => this._handleChange(e) } name="username" autoComplete="off" label="Desired username" validationState={ validationState } hasFeedback={ true } help={ feedback } inputAddOn={ { location: 'before', addOn: '@' } } /> <FieldGroup type="text" value={ this.state.description } placeholder="Germany for the 2018 World Cup winnnnnn!! 😞" onChange={(e) => this._handleChange(e)} name="description" label="Description" /> <Button bsStyle="primary" disabled={ !isValid } onClick={ !isValid ? null : (e) => this._handleClick(e) } > { isLoading ? 'Loading...' : 'Create user' } </Button> </form> </Col> </Row> </Grid> ); } //#endregion } export default withRouter(CreateUser);
32.446429
148
0.578564
4abcd636e627139d2ad048de23dc78b75f74b6e6
80,847
js
JavaScript
modules/closure/core/core.min.js
wonsikin/bower-mdSelect
ccd5e07eede3a92cbd5dc4a78b19dd14b1634794
[ "MIT" ]
null
null
null
modules/closure/core/core.min.js
wonsikin/bower-mdSelect
ccd5e07eede3a92cbd5dc4a78b19dd14b1634794
[ "MIT" ]
null
null
null
modules/closure/core/core.min.js
wonsikin/bower-mdSelect
ccd5e07eede3a92cbd5dc4a78b19dd14b1634794
[ "MIT" ]
null
null
null
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v2.0.0 */ function DetectNgTouch(e,t){if(t.has("$swipe")){var n="You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!";e.warn(n)}}function MdCoreConfigure(e,t){e.decorator("$$rAF",["$delegate",rAFDecorator]),e.decorator("$q",["$delegate",qDecorator]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function rAFDecorator(e){return e.throttle=function(t){var n,r,o,i;return function(){n=arguments,i=this,o=t,r||(r=!0,e(function(){o.apply(i,Array.prototype.slice.call(n)),r=!1}))}},e}function qDecorator(e){return e.resolve||(e.resolve=e.when),e}function MdAutofocusDirective(e){function t(t,n,r){function o(e){angular.isUndefined(e)&&(e=!0),n.toggleClass("md-autofocus",!!e)}var i=r.mdAutoFocus||r.mdAutofocus||r.mdSidenavFocus;o(e(i)(t)),i&&t.$watch(i,o)}return{restrict:"A",link:{pre:t}}}function ColorUtilFactory(){function e(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,r=t.substr(0,n),o=t.substr(n,n),i=t.substr(2*n);return 1===n&&(r+=r,o+=o,i+=i),"rgba("+parseInt(r,16)+","+parseInt(o,16)+","+parseInt(i,16)+",0.1)"}function t(e){e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);var t=e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"";return t.toUpperCase()}function n(e){return e.replace(")",", 0.1)").replace("(","a(")}function r(e){return e?e.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}return{rgbaToHex:t,hexToRgba:e,rgbToRgba:n,rgbaToRgb:r}}function MdConstantFactory(){function e(e){var r=i+"-"+e,a=n(r),c=a.charAt(0).toLowerCase()+a.substring(1);return t(o,e)?e:t(o,a)?a:t(o,c)?c:e}function t(e,t){return angular.isDefined(e.style[t])}function n(e){return e.replace(c,function(e,t,n,r){return r?n.toUpperCase():n})}function r(e){var t,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=r.exec(t))return n[0]}var o=document.createElement("div"),i=r(o),a=/webkit/i.test(i),c=/([:\-_]+(.))/g,l={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=l.KEY_CODE,n=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW];return n.indexOf(e.keyCode)!=-1},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(a?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(a?" webkitAnimationEnd":""),TRANSFORM:e("transform"),TRANSFORM_ORIGIN:e("transformOrigin"),TRANSITION:e("transition"),TRANSITION_DURATION:e("transitionDuration"),ANIMATION_PLAY_STATE:e("animationPlayState"),ANIMATION_DURATION:e("animationDuration"),ANIMATION_NAME:e("animationName"),ANIMATION_TIMING:e("animationTimingFunction"),ANIMATION_DIRECTION:e("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return l}function MdIterator(e,t){function n(){return[].concat(v)}function r(){return v.length}function o(e){return v.length&&e>-1&&e<v.length}function i(e){return!!e&&o(d(e)+1)}function a(e){return!!e&&o(d(e)-1)}function c(e){return o(e)?v[e]:null}function l(e,t){return v.filter(function(n){return n[e]===t})}function s(e,t){return e?(angular.isNumber(t)||(t=v.length),v.splice(t,0,e),d(e)):-1}function u(e){f(e)&&v.splice(d(e),1)}function d(e){return v.indexOf(e)}function f(e){return e&&d(e)>-1}function m(){return v.length?v[0]:null}function p(){return v.length?v[v.length-1]:null}function h(e,n,r,i){r=r||g;for(var a=d(n);;){if(!o(a))return null;var c=a+(e?-1:1),l=null;if(o(c)?l=v[c]:t&&(l=e?p():m(),c=d(l)),null===l||c===i)return null;if(r(l))return l;angular.isUndefined(i)&&(i=c),a=c}}var g=function(){return!0};e&&!angular.isArray(e)&&(e=Array.prototype.slice.call(e)),t=!!t;var v=e||[];return{items:n,count:r,inRange:o,contains:f,indexOf:d,itemAt:c,findBy:l,add:s,remove:u,first:m,last:p,next:angular.bind(null,h,!1),previous:angular.bind(null,h,!0),hasPrevious:a,hasNext:i}}function mdMediaFactory(e,t,n){function r(e){var t=d[e];angular.isUndefined(t)&&(t=d[e]=o(e));var n=m[t];return angular.isUndefined(n)&&(n=i(t)),n}function o(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function i(e){var t=f[e];return t||(t=f[e]=n.matchMedia(e)),t.addListener(a),m[t.media]=!!t.matches}function a(e){t.$evalAsync(function(){m[e.media]=!!e.matches})}function c(e){return f[e]}function l(t,n){for(var r=0;r<e.MEDIA_PRIORITY.length;r++){var o=e.MEDIA_PRIORITY[r];if(f[d[o]].matches){var i=u(t,n+"-"+o);if(t[i])return t[i]}}return t[u(t,n)]}function s(t,n,r){var o=[];return t.forEach(function(t){var i=u(n,t);angular.isDefined(n[i])&&o.push(n.$observe(i,angular.bind(void 0,r,null)));for(var a in e.MEDIA)i=u(n,t+"-"+a),angular.isDefined(n[i])&&o.push(n.$observe(i,angular.bind(void 0,r,a)))}),function(){o.forEach(function(e){e()})}}function u(e,t){return p[t]||(p[t]=e.$normalize(t))}var d={},f={},m={},p={};return r.getResponsiveAttribute=l,r.getQuery=c,r.watchResponsiveAttributes=s,r}function MdPrefixer(e,t){function n(e){return e=angular.isArray(e)?e:[e],e.forEach(function(t){c.forEach(function(n){e.push(n+"-"+t)})}),e}function r(e){return e=angular.isArray(e)?e:[e],n(e).map(function(e){return"["+e+"]"}).join(",")}function o(e,t){if(e=a(e),!e)return!1;for(var r=n(t),o=0;o<r.length;o++)if(e.hasAttribute(r[o]))return!0;return!1}function i(e,t){e=a(e),e&&n(t).forEach(function(t){e.removeAttribute(t)})}function a(e){if(e=e[0]||e,e.nodeType)return e}var c=["data","x"];return e?t?r(e):n(e):{buildList:n,buildSelector:r,hasAttribute:o,removeAttribute:i}}function UtilFactory(e,t,n,r,o,i,a,c,l,s){function u(e){return e?d(e)||f(e)?e:e+"px":"0"}function d(e){return String(e).indexOf("px")>-1}function f(e){return String(e).indexOf("%")>-1}function m(e){return e[0]||e}var p=i.startSymbol(),h=i.endSymbol(),g="{{"===p&&"}}"===h,v=function(e,t,n){var r=!1;if(e&&e.length){var o=l.getComputedStyle(e[0]);r=angular.isDefined(o[t])&&(!n||o[t]==n)}return r},b={dom:{},now:window.performance&&window.performance.now?angular.bind(window.performance,window.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(t,n,r,o){var i=!("rtl"==e[0].dir||"rtl"==e[0].body.dir);if(0==arguments.length)return i?"ltr":"rtl";var a=angular.element(t);i&&angular.isDefined(r)?a.css(n,u(r)):!i&&angular.isDefined(o)&&a.css(n,u(o))},bidiProperty:function(t,n,r,o){var i=!("rtl"==e[0].dir||"rtl"==e[0].body.dir),a=angular.element(t);i&&angular.isDefined(n)?(a.css(n,u(o)),a.css(r,"")):!i&&angular.isDefined(r)&&(a.css(r,u(o)),a.css(n,""))},clientRect:function(e,t,n){var r=m(e);t=m(t||r.offsetParent||document.body);var o=r.getBoundingClientRect(),i=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:o.left-i.left,top:o.top-i.top,width:o.width,height:o.height}},offsetRect:function(e,t){return b.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return window.scrollY||window.pageYOffset||0},findFocusTarget:function(e,t){function n(e,t){var n,r=e[0].querySelectorAll(t);return r&&r.length&&r.length&&angular.forEach(r,function(e){e=angular.element(e);var t=e.hasClass("md-autofocus");t&&(n=e)}),n}var r,o=this.prefixer("md-autofocus",!0);return r=n(e,t||o),r||t==o||(r=n(e,this.prefixer("md-auto-focus",!0)),r||(r=n(e,o))),r},disableScrollAround:function(t,n,r){function o(e){function t(e){e.preventDefault()}e=angular.element(e||a);var n;return r.disableScrollMask?n=e:(n=angular.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),e.append(n)),n.on("wheel",t),n.on("touchmove",t),function(){n.off("wheel"),n.off("touchmove"),!r.disableScrollMask&&n[0].parentNode&&n[0].parentNode.removeChild(n[0])}}function i(){var t=e[0].documentElement,n=t.style.cssText||"",r=a.style.cssText||"",o=b.getViewportTop(),i=a.clientWidth,c=a.scrollHeight>a.clientHeight+1,l=t.scrollTop>0?t:a;return c&&angular.element(a).css({position:"fixed",width:"100%",top:-o+"px"}),a.clientWidth<i&&(a.style.overflow="hidden"),c&&(t.style.overflowY="scroll"),function(){a.style.cssText=r,t.style.cssText=n,l.scrollTop=o}}if(r=r||{},b.disableScrollAround._count=Math.max(0,b.disableScrollAround._count||0),b.disableScrollAround._count++,b.disableScrollAround._restoreScroll)return b.disableScrollAround._restoreScroll;var a=e[0].body,c=i(),l=o(n);return b.disableScrollAround._restoreScroll=function(){--b.disableScrollAround._count<=0&&(c(),l(),delete b.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(void 0===this.floatingScrollbars.cached){var t=angular.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});t.children().css("height","60px"),e[0].body.appendChild(t[0]),this.floatingScrollbars.cached=t[0].offsetWidth==t[0].childNodes[0].offsetWidth,t.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var t=e[0]||e;document.addEventListener("click",function r(e){e.target===t&&e.$focus&&(t.focus(),e.stopImmediatePropagation(),e.preventDefault(),t.removeEventListener("click",r))},!0);var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!1,!0,window,{},0,0,0,0,!1,!1,!1,!1,0,null),n.$material=!0,n.$focus=!0,t.dispatchEvent(n)},createBackdrop:function(e,t){return n(b.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^\{\}]*)\}/g,e.replace(n,function(e,n){var r=n.split("."),o=t;try{for(var i in r)r.hasOwnProperty(i)&&(o=o[r[i]])}catch(a){o=e}return"string"==typeof o||"number"==typeof o?o:e})},fakeNgModel:function(){return{$fake:!0,$setTouched:angular.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:angular.noop}},debounce:function(e,n,r,o){var i;return function(){var a=r,c=Array.prototype.slice.call(arguments);t.cancel(i),i=t(function(){i=void 0,e.apply(a,c)},n||10,o)}},throttle:function(e,t){var n;return function(){var r=this,o=arguments,i=b.now();(!n||i-n>t)&&(e.apply(r,o),n=i)}},time:function(e){var t=b.now();return e(),b.now()-t},valueOnUse:function(e,t,n){var r=null,o=Array.prototype.slice.call(arguments),i=o.length>3?o.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===r&&(r=n.apply(e,i)),r}})},nextUid:function(){return""+nextUniqueId++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,t,n){if(angular.isString(t)){var r=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===r}}if(e instanceof angular.element&&(e=e[0]),n&&(e=e.parentNode),!e)return null;do if(t(e))return e;while(e=e.parentNode);return null},elementContains:function(e,t){var n=window.Node&&window.Node.prototype&&Node.prototype.contains,r=n?angular.bind(e,e.contains):angular.bind(e,function(n){return e===t||!!(16&this.compareDocumentPosition(n))});return r(t)},extractElementByName:function(e,t,n,r){function o(e){return i(e)||(n?c(e):null)}function i(e){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n].nodeName.toLowerCase()===t)return e[n];return null}function c(e){var t;if(e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!t)for(var a=0,c=i.childNodes.length;a<c;a++)t=t||o([i.childNodes[a]])}return t}var l=o(e);return!l&&r&&a.warn(b.supplant("Unable to find node '{0}' in element '{1}'.",[t,e[0].outerHTML])),angular.element(l||e)},initOptionalProperties:function(e,t,n){n=n||{},angular.forEach(e.$$isolateBindings,function(r,o){if(r.optional&&angular.isUndefined(e[o])){var i=angular.isDefined(t[r.attrName]);e[o]=angular.isDefined(n[o])?n[o]:i}})},nextTick:function(e,n,o){function i(){var e=a.queue,t=a.digest;a.queue=[],a.timeout=null,a.digest=!1,e.forEach(function(e){var t=e.scope&&e.scope.$$destroyed;t||e.callback()}),t&&r.$digest()}var a=b.nextTick,c=a.timeout,l=a.queue||[];return l.push({scope:o,callback:e}),null==n&&(n=!0),a.digest=a.digest||n,a.queue=l,c||(a.timeout=t(i,0,!1))},processTemplate:function(e){return g?e:e&&angular.isString(e)?e.replace(/\{\{/g,p).replace(/}}/g,h):e},getParentWithPointerEvents:function(e){for(var t=e.parent();v(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==c[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var t,n=angular.element("<div>");e[0].body.appendChild(n[0]);for(var r=["sticky","-webkit-sticky"],o=0;o<r.length;++o)if(n.css({position:r[o],top:0,"z-index":2}),n.css("position")==r[o]){t=r[o];break}return n.remove(),t},parseAttributeBoolean:function(e,t){return""===e||!!e&&(t===!1||"false"!==e&&"0"!==e)},hasComputedStyle:v,isParentFormSubmitted:function(e){var t=b.getClosest(e,"form"),n=t?angular.element(t).controller("form"):null;return!!n&&n.$submitted},animateScrollTo:function(e,t,n){function r(){var n=o();e.scrollTop=n,(l?n<t:n>t)&&s(r)}function o(){var e=n||1e3,t=b.now()-u;return i(t,a,c,e)}function i(e,t,n,r){if(e>r)return t+n;var o=(e/=r)*e,i=o*e;return t+n*(-2*i+3*o)}var a=e.scrollTop,c=t-a,l=a<t,u=b.now();s(r)},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})}};return b.dom.animator=o(b),b}function MdAriaProvider(){function e(){t.showWarnings=!1}var t={showWarnings:!0};return{disableWarnings:e,$get:["$$rAF","$log","$window","$interpolate",function(e,n,r,o){return MdAriaService.apply(t,arguments)}]}}function MdAriaService(e,t,n,r){function o(e,n,r){var o=angular.element(e)[0]||e;!o||o.hasAttribute(n)&&0!==o.getAttribute(n).length||s(o,n)||(r=angular.isString(r)?r.trim():"",r.length?e.attr(n,r):f&&t.warn('ARIA: Attribute "',n,'", required for accessibility, is missing on node:',o))}function i(t,n,r){e(function(){o(t,n,r())})}function a(e,t){var n=l(e)||"",a=n.indexOf(r.startSymbol())>-1;a?i(e,t,function(){return l(e)}):o(e,t,n)}function c(e,t){var n=l(e),i=n.indexOf(r.startSymbol())>-1;i||n||o(e,t,n)}function l(e){function t(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0}e=e[0]||e;for(var n,r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),o="";n=r.nextNode();)t(n)||(o+=n.textContent);return o.trim()||""}function s(e,t){function r(e){var t=e.currentStyle?e.currentStyle:n.getComputedStyle(e);return"none"===t.display}var o=e.hasChildNodes(),i=!1;if(o)for(var a=e.childNodes,c=0;c<a.length;c++){var l=a[c];1===l.nodeType&&l.hasAttribute(t)&&(r(l)||(i=!0))}return i}function u(e){var t=angular.element(e)[0]||e;return!!t.hasAttribute&&(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-describedby"))}function d(e,t){function n(e){if(!u(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}t=t||1;var r=angular.element(e)[0]||e;return!!r.parentNode&&(!!n(r.parentNode)||(t--,!!t&&d(r.parentNode,t)))}var f=this.showWarnings;return{expect:o,expectAsync:i,expectWithText:a,expectWithoutText:c,getText:l,hasAriaLabel:u,parentHasAriaLabel:d}}function MdCompilerProvider(e){function t(){return!r||("function"==typeof e.preAssignBindingsEnabled?e.preAssignBindingsEnabled():1===angular.version.major&&angular.version.minor<6)}function n(e,t,n,r,o){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=r,this.$controller=o}var r=!1;this.respectPreAssignBindingsEnabled=function(e){return angular.isDefined(e)?(r=e,this):r},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,r,o,i){return new n(e,t,r,o,i)}],n.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},n.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},n.prototype._compileTemplate=function(e){var t=this,n=e.templateUrl,r=e.template||"",o=angular.extend({},e.resolve),i=angular.extend({},e.locals),a=e.transformTemplate||angular.identity;return angular.forEach(o,function(e,n){angular.isString(e)?o[n]=t.$injector.get(e):o[n]=t.$injector.invoke(e)}),angular.extend(o,i),n?o.$$ngTemplate=this.$templateRequest(n):o.$$ngTemplate=this.$q.when(r),this.$q.all(o).then(function(n){var r=a(n.$$ngTemplate,e),o=e.element||angular.element("<div>").html(r.trim()).contents();return t._compileElement(n,o,e)})},n.prototype._compileElement=function(e,t,n){function r(r){if(e.$scope=r,n.controller){var c=angular.extend({},e,{$element:t}),l=o._createController(n,c,e);t.data("$ngControllerController",l),t.children().data("$ngControllerController",l),a.controller=l}return i(r)}var o=this,i=this.$compile(t),a={element:t,cleanup:t.remove.bind(t),locals:e,link:r};return a},n.prototype._createController=function(e,n,r){var o=this.$controller(e.controller,n,!0,e.controllerAs);t()&&e.bindToController&&angular.extend(o.instance,r);var i=o();return!t()&&e.bindToController&&angular.extend(i,r),angular.isFunction(i.$onInit)&&i.$onInit(),i},n.prototype._fetchContentElement=function(e){function t(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}var n=e.contentElement,r=null;return angular.isString(n)?(n=document.querySelector(n),r=t(n)):(n=n[0]||n,r=document.contains(n)?t(n):function(){n.parentNode&&n.parentNode.removeChild(n)}),{element:angular.element(n),restore:r}}}function MdGestureProvider(){}function MdGesture(e,t,n){function r(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}function o(e,t,n){var r=HANDLERS[t.replace(/^\$md./,"")];if(!r)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(HANDLERS).join(", "));return r.registerElement(e,n)}function i(t,n){var r=new e(t);return angular.extend(r,n),HANDLERS[t]=r,f}function a(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;n<t.length;n++){var r=t[n],o=r?r+"TouchAction":"touchAction";if(angular.isDefined(e.style[o]))return o}}var c=navigator.userAgent||navigator.vendor||window.opera,l=c.match(/ipad|iphone|ipod/i),s=c.match(/android/i),u=a(),d="undefined"!=typeof window.jQuery&&angular.element===window.jQuery,f={handler:i,register:o,isHijackingClicks:(l||s)&&!d&&!forceSkipClickHijack};return f.isHijackingClicks&&(f.handler("click",{options:{maxDistance:maxClickDistance},onEnd:r("click")}),f.handler("focus",{options:{maxDistance:maxClickDistance},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&canFocus(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),f.handler("mouseup",{options:{maxDistance:maxClickDistance},onEnd:r("mouseup")}),f.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),f.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){n.cancel(this.state.timeout)},onStart:function(e,t){return this.state.registeredParent?(this.state.pos={x:t.x,y:t.y},void(this.state.timeout=n(angular.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1))):this.cancel()},onMove:function(e,t){u||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,r=this.state.pos.y-t.y;Math.sqrt(n*n+r*r)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){u&&(this.oldTouchAction=e[0].style[u],e[0].style[u]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[u]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,r;u||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,r=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,r=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=makeStartPointer(e),updatePointerState(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:t.throttle(function(e){this.state.isRunning&&(updatePointerState(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(updatePointerState(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function GestureHandler(e){this.name=e,this.state={}}function MdGestureHandler(){function e(e,t,n){n=n||pointer;var r=new angular.element.Event(t);r.$material=!0,r.pointer=n,r.srcEvent=e,angular.extend(r,{clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,pageX:n.x,pageY:n.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),angular.element(n.target).trigger(r)}function t(e,t,n){n=n||pointer;var r;"click"===t||"mouseup"==t||"mousedown"==t?(r=document.createEvent("MouseEvents"),r.initMouseEvent(t,!0,!0,window,e.detail,n.x,n.y,n.x,n.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,{})),r.$material=!0,r.pointer=n,r.srcEvent=e,n.target.dispatchEvent(r)}var n="undefined"!=typeof window.jQuery&&angular.element===window.jQuery;return GestureHandler.prototype={options:{},dispatchEvent:n?e:t,onSetup:angular.noop,onCleanup:angular.noop,onStart:angular.noop,onMove:angular.noop,onEnd:angular.noop,onCancel:angular.noop,start:function(e,t){if(!this.state.isRunning){var n=this.getNearestParent(e.target),r=n&&n.$mdGesture[this.name]||{};this.state={isRunning:!0,options:angular.extend({},this.options,r),registeredParent:n},this.onStart(e,t)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function n(){delete e[0].$mdGesture[r.name],e.off("$destroy",n),r.onCleanup(e,t||{})}var r=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),r.onSetup(e,t||{}),n}},GestureHandler}function attachToDocument(e,t){function n(e){var t=!e.clientX&&!e.clientY;t||e.$material||e.isIonicTap||isInputEventFromLabelClick(e)||"mousedown"===e.type&&(canFocus(e.target)||canFocus(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function r(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||isInputEventFromLabelClick(e)||n?(lastLabelClickPos=null,"label"==e.target.tagName.toLowerCase()&&(lastLabelClickPos={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),lastLabelClickPos=null)}function o(e,n){var r;for(var o in HANDLERS)r=HANDLERS[o],r instanceof t&&("start"===e&&r.cancel(),r[e](n,pointer))}function i(e){if(!pointer){var t=+Date.now();lastPointer&&!typesMatch(e,lastPointer)&&t-lastPointer.endTime<1500||(pointer=makeStartPointer(e),o("start",e))}}function a(e){pointer&&typesMatch(e,pointer)&&(updatePointerState(e,pointer),o("move",e))}function c(e){pointer&&typesMatch(e,pointer)&&(updatePointerState(e,pointer),pointer.endTime=+Date.now(),"pointercancel"!==e.type&&o("end",e),lastPointer=pointer,pointer=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!isInitialized&&e.isHijackingClicks&&(document.addEventListener("click",r,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("focus",n,!0),isInitialized=!0);var l="mousedown touchstart pointerdown",s="mousemove touchmove pointermove",u="mouseup mouseleave touchend touchcancel pointerup pointercancel";angular.element(document).on(l,i).on(s,a).on(u,c).on("$$mdGestureReset",function(){lastPointer=pointer=null})}function makeStartPointer(e){var t=getEventPoint(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function typesMatch(e,t){return e&&t&&e.type.charAt(0)===t.type}function isInputEventFromLabelClick(e){return lastLabelClickPos&&lastLabelClickPos.x==e.x&&lastLabelClickPos.y==e.y}function updatePointerState(e,t){var n=getEventPoint(e),r=t.x=n.pageX,o=t.y=n.pageY;t.distanceX=r-t.startX,t.distanceY=o-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function getEventPoint(e){return e=e.originalEvent||e,e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function canFocus(e){return!!e&&"-1"!=e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName)!=-1)}function InterimElementProvider(){function e(e){function t(e){return c.optionsFactory=e.options,c.methods=(e.methods||[]).concat(i),l}function n(e,t){return a[e]=t,l}function r(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return c.presets[t]={methods:n.methods.concat(i),optionsFactory:n.options,argOption:n.argOption},l}function o(t,n){function r(e){return e=e||{},e._options&&(e=e._options),u.show(angular.extend({},s,e))}function o(e){return u.destroy(e)}function i(t,r){var o={};return o[e]=d,n.invoke(t||function(){return r},{},o)}var l,s,u=t(),d={hide:u.hide,cancel:u.cancel,show:r,destroy:o};return l=c.methods||[],s=i(c.optionsFactory,{}),angular.forEach(a,function(e,t){d[t]=e}),angular.forEach(c.presets,function(e,t){function n(e){this._options=angular.extend({},r,e)}var r=i(e.optionsFactory,{}),o=(e.methods||[]).concat(l);if(angular.extend(r,{$type:t}),angular.forEach(o,function(e){n.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var a="show"+t.charAt(0).toUpperCase()+t.slice(1);d[a]=function(e){var n=d[t](e);return d.show(n)}}d[t]=function(t){return arguments.length&&e.argOption&&!angular.isObject(t)&&!angular.isArray(t)?(new n)[e.argOption](t):new n(t)}}),d}o.$inject=["$$interimElement","$injector"];var i=["onHide","onShow","onRemove"],a={},c={presets:{}},l={setDefaults:t,addPreset:r,addMethod:n,$get:o};return l.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),l}function t(e,t,n,r,o,i,a,c,l,s,u){return function(){function d(e){e=e||{};var n=new g(e||{}),r=e.multiple?t.resolve():t.all($);e.multiple||(r=r.then(function(){var e=y.concat(A.map(v.cancel));return t.all(e)}));var o=r.then(function(){return n.show()["catch"](function(e){return e})["finally"](function(){$.splice($.indexOf(o),1),A.push(n)})});return $.push(o),n.deferred.promise["catch"](function(e){return e instanceof Error&&u(e),e}),n.deferred.promise}function f(e,n){function r(t){var r=t.remove(e,!1,n||{})["catch"](function(e){return e})["finally"](function(){y.splice(y.indexOf(r),1)});return A.splice(A.indexOf(t),1),y.push(r),t.deferred.promise}return n=n||{},n.closeAll?t.all(A.slice().reverse().map(r)):void 0!==n.closeTo?t.all(A.slice(n.closeTo).map(r)):r(A[A.length-1])}function m(e,n){var r=A.pop();if(!r)return t.when(e);var o=r.remove(e,!0,n||{})["catch"](function(e){return e})["finally"](function(){y.splice(y.indexOf(o),1)});return y.push(o),r.deferred.promise["catch"](angular.noop)}function p(e){return function(){var n=arguments;return A.length?e.apply(v,n):$.length?$[0]["finally"](function(){return e.apply(v,n)}):t.when("No interim elements currently showing up.")}}function h(e){var n=e?null:A.shift(),r=angular.element(e).length&&angular.element(e)[0].parentNode;if(r){var o=A.filter(function(e){return e.options.element[0]===r});o.length&&(n=o[0],A.splice(A.indexOf(n),1))}return n?n.remove(b,!1,{$destroy:!0}):t.when(b)}function g(s){function u(){return t(function(e,t){function n(e){y.deferred.reject(e),t(e)}s.onCompiling&&s.onCompiling(s),m(s).then(function(t){A=p(t,s),s.cleanupElement=t.cleanup,E=b(A,s,t.controller).then(e,n); })["catch"](n)})}function d(e,n,r){function o(e){y.deferred.resolve(e)}function i(e){y.deferred.reject(e)}return A?(s=angular.extend(s||{},r||{}),s.cancelAutoHide&&s.cancelAutoHide(),s.element.triggerHandler("$mdInterimElementRemove"),s.$destroy===!0?$(s.element,s).then(function(){n&&i(e)||o(e)}):(t.when(E)["finally"](function(){$(s.element,s).then(function(){n?i(e):o(e)},i)}),y.deferred.promise)):t.when(!1)}function f(e){return e=e||{},e.template&&(e.template=a.processTemplate(e.template)),angular.extend({preserveScope:!1,cancelAutoHide:angular.noop,scope:e.scope||n.$new(e.isolateScope),onShow:function(e,t,n){return i.enter(t,n.parent)},onRemove:function(e,n){return n&&i.leave(n)||t.when()}},e)}function m(e){var n=e.skipCompile?null:c.compile(e);return n||t(function(t){t({locals:{},link:function(){return e.element}})})}function p(e,t){angular.extend(e.locals,t);var n=e.link(t.scope);return t.element=n,t.parent=h(n,t),t.themable&&l(n),n}function h(t,n){var r=n.parent;if(r=angular.isFunction(r)?r(n.scope,t,n):angular.isString(r)?angular.element(e[0].querySelector(r)):angular.element(r),!(r||{}).length){var i;return o[0]&&o[0].querySelector&&(i=o[0].querySelector(":not(svg) > body")),i||(i=o[0]),"#comment"==i.nodeName&&(i=e[0].body),angular.element(i)}return r}function g(){var e,t=angular.noop;s.hideDelay&&(e=r(v.hide,s.hideDelay),t=function(){r.cancel(e)}),s.cancelAutoHide=function(){t(),s.cancelAutoHide=void 0}}function b(e,n,r){var o=n.onShowing||angular.noop,i=n.onComplete||angular.noop;try{o(n.scope,e,n,r)}catch(a){return t.reject(a)}return t(function(o,a){try{t.when(n.onShow(n.scope,e,n,r)).then(function(){i(n.scope,e,n),g(),o(e)},a)}catch(c){a(c.message)}})}function $(e,n){var r=n.onRemoving||angular.noop;return t(function(o,i){try{var a=t.when(n.onRemove(n.scope,e,n)||!0);r(e,a),n.$destroy?(o(e),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),o(e)},i)}catch(c){i(c.message)}})}var y,A,E=t.when(!0);return s=f(s),y={options:s,deferred:t.defer(),show:u,remove:d}}var v,b=!1,$=[],y=[],A=[];return v={show:d,hide:p(f),cancel:p(m),destroy:h,$injector_:s}}}return t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=t,e}function MdLiveAnnouncer(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}function MdInteractionService(e,t){this.$timeout=e,this.$mdUtil=t,this.bodyElement=angular.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents()}function ComponentRegistry(e,t){function n(e){return e&&""!==e}var r,o=[],i={};return r={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return o},get:function(e){if(!n(e))return null;var t,r,i;for(t=0,r=o.length;t<r;t++)if(i=o[t],i.$$mdHandle===e)return i;return null},register:function(e,t){function n(){var t=o.indexOf(e);t!==-1&&o.splice(t,1)}function r(){var n=i[t];n&&(n.forEach(function(t){t.resolve(e)}),delete i[t])}return t?(e.$$mdHandle=t,o.push(e),r(),n):angular.noop},when:function(e){if(n(e)){var o=t.defer(),a=r.get(e);return a?o.resolve(a):(void 0===i[e]&&(i[e]=[]),i[e].push(o)),o.promise}return t.reject("Invalid `md-component-id` value.")}}}function InkRippleDirective(e,t){return{controller:angular.noop,link:function(n,r,o){o.hasOwnProperty("mdInkRippleCheckbox")?t.attach(n,r):e.attach(n,r)}}}function InkRippleProvider(){function e(){t=!0}var t=!1;return{disableInkRipple:e,$get:["$injector",function(e){function n(n,r,o){return t||r.controller("mdNoInk")?angular.noop:e.instantiate(InkRippleCtrl,{$scope:n,$element:r,rippleOptions:o})}return{attach:n}}]}}function InkRippleCtrl(e,t,n,r,o,i,a){this.$window=r,this.$timeout=o,this.$mdUtil=i,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,i.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=angular.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=angular.bind(this,this.color),this.bindEvents()}function autoCleanup(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(angular.bind(e,t),!1))}function attrNoDirective(){return{controller:angular.noop}}function AnimateDomUtils(e,t,n,r,o){var i;return i={translate3d:function(e,t,n,r){function i(n){return o(e,{to:n||t,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return o(e,{from:t,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(e,o){var i=3e3;return t(function(t,a){function c(o){o&&o.target!==e[0]||(o&&n.cancel(s),e.off(r.CSS.TRANSITIONEND,c),t())}function l(t){return t=t||window.getComputedStyle(e[0]),"0s"==t.transitionDuration||!t.transition&&!t.transitionProperty}o=o||{},l(o.cachedTransitionStyles)&&(i=0);var s=n(c,o.timeout||i);e.on(r.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(e,t){function n(){var t=e?e.parent():null,n=t?t.parent():null;return n?i.clientRect(n):null}var r=t.element,o=t.bounds;if(r||o){var a=r?i.clientRect(r)||n():i.copyRect(o),c=i.copyRect(e[0].getBoundingClientRect()),l=i.centerPointFor(c),s=i.centerPointFor(a);return{centerX:s.x-l.x,centerY:s.y-l.y,scaleX:Math.round(100*Math.min(.5,a.width/c.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/c.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(t,n){var r="translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )",o=angular.bind(null,e.supplant,r);return o(i.calculateTransformValues(t,n))},calculateSlideToOrigin:function(t,n){var r="translate3d( {centerX}px, {centerY}px, 0 )",o=angular.bind(null,e.supplant,r);return o(i.calculateTransformValues(t,n))},toCss:function(e){function t(e,t,r){angular.forEach(t.split(" "),function(e){n[e]=r})}var n={},o="left top right bottom width height x y min-width min-height max-width max-height";return angular.forEach(e,function(e,i){if(!angular.isUndefined(e))if(o.indexOf(i)>=0)n[i]=e+"px";else switch(i){case"transition":t(i,r.CSS.TRANSITION,e);break;case"transform":t(i,r.CSS.TRANSFORM,e);break;case"transformOrigin":t(i,r.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":n["font-size"]=e}}),n},toTransformCss:function(e,t,n){var o={};return angular.forEach(r.CSS.TRANSFORM.split(" "),function(t){o[t]=e}),t&&(n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",o.transition=n),o},copyRect:function(e,t){return e?(t=t||{},angular.forEach("left top right bottom width height".split(" "),function(n){t[n]=Math.round(e[n])}),t.width=t.width||t.right-t.left,t.height=t.height||t.bottom-t.top,t):null},clientRect:function(e){var t=angular.element(e)[0].getBoundingClientRect(),n=function(e){return e&&e.width>0&&e.height>0};return n(t)?i.copyRect(t):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}goog.provide("ngmaterial.core"),DetectNgTouch.$inject=["$log","$injector"],MdCoreConfigure.$inject=["$provide","$mdThemingProvider"],rAFDecorator.$inject=["$delegate"],qDecorator.$inject=["$delegate"],angular.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(MdCoreConfigure).run(DetectNgTouch),MdAutofocusDirective.$inject=["$parse"],angular.module("material.core").directive("mdAutofocus",MdAutofocusDirective).directive("mdAutoFocus",MdAutofocusDirective).directive("mdSidenavFocus",MdAutofocusDirective),angular.module("material.core").factory("$mdColorUtil",ColorUtilFactory),angular.module("material.core").factory("$mdConstant",MdConstantFactory),angular.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=MdIterator,e}])}]),mdMediaFactory.$inject=["$mdConstant","$rootScope","$window"],angular.module("material.core").factory("$mdMedia",mdMediaFactory),angular.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=MdPrefixer,e}])}]),UtilFactory.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var nextUniqueId=0;angular.module("material.core").factory("$mdUtil",UtilFactory),angular.element.prototype.focus=angular.element.prototype.focus||function(){return this.length&&this[0].focus(),this},angular.element.prototype.blur=angular.element.prototype.blur||function(){return this.length&&this[0].blur(),this},MdAriaService.$inject=["$$rAF","$log","$window","$interpolate"],angular.module("material.core").provider("$mdAria",MdAriaProvider),angular.module("material.core").provider("$mdCompiler",MdCompilerProvider),MdCompilerProvider.$inject=["$compileProvider"],MdGesture.$inject=["$$MdGestureHandler","$$rAF","$timeout"],attachToDocument.$inject=["$mdGesture","$$MdGestureHandler"];var HANDLERS={},pointer,lastPointer,forceSkipClickHijack=!1,maxClickDistance=6,lastLabelClickPos=null,isInitialized=!1;angular.module("material.core.gestures",[]).provider("$mdGesture",MdGestureProvider).factory("$$MdGestureHandler",MdGestureHandler).run(attachToDocument),MdGestureProvider.prototype={skipClickHijack:function(){return forceSkipClickHijack=!0},setMaxClickDistance:function(e){maxClickDistance=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new MdGesture(e,t,n)}]},angular.module("material.core").provider("$$interimElement",InterimElementProvider),function(){"use strict";function e(e){function a(e){return e.replace(u,"").replace(d,function(e,t,n,r){return r?n.toUpperCase():n})}var u=/^((?:x|data)[\:\-_])/i,d=/([\:\-\_]+(.))/g,f=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],m=["layout","flex","flex-order","flex-offset","layout-align"],p=["show","hide","layout-padding","layout-margin"];angular.forEach(f,function(t){angular.forEach(m,function(n){var r=t?n+"-"+t:n;e.directive(a(r),o(r))}),angular.forEach(p,function(n){var r=t?n+"-"+t:n;e.directive(a(r),i(r))})}),e.provider("$$mdLayout",function(){return{$get:angular.noop,validateAttributeValue:s,validateAttributeUsage:l,disableLayouts:function(e){w.enabled=e!==!0}}}).directive("mdLayoutCss",n).directive("ngCloak",r("ng-cloak")).directive("layoutWrap",i("layout-wrap")).directive("layoutNowrap",i("layout-nowrap")).directive("layoutNoWrap",i("layout-no-wrap")).directive("layoutFill",i("layout-fill")).directive("layoutLtMd",c("layout-lt-md",!0)).directive("layoutLtLg",c("layout-lt-lg",!0)).directive("flexLtMd",c("flex-lt-md",!0)).directive("flexLtLg",c("flex-lt-lg",!0)).directive("layoutAlignLtMd",c("layout-align-lt-md")).directive("layoutAlignLtLg",c("layout-align-lt-lg")).directive("flexOrderLtMd",c("flex-order-lt-md")).directive("flexOrderLtLg",c("flex-order-lt-lg")).directive("offsetLtMd",c("flex-offset-lt-md")).directive("offsetLtLg",c("flex-offset-lt-lg")).directive("hideLtMd",c("hide-lt-md")).directive("hideLtLg",c("hide-lt-lg")).directive("showLtMd",c("show-lt-md")).directive("showLtLg",c("show-lt-lg")).config(t)}function t(){var e=!!document.querySelector("[md-layouts-disabled]");w.enabled=!e}function n(){return w.enabled=!1,{restrict:"A",priority:"900"}}function r(e){return["$timeout",function(t){return{restrict:"A",priority:-10,compile:function(n){return w.enabled?(n.addClass(e),function(n,r){t(function(){r.removeClass(e)},10,!1)}):angular.noop}}}]}function o(e){function t(t,n,r){var o=a(n,e,r),i=r.$observe(r.$normalize(e),o);o(f(e,r,"")),t.$on("$destroy",function(){i()})}return["$mdUtil","$interpolate","$log",function(n,r,o){return h=n,g=r,v=o,{restrict:"A",compile:function(n,r){var o;return w.enabled&&(l(e,r,n,v),s(e,f(e,r,""),u(n,e,r)),o=t),o||angular.noop}}}]}function i(e){function t(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(n,r,o){return h=n,g=r,v=o,{restrict:"A",compile:function(n,r){var o;return w.enabled&&(s(e,f(e,r,""),u(n,e,r)),t(null,n),o=t),o||angular.noop}}}]}function a(e,t){var n;return function(r){var o=s(t,r||"");angular.isDefined(o)&&(n&&e.removeClass(n),n=o?t+"-"+o.trim().replace($,"-"):t,e.addClass(n))}}function c(e){var t=e.split("-");return["$log",function(n){return n.warn(e+"has been deprecated. Please use a `"+t[0]+"-gt-<xxx>` variant."),angular.noop}]}function l(e,t,n,r){var o,i,a,c=n[0].nodeName.toLowerCase();switch(e.replace(b,"")){case"flex":"md-button"!=c&&"fieldset"!=c||(i="<"+c+" "+e+"></"+c+">",a="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",o="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",r.warn(h.supplant(o,[i,a])))}}function s(e,t,n){var r;if(!d(t)){switch(e.replace(b,"")){case"layout":m(t,A)||(t=A[0]);break;case"flex":m(t,y)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var o=p(t);t=h.supplant("{main}-{cross}",o);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":case"layout-nowrap":t=""}t!=r&&(n||angular.noop)(t)}return t?t.trim():""}function u(e,t,n){return function(e){d(e)||(n[n.$normalize(t)]=e)}}function d(e){return(e||"").indexOf(g.startSymbol())>-1}function f(e,t,n){var r=t.$normalize(e);return t[r]?t[r].trim().replace($,"-"):n||null}function m(e,t,n){e=n&&e?e.replace($,n):e;var r=!1;return e&&t.forEach(function(t){t=n?t.replace($,n):t,r=r||t===e}),r}function p(e){var t,n={main:"start",cross:"stretch"};return e=e||"",0!==e.indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),t=e.toLowerCase().trim().replace($,"-").split("-"),t.length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]),t.length>0&&(n.main=t[0]||n.main),t.length>1&&(n.cross=t[1]||n.cross),E.indexOf(n.main)<0&&(n.main="start"),C.indexOf(n.cross)<0&&(n.cross="stretch"),n}var h,g,v,b=/(-gt)?-(sm|md|lg|print)/g,$=/\s+/g,y=["grow","initial","auto","none","noshrink","nogrow"],A=["row","column"],E=["","start","center","end","stretch","space-around","space-between"],C=["","start","center","end","stretch"],w={enabled:!0,breakpoints:[]};e(angular.module("material.core.layout",["ng"]))}(),MdLiveAnnouncer.$inject=["$timeout"],angular.module("material.core").service("$mdLiveAnnouncer",MdLiveAnnouncer),MdLiveAnnouncer.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},MdLiveAnnouncer.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e},MdInteractionService.$inject=["$timeout","$mdUtil"],angular.module("material.core.interaction",[]).service("$mdInteraction",MdInteractionService),MdInteractionService.prototype.initializeEvents=function(){var e="MSPointerEvent"in window?"MSPointerDown":"PointerEvent"in window?"pointerdown":null;this.bodyElement.on("keydown mousedown",this.onInputEvent.bind(this)),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.onBufferInputEvent.bind(this)),e&&this.bodyElement.on(e,this.onInputEvent.bind(this))},MdInteractionService.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},MdInteractionService.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},MdInteractionService.prototype.getLastInteractionType=function(){return this.lastInteractionType},MdInteractionService.prototype.isUserInvoked=function(e){var t=angular.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t},angular.module("material.core.meta",[]).provider("$$mdMeta",function(){function e(e){if(o[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(o[e]=angular.element(t),!0)}function t(t,n){if(e(t),o[t])o[t].attr("content",n);else{var i=angular.element('<meta name="'+t+'" content="'+n+'"/>');r.append(i),o[t]=i}return function(){o[t].attr("content",""),o[t].remove(),delete o[t]}}function n(t){if(!e(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return o[t].attr("content")}var r=angular.element(document.head),o={},i={setMeta:t,getMeta:n};return angular.extend({},i,{$get:function(){return i}})}),ComponentRegistry.$inject=["$log","$q"],angular.module("material.core").factory("$mdComponentRegistry",ComponentRegistry),function(){"use strict";function e(e){function t(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(n,r,o){return o=angular.extend(t(r),o),e.attach(n,r,o)}}}e.$inject=["$mdInkRipple"],angular.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){"use strict";function e(e){function t(t,n,r){return e.attach(t,n,angular.extend({center:!0,dimBackground:!1,fitRipple:!0},r))}return{attach:t}}e.$inject=["$mdInkRipple"],angular.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){"use strict";function e(e){function t(t,n,r){return e.attach(t,n,angular.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:t}}e.$inject=["$mdInkRipple"],angular.module("material.core").factory("$mdListInkRipple",e)}(),InkRippleCtrl.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],InkRippleDirective.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],angular.module("material.core").provider("$mdInkRipple",InkRippleProvider).directive("mdInkRipple",InkRippleDirective).directive("mdNoInk",attrNoDirective).directive("mdNoBar",attrNoDirective).directive("mdNoStretch",attrNoDirective);var DURATION=450;InkRippleCtrl.prototype.color=function(e){function t(){var e=n.options&&n.options.colorElement?n.options.colorElement:[],t=e.length?e[0]:n.$element[0];return t?n.$window.getComputedStyle(t).color:"rgb(0,0,0)"}var n=this;return angular.isDefined(e)&&(n._color=n._parseColor(e)),n._color||n._parseColor(n.inkRipple())||n._parseColor(t())},InkRippleCtrl.prototype.calculateColor=function(){return this.color()},InkRippleCtrl.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},InkRippleCtrl.prototype.bindEvents=function(){this.$element.on("mousedown",angular.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",angular.bind(this,this.handleMouseup)),this.$element.on("mouseleave",angular.bind(this,this.handleMouseup)),this.$element.on("touchmove",angular.bind(this,this.handleTouchmove))},InkRippleCtrl.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;this.createRipple(n,r)}else this.createRipple(e.offsetX,e.offsetY)},InkRippleCtrl.prototype.handleMouseup=function(){autoCleanup(this,this.clearRipples)},InkRippleCtrl.prototype.handleTouchmove=function(){autoCleanup(this,this.deleteRipples)},InkRippleCtrl.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},InkRippleCtrl.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},InkRippleCtrl.prototype.createContainer=function(){var e=angular.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},InkRippleCtrl.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},InkRippleCtrl.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&angular.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},InkRippleCtrl.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},InkRippleCtrl.prototype.createRipple=function(e,t){function n(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}if(this.isRippleAllowed()){var r=this,o=r.$mdColorUtil,i=angular.element('<div class="md-ripple"></div>'),a=this.$element.prop("clientWidth"),c=this.$element.prop("clientHeight"),l=2*Math.max(Math.abs(a-e),e),s=2*Math.max(Math.abs(c-t),t),u=n(this.options.fitRipple,l,s),d=this.calculateColor();i.css({left:e+"px",top:t+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:o.rgbaToRgb(d),borderColor:o.rgbaToRgb(d)}),this.lastRipple=i,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(i)},.35*DURATION,!1),this.options.dimBackground&&this.container.css({backgroundColor:d}),this.container.append(i),this.ripples.push(i),i.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){i.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},DURATION,!1)},!1)}},InkRippleCtrl.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},InkRippleCtrl.prototype.removeRipple=function(e){var t=this,n=this.ripples.indexOf(e);n<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},DURATION,!1))},InkRippleCtrl.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null},function(){"use strict";function e(e){function t(t,n,r){return e.attach(t,n,angular.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},r))}return{attach:t}}e.$inject=["$mdInkRipple"],angular.module("material.core").factory("$mdTabInkRipple",e)}(),angular.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(e){"use strict";function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}function n(t,n){function r(e,t){return t=t||{},f[e]=i(e,t),m}function o(t,n){return i(t,e.extend({},f[t]||{},n))}function i(e,t){var n=M.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function c(t,n){if(b[t])return b[t];n=n||"default";var r="string"==typeof n?b[n]:n,o=new s(t);return r&&e.forEach(r.colors,function(t,n){o.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),b[t]=o,o}function s(t){function n(t){if(t=0===arguments.length||!!t,t!==r.isDark){r.isDark=t,r.foregroundPalette=r.isDark?h:p,r.foregroundShadow=r.isDark?g:v;var n=r.isDark?w:C,o=r.isDark?C:w;return e.forEach(n,function(e,t){var n=r.colors[t],i=o[t];if(n)for(var a in n.hues)n.hues[a]===i[a]&&(n.hues[a]=e[a])}),r}}var r=this;r.name=t,r.colors={},r.dark=n,n(!1),A.forEach(function(t){var n=(r.isDark?w:C)[t];r[t+"Palette"]=function(o,i){var a=r.colors[t]={name:o,hues:e.extend({},n,i)};return Object.keys(a.hues).forEach(function(e){if(!n[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",r.name).replace("%3",o).replace("%4",Object.keys(n).join(", ")))}),Object.keys(a.hues).map(function(e){return a.hues[e]}).forEach(function(e){if(M.indexOf(e)==-1)throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",r.name).replace("%3",t).replace("%4",o).replace("%5",M.join(", ")))}),r},r[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+t+"Color() has been deprecated. Use $mdThemingProviderTheme."+t+"Palette() instead."),r[t+"Palette"].apply(r,e)}})}function u(t,n,r,o){function i(e){return void 0===e||""===e||void 0!==s.THEMES[e]}function a(e,t){function r(){return c&&c.$mdTheme||("default"==y?"":y)}function a(t){if(t){i(t)||o.warn("Attempted to use unregistered theme '"+t+"'. Register it with $mdThemingProvider.theme().");var n=e.data("$mdThemeName");n&&e.removeClass("md-"+n+"-theme"),e.addClass("md-"+t+"-theme"),e.data("$mdThemeName",t),c&&e.data("$mdThemeController",c)}}var c=t.controller("mdTheme")||e.data("$mdThemeController");if(a(r()),c)var l=$||c.$shouldWatch||n.parseAttributeBoolean(e.attr("md-theme-watch")),s=c.registerChanges(function(t){a(t),l?e.on("$destroy",s):s()})}var s=function(e,n){void 0===n&&(n=e,e=void 0),void 0===e&&(e=t),s.inherit(n,n)};return Object.defineProperty(s,"THEMES",{get:function(){return e.extend({},b)}}),Object.defineProperty(s,"PALETTES",{get:function(){return e.extend({},f)}}),Object.defineProperty(s,"ALWAYS_WATCH",{get:function(){return $}}),s.inherit=a,s.registered=i,s.defaultTheme=function(){return y},s.generateTheme=function(e){l(b[e],e,k.nonce)},s.defineTheme=function(e,t){t=t||{};var n=c(e);return t.primary&&n.primaryPalette(t.primary),t.accent&&n.accentPalette(t.accent),t.warn&&n.warnPalette(t.warn),t.background&&n.backgroundPalette(t.background),t.dark&&n.dark(),this.generateTheme(e), r.resolve(e)},s.setBrowserColor=T,s}u.$inject=["$rootScope","$mdUtil","$q","$log"],f={};var m,b={},$=!1,y="default";e.extend(f,t);var E=function(e){var t=n.setMeta("theme-color",e),r=n.setMeta("msapplication-navbutton-color",e);return function(){t(),r()}},T=function(t){t=e.isObject(t)?t:{};var n=t.theme||"default",r=t.hue||"800",o=f[t.palette]||f[b[n].colors[t.palette||"primary"].name],i=e.isObject(o[r])?o[r].hex:o[r];return E(i)};return m={definePalette:r,extendPalette:o,theme:c,configuration:function(){return e.extend({},k,{defaultTheme:y,alwaysWatchTheme:$,registeredStyles:[].concat(k.registeredStyles)})},disableTheming:function(t){k.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){k.registeredStyles.push(e)},setNonce:function(e){k.nonce=e},generateThemesOnDemand:function(e){k.generateOnDemand=e},setDefaultTheme:function(e){y=e},alwaysWatchTheme:function(e){$=e},enableBrowserColor:T,$get:u,_LIGHT_DEFAULT_HUES:C,_DARK_DEFAULT_HUES:w,_PALETTES:f,_THEMES:b,_parseRules:a,_rgba:d}}function r(t,n,r,o,i,a){return{priority:101,link:{pre:function(c,l,s){var u=[],d=n.startSymbol(),f=n.endSymbol(),m=s.mdTheme.trim(),p=m.substr(0,d.length)===d&&m.lastIndexOf(f)===m.length-f.length,h="::",g=s.mdTheme.split(d).join("").split(f).join("").trim().substr(0,h.length)===h,v={registerChanges:function(t,n){return n&&(t=e.bind(n,t)),u.push(t),function(){var e=u.indexOf(t);e>-1&&u.splice(e,1)}},$setTheme:function(e){t.registered(e)||a.warn("attempted to use unregistered theme '"+e+"'"),v.$mdTheme=e;for(var n=u.length;n--;)u[n](e)},$shouldWatch:o.parseAttributeBoolean(l.attr("md-theme-watch"))||t.ALWAYS_WATCH||p&&!g};l.data("$mdThemeController",v);var b=function(){var e=n(s.mdTheme)(c);return r(e)(c)||e},$=function(t){return"string"==typeof t?v.$setTheme(t):void i.when(e.isFunction(t)?t():t).then(function(e){v.$setTheme(e)})};$(b());var y=c.$watch(b,function(e){e&&($(e),v.$shouldWatch||y())})}}}}function o(){return k.disableTheming=!0,{restrict:"A",priority:"900"}}function i(e){return e}function a(t,n,r){s(t,n),r=r.replace(/THEME_NAME/g,t.name);var o=[],i=t.colors[n],a=new RegExp("\\.md-"+t.name+"-theme","g"),c=new RegExp("('|\")?{{\\s*("+n+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),l=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,u=f[i.name];return r=r.replace(l,function(e,n,r,o,i){return"foreground"===n?"shadow"==r?t.foregroundShadow:t.foregroundPalette[r]||t.foregroundPalette[1]:(0!==r.indexOf("hue")&&"default"!==r||(r=t.colors[n].hues[r]),d((f[t.colors[n].name][r]||"")[i?"contrast":"value"],o))}),e.forEach(i.hues,function(e,n){var i=r.replace(c,function(t,n,r,o,i){return d(u[e]["color"===o?"value":"contrast"],i)});if("default"!==n&&(i=i.replace(a,".md-"+t.name+"-theme.md-"+n)),"default"==t.name){var l=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;i=i.replace(l,function(e,t,n){return e+", "+t+n})}o.push(i)}),o}function c(t,n){function r(t,n){var r=t.contrastDefaultColor,o=t.contrastLightColors||[],i=t.contrastStrongLightColors||[],a=t.contrastDarkColors||[];"string"==typeof o&&(o=o.split(" ")),"string"==typeof i&&(i=i.split(" ")),"string"==typeof a&&(a=a.split(" ")),delete t.contrastDefaultColor,delete t.contrastLightColors,delete t.contrastStrongLightColors,delete t.contrastDarkColors,e.forEach(t,function(n,c){function l(){return"light"===r?a.indexOf(c)>-1?b:i.indexOf(c)>-1?y:$:o.indexOf(c)>-1?i.indexOf(c)>-1?y:$:b}if(!e.isObject(n)){var s=u(n);if(!s)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",t.name).replace("%3",c));t[c]={hex:t[c],value:s,contrast:l()}}})}var o=document.head,i=o?o.firstElementChild:null,a=!k.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(a+=k.registeredStyles.join(""),i&&0!==a.length){e.forEach(f,r);var c=a.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"}),s=new RegExp("md-("+A.join("|")+")","g");A.forEach(function(e){T[e]=""}),c.forEach(function(e){for(var t,n=(e.match(s),0);t=A[n];n++)if(e.indexOf(".md-"+t)>-1)return T[t]+=e;for(n=0;t=A[n];n++)if(e.indexOf(t)>-1)return T[t]+=e;return T[E]+=e}),k.generateOnDemand||e.forEach(n.THEMES,function(e){m[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||l(e,e.name,k.nonce)})}}function l(e,t,n){var r=document.head,o=r?r.firstElementChild:null;m[t]||(A.forEach(function(t){for(var i=a(e,t,T[t]);i.length;){var c=i.shift();if(c){var l=document.createElement("style");l.setAttribute("md-theme-style",""),n&&l.setAttribute("nonce",n),l.appendChild(document.createTextNode(c)),r.insertBefore(l,o)}}}),m[e.name]=!0)}function s(e,t){if(!f[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(f).join(", ")))}function u(t){if(e.isArray(t)&&3==t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,r=t.substr(0,n),o=t.substr(n,n),i=t.substr(2*n);return 1===n&&(r+=r,o+=o,i+=i),[parseInt(r,16),parseInt(o,16),parseInt(i,16)]}}function d(t,n){return t?(4==t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}t.$inject=["$mdThemingProvider"],r.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],i.$inject=["$mdTheming"],n.$inject=["$mdColorPalette","$$mdMetaProvider"],c.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",r).directive("mdThemable",i).directive("mdThemesDisabled",o).provider("$mdTheming",n).config(t).run(c);var f,m={},p={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},h={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},g="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",v="",b=u("rgba(0,0,0,0.87)"),$=u("rgba(255,255,255,0.87)"),y=u("rgb(255,255,255)"),A=["primary","accent","warn","background"],E="primary",C={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},w={background:{"default":"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};A.forEach(function(e){var t={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};C[e]||(C[e]=t),w[e]||(w[e]=t)});var M=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],k={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},T={}}(window.angular),angular.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(e,t,n,r){return function(o){return AnimateDomUtils(o,e,t,n,r)}}]),angular.version.minor>=4?angular.module("material.core.animate",[]):!function(){"use strict";function e(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var t=angular.forEach,n=angular.isDefined(document.documentElement.style.WebkitAppearance),r=n?"-webkit-":"",o=(n?"webkitTransitionEnd ":"")+"transitionend",i=(n?"webkitAnimationEnd ":"")+"animationend",a=["$document",function(e){return function(){return e[0].body.clientWidth+1}}],c=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,n){function r(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}var o=0,i=1,a=2;return r.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===a?e():this._doneCallbacks.push(e)},progress:angular.noop,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===o&&(t._state=i,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){this._state!==a&&(t(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=a)}},r.all=function(e,n){function r(t){i=i&&t,++o===e.length&&n(i)}var o=0,i=!0;t(e,function(e){e.done(r)})},r}];angular.module("material.core.animate",[]).factory("$$forceReflow",a).factory("$$AnimateRunner",l).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(a,c,l,s,u,d,f){function m(n,c){var s=[],u=A(n),m=u&&f.enabled(),g=!1,C=!1;m&&(c.transitionStyle&&s.push([r+"transition",c.transitionStyle]),c.keyframeStyle&&s.push([r+"animation",c.keyframeStyle]),c.delay&&s.push([r+"transition-delay",c.delay+"s"]),c.duration&&s.push([r+"transition-duration",c.duration+"s"]),g=c.keyframeStyle||c.to&&(c.duration>0||c.transitionStyle),C=!!c.addClass||!!c.removeClass,E(n,!0));var w=m&&(g||C);$(n,c);var M,k,T=!1;return{close:a.close,start:function(){function a(){if(!T)return T=!0,M&&k&&n.off(M,k),p(n,c),b(n,c),t(s,function(t){u.style[e(t[0])]=""}),f.complete(!0),f}var f=new l;return v(function(){if(E(n,!1),!w)return a();t(s,function(t){var n=t[0],r=t[1];u.style[e(n)]=r}),p(n,c);var l=h(n);if(0===l.duration)return a();var f=[];c.easing&&(l.transitionDuration&&f.push([r+"transition-timing-function",c.easing]),l.animationDuration&&f.push([r+"animation-timing-function",c.easing])),c.delay&&l.animationDelay&&f.push([r+"animation-delay",c.delay+"s"]),c.duration&&l.animationDuration&&f.push([r+"animation-duration",c.duration+"s"]),t(f,function(t){var n=t[0],r=t[1];u.style[e(n)]=r,s.push(t)});var m=l.delay,g=1e3*m,v=l.duration,b=1e3*v,$=Date.now();M=[],l.transitionDuration&&M.push(o),l.animationDuration&&M.push(i),M=M.join(" "),k=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-$,0)>=g&&r>=v&&a()},n.on(M,k),y(n,c),d(a,g+1.5*b,!1)}),f}}}function p(e,t){t.addClass&&(u.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(u.removeClass(e,t.removeClass),t.removeClass=null)}function h(e){function t(e){return n?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var r=A(e),o=a.getComputedStyle(r),i=g(o[t("transitionDuration")]),c=g(o[t("animationDuration")]),l=g(o[t("transitionDelay")]),s=g(o[t("animationDelay")]);c*=parseInt(o[t("animationIterationCount")],10)||1;var u=Math.max(c,i),d=Math.max(s,l);return{duration:u,delay:d,animationDuration:c,transitionDuration:i,animationDelay:s,transitionDelay:l}}function g(e){var n=0,r=(e||"").split(/\s*,\s*/);return t(r,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e}),n}function v(e){C&&C(),w.push(e),C=c(function(){C=null;for(var e=s(),t=0;t<w.length;t++)w[t](e);w.length=0})}function b(e,t){$(e,t),y(e,t)}function $(e,t){t.from&&(e.css(t.from),t.from=null)}function y(e,t){t.to&&(e.css(t.to),t.to=null)}function A(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function E(t,n){var o=A(t),i=e(r+"transition-delay");o.style[i]=n?"-9999s":""}var C,w=[];return m}])}(),function(){angular.module("material.core").constant("$MD_THEME_CSS",'md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(),ngmaterial.core=angular.module("material.core");
8,983
32,018
0.711257
4abd27259d8d9628171523d3801bee473ea5c2fc
3,177
js
JavaScript
routes/security.js
rent-and-realstate-scraper/backend
2bc28db5512c6e47d1bb8a50db00b1f27815d199
[ "MIT" ]
null
null
null
routes/security.js
rent-and-realstate-scraper/backend
2bc28db5512c6e47d1bb8a50db00b1f27815d199
[ "MIT" ]
null
null
null
routes/security.js
rent-and-realstate-scraper/backend
2bc28db5512c6e47d1bb8a50db00b1f27815d199
[ "MIT" ]
null
null
null
const passport = require('passport'); const config = require('../config/database'); require('../config/passport')(passport); const jwt = require('jsonwebtoken'); const User = require("../models/User"); const routes= (server) => { server.post('/api/security/signup', (req, res, next) => { if (!req.body.username || !req.body.password) { res.send({ success: false, msg: 'Please pass username and password.' }); return next(); } else { var newUser = new User({ username: req.body.username, email: req.body.email, password: req.body.password }); // save the user newUser.save(function (err) { if (err) { res.send({ success: false, msg: 'Username already exists.' }); return next(); } res.send({ success: true, msg: 'Successful created new user.' }); console.log('Successful created new user.' + newUser.username) return next(); }); } }); server.post('/api/security/login', (req, res, next) => { User.findOne({ username: req.body.username }, function (err, user) { if (err) throw err; if (!user) { res.status(401); res.send({ success: false, msg: 'Authentication failed. User not found.' }); return next(); } else { // check if password matches user.comparePassword(req.body.password, function (err, isMatch) { if (isMatch && !err) { // if user is found and password is right create a token var token = jwt.sign(user.toJSON(), config.secret); // return the information including token as JSON res.send({ success: true, token: 'JWT ' + token, role:user.role }); return next(); } else { res.status(401); res.send({ success: false, msg: 'Authentication failed. Wrong password.' }); return next(); } }); } }); }); server.get('/api/security/is_logged_in', (req, res, next, err) => { if(err){ console.log(err); } passport.authenticate('jwt', function (err, user) { if (user) { res.send({logged:true, message:"ok", userLogged:{username:user.username, role:user.role}}); } else { res.send({logged:false, message:"unauthorized"}); } })(req,res); return next(); }); getToken = function (headers) { if (headers && headers.authorization) { var parted = headers.authorization.split(' '); if (parted.length === 2) { return parted[1]; } else { return null; } } else { return null; } }; }; module.exports = routes;
35.696629
107
0.467422
4abeffc6e19d5cf65f8c2563644ccb14cd6f4791
490
js
JavaScript
Algorithm challenges/Intermediate/binary-agents.js
Atomk/fcc-backend-projects
d824ebb66ce2fb0cf1e4316ce360864e5525f0f6
[ "MIT" ]
null
null
null
Algorithm challenges/Intermediate/binary-agents.js
Atomk/fcc-backend-projects
d824ebb66ce2fb0cf1e4316ce360864e5525f0f6
[ "MIT" ]
2
2017-08-22T14:36:34.000Z
2017-08-23T23:16:17.000Z
Algorithm challenges/Intermediate/binary-agents.js
Atomk/fcc-backend-projects
d824ebb66ce2fb0cf1e4316ce360864e5525f0f6
[ "MIT" ]
null
null
null
function binaryAgent(str) { var array = str.split(" "); array = array.map(function(val) { // Return the character which corresponds to the binary code (now a string) return String.fromCharCode(parseInt(val, 2)); }); return array.join(""); } binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111");
35
204
0.716327
4ac05f2f870efae1ebfd509f5c4bb38fbb8e3930
1,029
js
JavaScript
tests/dummy/app/router.js
wheely/ember-validation
088128fd7bd542fcbe06cea475dd44e149699e99
[ "MIT" ]
2
2016-03-02T11:54:09.000Z
2017-02-24T14:53:09.000Z
tests/dummy/app/router.js
wheely/ember-validation
088128fd7bd542fcbe06cea475dd44e149699e99
[ "MIT" ]
5
2016-05-03T11:41:01.000Z
2016-05-31T10:25:10.000Z
tests/dummy/app/router.js
wheely/ember-validation
088128fd7bd542fcbe06cea475dd44e149699e99
[ "MIT" ]
2
2016-03-21T11:33:57.000Z
2020-09-08T14:08:18.000Z
import Ember from 'ember'; import config from './config/environment'; var Router = Ember.Router.extend({ location: config.locationType, didTransition() { this._super(...arguments); if (window.Prism) { Ember.run.scheduleOnce("afterRender", window.Prism, () => { try { window.Prism.highlightAll(); window.Prism.fileHighlight(); } catch(e) {} }); } } }); Router.map(function() { this.route('quick-start'); this.route('tutorial', function() { this.route('mixins'); this.route('mediators'); this.route('validators', function() { this.route('creating'); }); this.route('presets'); this.route('errors'); this.route('components'); this.route('presets'); }); this.route('examples', function() { this.route('simple'); this.route('conditional'); this.route('composition'); this.route('form'); this.route('form-view-validation'); this.route('form-nested-validation'); }); }); export default Router;
23.386364
65
0.602527
4ac14b9d8a56bf749aa624077b2340fb734f47a4
525
js
JavaScript
assets/sap/ui/webc/common/thirdparty/icons/display-more.js
jekyll-openui5/jekyll-openui5
159bfa9a764e0f60278774690fc9b01afcaf47ca
[ "Apache-2.0" ]
null
null
null
assets/sap/ui/webc/common/thirdparty/icons/display-more.js
jekyll-openui5/jekyll-openui5
159bfa9a764e0f60278774690fc9b01afcaf47ca
[ "Apache-2.0" ]
null
null
null
assets/sap/ui/webc/common/thirdparty/icons/display-more.js
jekyll-openui5/jekyll-openui5
159bfa9a764e0f60278774690fc9b01afcaf47ca
[ "Apache-2.0" ]
null
null
null
sap.ui.define(["sap/ui/webc/common/thirdparty/base/asset-registries/Icons"],function(t){"use strict";const s="display-more";const e="M288 224q14 0 23 9t9 23v224q0 13-9 22.5t-23 9.5H32q-13 0-22.5-9.5T0 480V256q0-14 9.5-23t22.5-9h256zM503 88q9 10 9 23t-9 23l-92 86q-5 5-11 5t-11-5-5-11.5 5-11.5l75-69H273q-16 0-16-16t16-16h191l-75-68q-5-5-5-11.5T389 5t11-5 11 5z";const a=false;const c="SAP-icons";const n="@ui5/webcomponents-icons";t.registerIcon(s,{pathData:e,ltr:a,collection:c,packageName:n});var o={pathData:e};return o});
525
525
0.739048
4ac1ac8eb6c3b43af7c39050e4b7eaad27f5d92b
937
js
JavaScript
vendor/build/translations/pl.js
ricardo118/grav-plugin-ckeditor5
381642a2a2fa2b97e4a698663ba0e97bbfdfe9d1
[ "MIT" ]
4
2019-03-09T00:23:50.000Z
2019-04-18T08:53:23.000Z
vendor/build/translations/pl.js
ricardo118/grav-plugin-ckeditor5
381642a2a2fa2b97e4a698663ba0e97bbfdfe9d1
[ "MIT" ]
null
null
null
vendor/build/translations/pl.js
ricardo118/grav-plugin-ckeditor5
381642a2a2fa2b97e4a698663ba0e97bbfdfe9d1
[ "MIT" ]
null
null
null
(function(d){d['pl']=Object.assign(d['pl']||{},{a:"Kursywa",b:"Pogrubienie",c:"Wybierz nagłówek",d:"Nagłówek",e:"Cytat blokowy",f:"Wstaw odnośnik",g:"Lista numerowana",h:"Lista wypunktowana",i:"widget osadzenia mediów",j:"Wstaw media",k:"Adres URL nie może być pusty.",l:"Ten rodzaj adresu URL nie jest obsługiwany.",m:"Akapit",n:"Nagłówek 1",o:"Nagłówek 2",p:"Nagłówek 3",q:"Nagłówek 4",r:"Nagłówek 5",s:"Nagłówek 6",t:"Otwórz w nowej zakładce",u:"Do pobrania",v:"Usuń odnośnik",w:"Edytuj odnośnik",x:"Otwórz odnośnik w nowym oknie",y:"Nie podano adresu URL odnośnika",z:"Zapisz",aa:"Anuluj",ab:"Adres URL",ac:"Wklej adres URL mediów do pola.",ad:"Wskazówka: Wklej URL do treści edytora, by łatwiej osadzić media.",ae:"Adres URL",af:"Edytor tekstu sformatowanego",ag:"Edytor tekstu sformatowanego, %0",ah:"%0 z %1",ai:"Poprzedni",aj:"Następny",ak:"Cofnij",al:"Ponów"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
937
937
0.722519
4ac1ae9ef93a616c506ad168e72186b7e73dfac3
3,416
js
JavaScript
src/pages/index.js
ambiental-ist/website
fbf7be5234bd63e8c7546c4df7e1c8a46d3f399e
[ "MIT" ]
null
null
null
src/pages/index.js
ambiental-ist/website
fbf7be5234bd63e8c7546c4df7e1c8a46d3f399e
[ "MIT" ]
1
2021-02-14T02:40:22.000Z
2021-02-14T02:43:55.000Z
src/pages/index.js
ambiental-ist/website
fbf7be5234bd63e8c7546c4df7e1c8a46d3f399e
[ "MIT" ]
null
null
null
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import SiteMetadata from "../components/SiteMetadata" import Layout from "../layouts/Layout" import Cards from "../components/Cards" const IndexPage = ({ data }) => { return ( <Layout> <SiteMetadata title="Início" description="Grupo de estudantes ambientalista do Instituto Superior Técnico." /> {/* Home page banner. */} <div className="bg-gray-100"> <div className="container py-12 lg:pb-16"> <div className="flex flex-wrap items-center"> <div className="w-full lg:w-1/2 xl:w-3/5 pb-8 lg:pb-0"> <h1 className="text-3xl leading-tight font-extrabold tracking-tight text-gray-800 sm:text-4xl"> Grupo de estudantes <span className="text-green-color">ambientalista</span> do Instituto Superior Técnico. </h1> <div className="mt-4 leading-loose text-gray-800"> Durante anos, o planeta chamou por nós, receou por nós, pediu-nos para que o escutássemos e nos sincronizássemos com ele, com a Natureza. Hoje, já não é apenas um pedido, mas uma necessidade, uma missão. Começando pela nossa universidade, o Instituto Superior Técnico, procuramos promover a adoção de comportamentos responsáveis e hábitos sustentáveis, que protejam o futuro da humanidade e do nosso planeta. Estás pronto para te juntares a nós? </div> </div> <div className="w-full lg:w-1/2 xl:w-2/5 lg:pl-12"> <Img fluid={data.home_page_photo.childImageSharp.fluid} alt="HomePhoto" className="rounded-lg shadow-lg" /> </div> </div> </div> </div> {/* Initiatives cards section. */} <div className="bg-gray-0 py-12 lg:py-16"> <div className="container"> <h1 className="text-3xl leading-tight font-extrabold tracking-tight text-gray-800 sm:text-4xl pb-2"> Iniciativas </h1> {data.initiative && data.initiative.nodes.length > 0 ? ( <Cards items={data.initiative.nodes} /> ) : ( <div className="container">No Initiatives found.</div> )} </div> </div> {/* Articles cards section. */ } <div className="bg-gray-100 py-12 lg:py-16"> <div className="container"> <h1 className="text-3xl leading-tight font-extrabold tracking-tight text-gray-800 sm:text-4xl pb-2"> Artigos </h1> {data.article && data.article.nodes.length > 0 ? ( <Cards items={data.article.nodes} /> ) : ( <div className="container">No articles found.</div> )} </div> </div> {/*<Newsletter />*/} </Layout> ) } export default IndexPage export const query = graphql` query HomeQuery { initiative: allContentfulInitiative(sort: {fields: date, order: DESC}, limit: 3) { nodes { ...InitiativeCard } }, article: allContentfulArticle(sort: {fields: date, order: DESC}, limit: 3) { nodes { ...ArticleCard } }, home_page_photo: file(relativePath: { eq: "trees.jpg" }) { childImageSharp { fluid(maxWidth: 600, quality: 90) { ...GatsbyImageSharpFluid_withWebp } } } } `
33.490196
459
0.588993
4ac2733087f4cb7deeb9af31dd81df189f9eaf45
322
js
JavaScript
index.js
Robotics-HITSZ/jekyll-serif-theme
16b76c9a787da91e8ed7eb8ef93d652bc144ef24
[ "MIT" ]
null
null
null
index.js
Robotics-HITSZ/jekyll-serif-theme
16b76c9a787da91e8ed7eb8ef93d652bc144ef24
[ "MIT" ]
null
null
null
index.js
Robotics-HITSZ/jekyll-serif-theme
16b76c9a787da91e8ed7eb8ef93d652bc144ef24
[ "MIT" ]
1
2021-07-08T03:05:38.000Z
2021-07-08T03:05:38.000Z
const express = require("express"); const app = express(); app.use(express.json()) app.use('/',express.static(__dirname + '/_site')) app.get('*', function(req, res){ res.status(404).send('404', '<script>location.href = "/404.html";</script>'); }); app.listen(3000, () => { console.log("http://localhost:3000"); });
23
79
0.624224
4ac2acf1225244df64e91aa88a35b97aab0714a5
64
js
JavaScript
e2e/mini/remax.config.js
AnnaSearl/remax
0c1d8344653b06b82dd124524abfb46343f980fa
[ "MIT" ]
null
null
null
e2e/mini/remax.config.js
AnnaSearl/remax
0c1d8344653b06b82dd124524abfb46343f980fa
[ "MIT" ]
3
2022-02-13T19:49:15.000Z
2022-02-27T09:58:08.000Z
e2e/mini/remax.config.js
AnnaSearl/remax
0c1d8344653b06b82dd124524abfb46343f980fa
[ "MIT" ]
1
2021-06-23T10:04:48.000Z
2021-06-23T10:04:48.000Z
module.exports = { turboPages: ['pages/turbo-page/index'], };
16
41
0.65625
4ac2b51c9bd2c15047826500bcb1449badfbf466
417
js
JavaScript
mongo/bounties/init.js
CompositeFellow/bounty-board
785173d433fc79f4e943779b2b2b66f3c57c6c11
[ "MIT" ]
null
null
null
mongo/bounties/init.js
CompositeFellow/bounty-board
785173d433fc79f4e943779b2b2b66f3c57c6c11
[ "MIT" ]
null
null
null
mongo/bounties/init.js
CompositeFellow/bounty-board
785173d433fc79f4e943779b2b2b66f3c57c6c11
[ "MIT" ]
null
null
null
console.log('Attempting to connect to mongo...'); // Replaces `localhost` if running in a Docker container on network `mongo` // for more info, see https://docs.docker.com/network/ conn = new Mongo('mongo:27017'); console.log('Connected to Mongo, fetching the DB...'); db = conn.getDB("bountyboard"); const idx = db.bounties.createIndex({ "$**": 'text' }); console.log(`Index ${idx} Created Successfully!`);
26.0625
75
0.685851
4ac3c677b1e1eb35832c5728e54d52a696966b49
414
js
JavaScript
front/src/app/component/register/InputUserDataPair.js
Jungwoo-Son/DCM
7bf45163fb9928f1252f6b97e11a4fcd5ec0cb8a
[ "MIT" ]
null
null
null
front/src/app/component/register/InputUserDataPair.js
Jungwoo-Son/DCM
7bf45163fb9928f1252f6b97e11a4fcd5ec0cb8a
[ "MIT" ]
null
null
null
front/src/app/component/register/InputUserDataPair.js
Jungwoo-Son/DCM
7bf45163fb9928f1252f6b97e11a4fcd5ec0cb8a
[ "MIT" ]
null
null
null
import * as S from "./style"; const InputUserDataPair = ({ name, title, value, setValue }) => { return ( <S.InputUserDataContent> <S.InputUserDataTitle>{title}</S.InputUserDataTitle> <S.InputUserData name={name} placeholder={title} value={value} onChange={setValue} ></S.InputUserData> </S.InputUserDataContent> ); }; export default InputUserDataPair;
25.875
65
0.630435
4ac4e1460280d3f8f6b4875666e49219f3689eda
5,052
js
JavaScript
asyncFlow/nodejs/async-flows/src/redux-components/ReduxCanvas.js
Raj-S-Singh/aflux
720cf1a27c55ccd90f0b509f2889b7393527e7e9
[ "Apache-2.0" ]
9
2019-06-24T09:08:19.000Z
2021-04-02T08:29:59.000Z
asyncFlow/nodejs/async-flows/src/redux-components/ReduxCanvas.js
Raj-S-Singh/aflux
720cf1a27c55ccd90f0b509f2889b7393527e7e9
[ "Apache-2.0" ]
1
2022-03-31T20:11:32.000Z
2022-03-31T20:11:32.000Z
asyncFlow/nodejs/async-flows/src/redux-components/ReduxCanvas.js
Raj-S-Singh/aflux
720cf1a27c55ccd90f0b509f2889b7393527e7e9
[ "Apache-2.0" ]
9
2019-06-20T16:46:17.000Z
2022-03-06T12:44:59.000Z
import React from 'react' import PropTypes from 'prop-types' import '../AsyncFlowsApp.css'; import ReduxActivityTabContainer from '../redux-containers/ReduxActivityTabContainer'; import ReduxCanvasNodeElementContainer from '../redux-containers/ReduxCanvasNodeElementContainer'; import NodeConnectorElement from '../components/NodeConnectorElement'; import NewConnectorElement from '../components/NewConnectorElement'; import { findElement } from '../redux-containers/ElementContainerFunctions'; /** WhiteBoard . White part of the screen where nodes and links are drawn Canvas contains the Flows that are drawn */ const ReduxCanvas = ({flowElements,selectedNodeId,textElementHeight,isMovingNode,isCreatingNode, isCreatingLink,flowConnectors,connectorPositions,selectedConnectorId, selectedSourceId,left,bottom,newConnectorId,selectedSourceIndex,newConnectorPosition, // functions // from parent selectNode,finishNodeMoving,selectSourceConnector,createLink,validateJob,selectConnector,moveLink,deselectLink, // from container deselectSourceConnector,onMouseDown,onMouseUp,moveNodeElement,moveNode,moveNodeElementInCanvas }) => { var currentFlowList=flowElements.map((element)=> !element.deleted && <ReduxCanvasNodeElementContainer key={element.id} identifier={element.id} selected={selectedNodeId===element.id} height={element.height} width={element.width} name={element.propertyValues[0]} x={element.x} y={element.y} color={element.propertyValues[2]} isSubFlow={element.subFlow!=null} inputInterfaces={element.inputInterfaces} outputInterfaces={element.outputInterfaces} asyncInterface={element.asyncInterface} selectNode={(event,id) => this.props.selectNode(event,id)} finishNodeMoving={event => this.props.finishNodeMoving(event)} moveNodeElement={(event) => this.moveNodeElementInCanvas(event,selectedNodeId)} selectSourceConnector={(event,flowElement,connectorId) => this.props.selectSourceConnector(event,flowElement,connectorId)} createLink={(flowElement,connectorId) => this.props.createLink(flowElement,connectorId)} gotoOutputConnector={(event) => this.moveNode(event,isMovingNode,selectedSourceId,selectedNodeId)} deselectSourceConnector={(event) => this.deselectSourceConnector(event)} selectNode={(event,id) => selectNode(event,id)} finishNodeMoving={event => finishNodeMoving(event)} moveNodeElement={(event) => moveNodeElement(event)} selectSourceConnector={(event,flowElement,connectorId) => selectSourceConnector(event,flowElement,connectorId)} createLink={(flowElement,connectorId) => createLink(flowElement,connectorId)} validateJob={() => validateJob()} gotoOutputConnector={(event) => moveNode(event,isMovingNode,selectedSourceId,selectedNodeId)} deselectSourceConnector={(event) => deselectSourceConnector(event)} /> ); const connectorsList=flowConnectors.map((connector,i)=> !connector.deleted && connectorPositions.length===flowConnectors.length && <NodeConnectorElement key={connector.id} identifier={connector.id} selected={selectedConnectorId===connector.id} sourceElement={findElement(connector.sourceId,flowElements)} sourceIndex={connector.sourceIndex} targetElement={findElement(connector.targetId,flowElements)} targetIndex={connector.targetIndex} sourcePosition={connectorPositions[i].sourcePosition} targetPosition={connectorPositions[i].targetPosition} onMouseUp={(event) => selectConnector(event,connector.id)} selectConnector={(event,id) =>selectConnector(event,id)} /> ); var isCreatingLink = selectedSourceId>=0; return ( <div className="CanvasContainer" style={{ left:left, bottom:bottom}} id="canvasContainer"> <svg onMouseMove={(event) => moveNode(event,isMovingNode,selectedSourceId,selectedNodeId)} onMouseUp={(event) => onMouseUp(event,isCreatingLink,isMovingNode,isCreatingNode)} > <rect x="0" y="0" width="100%" height="100%" fill="none" pointerEvents="visible" onMouseDown={(event) => onMouseDown(event)} /> <g> {currentFlowList} {connectorsList} {isCreatingLink && <NewConnectorElement identifier={newConnectorId} sourceElement={findElement(selectedSourceId,flowElements)} sourceIndex={selectedSourceIndex} targetElement={null} targetIndex={-1} sourcePosition={newConnectorPosition.sourcePosition} targetPosition={newConnectorPosition.targetPosition} deselectLink={event => deselectLink()} moveLink={(event) =>moveNode(event,isMovingNode,selectedSourceId,selectedNodeId)} /> } </g> </svg> </div> ); } export default ReduxCanvas;
43.551724
117
0.706255
4ac6753f4c4d9d0266bb9eba089cbbaca5058076
1,421
js
JavaScript
src/components/todo-list.js
davidleeeh/redux-todos
5cdfda7de36a8da68cda4f98e02e9120e73cfaf5
[ "MIT" ]
null
null
null
src/components/todo-list.js
davidleeeh/redux-todos
5cdfda7de36a8da68cda4f98e02e9120e73cfaf5
[ "MIT" ]
null
null
null
src/components/todo-list.js
davidleeeh/redux-todos
5cdfda7de36a8da68cda4f98e02e9120e73cfaf5
[ "MIT" ]
1
2018-12-09T10:54:19.000Z
2018-12-09T10:54:19.000Z
import React from 'react'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import TodoItem from './todo-item'; import { toggleTodoAction } from '../actions'; import { getVisibleTodos } from '../reducers'; import * as actions from '../actions'; class TodoList extends React.Component{ componentDidMount () { const { filter, fetchTodos } = this.props; fetchTodos(filter); } render() { const {todos, onTodoClick} = this.props; console.log(`Render() `, todos); return ( <ul> { todos.map((todo) => { return ( <TodoItem {...todo} key={todo.id} onClick={() => { onTodoClick(todo.id); }} /> ); }) } </ul> ); } } const mapStateToProps = (state, ownProps) => { const filter = ownProps.match.params.filter || 'all'; return { todos: getVisibleTodos(state, filter), filter: filter }; } const mapDispatchToProps = (dispatch) => { return { onTodoClick: (id) => { dispatch(toggleTodoAction(id)); }, fetchTodos: (filter) => { dispatch(actions.fetchTodos(filter)); } }; } // withRouter gives to the wrapped component match, location and history props export default withRouter(connect(mapStateToProps, mapDispatchToProps)(TodoList));
23.295082
82
0.564391
4ac6ff4a51ad3eef79719bc8e0dc1a6053e36ef9
596
js
JavaScript
src/store/actions/position.js
guardian/cv-redactor-desktop
f441a2709afdf389b7d0c1473f790e9780317088
[ "CC0-1.0" ]
3
2018-10-25T14:31:00.000Z
2019-04-21T12:07:47.000Z
src/store/actions/position.js
guardian/cv-anonymizer-desktop
f441a2709afdf389b7d0c1473f790e9780317088
[ "CC0-1.0" ]
4
2018-10-25T18:01:42.000Z
2020-09-21T00:39:53.000Z
src/store/actions/position.js
guardian/cv-anonymizer-desktop
f441a2709afdf389b7d0c1473f790e9780317088
[ "CC0-1.0" ]
null
null
null
import initialState from '../initialState'; import { updateCvPosition } from './cv'; const UPDATE_POSITION = 'UPDATE_POSITION'; const CLEAR_POSITION = 'CLEAR_POSITION'; const reducer = (state = initialState.position, action) => { switch (action.type) { case UPDATE_POSITION: return action.position; case CLEAR_POSITION: return initialState.position; default: return state; } }; export const clearPosition = () => ({ type: CLEAR_POSITION }); export const updatePosition = position => [ { type: UPDATE_POSITION, position }, updateCvPosition(position), ]; export { reducer };
23.84
62
0.719799
4ac700141960e8ce1d78356355ee5d9702f026ea
154
js
JavaScript
docs/html/search/all_7.js
Randyrtx/EEPROM_Class
691903fb830f11de32bcb1d731b75d9a39be0dac
[ "MIT" ]
null
null
null
docs/html/search/all_7.js
Randyrtx/EEPROM_Class
691903fb830f11de32bcb1d731b75d9a39be0dac
[ "MIT" ]
1
2019-09-17T15:08:14.000Z
2019-09-17T17:43:12.000Z
docs/html/search/all_7.js
Randyrtx/EEPROM_Class
691903fb830f11de32bcb1d731b75d9a39be0dac
[ "MIT" ]
null
null
null
var searchData= [ ['isdstenabled_32',['isDSTEnabled',['../class_user_settings_class.html#a0b837491897a91e4c59091c43cebcccf',1,'UserSettingsClass']]] ];
30.8
132
0.779221
4ac7f348b008a253e45c843e3399dde2897f7033
1,046
js
JavaScript
server.js
LivesInRoom29/Log_That_Burger
211da889d797997fdaf18e46d8ab23cd690c2d98
[ "Unlicense" ]
null
null
null
server.js
LivesInRoom29/Log_That_Burger
211da889d797997fdaf18e46d8ab23cd690c2d98
[ "Unlicense" ]
null
null
null
server.js
LivesInRoom29/Log_That_Burger
211da889d797997fdaf18e46d8ab23cd690c2d98
[ "Unlicense" ]
null
null
null
// Dependencies const express = require('express'); const exphbs = require('express-handlebars'); // Create an instance of the express app const app = express(); // Set the port of our application // process.env.PORT lets the port be set by Heroku const PORT = process.env.PORT || 7070; app.use(express.static("public")); // this is the folder it's going to look in for if it exists (for html script and style links) // Parse application body as JSON objects app.use(express.urlencoded({ extended: true })); app.use(express.json()); // Set Handlebars as the default templating engine app.engine("handlebars", exphbs({defaultLayout: "main"})); app.set("view engine", "handlebars"); // Import routes and give server access to them const routes = require('./controllers/burgers_controller.js'); app.use(routes); // Start our server so that it can begin listening to client requests. app.listen(PORT, function() { // Log (server-side) when our server has started console.log("Server listening on: http://localhost:" + PORT); });
29.885714
129
0.719885
4ac940f779903ddf181153e7de18fb7317e74d86
797
js
JavaScript
test/unit/plalib-core-fillIdentityMatrix-spec.js
dmytroyarmak/pla.js
06ec185ae690bee9076756962e20f41777834b31
[ "MIT" ]
null
null
null
test/unit/plalib-core-fillIdentityMatrix-spec.js
dmytroyarmak/pla.js
06ec185ae690bee9076756962e20f41777834b31
[ "MIT" ]
2
2015-10-22T20:27:46.000Z
2015-11-06T15:41:49.000Z
test/unit/plalib-core-fillIdentityMatrix-spec.js
dmytroyarmak/plalib
06ec185ae690bee9076756962e20f41777834b31
[ "MIT" ]
null
null
null
import {fillIdentityMatrix} from '../../src/plalib-core'; describe('fillIdentityMatrix', function() { it('should be a function', function() { expect(fillIdentityMatrix).toEqual(jasmine.any(Function)); }); describe('for matrix A', function() { var n, a; beforeEach(function() { n = 3; a = new Float64Array(new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * n * n)); a.set([ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]); fillIdentityMatrix(n, a); }); it('should make matrix A an identity matrix', function() { var expectedA = [ 1, 0, 0, 0, 1, 0, 0, 0, 1 ]; for (let i = 0; i < expectedA.length; i += 1) { expect(a[i]).toBeCloseTo(expectedA[i], 15); } }); }); });
22.138889
90
0.53074
4aca2dc2d71b7d87e9d0e7afb2e4799484347572
1,676
js
JavaScript
commands/questions/question.js
willyb321/galactic-academy-bot
44d7619e2ce411f7f8a9047908b46c9ccc337e74
[ "MIT" ]
null
null
null
commands/questions/question.js
willyb321/galactic-academy-bot
44d7619e2ce411f7f8a9047908b46c9ccc337e74
[ "MIT" ]
null
null
null
commands/questions/question.js
willyb321/galactic-academy-bot
44d7619e2ce411f7f8a9047908b46c9ccc337e74
[ "MIT" ]
1
2020-05-31T09:18:03.000Z
2020-05-31T09:18:03.000Z
const Commando = require('discord.js-commando'); const roleMap = { background_simulation: 'BGS' }; module.exports = class QuestionCommand extends Commando.Command { constructor(client) { super(client, { name: 'question', aliases: ['q'], group: 'questions', memberName: 'question', description: 'Ask a question.', examples: ['question How to bind FA Off'], guildOnly: true, args: [ { key: 'question', prompt: 'What is your question?', type: 'string', infinite: true, wait: 60 } ] }); } async run(msg, args) { const qChannel = msg.client.channels.get(process.env.GALACTIC_ACADEMY_CHANNEL || '412072549057298432'); const qGuild = msg.client.guilds.get(process.env.GALACTIC_ACADEMY || '412071767490691082'); let roleToTag = qGuild.roles.find(elem => elem.name.toLowerCase() === msg.channel.name.toLowerCase()); if (!roleToTag) { const roleExists = Boolean(roleMap[msg.channel.name]); if (roleExists) { roleToTag = qGuild.roles.find(elem => elem.name.toLowerCase() === roleMap[msg.channel.name].toLowerCase()); } } if (!roleToTag) { const roleExists = Boolean(roleMap[msg.channel.name]); if (roleExists) { roleToTag = qGuild.roles.find(elem => elem.name.toLowerCase() === roleMap[msg.channel.name].toLowerCase()); } else { return msg.reply('No role found to ping.'); } } const q = args.question.join(' ').replace(/`/igm, ''); console.log(q); msg.channel.send(`Question asked. ${roleToTag.name} have been pinged.`); const logMsg = `${roleToTag}:\nNew question from ${msg.author.tag} in ${msg.channel}:\n\`\`\`${q}\`\`\``; qChannel.send(logMsg); } };
29.403509
111
0.650955
4acaa9379c03c42bdb7a9c12fbba98e44b30811e
491
js
JavaScript
client/src/NewQs/sequenceFuncs.js/geometricSeqQs.js
Samir70/maths-elo-api
af7cc7ee300df51b0da343403a059b8a97a2791a
[ "MIT" ]
null
null
null
client/src/NewQs/sequenceFuncs.js/geometricSeqQs.js
Samir70/maths-elo-api
af7cc7ee300df51b0da343403a059b8a97a2791a
[ "MIT" ]
5
2019-10-31T14:59:41.000Z
2021-09-02T01:17:05.000Z
client/src/NewQs/sequenceFuncs.js/geometricSeqQs.js
Samir70/maths-elo-api
af7cc7ee300df51b0da343403a059b8a97a2791a
[ "MIT" ]
null
null
null
import { RandomInt } from '../RandomFuncs'; const rndGeometricSeq = (n) => { let a = RandomInt(6) + 1; let r = RandomInt(4) + 2; let seq = [...Array(n).fill(0)].map((_, i) => a * r ** i); return { seq, a, r } } export const nextTermGeometric = () => { let { seq, a, r } = rndGeometricSeq(6); let reverse = RandomInt(2); if (reverse === 1) { seq.reverse() } return { q: 'Find the next term in \n'+seq.slice(0, 5).join(', '), a: seq[5] } }
27.277778
65
0.515275
4acab1e1b4abaf6d8f0544a9a091779e7b44407c
319
js
JavaScript
components/styles/GlobalStyles.js
raczosala/react-shop
d8cdc1feee99929b4cb173b8f8c15c0b9c20c5a3
[ "MIT" ]
null
null
null
components/styles/GlobalStyles.js
raczosala/react-shop
d8cdc1feee99929b4cb173b8f8c15c0b9c20c5a3
[ "MIT" ]
null
null
null
components/styles/GlobalStyles.js
raczosala/react-shop
d8cdc1feee99929b4cb173b8f8c15c0b9c20c5a3
[ "MIT" ]
null
null
null
import { createGlobalStyle } from 'styled-components'; import ShopTheme from './ShopTheme'; const GlobalStyle = createGlobalStyle` body { margin: 0; font-family: Arial,Helvetica Neue,Helvetica,sans-serif; } a { text-decoration: none; color: ${ShopTheme.black}; } `; export default GlobalStyle;
21.266667
59
0.69906
4acac1db8f91b67b2ea255f4a07306e3ef0822c4
1,575
js
JavaScript
server/api/users.js
mimsy-virus/Graceshopper
2612fca7cc7bc0840d417a000e7259533ee17a0d
[ "MIT" ]
null
null
null
server/api/users.js
mimsy-virus/Graceshopper
2612fca7cc7bc0840d417a000e7259533ee17a0d
[ "MIT" ]
15
2018-10-30T16:13:01.000Z
2018-11-04T19:20:25.000Z
server/api/users.js
mimsy-virus/Graceshopper
2612fca7cc7bc0840d417a000e7259533ee17a0d
[ "MIT" ]
2
2018-10-29T20:29:40.000Z
2018-10-29T20:52:03.000Z
const router = require('express').Router() const { User, Order, OrderProduct, Product } = require('../db/models') const { isAuthenticated } = require('./apiProtection/isAuthenticated') const { ifIsAdmin } = require('./apiProtection/isAdmin') module.exports = router router.get('/', ifIsAdmin, async (req, res, next) => { try { const users = await User.findAll({ // explicitly select only the id and email fields - even though // users' passwords are encrypted, it won't help if we just // send everything to anyone who asks! attributes: [ 'id', 'firstName', 'lastName', 'email', 'phone', 'userAddress', 'userCity', 'userState', 'userZipCode', 'isAdmin' ] }) res.json(users) } catch (err) { next(err) } }) router.get('/:id/history', isAuthenticated, async (req, res, next) => { try { const orders = await Order.findAll({ where: { userId: req.params.id, status: 'completed' } }) if (!orders.length) return res.status(404).send('Not found') const ordersWithProducts = orders.map(order => order.getProducts()) const resolved = await Promise.all(ordersWithProducts) console.log(resolved) res.json(resolved) } catch (err) { next(err) } }) router.get('/:id', isAuthenticated, async (req, res, next) => { try { const user = await User.findById(req.params.id) if (!user) return res.status(404).send('Not found') res.json(user) } catch (err) { next(err) } })
25.403226
71
0.596825
4acb4a06454daa9dbc5a52938e9cb73f76086d26
228
js
JavaScript
src/services/login.js
gaomengzhou/enforcement
afd30ca6e0c219f0875f9ad38005ea191ebbc038
[ "MIT" ]
2
2020-02-05T06:44:09.000Z
2021-03-13T07:48:15.000Z
src/services/login.js
gaomengzhou/enforcement
afd30ca6e0c219f0875f9ad38005ea191ebbc038
[ "MIT" ]
null
null
null
src/services/login.js
gaomengzhou/enforcement
afd30ca6e0c219f0875f9ad38005ea191ebbc038
[ "MIT" ]
1
2021-01-16T07:27:41.000Z
2021-01-16T07:27:41.000Z
import request from '../utils/request'; // eslint-disable-next-line import/prefer-default-export export async function loginIn(params) { return request('/services/security/login',{ body:params, method:'POST', }); }
22.8
56
0.70614
4acb4d818c83fa11b56eb26276fb6332b270e38e
409
js
JavaScript
src/commands/basic.js
NoxPhoenix/noxbot
ece10824453b8108836d98447a325cdb96f57c92
[ "MIT" ]
null
null
null
src/commands/basic.js
NoxPhoenix/noxbot
ece10824453b8108836d98447a325cdb96f57c92
[ "MIT" ]
null
null
null
src/commands/basic.js
NoxPhoenix/noxbot
ece10824453b8108836d98447a325cdb96f57c92
[ "MIT" ]
null
null
null
module.exports = { benice ({ chatBot, message }) { const { channel } = message; return chatBot.say('Nox! That\'s not very kind!!! Apoligize and be better!', channel); }, car ({ chatBot, message: { channel } }) { const response = 'Did you know you have to have a special license to drive a supersonic acrobatic rocket powered battle car?'; return chatBot.say(response, channel); }, };
34.083333
130
0.657702
4acb4fca216f617da54008338bad7c88c49c3b30
2,524
js
JavaScript
CP2pNerve.js
dekuan/trustp2p-pow
cd9ad7ebd0cf1a85430d2201d7aa00b4c97680df
[ "MIT" ]
null
null
null
CP2pNerve.js
dekuan/trustp2p-pow
cd9ad7ebd0cf1a85430d2201d7aa00b4c97680df
[ "MIT" ]
2
2020-07-16T07:43:21.000Z
2021-05-07T13:41:40.000Z
CP2pNerve.js
dekuan/thingTrust-trustp2p
c03c84a686b9cb93249f2776fbcbfe98fe4ebf1b
[ "MIT" ]
null
null
null
/*jslint node: true */ "use strict"; const _redis = require( 'redis' ); const _p2pUtils = require( './CP2pUtils.js' ); /** * CP2pNerve * @module CP2pNerve */ class CP2pNerve { constructor() { this.m_oRedisClient = _redis.createClient(); } /** * store string value * * @param {string} sKey key to be stored * @param {string} sValue value to be stored * @param {number} nExpireSeconds expire time in seconds * @returns {boolean} */ setStringValue( sKey, sValue, nExpireSeconds = 0 ) { if ( ! _p2pUtils.isString( sKey ) || 0 === sKey.length ) { return false; } // ... if ( Number.isInteger( nExpireSeconds ) && nExpireSeconds > 0 ) { this.m_oRedisClient.set( sKey, sValue, 'EX', nExpireSeconds ); } else { this.m_oRedisClient.set( sKey, sValue ); } return true; } /** * get string asynchronously * * @param {string} sKey * @param pfnCallback * @returns {boolean} */ getStringValue( sKey, pfnCallback ) { if ( ! _p2pUtils.isString( sKey ) || 0 === sKey.length ) { return false; } if ( ! _p2pUtils.isFunction( pfnCallback ) ) { return false; } // ... this.m_oRedisClient.get( sKey, pfnCallback ); return true; } /** * get string synchronously * * @param {string} sKey load value by this key. * @returns {Promise<null>} */ async getStringValueSync( sKey ) { let vRet; if ( ! _p2pUtils.isString( sKey ) || 0 === sKey.length ) { return null; } // ... vRet = null; await new Promise( ( pfnResolve, pfnReject ) => { this.m_oRedisClient.get( sKey, ( vError, vReply ) => { if ( null === vError ) { pfnResolve( vReply ); } else { pfnReject( vError ); } }); }) .then( vReply => { vRet = vReply; }) .catch( vError => { }); // ... return vRet; } /** * check if key exists synchronously * * @param {string} sKey * @returns {Promise<boolean>} */ async isKeyExistsSync( sKey ) { let bRet; if ( ! _p2pUtils.isString( sKey ) || 0 === sKey.length ) { return false; } // ... bRet = false; await new Promise( ( pfnResolve, pfnReject ) => { this.m_oRedisClient.exists( sKey, ( vError, vReply ) => { if ( null === vError ) { pfnResolve( vReply ); } else { pfnReject( vError ); } }); }) .then( vReply => { bRet = ( 1 === vReply ); }) .catch( vError => { }); // ... return bRet; } } /** * exprots */ module.exports = CP2pNerve;
15.204819
65
0.558637
4acce9ad64c6ea966c978c07e77dd21ca269b064
221
js
JavaScript
client/src/redux/actions/searchModalAction.js
elvinvalentino/yoapp
6844cad40816bba29e06bf776be5955706ecc9ee
[ "MIT" ]
null
null
null
client/src/redux/actions/searchModalAction.js
elvinvalentino/yoapp
6844cad40816bba29e06bf776be5955706ecc9ee
[ "MIT" ]
null
null
null
client/src/redux/actions/searchModalAction.js
elvinvalentino/yoapp
6844cad40816bba29e06bf776be5955706ecc9ee
[ "MIT" ]
null
null
null
import { OPEN_SEARCH_MODAL, CLOSE_SEARCH_MODAL } from '../constants'; export const openSearchModal = () => ({ type: OPEN_SEARCH_MODAL }); export const closeSearchModal = () => ({ type: CLOSE_SEARCH_MODAL });
24.555556
70
0.678733
4accf740662491a79be6625600e721e89b0de131
1,094
js
JavaScript
src/model/device.js
MarcScheib/xml-editor
a4a83039f5a991259500795323057bae6142f014
[ "MIT" ]
2
2017-11-28T08:43:04.000Z
2021-02-19T08:10:05.000Z
src/model/device.js
MarcScheib/xml-editor
a4a83039f5a991259500795323057bae6142f014
[ "MIT" ]
1
2017-02-11T14:25:55.000Z
2017-02-27T20:52:12.000Z
src/model/device.js
MarcScheib/xml-editor
a4a83039f5a991259500795323057bae6142f014
[ "MIT" ]
null
null
null
import {BaseTag} from './base-tag'; import {Delete} from './delete'; import {MonitorOverride} from './monitor-override'; import {Ping} from './ping'; export class Device extends BaseTag { acceptTags = [Delete, MonitorOverride, Ping]; ip; auto; discover; constructor() { super('<device>', 'Devices can be added using the <device> element. They must not be nested as this violates the tree structure. Depending on the specified attributes, a single device or multiple devices can be discovered. The devices are added to the Inventory Tree and measurements are created automatically unless specified otherwise.'); } getXML() { let xml = '<device'; if (this.ip !== undefined) { xml += ' ip="' + this.ip + '"'; } if (this.auto !== undefined) { xml += ' auto="' + this.auto + '"'; } if (this.discover !== undefined) { xml += ' discover="' + this.discover + '"'; } xml += '>'; for (let i = 0; i < this.children.length; i++) { xml += this.children[i].getXML(); } xml += '</device>'; return xml; } }
25.44186
344
0.608775
4aceb51a09c16835852c91e13d2021f481f3fcdb
10,019
js
JavaScript
packages/charts-R/inst/htmlwidgets/lib/visa-chart-components/p-b0e13577.js
PinkDiamond1/visa-chart-components
2ee635fff5db4ee24439324e9e86dd4fef52feb6
[ "MIT" ]
79
2020-11-12T06:46:08.000Z
2022-03-31T06:14:18.000Z
packages/charts-R/inst/htmlwidgets/lib/visa-chart-components/p-b0e13577.js
PinkDiamond1/visa-chart-components
2ee635fff5db4ee24439324e9e86dd4fef52feb6
[ "MIT" ]
12
2021-02-08T23:25:54.000Z
2022-03-30T00:34:55.000Z
packages/charts-R/inst/htmlwidgets/lib/visa-chart-components/p-b0e13577.js
PinkDiamond1/visa-chart-components
2ee635fff5db4ee24439324e9e86dd4fef52feb6
[ "MIT" ]
8
2021-01-29T22:33:53.000Z
2022-01-26T18:09:40.000Z
/** * Copyright (c) 2021 Visa, Inc. * * This source code is licensed under the MIT license * https://github.com/visa/visa-chart-components/blob/master/LICENSE * **/ let e=!1,t=0,n=!1;const l="undefined"!=typeof window?window:{},s=l.CSS,o=l.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l)},c=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),a="http://www.w3.org/1999/xlink",f=new WeakMap,u=e=>"sc-"+e,p={},m=e=>"object"==(e=typeof e)||"function"===e,h=(e,t,...n)=>{let l=null,s=null,o=!1,r=!1,c=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!m(l))&&(l=String(l)),o&&r?c[c.length-1].s+=l:c.push(o?w(null,l):l),r=o)};if(i(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(t,c,$);const a=w(e,null);return a.o=t,c.length>0&&(a.u=c),a.p=s,a},w=(e,t)=>({t:0,h:e,s:t,$:null,u:null,o:null,p:null}),d={},$={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(b)},y=e=>({vattrs:e.o,vchildren:e.u,vkey:e.p,vname:e.g,vtag:e.h,vtext:e.s}),b=e=>{const t=w(e.vtag,e.vtext);return t.o=e.vattrs,t.u=e.vchildren,t.p=e.vkey,t.g=e.vname,t},g=(e,t,n,s,o,c)=>{if(n!==s){let f=I(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,l=_(n),o=_(s);t.remove(...l.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!l.includes(e)))}else if("style"===t){for(const t in n)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)n&&s[t]===n[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&s(e);else if(f||"o"!==t[0]||"n"!==t[1]){const l=m(s);if((f||l&&null!==s)&&!o)try{if(e.tagName.includes("-"))e[t]=s;else{let l=null==s?"":s;"list"===t?f=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(i){}let r=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,r=!0),null==s||!1===s?r?e.removeAttributeNS(a,t):e.removeAttribute(t):(!f||4&c||o)&&!l&&(s=!0===s?"":s,r?e.setAttributeNS(a,t,s):e.setAttribute(t,s))}else t="-"===t[2]?t.slice(3):I(l,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),s&&r.ael(e,t,s,!1)}},v=/\s/,_=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.o||p,r=t.o||p;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},k=(t,n,l)=>{let s,r,c=n.u[l],i=0;if(null!==c.s)s=c.$=o.createTextNode(c.s);else{if(e||(e="svg"===c.h),s=c.$=o.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.h),e&&"foreignObject"===c.h&&(e=!1),j(null,c,e),c.u)for(i=0;i<c.u.length;++i)r=k(t,c,i),r&&s.appendChild(r);"svg"===c.h?e=!1:"foreignObject"===s.tagName&&(e=!0)}return s},M=(e,t,n,l,s,o)=>{let r,c=e;for(;s<=o;++s)l[s]&&(r=k(null,n,s),r&&(l[s].$=r,c.insertBefore(r,t)))},S=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.$,x(l),s.remove())},O=(e,t)=>e.h===t.h&&e.p===t.p,U=(t,n)=>{const l=n.$=t.$,s=t.u,o=n.u,r=n.h,c=n.s;null===c?(e="svg"===r||"foreignObject"!==r&&e,j(t,n,e),null!==s&&null!==o?((e,t,n,l)=>{let s,o,r=0,c=0,i=0,a=0,f=t.length-1,u=t[0],p=t[f],m=l.length-1,h=l[0],w=l[m];for(;r<=f&&c<=m;)if(null==u)u=t[++r];else if(null==p)p=t[--f];else if(null==h)h=l[++c];else if(null==w)w=l[--m];else if(O(u,h))U(u,h),u=t[++r],h=l[++c];else if(O(p,w))U(p,w),p=t[--f],w=l[--m];else if(O(u,w))U(u,w),e.insertBefore(u.$,p.$.nextSibling),u=t[++r],w=l[--m];else if(O(p,h))U(p,h),e.insertBefore(p.$,u.$),p=t[--f],h=l[++c];else{for(i=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===h.p){i=a;break}i>=0?(o=t[i],o.h!==h.h?s=k(t&&t[c],n,i):(U(o,h),t[i]=void 0,s=o.$),h=l[++c]):(s=k(t&&t[c],n,c),h=l[++c]),s&&u.$.parentNode.insertBefore(s,u.$)}r>f?M(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&S(t,r,f)})(l,s,n,o):null!==o?(null!==t.s&&(l.textContent=""),M(l,null,n,o,0,o.length-1)):null!==s&&S(s,0,s.length-1),e&&"svg"===r&&(e=!1)):t.s!==c&&(l.data=c)},x=e=>{e.o&&e.o.ref&&e.o.ref(null),e.u&&e.u.map(x)},L=(e,t)=>{t&&!e.v&&t["s-p"].push(new Promise(t=>e.v=t))},R=(e,t)=>{if(e.t|=16,4&e.t)return void(e.t|=512);const n=e._,l=()=>C(e,n,t);let s;return L(e,e.j),s=A(n,t?"componentWillLoad":"componentWillUpdate"),F(s,()=>oe(l))},C=(e,t,n)=>{const l=e.k,s=l["s-rc"];n&&(e=>{const t=e.M;((e,t)=>{let n=u(t.S),l=X.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=f.get(e=e.head||e);s||f.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l])})(e.k.getRootNode(),t)})(e),((e,t)=>{const n=e.k,l=e.O||w(null,null),s=(o=t)&&o.h===d?t:h(null,null,t);var o;s.h=null,s.t|=4,e.O=s,s.$=l.$=n,U(l,s)})(e,E(t)),e.t&=-17,e.t|=2,s&&(s.map(e=>e()),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>P(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},E=e=>{try{e=e.render()}catch(t){J(t)}return e},P=e=>{const t=e.k,n=e._,l=e.j;64&e.t?A(n,"componentDidUpdate"):(e.t|=64,T(t),A(n,"componentDidLoad"),e.U(t),l||W()),e.v&&(e.v(),e.v=void 0),512&e.t&&se(()=>R(e,!1)),e.t&=-517},W=()=>{T(o.documentElement),r.t|=2},A=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){J(l)}},F=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),D=(e,t,n)=>{if(t.L){e.watchers&&(t.R=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map(([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return t=e,V(this).C.get(t);var t},set(n){((e,t,n,l)=>{const s=V(this),o=s.C.get(t),r=s.t,c=s._;var i,a;if(a=l.L[t][0],n=null==(i=n)||m(i)?i:4&a?"false"!==i&&(""===i||!!i):2&a?parseFloat(i):1&a?String(i):i,!(8&r&&void 0!==o||n===o)&&(s.C.set(t,n),c)){if(l.R&&128&r){const e=l.R[t];e&&e.map(e=>{try{c[e](n,o,t)}catch(l){J(l)}})}2==(18&r)&&R(s,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0})}),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp(()=>{const n=t.get(e);this[n]=(null!==l||"boolean"!=typeof this[n])&&l})},e.observedAttributes=l.filter(([e,t])=>15&t[0]).map(([e,n])=>{const l=n[1]||e;return t.set(l,e),l})}}return e},q=(e,t={})=>{const n=[],s=t.exclude||[],c=l.customElements,a=o.head,f=a.querySelector("meta[charset]"),p=o.createElement("style"),m=[];let h,w=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,t.syncQueue&&(r.t|=4),e.map(e=>e[1].map(t=>{const l={t:t[0],S:t[1],L:t[2],P:t[3]};l.L=t[2],l.R={};const o=l.S,a=class extends HTMLElement{constructor(e){super(e),G(e=this,l)}connectedCallback(){h&&(clearTimeout(h),h=null),w?m.push(this):r.jmp(()=>(e=>{if(0==(1&r.t)){const t=V(e),n=t.M,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){L(t,t.j=n);break}}n.L&&Object.entries(n.L).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),se(()=>(async(e,t,n,l,s)=>{if(0==(32&t.t)){t.t|=32;{if((s=Q(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.R=s.watchers,D(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(c){J(c)}t.t&=-9,t.t|=128,e()}const e=u(n.S);if(!X.has(e)&&s.style){const t=()=>{};((e,t,n)=>{let l=X.get(e);i&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,X.set(e,l)})(e,s.style,!!(1&n.t)),t()}}const o=t.j,r=()=>R(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n))}l()}})(this))}disconnectedCallback(){r.jmp(()=>{})}forceUpdate(){(()=>{{const e=V(this);e.k.isConnected&&2==(18&e.t)&&R(e,!1)}})()}componentOnReady(){return V(this).W}};l.A=e[0],s.includes(o)||c.get(o)||(n.push(o),c.define(o,D(a,l,1)))})),p.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),a.insertBefore(p,f?f.nextSibling:a.firstChild),w=!1,m.length?m.map(e=>e.connectedCallback()):r.jmp(()=>h=setTimeout(W,30))},B=e=>V(e).k,H=(e,t,n)=>{const l=B(e);return{emit:e=>{const s=new CustomEvent(t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e});return l.dispatchEvent(s),s}}},N=new WeakMap,V=e=>N.get(e),z=(e,t)=>N.set(t._=e,t),G=(e,t)=>{const n={t:0,k:e,M:t,C:new Map};return n.W=new Promise(e=>n.U=e),e["s-p"]=[],e["s-rc"]=[],N.set(e,n)},I=(e,t)=>t in e,J=e=>console.error(e),K=new Map,Q=e=>{const t=e.S.replace(/-/g,"_"),n=e.A,l=K.get(n);return l?l[t]:__sc_import_charts(`./${n}.entry.js`).then(e=>(K.set(n,e),e[t]),J)},X=new Map,Y=[],Z=[],ee=[],te=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&r.t?se(le):r.raf(le))},ne=(e,t)=>{let n=0,l=0;for(;n<e.length&&(l=performance.now())<t;)try{e[n++](l)}catch(s){J(s)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},le=()=>{t++,(e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){J(t)}e.length=0})(Y);const e=2==(6&r.t)?performance.now()+10*Math.ceil(t*(1/22)):1/0;ne(Z,e),ne(ee,e),Z.length>0&&(ee.push(...Z),Z.length=0),(n=Y.length+Z.length+ee.length>0)?r.raf(le):t=0},se=e=>c().then(e),oe=te(Z,!0),re=()=>s&&s.supports&&s.supports("color","var(--c)")?c():__sc_import_charts("./p-23329488.js").then(()=>(r.F=l.__cssshim)?(!1).i():0),ce=()=>{r.F=l.__cssshim;const e=Array.from(o.querySelectorAll("script")).find(e=>new RegExp("/charts(\\.esm)?\\.js($|\\?|#)").test(e.src)||"charts"===e.getAttribute("data-stencil-namespace")),t={};return"onbeforeload"in e&&!history.scrollRestoration?{then(){}}:(t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,l.location.href)).href,ie(t.resourcesUrl,e),l.customElements?c(t):__sc_import_charts("./p-49ad325f.js").then(()=>t))},ie=(e,t)=>{const n=`__sc_import_${"charts".replace(/\s|-/g,"_")}`;try{l[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(s){const r=new Map;l[n]=s=>{const c=new URL(s,e).href;let i=r.get(c);if(!i){const e=o.createElement("script");e.type="module",e.crossOrigin=t.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${c}'; window.${n}.m = m;`],{type:"application/javascript"})),i=new Promise(t=>{e.onload=()=>{t(l[n].m),e.remove()}}),r.set(c,i),o.head.appendChild(e)}return i}}};export{re as a,q as b,H as c,B as g,h,ce as p,z as r};
1,252.375
9,848
0.576604
4acf06b7f02ede3fd8707c7c6d8e87c33fe26729
2,986
js
JavaScript
src/views/brands/index.js
TheLuat/ITSS2
87863ad923740e779aa88907be5128a0d6c01f6c
[ "MIT" ]
null
null
null
src/views/brands/index.js
TheLuat/ITSS2
87863ad923740e779aa88907be5128a0d6c01f6c
[ "MIT" ]
null
null
null
src/views/brands/index.js
TheLuat/ITSS2
87863ad923740e779aa88907be5128a0d6c01f6c
[ "MIT" ]
null
null
null
import React, { useState, useEffect } from "react"; import "./style.css"; import axiosCLient from "src/axios/axiosClient"; const fetcher = axiosCLient(); const Brand = () => { const [data, setData] = useState([]); useEffect(() => getData(), []); const getData = async () => { try { const res = await fetcher.get( "http://dev1.solashi.com:8001/api/v1/brands" ); setData(res.data); } catch (error) { console.log(error); } }; const handleAccept = async (id) => { try { const res = await fetcher.post( `http://dev1.solashi.com:8001/api/v1/brands/accept/${id}` ); await getData(); alert("新規登録のリクエストを承認しました"); } catch (error) { console.log(error); alert("新規登録のリクエストを承認はエラーになりました"); } }; const handleReject = async (id) => { try { const res = await fetcher.post( `http://dev1.solashi.com:8001/api/v1/brands/reject/${id}` ); await getData(); alert("新規登録のリクエストを削除しました"); } catch (error) { alert("新規登録のリクエストを削除はエラーになりました"); console.log(error); } }; return ( <div class="container"> <table class="table table-bordered table-hover"> <caption>新規登録のリクエストの一覧</caption> <thead class="thead-light"> <tr> <th scope="col">#</th> <th scope="col">名前</th> <th scope="col">メールアドレス</th> <th scope="col">ロゴ</th> <th scope="col">分野</th> <th scope="col">新規登録の日</th> <th scope="col"></th> </tr> </thead> <tbody> {data?.data?.map((brand, index) => ( <tr> <th scope="row">{index + 1}</th> <td>{brand.name}</td> <td>{brand.email}</td> <td> <img src={`http://dev1.solashi.com:8001/storage/${brand?.logo_path}`} alt="logo" style={{ width: "100px", height: "100px" }} /> </td> <td>{brand?.category?.name}</td> <td>{new Date(brand.created_at).toLocaleDateString("ja-JP")}</td> <td> {brand.is_active ? ( "" ) : ( <> <button type="button" class="btn btn-labeled btn-success mr-2" onClick={() => handleAccept(brand.id)} > 承認 </button> <button type="button" class="btn btn-labeled btn-danger" onClick={() => handleReject(brand.id)} > 拒絶 </button> </> )} </td> </tr> ))} </tbody> </table> </div> ); }; export default Brand;
27.145455
82
0.433356
4acf8c12a640b940c22da2709802c29a2fd57332
441
js
JavaScript
grunt/config/sass.js
tagCincy/foundation
068c579008e370b515d508aec9ec35836e4a42d0
[ "MIT" ]
1
2019-06-27T07:15:19.000Z
2019-06-27T07:15:19.000Z
grunt/config/sass.js
tagCincy/foundation
068c579008e370b515d508aec9ec35836e4a42d0
[ "MIT" ]
5
2019-07-24T18:10:18.000Z
2019-07-24T18:10:20.000Z
grunt/config/sass.js
tagCincy/foundation
068c579008e370b515d508aec9ec35836e4a42d0
[ "MIT" ]
1
2015-08-13T18:45:10.000Z
2015-08-13T18:45:10.000Z
// https://github.com/gruntjs/grunt-contrib-sass module.exports = { dist: { options: { loadPath: ['<%= paths.sassLoad %>'], bundleExec: true }, files: { '<%= paths.dist %>assets/css/foundation.css': '<%= files.scss %>', '<%= paths.dist %>assets/css/normalize.css': '<%= paths.scss %>normalize.scss', '<%= paths.dist %>docs/assets/css/docs.css': '<%= paths.doc %>assets/scss/docs.scss' } } };
31.5
90
0.562358
4ad1230f6693deb7e0553ab299c35b3e21e7423a
161
js
JavaScript
lib/command/version.js
icatalina/node-chupakabra
2519abab33d361eb97863b97b800fd0a6e54350e
[ "MIT" ]
null
null
null
lib/command/version.js
icatalina/node-chupakabra
2519abab33d361eb97863b97b800fd0a6e54350e
[ "MIT" ]
2
2022-01-09T03:57:26.000Z
2022-01-13T01:18:35.000Z
lib/command/version.js
icatalina/node-chupakabra
2519abab33d361eb97863b97b800fd0a6e54350e
[ "MIT" ]
1
2022-01-09T04:50:04.000Z
2022-01-09T04:50:04.000Z
'use strict'; const info = require('../../package.json'); /** * Exibe a versão do pacote. */ module.exports = function() { console.log(info.version); };
13.416667
43
0.608696
4ad17b1dea568adf9679afdf601412a3628fdd65
932
js
JavaScript
public/router.js
gitoneman/angular-template
8f74f52ce5c272c8d047629c89aa8d61a4bad881
[ "MIT" ]
null
null
null
public/router.js
gitoneman/angular-template
8f74f52ce5c272c8d047629c89aa8d61a4bad881
[ "MIT" ]
null
null
null
public/router.js
gitoneman/angular-template
8f74f52ce5c272c8d047629c89aa8d61a4bad881
[ "MIT" ]
null
null
null
angular.module('app.router', [ 'ui.router' ]) .config(function ($locationProvider,$stateProvider, $urlRouterProvider) { // // Now set up the states $stateProvider .state('home', { url: "/home", templateUrl: "home/homeTemplate.html", controller: 'homeController' }) .state('home.dashboard', { url: "/dashboard", templateUrl: "dashboard/dashboardTemplate.html", controller: 'dashboardController' }) .state('asset', { url: "/asset", templateUrl: "asset/assetTemplate.html", controller: 'assetController' }) .state('rule', { url: "/rule", templateUrl: "rule/ruleTemplate.html", controller: 'ruleController' }) .state('system', { url: "/system", templateUrl: "system/systemTemplate.html", controller: 'systemController' }) $urlRouterProvider.otherwise("/home"); })
25.888889
73
0.589056
4ad1d4484c3077dfe4fab2766e8a9fdacab1cfc4
1,797
js
JavaScript
lib/ClientEndpoint.js
cameronwp/client-endpoint
4937f25feea38650bcff4d7a86995ddd713f9d3b
[ "Apache-2.0" ]
null
null
null
lib/ClientEndpoint.js
cameronwp/client-endpoint
4937f25feea38650bcff4d7a86995ddd713f9d3b
[ "Apache-2.0" ]
null
null
null
lib/ClientEndpoint.js
cameronwp/client-endpoint
4937f25feea38650bcff4d7a86995ddd713f9d3b
[ "Apache-2.0" ]
null
null
null
'use strict'; const io = require('socket.io-client'); const Endpoint = require('@cameronwp/endpoint'); /** * Exposes a wrapper around a socket.io client connection to a server. * @param {string} location * @class ClientEndpoint * @extends {Endpoint} */ class ClientEndpoint extends Endpoint { constructor(location) { super(); // this._socket is likely a namespaced socket this._socket = io.connect(location); this._socket.on('connect', this._newConnection); this._socket.on('disconnect', this._lostConnection); // acknowledges message receipt this._socket.on('message', (msg, cb = () => {}) => { this._publish(msg.type, msg.data); cb(); }); this._socket.on('packet', packet => { this._publish('packet', packet); }); } /** * Post a message to the server. Resolves when the message is acknowledged. Nothing is sent to the acknowledgement. * @param {string} type Type of message to send to the server. * @param {*} [data] Contents of the message. * @return {Promise} Promise that resolves when the server acknowledges the message. */ postMessage(type, data = '') { const socket = this._socket; return new Promise(resolve => { const msg = {}; msg.type = type; msg.data = data; socket.emit('message', msg, resolve); }); } /** * Send a request. Returns a promise that resolves to the response. * @param {string} type Info you are requesting. * @param {string} [key] nconf style key * @return {Promise} Promise that receives the response. */ request(type, key) { const socket = this._socket; const msg = {type, key}; return new Promise(resolve => { socket.emit('request', msg, resolve); }); } } module.exports = ClientEndpoint;
29.459016
117
0.640512
4ad2cbac3feab9d8439abc182a21f78841f894bc
2,773
js
JavaScript
sites/src/js/view/components/left-navi.js
nao2b/jiji2
bc2149a34c7a97b7272192fe7e1bdd2cd35e7a9d
[ "Unlicense" ]
241
2015-03-25T03:32:28.000Z
2022-03-11T07:09:50.000Z
sites/src/js/view/components/left-navi.js
nao2b/jiji2
bc2149a34c7a97b7272192fe7e1bdd2cd35e7a9d
[ "Unlicense" ]
53
2016-01-10T06:46:14.000Z
2020-07-13T01:33:32.000Z
sites/src/js/view/components/left-navi.js
nao2b/jiji2
bc2149a34c7a97b7272192fe7e1bdd2cd35e7a9d
[ "Unlicense" ]
73
2016-01-19T17:29:00.000Z
2021-12-21T12:29:16.000Z
import React from "react" import { Router } from 'react-router' import {List, ListItem} from "material-ui/List" import Divider from "material-ui/Divider" import Subheader from 'material-ui/Subheader' import Environment from "../environment" export default class LeftNavi extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const currentRoute = this.getCurrntRoute(); if (currentRoute && currentRoute.fullscreen) { return null; } else { const lists = this.createLists(); return ( <div className="left-navi"> {lists} </div> ); } } getCurrntRoute() { return this.navigator().menuItems().find( (item) => item.route && this.isActive(item.route)); } createLists() { let lists = []; let buffer = []; let label = ""; this.navigator().menuItems().forEach((item)=> { if (item.type === "header") { lists.push(this.createList( label, buffer, lists.length)); lists.push(<Divider key={lists.length+"_divider"}/>); buffer = []; label = item.text; } else{ if (item.hidden !== true) buffer.push( this.createListItem(item) ); } }); lists.push(this.createList( label, buffer, lists.length)); return lists; } createList(label, items, index) { return <List key={index} style={this.createListStyle(label)}> <Subheader>{label}</Subheader> {items} </List>; } createListStyle(hasLabel) { return hasLabel ? {} : { paddingTop: this.context.muiTheme.spacing.grid }; } createListItem(item, index) { const selected = this.isActive(item.route); const action = (e) => this.onLeftNavChange(e, null, item); const icon = <div className={ "menu-icon " + item.iconClassName} />; return Environment.get().createListItem({ key: item.route, className: "mui-menu-item" + (selected ? " mui-is-selected" : ""), leftIcon: icon, primaryText: item.text, onTouchTap: action }); } isActive(route) { if (route == null) return false; const indexOnly = route === "/"; return this.router().isActive({ pathname:route }, indexOnly); } onLeftNavChange(e, key, payload) { this.router().push({pathname: payload.route}); this.googleAnalytics().sendEvent("view " + payload.route); } navigator() { return this.context.application.navigator; } googleAnalytics() { return this.context.application.googleAnalytics; } router() { return this.context.router; } } LeftNavi.contextTypes = { application: React.PropTypes.object.isRequired, router: React.PropTypes.object.isRequired, muiTheme: React.PropTypes.object.isRequired };
26.92233
78
0.621709
4ad2cfb618236c4c8c1134597b4e822549eaeef1
224
js
JavaScript
powerauth-webflow/src/main/js/reducers/index.js
kojotak/powerauth-webflow
03f8af15a6762a20fd125ab45259e5f0b1134b23
[ "Apache-2.0" ]
null
null
null
powerauth-webflow/src/main/js/reducers/index.js
kojotak/powerauth-webflow
03f8af15a6762a20fd125ab45259e5f0b1134b23
[ "Apache-2.0" ]
null
null
null
powerauth-webflow/src/main/js/reducers/index.js
kojotak/powerauth-webflow
03f8af15a6762a20fd125ab45259e5f0b1134b23
[ "Apache-2.0" ]
null
null
null
import {combineReducers} from 'redux'; import dispatching from './dispatchingReducer' import locale from './localeReducer' /** * Combining reducer. */ export default combineReducers({ dispatching, intl: locale })
18.666667
46
0.727679
4ad2e27a4500bc2759d1a562b123a3b7859cc902
2,643
js
JavaScript
test/acceptance/within_test.js
rlewan/CodeceptJS
17d12e21edfc56ef80c7f9d3082cb421da94cdb3
[ "MIT" ]
3
2018-12-14T23:57:47.000Z
2019-05-30T08:11:17.000Z
test/acceptance/within_test.js
rlewan/CodeceptJS
17d12e21edfc56ef80c7f9d3082cb421da94cdb3
[ "MIT" ]
null
null
null
test/acceptance/within_test.js
rlewan/CodeceptJS
17d12e21edfc56ef80c7f9d3082cb421da94cdb3
[ "MIT" ]
1
2018-12-14T23:57:57.000Z
2018-12-14T23:57:57.000Z
Feature('within'); Scenario('within on form @WebDriverIO @protractor @nightmare', (I) => { I.amOnPage('/form/bug1467'); I.see('TEST TEST'); within({css: '[name=form2]'}, () => { I.checkOption('Yes'); I.seeCheckboxIsChecked({css: "input[name=first_test_radio]"}); }); I.seeCheckboxIsChecked({css: "form[name=form2] input[name=first_test_radio]"}); I.dontSeeCheckboxIsChecked({css: "form[name=form1] input[name=first_test_radio]"}); }); Scenario('within on iframe @WebDriverIO', (I) => { I.amOnPage('/iframe'); within({frame: 'iframe'}, () => { I.fillField('rus', 'Updated'); I.click('Sign in!'); I.see('Email Address'); }); I.see('Iframe test'); I.dontSee('Email Address'); }); Scenario('within on iframe (without iframe navigation) @WebDriverIO @nightmare', (I) => { I.amOnPage('/iframe'); within({frame: 'iframe'}, () => { I.fillField('rus', 'Updated'); I.see('Sign in!'); }); I.see('Iframe test'); I.dontSee('Sign in!'); }); Scenario('within on nested iframe (without iframe navigation) (depth=2) @WebDriverIO @nightmare', (I) => { I.amOnPage('/iframe_nested'); within({frame: ['[name=wrapper]', '[name=content]']}, () => { I.fillField('rus', 'Updated'); I.see('Sign in!'); }); I.see('Nested Iframe test'); I.dontSee('Sign in!'); }); Scenario('within on nested iframe (depth=1) @WebDriverIO', (I) => { I.amOnPage('/iframe'); within({frame: ['[name=content]']}, () => { I.fillField('rus', 'Updated'); I.click('Sign in!'); I.see('Email Address'); }); I.see('Iframe test'); I.dontSee('Email Address'); }); Scenario('within on nested iframe (depth=2) @WebDriverIO', (I) => { I.amOnPage('/iframe_nested'); within({frame: ['[name=wrapper]', '[name=content]']}, () => { I.fillField('rus', 'Updated'); I.click('Sign in!'); I.see('Email Address'); }); I.see('Nested Iframe test'); I.dontSee('Email Address'); }); Scenario('within on nested iframe (depth=2) and mixed id and xpath selector @WebDriverIO', (I) => { I.amOnPage('/iframe_nested'); within({frame: ['#wrapperId', '[name=content]']}, () => { I.fillField('rus', 'Updated'); I.click('Sign in!'); I.see('Email Address'); }); I.see('Nested Iframe test'); I.dontSee('Email Address'); }); Scenario('within on nested iframe (depth=2) and mixed class and xpath selector @WebDriverIO', (I) => { I.amOnPage('/iframe_nested'); within({frame: ['.wrapperClass', '[name=content]']}, () => { I.fillField('rus', 'Updated'); I.click('Sign in!'); I.see('Email Address'); }); I.see('Nested Iframe test'); I.dontSee('Email Address'); });
30.37931
106
0.602724
4ad3421cb102153f47ed6c7cca08303970000174
544
js
JavaScript
constants.js
maqamylee0/mpampe-ian-version
478548fb8f64753978d485471e5c874e8146e129
[ "MIT" ]
null
null
null
constants.js
maqamylee0/mpampe-ian-version
478548fb8f64753978d485471e5c874e8146e129
[ "MIT" ]
null
null
null
constants.js
maqamylee0/mpampe-ian-version
478548fb8f64753978d485471e5c874e8146e129
[ "MIT" ]
null
null
null
module.exports = Object.freeze({ database: { url: process.env.MPAMPE_MONGODB_SERVER || "mongodb://localhost", name: process.env.DATABASE_NAME || "mpa-mpe", connectRetry: 5, }, SECRET_KEY: "dsW7UoHqhl1FnQJmXm75NgpGb8243z7s", DEFAULT_ADMIN: { USERNAME: "admin", PASSWORD: "admin", }, MOJALOOP: { url: process.env.MOJALOOP_URL || "http://jcash-sdk-scheme-adapter-outbound.sandbox.mojaloop.io", idType: process.env.ID_TYPE || "MSISDN", idValue: process.env.ID_VALUE || "589408120", }, });
25.904762
69
0.654412
4ad35844ff86e520744fe48d1775b44aa6c0bf7d
366
js
JavaScript
src/components/Text/Text.js
agm-dev/speech-to-twitter
58066287df6622e2aaab708c9a2c68b41236ff61
[ "MIT" ]
null
null
null
src/components/Text/Text.js
agm-dev/speech-to-twitter
58066287df6622e2aaab708c9a2c68b41236ff61
[ "MIT" ]
null
null
null
src/components/Text/Text.js
agm-dev/speech-to-twitter
58066287df6622e2aaab708c9a2c68b41236ff61
[ "MIT" ]
null
null
null
import React from 'react'; import ResizableTextarea from '../ResizableTextarea/ResizableTextarea'; const RawText = ({ text }) => <div className="app__text app__section">{text}</div>; const Text = ({ text, editable, onEdit, rows }) => ( editable ? <ResizableTextarea text={text} onEdit={onEdit} rows={rows}/> : <RawText text={text}/> ); export default Text;
28.153846
83
0.691257
4ad3ddeda0d2aa8fc241cebcc013efd2f0af8989
168
js
JavaScript
backend/lib/fake/constants.js
vjagaro/neo.pujas.live
fe89921f2e285e69ea7441eda1cec5aa38a60ac1
[ "CC0-1.0" ]
1
2021-07-31T23:39:44.000Z
2021-07-31T23:39:44.000Z
backend/lib/fake/constants.js
vjagaro/neo.pujas.live
fe89921f2e285e69ea7441eda1cec5aa38a60ac1
[ "CC0-1.0" ]
71
2021-01-23T21:07:41.000Z
2021-03-22T16:09:25.000Z
backend/lib/fake/constants.js
vjagaro/neo.pujas.live
fe89921f2e285e69ea7441eda1cec5aa38a60ac1
[ "CC0-1.0" ]
2
2021-01-23T11:35:48.000Z
2021-01-24T07:08:56.000Z
module.exports = { ADMIN_USER_COUNT: 1, CHANNEL_COUNT: 10, GROUP_COUNT: 10, IMAGE_COUNT: 10, MONASTERY_COUNT: 10, RECORDING_COUNT: 200, USER_COUNT: 1, };
16.8
23
0.696429
4ad44850eece8e3692b1200d8cb16034f5b99779
1,798
js
JavaScript
src/main/webapp/js/scroll/smoothscroll.js
heartqiuchao/finnace
8904fae34090afc5af8a733a6d399b17f9f5d842
[ "Apache-2.0" ]
null
null
null
src/main/webapp/js/scroll/smoothscroll.js
heartqiuchao/finnace
8904fae34090afc5af8a733a6d399b17f9f5d842
[ "Apache-2.0" ]
null
null
null
src/main/webapp/js/scroll/smoothscroll.js
heartqiuchao/finnace
8904fae34090afc5af8a733a6d399b17f9f5d842
[ "Apache-2.0" ]
null
null
null
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 3={L:i(){4 b=6.I("a");J(4 a=0;a<b.O;a++){4 c=b[a];2((c.H&&c.H.1c("#")!=-1)&&((c.p==r.p)||("/"+c.p==r.p))&&(c.G==r.G)){3.u(c,"18",3.F)}}},F:i(h){2(5.9){8=5.9.1a}o{2(h){8=h.8}o{7}}2(8.D.E()!="a"){8=8.15}2(8.D.E()!="a"){7}m=8.W.14(1);4 g=6.I("a");4 a=12;J(4 f=0;f<g.O;f++){4 j=g[f];2(j.N&&(j.N==m)){a=j;1d}}2(!a){a=6.1l(m)}2(!a){7 t}4 c=a.M;4 b=a.K;4 d=a;1j(d.x&&(d.x!=6.n)){d=d.x;c+=d.M;b+=d.K}X(3.w);C=3.k();P=1f((b-C)/3.R);3.w=1e("3.A("+P+","+b+\',"\'+m+\'")\',10);2(5.9){5.9.1g=t;5.9.1h=1i}2(h&&h.y&&h.B){h.y();h.B()}},A:i(a,c,b){q=3.k();z=(q<c);5.T(0,q+a);s=3.k();Q=(s<c);2((z!=Q)||(q==s)){5.T(0,c);X(3.w);r.W=b}},k:i(){2(6.n&&6.n.l){7 6.n.l}2(6.v&&6.v.l){7 6.v.l}2(5.U){7 5.U}7 0},u:i(e,d,b,a){2(e.V){e.V(d,b,a);7 t}o{2(e.S){4 c=e.S("1k"+d,b);7 c}o{1b("11 Y Z 13 19")}}}};3.R=17;3.u(5,"16",3.L);',62,84,'||if|ss|var|window|document|return|target|event|||||||||function||getCurrentYPos|scrollTop|anchor|body|else|pathname|wascypos|location|iscypos|true|addEvent|documentElement|INTERVAL|offsetParent|preventDefault|isAbove|scrollWindow|stopPropagation|cypos|nodeName|toLowerCase|smoothScroll|search|href|getElementsByTagName|for|offsetTop|fixAllLinks|offsetLeft|name|length|ss_stepsize|isAboveNow|STEPS|attachEvent|scrollTo|pageYOffset|addEventListener|hash|clearInterval|could|not||Handler|null|be|substr|parentNode|load|25|click|removed|srcElement|alert|indexOf|break|setInterval|parseInt|cancelBubble|returnValue|false|while|on|getElementById'.split('|'),0,{}))
1,798
1,798
0.60178
4ad768587652998f9288c673ff214fa2d8c4fe2f
77
js
JavaScript
src/components/Icons/IconDropDown/index.js
matthewhall/fseui
f7bd16fa08ef79221135974752fb5a4f96a0ad2c
[ "MIT" ]
2
2020-05-17T23:10:07.000Z
2020-05-21T06:49:02.000Z
src/components/Icons/IconDropDown/index.js
matthewhall/fseui
f7bd16fa08ef79221135974752fb5a4f96a0ad2c
[ "MIT" ]
4
2020-05-21T08:26:56.000Z
2022-02-19T00:57:50.000Z
src/components/Icons/IconDropDown/index.js
matthewhall/fseui
f7bd16fa08ef79221135974752fb5a4f96a0ad2c
[ "MIT" ]
null
null
null
import IconDropDown from './IconDropDown.vue'; export default IconDropDown;
19.25
46
0.805195
4ad83ac01ddbcd9e2ebba1de55471cddc32a11d4
2,668
js
JavaScript
src/make/res/test_package.templ.js
doodadjs/doodad-js-make
83b09973e762016175775eb054a63112edc059f5
[ "Apache-2.0" ]
null
null
null
src/make/res/test_package.templ.js
doodadjs/doodad-js-make
83b09973e762016175775eb054a63112edc059f5
[ "Apache-2.0" ]
null
null
null
src/make/res/test_package.templ.js
doodadjs/doodad-js-make
83b09973e762016175775eb054a63112edc059f5
[ "Apache-2.0" ]
null
null
null
//! BEGIN_MODULE() //! REPLACE_BY("// Copyright 2015-2018 Claude Petit, licensed under Apache License version 2.0\n", true) // doodad-js - Object-oriented programming framework // File: test_package.js - Test package file // Project home: https://github.com/doodadjs/ // Author: Claude Petit, Quebec city // Contact: doodadjs [at] gmail.com // Note: I'm still in alpha-beta stage, so expect to find some bugs or incomplete parts ! // License: Apache V2 // // Copyright 2015-2018 Claude Petit // // 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. //! END_REPLACE() "use strict"; exports.add = function add(modules) { modules = modules || {}; modules[/*! INJECT(TO_SOURCE(MANIFEST("name") + "/tests")) */] = { version: /*! INJECT(TO_SOURCE(VERSION(MANIFEST("name")))) */, type: 'TestPackage', dependencies: /*! INJECT(TO_SOURCE(VAR("dependencies"), 2)) */, create: function create(root, /*optional*/_options, _shared) { //! IF_SET("serverSide") const doodad = root.Doodad, types = doodad.Types, modules = doodad.Modules; const files = []; //! FOR_EACH(VAR("modules"), "mod") //! IF(!VAR("mod.manual") && !VAR("mod.exclude")) files.push({ module: /*! INJECT(TO_SOURCE(MANIFEST("name"))) */, path: /*! INJECT(TO_SOURCE(VAR("mod.dest"))) */, optional: /*! INJECT(TO_SOURCE(VAR("mod.optional"))) */, }); //! END_IF() //! END_FOR() return modules.load(files, [_options, {startup: {secret: _shared.SECRET}}]) .then(function() { // Returns nothing }); //! ELSE() let DD_MODULES = {}, DD_EXPORTS = null; // NOTE: The bundle will fill "DD_MODULES". //! INCLUDE(VAR("bundle"), 'utf-8', true) return (function(mods) { const options = [/*! (VAR("config") ? INCLUDE(VAR("config"), 'utf-8') : INJECT("null")) */, _options, {startup: {secret: _shared.SECRET}}]; DD_MODULES = null; // free memory DD_EXPORTS = null; // free memory return root.Doodad.Namespaces.load(mods, options) .then(function() { // Returns nothing }); })(DD_MODULES); //! END_IF() }, }; return modules; }; //! END_MODULE()
31.023256
144
0.636807
4ad85a5c540961ae699b4085a191cc209cdf519c
88,207
js
JavaScript
20211SVAC/G05/docs/bundle.js
gtcaps/tytusx
7e2e2d8364f81338c3cc9e57a4cbad58dc96188a
[ "MIT" ]
null
null
null
20211SVAC/G05/docs/bundle.js
gtcaps/tytusx
7e2e2d8364f81338c3cc9e57a4cbad58dc96188a
[ "MIT" ]
null
null
null
20211SVAC/G05/docs/bundle.js
gtcaps/tytusx
7e2e2d8364f81338c3cc9e57a4cbad58dc96188a
[ "MIT" ]
2
2021-06-12T05:18:28.000Z
2021-06-14T18:44:16.000Z
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.myBundle = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ (function (process){(function (){ /* parser generated by jison 0.4.18 */ /* Returns a Parser object of the following structure: Parser: { yy: {} } Parser.prototype: { yy: {}, trace: function(), symbols_: {associative list: name ==> number}, terminals_: {associative list: number ==> name}, productions_: [...], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$), table: [...], defaultActions: {...}, parseError: function(str, hash), parse: function(input), lexer: { EOF: 1, parseError: function(str, hash), setInput: function(input), input: function(), unput: function(str), more: function(), less: function(n), pastInput: function(), upcomingInput: function(), showPosition: function(), test_match: function(regex_match_array, rule_index), next: function(), lex: function(), begin: function(condition), popState: function(), _currentRules: function(), topState: function(), pushState: function(condition), options: { ranges: boolean (optional: true ==> token location info will include a .range[] member) flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match) backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code) }, performAction: function(yy, yy_, $avoiding_name_collisions, YY_START), rules: [...], conditions: {associative list: name ==> set}, } } token location info (@$, _$, etc.): { first_line: n, last_line: n, first_column: n, last_column: n, range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based) } the parseError function receives a 'hash' object with these members for lexer and parser errors: { text: (matched text) token: (the produced terminal token, if any) line: (yylineno) } while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: { loc: (yylloc) expected: (string describing the set of expected tokens) recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error) } */ var gramaticaXML = (function(){ var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[5,7,13,17],$V3=[16,19],$V4=[1,14],$V5=[14,16,19],$V6=[1,33],$V7=[1,25],$V8=[1,26],$V9=[1,27],$Va=[1,28],$Vb=[1,29],$Vc=[1,30],$Vd=[1,31],$Ve=[1,32],$Vf=[9,14,17,24,25,26,27,28,29,30]; var parser = {trace: function trace () { }, yy: {}, symbols_: {"error":2,"START":3,"ROOTS":4,"EOF":5,"ROOT":6,"prologo":7,"RVERSION":8,"asig":9,"StringLiteral1":10,"RENCODING":11,"prologc":12,"lt":13,"identifier":14,"LIST_ATRIBUTOS":15,"gt":16,"etiqca":17,"CONTENTS":18,"etiqcc":19,"ATRIBUTOS":20,"ATRIBUTO":21,"StringLiteral2":22,"BODY":23,"DoubleLiteral":24,"less":25,"greater":26,"ampersand":27,"apostrophe":28,"quotation":29,"simbolos1":30,"$accept":0,"$end":1}, terminals_: {2:"error",5:"EOF",7:"prologo",8:"RVERSION",9:"asig",10:"StringLiteral1",11:"RENCODING",12:"prologc",13:"lt",14:"identifier",16:"gt",17:"etiqca",19:"etiqcc",22:"StringLiteral2",24:"DoubleLiteral",25:"less",26:"greater",27:"ampersand",28:"apostrophe",29:"quotation",30:"simbolos1"}, productions_: [0,[3,2],[4,2],[4,1],[6,8],[6,8],[6,8],[6,7],[6,4],[15,1],[15,0],[20,2],[20,1],[21,3],[21,3],[18,2],[18,1],[23,1],[23,1],[23,1],[23,1],[23,1],[23,1],[23,1],[23,1],[23,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { case 1: this.$=$$[$0-1]; console.log($$[$0-1]); return this.$; break; case 2: case 11: $$[$0-1].push($$[$0]); this.$=$$[$0-1]; break; case 3: case 12: this.$=[$$[$0]]; break; case 4: this.$ = new Objeto($$[$0-7],'',_$[$0-7].first_line,_$[$0-7].first_column,[],[],$$[$0-1]); break; case 5: this.$ = new Objeto($$[$0-6],'',_$[$0-7].first_line,_$[$0-7].first_column,$$[$0-5],$$[$0-3],$$[$0-1]); break; case 6: this.$ = new Objeto($$[$0-6],$$[$0-3],_$[$0-7].first_line,_$[$0-7].first_column,$$[$0-5],[],$$[$0-1]) ; console.log('S' + $$[$0-3] + 'G') break; case 7: this.$ = new Objeto($$[$0-5],'',_$[$0-6].first_line,_$[$0-6].first_column,$$[$0-4],[],$$[$0]) ; break; case 8: this.$ = new Objeto($$[$0-2],'',_$[$0-3].first_line,_$[$0-3].first_column,$$[$0-1],[],''); break; case 9: this.$=$$[$0]; break; case 10: this.$=[]; break; case 13: case 14: this.$ = new Atributo($$[$0-2],$$[$0],_$[$0-2].first_line,_$[$0-2].first_column); break; case 15: $$[$0-1] = $$[$0-1] + ' ' + $$[$0]; this.$=$$[$0-1]; break; case 16: this.$ = $$[$0]; break; case 17: case 18: case 24: case 25: this.$ = $$[$0]; break; case 19: this.$ = '<'; break; case 20: this.$ = '>'; break; case 21: this.$ = '&'; break; case 22: this.$ = "'"; break; case 23: this.$ = '"'; break; } }, table: [{3:1,4:2,6:3,7:$V0,13:$V1},{1:[3]},{5:[1,6],6:7,7:$V0,13:$V1},o($V2,[2,3]),{8:[1,8]},{14:[1,9]},{1:[2,1]},o($V2,[2,2]),{9:[1,10]},o($V3,[2,10],{15:11,20:12,21:13,14:$V4}),{10:[1,15]},{16:[1,16],19:[1,17]},o($V3,[2,9],{21:18,14:$V4}),o($V5,[2,12]),{9:[1,19]},{11:[1,20]},{4:21,6:3,7:$V0,9:$V6,13:$V1,14:$V7,17:[1,23],18:22,23:24,24:$V8,25:$V9,26:$Va,27:$Vb,28:$Vc,29:$Vd,30:$Ve},o($V2,[2,8]),o($V5,[2,11]),{10:[1,34],22:[1,35]},{9:[1,36]},{6:7,7:$V0,13:$V1,17:[1,37]},{9:$V6,14:$V7,17:[1,38],23:39,24:$V8,25:$V9,26:$Va,27:$Vb,28:$Vc,29:$Vd,30:$Ve},{14:[1,40]},o($Vf,[2,16]),o($Vf,[2,17]),o($Vf,[2,18]),o($Vf,[2,19]),o($Vf,[2,20]),o($Vf,[2,21]),o($Vf,[2,22]),o($Vf,[2,23]),o($Vf,[2,24]),o($Vf,[2,25]),o($V5,[2,13]),o($V5,[2,14]),{10:[1,41]},{14:[1,42]},{14:[1,43]},o($Vf,[2,15]),{16:[1,44]},{12:[1,45]},{16:[1,46]},{16:[1,47]},o($V2,[2,7]),o($V2,[2,4]),o($V2,[2,5]),o($V2,[2,6])], defaultActions: {6:[2,1]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); } else { var error = new Error(str); error.hash = hash; throw error; } }, parse: function parse(input) { var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; var args = lstack.slice.call(arguments, 1); var lexer = Object.create(this.lexer); var sharedState = { yy: {} }; for (var k in this.yy) { if (Object.prototype.hasOwnProperty.call(this.yy, k)) { sharedState.yy[k] = this.yy[k]; } } lexer.setInput(input, sharedState.yy); sharedState.yy.lexer = lexer; sharedState.yy.parser = this; if (typeof lexer.yylloc == 'undefined') { lexer.yylloc = {}; } var yyloc = lexer.yylloc; lstack.push(yyloc); var ranges = lexer.options && lexer.options.ranges; if (typeof sharedState.yy.parseError === 'function') { this.parseError = sharedState.yy.parseError; } else { this.parseError = Object.getPrototypeOf(this).parseError; } function popStack(n) { stack.length = stack.length - 2 * n; vstack.length = vstack.length - n; lstack.length = lstack.length - n; } _token_stack: var lex = function () { var token; token = lexer.lex() || EOF; if (typeof token !== 'number') { token = self.symbols_[token] || token; } return token; }; var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; while (true) { state = stack[stack.length - 1]; if (this.defaultActions[state]) { action = this.defaultActions[state]; } else { if (symbol === null || typeof symbol == 'undefined') { symbol = lex(); } action = table[state] && table[state][symbol]; } if (typeof action === 'undefined' || !action.length || !action[0]) { var errStr = ''; expected = []; for (p in table[state]) { if (this.terminals_[p] && p > TERROR) { expected.push('\'' + this.terminals_[p] + '\''); } } if (lexer.showPosition) { errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\''; } else { errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\''); } this.parseError(errStr, { text: lexer.match, token: this.terminals_[symbol] || symbol, line: lexer.yylineno, loc: yyloc, expected: expected }); } if (action[0] instanceof Array && action.length > 1) { throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol); } switch (action[0]) { case 1: stack.push(symbol); vstack.push(lexer.yytext); lstack.push(lexer.yylloc); stack.push(action[1]); symbol = null; if (!preErrorSymbol) { yyleng = lexer.yyleng; yytext = lexer.yytext; yylineno = lexer.yylineno; yyloc = lexer.yylloc; if (recovering > 0) { recovering--; } } else { symbol = preErrorSymbol; preErrorSymbol = null; } break; case 2: len = this.productions_[action[1]][1]; yyval.$ = vstack[vstack.length - len]; yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column }; if (ranges) { yyval._$.range = [ lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1] ]; } r = this.performAction.apply(yyval, [ yytext, yyleng, yylineno, sharedState.yy, action[1], vstack, lstack ].concat(args)); if (typeof r !== 'undefined') { return r; } if (len) { stack = stack.slice(0, -1 * len * 2); vstack = vstack.slice(0, -1 * len); lstack = lstack.slice(0, -1 * len); } stack.push(this.productions_[action[1]][0]); vstack.push(yyval.$); lstack.push(yyval._$); newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; stack.push(newState); break; case 3: return true; } } return true; }}; const { Objeto } = require('../Interprete/Expresion/Objeto'); const { Atributo } = require('../Interprete/Expresion/Atributo'); /* generated by jison-lex 0.3.4 */ var lexer = (function(){ var lexer = ({ EOF:1, parseError:function parseError(str, hash) { if (this.yy.parser) { this.yy.parser.parseError(str, hash); } else { throw new Error(str); } }, // resets the lexer, sets new input setInput:function (input, yy) { this.yy = yy || this.yy || {}; this._input = input; this._more = this._backtrack = this.done = false; this.yylineno = this.yyleng = 0; this.yytext = this.matched = this.match = ''; this.conditionStack = ['INITIAL']; this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }; if (this.options.ranges) { this.yylloc.range = [0,0]; } this.offset = 0; return this; }, // consumes and returns one char from the input input:function () { var ch = this._input[0]; this.yytext += ch; this.yyleng++; this.offset++; this.match += ch; this.matched += ch; var lines = ch.match(/(?:\r\n?|\n).*/g); if (lines) { this.yylineno++; this.yylloc.last_line++; } else { this.yylloc.last_column++; } if (this.options.ranges) { this.yylloc.range[1]++; } this._input = this._input.slice(1); return ch; }, // unshifts one char (or a string) into the input unput:function (ch) { var len = ch.length; var lines = ch.split(/(?:\r\n?|\n)/g); this._input = ch + this._input; this.yytext = this.yytext.substr(0, this.yytext.length - len); //this.yyleng -= len; this.offset -= len; var oldLines = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1); this.matched = this.matched.substr(0, this.matched.length - 1); if (lines.length - 1) { this.yylineno -= lines.length - 1; } var r = this.yylloc.range; this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len }; if (this.options.ranges) { this.yylloc.range = [r[0], r[0] + this.yyleng - len]; } this.yyleng = this.yytext.length; return this; }, // When called from action, caches matched text and appends it on next action more:function () { this._more = true; return this; }, // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. reject:function () { if (this.options.backtrack_lexer) { this._backtrack = true; } else { return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), { text: "", token: null, line: this.yylineno }); } return this; }, // retain first n characters of the match less:function (n) { this.unput(this.match.slice(n)); }, // displays already matched input, i.e. for error messages pastInput:function () { var past = this.matched.substr(0, this.matched.length - this.match.length); return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); }, // displays upcoming input, i.e. for error messages upcomingInput:function () { var next = this.match; if (next.length < 20) { next += this._input.substr(0, 20-next.length); } return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, ""); }, // displays the character position where the lexing error occurred, i.e. for error messages showPosition:function () { var pre = this.pastInput(); var c = new Array(pre.length + 1).join("-"); return pre + this.upcomingInput() + "\n" + c + "^"; }, // test the lexed token: return FALSE when not a match, otherwise return token test_match:function(match, indexed_rule) { var token, lines, backup; if (this.options.backtrack_lexer) { // save context backup = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }; if (this.options.ranges) { backup.yylloc.range = this.yylloc.range.slice(0); } } lines = match[0].match(/(?:\r\n?|\n).*/g); if (lines) { this.yylineno += lines.length; } this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length }; this.yytext += match[0]; this.match += match[0]; this.matches = match; this.yyleng = this.yytext.length; if (this.options.ranges) { this.yylloc.range = [this.offset, this.offset += this.yyleng]; } this._more = false; this._backtrack = false; this._input = this._input.slice(match[0].length); this.matched += match[0]; token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]); if (this.done && this._input) { this.done = false; } if (token) { return token; } else if (this._backtrack) { // recover context for (var k in backup) { this[k] = backup[k]; } return false; // rule action called reject() implying the next rule should be tested instead. } return false; }, // return next match in input next:function () { if (this.done) { return this.EOF; } if (!this._input) { this.done = true; } var token, match, tempMatch, index; if (!this._more) { this.yytext = ''; this.match = ''; } var rules = this._currentRules(); for (var i = 0; i < rules.length; i++) { tempMatch = this._input.match(this.rules[rules[i]]); if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { match = tempMatch; index = i; if (this.options.backtrack_lexer) { token = this.test_match(tempMatch, rules[i]); if (token !== false) { return token; } else if (this._backtrack) { match = false; continue; // rule action called reject() implying a rule MISmatch. } else { // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace) return false; } } else if (!this.options.flex) { break; } } } if (match) { token = this.test_match(match, rules[index]); if (token !== false) { return token; } // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace) return false; } if (this._input === "") { return this.EOF; } else { return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), { text: "", token: null, line: this.yylineno }); } }, // return next match that has a token lex:function lex () { var r = this.next(); if (r) { return r; } else { return this.lex(); } }, // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) begin:function begin (condition) { this.conditionStack.push(condition); }, // pop the previously active lexer condition state off the condition stack popState:function popState () { var n = this.conditionStack.length - 1; if (n > 0) { return this.conditionStack.pop(); } else { return this.conditionStack[0]; } }, // produce the lexer rule set which is active for the currently active lexer condition state _currentRules:function _currentRules () { if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) { return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules; } else { return this.conditions["INITIAL"].rules; } }, // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available topState:function topState (n) { n = this.conditionStack.length - 1 - Math.abs(n || 0); if (n >= 0) { return this.conditionStack[n]; } else { return "INITIAL"; } }, // alias for begin(condition) pushState:function pushState (condition) { this.begin(condition); }, // return the number of states currently on the stack stateStackSize:function stateStackSize() { return this.conditionStack.length; }, options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { case 0:this.begin('comment'); break; case 1:this.popState(); break; case 2:/* ignora contenido de los comentarios*/ break; case 3:// ignora los espacios en blanco break; case 4:return 7; break; case 5:return 12; break; case 6:return 17; break; case 7:return 19; break; case 8:return 8; break; case 9:return 11 break; case 10:return 25; break; case 11:return 26; break; case 12:return 27; break; case 13:return 28; break; case 14:return 29; break; case 15:return 13; break; case 16:return 16; break; case 17:return 9; break; case 18:return 24; break; case 19:return 10 break; case 20:return 22 break; case 21:return 14; break; case 22:return 30; break; case 23: console.error('Este es un error léxico: ' + yy_.yytext + ', en la linea: ' + yy_.yylloc.first_line + ', en la columna: ' + yy_.yylloc.first_column); break; case 24:return 5 break; } }, rules: [/^(?:<!--)/,/^(?:-->)/,/^(?:.)/,/^(?:\s+)/,/^(?:<\?xml\b)/,/^(?:\?>)/,/^(?:<\/)/,/^(?:\/>)/,/^(?:version\b)/,/^(?:encoding\b)/,/^(?:&lt;)/,/^(?:&gt;)/,/^(?:&amp;)/,/^(?:&apos;)/,/^(?:&quot;)/,/^(?:<)/,/^(?:>)/,/^(?:=)/,/^(?:\d+([.]\d*)?)/,/^(?:"[^\"]*")/,/^(?:'[^\']*')/,/^(?:[a-zA-Z][a-zA-Z0-9_]*)/,/^(?:([\u0021]|[\u0023-\u0025]|[\u0028-\u002F]|[\u003A-\u003B]|[\u003F-\u0040]|[\u005B-\u0060]|[\u007B-\u007E]|[\u00A1-\u00AC]|[\u00AE-\uD7F0])+)/,/^(?:.)/,/^(?:$)/], conditions: {"comment":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"inclusive":true},"INITIAL":{"rules":[0,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"inclusive":true}} }); return lexer; })(); parser.lexer = lexer; function Parser () { this.yy = {}; } Parser.prototype = parser;parser.Parser = Parser; return new Parser; })(); if (typeof require !== 'undefined' && typeof exports !== 'undefined') { exports.parser = gramaticaXML; exports.Parser = gramaticaXML.Parser; exports.parse = function () { return gramaticaXML.parse.apply(gramaticaXML, arguments); }; exports.main = function commonjsMain (args) { if (!args[1]) { console.log('Usage: '+args[0]+' FILE'); process.exit(1); } var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); return exports.parser.parse(source); }; if (typeof module !== 'undefined' && require.main === module) { exports.main(process.argv.slice(1)); } } }).call(this)}).call(this,require('_process')) },{"../Interprete/Expresion/Atributo":4,"../Interprete/Expresion/Objeto":5,"_process":13,"fs":11,"path":12}],2:[function(require,module,exports){ (function (process){(function (){ /* parser generated by jison 0.4.18 */ /* Returns a Parser object of the following structure: Parser: { yy: {} } Parser.prototype: { yy: {}, trace: function(), symbols_: {associative list: name ==> number}, terminals_: {associative list: number ==> name}, productions_: [...], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$), table: [...], defaultActions: {...}, parseError: function(str, hash), parse: function(input), lexer: { EOF: 1, parseError: function(str, hash), setInput: function(input), input: function(), unput: function(str), more: function(), less: function(n), pastInput: function(), upcomingInput: function(), showPosition: function(), test_match: function(regex_match_array, rule_index), next: function(), lex: function(), begin: function(condition), popState: function(), _currentRules: function(), topState: function(), pushState: function(condition), options: { ranges: boolean (optional: true ==> token location info will include a .range[] member) flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match) backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code) }, performAction: function(yy, yy_, $avoiding_name_collisions, YY_START), rules: [...], conditions: {associative list: name ==> set}, } } token location info (@$, _$, etc.): { first_line: n, last_line: n, first_column: n, last_column: n, range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based) } the parseError function receives a 'hash' object with these members for lexer and parser errors: { text: (matched text) token: (the produced terminal token, if any) line: (yylineno) } while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: { loc: (yylloc) expected: (string describing the set of expected tokens) recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error) } */ var gramaticaXMLDSC = (function(){ var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[5,18],$V3=[2,4],$V4=[17,20],$V5=[1,16],$V6=[2,14],$V7=[1,36],$V8=[1,28],$V9=[1,29],$Va=[1,30],$Vb=[1,31],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[5,8,14,18],$Vh=[2,19],$Vi=[10,15,18,27,28,29,30,31,32,33],$Vj=[15,17,20]; var parser = {trace: function trace () { }, yy: {}, symbols_: {"error":2,"START":3,"ROOTS":4,"EOF":5,"ROOT":6,"ROOTS_P":7,"prologo":8,"RVERSION":9,"asig":10,"StringLiteral1":11,"RENCODING":12,"prologc":13,"lt":14,"identifier":15,"LIST_ATRIBUTOS":16,"gt":17,"etiqca":18,"CONTENTS":19,"etiqcc":20,"ATRIBUTOS":21,"ATRIBUTO":22,"ATRIBUTOS_P":23,"StringLiteral2":24,"BODY":25,"CONTENTS_P":26,"DoubleLiteral":27,"less":28,"greater":29,"ampersand":30,"apostrophe":31,"quotation":32,"simbolos1":33,"$accept":0,"$end":1}, terminals_: {2:"error",5:"EOF",8:"prologo",9:"RVERSION",10:"asig",11:"StringLiteral1",12:"RENCODING",13:"prologc",14:"lt",15:"identifier",17:"gt",18:"etiqca",20:"etiqcc",24:"StringLiteral2",27:"DoubleLiteral",28:"less",29:"greater",30:"ampersand",31:"apostrophe",32:"quotation",33:"simbolos1"}, productions_: [0,[3,2],[4,2],[7,2],[7,0],[6,8],[6,8],[6,8],[6,7],[6,4],[16,1],[16,0],[21,2],[23,2],[23,0],[22,3],[22,3],[19,2],[26,2],[26,0],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { case 1: this.$=$$[$0-1]; console.log($$[$0-1]); return this.$; break; case 4: case 14: case 19: this.$ = [] break; case 5: /*this.$ = new Objeto($$[$0-7],'',_$[$0-7].first_line,_$[$0-7].first_column,[],[],$$[$0-1])*/; break; case 6: /*this.$ = new Objeto($$[$0-6],'',_$[$0-7].first_line,_$[$0-7].first_column,$$[$0-5],$$[$0-3],$$[$0-1])*/; break; case 7: /*this.$ = new Objeto($$[$0-6],$$[$0-3],_$[$0-7].first_line,_$[$0-7].first_column,$$[$0-5],[],$$[$0-1])*/; console.log('S' + $$[$0-3] + 'G') break; case 8: /*this.$ = new Objeto($$[$0-5],'',_$[$0-6].first_line,_$[$0-6].first_column,$$[$0-4],[],$$[$0])*/; break; case 9: /*this.$ = new Objeto($$[$0-2],'',_$[$0-3].first_line,_$[$0-3].first_column,$$[$0-1],[],'')*/; break; case 10: case 20: case 21: case 27: case 28: this.$ = $$[$0]; break; case 11: this.$ = []; break; case 15: case 16: /*this.$ = new Atributo($$[$0-2],$$[$0],_$[$0-2].first_line,_$[$0-2].first_column)*/; break; case 18: ; break; case 22: this.$ = '<'; break; case 23: this.$ = '>'; break; case 24: this.$ = '&'; break; case 25: this.$ = "'"; break; case 26: this.$ = '"'; break; } }, table: [{3:1,4:2,6:3,8:$V0,14:$V1},{1:[3]},{5:[1,6]},o($V2,$V3,{7:7,6:8,8:$V0,14:$V1}),{9:[1,9]},{15:[1,10]},{1:[2,1]},o($V2,[2,2]),o($V2,$V3,{6:8,7:11,8:$V0,14:$V1}),{10:[1,12]},o($V4,[2,11],{16:13,21:14,22:15,15:$V5}),o($V2,[2,3]),{11:[1,17]},{17:[1,18],20:[1,19]},o($V4,[2,10]),o($V4,$V6,{23:20,22:21,15:$V5}),{10:[1,22]},{12:[1,23]},{4:24,6:3,8:$V0,10:$V7,14:$V1,15:$V8,18:[1,26],19:25,25:27,27:$V9,28:$Va,29:$Vb,30:$Vc,31:$Vd,32:$Ve,33:$Vf},o($Vg,[2,9]),o($V4,[2,12]),o($V4,$V6,{22:21,23:37,15:$V5}),{11:[1,38],24:[1,39]},{10:[1,40]},{18:[1,41]},{18:[1,42]},{15:[1,43]},{10:$V7,15:$V8,18:$Vh,25:45,26:44,27:$V9,28:$Va,29:$Vb,30:$Vc,31:$Vd,32:$Ve,33:$Vf},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),o($Vi,[2,23]),o($Vi,[2,24]),o($Vi,[2,25]),o($Vi,[2,26]),o($Vi,[2,27]),o($Vi,[2,28]),o($V4,[2,13]),o($Vj,[2,15]),o($Vj,[2,16]),{11:[1,46]},{15:[1,47]},{15:[1,48]},{17:[1,49]},{18:[2,17]},{10:$V7,15:$V8,18:$Vh,25:45,26:50,27:$V9,28:$Va,29:$Vb,30:$Vc,31:$Vd,32:$Ve,33:$Vf},{13:[1,51]},{17:[1,52]},{17:[1,53]},o($Vg,[2,8]),{18:[2,18]},o($Vg,[2,5]),o($Vg,[2,6]),o($Vg,[2,7])], defaultActions: {6:[2,1],44:[2,17],50:[2,18]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); } else { var error = new Error(str); error.hash = hash; throw error; } }, parse: function parse(input) { var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; var args = lstack.slice.call(arguments, 1); var lexer = Object.create(this.lexer); var sharedState = { yy: {} }; for (var k in this.yy) { if (Object.prototype.hasOwnProperty.call(this.yy, k)) { sharedState.yy[k] = this.yy[k]; } } lexer.setInput(input, sharedState.yy); sharedState.yy.lexer = lexer; sharedState.yy.parser = this; if (typeof lexer.yylloc == 'undefined') { lexer.yylloc = {}; } var yyloc = lexer.yylloc; lstack.push(yyloc); var ranges = lexer.options && lexer.options.ranges; if (typeof sharedState.yy.parseError === 'function') { this.parseError = sharedState.yy.parseError; } else { this.parseError = Object.getPrototypeOf(this).parseError; } function popStack(n) { stack.length = stack.length - 2 * n; vstack.length = vstack.length - n; lstack.length = lstack.length - n; } _token_stack: var lex = function () { var token; token = lexer.lex() || EOF; if (typeof token !== 'number') { token = self.symbols_[token] || token; } return token; }; var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; while (true) { state = stack[stack.length - 1]; if (this.defaultActions[state]) { action = this.defaultActions[state]; } else { if (symbol === null || typeof symbol == 'undefined') { symbol = lex(); } action = table[state] && table[state][symbol]; } if (typeof action === 'undefined' || !action.length || !action[0]) { var errStr = ''; expected = []; for (p in table[state]) { if (this.terminals_[p] && p > TERROR) { expected.push('\'' + this.terminals_[p] + '\''); } } if (lexer.showPosition) { errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\''; } else { errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\''); } this.parseError(errStr, { text: lexer.match, token: this.terminals_[symbol] || symbol, line: lexer.yylineno, loc: yyloc, expected: expected }); } if (action[0] instanceof Array && action.length > 1) { throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol); } switch (action[0]) { case 1: stack.push(symbol); vstack.push(lexer.yytext); lstack.push(lexer.yylloc); stack.push(action[1]); symbol = null; if (!preErrorSymbol) { yyleng = lexer.yyleng; yytext = lexer.yytext; yylineno = lexer.yylineno; yyloc = lexer.yylloc; if (recovering > 0) { recovering--; } } else { symbol = preErrorSymbol; preErrorSymbol = null; } break; case 2: len = this.productions_[action[1]][1]; yyval.$ = vstack[vstack.length - len]; yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column }; if (ranges) { yyval._$.range = [ lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1] ]; } r = this.performAction.apply(yyval, [ yytext, yyleng, yylineno, sharedState.yy, action[1], vstack, lstack ].concat(args)); if (typeof r !== 'undefined') { return r; } if (len) { stack = stack.slice(0, -1 * len * 2); vstack = vstack.slice(0, -1 * len); lstack = lstack.slice(0, -1 * len); } stack.push(this.productions_[action[1]][0]); vstack.push(yyval.$); lstack.push(yyval._$); newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; stack.push(newState); break; case 3: return true; } } return true; }}; /* generated by jison-lex 0.3.4 */ var lexer = (function(){ var lexer = ({ EOF:1, parseError:function parseError(str, hash) { if (this.yy.parser) { this.yy.parser.parseError(str, hash); } else { throw new Error(str); } }, // resets the lexer, sets new input setInput:function (input, yy) { this.yy = yy || this.yy || {}; this._input = input; this._more = this._backtrack = this.done = false; this.yylineno = this.yyleng = 0; this.yytext = this.matched = this.match = ''; this.conditionStack = ['INITIAL']; this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }; if (this.options.ranges) { this.yylloc.range = [0,0]; } this.offset = 0; return this; }, // consumes and returns one char from the input input:function () { var ch = this._input[0]; this.yytext += ch; this.yyleng++; this.offset++; this.match += ch; this.matched += ch; var lines = ch.match(/(?:\r\n?|\n).*/g); if (lines) { this.yylineno++; this.yylloc.last_line++; } else { this.yylloc.last_column++; } if (this.options.ranges) { this.yylloc.range[1]++; } this._input = this._input.slice(1); return ch; }, // unshifts one char (or a string) into the input unput:function (ch) { var len = ch.length; var lines = ch.split(/(?:\r\n?|\n)/g); this._input = ch + this._input; this.yytext = this.yytext.substr(0, this.yytext.length - len); //this.yyleng -= len; this.offset -= len; var oldLines = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1); this.matched = this.matched.substr(0, this.matched.length - 1); if (lines.length - 1) { this.yylineno -= lines.length - 1; } var r = this.yylloc.range; this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len }; if (this.options.ranges) { this.yylloc.range = [r[0], r[0] + this.yyleng - len]; } this.yyleng = this.yytext.length; return this; }, // When called from action, caches matched text and appends it on next action more:function () { this._more = true; return this; }, // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. reject:function () { if (this.options.backtrack_lexer) { this._backtrack = true; } else { return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), { text: "", token: null, line: this.yylineno }); } return this; }, // retain first n characters of the match less:function (n) { this.unput(this.match.slice(n)); }, // displays already matched input, i.e. for error messages pastInput:function () { var past = this.matched.substr(0, this.matched.length - this.match.length); return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); }, // displays upcoming input, i.e. for error messages upcomingInput:function () { var next = this.match; if (next.length < 20) { next += this._input.substr(0, 20-next.length); } return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, ""); }, // displays the character position where the lexing error occurred, i.e. for error messages showPosition:function () { var pre = this.pastInput(); var c = new Array(pre.length + 1).join("-"); return pre + this.upcomingInput() + "\n" + c + "^"; }, // test the lexed token: return FALSE when not a match, otherwise return token test_match:function(match, indexed_rule) { var token, lines, backup; if (this.options.backtrack_lexer) { // save context backup = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }; if (this.options.ranges) { backup.yylloc.range = this.yylloc.range.slice(0); } } lines = match[0].match(/(?:\r\n?|\n).*/g); if (lines) { this.yylineno += lines.length; } this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length }; this.yytext += match[0]; this.match += match[0]; this.matches = match; this.yyleng = this.yytext.length; if (this.options.ranges) { this.yylloc.range = [this.offset, this.offset += this.yyleng]; } this._more = false; this._backtrack = false; this._input = this._input.slice(match[0].length); this.matched += match[0]; token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]); if (this.done && this._input) { this.done = false; } if (token) { return token; } else if (this._backtrack) { // recover context for (var k in backup) { this[k] = backup[k]; } return false; // rule action called reject() implying the next rule should be tested instead. } return false; }, // return next match in input next:function () { if (this.done) { return this.EOF; } if (!this._input) { this.done = true; } var token, match, tempMatch, index; if (!this._more) { this.yytext = ''; this.match = ''; } var rules = this._currentRules(); for (var i = 0; i < rules.length; i++) { tempMatch = this._input.match(this.rules[rules[i]]); if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { match = tempMatch; index = i; if (this.options.backtrack_lexer) { token = this.test_match(tempMatch, rules[i]); if (token !== false) { return token; } else if (this._backtrack) { match = false; continue; // rule action called reject() implying a rule MISmatch. } else { // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace) return false; } } else if (!this.options.flex) { break; } } } if (match) { token = this.test_match(match, rules[index]); if (token !== false) { return token; } // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace) return false; } if (this._input === "") { return this.EOF; } else { return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), { text: "", token: null, line: this.yylineno }); } }, // return next match that has a token lex:function lex () { var r = this.next(); if (r) { return r; } else { return this.lex(); } }, // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) begin:function begin (condition) { this.conditionStack.push(condition); }, // pop the previously active lexer condition state off the condition stack popState:function popState () { var n = this.conditionStack.length - 1; if (n > 0) { return this.conditionStack.pop(); } else { return this.conditionStack[0]; } }, // produce the lexer rule set which is active for the currently active lexer condition state _currentRules:function _currentRules () { if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) { return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules; } else { return this.conditions["INITIAL"].rules; } }, // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available topState:function topState (n) { n = this.conditionStack.length - 1 - Math.abs(n || 0); if (n >= 0) { return this.conditionStack[n]; } else { return "INITIAL"; } }, // alias for begin(condition) pushState:function pushState (condition) { this.begin(condition); }, // return the number of states currently on the stack stateStackSize:function stateStackSize() { return this.conditionStack.length; }, options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { case 0:this.begin('comment'); break; case 1:this.popState(); break; case 2:/* ignora contenido de los comentarios*/ break; case 3:// ignora los espacios en blanco break; case 4:return 8; break; case 5:return 13; break; case 6:return 18; break; case 7:return 20; break; case 8:return 9; break; case 9:return 12 break; case 10:return 28; break; case 11:return 29; break; case 12:return 30; break; case 13:return 31; break; case 14:return 32; break; case 15:return 14; break; case 16:return 17; break; case 17:return 10; break; case 18:return 27; break; case 19:return 11 break; case 20:return 24 break; case 21:return 15; break; case 22:return 33; break; case 23: console.error('Este es un error léxico: ' + yy_.yytext + ', en la linea: ' + yy_.yylloc.first_line + ', en la columna: ' + yy_.yylloc.first_column); break; case 24:return 5 break; } }, rules: [/^(?:<!--)/,/^(?:-->)/,/^(?:.)/,/^(?:\s+)/,/^(?:<\?xml\b)/,/^(?:\?>)/,/^(?:<\/)/,/^(?:\/>)/,/^(?:version\b)/,/^(?:encoding\b)/,/^(?:&lt;)/,/^(?:&gt;)/,/^(?:&amp;)/,/^(?:&apos;)/,/^(?:&quot;)/,/^(?:<)/,/^(?:>)/,/^(?:=)/,/^(?:\d+([.]\d*)?)/,/^(?:"[^\"]*")/,/^(?:'[^\']*')/,/^(?:[a-zA-Z][a-zA-Z0-9_]*)/,/^(?:([\u0021]|[\u0023-\u0025]|[\u0028-\u002F]|[\u003A-\u003B]|[\u003F-\u0040]|[\u005B-\u0060]|[\u007B-\u007E]|[\u00A1-\u00AC]|[\u00AE-\uD7F0])+)/,/^(?:.)/,/^(?:$)/], conditions: {"comment":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"inclusive":true},"INITIAL":{"rules":[0,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"inclusive":true}} }); return lexer; })(); parser.lexer = lexer; function Parser () { this.yy = {}; } Parser.prototype = parser;parser.Parser = Parser; return new Parser; })(); if (typeof require !== 'undefined' && typeof exports !== 'undefined') { exports.parser = gramaticaXMLDSC; exports.Parser = gramaticaXMLDSC.Parser; exports.parse = function () { return gramaticaXMLDSC.parse.apply(gramaticaXMLDSC, arguments); }; exports.main = function commonjsMain (args) { if (!args[1]) { console.log('Usage: '+args[0]+' FILE'); process.exit(1); } var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8"); return exports.parser.parse(source); }; if (typeof module !== 'undefined' && require.main === module) { exports.main(process.argv.slice(1)); } } }).call(this)}).call(this,require('_process')) },{"_process":13,"fs":11,"path":12}],3:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GraficarAST = void 0; class GraficarAST { constructor() { this.cadenaFinal = ""; this.i = 0; this.j = 0; } graficar(arbol) { try { this.cadenaFinal += "digraph G{ node[shape = \"oval\" , style=filled, color=\"yellow\"];\n\n"; this.cadenaFinal += "L_Objetos;\n"; arbol.forEach((objeto) => { let cadenaInterna = ""; if (objeto.identificador1 == "?XML") { //Acciones para el prologo } else { this.cadenaFinal += 'L_Objetos->'; this.cadenaFinal += this.recorrer(objeto); } //this.cadenaFinal += cadenaInterna }); this.cadenaFinal += "\n}"; console.log(this.cadenaFinal); var direccion = encodeURI("https://dreampuf.github.io/GraphvizOnline/#" + this.cadenaFinal); window.open(direccion, '_blank'); } catch (error) { } } recorrer(nodo) { let cadena = ""; this.i++; let padre = "nodo" + this.i; //Con esta linea agregamos el objeto anterior al padre cadena += padre + ";\n"; cadena += padre + "[label = \"" + nodo.identificador1 + "\"];\n"; if (nodo.listaAtributos.length > 0) { nodo.listaAtributos.forEach((atributo) => { this.j++; let atrib = "nodoA" + this.j; //Acciones para graficara tributos a objeto cadena += padre + "->" + atrib + ";\n"; cadena += atrib + "[label =\"" + atributo.identificador + "=" + atributo.valor.replace(/['"]+/g, '') + "\"];\n"; }); } //Verificamos si tiene texto para agregarselo if (nodo.texto != '') { this.i++; let nodoTexto = "nodoT" + this.i; cadena += padre + "->" + nodoTexto + ";\n"; cadena += nodoTexto + "[label =\"" + nodo.texto + "\"];\n"; } if (nodo.listaObjetos.length > 0) { nodo.listaObjetos.forEach((objetoHijo) => { //Con esta linea agregamos el objeto anterior al padre cadena += padre + "->"; cadena += this.recorrer(objetoHijo); }); } return cadena; } } exports.GraficarAST = GraficarAST; },{}],4:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Atributo = void 0; class Atributo { constructor(id, valor, linea, columna) { this.identificador = id; this.valor = valor; this.linea = linea; this.columna = columna; } } exports.Atributo = Atributo; },{}],5:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Objeto = void 0; const Entorno_1 = require("../../Simbolo/Entorno"); class Objeto { constructor(id, texto, linea, columna, listaA, listaO, ide) { this.identificador1 = id; this.texto = texto; this.linea = linea; this.columna = columna; this.listaAtributos = listaA; this.listaObjetos = listaO; this.identificador2 = ide; this.entorno = new Entorno_1.Entorno(null); } } exports.Objeto = Objeto; },{"../../Simbolo/Entorno":7}],6:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resetTE = exports.ELexico = exports.ESintactico = exports.TError = exports.errorLex = exports.errorSin = exports.errorSem = void 0; exports.errorSem = []; exports.errorSin = []; exports.errorLex = []; function Error(tipo, desc, analizador, linea, col) { return { tipo: tipo, descripcion: desc, analizador: analizador, linea: linea, columna: col }; } class TError { constructor() { this.tablaErrores = []; this.semantico = []; this.lexic = []; } agregar(tipo, desc, analizador, linea, col) { const result = Error(tipo, desc, analizador, linea, col); this.tablaErrores.push(result); exports.errorSem.push(result); } imprimir() { let todosErrores = ""; this.tablaErrores.forEach(element => { todosErrores += "[error][ linea: " + element.linea + " columna: " + element.columna + " ] " + element.descripcion + "\n"; }); return todosErrores; } get() { return this.tablaErrores; } } exports.TError = TError; class ESintactico { constructor(tipo, descripcion, analizador, linea, columna) { const result = Error(tipo, descripcion, analizador, linea, columna); exports.errorSin.push(result); } } exports.ESintactico = ESintactico; class ELexico { constructor(tipo, descripcion, analizador, linea, columna) { const result = Error(tipo, descripcion, analizador, linea, columna); exports.errorLex.push(result); } } exports.ELexico = ELexico; function resetTE() { exports.errorSem = []; exports.errorSin = []; exports.errorLex = []; } exports.resetTE = resetTE; },{}],7:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Entorno = void 0; class Entorno { constructor(anterior) { this.tabla = {}; this.anterior = anterior; } agregar(id, simbolo) { id = id.toLowerCase(); simbolo.indentificador = simbolo.indentificador.toLowerCase(); this.tabla[id] = simbolo; } eliminar(id) { id = id.toLowerCase(); for (let e = this; e != null; e = e.anterior) { const value = e.tabla[id]; if (value !== undefined) { delete e.tabla[id]; return true; } } return false; } existe(id) { id = id.toLowerCase(); for (let e = this; e != null; e = e.anterior) { const value = e.tabla[id]; if (value !== undefined) { return true; } } return false; } existeEnActual(id) { id = id.toLowerCase(); if (this.tabla[id] !== undefined) { return true; } return false; } getSimbolo(id) { id = id.toLowerCase(); for (let e = this; e != null; e = e.anterior) { if (e.tabla[id] !== undefined) { return e.tabla[id]; } } return null; } reemplazar(id, nuevoValor) { id = id.toLowerCase(); for (let e = this; e != null; e = e.anterior) { const value = e.tabla[id]; if (value !== undefined) { e.tabla[id] = nuevoValor; } } } } exports.Entorno = Entorno; },{}],8:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Simbolo = void 0; class Simbolo { constructor(tipo, id, linea, columna, value, ent) { this.indentificador = id; this.linea = linea; this.columna = columna; this.tipo = tipo; this.valor = value; this.entorno = ent; } ToString() { return String(this.valor); } } exports.Simbolo = Simbolo; },{}],9:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tipo = void 0; var Tipo; (function (Tipo) { Tipo[Tipo["STRING"] = 0] = "STRING"; Tipo[Tipo["INT"] = 1] = "INT"; Tipo[Tipo["DOUBLE"] = 2] = "DOUBLE"; Tipo[Tipo["BOOL"] = 3] = "BOOL"; Tipo[Tipo["VOID"] = 4] = "VOID"; Tipo[Tipo["STRUCT"] = 5] = "STRUCT"; Tipo[Tipo["ARRAY"] = 6] = "ARRAY"; Tipo[Tipo["ETIQUETA"] = 7] = "ETIQUETA"; Tipo[Tipo["ATRIBUTO"] = 8] = "ATRIBUTO"; Tipo[Tipo["ENCODING"] = 9] = "ENCODING"; })(Tipo = exports.Tipo || (exports.Tipo = {})); },{}],10:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Tipo_js_1 = require("./Simbolo/Tipo.js"); const Entorno_js_1 = require("./Simbolo/Entorno.js"); const Simbolo_js_1 = require("./Simbolo/Simbolo.js"); const GraficarAST_js_1 = require("./Graficador/GraficarAST.js"); const TError_js_1 = require("./Interprete/Util/TError.js"); const gramaticaXML = require('./Analizadores/gramaticaXML.js'); const gramaticaXMLD = require('./Analizadores/gramaticaXMLDSC.js'); let ObjetosXML; let cadenaReporteTS = ` <thead><tr><th scope="col">Nombre</th><th scope="col">Tipo</th><th scope="col">Ambito</th><th scope="col">Fila</th><th scope="col">Columna</th> </tr></thead>`; //Esta funcion es para mientras en lo que sincroniza con la pag function accionesEjecutables() { ejecutarXML(` <?xml version="1.0" encoding="UTF-8" ?> <biblioteca dir="calle 3>5<5" prop="Sergio's"> <libro> <titulo>Libro A</titulo> <autor>Julio &amp;Tommy&amp; Garcia</autor> <fechaPublicacion ano="2001" mes="Enero"/> </libro> <libro> <titulo>Libro B</titulo> <autor>Autor 2 &amp; Autor 3</autor> <descripcion> holi </descripcion> <fechaPublicacion ano="2002" mes="Febrero"/> </libro> </biblioteca> <hemeroteca dir="zona 21" prop="kev" estado="chilera"> </hemeroteca> `); realizarGraficaAST(); tablaErroresFicticia(); } accionesEjecutables(); function ejecutarXML(entrada) { //Parseo para obtener la raiz o raices const objetos = gramaticaXML.parse(entrada); ObjetosXML = objetos; const entornoGlobal = new Entorno_js_1.Entorno(null); //funcion recursiva para manejo de entornos objetos.forEach((objeto) => { if (objeto.identificador1 == "?XML") { //Acciones para el prologo } else { cadenaReporteTS += `<tr>`; llenarTablaXML(objeto, entornoGlobal, null); cadenaReporteTS += `</tr>`; } }); //esta es solo para debug jaja const ent = entornoGlobal; } ; function ejecutarXML_DSC(entrada) { const objetos = gramaticaXMLD.parse(entrada); } ; function llenarTablaXML(objeto, entorno, padre) { //Inicializamos los entornos del objeto const entornoObjeto = new Entorno_js_1.Entorno(null); //Verificamos si tiene atributos para asignarselos if (objeto.listaAtributos.length > 0) { objeto.listaAtributos.forEach((atributo) => { //ESto para el llenada const simbolo = new Simbolo_js_1.Simbolo(Tipo_js_1.Tipo.ATRIBUTO, atributo.identificador, atributo.linea, atributo.columna, atributo.valor.replace(/['"]+/g, ''), entornoObjeto); entornoObjeto.agregar(simbolo.indentificador, simbolo); //Esto es para la graficada de la tabla de simbolos cadenaReporteTS += `<tr>`; cadenaReporteTS += `<td>${simbolo.indentificador}</td><td>Atributo</td><td>${objeto.identificador1}</td><td>${atributo.linea}</td><td>${atributo.columna}</td>`; cadenaReporteTS += `<tr>`; }); } //Verificamos si tiene texto para agregarselo if (objeto.texto != '') { const simbolo = new Simbolo_js_1.Simbolo(Tipo_js_1.Tipo.ATRIBUTO, 'textoInterno', objeto.linea, objeto.columna, objeto.texto, entornoObjeto); entornoObjeto.agregar(simbolo.indentificador, simbolo); //Esto es para la graficada de la tabla de simbolos // cadenaReporteTS+=`<td>${objeto.texto}</td><td>Atributo</td><td>${objeto.identificador1}</td><td>${objeto.linea}</td><td>${objeto.columna}</td>` } //Agregamos al entorno global objeto.entorno = entornoObjeto; const simbolo = new Simbolo_js_1.Simbolo(Tipo_js_1.Tipo.ETIQUETA, objeto.identificador1, objeto.linea, objeto.columna, objeto, entornoObjeto); entorno.agregar(simbolo.indentificador, simbolo); //Esto es para la graficada de la tabla de simbolos let ambitoTS = ""; if (ambitoTS != null) { ambitoTS = objeto.identificador1; } else { ambitoTS = "Global"; } cadenaReporteTS += `<tr>`; cadenaReporteTS += `<td>${objeto.identificador1}</td><td>Objeto</td><td>${ambitoTS}</td><td>${objeto.linea}</td><td>${objeto.columna}</td>`; cadenaReporteTS += `</tr>`; //Verificamos si tiene mas hijos para recorrerlos recursivamente if (objeto.listaObjetos.length > 0) { objeto.listaObjetos.forEach((objetoHijo) => { const resultado = objetoHijo; llenarTablaXML(objetoHijo, entornoObjeto, objetoHijo); }); } } ; function realizarGraficaAST() { const graficador = new GraficarAST_js_1.GraficarAST; graficador.graficar(ObjetosXML); } function tablaErroresFicticia() { new TError_js_1.ELexico('Lexico', "Caracter inesperado \'@\'", 'XML', 1, 1); new TError_js_1.ELexico('Lexico', "Caracter inesperado \'$\'", 'XML', 1, 1); new TError_js_1.ELexico('Lexico', "Caracter inesperado \'%\'", 'XML', 1, 1); new TError_js_1.ELexico('Lexico', "Caracter inesperado \'+\'", 'Xpath', 1, 1); new TError_js_1.ESintactico('Sintactico', "No se esperaba \'@\'", 'XML', 1, 1); let todosErrores = ""; TError_js_1.errorLex.forEach(element => { todosErrores += "[error][ linea: " + element.linea + " columna: " + element.columna + " ] " + element.descripcion + ", Tipo:" + element.tipo + "\n"; }); TError_js_1.errorSin.forEach(element => { todosErrores += "[error][ linea: " + element.linea + " columna: " + element.columna + " ] " + element.descripcion + ", Tipo:" + element.tipo + "\n"; }); console.log(todosErrores); } ejecutarXML_DSC(` <?xml version="1.0" encoding="UTF-8" ?> <biblioteca dir="calle 3>5<5" prop="Sergio's"> <libro> <titulo>Libro A</titulo> <autor>Julio &amp;Tommy&amp; Garcia</autor> <fechaPublicacion ano="2001" mes="Enero"/> </libro> <libro> <titulo>Libro B</titulo> <autor>Autor 2 &amp; Autor 3</autor> <descripcion> holi </descripcion> <fechaPublicacion ano="2002" mes="Febrero"/> </libro> </biblioteca> <hemeroteca dir="zona 21" prop="kev" estado="chilera"> </hemeroteca> `); module.exports = { ejecutarXML, realizarGraficaAST, cadenaReporteTS }; },{"./Analizadores/gramaticaXML.js":1,"./Analizadores/gramaticaXMLDSC.js":2,"./Graficador/GraficarAST.js":3,"./Interprete/Util/TError.js":6,"./Simbolo/Entorno.js":7,"./Simbolo/Simbolo.js":8,"./Simbolo/Tipo.js":9}],11:[function(require,module,exports){ },{}],12:[function(require,module,exports){ (function (process){(function (){ // 'path' module extracted from Node.js v8.11.1 (only the posix part) // transplited with Babel // Copyright Joyent, Inc. and other Node contributors. // // 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. 'use strict'; function assertPath(path) { if (typeof path !== 'string') { throw new TypeError('Path must be a string. Received ' + JSON.stringify(path)); } } // Resolves . and .. elements in a path with directory names function normalizeStringPosix(path, allowAboveRoot) { var res = ''; var lastSegmentLength = 0; var lastSlash = -1; var dots = 0; var code; for (var i = 0; i <= path.length; ++i) { if (i < path.length) code = path.charCodeAt(i); else if (code === 47 /*/*/) break; else code = 47 /*/*/; if (code === 47 /*/*/) { if (lastSlash === i - 1 || dots === 1) { // NOOP } else if (lastSlash !== i - 1 && dots === 2) { if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) { if (res.length > 2) { var lastSlashIndex = res.lastIndexOf('/'); if (lastSlashIndex !== res.length - 1) { if (lastSlashIndex === -1) { res = ''; lastSegmentLength = 0; } else { res = res.slice(0, lastSlashIndex); lastSegmentLength = res.length - 1 - res.lastIndexOf('/'); } lastSlash = i; dots = 0; continue; } } else if (res.length === 2 || res.length === 1) { res = ''; lastSegmentLength = 0; lastSlash = i; dots = 0; continue; } } if (allowAboveRoot) { if (res.length > 0) res += '/..'; else res = '..'; lastSegmentLength = 2; } } else { if (res.length > 0) res += '/' + path.slice(lastSlash + 1, i); else res = path.slice(lastSlash + 1, i); lastSegmentLength = i - lastSlash - 1; } lastSlash = i; dots = 0; } else if (code === 46 /*.*/ && dots !== -1) { ++dots; } else { dots = -1; } } return res; } function _format(sep, pathObject) { var dir = pathObject.dir || pathObject.root; var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || ''); if (!dir) { return base; } if (dir === pathObject.root) { return dir + base; } return dir + sep + base; } var posix = { // path.resolve([from ...], to) resolve: function resolve() { var resolvedPath = ''; var resolvedAbsolute = false; var cwd; for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { var path; if (i >= 0) path = arguments[i]; else { if (cwd === undefined) cwd = process.cwd(); path = cwd; } assertPath(path); // Skip empty entries if (path.length === 0) { continue; } resolvedPath = path + '/' + resolvedPath; resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/; } // At this point the path should be resolved to a full absolute path, but // handle relative paths to be safe (might happen when process.cwd() fails) // Normalize the path resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute); if (resolvedAbsolute) { if (resolvedPath.length > 0) return '/' + resolvedPath; else return '/'; } else if (resolvedPath.length > 0) { return resolvedPath; } else { return '.'; } }, normalize: function normalize(path) { assertPath(path); if (path.length === 0) return '.'; var isAbsolute = path.charCodeAt(0) === 47 /*/*/; var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/; // Normalize the path path = normalizeStringPosix(path, !isAbsolute); if (path.length === 0 && !isAbsolute) path = '.'; if (path.length > 0 && trailingSeparator) path += '/'; if (isAbsolute) return '/' + path; return path; }, isAbsolute: function isAbsolute(path) { assertPath(path); return path.length > 0 && path.charCodeAt(0) === 47 /*/*/; }, join: function join() { if (arguments.length === 0) return '.'; var joined; for (var i = 0; i < arguments.length; ++i) { var arg = arguments[i]; assertPath(arg); if (arg.length > 0) { if (joined === undefined) joined = arg; else joined += '/' + arg; } } if (joined === undefined) return '.'; return posix.normalize(joined); }, relative: function relative(from, to) { assertPath(from); assertPath(to); if (from === to) return ''; from = posix.resolve(from); to = posix.resolve(to); if (from === to) return ''; // Trim any leading backslashes var fromStart = 1; for (; fromStart < from.length; ++fromStart) { if (from.charCodeAt(fromStart) !== 47 /*/*/) break; } var fromEnd = from.length; var fromLen = fromEnd - fromStart; // Trim any leading backslashes var toStart = 1; for (; toStart < to.length; ++toStart) { if (to.charCodeAt(toStart) !== 47 /*/*/) break; } var toEnd = to.length; var toLen = toEnd - toStart; // Compare paths to find the longest common path from root var length = fromLen < toLen ? fromLen : toLen; var lastCommonSep = -1; var i = 0; for (; i <= length; ++i) { if (i === length) { if (toLen > length) { if (to.charCodeAt(toStart + i) === 47 /*/*/) { // We get here if `from` is the exact base path for `to`. // For example: from='/foo/bar'; to='/foo/bar/baz' return to.slice(toStart + i + 1); } else if (i === 0) { // We get here if `from` is the root // For example: from='/'; to='/foo' return to.slice(toStart + i); } } else if (fromLen > length) { if (from.charCodeAt(fromStart + i) === 47 /*/*/) { // We get here if `to` is the exact base path for `from`. // For example: from='/foo/bar/baz'; to='/foo/bar' lastCommonSep = i; } else if (i === 0) { // We get here if `to` is the root. // For example: from='/foo'; to='/' lastCommonSep = 0; } } break; } var fromCode = from.charCodeAt(fromStart + i); var toCode = to.charCodeAt(toStart + i); if (fromCode !== toCode) break; else if (fromCode === 47 /*/*/) lastCommonSep = i; } var out = ''; // Generate the relative path based on the path difference between `to` // and `from` for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) { if (out.length === 0) out += '..'; else out += '/..'; } } // Lastly, append the rest of the destination (`to`) path that comes after // the common path parts if (out.length > 0) return out + to.slice(toStart + lastCommonSep); else { toStart += lastCommonSep; if (to.charCodeAt(toStart) === 47 /*/*/) ++toStart; return to.slice(toStart); } }, _makeLong: function _makeLong(path) { return path; }, dirname: function dirname(path) { assertPath(path); if (path.length === 0) return '.'; var code = path.charCodeAt(0); var hasRoot = code === 47 /*/*/; var end = -1; var matchedSlash = true; for (var i = path.length - 1; i >= 1; --i) { code = path.charCodeAt(i); if (code === 47 /*/*/) { if (!matchedSlash) { end = i; break; } } else { // We saw the first non-path separator matchedSlash = false; } } if (end === -1) return hasRoot ? '/' : '.'; if (hasRoot && end === 1) return '//'; return path.slice(0, end); }, basename: function basename(path, ext) { if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string'); assertPath(path); var start = 0; var end = -1; var matchedSlash = true; var i; if (ext !== undefined && ext.length > 0 && ext.length <= path.length) { if (ext.length === path.length && ext === path) return ''; var extIdx = ext.length - 1; var firstNonSlashEnd = -1; for (i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else { if (firstNonSlashEnd === -1) { // We saw the first non-path separator, remember this index in case // we need it if the extension ends up not matching matchedSlash = false; firstNonSlashEnd = i + 1; } if (extIdx >= 0) { // Try to match the explicit extension if (code === ext.charCodeAt(extIdx)) { if (--extIdx === -1) { // We matched the extension, so mark this as the end of our path // component end = i; } } else { // Extension does not match, so our result is the entire path // component extIdx = -1; end = firstNonSlashEnd; } } } } if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length; return path.slice(start, end); } else { for (i = path.length - 1; i >= 0; --i) { if (path.charCodeAt(i) === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { // We saw the first non-path separator, mark this as the end of our // path component matchedSlash = false; end = i + 1; } } if (end === -1) return ''; return path.slice(start, end); } }, extname: function extname(path) { assertPath(path); var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and // after any path separator we find var preDotState = 0; for (var i = path.length - 1; i >= 0; --i) { var code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { // We saw the first non-path separator, mark this as the end of our // extension matchedSlash = false; end = i + 1; } if (code === 46 /*.*/) { // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { return ''; } return path.slice(startDot, end); }, format: function format(pathObject) { if (pathObject === null || typeof pathObject !== 'object') { throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject); } return _format('/', pathObject); }, parse: function parse(path) { assertPath(path); var ret = { root: '', dir: '', base: '', ext: '', name: '' }; if (path.length === 0) return ret; var code = path.charCodeAt(0); var isAbsolute = code === 47 /*/*/; var start; if (isAbsolute) { ret.root = '/'; start = 1; } else { start = 0; } var startDot = -1; var startPart = 0; var end = -1; var matchedSlash = true; var i = path.length - 1; // Track the state of characters (if any) we see before our first dot and // after any path separator we find var preDotState = 0; // Get non-dir info for (; i >= start; --i) { code = path.charCodeAt(i); if (code === 47 /*/*/) { // If we reached a path separator that was not part of a set of path // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; } continue; } if (end === -1) { // We saw the first non-path separator, mark this as the end of our // extension matchedSlash = false; end = i + 1; } if (code === 46 /*.*/) { // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { // We saw a non-dot and non-path separator before our dot, so we should // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot preDotState === 0 || // The (right-most) trimmed path component is exactly '..' preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { if (end !== -1) { if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end); } } else { if (startPart === 0 && isAbsolute) { ret.name = path.slice(1, startDot); ret.base = path.slice(1, end); } else { ret.name = path.slice(startPart, startDot); ret.base = path.slice(startPart, end); } ret.ext = path.slice(startDot, end); } if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/'; return ret; }, sep: '/', delimiter: ':', win32: null, posix: null }; posix.posix = posix; module.exports = posix; }).call(this)}).call(this,require('_process')) },{"_process":13}],13:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; },{}]},{},[10])(10) });
34.563871
1,072
0.548381
4ad8ed3f433ffe0d4620aa1e86a69b31bdf094bf
1,001
js
JavaScript
src/components/Account/accountView.js
pgast/dash-tabs
ea862d06300dce2c68427578391ab1948ba1eb8a
[ "MIT" ]
1
2020-10-10T21:45:20.000Z
2020-10-10T21:45:20.000Z
src/components/Account/accountView.js
pgast/dash-tabs
ea862d06300dce2c68427578391ab1948ba1eb8a
[ "MIT" ]
1
2020-10-10T21:35:31.000Z
2020-10-19T06:49:05.000Z
src/components/Account/accountView.js
pgast/dash-tabs
ea862d06300dce2c68427578391ab1948ba1eb8a
[ "MIT" ]
1
2020-10-11T19:47:13.000Z
2020-10-11T19:47:13.000Z
import React from 'react'; import PasswordChangeForm from '../PasswordChange'; import './style.css'; const AccountView = ({ authUser, newBusinessName, setNewBusinessName, updateBusinessName }) => ( <div className="accountView"> <div className="dashboardHeader"> <h1>ACCOUNT</h1> </div> <div className="accountForm"> <div> <h3>LOGGED IN AS</h3> <h3>{authUser.email}</h3> </div> <PasswordChangeForm /> <div> <h3>CHANGE BUSINESS NAME</h3> <div> <input type="text" value={newBusinessName} onChange={e => setNewBusinessName(e.target.value)} /> <div className={newBusinessName === '' ? "btn btn_disabled" : "btn btn_secondary"} onClick={newBusinessName === '' ? null : () => updateBusinessName(newBusinessName)} > SAVE </div> </div> </div> </div> </div> ); export default AccountView;
27.054054
96
0.552448
4ad945b6537d48c4fd14fc960bfc100f196ce240
3,587
js
JavaScript
src/transform/fileUnusedModules.js
icpc17/UFFOptimizer
8f11e81be57a36be36c00c1b907db090df53499a
[ "Apache-2.0" ]
8
2018-12-18T16:18:55.000Z
2020-02-22T09:31:36.000Z
src/transform/fileUnusedModules.js
icpc17/UFFOptimizer
8f11e81be57a36be36c00c1b907db090df53499a
[ "Apache-2.0" ]
null
null
null
src/transform/fileUnusedModules.js
icpc17/UFFOptimizer
8f11e81be57a36be36c00c1b907db090df53499a
[ "Apache-2.0" ]
2
2019-02-20T20:36:57.000Z
2020-01-21T12:38:41.000Z
"use strict"; var through = require('through2'); var path = require("../model/utilpath.js"); var fs = require('fs'); var analyzer = require("../task/analyzer.js"); var modules = []; var packages = []; var unusedModules = []; var unusedModulesLOC = 0; var metaFiles = ["Gruntfile.js","gruntfile.js","Gulpfile.js","gulpfile.js","karma.conf.ci.js","karma.conf.js"]; /** * Estadisticas de los modulos */ var module_stats = { "name": "library analysis", "number_of_functions" : 0, "empty_functions" : 0, "size" : 0, "loc" : 0, "library_files" : 0, "program_files" : 0 }; module.exports = function (file) { if (file.endsWith('.js') && path.isInstrumentable(file)&& file.indexOf("UFFOptimizer")===-1) { var fs = require('fs'); modules.push(file); var pakage = path.getFullPackageName(file,"\\"); if(packages.indexOf(pakage)===-1){ packages.push(pakage); } } return through(); } module.exports.getModules = function (){ return modules; } module.exports.getPackages = function (){ return packages; } module.exports.getUnusedModules = function (){ return unusedModules; } module.exports.findUnusedModules = function(){ for(var i in packages){ findUnusedModules(packages[i]); } } function findUnusedModules(dir){ fs.readdir(dir, function(err, files) { if (err) { return console.log("ERROR reading dir " + dir); } files.map(function (fileRel) { var file = require('path').resolve(dir, fileRel); if (file.indexOf("UFFOptimizer") === -1 && file.indexOf("magicpen-media\\node_modules") === -1) { require('fs').stat(file, function (err, stat) { if (stat && stat.isDirectory() && !fileRel.startsWith(".")) { findUnusedModules(file); } }); if (file.indexOf("\\test") === -1 && file.indexOf(".min.") === -1 && file.indexOf("-min.") === -1 && file.indexOf("\\example") === -1 && file.endsWith('.js') && modules.indexOf(file) === -1 && metaFiles.indexOf(path.getFileName(file,"\\"))===-1) { if(unusedModules.indexOf(file)===-1){ console.log("UNUSED MODULE: " + file); unusedModules.push(file); var fs = require('fs'); module_stats["library_files"]++; fs.readFile(file, 'utf8', function (err, data) { if (err) { return console.log("ERROR reading " + file); } try{ analyzer.library_analyze(file, data, module_stats); }catch(e){ console.log("ERROR reading " + file); } require('fs').createReadStream(file) .on('data', function(chunk) { var i; for (i=0; i < chunk.length; ++i) if (chunk[i] == 10) module_stats["loc"]++; }) .on('end', function() { console.log(module_stats); }); }); } } } }); }); }
33.839623
130
0.458322
4ad9528f8c8e239a36b3b5a4c1c71fbc022d3bb7
8,494
js
JavaScript
DeepEyeMonitor/rt-portal/client/templates/box.js
fay1986/mobile_app_server
6646fa893a0df6a25184fb1bff808682301c9b2f
[ "MIT" ]
null
null
null
DeepEyeMonitor/rt-portal/client/templates/box.js
fay1986/mobile_app_server
6646fa893a0df6a25184fb1bff808682301c9b2f
[ "MIT" ]
null
null
null
DeepEyeMonitor/rt-portal/client/templates/box.js
fay1986/mobile_app_server
6646fa893a0df6a25184fb1bff808682301c9b2f
[ "MIT" ]
1
2019-07-09T06:05:35.000Z
2019-07-09T06:05:35.000Z
GetDataBox = function() { var isHours = true; if(!document.getElementById("chart-box-download") || !document.getElementById("chart-box-upload")) return; var timeLine = 'd'; var boxChart = echarts.init(document.getElementById("chart-box-download"),'macarons'); var boxChart2 = echarts.init(document.getElementById("chart-box-upload"),'macarons'); var boxLoading = { text: 'loading...', effect: "bubble", textStyle: { fontSize:20 } }; boxChart.showLoading(boxLoading); boxChart2.showLoading(boxLoading); var totalcdn = 0; var totalraid = 0; Meteor.call('getBoxData', Meteor.userId(), $('.box-chart-time.btn-primary').attr('id'),function(err, data) { if(err) throw err; if(!Session.get('currentPage') || Session.get('currentPage') != 'box') return; var options = { title: { text: 'Download Traffic' }, backgroundColor: "#ffffff", color: ['#008000', '#3ca2e0'], symbolList: ['circle'], tooltip: { trigger: 'axis', formatter: function (params) { var cdn_downloaded = bytesToSize(params[0].data); var p2p_downloaded = bytesToSize(params[1].data); var spanStyle = " display:inline-block;height: 10px;width:10px; border-radius:5px; margin-right:5px;"; var result = '<div style="text-align:justify;">' + '<h4>' + params[0].name + ":</h4>" + '<p><span style="background-color:#008000; ' + spanStyle + '"></span>' + params[0].seriesName + ":" + cdn_downloaded + "</p>" + '<p><span style="background-color:#3ca2e0; ' + spanStyle + '"></span>' + params[1].seriesName + ":" + p2p_downloaded + "</p>"; return result; } }, legend: { y: '10px', data: ['CDN Download', 'Raid Download'] }, grid: { x: '60px', x2: '100px', y: '60px', y2: '60px' }, toolbox: { show: true, bottom: 0 }, xAxis: { type: 'category', boundaryGap: false, data: [] }, yAxis: { type: 'value', position: 'right', axisLabel: { formatter: function (value, index) { return bytesToSize(value); } } }, series: [ { name: 'CDN Download', type: 'line', smooth: true, data: [] }, { name: 'Raid Download', type: 'line', smooth: true, data: [] }, { name: 'Download Traffic', type: 'pie', tooltip: { trigger: 'item', formatter: function (params, ticket) { if (params.name == 'CDN') { return "Download Traffic<br/> CDN:" + bytesToSize(params.value) + " [" + params.percent + "%]" } if (params.name == 'RAID') { return "Download Traffic<br/> RAID:" + bytesToSize(params.value) + " [" + params.percent + "%]" } } }, center: [160, 130], radius: [0, 50], itemStyle: { normal: { labelLine: { length: 20 } } }, data: [] } ] }; var options2 = { title: { text: 'Upload Traffic' }, backgroundColor: "#ffffff", color: ['#ff5722'], symbolList: ['circle'], tooltip: { trigger: 'axis', formatter: function (params) { var upload_speed = bytesToSize(params[0].data); var spanStyle = " display:inline-block;height: 10px;width:10px; border-radius:5px; margin-right:5px;"; var result = '<div style="text-align:justify;">' + '<h4>' + params[0].name + ":</h4>" + '<p><span style="background-color:#ff5722; ' + spanStyle + '"></span>' + params[0].seriesName + ":" + upload_speed + "</p>"; return result; } }, legend: { y: '10px', data: ['Upload'] }, grid: { x: '60px', x2: '100px', y: '60px', y2: '60px' }, toolbox: { show: true, bottom: 0 }, xAxis: { type: 'category', boundaryGap: false, data: [] }, yAxis: { type: 'value', position: 'right', axisLabel: { formatter: function (value, index) { return bytesToSize(value); } } }, series: [ { name: 'Upload', type: 'line', smooth: true, data: [] } ] }; if(data){ if($('.box-chart-time.btn-primary').attr('id') == 'd'){ _.each(data, function(item,index) { var hour = new Date(item.hour).getHours(); if(hour < 10){ hour = '0'+hour; } var ts = hour + ":00"; options.xAxis.data.push(ts); options2.xAxis.data.push(ts); options.series[0].data.push((item.hour_cdn_downloaded)>=0?Math.ceil(item.hour_cdn_downloaded):0) options.series[1].data.push((item.hour_p2p_downloaded)>=0?Math.ceil(item.hour_p2p_downloaded):0) options2.series[0].data.push((item.hour_uploaded)>=0?Math.ceil(item.hour_uploaded):0) // totalcdn totalcdn += item.hour_cdn_downloaded; totalraid += item.hour_p2p_downloaded; }); } else if($('.box-chart-time.btn-primary').attr('id') == 'm'){ _.each(data, function(item,index) { var date = item.time; var ts = date.getFullYear()+"/"+(Number(date.getMonth())+1)+"/"+date.getDate(); options.xAxis.data.push(ts); options2.xAxis.data.push(ts); options.series[0].data.push((item.hour_cdn_downloaded)>=0?Math.ceil(item.hour_cdn_downloaded):0) options.series[1].data.push((item.hour_p2p_downloaded)>=0?Math.ceil(item.hour_p2p_downloaded):0) options2.series[0].data.push((item.hour_uploaded)>=0?Math.ceil(item.hour_uploaded):0) // totalcdn totalcdn += item.hour_cdn_downloaded; totalraid += item.hour_p2p_downloaded; }); } else { _.each(data, function(item,index) { var date = item.time; var ts = date.getHours() + ":" + date.getMinutes(); options.xAxis.data.push(ts); options2.xAxis.data.push(ts); options.series[0].data.push((item.cdn_downloaded)>=0?Math.ceil(item.cdn_downloaded):0) options.series[1].data.push((item.p2p_downloaded)>=0?Math.ceil(item.p2p_downloaded):0) options2.series[0].data.push((item.uploaded)>=0?Math.ceil(item.uploaded):0)// totalcdn totalcdn += item.cdn_downloaded; totalraid += item.p2p_downloaded; }); } options.series[2].data.push({name:'CDN',value: totalcdn}); options.series[2].data.push({name: 'RAID', value: totalraid}); } boxChart.hideLoading(); boxChart2.hideLoading(); boxChart.setOption(options); boxChart2.setOption(options2); boxChart.connect(boxChart2); boxChart2.connect(boxChart); }); }; Template.box.rendered = function() { // document.getElementById('chartTitle').innerHTML="Loading data from server" Session.set('noTrafficData','loading') var boxChartContainer = document.getElementById("chart-id-box"); $("#chart-box-download,#chart-box-upload").css({ width: Math.floor($(window).width()*0.75) + 'px', height: Math.floor($(window).height()*0.40) + 'px' }); window.onresize = function(){ $("#chart-box-download,#chart-box-upload").css({ width: Math.floor($(window).width()*0.75) + 'px', height: Math.floor($(window).height()*0.40) + 'px' }); } GetDataBox(); if($('.box-chart-time.btn-primary').attr('id') === 'h'){ boxDataInterval = setInterval(GetDataBox, 60* 1000); } }; Template.box.events({ 'click .box-chart-time': function(e){ $('.box-chart-time').removeClass('btn-primary'); $(e.currentTarget).addClass('btn-primary'); GetDataBox(); if($('.box-chart-time.btn-primary').attr('id') === 'h'){ boxDataInterval = window.setInterval(GetDataBox, 60* 1000); } else { boxDataInterval = window.clearInterval(boxDataInterval); } } }); Template.box.onDestroyed(function (){ boxDataInterval = window.clearInterval(boxDataInterval); });
32.174242
139
0.533435
4ad9d84aae5ecd8dfdd1a32fa210159121938d51
1,210
js
JavaScript
src/layouts/header.js
tobiastimm/old_tobiastimm.eu
254a11707996277da469eadfc2203c80ec3c70be
[ "MIT" ]
1
2019-01-26T01:32:19.000Z
2019-01-26T01:32:19.000Z
src/layouts/header.js
tobiastimm/old_tobiastimm.eu
254a11707996277da469eadfc2203c80ec3c70be
[ "MIT" ]
null
null
null
src/layouts/header.js
tobiastimm/old_tobiastimm.eu
254a11707996277da469eadfc2203c80ec3c70be
[ "MIT" ]
null
null
null
import React from 'react'; import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap'; import { compose, withHandlers, withState } from 'recompose'; import Link from 'gatsby-link'; const enhance = compose( withState('expand', 'toggleExpand', false), withHandlers({ showMore: props => () => props.toggleExpand(expand => true), showLess: props => () => props.toggleExpand(expand => false), }), ); const Header = enhance(({ expand, showMore, showLess }) => { const toggleExpand = () => (expand ? showLess() : showMore()); return ( <Navbar fixed="top" dark className="bg-dark" expand="md"> <Link className="navbar-brand" to="/"> Tobias Timm </Link> <NavbarToggler onClick={toggleExpand} /> <Collapse isOpen={expand} navbar> <Nav navbar className="mr-auto"> <NavItem> <Link className="nav-link" to="/skills"> Skills </Link> </NavItem> <NavItem> <Link className="nav-link" to="/education"> Education </Link> </NavItem> </Nav> </Collapse> </Navbar> ); }); export default Header;
30.25
97
0.581818
4ada59e237dbfc2e1299b1d3e6c87c4aa0c6adf6
1,215
js
JavaScript
routes/firebase.js
reivajj/server-laflota
72d6a0bf8d88f723d9a3047023e58636ce7493dd
[ "MIT" ]
null
null
null
routes/firebase.js
reivajj/server-laflota
72d6a0bf8d88f723d9a3047023e58636ce7493dd
[ "MIT" ]
null
null
null
routes/firebase.js
reivajj/server-laflota
72d6a0bf8d88f723d9a3047023e58636ce7493dd
[ "MIT" ]
null
null
null
var router = require("express-promise-router")(); const { getAllUsersFromFS, createUsersInFirestore, getUsersStatsFromFS, updateTotalUsersFromFS, deleteUserInFSByEmail, getUserInFSByEmail } = require("../firebase/firestoreActions"); router.get('/users', async (_, res, next) => { const response = await getAllUsersFromFS(); return res.status(200).send({ response }); }); router.get('/statsUsers', async (_, res, next) => { const response = await getUsersStatsFromFS(); return res.status(200).send({ response }); }); router.post('/updateTotalUsers', async (_, res, next) => { const response = await updateTotalUsersFromFS(); return res.status(200).send({ response }); }); router.post('/createUsers', async (_, res, next) => { const response = await createUsersInFirestore(); return res.status(200).send({ response }); }) router.delete('/usersByEmail/:email', async (req, res, _) => { const response = await deleteUserInFSByEmail(req.params.email); return res.status(200).send({ response }); }) router.get('/usersByEmail/:email', async (req, res, _) => { const response = await getUserInFSByEmail(req.params.email); return res.status(200).send({ response }); }) module.exports = router;
35.735294
182
0.704527
4adaed16fa00ed8ec9c9da7e9f4a8e8a4ed5953f
230
js
JavaScript
src/pages/about.js
holypoli/wienkaffee
2c01f634fdbbfa9bcd03154c6a213878bc2382ad
[ "MIT" ]
null
null
null
src/pages/about.js
holypoli/wienkaffee
2c01f634fdbbfa9bcd03154c6a213878bc2382ad
[ "MIT" ]
null
null
null
src/pages/about.js
holypoli/wienkaffee
2c01f634fdbbfa9bcd03154c6a213878bc2382ad
[ "MIT" ]
null
null
null
import React from "react" import Layout from "../components/layout" import Cart from "../components/cart" const About = () => { return ( <Layout> <Cart></Cart> </Layout> ) } export default About
15.333333
42
0.582609
4adb5d426d26a51234ea99953fd2b4d0c5ac4e49
3,854
js
JavaScript
assets/js/register/javascript.js
filipesilva1208/sistema
2c48e28e19ef21e3fff5cd2356e4d318523811e1
[ "MIT" ]
1
2022-02-16T19:45:06.000Z
2022-02-16T19:45:06.000Z
assets/js/register/javascript.js
filipesilva1208/sistema
2c48e28e19ef21e3fff5cd2356e4d318523811e1
[ "MIT" ]
null
null
null
assets/js/register/javascript.js
filipesilva1208/sistema
2c48e28e19ef21e3fff5cd2356e4d318523811e1
[ "MIT" ]
null
null
null
$(document).ready(function (){ $("#telephone").mask("(00) 0 0000 0009") function alert(msg, type = 'success', title = null ){ Command: toastr[type](msg,title) toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": true, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } } const base_url = $('#base_url').val() const sponsor = $('#sponsor').val() const name = $('#name').val() const email = $('#email').val() const password = $('#password').val() const telephone = $('#telephone').val() const r_password = $('#r_password').val() $('#r_password').on('blur', function(){ alert('ok') }) $('#form').on('submit',function(e){ e.preventDefault() if(sponsor == ''){ alert('Você precisa ser convidado para concluir seu cadastro','info') return false } if(name == '' || email == '' || telephone == '' || password == '' || r_password == '' ){ alert('Preencha todos os compos!','error') }else{ $.ajax({ url: base_url +'Register/send', type: 'POST', dataType: 'json', data: new FormData(this), processData: false, contentType: false, cache: false, async: false, beforeSend : function(){ $(".register-box-msg").html("Registrando...") $("#btnRegister").attr("disabled", true) }, success: function(data){ setTimeout(function(){ if(data.status == 'success'){ alert(data.msg_text,data.type,data.title) $(".register-box-msg").html("") setTimeout(function(){ alert('Uma senha temporária foi enviada para seu email!','success','Importante!') setTimeout(function(){ window.location.href = base_url+'login' },3000) },1000) }else if(data.status == 'exists'){ alert(data.msg_text,data.msg_type,data.msg_title) $(".register-box-msg").html("Registre uma nova conta") $("#btnRegister").attr("disabled", false); }else if(data.status == 'invalidemail'){ alert(data.msg_text,data.msg_type,data.msg_title) $(".register-box-msg").html("Registre uma nova conta") $("#btnRegister").attr("disabled", false); }else if(data.status == 'invalidsponsor'){ alert(data.msg_text,data.msg_type,data.msg_title) $(".register-box-msg").html("Registre uma nova conta") $("#btnRegister").attr("disabled", false); }else{ alert(data.msg_text,data.msg_type,data.msg_title) $(".register-box-msg").html("Registre uma nova conta") $("#btnRegister").attr("disabled", false); } },1500) } }) } }) })
35.685185
109
0.438246
4adca57e83bbb6a47f44cc14a7492e510cf6564d
2,856
js
JavaScript
mobile/src/js/views/DemandItem.js
appelgriebsch/food-store
a3002f7ff1214fe07ec35d95cf43f4518df4cf78
[ "MIT" ]
null
null
null
mobile/src/js/views/DemandItem.js
appelgriebsch/food-store
a3002f7ff1214fe07ec35d95cf43f4518df4cf78
[ "MIT" ]
null
null
null
mobile/src/js/views/DemandItem.js
appelgriebsch/food-store
a3002f7ff1214fe07ec35d95cf43f4518df4cf78
[ "MIT" ]
null
null
null
define(['backbone', 'templates/handlebars', 'layoutmanager'], function (Backbone) { 'use strict'; var Demand = Backbone.Layout.extend({ initialize: function (params) { this.application = params.application; this.model.bind('change', this.render, this); this.model.bind('destroy', this.removeItem, this); }, serialize: function () { if (this.model) return this.model.toJSON(); else return {}; }, events: { "click .toggle": "toggleDone", "click .uk-icon-trash-o": "deleteItem", "click .uk-icon-plus-circle": "increaseQty", "click .uk-icon-minus-circle": "decreaseQty" }, afterRender: function () { if (this.model.get('done')) { this.$el.addClass("done"); this.$el.find('[data-role="options"]').addClass('uk-hidden'); } }, tagName: 'li', className: 'listItem uk-animation-slide-bottom', toggleDone: function (e) { e.preventDefault(); this.$el.toggleClass("done"); this.model.toggle(); }, increaseQty: function (e) { e.preventDefault(); var qty = this.model.get('quantity'); var increaseBy = 1; if ((qty / 1000) >= 1) increaseBy = 100; else if ((qty / 100) >= 1) increaseBy = 10; else if ((qty / 10) >= 1) increaseBy = 5; this.model.increaseQty(increaseBy); }, decreaseQty: function (e) { e.preventDefault(); var qty = this.model.get('quantity'); var decreaseBy = 1; if ((qty / 1000) > 1) decreaseBy = 100; else if ((qty / 100) > 1) decreaseBy = 10; else if ((qty / 10) > 1) decreaseBy = 5; this.model.decreaseQty(decreaseBy); }, deleteItem: function (e) { e.preventDefault(); this.model.destroy(); }, removeItem: function () { this.$el.removeClass('uk-animation-slide-bottom'); this.$el.addClass('uk-animation-fade uk-animation-reverse'); var self = this; setTimeout(function () { self.remove(); }, 1000); }, template: 'DemandItem' }); return Demand; });
26.691589
81
0.419468
4adee1c0c35b21c74314ac2bbecd5cb998d7affd
4,305
js
JavaScript
packages/@featherds/dropdown/src/composables/DropdownService.spec.js
feather-design-system/feather-design-system
2ddedbb5d3a9cc1d966ee3ea14de2d05e0ab7400
[ "Apache-2.0" ]
15
2021-09-17T16:41:47.000Z
2022-03-16T09:55:07.000Z
packages/@featherds/dropdown/src/composables/DropdownService.spec.js
feather-design-system/feather-design-system
2ddedbb5d3a9cc1d966ee3ea14de2d05e0ab7400
[ "Apache-2.0" ]
35
2021-09-30T17:58:18.000Z
2022-03-29T14:43:39.000Z
packages/@featherds/dropdown/src/composables/DropdownService.spec.js
feather-design-system/feather-design-system
2ddedbb5d3a9cc1d966ee3ea14de2d05e0ab7400
[ "Apache-2.0" ]
3
2021-12-29T13:57:11.000Z
2022-03-22T09:17:20.000Z
import { useDropdownService } from "./DropdownService"; const getItems = (disabled = false) => [1, 2, 3, 4].map((i) => { var a = document.createElement("a"); a.title = `Item ${i}`; if (disabled) { a.classList.add("disabled"); } a.focus = jest.fn(); return a; }); const checkSelected = (service, items, index) => { expect(items[index].focus).toHaveBeenCalled(); expect(service.currentItem).toBe(items[index]); }; describe("Dropdown Service", () => { describe("select first", () => { it("should select the first not disabled item", () => { const service = useDropdownService(); const items = getItems(); items[0].classList.add("disabled"); service.setItems(items); service.selectFirst(); checkSelected(service, items, 1); }); it("should select the very first item if all disabled", () => { const service = useDropdownService(); const items = getItems(true); service.setItems(items); service.selectFirst(); checkSelected(service, items, 0); }); it("should select the first", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.selectFirst(); checkSelected(service, items, 0); }); }); describe("select last", () => { it("should select the last not disabled item", () => { const service = useDropdownService(); const items = getItems(); items[items.length - 1].classList.add("disabled"); service.setItems(items); service.selectLast(); checkSelected(service, items, items.length - 2); }); it("should select the very last item if all disabled", () => { const service = useDropdownService(); const items = getItems(true); service.setItems(items); service.selectLast(); checkSelected(service, items, items.length - 1); }); it("should select the last", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.selectLast(); checkSelected(service, items, items.length - 1); }); }); describe("select previous", () => { it("should select the last element when first element is disabled and current element is second", () => { const service = useDropdownService(); const items = getItems(); items[0].classList.add("disabled"); service.setItems(items); service.select(items[1]); //set second; service.selectPrevious(); checkSelected(service, items, items.length - 1); }); it("should select the last element when current is first", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.select(items[0]); //set first; service.selectPrevious(); checkSelected(service, items, items.length - 1); }); it("should select the first element when current is second", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.select(items[1]); //set second; service.selectPrevious(); checkSelected(service, items, 0); }); }); describe("select next", () => { it("should select the first element when last element is disabled and current element is second last", () => { const service = useDropdownService(); const items = getItems(); items[items.length - 1].classList.add("disabled"); service.setItems(items); service.select(items[items.length - 2]); //set second last; service.selectNext(); checkSelected(service, items, 0); }); it("should select the first element when current is last", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.select(items[items.length - 1]); //set last; service.selectNext(); checkSelected(service, items, 0); }); it("should select the second element when current is first", () => { const service = useDropdownService(); const items = getItems(); service.setItems(items); service.select(items[0]); //set first; service.selectNext(); checkSelected(service, items, 1); }); }); });
35.875
114
0.615796
4adf3fef9ddc9c1eb939712da3150744ce063768
6,334
js
JavaScript
src/scripts/components/DrawerHeader.js
orzocogorzo/stage_topologies
c49e92f6ac8bc495fc95fb6b31e41340c5acd01b
[ "MIT" ]
null
null
null
src/scripts/components/DrawerHeader.js
orzocogorzo/stage_topologies
c49e92f6ac8bc495fc95fb6b31e41340c5acd01b
[ "MIT" ]
null
null
null
src/scripts/components/DrawerHeader.js
orzocogorzo/stage_topologies
c49e92f6ac8bc495fc95fb6b31e41340c5acd01b
[ "MIT" ]
null
null
null
const Mustache = require("mustache"); const DrawerHeader = (function () { const template = `<div class="drawer-header__wrapper"> <div class="drawer-header__backward"> <button id="backwardButton"><-</button> </div> <div class="drawer-header__selector"> <select id="playersSelector"> {{#players}} <option style="color: {{color}};" value="{{id}}">{{name}}</option> {{/players}} </select> </div> <div class="drawer-header__additor"> <button id="addButton">Add</button> <div class="drawer-header__additor-form"> <div class="drawer-header__additor-background"> <div class="drawer-header__additor-wrapper"> <div class="drawer-header__input-wrapper"> <label>Defineix un nom per a l'interpret</label> <input class="input" id="playerName" key="name" type="text" placeholder="Nom..." /> </div> <div class="drawer-header__input-wrapper"> <label>Selecciona un color per a l'interpret</label> <input class="input" id="playerColor" key="color" type="color" /> </div> <div class="drawer-header__input-wrapper"> <button id="submitPlayer">Guarda</button> </div> </div> </div> </div> </div> <div class="drawer-header__download"> <button id="downloadButton"></button> <button id="uploadButton"></button> </div> </div>`; const DrawerHeader = function DrawerHeader (el, players=[]) { this.el = el; this.players = players; } DrawerHeader.prototype.render = function render () { const self = this; this.el.innerHTML = Mustache.render(template, { players: this.players }); this.openForm = this.openForm.bind(this); this.onClickOut = this.onClickOut.bind(this); this.submitPlayer = this.submitPlayer.bind(this); this.onSelectPlayer = this.onSelectPlayer.bind(this); this.saveData = this.saveData.bind(this); this.uploadData = this.uploadData.bind(this); this.onBackward = this.onBackward.bind(this); this.el.querySelector("#backwardButton").addEventListener("click", this.onBackward); this.el.querySelector("#addButton").addEventListener("click", this.openForm); this.el.querySelector("#playersSelector").addEventListener("change", this.onSelectPlayer); this.el.querySelector("#downloadButton").addEventListener("click", this.saveData); this.el.querySelector("#uploadButton").addEventListener("click", this.uploadData); } DrawerHeader.prototype.on = function on (event, callback) { this.el.addEventListener(event, callback); } DrawerHeader.prototype.submitPlayer = function submitPlayer () { this.players.push({ id: Date.now(), positions: [], ...Array.apply(null, this.el.querySelectorAll(".input")).reduce(function (acum, input) { acum[input.getAttribute("key")] = input.value; return acum; }, new Object()) }); this.el.querySelector(".drawer-header__additor").classList.remove("open-form"); this.el.querySelector(".drawer-header__additor-background").removeEventListener("click", this.onClickOut); this.el.querySelector("#submitPlayer").removeEventListener("click", this.submitPlayer); this.render(); if (this.players.length === 1) { this.onSelectPlayer({ currentTarget: { value: this.players[0].id } }); } } DrawerHeader.prototype.onClickOut = function onClickOut (ev) { if (ev.target === ev.currentTarget) { this.el.querySelector(".drawer-header__additor").classList.remove("open-form"); this.el.querySelector(".drawer-header__additor-background").removeEventListener("click", this.onClickOut); this.el.querySelector("#submitPlayer").removeEventListener("click", this.submitPlayer); } } DrawerHeader.prototype.openForm = function openForm (ev) { ev.currentTarget.parentElement.classList.add("open-form"); this.el.querySelector(".drawer-header__additor-background").addEventListener("click", this.onClickOut); this.el.querySelector("#submitPlayer").addEventListener("click", this.submitPlayer); } DrawerHeader.prototype.onSelectPlayer = function onSelectPlayer (ev) { this.selected = ev.currentTarget.value; this.el.dispatchEvent(new CustomEvent("select", { detail: { id: ev.currentTarget.value } })); } DrawerHeader.prototype.saveData = function saveData () { const data = JSON.stringify(this.players); const file = new Blob([data], { type: "application/json" }); const link = document.createElement("a"); link.href = URL.createObjectURL(file); link.setAttribute("target", "_blank"); link.setAttribute("download", "stage-topologies.json"); document.body.appendChild(link); link.click(); document.body.removeChild(link); } DrawerHeader.prototype.uploadData = function uploadData () { const self = this; const input = document.createElement("input"); input.type = "file"; input.addEventListener("change", function (ev) { const reader = new FileReader(); reader.onload = function (ev) { self.players = JSON.parse(ev.currentTarget.result); self.render(); } reader.readAsText(ev.currentTarget.files[0]); }); document.body.appendChild(input); input.click(); } DrawerHeader.prototype.onBackward = function onBackward () { this.el.dispatchEvent(new CustomEvent("backward")); } return DrawerHeader; })(); module.exports = DrawerHeader;
40.602564
118
0.581623
4adf7e98a41a110ded0b4ee3df492e9242a5e592
1,257
js
JavaScript
pitometer/time-phases.js
asolove/pyret-lang
c821772a1c1ed4256fd1ff5d97d3058aeb8c3559
[ "Apache-2.0" ]
725
2015-01-03T00:26:58.000Z
2022-03-26T15:50:22.000Z
pitometer/time-phases.js
asolove/pyret-lang
c821772a1c1ed4256fd1ff5d97d3058aeb8c3559
[ "Apache-2.0" ]
1,249
2015-01-02T04:57:51.000Z
2022-03-11T16:29:07.000Z
pitometer/time-phases.js
asolove/pyret-lang
c821772a1c1ed4256fd1ff5d97d3058aeb8c3559
[ "Apache-2.0" ]
110
2015-01-10T20:01:54.000Z
2022-02-05T13:04:36.000Z
define(["child_process", "time-helpers"], function(childProcess, timeHelpers) { function run(makeMeasurements, options) { const { hrtimeToMicroseconds, maybeTime } = timeHelpers; childProcess.execSync("make clean"); const [installSuccess, , timeInstall] = maybeTime(true, () => childProcess.execSync("npm install")); const [aSuccess, , timeA] = maybeTime(installSuccess, () => childProcess.execSync("make phaseA")); const [bSuccess, , timeB] = maybeTime(aSuccess, () => childProcess.execSync("make phaseB")); const [cSuccess, timeC] = maybeTime(bSuccess, () => childProcess.execSync("make phaseC")); return makeMeasurements([ aSuccess && { labels: ["js-wall-time", "compiler-build", "phaseA"], measurement: hrtimeToMicroseconds(timeA), unit: "microseconds" }, bSuccess && { labels: ["js-wall-time", "compiler-build", "phaseB"], measurement: hrtimeToMicroseconds(timeB), unit: "microseconds" }, cSuccess && { labels: ["js-wall-time", "compiler-build", "phaseC"], measurement: hrtimeToMicroseconds(timeC), unit: "microseconds" } ].filter((a) => a)); } return { run: run }; });
30.658537
79
0.61257
4ae03e0ddec392fee739b1022a4c85ef0be33fcc
347
js
JavaScript
build.js
taras/get-prototype-descriptors
b73d5c56030de4ec607055a1eb5a48529eadf663
[ "MIT" ]
1
2018-07-19T01:37:57.000Z
2018-07-19T01:37:57.000Z
build.js
taras/get-prototype-descriptors
b73d5c56030de4ec607055a1eb5a48529eadf663
[ "MIT" ]
17
2019-01-03T09:31:33.000Z
2020-06-02T18:14:04.000Z
build.js
taras/get-prototype-descriptors
b73d5c56030de4ec607055a1eb5a48529eadf663
[ "MIT" ]
null
null
null
const rollup = require("rollup"); const config = require("./rollup.config"); module.exports = function() { console.log("\n"); // create a bundle return rollup.rollup(config) .then(bundle => { let built = config.output.map(options => bundle.write(options)); return Promise.all(built); }) .then(() => console.log()) };
26.692308
70
0.622478
4ae1baadb3018cb610915e4c260d9969ce93e891
5,066
js
JavaScript
src/index.js
merklejerk/ez-ens
4d8759776ca1a07c0b9fa8e84127e5ec43547400
[ "Apache-2.0" ]
10
2019-06-16T10:03:13.000Z
2022-01-21T16:43:58.000Z
src/index.js
cluracan/ez-ens
4d8759776ca1a07c0b9fa8e84127e5ec43547400
[ "Apache-2.0" ]
2
2020-06-08T17:12:08.000Z
2021-05-08T19:00:00.000Z
src/index.js
merklejerk/ez-ens
4d8759776ca1a07c0b9fa8e84127e5ec43547400
[ "Apache-2.0" ]
null
null
null
'use strict' const _ = require('lodash'); const ethjs = require('ethereumjs-util'); const hashObject = require('object-hash'); const Web3 = require('web3'); const createWeb3Provider = require('create-web3-provider'); const { ENS_ABI, RESOLVER_ABI } = require('./abis'); const ENS_ADDRESSES = { '1': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', '3': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', '4': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', '42': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', '6824': '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', }; const WEB3_CACHE = {}; const NULL_ADDRESS = ethjs.bufferToHex(Buffer.alloc(20)); module.exports = { resolve, nameToNode, getTextRecord, getBlockchainAddress, getContentHash, getCanonicalName, minTTL: 60 * 60 * 1000, maxTTL: Number.MAX_SAFE_INTEGER }; function getWeb3(opts={}) { if (opts.web3) { return opts.web3; } // Try to reuse an existing web3 instance, if possible. const key = hashObject(opts); if (key in WEB3_CACHE) { return WEB3_CACHE[key]; } const provider = opts.provider || createWeb3Provider({ uri: opts.providerURI, network: opts.network, infuraKey: opts.infuraKey, net: opts.net }); const inst = new Web3(provider); return WEB3_CACHE[key] = inst; } async function queryRegistry(name, opts, cache, cachePath, queryResolver) { const web3 = getWeb3(opts); const chainId = await web3.eth.getChainId(); const node = nameToNode(name); cachePath = [chainId, node, ...cachePath]; const cached = getCachedValue(cache, cachePath); if (cached) { return cached.value; } if (!(chainId in ENS_ADDRESSES)) { throw new Error(`ENS is not supported on network id ${chainId}`); } const ens = new web3.eth.Contract(ENS_ABI, ENS_ADDRESSES[chainId]); const resolverAddress = await ens.methods.resolver(node).call({ block: opts.block }); if (resolverAddress === NULL_ADDRESS) { throw new Error(`No resolver for ENS address: '${name}'`); } const value = await queryResolver( node, new web3.eth.Contract(RESOLVER_ABI, resolverAddress), ); const ttl = _.clamp( _.isNumber(opts.ttl) ? ttl : await ens.methods.ttl(node) * 1000, module.exports.minTTL, module.exports.maxTTL, ); if (!opts.block) { cacheValue(cache, cachePath, value, ttl); } return value; } function getCachedValue(cache, cachePath) { const cached = _.get(cache, cachePath); if (cached && cached.expires > _.now()) { return cached.value; } } function cacheValue(cache, cachePath, value, ttl) { if (ttl > 0) { _.set( cache, cachePath, { value: value, expires: _.now() + ttl }, ); } } async function resolve(name, opts={}) { if (/^0x[a-f0-9]+$/i.test(name) && ethjs.isValidAddress(name)) { return ethjs.toChecksumAddress(name); } return queryRegistry(name, opts, resolve.cache, [], async (node, resolver) => { return resolver.methods.addr(node).call({ block: opts.block }); }); } async function getTextRecord(name, key, opts={}) { return queryRegistry(name, opts, getTextRecord.cache, [key], async (node, resolver) => { const isSupported = await resolver.methods.supportsInterface('0x59d1d43c').call({ block: opts.block }); if (!isSupported) { throw new Error(`Resolver for ${name} does not support text records.`); } return resolver.methods.text(node, key).call({ block: opts.block }); }); } async function getBlockchainAddress(name, coinType, opts={}) { coinType = coinType.toString(10); return queryRegistry(name, opts, getTextRecord.cache, [coinType], async (node, resolver) => { const isSupported = await resolver.methods.supportsInterface('0xf1cb7e06').call({ block: opts.block }); if (!isSupported) { throw new Error(`Resolver for ${name} does not support blockchain addresses.`); } return resolver.methods.addr(node, coinType).call({ block: opts.block }); }); } async function getContentHash(name, opts={}) { return queryRegistry(name, opts, getContentHash.cache, [], async (node, resolver) => { const isSupported = await resolver.methods.supportsInterface('0xbc1c58d1').call({ block: opts.block }); if (!isSupported) { throw new Error(`Resolver for ${name} does not support content hashes.`); } return resolver.methods.contenthash(node).call({ block: opts.block }); }); } async function getCanonicalName(name, opts={}) { return queryRegistry(name, opts, getCanonicalName.cache, [], async (node, resolver) => { const isSupported = await resolver.methods.supportsInterface('0x691f3431').call({ block: opts.block }); if (!isSupported) { throw new Error(`Resolver for ${name} does not support canonical names.`); } return resolver.methods.name(node).call({ block: opts.block }); }); } function nameToNode(name) { name = name.toLowerCase(); if (!_.isString(name)) { throw new Error('ENS name must be a string'); } let hb = Buffer.alloc(32); const labels = _.reverse(_.filter(name.split('.'))); for (let label of labels) { const lh = ethjs.keccak256(Buffer.from(label)); hb = ethjs.keccak256(Buffer.concat([hb, lh])); } return '0x' + hb.toString('hex'); }
29.283237
94
0.700355
4ae4bb896c54f32dc5388a5583b1a9d407458e6c
222
js
JavaScript
config/webpack/environment.js
m-escobar/mundipagg_api
a3802f24e1a60a2396df934f387a1653eda3acd9
[ "MIT" ]
null
null
null
config/webpack/environment.js
m-escobar/mundipagg_api
a3802f24e1a60a2396df934f387a1653eda3acd9
[ "MIT" ]
null
null
null
config/webpack/environment.js
m-escobar/mundipagg_api
a3802f24e1a60a2396df934f387a1653eda3acd9
[ "MIT" ]
null
null
null
const { environment } = require('@rails/webpacker') const webpack = require('webpack') // Preventing Babel from transpiling NodeModules packages // environment.loaders.delete('nodeModules'); module.exports = environment
27.75
57
0.77027
4ae4d4d6d573a2ad68be62f0c35b640db51d4115
460
js
JavaScript
deps/basic-auth/deps/safe-buffer/deps/jspm-core/nodelibs/dgram.js
yeukfei02/organ
4e89d29cc14bd020570351b3b27e46822e273e27
[ "MIT" ]
null
null
null
deps/basic-auth/deps/safe-buffer/deps/jspm-core/nodelibs/dgram.js
yeukfei02/organ
4e89d29cc14bd020570351b3b27e46822e273e27
[ "MIT" ]
null
null
null
deps/basic-auth/deps/safe-buffer/deps/jspm-core/nodelibs/dgram.js
yeukfei02/organ
4e89d29cc14bd020570351b3b27e46822e273e27
[ "MIT" ]
null
null
null
function unimplemented(){throw new Error("Node.js dgram module is not supported by jspm core"+("undefined"!=typeof Deno?". Deno support here is tracking in https://github.com/jspm/jspm-core/issues/4, +1's are appreciated!":" in the browser"))}var dgram = {_createSocketHandle:unimplemented,createSocket:unimplemented,Socket:unimplemented}; export default dgram;export{unimplemented as Socket,unimplemented as _createSocketHandle,unimplemented as createSocket};
230
339
0.808696
4ae69fccbf5443b4531f1ffd9fcc788968d319c0
970
js
JavaScript
server/index.js
JulianKnodt/ito
bb6c9ec3962f863eb1b09cb5a28f8aa00c40ad46
[ "MIT" ]
null
null
null
server/index.js
JulianKnodt/ito
bb6c9ec3962f863eb1b09cb5a28f8aa00c40ad46
[ "MIT" ]
null
null
null
server/index.js
JulianKnodt/ito
bb6c9ec3962f863eb1b09cb5a28f8aa00c40ad46
[ "MIT" ]
null
null
null
const express = require('express'); const morgan = require('morgan'); const bodyParser = require('body-parser'); const expressSession = require('express-session'); const authRouter = require('./routers/authRouter'); const codeRouter = require('./routers/codeRouter'); const db = require('./db/dbConnection.js'); var app = express(); let port = process.env.PORT || 3030; const sessionConfig = { secret: '’君の名は’', resave: true, saveUninitialized: true, cookie: { secure: false }, name: 'ito.sid' } app.use(morgan('dev')); app.use(bodyParser.json()); app.use(expressSession(sessionConfig)); app.set('title', 'Ito'); app.use('/auth', authRouter); app.use('/code', codeRouter); app.get('/', (req, res) => { res.sendStatus(202); }); var server = app.listen(port, () => { process.stdout.write(`Listening on port ${port}\n`); }); server.on('close', () => { db.end(err => { if(err) process.stdout.write(err + '\n'); }); }); module.exports = server;
22.55814
54
0.650515
4ae70edd298a3aab40ea28c9dcbdf77ac8a3cfdc
921
js
JavaScript
src/StoryItem/CollapsedStoryItem.js
Commonfare-net/storybuilder-react
2185a6543839a83a774334ba38bbab4c97f96d73
[ "MIT" ]
null
null
null
src/StoryItem/CollapsedStoryItem.js
Commonfare-net/storybuilder-react
2185a6543839a83a774334ba38bbab4c97f96d73
[ "MIT" ]
null
null
null
src/StoryItem/CollapsedStoryItem.js
Commonfare-net/storybuilder-react
2185a6543839a83a774334ba38bbab4c97f96d73
[ "MIT" ]
null
null
null
import React, { PureComponent } from 'react'; import { string, func } from 'prop-types'; import FontAwesome from 'react-fontawesome'; import Dotdotdot from 'react-dotdotdot'; import './CollapsedStoryItem.css'; export default class CollapsedStoryItem extends PureComponent { static propTypes = { icon: string.isRequired, content: string.isRequired, onClick: func.isRequired, className: string, } static defaultProps = { content: '' } render() { const { icon, content, onClick, className } = this.props; return ( <div className={`story-item ${className}`} onClick={onClick}> <div className="story-item__icon"> <FontAwesome name={icon} size="3x" className="fa-fw"/> </div> <div className="story-item__content"> <Dotdotdot clamp={3}>{content.replace(/(<[^>]+>)|(&nbsp;)/g, ' ')}</Dotdotdot> </div> </div> ) } }
25.583333
88
0.627579
4ae7bec183a326dc500c8fc87ad5bdb629290201
73
js
JavaScript
src/resources/assets/js/reports/global_report/reducers.js
visiontmlp/tmlpstats
c38326bd93e809c40a822579bbcc99a247aa9e02
[ "BSD-3-Clause" ]
3
2016-03-24T07:04:07.000Z
2016-12-14T04:48:09.000Z
src/resources/assets/js/reports/global_report/reducers.js
visiontmlp/tmlpstats
c38326bd93e809c40a822579bbcc99a247aa9e02
[ "BSD-3-Clause" ]
439
2016-02-14T04:55:49.000Z
2021-10-17T04:02:18.000Z
src/resources/assets/js/reports/global_report/reducers.js
visiontmlp/tmlpstats
c38326bd93e809c40a822579bbcc99a247aa9e02
[ "BSD-3-Clause" ]
3
2016-09-13T03:47:37.000Z
2017-03-14T16:48:07.000Z
import { reportData } from './data' export default reportData.reducer()
18.25
35
0.739726