"use strict";var _wjUtils=require("./wjUtils.js"),_wjUtils2=_interopRequireDefault(_wjUtils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function analysisCardInfo(e){var t,r,a,s,i,l,c,n,o=_wjUtils2.default.hexStr2byteArray(e),d={},y=o.byteLength,e=_analysisIs9000(e);return 0!=e.serviceCode?e:(55==y?(e=o.slice(2,10),y=o.slice(10,11),o.slice(11,12),t=o.slice(12,14),r=o.slice(14,22),a=o.slice(22,26),o.slice(26,30),s=o.slice(30,42),i=o.slice(42,43),l=o.slice(43,44),c=o.slice(44,45),o=o.slice(49,53),n=parseInt((255&o[0])<<24),n=(n=(n+=parseInt((255&o[1])<<16))+parseInt((255&o[2])<<8))+parseInt(255&o[3]),_wjUtils2.default.showLog("cardIssuerID:",_wjUtils2.default.byteArray2hexStr(e),"bindedPlate",_wjUtils2.default.byteArray2hexStr(s),"balance:",n),d.serviceCode=0,d.serviceInfo="获取卡片信息成功",d.serviceData={},d.serviceData.cardIssuerID=_wjUtils2.default.byteArray2hexStr(e),d.serviceData.cardType=_wjUtils2.default.byteArray2hexStr(y),d.serviceData.roadswebID=_wjUtils2.default.byteArray2hexStr(t),d.serviceData.cardNo=_wjUtils2.default.byteArray2hexStr(r),d.serviceData.SignedDate=_wjUtils2.default.byteArray2hexStr(a),d.serviceData.bindedPlate=_wjUtils2.default.byteArray2hexStr(s),d.serviceData.userType=_wjUtils2.default.byteArray2hexStr(i),d.serviceData.vehColor=_wjUtils2.default.byteArray2hexStr(l),d.serviceData.vehType=_wjUtils2.default.byteArray2hexStr(c),d.serviceData.intbalance=n):(d.serviceCode=-3,d.serviceInfo="获取卡片信息失败,信息长度有误"),d)}function analysisCardOwnerRecord(e){var t,r,a=_wjUtils2.default.hexStr2byteArray(e),s={},i=a.byteLength,e=_analysisIs9000(e);return 0!=e.serviceCode?e:(59==i?(e=a.slice(2,3),i=a.slice(3,4),t=a.slice(4,24),r=a.slice(24,56),a=a.slice(56,57),_wjUtils2.default.showLog("ownerName:",_wjUtils2.default.byteArray2hexStr(t),"ownerLicenseNumber:",_wjUtils2.default.byteArray2hexStr(r),"ownerLicenseType:",a),s.serviceCode=0,s.serviceInfo="获取持卡人信息成功",s.serviceData={},s.serviceData.ownerId=_wjUtils2.default.byteArray2hexStr(e),s.serviceData.staffId=_wjUtils2.default.byteArray2hexStr(i),s.serviceData.ownerName=_wjUtils2.default.byteArray2hexStr(t),s.serviceData.ownerLicenseNumber=_wjUtils2.default.byteArray2hexStr(r),s.serviceData.ownerLicenseType=_wjUtils2.default.byteArray2hexStr(a)):(s.serviceCode=-3,s.serviceInfo="获取持卡人信息失败,信息长度有误"),s)}function analysisCardTransactionRecord(e){var t=_wjUtils2.default.hexStr2byteArray(e),r={},a=t.byteLength,s=0;if(4<=a){for(r.serviceCode=0,r.serviceInfo="获取交易记录信息成功",r.serviceData={},r.serviceData.CardTransactionRecordData=[];s