관리-도구
편집 파일: dashboard-charts.js
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[32],{763:function(e,t,r){"use strict";var o=r(17),c=r.n(o),a=r(15),n=r.n(a),l=r(18),i=r.n(l),m=r(19),s=r.n(m),d=r(9),u=r.n(d),p=r(0),_=r(3),b=r(1),h=r.n(b),y=r(77),w=r(36);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=u()(e);if(t){var c=u()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return s()(this,r)}}var f=function(e){i()(r,e);var t=O(r);function r(){return c()(this,r),t.apply(this,arguments)}return n()(r,[{key:"render",value:function(){var e,t,r,o,c=this.props,a=c.className,n=c.isError,l=c.isEmpty;return n?(e=Object(_.__)("There was an error getting your stats. Please try again.",'kkart'),t=Object(_.__)("Reload",'kkart'),o=function(){window.location.reload()}):l&&(e=Object(_.__)("No results could be found for this date range.",'kkart'),t=Object(_.__)("View Orders",'kkart'),r=Object(w.f)("edit.php?post_type=shop_order")),Object(p.createElement)(y.EmptyContent,{className:a,title:e,actionLabel:t,actionURL:r,actionCallback:o})}}]),r}(p.Component);f.propTypes={className:h.a.string,isError:h.a.bool,isEmpty:h.a.bool},f.defaultProps={className:""},t.a=f},786:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return l}));var o=r(3),c=r(55),a=Object(c.applyFilters)("kkart_admin_revenue_report_charts",[{key:"gross_sales",label:Object(o.__)("Gross Sales",'kkart'),order:"desc",orderby:"gross_sales",type:"currency"},{key:"refunds",label:Object(o.__)("Returns",'kkart'),order:"desc",orderby:"refunds",type:"currency"},{key:"coupons",label:Object(o.__)("Coupons",'kkart'),order:"desc",orderby:"coupons",type:"currency"},{key:"net_revenue",label:Object(o.__)("Net Sales",'kkart'),orderby:"net_revenue",type:"currency"},{key:"taxes",label:Object(o.__)("Taxes",'kkart'),order:"desc",orderby:"taxes",type:"currency"},{key:"shipping",label:Object(o.__)("Shipping",'kkart'),orderby:"shipping",type:"currency"},{key:"total_sales",label:Object(o.__)("Total Sales",'kkart'),order:"desc",orderby:"total_sales",type:"currency"}]),n=Object(c.applyFilters)("kkart_admin_revenue_report_filters",[]),l=Object(c.applyFilters)("kkart_admin_revenue_report_advanced_filters",{})},787:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return m})),r.d(t,"a",(function(){return s}));var o=r(3),c=r(55),a=r(764),n=Object(c.applyFilters)("kkart_admin_products_report_charts",[{key:"items_sold",label:Object(o.__)("Items Sold",'kkart'),order:"desc",orderby:"items_sold",type:"number"},{key:"net_revenue",label:Object(o.__)("Net Sales",'kkart'),order:"desc",orderby:"net_revenue",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders",'kkart'),order:"desc",orderby:"orders_count",type:"number"}]),l={label:Object(o.__)("Show",'kkart'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Products",'kkart'),value:"all"},{label:Object(o.__)("Single Product",'kkart'),value:"select_product",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_product",chartMode:"item-comparison",path:["select_product"],settings:{type:"products",param:"products",getLabels:a.d,labels:{placeholder:Object(o.__)("Type to search for a product",'kkart'),button:Object(o.__)("Single Product",'kkart')}}}]},{label:Object(o.__)("Comparison",'kkart'),value:"compare-products",chartMode:"item-comparison",settings:{type:"products",param:"products",getLabels:a.d,labels:{helpText:Object(o.__)("Check at least two products below to compare",'kkart'),placeholder:Object(o.__)("Search for products to compare",'kkart'),title:Object(o.__)("Compare Products",'kkart'),update:Object(o.__)("Compare",'kkart')}}}]},i={showFilters:function(e){return"single_product"===e.filter&&!!e.products&&e["is-variable"]},staticParams:["filter","products","chartType","paged","per_page"],param:"filter-variations",filters:[{label:Object(o.__)("All Variations",'kkart'),chartMode:"item-comparison",value:"all"},{label:Object(o.__)("Single Variation",'kkart'),value:"select_variation",subFilters:[{component:"Search",value:"single_variation",path:["select_variation"],settings:{type:"variations",param:"variations",getLabels:a.g,labels:{placeholder:Object(o.__)("Type to search for a variation",'kkart'),button:Object(o.__)("Single Variation",'kkart')}}}]},{label:Object(o.__)("Comparison",'kkart'),chartMode:"item-comparison",value:"compare-variations",settings:{type:"variations",param:"variations",getLabels:a.g,labels:{helpText:Object(o.__)("Check at least two variations below to compare",'kkart'),placeholder:Object(o.__)("Search for variations to compare",'kkart'),title:Object(o.__)("Compare Variations",'kkart'),update:Object(o.__)("Compare",'kkart')}}}]},m=Object(c.applyFilters)("kkart_admin_products_report_filters",[l,i]),s=Object(c.applyFilters)("kkart_admin_products_report_advanced_filters",{})},789:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return i}));var o=r(3),c=r(55),a=r(764),n=Object(c.applyFilters)("kkart_admin_coupons_report_charts",[{key:"orders_count",label:Object(o.__)("Discounted Orders",'kkart'),order:"desc",orderby:"orders_count",type:"number"},{key:"amount",label:Object(o.__)("Amount",'kkart'),order:"desc",orderby:"amount",type:"currency"}]),l=Object(c.applyFilters)("kkart_admin_coupons_report_filters",[{label:Object(o.__)("Show",'kkart'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Coupons",'kkart'),value:"all"},{label:Object(o.__)("Single Coupon",'kkart'),value:"select_coupon",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_coupon",chartMode:"item-comparison",path:["select_coupon"],settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{placeholder:Object(o.__)("Type to search for a coupon",'kkart'),button:Object(o.__)("Single Coupon",'kkart')}}}]},{label:Object(o.__)("Comparison",'kkart'),value:"compare-coupons",settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{title:Object(o.__)("Compare Coupon Codes",'kkart'),update:Object(o.__)("Compare",'kkart'),helpText:Object(o.__)("Check at least two coupon codes below to compare",'kkart')}}}]}]),i=Object(c.applyFilters)("kkart_admin_coupon_report_advanced_filters",{})},790:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return m})),r.d(t,"a",(function(){return s}));var o=r(3),c=r(55),a=r(35),n=r(764),l=r(765),i=Object(c.applyFilters)("kkart_admin_taxes_report_charts",[{key:"total_tax",label:Object(o.__)("Total Tax",'kkart'),order:"desc",orderby:"total_tax",type:"currency"},{key:"order_tax",label:Object(o.__)("Order Tax",'kkart'),order:"desc",orderby:"order_tax",type:"currency"},{key:"shipping_tax",label:Object(o.__)("Shipping Tax",'kkart'),order:"desc",orderby:"shipping_tax",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders",'kkart'),order:"desc",orderby:"orders_count",type:"number"}]),m=Object(c.applyFilters)("kkart_admin_taxes_report_filters",[{label:Object(o.__)("Show",'kkart'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Taxes",'kkart'),value:"all"},{label:Object(o.__)("Comparison",'kkart'),value:"compare-taxes",chartMode:"item-comparison",settings:{type:"taxes",param:"taxes",getLabels:Object(n.e)(a.NAMESPACE+"/taxes",(function(e){return{id:e.id,key:e.id,label:Object(l.a)(e)}})),labels:{helpText:Object(o.__)("Check at least two tax codes below to compare",'kkart'),placeholder:Object(o.__)("Search for tax codes to compare",'kkart'),title:Object(o.__)("Compare Tax Codes",'kkart'),update:Object(o.__)("Compare",'kkart')}}}]}]),s=Object(c.applyFilters)("kkart_admin_taxes_report_advanced_filters",{})},791:function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return p})),r.d(t,"a",(function(){return _}));var o,c,a=r(14),n=r.n(a),l=r(98),i=r.n(l),m=r(3),s=r(55),d=r(764),u=Object(s.applyFilters)("kkart_admin_downloads_report_charts",[{key:"download_count",label:Object(m.__)("Downloads",'kkart'),type:"number"}]),p=Object(s.applyFilters)("kkart_admin_downloads_report_filters",[{label:Object(m.__)("Show",'kkart'),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(m.__)("All Downloads",'kkart'),value:"all"},{label:Object(m.__)("Advanced Filters",'kkart'),value:"advanced"}]}]),_=Object(s.applyFilters)("kkart_admin_downloads_report_advanced_filters",{title:Object(m._x)("Downloads Match {{select /}} Filters","A sentence describing filters for Downloads. See screen shot for context: https://cloudup.com/ccxhyH2mEDg",'kkart'),filters:{product:{labels:{add:Object(m.__)("Product",'kkart'),placeholder:Object(m.__)("Search",'kkart'),remove:Object(m.__)("Remove product filter",'kkart'),rule:Object(m.__)("Select a product filter match",'kkart'),title:Object(m.__)("{{title}}Product{{/title}} {{rule /}} {{filter /}}",'kkart'),filter:Object(m.__)("Select product",'kkart')},rules:[{value:"includes",label:Object(m._x)("Includes","products",'kkart')},{value:"excludes",label:Object(m._x)("Excludes","products",'kkart')}],input:{component:"Search",type:"products",getLabels:d.d}},customer:{labels:{add:Object(m.__)("Username",'kkart'),placeholder:Object(m.__)("Search customer username",'kkart'),remove:Object(m.__)("Remove customer username filter",'kkart'),rule:Object(m.__)("Select a customer username filter match",'kkart'),title:Object(m.__)("{{title}}Username{{/title}} {{rule /}} {{filter /}}",'kkart'),filter:Object(m.__)("Select customer username",'kkart')},rules:[{value:"includes",label:Object(m._x)("Includes","customer usernames",'kkart')},{value:"excludes",label:Object(m._x)("Excludes","customer usernames",'kkart')}],input:{component:"Search",type:"usernames",getLabels:d.c}},order:{labels:{add:Object(m.__)("Order #",'kkart'),placeholder:Object(m.__)("Search order number",'kkart'),remove:Object(m.__)("Remove order number filter",'kkart'),rule:Object(m.__)("Select a order number filter match",'kkart'),title:Object(m.__)("{{title}}Order #{{/title}} {{rule /}} {{filter /}}",'kkart'),filter:Object(m.__)("Select order number",'kkart')},rules:[{value:"includes",label:Object(m._x)("Includes","order numbers",'kkart')},{value:"excludes",label:Object(m._x)("Excludes","order numbers",'kkart')}],input:{component:"Search",type:"orders",getLabels:(c=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:"#"+e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})}},ip_address:{labels:{add:Object(m.__)("IP Address",'kkart'),placeholder:Object(m.__)("Search IP address",'kkart'),remove:Object(m.__)("Remove IP address filter",'kkart'),rule:Object(m.__)("Select an IP address filter match",'kkart'),title:Object(m.__)("{{title}}IP Address{{/title}} {{rule /}} {{filter /}}",'kkart'),filter:Object(m.__)("Select IP address",'kkart')},rules:[{value:"includes",label:Object(m._x)("Includes","IP addresses",'kkart')},{value:"excludes",label:Object(m._x)("Excludes","IP addresses",'kkart')}],input:{component:"Search",type:"downloadIps",getLabels:(o=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})}}}})},834:function(e,t,r){},835:function(e,t,r){},854:function(e,t,r){"use strict";r.r(t);var o=r(5),c=r.n(o),a=r(34),n=r.n(a),l=r(62),i=r.n(l),m=r(0),s=r(3),d=r(4),u=r.n(d),p=r(104),_=r.n(p),b=r(1),h=r.n(b),y=r(851),w=r(761),O=r(72),f=r(77),j=r(35),v=r(40),g=r(64),k=r(17),x=r.n(k),S=r(15),C=r.n(S),P=r(11),T=r.n(P),E=r(18),F=r.n(E),R=r(19),I=r.n(R),D=r(9),N=r.n(D),q=r(32),A=r(36),B=r(766);r(834);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=N()(e);if(t){var c=N()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return I()(this,r)}}var M=function(e){F()(r,e);var t=L(r);function r(){var e;x()(this,r);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a)),c()(T()(e),"handleChartClick",(function(){var t=e.props.selectedChart;Object(q.getHistory)().push(e.getChartPath(t))})),e}return C()(r,[{key:"getChartPath",value:function(e){return Object(q.getNewPath)({chart:e.key},"/analytics/"+e.endpoint,Object(q.getPersistedQuery)())}},{key:"render",value:function(){var e=this.props,t=e.charts,r=e.endpoint,o=e.path,c=e.query,a=e.selectedChart,n=e.filters;return a?Object(m.createElement)("div",{role:"presentation",className:"kkart-dashboard__chart-block-wrapper",onClick:this.handleChartClick},Object(m.createElement)(f.Card,{className:"kkart-dashboard__chart-block kkart-analytics__card",title:a.label},Object(m.createElement)("a",{className:"screen-reader-text",href:Object(A.f)(this.getChartPath(a))},Object(s.sprintf)(Object(s.__)("%s Report",'kkart'),a.label)),Object(m.createElement)(B.a,{charts:t,endpoint:r,query:c,interactiveLegend:!1,legendPosition:"bottom",path:o,selectedChart:a,showHeaderControls:!1,filters:n}))):null}}]),r}(m.Component);M.propTypes={charts:h.a.array,endpoint:h.a.string.isRequired,path:h.a.string.isRequired,query:h.a.object.isRequired,selectedChart:h.a.object.isRequired};var H=M,U=r(55),V=r(797),z=r(787),G=r(786),J=r(789),Q=r(790),K=r(791);function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Y={revenue:G.b,orders:V.b,products:z.b,coupons:J.b,taxes:Q.b,downloads:K.b},Z=[{label:Object(s.__)("Total Sales",'kkart'),report:"revenue",key:"total_sales"},{label:Object(s.__)("Net Sales",'kkart'),report:"revenue",key:"net_revenue"},{label:Object(s.__)("Orders",'kkart'),report:"orders",key:"orders_count"},{label:Object(s.__)("Average Order Value",'kkart'),report:"orders",key:"avg_order_value"},{label:Object(s.__)("Items Sold",'kkart'),report:"products",key:"items_sold"},{label:Object(s.__)("Returns",'kkart'),report:"revenue",key:"refunds"},{label:Object(s.__)("Discounted Orders",'kkart'),report:"coupons",key:"orders_count"},{label:Object(s.__)("Gross discounted",'kkart'),report:"coupons",key:"amount"},{label:Object(s.__)("Total Tax",'kkart'),report:"taxes",key:"total_tax"},{label:Object(s.__)("Order Tax",'kkart'),report:"taxes",key:"order_tax"},{label:Object(s.__)("Shipping Tax",'kkart'),report:"taxes",key:"shipping_tax"},{label:Object(s.__)("Shipping",'kkart'),report:"revenue",key:"shipping"},{label:Object(s.__)("Downloads",'kkart'),report:"downloads",key:"download_count"}],$=Object(U.applyFilters)("kkart_admin_dashboard_charts_filter",Z.map((function(e){return X(X({},Y[e.report].find((function(t){return t.key===e.key}))),{},{label:e.label,endpoint:e.report})})));r(835);function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var re=function(e){var t=e.controls,r=e.hiddenBlocks,o=e.isFirst,c=e.isLast,a=e.onMove,l=e.onRemove,d=e.onTitleBlur,p=e.onTitleChange,b=e.onToggleHiddenBlock,h=e.path,k=e.title,x=e.titleInput,S=e.filters,C=Object(j.useUserPreferences)(),P=C.updateUserPreferences,T=i()(C,["updateUserPreferences"]),E=Object(m.useState)(T.dashboard_chart_type||"line"),F=n()(E,2),R=F[0],I=F[1],D=Object(m.useState)(T.dashboard_chart_interval||"day"),N=n()(D,2),q=N[0],A=N[1],B=te(te({},e.query),{},{chartType:R,interval:q}),L=function(e){return function(){I(e),P({dashboard_chart_type:e}),Object(g.recordEvent)("dash_charts_type_toggle",{chart_type:e})}};return Object(m.createElement)("div",{className:"kkart-dashboard__dashboard-charts"},Object(m.createElement)(f.SectionHeader,{title:k||Object(s.__)("Charts",'kkart'),menu:Object(m.createElement)(f.EllipsisMenu,{label:Object(s.__)("Choose which charts to display",'kkart'),renderContent:function(e){var n=e.onToggle;return Object(m.createElement)(m.Fragment,null,Object(m.createElement)(f.MenuTitle,null,Object(s.__)("Charts",'kkart')),function(e){var t=e.hiddenBlocks,r=e.onToggleHiddenBlock;return $.map((function(e){var o=e.endpoint+"_"+e.key,c=!t.includes(o);return Object(m.createElement)(f.MenuItem,{checked:c,isCheckbox:!0,isClickable:!0,key:e.endpoint+"_"+e.key,onInvoke:function(){r(o)(),Object(g.recordEvent)("dash_charts_chart_toggle",{status:c?"off":"on",key:o})}},e.label)}))}({hiddenBlocks:r,onToggleHiddenBlock:b}),window.wcAdminFeatures["analytics-dashboard/customizable"]&&Object(m.createElement)(t,{onToggle:n,onMove:a,onRemove:l,isFirst:o,isLast:c,onTitleBlur:d,onTitleChange:p,titleInput:x}))}}),className:"has-interval-select"},function(e){var t=e.chartInterval,r=e.setInterval,o=e.query,c=Object(v.getAllowedIntervalsForQuery)(o);if(!c||c.length<1)return null;var a={hour:Object(s.__)("By hour",'kkart'),day:Object(s.__)("By day",'kkart'),week:Object(s.__)("By week",'kkart'),month:Object(s.__)("By month",'kkart'),quarter:Object(s.__)("By quarter",'kkart'),year:Object(s.__)("By year",'kkart')};return Object(m.createElement)(y.a,{className:"kkart-chart__interval-select",value:t,options:c.map((function(e){return{value:e,label:a[e]}})),onChange:r})}({chartInterval:q,setInterval:function(e){A(e),P({dashboard_chart_interval:e}),Object(g.recordEvent)("dash_charts_interval",{interval:e})},query:B}),Object(m.createElement)(w.a,{className:"kkart-chart__types",orientation:"horizontal",role:"menubar"},Object(m.createElement)(O.a,{className:u()("kkart-chart__type-button",{"kkart-chart__type-button-selected":!B.chartType||"line"===B.chartType}),title:Object(s.__)("Line chart",'kkart'),"aria-checked":"line"===B.chartType,role:"menuitemradio",tabIndex:"line"===B.chartType?0:-1,onClick:L("line")},Object(m.createElement)(_.a,{icon:"line-graph"})),Object(m.createElement)(O.a,{className:u()("kkart-chart__type-button",{"kkart-chart__type-button-selected":"bar"===B.chartType}),title:Object(s.__)("Bar chart",'kkart'),"aria-checked":"bar"===B.chartType,role:"menuitemradio",tabIndex:"bar"===B.chartType?0:-1,onClick:L("bar")},Object(m.createElement)(_.a,{icon:"stats-alt"})))),function(e){var t=e.hiddenBlocks,r=e.path,o=e.query,c=e.filters,a=$.reduce((function(e,t){return void 0===e[t.endpoint]&&(e[t.endpoint]=[]),e[t.endpoint].push(t),e}),{});return Object(m.createElement)("div",{className:"kkart-dashboard__columns"},$.map((function(e){return t.includes(e.endpoint+"_"+e.key)?null:Object(m.createElement)(H,{charts:a[e.endpoint],endpoint:e.endpoint,key:e.endpoint+"_"+e.key,path:r,query:o,selectedChart:e,filters:c})})))}({hiddenBlocks:r,path:h,query:B,filters:S}))};re.propTypes={path:h.a.string.isRequired,query:h.a.object.isRequired};t.default=re},98:function(e,t){function r(e,t,r,o,c,a,n){try{var l=e[a](n),i=l.value}catch(e){return void r(e)}l.done?t(i):Promise.resolve(i).then(o,c)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise((function(c,a){var n=e.apply(t,o);function l(e){r(n,c,a,l,i,"next",e)}function i(e){r(n,c,a,l,i,"throw",e)}l(void 0)}))}}}}]);