PageSourceSearch

https://paygame.ru/_next/static/chunks/2313.662aa682943d0161052d.js

js paygame.ru collected 2026-10-06 16:19:36 UTC 11,339 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2313],{75443:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.cardNumber=void 0;var r=n(34839),i=n(11938);function a(e,t,n){return{card:e,isPotentiallyValid:t,isValid:n}}t.cardNumber=function(e,t){var n,o;if(void 0===t&&(t={}),"string"!==typeof e&&"number"!==typeof e)return a(null,!1,!1);var s=String(e).replace(/-|\s/g,"");if(!/^\d*$/.test(s))return a(null,!1,!1);var u=i(s);if(0===u.length)return a(null,!1,!1);if(1!==u.length)return a(null,!0,!1);var l=u[0];if(t.maxLength&&s.length>t.maxLength)return a(l,!1,!1);n=l.type===i.types.UNIONPAY&&!0!==t.luhnValidateUnionPay||r(s),o=Math.max.apply(null,l.lengths),t.maxLength&&(o=Math.min(t.maxLength,o));for(var c=0;c<l.lengths.length;c++)if(l.lengths[c]===s.length)return a(l,s.length<o||n,n);return a(l,s.length<o,!1)}},35367:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cardholderName=void 0;var n=/^[\d\s-]*$/;function r(e,t){return{isValid:e,isPotentiallyValid:t}}t.cardholderName=function(e){return"string"!==typeof e?r(!1,!1):0===e.length?r(!1,!0):e.length>255?r(!1,!1):n.test(e)?r(!1,!0):r(!0,!0)}},85084:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cvv=void 0;function n(e,t){return{isValid:e,isPotentiallyValid:t}}t.cvv=function(e,t){return void 0===t&&(t=3),t=t instanceof Array?t:[t],"string"!==typeof e?n(!1,!1):/^\d*$/.test(e)?function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return!0;return!1}(t,e.length)?n(!0,!0):e.length<Math.min.apply(null,t)?n(!1,!0):e.length>function(e){for(var t=3,n=0;n<e.length;n++)t=e[n]>t?e[n]:t;return t}(t)?n(!1,!1):n(!0,!0):n(!1,!1)}},57622:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.expirationDate=void 0;var i=n(59178),a=n(53437),o=n(75275);function s(e,t,n,r){return{isValid:e,isPotentiallyValid:t,month:n,year:r}}t.expirationDate=function(e,t){var n;if("string"===typeof e)e=e.replace(/^(\d\d) (\d\d(\d\d)?)$/,"$1/$2"),n=i.parseDate(String(e));else{if(null===e||"object"!==typeof e)return s(!1,!1,null,null);var u=r({},e);n={month:String(u.month),year:String(u.year)}}var l=a.expirationMonth(n.month),c=o.expirationYear(n.year,t);if(l.isValid){if(c.isCurrentYear){var p=l.isValidForThisYear;return s(p,p,n.month,n.year)}if(c.isValid)return s(!0,!0,n.month,n.year)}return l.isPotentiallyValid&&c.isPotentiallyValid?s(!1,!0,null,null):s(!1,!1,null,null)}},53437:function(e,t){function n(e,t,n){return{isValid:e,isPotentiallyValid:t,isValidForThisYear:n||!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.expirationMonth=void 0,t.expirationMonth=function(e){var t=(new Date).getMonth()+1;if("string"!==typeof e)return n(!1,!1);if(""===e.replace(/\s/g,"")||"0"===e)return n(!1,!0);if(!/^\d*$/.test(e))return n(!1,!1);var r=parseInt(e,10);if(isNaN(Number(e)))return n(!1,!1);var i=r>0&&r<13;return n(i,i,i&&r>=t)}},75275:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.expirationYear=void 0;function n(e,t,n){return{isValid:e,isPotentiallyValid:t,isCurrentYear:n||!1}}t.expirationYear=function(e,t){var r;if(void 0===t&&(t=19),"string"!==typeof e)return n(!1,!1);if(""===e.replace(/\s/g,""))return n(!1,!0);if(!/^\d*$/.test(e))return n(!1,!1);var i=e.length;if(i<2)return n(!1,!0);var a=(new Date).getFullYear();if(3===i)return n(!1,e.slice(0,2)===String(a).slice(0,2));if(i>4)return n(!1,!1);var o=parseInt(e,10),s=Number(String(a).substr(2,2)),u=!1;if(2===i){if(String(a).substr(0,2)===e)return n(!1,!0);r=s===o,u=o>=s&&o<=s+t}else 4===i&&(r=a===o,u=o>=a&&o<=a+t);return n(u,u,r)}},15703:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=(this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t})(n(11938)),o=n(35367),s=n(75443),u=n(57622),l=n(53437),c=n(75275),p=n(85084),d=n(67204),f={creditCardType:a,cardholderName:o.cardholderName,number:s.cardNumber,expirationDate:u.expirationDate,expirationMonth:l.expirationMonth,expirationYear:c.expirationYear,cvv:p.cvv,postalCode:d.postalCode};e.exports=f},82991:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=void 0,t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},59178:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.parseDate=void 0;var r=n(75275),i=n(82991);t.parseDate=function(e){var t;if(/^\d{4}-\d{1,2}$/.test(e)?t=e.split("-").reverse():/\//.test(e)?t=e.split(/\s*\/\s*/g):/\s/.test(e)&&(t=e.split(/ +/g)),i.isArray(t))return{month:t[0]||"",year:t.slice(1).join()};var n=function(e){var t,n=Number(e[0]);return 0===n?2:n>1||1===n&&Number(e[1])>2?1:1===n?(t=e.substr(1),r.expirationYear(t).isPotentiallyValid?1:2):5===e.length?1:e.length>5?2:1}(e),a=e.substr(0,n);return{month:a,year:e.substr(a.length)}}},34839:function(e){e.exports=function(e){for(var t,n=0,r=!1,i=e.length-1;i>=0;)t=parseInt(e.charAt(i),10),r&&(t*=2)>9&&(t=t%10+1),r=!r,n+=t,i--;return n%10===0}},67204:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.postalCode=void 0;function n(e,t){return{isValid:e,isPotentiallyValid:t}}t.postalCode=function(e,t){void 0===t&&(t={});var r=t.minLength||3;return"string"!==typeof e?n(!1,!1):e.length<r?n(!1,!0):n(!0,!0)}},11938:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=n(72323),a=n(92778),o=n(59657),s=n(14558),u=n(94176),l={},c={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},p=[c.VISA,c.MASTERCARD,c.AMERICAN_EXPRESS,c.DINERS_CLUB,c.DISCOVER,c.JCB,c.UNIONPAY,c.MAESTRO,c.ELO,c.MIR,c.HIPER,c.HIPERCARD],d=u.clone(p);function f(e){return l[e]||i[e]}function h(e,t){void 0===t&&(t=!1);var n=d.indexOf(e);if(!t&&-1===n)throw new Error('"'+e+'" is not a supported card type.');return n}function g(e){var t=[];if(!o.isValidInputType(e))return t;if(0===e.length)return d.map((function(e){return u.clone(f(e))}));d.forEach((function(n){var r=f(n);a.addMatchingCardsToResults(e,r,t)}));var n=s.findBestMatch(t);return n?[n]:t}g.getTypeInfo=function(e){return u.clone(f(e))},g.removeCard=function(e){var t=h(e);d.splice(t,1)},g.addCard=function(e){var t=h(e.type,!0);l[e.type]=e,-1===t&&d.push(e.type)},g.updateCard=function(e,t){var n=l[e]||i[e];if(!n)throw new Error('"'+e+"\" is not a recognized type. Use `addCard` instead.'");if(t.type&&n.type!==t.type)throw new Error("Cannot overwrite type parameter.");var a=u.clone(n);a=r(r({},a),t),l[a.type]=a},g.changeOrder=function(e,t){var n=h(e);d.splice(n,1),d.splice(t,0,e)},g.resetModifications=function(){d=u.clone(p),l={}},g.types=c,e.exports=g},92778:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addMatchingCardsToResults=void 0;var r=n(94176),i=n(12528);t.addMatchingCardsToResults=function(e,t,n){var a,o;for(a=0;a<t.patterns.length;a++){var s=t.patterns[a];if(i.matches(e,s)){var u=r.clone(t);o=Array.isArray(s)?String(s[0]).length:String(s).length,e.length>=o&&(u.matchStrength=o),n.push(u);break}}}},72323:function(e){e.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10
1],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},94176:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){return e?JSON.parse(JSON.stringify(e)):null}},14558:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findBestMatch=void 0,t.findBestMatch=function(e){return function(e){var t=e.filter((function(e){return e.matchStrength})).length;return t>0&&t===e.length}(e)?e.reduce((function(e,t){return e?Number(e.matchStrength)<Number(t.matchStrength)?t:e:t})):null}},59657:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValidInputType=void 0,t.isValidInputType=function(e){return"string"===typeof e||e instanceof String}},12528:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.matches=void 0,t.matches=function(e,t){return Array.isArray(t)?function(e,t,n){var r=String(t).length,i=e.substr(0,r),a=parseInt(i,10);return t=parseInt(String(t).substr(0,i.length),10),n=parseInt(String(n).substr(0,i.length),10),a>=t&&a<=n}(e,t[0],t[1]):function(e,t){return(t=String(t)).substring(0,e.length)===e.substring(0,t.length)}(e,t)}},17120:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(32296),i=n(99846),a=n(16988),o=n(95243);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,a.Z)(e)||(0,o.Z)()}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.