|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-056f57be"],{"1b63":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-page"},[a("a-button",{staticClass:"export-all",attrs:{type:"primary"},on:{click:t.exportStock}},[t._v(" 导出全部巷道 ")]),a("div",{staticClass:"title-info"},[a("span",{staticClass:"explain"},[t._v("颜色说明:")]),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#d81e06"}}),t._v(" 盘点错误 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#1afa29"}}),t._v(" 盘点正确 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#bfbfbf"}}),t._v(" 未盘点 ")],1)]),a("div",{staticStyle:{"margin-top":"10px"}},[t.data[0]?a("a-select",{staticClass:"select-roadway",attrs:{"default-value":t.data[0].name},on:{change:t.handleChange}},t._l(t.data,(function(e){return a("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e()],1),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 左货架号: "+t._s(t.leftShelveId.shelveId)+" ")]),t.streetDetail.leftInsideShelveId&&t.streetDetail.leftOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[a("a-radio-button",{attrs:{value:"leftOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"leftInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.id,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.leftColumn,column:e.leftRow},shelveId:t.leftShelveId.shelveId,streetId:e.id,streetName:e.name,type:"left",inOut:t.leftShelveId.shelveType}}):t._e()],1)})),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 右货架号: "+t._s(t.rightShelveId.shelveId)+" ")]),t.streetDetail.rightInsideShelveId&&t.streetDetail.rightOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size2,callback:function(e){t.size2=e},expression:"size2"}},[a("a-radio-button",{attrs:{value:"rightOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"rightInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.name,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.rightColumn,column:e.rightRow},shelveId:t.rightShelveId.shelveId,streetId:e.id,streetName:e.name,type:"right",inOut:t.rightShelveId.shelveType}}):t._e()],1)}))],2)},i=[],o=(a("96cf"),a("1da1")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"subsection"},[a("a-layout",{staticStyle:{width:"900px"}},[a("a-layout",{staticStyle:{width:"100%",height:"310px"}},[a("a-layout-sider",{attrs:{width:"110px"}},[t.total.column>t.nums.column?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"left"},on:{change:t.changeTabLeft}},t._l(t.latticeColumn,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeColumn,t.nums.column,t.total.column))+" "),1===t.status.column[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.column[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1),a("a-layout-content",[a("div",{staticClass:"roadway-buttom"},[a("div",{staticClass:"roadway-box"},t._l(t.total.column,(function(e,n){return e>=t.random.column[0]&&e<=t.random.column[1]?a("div",{key:n,staticClass:"line"},t._l(t.total.row,(function(n,i){return n>=t.random.row[0]&&n<=t.random.row[1]?a("div",{key:i,staticClass:"el"},[a("span",{staticClass:"default",attrs:{id:t.shelveId+"-"+n+"-"+e},on:{click:function(a){return t.tocheckPage(n,e)}}},[t._v(" "+t._s(n)+"-"+t._s(e)+" ")])]):t._e()})),0):t._e()})),0)])])],1),a("a-layout-footer",[t.total.row>t.nums.row?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"bottom"},on:{change:t.changeTab}},t._l(t.latticeRow,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeRow,t.nums.row,t.total.row))+" "),1===t.status.row[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.row[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1)],1)],1)},s=[],c=(a("99af"),a("d81d"),a("a9e3"),a("ac1f"),a("1276"),a("b85c")),l={name:"Subsection",components:{},props:{select:{type:Object,default:function(){return{row:1,column:1}}},total:{type:Object,default:function(){return{}}},nums:{type:Object,default:function(){return{row:15,column:10}}},shelveId:{type:String,default:function(){return{}}},streetId:{type:Number,default:function(){return{}}},streetName:{type:String,default:function(){return{}}},type:{type:String,default:function(){return{}}},inOut:{type:String,default:function(){return{}}}},computed:{latticeRow:function(){return parseInt(this.total.row/this.nums.row)+(this.total.row%this.nums.row>0?1:0)},latticeColumn:function(){return parseInt(this.total.column/this.nums.column)+(this.total.column%this.nums.column>0?1:0)},random:function(){return{row:this.getRandomRow(this.select.row),column:this.getRandomColumn(this.select.column)}},watchShelveIdInfo:function(){return this.shelveId}},watch:{watchShelveIdInfo:function(){this.getStatus()},immediate:!0},data:function(){return{status:{row:{},column:{}}}},mounted:function(){var t=this;this.$nextTick((function(){t.getStatus()}))},created:function(){},destroyed:function(){},methods:{changeTab:function(t){this.select.row=t,this.getStatus()},changeTabLeft:function(t){this.select.column=t,this.getStatus()},getRandom:function(t,e,a,n){return t!==e?"".concat((t-1)*a+1," - ").concat(t*a):"".concat((t-1)*a+1," - ").concat(n)},getRandomRow:function(t){return this.getRandom(t,this.latticeRow,this.nums.row,this.total.row).split(" - ").map((function(t){return Number(t)}))},getRandomColumn:function(t){return this.getRandom(t,this.latticeColumn,this.nums.column,this.total.column).split(" - ").map((function(t){return Number(t)}))},getStatusBg:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+t+"-"+e),i=1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf";n.style.background=i},getStatusTab:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+a+"-"+t);console.log(n),console.log(this.shelveId+"-"+a+"-"+t),n.style.type="close-circle";var i=1==e?"#d81e06":2==e?"#1afa29":"#bfbfbf";n.style.color=i,console.log(n)},getStatus:function(){var t=this;if("{}"!=JSON.stringify(this.shelveId)){for(var e=[],a=1;a<=this.latticeColumn;a++){var n=this.getRandom(a,this.latticeColumn,this.nums.column,this.total.column);e.push(n)}for(var i=[],o=1;o<=this.latticeRow;o++){var r=this.getRandom(o,this.latticeRow,this.nums.row,this.total.row);i.push(r)}this.$api.httpApi.getStatusByRowColumn({data:{columnStart:this.random.column[0],columnEnd:this.random.column[1],rowStart:this.random.row[0],rowEnd:this.random.row[1],shelveId:this.shelveId,rowTabs:i,columnTabs:e}}).then((function(e){if(200==e.code){if(e.data.stocks){var a,n=Object(c["a"])(e.data.stocks);try{for(n.s();!(a=n.n()).done;){var i=a.value;t.getStatusBg(i.row,i.column,i.status)}}catch(u){n.e(u)}finally{n.f()}}var o=1;for(var r in e.data.columnTabStatus)t.$set(t.status.column,o,e.data.columnTabStatus[r]),o++;var s=1;for(var l in e.data.rowTabStatus)t.$set(t.status.row,s,e.data.rowTabStatus[l]),s++}})).catch((function(t){}))}},tocheckPage:function(t,e){this.$router.push({name:"checkOperation",query:{row:t,column:e,shelveId:this.shelveId,id:this.streetId,name:this.streetName,type:this.type,type2:this.inOut}})}}},u=l,d=(a("37879"),a("2877")),h=Object(d["a"])(u,r,s,!1,null,"4efd880a",null),f=h.exports,p={name:"checkManage",data:function(){return{size:"leftOutsideShelveId",size2:"rightOutsideShelveId",data:[],select:"",streetId:0,streetDetail:{},checkList:[],stockInfo:{left:{},right:{}},timer:null,leftShelveId:{},rightShelveId:{}}},computed:{},mounted:function(){this.request()},activated:function(){this.request()},beforeRouteLeave:function(t,e,a){this.timer&&clearInterval(this.timer),a()},methods:{request:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.data=e.data.list,t.select=e.data.list[0].id,t.getStreetDetail(e.data.list[0].id)})).catch((function(t){}))},getStockRowColumn:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.rightShelveChange(),t.leftShelveChange();case 2:case"end":return e.stop()}}),e)})))()},rightShelveChange:function(){var t,e="none";this.streetDetail.rightShelveId?t=this.streetDetail.rightShelveId:this.streetDetail.rightInsideShelveId&&"rightInsideShelveId"==this.size2?(t=this.streetDetail.rightInsideShelveId,e="inside"):this.streetDetail.rightOutsideShelveId&&"rightOutsideShelveId"==this.size2&&(t=this.streetDetail.rightOutsideShelveId,e="out"),this.rightShelveId.shelveId=t,this.rightShelveId.shelveType=e},leftShelveChange:function(){var t,e="none";this.streetDetail.leftShelveId?t=this.streetDetail.leftShelveId:this.streetDetail.leftInsideShelveId&&"leftInsideShelveId"==this.size?(t=this.streetDetail.leftInsideShelveId,e="inside"):this.streetDetail.leftOutsideShelveId&&"leftOutsideShelveId"==this.size&&(t=this.streetDetail.leftOutsideShelveId,e="out"),this.leftShelveId.shelveId=t,this.leftShelveId.shelveType=e},getStatus:function(t,e){return(t[e]||{}).status},getStatusBg:function(t,e){var a=this.getStatus(t,e);return 1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf"},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.getStockRowColumn()})).catch((function(t){}))},handleChange:function(t){this.select=t,this.getStreetDetail(t),this.leftShelveChange(),this.rightShelveChange()},tocheckOperation:function(t,e){console.log(t),console.log(e),this.$router.push({name:"checkOperation",query:{checkObj:t,item:e}})},exportStock:function(){var t=this;this.$api.httpApi.exportStock({params:{streetId:this.select}}).then((function(e){var a=new Blob([e],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("巷道列表.xls",a)})).catch((function(t){}))}},components:{Subsection:f}},v=p,g=(a("5fc2"),Object(d["a"])(v,n,i,!1,null,"595ce60c",null));e["default"]=g.exports},37879:function(t,e,a){"use strict";var n=a("f4b6"),i=a.n(n);i.a},"42d2":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-4efd880a]{text-align:left}.subsection[data-v-4efd880a] {width:100%;height:360px;overflow:hidden}.subsection[data-v-4efd880a] .ant-tabs-nav .ant-tabs-tab{margin-right:0}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:#40a9ff;border-color:#40a9ff;box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{background:#40a9ff;border-color:#40a9ff}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked{box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-4efd880a] .radio-button-cell{width:100px;text-align:center}.subsection[data-v-4efd880a] .ant-layout-sider{height:100%}.subsection[data-v-4efd880a] .ant-layout-sider .ant-tabs{height:300px}.subsection[data-v-4efd880a] .ant-layout-sider .ant-tabs-tab{padding:8px;margin-bottom:5px;width:104px}.subsection[data-v-4efd880a] .ant-layout-footer{padding:0 0 0 110px}.subsection[data-v-4efd880a] .ant-layout-footer .ant-tabs-bottom-bar{margin-top:0}.subsection[data-v-4efd880a] .ant-layout,.subsection[data-v-4efd880a] .ant-layout-footer,.subsection[data-v-4efd880a] .ant-layout-sider{background-color:#fff}.subsection[data-v-4efd880a] roadway-buttom{padding:5px 0;width:100%}.subsection[data-v-4efd880a] .roadway-box{padding:10px 10px 0 0}.subsection[data-v-4efd880a] .roadway-box .line{display:flex}.subsection[data-v-4efd880a] .roadway-box .line .el{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.subsection[data-v-4efd880a] .roadway-box .line .el .default{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.exports=e},"48fc":function(t,e,a){var n=a("cf13");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("5072deb0",n,!0,{sourceMap:!1,shadowMode:!1})},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),o="["+i+"]",r=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(r,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5fc2":function(t,e,a){"use strict";var n=a("48fc"),i=a.n(n);i.a},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var o,r;return i&&"function"==typeof(o=e.constructor)&&o!==a&&n(r=o.prototype)&&r!==a.prototype&&i(t,r),t}},"99af":function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("e8b5"),r=a("861d"),s=a("7b0b"),c=a("50c4"),l=a("8418"),u=a("65f0"),d=a("1dde"),h=a("b622"),f=a("2d00"),p=h("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=f>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=d("concat"),y=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},S=!m||!b;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,a,n,i,o,r=s(this),d=u(r,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?r:arguments[e],y(o)){if(i=c(o.length),h+i>v)throw TypeError(g);for(a=0;a<i;a++,h++)a in o&&l(d,h,o[a])}else{if(h>=v)throw TypeError(g);l(d,h++,o)}return d.length=h,d}})},a630:function(t,e,a){var n=a("23e7"),i=a("4df4"),o=a("1c7e"),r=!o((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:r},{from:i})},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),o=a("94ca"),r=a("6eeb"),s=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),f=a("241c").f,p=a("06cf").f,v=a("9bf2").f,g=a("58a8").trim,m="Number",b=i[m],y=b.prototype,S=c(h(y))==m,w=function(t){var e,a,n,i,o,r,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=g(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),r=o.length,s=0;s<r;s++)if(c=o.charCodeAt(s),c<48||c>i)return NaN;return parseInt(o,n)}return+l};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,I=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof I&&(S?d((function(){y.valueOf.call(a)})):c(a)!=m)?l(new b(w(e)),a,I):w(e)},k=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;k.length>C;C++)s(b,x=k[C])&&!s(I,x)&&v(I,x,p(b,x));I.prototype=y,y.constructor=I,r(i,m,I)}},b85c:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),a("a630"),a("fb6a"),a("b0c0"),a("25f0");function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function i(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function o(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=i(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(c)throw r}}}}},cf13:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-595ce60c]{text-align:left}.check-page[data-v-595ce60c]{position:relative}.check-page .title-info[data-v-595ce60c]{display:flex;align-items:center;justify-content:start}.check-page .title-info .explain[data-v-595ce60c]{font-weight:600}.check-page .title-info .info-text[data-v-595ce60c]{display:flex;align-items:center;justify-content:center;margin-right:15px}.check-page .ant-tag[data-v-595ce60c]{margin-right:0;display:block;line-height:25px;text-align:center;cursor:pointer}.check-page .roadway-top[data-v-595ce60c],.check-page roadway-buttom[data-v-595ce60c]{padding:5px 0;width:100%}.check-page .roadway-box[data-v-595ce60c]{transform:rotateX(180deg);padding:10px 10px 0 0}.check-page .roadway-box .line[data-v-595ce60c]{display:flex;transform:rotateX(180deg)}.check-page .roadway-box .line .el[data-v-595ce60c]{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.check-page .roadway-box .line .el .default[data-v-595ce60c]{position:absolute;top:0;left:0;right:0;bottom:0}.check-page .center-box[data-v-595ce60c]{width:500px;height:52px;line-height:52px}.check-page .center-box .shelf-number[data-v-595ce60c]{display:inline-block;width:200px}.check-page .export-all[data-v-595ce60c]{position:absolute;right:20px}",""]),t.exports=e},d28b:function(t,e,a){var n=a("746f");n("iterator")},e01a:function(t,e,a){"use strict";var n=a("23e7"),i=a("83ab"),o=a("da84"),r=a("5135"),s=a("861d"),c=a("9bf2").f,l=a("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new u(t):void 0===t?u():u(t);return""===t&&(d[e]=!0),e};l(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(r(d,t))return"";var a=v?e.slice(7,-1):e.replace(g,"$1");return""===a?void 0:a}}),n({global:!0,forced:!0},{Symbol:h})}},f4b6:function(t,e,a){var n=a("42d2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("38e85af2",n,!0,{sourceMap:!1,shadowMode:!1})},fb6a:function(t,e,a){"use strict";var n=a("23e7"),i=a("861d"),o=a("e8b5"),r=a("23cb"),s=a("50c4"),c=a("fc6a"),l=a("8418"),u=a("b622"),d=a("1dde"),h=a("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var a,n,u,d=c(this),h=s(d.length),f=r(t,h),p=r(void 0===e?h:e,h);if(o(d)&&(a=d.constructor,"function"!=typeof a||a!==Array&&!o(a.prototype)?i(a)&&(a=a[v],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return g.call(d,f,p);for(n=new(void 0===a?Array:a)(m(p-f,0)),u=0;f<p;f++,u++)f in d&&l(n,u,d[f]);return n.length=u,n}})}}]); |