(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c5e15b0a"],{"0353":function(t,e,a){"use strict";var r=a("6bf8"),n=RegExp.prototype.exec,o=String.prototype.replace,i=n,l="lastIndex",s=function(){var t=/a/,e=/b*/g;return n.call(t,"a"),n.call(e,"a"),0!==t[l]||0!==e[l]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(i=function(t){var e,a,i,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),s&&(e=d[l]),i=n.call(d,t),s&&i&&(d[l]=d.global?i.index+i[0].length:e),c&&i&&i.length>1&&o.call(i[0],a,(function(){for(u=1;u=c?t?"":void 0:(o=l.charCodeAt(s),o<55296||o>56319||s+1===c||(i=l.charCodeAt(s+1))<56320||i>57343?t?l.charAt(s):o:t?l.slice(s,s+2):i-56320+(o-55296<<10)+65536)}}},"21d9":function(t,e,a){var r=a("3a4c"),n=a("065e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,n)}},"285b":function(t,e,a){var r=a("35d4"),n=a("5edc"),o=a("3471"),i=a("5d10"),l=a("4fd4"),s=a("83d3"),c=Object.getOwnPropertyDescriptor;e.f=a("26df")?c:function(t,e){if(t=o(t),e=i(e,!0),s)try{return c(t,e)}catch(a){}if(l(t,e))return n(!r.f.call(t,e),t[e])}},3044:function(t,e,a){},"30ac":function(t,e,a){"use strict";a("3044")},"43ec":function(t,e,a){"use strict";var r=a("1663")(!0);t.exports=function(t,e,a){return e+(a?r(t,e).length:1)}},"5dc3":function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},"6bf8":function(t,e,a){"use strict";var r=a("a86f");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"804d":function(t,e,a){var r=a("9cff"),n=a("cea2"),o=a("839a")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==n(t))}},"856d":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"content data"},[a("h4",[t._v("数据统计")]),a("el-divider"),a("el-form",{staticClass:"filter-form",attrs:{"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"比赛名称",prop:"match_id"}},[a("el-select",{attrs:{placeholder:"请选择比赛",size:"mini"},on:{change:function(e){return t.getData()}},model:{value:t.queryParams.match_id,callback:function(e){t.$set(t.queryParams,"match_id",e)},expression:"queryParams.match_id"}},t._l(t.matchList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"选手名字"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入选手名字/代码",size:"mini"},on:{clear:function(e){return t.getData()}},model:{value:t.queryParams.username,callback:function(e){t.$set(t.queryParams,"username",e)},expression:"queryParams.username"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"持股日期"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"mini"},model:{value:t.queryParams.stock_date,callback:function(e){t.$set(t.queryParams,"stock_date",e)},expression:"queryParams.stock_date"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"比赛分组"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择比赛分组",size:"mini"},on:{clear:function(e){return t.getData()},change:function(e){return t.getData()}},model:{value:t.queryParams.groupId,callback:function(e){t.$set(t.queryParams,"groupId",e)},expression:"queryParams.groupId"}},t._l(t.groupList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{attrs:{label:"是否请假"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择",size:"mini"},on:{clear:function(e){return t.getData()},change:function(e){return t.getData()}},model:{value:t.queryParams.auto_complete,callback:function(e){t.$set(t.queryParams,"auto_complete",e)},expression:"queryParams.auto_complete"}},t._l(t.missDayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"10"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.getData}},[t._v("筛选")]),a("el-button",{attrs:{type:"normal",size:"mini"},on:{click:function(e){t.queryParams={},t.getData()}}},[t._v("重置")]),a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:t.handleAdd}},[t._v("上传数据")])],1)],1),a("el-col",{attrs:{span:3}},[a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"10"}},[a("el-button",{attrs:{icon:"el-icon-download",type:"primary",size:"mini"},on:{click:t.downloadExcel}},[t._v("导出Excel")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:t.list,height:"55vh"}},[a("el-table-column",{attrs:{prop:"group_rank",label:"排名"}}),a("el-table-column",{attrs:{prop:"username",label:"选手"}}),a("el-table-column",{attrs:{prop:"stock_date",label:"持股日期",width:"150"}}),a("el-table-column",{attrs:{prop:"init_fund",label:"初始资产(万元)"}}),a("el-table-column",{attrs:{prop:"yesterday_fund",label:"昨日资产(万元)"}}),a("el-table-column",{attrs:{prop:"today_fund",label:"今日资产(万元)"}}),a("el-table-column",{attrs:{prop:"today_income",label:"今日盈亏"}}),a("el-table-column",{attrs:{prop:"total_income",label:"总盈亏",width:"100"}}),a("el-table-column",{attrs:{prop:"yesterday_stock",label:"昨日持股",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.yesterday_auto_complete>0?a("div",{staticStyle:{color:"red"}},[t._v("请假")]):a("div",[1==e.row.yesterday_is_markt?a("div",{staticStyle:{color:"#409EFF"}},[t._v("开超市")]):t._e(),0==e.row.yesterday_is_markt&&0==e.row.yesterday_stock.length?a("div",{staticStyle:{color:"#E6A23C"}},[t._v("空仓")]):t._e(),0!=e.row.yesterday_stock.length?a("div",t._l(e.row.yesterday_stock,(function(e,r){return a("p",{key:r},[e.fund>0?a("span",[t._v(t._s(e.name)+"("+t._s(e.fund)+"万元)")]):a("span",[t._v(t._s(e.name))])])})),0):t._e()])]}}])}),a("el-table-column",{attrs:{prop:"today_stock",label:"今日持股",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.auto_complete>0?a("div",{staticStyle:{color:"red"}},[t._v("请假")]):a("div",[1==e.row.is_markt?a("div",{staticStyle:{color:"#409EFF"}},[t._v("开超市")]):t._e(),0==e.row.is_markt&&0==e.row.today_stock.length?a("div",{staticStyle:{color:"#E6A23C"}},[t._v("空仓")]):t._e(),0!=e.row.today_stock.length?a("div",t._l(e.row.today_stock,(function(e,r){return a("p",{key:r},[e.fund>0?a("span",[t._v(t._s(e.name)+"("+t._s(e.fund)+"万元)")]):a("span",[t._v(t._s(e.name))])])})),0):t._e()])]}}])}),a("el-table-column",{attrs:{prop:"ctime",label:"创建时间",width:"160"}}),a("el-table-column",{attrs:{prop:"date",label:"操作",fixed:"right",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return t.edit(e.row.id)}}},[t._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:t.form.page,page_size:t.form.page_size,total:t.total},on:{pageChange:t.gopage}}),a("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"赛事名称",prop:"match_id"}},[a("el-select",{attrs:{placeholder:"请选择比赛"},model:{value:t.form.match_id,callback:function(e){t.$set(t.form,"match_id",e)},expression:"form.match_id"}},t._l(t.matchList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("el-form-item",{attrs:{label:"参赛选手",prop:"player_id"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择用户代码"},model:{value:t.form.player_id,callback:function(e){t.$set(t.form,"player_id",e)},expression:"form.player_id"}},t._l(t.playerList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),a("el-form-item",{attrs:{label:"持仓日期",prop:"stock_date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.form.stock_date,callback:function(e){t.$set(t.form,"stock_date",e)},expression:"form.stock_date"}})],1),a("el-form-item",{attrs:{label:"今日资产",prop:"today_fund"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入今日资产",type:"number"},model:{value:t.form.today_fund,callback:function(e){t.$set(t.form,"today_fund",e)},expression:"form.today_fund"}},[a("template",{slot:"append"},[t._v("万元")])],2)],1),a("el-form-item",{attrs:{label:"开超市",prop:"is_markt"}},[a("el-switch",{model:{value:t.form.is_markt,callback:function(e){t.$set(t.form,"is_markt",e)},expression:"form.is_markt"}})],1),a("el-form-item",{attrs:{label:"股票名称",prop:"today_stock"}},[t._l(t.form.today_stock,(function(e,r){return a("div",{key:r,staticStyle:{"margin-bottom":"5px"}},[a("el-input",{staticStyle:{width:"48%",display:"inline-block"},attrs:{placeholder:"请输入股票名称",disabled:1==t.form.is_markt},model:{value:e.name,callback:function(a){t.$set(e,"name",a)},expression:"item.name"}}),t._v("\n  "),a("el-input",{staticStyle:{width:"39%"},attrs:{clearable:"",placeholder:"资金",disabled:1==t.form.is_markt},model:{value:e.fund,callback:function(a){t.$set(e,"fund",a)},expression:"item.fund"}},[a("template",{slot:"append"},[t._v("万元")])],2),a("i",{staticClass:"el-icon-circle-close del",staticStyle:{"margin-top":"5px"},on:{click:function(e){return t.form.today_stock.splice(r,1)}}})],1)})),a("el-button",{attrs:{type:"primary",size:"small",plain:""},on:{click:t.addCode}},[t._v("新增股票")])],2),a("el-form-item",{attrs:{label:"股票截图",prop:"today_stock_img"}},[t._l(t.form.today_stock_img,(function(e,r){return a("div",{key:r,staticClass:"imgs"},[a("img",{attrs:{width:"150",src:e,alt:""}}),a("i",{staticClass:"el-icon-circle-close del",on:{click:function(e){return t.form.today_stock_img.splice(r,1)}}})])})),a("el-upload",{staticClass:"upload-demo",attrs:{"show-file-list":!1,"on-success":t.handleSuccess,action:"/api/admin/uploadfile"}},[a("el-button",{attrs:{size:"small",type:"primary",plain:""}},[t._v("上传股票截图")])],1)],2)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),a("el-button",{on:{click:function(e){t.open=!1}}},[t._v("取 消")])],1)],1)],1)},n=[],o=(a("fc02"),a("e680"),a("9973")),i={components:{Page:o["a"]},data:function(){return{loading:!1,queryParams:{match_id:0,page:1,stock_date:this.getNowDate()},form:{stock_date:this.getNowDate()},list:[{},{}],total:0,title:"新增用户",open:!1,rules:{match_id:[{required:!0,message:"请选择比赛",trigger:"change"}],player_id:[{required:!0,message:"请输入用户代码",trigger:"blur"}],stock_date:[{required:!0,message:"请选择持仓日期",trigger:"blur"}],today_fund:[{required:!0,message:"请输入今日资产",trigger:"blur"}],is_markt:[{required:!1,message:"请选择",trigger:"change"}]},matchList:[],playerList:[],groupList:[],stockList:[],missDayList:[{id:0,name:"否"},{id:1,name:"是"}]}},methods:{getNowDate:function(){var t=(new Date).getFullYear(),e=Number((new Date).getMonth()+1),a=(new Date).getDate();return e=e>9?e:"0"+e,a=a>9?a:"0"+a,t+"-"+e+"-"+a},downloadExcel:function(){var t=this;this.$api.downloadRecords(this.queryParams).then((function(e){var a=document.createElement("a"),r=new Blob([e.data],{type:"application/vnd.ms-excel,charset=UTF-8"}),n=URL.createObjectURL(r),o=decodeURIComponent(e.headers["content-disposition"].split("=")[1]);console.log(o),a.download="参赛数据",a.style.display="none",a.href=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),t.download_loading=!1}))},del:function(t){var e=this;this.$confirm("确定删除吗?","提示",{type:"warning"}).then((function(){e.$api.delRecord({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))},gopage:function(t){t&&(this.queryParams.page_size=t),this.queryParams.page=this.$refs.pageButton.page,this.getData()},getData:function(){var t=this;this.loading=!0,this.$api.getPlayerRecord(this.queryParams).then((function(e){t.list=e.data.data.list,t.total=e.data.data.total,t.loading=!1}))},edit:function(t){var e=this;this.title="编辑数据",this.$api.getRecordInfo({id:t}).then((function(t){e.form=t.data.data,e.open=!0}))},handleAdd:function(){this.open=!0,this.title="新增数据",this.form={match_id:this.matchList[0].id,today_stock:[{code:"",name:"",fund:""}],today_stock_img:[],stock_date:this.getNowDate()}},addCode:function(){this.form.today_stock.push({code:"",name:"",fund:""})},handleSuccess:function(t,e){console.log(t),this.form.today_stock_img.push(t.data.url)},submitForm:function(){var t=this;console.log(this.form),this.$refs["form"].validate((function(e){e&&(null!=t.form.id?t.$api.editRecord(t.form).then((function(e){0==e.data.code?(t.msgSuccess("修改成功"),t.open=!1,t.getData()):t.msgError(e.data.message)})):t.$api.addRecord(t.form).then((function(e){0==e.data.code?(t.msgSuccess("新增成功"),t.open=!1,t.getData()):t.msgError(e.data.message)})))}))}},created:function(){var t=this;this.$api.getMatchList().then((function(e){t.matchList=e.data.data,t.queryParams.match_id=t.matchList[0].id,t.getData()})),this.$api.getPlayerList().then((function(e){t.playerList=e.data.data})),this.$api.getGroupList().then((function(e){t.groupList=e.data.data})),this.$api.getStockList().then((function(e){t.stockList=e.data.data}))}},l=i,s=(a("30ac"),a("4ac2")),c=Object(s["a"])(l,r,n,!1,null,null,null);e["default"]=c.exports},9973:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-pagination",{attrs:{background:"","page-size":t.page_size?t.page_size:20,"current-page":t.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:t.total},on:{"current-change":t.getData,"size-change":t.handleSizeChange}})},n=[],o={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(t){this.page=t,this.$emit("pageChange")},handleSizeChange:function(t){this.$emit("pageChange",t)}},created:function(){}},i=o,l=(a("129d"),a("4ac2")),s=Object(l["a"])(i,r,n,!1,null,null,null);e["a"]=s.exports},a83a:function(t,e,a){var r=a("9cff"),n=a("e0ff").set;t.exports=function(t,e,a){var o,i=e.constructor;return i!==a&&"function"==typeof i&&(o=i.prototype)!==a.prototype&&r(o)&&n&&n(t,o),t}},b94e:function(t,e,a){},bf73:function(t,e,a){"use strict";var r=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},c46f:function(t,e,a){"use strict";a("bf73");var r=a("84e8"),n=a("065d"),o=a("0926"),i=a("3ab0"),l=a("839a"),s=a("0353"),c=l("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var p=l(t),f=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),m=f?!o((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!e})):void 0;if(!f||!m||"replace"===t&&!u||"split"===t&&!d){var h=/./[p],g=a(i,p,""[t],(function(t,e,a,r,n){return e.exec===s?f&&!n?{done:!0,value:h.call(e,a,r)}:{done:!0,value:t.call(a,e,r)}:{done:!1}})),y=g[0],_=g[1];r(String.prototype,t,y),n(RegExp.prototype,p,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},e0ff:function(t,e,a){var r=a("9cff"),n=a("a86f"),o=function(t,e){if(n(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=a("1e4d")(Function.call,a("285b").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(n){e=!0}return function(t,a){return o(t,a),e?t.__proto__=a:r(t,a),t}}({},!1):void 0),check:o}},e680:function(t,e,a){"use strict";var r=a("0b34"),n=a("4fd4"),o=a("cea2"),i=a("a83a"),l=a("5d10"),s=a("0926"),c=a("21d9").f,u=a("285b").f,d=a("bb8b").f,p=a("eb34").trim,f="Number",m=r[f],h=m,g=m.prototype,y=o(a("7ee3")(g))==f,_="trim"in String.prototype,v=function(t){var e=l(t,!1);if("string"==typeof e&&e.length>2){e=_?e.trim():p(e,3);var a,r,n,o=e.charCodeAt(0);if(43===o||45===o){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+e}for(var i,s=e.slice(2),c=0,u=s.length;cn)return NaN;return parseInt(s,r)}}return+e};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof m&&(y?s((function(){g.valueOf.call(a)})):o(a)!=f)?i(new h(v(e)),a,m):v(e)};for(var b,k=a("26df")?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;k.length>x;x++)n(h,b=k[x])&&!n(m,b)&&d(m,b,u(h,b));m.prototype=g,g.constructor=m,a("84e8")(r,f,m)}},eb34:function(t,e,a){var r=a("e99b"),n=a("3ab0"),o=a("0926"),i=a("5dc3"),l="["+i+"]",s="​…",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(t,e,a){var n={},l=o((function(){return!!i[t]()||s[t]()!=s})),c=n[t]=l?e(p):i[t];a&&(n[a]=c),r(r.P+r.F*l,"String",n)},p=d.trim=function(t,e){return t=String(n(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},f417:function(t,e,a){"use strict";var r=a("d445"),n=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"===typeof a){var o=a.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},fc02:function(t,e,a){"use strict";var r=a("804d"),n=a("a86f"),o=a("1b0b"),i=a("43ec"),l=a("201c"),s=a("f417"),c=a("0353"),u=a("0926"),d=Math.min,p=[].push,f="split",m="length",h="lastIndex",g=4294967295,y=!u((function(){RegExp(g,"y")}));a("c46f")("split",2,(function(t,e,a,u){var _;return _="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[m]||2!="ab"[f](/(?:ab)*/)[m]||4!="."[f](/(.?)(.?)/)[m]||"."[f](/()()/)[m]>1||""[f](/.?/)[m]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!r(t))return a.call(n,t,e);var o,i,l,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,f=void 0===e?g:e>>>0,y=new RegExp(t.source,u+"g");while(o=c.call(y,n)){if(i=y[h],i>d&&(s.push(n.slice(d,o.index)),o[m]>1&&o.index=f))break;y[h]===o.index&&y[h]++}return d===n[m]?!l&&y.test("")||s.push(""):s.push(n.slice(d)),s[m]>f?s.slice(0,f):s}:"0"[f](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,r){var n=t(this),o=void 0==a?void 0:a[e];return void 0!==o?o.call(a,n,r):_.call(String(n),a,r)},function(t,e){var r=u(_,t,this,e,_!==a);if(r.done)return r.value;var c=n(t),p=String(this),f=o(c,RegExp),m=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(y?"y":"g"),v=new f(y?c:"^(?:"+c.source+")",h),b=void 0===e?g:e>>>0;if(0===b)return[];if(0===p.length)return null===s(v,p)?[p]:[];var k=0,x=0,w=[];while(x