bztang-admin/addons/yun_shop/static/app/js/chunk-70b35455.a01e34cd.js

3 lines
22 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70b35455"],{"0fe1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page"},[n("c-title",{attrs:{text:"区域代理"}},[n("div",{attrs:{slot:"edit"},on:{click:function(t){e.ruleFlag=!0}},slot:"edit"},[e._v("规则说明")])]),n("div",{staticClass:"search",on:{click:e.gotoSearch}},[n("input",{staticClass:"input",attrs:{placeholder:"请输入区域"}}),n("div",{staticClass:"btn"},[e._v("搜索")])]),n("div",{staticClass:"wrapper"},[e._l(e.renderingList,(function(t,r){return[n("div",{key:r,staticClass:"container"},[n("div",{staticClass:"provinceList"},e._l(t,(function(t,a){return n("div",{key:a,staticClass:"provinceItem",class:[null!=e.provinceItem&&t.id==e.provinceItem.id?"active":""],style:{backgroundColor:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.bg_color:"",color:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.words_color:""},on:{click:function(n){return e.handProvinceClick(t,r)}}},[t.has_agent?n("i",{staticClass:"iconfont icon-renxiang"}):e._e(),n("span",{staticClass:"name",style:{paddingLeft:t.has_agent?"0rem":"1rem"}},[e._v(e._s(t.areaname))]),n("i",{staticClass:"iconfont icon-advertise-next"})])})),0),r==e.flootIndex?n("div",{staticClass:"children"},[n("div",{staticClass:"selected"},[null!=e.provinceItem?n("div",{staticClass:"selectName",on:{click:e.handSelectedProvince}},[e._v(" "+e._s(e.provinceItem.areaname)),n("i",{staticClass:"iconfont icon-advertise-next"})]):e._e(),null!=e.cityItem?n("div",{staticClass:"selectName",on:{click:e.handSelectedCity}},[e._v(" "+e._s(e.cityItem.areaname)),n("i",{staticClass:"iconfont icon-advertise-next"})]):e._e(),null!=e.areaItem?n("div",{staticClass:"selectName",on:{click:e.handSelectedArea}},[e._v(" "+e._s(e.areaItem.areaname)),n("i",{staticClass:"iconfont icon-advertise-next"})]):e._e(),null!=e.streetItem?n("div",{staticClass:"selectName"},[e._v(" "+e._s(e.streetItem.areaname)+" ")]):e._e()]),2==e.currentSelectedLevel?n("div",{staticClass:"childrenCntainer"},e._l(e.childrenList,(function(t){return n("div",{key:t.id,staticClass:"childrenItem",class:[null!=e.cityItem&&t.id==e.cityItem.id?"active":""],style:{backgroundColor:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.bg_color:"",color:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.words_color:""},on:{click:function(n){return e.handChildren(t)}}},[t.has_agent?n("i",{staticClass:"iconfont icon-renxiang"}):e._e(),n("span",{staticClass:"name",style:{paddingLeft:t.has_agent?"0rem":"1rem"}},[e._v(e._s(t.areaname))]),n("i",{staticClass:"iconfont icon-advertise-next"})])})),0):3==e.currentSelectedLevel?n("div",{staticClass:"childrenCntainer"},e._l(e.childrenList,(function(t){return n("div",{key:t.id,staticClass:"childrenItem",class:[null!=e.areaItem&&t.id==e.areaItem.id?"active":""],style:{backgroundColor:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.bg_color:"",color:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.words_color:""},on:{click:function(n){return e.handChildren(t)}}},[t.has_agent?n("i",{staticClass:"iconfont icon-renxiang"}):e._e(),n("span",{staticClass:"name",style:{paddingLeft:t.has_agent?"0rem":"1rem"}},[e._v(e._s(t.areaname))]),n("i",{staticClass:"iconfont icon-advertise-next"})])})),0):4==e.currentSelectedLevel?n("div",{staticClass:"childrenCntainer"},e._l(e.childrenList,(function(t){return n("div",{key:t.id,staticClass:"childrenItem",class:[null!=e.streetItem&&t.id==e.streetItem.id?"active":""],style:{backgroundColor:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.bg_color:"",color:t.has_many_tag&&t.has_many_tag[0]&&t.has_many_tag[0].belongs_to_tag?t.has_many_tag[0].belongs_to_tag.words_color:""},on:{click:function(n){return e.handChildren(t)}}},[t.has_agent?n("i",{staticClass:"iconfont icon-renxiang"}):e._e(),n("span",{staticClass:"name",style:{paddingLeft:t.has_agent?"0rem":"1rem"}},[e._v(e._s(t.areaname))]),n("i",{staticClass:"iconfont icon-advertise-next"})])})),0):e._e()]):e._e()])]}))],2),n("van-overlay",{attrs:{show:e.ruleFlag,"lock-scroll":!1},on:{click:function(t){e.ruleFlag=!1}}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[n("transition",{attrs:{name:"van-slide-up"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.ruleFlag,expression:"ruleFlag"}],staticClass:"explainWrapper",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"header"},[n("div",{staticClass:"title"},[e._v("规则")]),n("i",{staticClass:"iconfont icon-guanbi",on:{click:function(t){e.ruleFlag=!1}}})]),n("div",{staticClass:"content",domProps:{innerHTML:e._s(e.ruleContext)}})])])],1)]),n("div",{staticStyle:{height:"3.063rem",width:"100%"}}),n("div",{staticClass:"fixedBottom"},[n("div",{staticClass:"btn",on:{click:e.gotoResult}},[e._v("查询")])])],1)},a=[],i=n("c7eb"),o=(n("e7e5"),n("d399")),s=n("1da1"),c={data:function(){return{ruleFlag:!1,ruleContext:"",provinceList:[],cityList:[],areaList:[],streetList:[],provinceItem:null,cityItem:null,areaItem:null,streetItem:null,flootIndex:null,currentSelectedLevel:0,renderingList:[],childrenList:[]}},created:function(){},activated:function(){this.initData(),this.getProvinceList(0),this.getRule()},methods:{initData:function(){this.currentSelectedLevel=0,this.provinceList=[],this.cityList=[],this.areaItem=[],this.streetItem=[],this.provinceItem=null,this.cityItem=null,this.areaItem=null,this.streetItem=null,this.flootIndex=null},getProvinceList:function(e){var t=this;return Object(s["a"])(Object(i["a"])().mark((function n(){var r;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o["a"].loading({message:"搜索中",forbidClick:!0}),n.next=3,$http.get("plugin.agent-enquiry.Frontend.controllers.list.get-area",{parent_id:e});case 3:if(r=n.sent,o["a"].clear(),1==r.result){n.next=8;break}return Object(o["a"])(r.msg),n.abrupt("return");case 8:if(0!=r.data.leng){n.next=11;break}return Object(o["a"])("没下级了"),n.abrupt("return");case 11:t.currentSelectedLevel++,1==t.currentSelectedLevel?(t.provinceList=r.data,t.setRendering()):2==t.currentSelectedLevel?t.cityList=r.data:3==t.currentSelectedLevel?t.areaList=r.data:4==t.currentSelectedLevel&&(t.streetList=r.data),1!=t.currentSelectedLevel&&(t.childrenList=r.data);case 14:case"end":return n.stop()}}),n)})))()},setRendering:function(){this.renderingList=[];for(var e=Math.ceil(this.provinceList.length/4),t=0,n=0;n<e;n++)for(var r=[],a=t;a<this.provinceList.length;a++){if(r.push(this.provinceList[a]),a+1==this.provinceList.length){this.renderingList.push(r);break}if(4==r.length){t=a+1,this.renderingList.push(r);break}}},handChildren:function(e){2==this.currentSelectedLevel?this.cityItem=e:3==this.currentSelectedLevel?this.areaItem=e:4==this.currentSelectedLevel&&(this.streetItem=e),4!=this.currentSelectedLevel&&this.getProvinceList(e.id)},handProvinceClick:function(e,t){this.provinceItem&&e.id==this.provinceItem.id||(this.currentSelectedLevel=1,this.cityItem=null,this.areaItem=null,this.streetItem=null,this.flootIndex=t,this.provinceItem=e,this.getProvinceList(e.id))},handSelectedProvince:function(){this.cityItem=null,this.areaItem=null,this.streetItem=null,this.currentSelectedLevel=2,this.childrenList=this.cityList},handSelectedCity:function(){this.areaItem=null,this.streetItem=null,this.currentSelectedLevel=3,this.childrenList=this.areaList},handSelectedArea:function(){this.streetItem=null},gotoResult:function(){var e=this.provinceItem,t=this.cityItem,n=this.areaItem,r=this.streetItem,a=null;if(null!=r?a=r:null!=n?a=n:null!=t?a=t:null!=e&&(a=e),null==a)return Object(o["a"])("请选择需要查询的区域");this.$router.push(this.fun.getUrl("regionalAgentResult",{},{area_id:a.id,level:a.level}))},gotoSearch:function(){this.$router.push(this.fun.getUrl("regionalAgentSearch",{},{}))},getRule:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.get("plugin.agent-enquiry.Frontend.controllers.list.get-rule");case 2:if(n=t.sent,1==n.result){t.next=6;break}return Object(o["a"])(n.msg),t.abrupt("return");case 6:e.ruleContext=n.data;case 7:case"end":return t.stop()}}),t)})))()}}},l=c,d=l,u=(n("5d13"),n("2877")),h=Object(u["a"])(d,r,a,!1,null,"e860d3aa",null);t["default"]=h.exports},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("d3b7");function r(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,c,"next",e)}function c(e){r(o,a,i,s,c,"throw",e)}s(void 0)}))}}},"5d13":function(e,t,n){"use strict";n("850d")},"850d":function(e,t,n){var r=n("b37b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=n("499e").default;a("06d90440",r,!0,{sourceMap:!1,shadowMode:!1})},b37b:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".page[data-v-e860d3aa]{background:#fff;min-height:100vh}.search[data-v-e860d3aa]{margin:1rem auto 0;width:20.5rem;height:2.125rem;background-color:#f5f5f5;border-radius:1.063rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}.search .input[data-v-e860d3aa]{width:20.5rem;padding-right:4rem;font-size:.813rem;color:#838383;padding-left:1rem;border:none}.search .btn[data-v-e860d3aa]{position:absolute;top:0;right:0;width:3.875rem;height:2.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;background-color:#0176ff;border-radius:1.063rem}.wrapper[data-v-e860d3aa]{padding-top:1.5rem}.wrapper .container[data-v-e860d3aa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.wrapper .container .provinceList[data-v-e860d3aa]{padding:0 .781rem;padding-bottom:1.094rem;display:grid;grid-template-columns:repeat(4,5.25rem);grid-column-gap:.281rem}.wrapper .container .provinceList .provinceItem[data-v-e860d3aa]{width:5.25rem;height:2rem;border-radius:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;font-size:.813rem;color:#3a3a3a;background-color:#f7f7f7}.wrapper .container .provinceList .provinceItem.active[data-v-e860d3aa]{color:#0176ff;background-color:rgba(1,118,255,.08)}.wrapper .container .provinceList .provinceItem .icon-renxiang[data-v-e860d3aa]{font-size:.6rem;padding-left:.5rem;padding-right:.1rem}.wrapper .container .provinceList .provinceItem .name[data-v-e860d3aa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrapper .container .provinceList .provinceItem .icon-advertise-next[data-v-e860d3aa]{padding-right:.15rem}.wrapper .container .children .selected[data-v-e860d3aa]{padding:0 .844rem .625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#333;font-size:.938rem}.wrapper .container .children .selected .selectName[data-v-e860d3aa]{margin-right:1rem}.wrapper .container .children .childrenCntainer[data-v-e860d3aa]{background-color:#f1f6fa;margin-bottom:.9rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .781rem 1.031rem}.wrapper .container .children .childrenCntainer .childrenItem[data-v-e860d3aa]{margin-top:1.031rem;margin-right:.2rem;min-width:5.25rem;height:2rem;border-radius:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.813rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#3a3a3a;background-color:#fff}.wrapper .container .children .childrenCntainer .childrenItem.active[data-v-e860d3aa]{color:#0176ff;background-color:rgba(1,118,255,.08)}.wrapper .container .children .childrenCntainer .childrenItem .icon-renxiang[data-v-e860d3aa]{font-size:.6rem;padding-left:.5rem;padding-right:.1rem}.wrapper .container .children .childrenCntainer .childrenItem .name[data-v-e860d3aa]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.wrapper .container .children .childrenCntainer .childrenItem .icon-advertise-next[data-v-e860d3aa]{padding-right:.15rem}.fixedBottom[data-v-e860d3aa]{position:fixed;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:9999;bottom:0;left:50%;height:3.063rem;width:375px;background-color:#fff;-webkit-box-shadow:0 -.25rem .706rem .044rem rgba(51,51,51,.08);box-shadow:0 -.25rem .706rem .044rem rgba(51,51,51,.08)}.fixedBottom[data-v-e860d3aa],.fixedBottom .btn[data-v-e860d3aa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.fixedBottom .btn[data-v-e860d3aa]{width:21.375rem;height:2.625rem;color:#fff;font-size:1rem;background-color:#0176ff;border-radius:.313rem}.explainWrapper[data-v-e860d3aa]{width:21.25rem;max-height:22.625rem;background-color:#fff;border-radius:1.531rem;padding-bottom:3rem;-webkit-transition:.3s;transition:.3s;padding-top:.5rem}.explainWrapper .header[data-v-e860d3aa]{height:2.596rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative}.explainWrapper .header .title[data-v-e860d3aa]{font-size:1rem;letter-spacing:.05rem;color:#000}.explainWrapper .header .icon-guanbi[data-v-e860d3aa]{position:absolute;top:.875rem;right:1.25rem;color:#000}.explainWrapper .content[data-v-e860d3aa]{max-height:11rem;padding-top:.562rem;font-size:.875rem;letter-spacing:.066rem;color:#666;padding-left:1.049rem;padding-right:1.469rem;text-align:left;line-height:1.5rem;overflow-y:scroll}",""]),e.exports=t},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("d9e2"),n("3410"),n("159b"),n("b0c0"),n("131a"),n("fb6a");var r=n("53ca");function a(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(j){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),o=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return S()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=d;var h={};function f(){}function p(){}function m(){}var g={};l(g,o,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(I([])));b&&b!==t&&n.call(b,o)&&(g=b);var y=m.prototype=f.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function a(i,o,s,c){var l=u(e[i],e,o);if("throw"!==l.type){var d=l.arg,h=d.value;return h&&"object"==Object(r["a"])(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){a("next",e,s,c)}),(function(e){a("throw",e,s,c)})):t.resolve(h).then((function(e){d.value=e,s(d)}),(function(e){return a("throw",e,s,c)}))}c(l.arg)}var i;this._invoke=function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=m,l(y,"constructor",m),l(m,"constructor",p),p.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},x(_.prototype),l(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new _(d(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(y),l(y,c,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}}}]);