1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-takenotes-takenotes","pages-chat-chat~pages-index-index~pages-painting-painting~pages-template-template~pages-user-commiss~d10cafe9"],{"0226":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={tnNavBar:i("f71b").default,zPaging:i("c8c7").default,uReadMore:i("1b98").default,uIcon:i("94f3").default,uPopup:i("a2a6").default,wikePainter:i("7275").default,wikeLoadingPage:i("f6b0").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticStyle:{color:"#fff"}},[i("tn-nav-bar",{attrs:{backgroundColor:"#26B3A0",bottomShadow:!1}},[t._v("问答记录")])],1),i("z-paging",{ref:"paging",attrs:{"refresher-complete-delay":"200"},on:{query:function(e){arguments[0]=e=t.$handleEvent(e),t.queryList.apply(void 0,arguments)}},model:{value:t.jobList,callback:function(e){t.jobList=e},expression:"jobList"}},[i("v-uni-view",{staticClass:"z_tabs",style:{marginTop:t.tobheight+"px"},attrs:{slot:"top"},slot:"top"}),i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"form"},[t._l(t.jobList,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"panel"},[i("v-uni-view",{staticClass:"head"},[i("v-uni-view",{staticClass:"title"},[t._v("问:"+t._s(e.question))])],1),i("u-read-more",{attrs:{toggle:!0,showHeight:"200",color:"#26B3A0"}},[i("v-uni-text",{staticClass:"content"},[t._v(t._s(e.answer.replace(/^\s+|\s+$/g,"")))])],1),i("v-uni-view",{staticClass:"bottom"},[t._v(t._s(t.appInfo.site_name?t.appInfo.site_name:"AI智能问答机器人")+"回答时间:"+t._s(e.create_time))]),i("v-uni-view",{staticClass:"tn-flex justify-between"},[i("v-uni-view",{staticClass:"onekey",attrs:{"hover-class":"hoversubmit"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.copyText(e.answer)}}},[t._v("一键复制")]),i("v-uni-view",{staticClass:"onekey",staticStyle:{background:"#FFC107"},attrs:{"hover-class":"hoversubmit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.createPoster(n)}}},[t._v("生成海报")])],1),i("v-uni-view",{staticClass:"circle",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.gallerydel(n)}}},[i("u-icon",{attrs:{name:"close-circle-fill",color:"#e83a30",size:"24"}})],1)],1)]}))],2)],1)],1),i("u-popup",{attrs:{show:t.showPoster,mode:"bottom",round:10},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"poster"},[i("wike-painter",{ref:"painter",attrs:{isH5PathToBase64:!0,board:t.posterObj},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.posterSuccess.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"footer-btn"},[i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPoster=!1}}},[t._v("退出")]),i("v-uni-view",{staticClass:"save",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSave.apply(void 0,arguments)}}},[t._v("保存/分享")])],1)],1)],1),i("wike-loading-page",{attrs:{isLoading:t.isLoading}})],1)},o=[]},"0864":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-035d8199]{background:#f6f7fb}body.?%PAGE?%[data-v-035d8199]{background:#f6f7fb}.form[data-v-035d8199]{width:90%;margin:0 auto;z-index:999}.form .header[data-v-035d8199]{margin-bottom:%?30?%}.form .header .title[data-v-035d8199]{text-align:center;color:#fff;margin:%?30?% %?0?%}.form .panel[data-v-035d8199]{padding:%?30?%;background-color:#fff;border-radius:%?30?%;margin:%?30?% 0;position:relative}.form .panel .bottom[data-v-035d8199]{font-size:%?24?%}.form .panel .head[data-v-035d8199]{border-bottom:%?1?% solid #eee;padding-bottom:%?30?%;margin-bottom:%?30?%}.form .panel .head .title[data-v-035d8199]{font-weight:bolder;font-size:%?35?%}.form .panel .bottom[data-v-035d8199]{background-color:#f0faf8;color:#26b3a0;padding:%?15?%;border-radius:%?10?%;margin:%?30?% 0}.form .panel .onekey[data-v-035d8199]{background:linear-gradient(90deg,#00ca88,#00bcd4);color:#fff;padding:%?15?%;border-radius:%?10?%;text-align:center;font-size:%?24?%;width:48%}.form .panel .hoversubmit[data-v-035d8199]{background:#f7f7f7;color:#acacb3}.bg[data-v-035d8199]{position:fixed;top:%?0?%;left:%?0?%;width:100%;background-color:#26b3a0;min-height:%?200?%;border-radius:%?0?% %?0?% %?140?% %?140?%;z-index:-1}.poster[data-v-035d8199]{padding:%?24?% %?40?%}.poster .footer-btn[data-v-035d8199]{margin-top:%?24?%;display:flex;align-items:center;justify-content:space-between}.poster .footer-btn uni-view[data-v-035d8199]{width:%?319?%;height:%?66?%;border-radius:%?40?%;border:1px solid #4070ff;font-size:%?26?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#4070ff;line-height:%?66?%;text-align:center}.poster .footer-btn .save[data-v-035d8199]{background:#4070ff;color:#fff}.circle[data-v-035d8199]{position:absolute;right:%?-12?%;top:%?-12?%;background:#fff;border-radius:50%}",""]),t.exports=e},"0cfa":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{board:Object,pathType:String,fileType:{type:String,default:"png"},quality:{type:Number,default:1},css:[String,Object],width:[Number,String],height:[Number,String],pixelRatio:Number,customStyle:String,isCanvasToTempFilePath:Boolean,sleep:{type:Number,default:1e3/30},beforeDelay:{type:Number,default:100},afterDelay:{type:Number,default:100},useCORS:Boolean}};e.default=n},"11ae":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("ab55")),o={name:"u-link",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default],computed:{linkStyle:function(){var t={color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(uni.$u.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"};return t}},methods:{openLink:function(){window.open(this.href),this.$emit("click")}}};e.default=o},"11f4":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};e.default=n},1358:function(t,e,i){"use strict";i.r(e);var n=i("11ae"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},1424:function(t,e,i){var n=i("f39c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("54333e05",n,!0,{sourceMap:!1,shadowMode:!1})},"1b98":function(t,e,i){"use strict";i.r(e);var n=i("cba6"),r=i("2dae");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("fcfe");var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"7c1d503a",null,!1,n["a"],void 0);e["default"]=s.exports},"231a":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("c7eb")),o=n(i("1da1"));i("99af"),i("b64b"),i("e9c4"),i("d3b7"),i("ac1f"),i("d9e2"),i("d401"),i("5319");var a=i("b9a8"),s=n(i("0cfa")),u=i("8cfe"),c=n(i("a626")),d={name:"lime-painter",mixins:[s.default,(0,a.parent)("painter"),{}],data:function(){return{use2dCanvas:!1,canvasHeight:150,canvasWidth:null,parentWidth:0,inited:!1,progress:0,firstRender:0,done:!1}},computed:{styles:function(){return"".concat(this.size).concat(this.customStyle||"",";")},canvasId:function(){return"l-painter".concat(this._uid||this._.uid)},size:function(){if(this.boardWidth&&this.boardHeight)return"width:".concat(this.boardWidth,"px; height: ").concat(this.boardHeight,"px;")},dpr:function(){return this.pixelRatio||uni.getSystemInfoSync().pixelRatio},boardWidth:function(){var t=this.elements&&this.elements.css||this.elements||this,e=t.width,i=void 0===e?0:e,n=(0,u.toPx)(i||this.width);return n||Math.max(n,(0,u.toPx)(this.canvasWidth))},boardHeight:function(){var t=this.elements&&this.elements.css||this.elements||this,e=t.height,i=void 0===e?0:e,n=(0,u.toPx)(i||this.height);return n||Math.max(n,(0,u.toPx)(this.canvasHeight))},hasBoard:function(){return this.board&&Object.keys(this.board).length},elements:function(){return this.hasBoard?this.board:JSON.parse(JSON.stringify(this.el))}},watch:{},created:function(){var t=uni.getSystemInfoSync();t.SDKVersion,t.version,t.platform},mounted:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.sleep)(30);case 2:return e.next=4,t.getParentWeith();case 4:t.$nextTick((function(){setTimeout((function(){t.$watch("elements",t.watchRender,{deep:!0,immediate:!0})}),30)}));case 5:case"end":return e.stop()}}),e)})))()},methods:{watchRender:function(t,e){var i=this;return(0,o.default)((0,r.default)().mark((function n(){return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t&&t.views&&(i.firstRender?i.firstRender:t.views.length)&&Object.keys(t).length&&JSON.stringify(t)!=JSON.stringify(e)){n.next=2;break}return n.abrupt("return");case 2:i.firstRender=1,clearTimeout(i.rendertimer),i.rendertimer=setTimeout((function(){i.render(t)}),i.beforeDelay);case 5:case"end":return n.stop()}}),n)})))()},setFilePath:function(t,e){var i=this;return(0,o.default)((0,r.default)().mark((function n(){var o,a,s,c;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=t,a=e||i,s=a.pathType,c=void 0===s?i.pathType:s,"base64"!=c||(0,u.isBase64)(t)){n.next=8;break}return n.next=5,(0,u.pathToBase64)(t);case 5:o=n.sent,n.next=12;break;case 8:if("url"!=c||!(0,u.isBase64)(t)){n.next=12;break}return n.next=11,(0,u.base64ToPath)(t);case 11:o=n.sent;case 12:return e&&e.isEmit&&i.$emit("success",o),n.abrupt("return",o);case 14:case"end":return n.stop()}}),n)})))()},getSize:function(t){var e=this;return(0,o.default)((0,r.default)().mark((function i(){var n,o,a,s;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.css||t,o=n.width,a=t.css||t,s=a.height,e.size){i.next=12;break}if(!o&&!s){i.next=10;break}return e.canvasWidth=o||e.canvasWidth,e.canvasHeight=s||e.canvasHeight,i.next=8,(0,u.sleep)(30);case 8:i.next=12;break;case 10:return i.next=12,e.getParentWeith();case 12:case"end":return i.stop()}}),i)})))()},canvasToTempFilePathSync:function(t){var e=this;this.stopWatch=this.$watch("done",(function(i){i&&(e.canvasToTempFilePath(t),e.stopWatch&&e.stopWatch())}),{immediate:!0})},getParentWeith:function(){var t=this;return new Promise((function(e){uni.createSelectorQuery().in(t).select(".lime-painter").boundingClientRect().exec((function(i){var n=i[0]||{},r=n.width,o=n.height;t.parentWidth=Math.ceil(r||0),t.canvasWidth=t.parentWidth||300,t.canvasHeight=o||t.canvasHeight||150,e(i[0])}))}))},render:function(){var t=arguments,e=this;return(0,o.default)((0,r.default)().mark((function i(){var n,o,a,s,d,l,f,h,p,v,g,m,x,b;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:{},Object.keys(n).length){i.next=3;break}return i.abrupt("return",console.error("空对象"));case 3:return e.progress=0,e.done=!1,i.next=7,e.getSize(n);case 7:return i.next=9,e.getContext();case 9:if(o=i.sent,a=e.use2dCanvas,s=e.boardWidth,d=e.boardHeight,l=e.canvas,f=e.afterDelay,!a||l){i.next=13;break}return i.abrupt("return",Promise.reject(new Error("render: fail canvas has not been created")));case 13:return e.boundary={top:0,left:0,width:s,height:d},e.painter=null,e.painter||(h=n.css||n,p=h.width,v=n.css||n,v.height,!p&&e.parentWidth&&Object.assign(n,{width:e.parentWidth}),g={context:o,canvas:l,width:s,height:d,pixelRatio:e.dpr,useCORS:e.useCORS,createImage:u.getImageInfo.bind(e),listen:{onProgress:function(t){e.progress=t,e.$emit("progress",t)},onEffectFail:function(t){e.$emit("faill",t)}}},e.painter=new c.default(g)),i.next=18,e.painter.source(JSON.parse(JSON.stringify(n)));case 18:return m=i.sent,x=m.width,b=m.height,e.boundary.height=e.canvasHeight=b,e.boundary.width=e.canvasWidth=x,i.next=25,(0,u.sleep)(e.sleep);case 25:return e.painter.setContext(e.ctx),i.next=28,e.painter.render();case 28:return i.next=30,new Promise((function(t){return e.$nextTick(t)}));case 30:if(a){i.next=33;break}return i.next=33,e.canvasDraw();case 33:if(!f||!a){i.next=36;break}return i.next=36,(0,u.sleep)(f);case 36:return e.$emit("done"),e.done=!0,e.isCanvasToTempFilePath&&e.canvasToTempFilePath().then((function(t){e.$emit("success",t.tempFilePath)})).catch((function(t){e.$emit("fail",new Error(JSON.stringify(t)))})),i.abrupt("return",Promise.resolve({ctx:o,draw:e.painter,node:e.node}));case 40:case"end":return i.stop()}}),i)})))()},canvasDraw:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){return t.ctx.draw(e,(function(){return setTimeout((function(){return i()}),t.afterDelay)}))}))},getContext:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var i,n,o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.canvasWidth){e.next=4;break}return t.$emit("fail","painter no size"),console.error("painter no size: 请给画板或父级设置尺寸"),e.abrupt("return",Promise.reject());case 4:if(!t.ctx||!t.inited){e.next=6;break}return e.abrupt("return",Promise.resolve(t.ctx));case 6:if(i=t.type,n=t.use2dCanvas,t.dpr,t.boardWidth,t.boardHeight,o=function(){return new Promise((function(e){uni.createSelectorQuery().in(t).select("#".concat(t.canvasId)).boundingClientRect().exec((function(i){if(i){var n=uni.createCanvasContext(t.canvasId,t);t.inited||(t.inited=!0,t.use2dCanvas=!1,t.canvas=i),t.ctx=n,e(t.ctx)}}))}))},n){e.next=10;break}return e.abrupt("return",o());case 10:return e.abrupt("return",new Promise((function(e){uni.createSelectorQuery().in(t).select("#".concat(t.canvasId)).node().exec((function(n){var r=n[0].node;r||(t.use2dCanvas=!1,e(t.getContext()));var o=r.getContext(i);t.inited||(t.inited=!0,t.use2dCanvas=!0,t.canvas=r),t.ctx=o,e(t.ctx)}))})));case 11:case"end":return e.stop()}}),e)})))()},canvasToTempFilePath:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(){var i=(0,o.default)((0,r.default)().mark((function i(n,a){var s,u,c,d,l,f,h,p,v,g,m,x,b,y,w,S,k;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(s=t.use2dCanvas,u=t.canvasId,c=t.dpr,d=t.fileType,l=t.quality,f=function(){var e=(0,o.default)((0,r.default)().mark((function e(i){var o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.setFilePath(i.tempFilePath||i);case 3:o=e.sent,n(Object.assign(i,{tempFilePath:o})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$emit("fail",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),h=t.boundary||t,p=h.top,v=void 0===p?0:p,g=h.left,m=void 0===g?0:g,x=h.width,b=h.height,y=x*c,w=b*c,S=Object.assign({x:m,y:v,width:x,height:b,destWidth:y,destHeight:w,canvasId:u,fileType:d,quality:l,success:f,fail:a},e),!s){i.next=22;break}return i.prev=7,e.pathType||t.pathType||(e.pathType="url"),i.next=11,t.setFilePath(t.canvas.toDataURL("image/".concat(e.fileType||d).replace(/pg/,"peg"),e.quality||l),e);case 11:k=i.sent,e.success&&e.success({tempFilePath:k}),n({tempFilePath:k}),i.next=20;break;case 16:i.prev=16,i.t0=i["catch"](7),e.fail&&e.fail(i.t0),a(i.t0);case 20:i.next=23;break;case 22:uni.canvasToTempFilePath(S,t);case 23:case"end":return i.stop()}}),i,null,[[7,16]])})));return function(t,e){return i.apply(this,arguments)}}())}}};e.default=d},"26d1":function(t,e,i){var n=i("5e59");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("ca92bccc",n,!0,{sourceMap:!1,shadowMode:!1})},"2cf3":function(t,e,i){"use strict";var n=i("26d1"),r=i.n(n);r.a},"2dae":function(t,e,i){"use strict";i.r(e);var n=i("3a0f"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"364d":function(t,e,i){"use strict";i.r(e);var n=i("231a"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},3833:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{type:{type:String,default:uni.$u.props.text.type},show:{type:Boolean,default:uni.$u.props.text.show},text:{type:[String,Number],default:uni.$u.props.text.text},prefixIcon:{type:String,default:uni.$u.props.text.prefixIcon},suffixIcon:{type:String,default:uni.$u.props.text.suffixIcon},mode:{type:String,default:uni.$u.props.text.mode},href:{type:String,default:uni.$u.props.text.href},format:{type:[String,Function],default:uni.$u.props.text.format},call:{type:Boolean,default:uni.$u.props.text.call},openType:{type:String,default:uni.$u.props.text.openType},bold:{type:Boolean,default:uni.$u.props.text.bold},block:{type:Boolean,default:uni.$u.props.text.block},lines:{type:[String,Number],default:uni.$u.props.text.lines},color:{type:String,default:uni.$u.props.text.color},size:{type:[String,Number],default:uni.$u.props.text.size},iconStyle:{type:[Object,String],default:uni.$u.props.text.iconStyle},decoration:{tepe:String,default:uni.$u.props.text.decoration},margin:{type:[Object,String,Number],default:uni.$u.props.text.margin},lineHeight:{type:[String,Number],default:uni.$u.props.text.lineHeight},align:{type:String,default:uni.$u.props.text.align},wordWrap:{type:String,default:uni.$u.props.text.wordWrap}}};e.default=n},3917:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{staticClass:"u-link",style:[t.linkStyle,t.$u.addStyle(t.customStyle)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.openLink.apply(void 0,arguments)}}},[t._v(t._s(t.text))])},r=[]},"3a0f":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7");var r=n(i("c7eb")),o=n(i("1da1")),a=n(i("871a")),s={name:"u-read-more",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],data:function(){return{isLongContent:!1,status:"close",elId:uni.$u.guid(),contentHeight:100}},computed:{innerShadowStyle:function(){return"open"===this.status?{}:this.shadowStyle}},mounted:function(){this.init()},methods:{init:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getContentHeight().then((function(e){t.contentHeight=e,e>uni.$u.getPx(t.showHeight)&&(t.isLongContent=!0,t.status="close")}));case 1:case"end":return e.stop()}}),e)})))()},getContentHeight:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep(30);case 2:return e.abrupt("return",new Promise((function(e){t.$uGetRect("."+t.elId).then((function(t){e(t.height)}))})));case 3:case"end":return e.stop()}}),e)})))()},toggleReadMore:function(){this.status="close"===this.status?"open":"close",0==this.toggle&&(this.isLongContent=!1),this.$emit(this.status,this.name)}}};e.default=s},"3f44":function(t,e,i){"use strict";var n=i("95b5"),r=i.n(n);r.a},"400f":function(t,e,i){"use strict";i.r(e);var n=i("3917"),r=i("1358");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("b9b0");var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"d7655832",null,!1,n["a"],void 0);e["default"]=s.exports},"44a7":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("ac1f"),i("00b4"),i("99af");var n={computed:{value:function(){var t=this.text,e=this.mode,i=this.format,n=this.href;return"price"===e?(/^\d+(\.\d+)?$/.test(t)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(i)?i(t):uni.$u.priceFormat(t,2)):"date"===e?(!uni.$u.test.date(t)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(i)?i(t):i?uni.$u.timeFormat(t,i):uni.$u.timeFormat(t,"yyyy-mm-dd")):"phone"===e?uni.$u.test.func(i)?i(t):"encrypt"===i?"".concat(t.substr(0,3),"****").concat(t.substr(7)):t:"name"===e?("string"!==typeof t&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(i)?i(t):"encrypt"===i?this.formatName(t):t):"link"===e?(!uni.$u.test.url(n)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),t):t}},methods:{formatName:function(t){var e="";if(2===t.length)e=t.substr(0,1)+"*";else if(t.length>2){for(var i="",n=0,r=t.length-2;n<r;n++)i+="*";e=t.substr(0,1)+i+t.substr(-1,1)}else e=t;return e}}};e.default=n},"4bf1":function(t,e,i){"use strict";i.r(e);var n=i("6830"),r=i("a259");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("2cf3");var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"0577983a",null,!1,n["a"],void 0);e["default"]=s.exports},"5e59":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-view[data-v-0577983a], uni-scroll-view[data-v-0577983a], uni-swiper-item[data-v-0577983a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-text[data-v-0577983a]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;flex:1;width:100%}.u-text__price[data-v-0577983a]{font-size:14px;color:#606266}.u-text__value[data-v-0577983a]{font-size:14px;display:flex;flex-direction:row;color:#606266;flex-wrap:wrap;text-overflow:ellipsis;align-items:center}.u-text__value--primary[data-v-0577983a]{color:#3c9cff}.u-text__value--warning[data-v-0577983a]{color:#f9ae3d}.u-text__value--success[data-v-0577983a]{color:#5ac725}.u-text__value--info[data-v-0577983a]{color:#909399}.u-text__value--error[data-v-0577983a]{color:#f56c6c}.u-text__value--main[data-v-0577983a]{color:#303133}.u-text__value--content[data-v-0577983a]{color:#606266}.u-text__value--tips[data-v-0577983a]{color:#909193}.u-text__value--light[data-v-0577983a]{color:#c0c4cc}",""]),t.exports=e},6830:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("94f3").default,uLink:i("400f").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"u-text",class:[],style:{margin:t.margin,justifyContent:"left"===t.align?"flex-start":"center"===t.align?"center":"flex-end"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},["price"===t.mode?i("v-uni-text",{class:["u-text__price",t.type&&"u-text__value--"+t.type],style:[t.valueStyle]},[t._v("¥")]):t._e(),t.prefixIcon?i("v-uni-view",{staticClass:"u-text__prefix-icon"},[i("u-icon",{attrs:{name:t.prefixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e(),"link"===t.mode?i("u-link",{attrs:{text:t.value,href:t.href,underLine:!0}}):t.openType&&t.isMp?[i("v-uni-button",{staticClass:"u-reset-button u-text__value",style:[t.valueStyle],attrs:{"data-index":t.index,openType:t.openType,lang:t.lang,"session-from":t.sessionFrom,"send-message-title":t.sendMessageTitle,"send-message-path":t.sendMessagePath,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,"app-parameter":t.appParameter},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetUserInfo.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.onContact.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetPhoneNumber.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.onError.apply(void 0,arguments)},launchapp:function(e){arguments[0]=e=t.$handleEvent(e),t.onLaunchApp.apply(void 0,arguments)},opensetting:function(e){arguments[0]=e=t.$handleEvent(e),t.onOpenSetting.apply(void 0,arguments)}}},[t._v(t._s(t.value))])]:i("v-uni-text",{staticClass:"u-text__value",class:[t.type&&"u-text__value--"+t.type,t.lines&&"u-line-"+t.lines],style:[t.valueStyle]},[t._v(t._s(t.value))]),t.suffixIcon?i("v-uni-view",{staticClass:"u-text__suffix-icon"},[i("u-icon",{attrs:{name:t.suffixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e()],2):t._e()},o=[]},"68aa":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("4bf1")),o=n(i("3833")),a={name:"u--text",mixins:[uni.$u.mpMixin,o.default,uni.$u.mixin],components:{uvText:r.default}};e.default=a},7169:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c975"),i("498a");var r=n(i("5530")),o=i("26cb"),a={data:function(){return{jobList:[],tobheight:45,platform:this.$platform.get(),isLoading:!0,themeColor:"#007AFF",showPoster:!1,posterObj:{},qrcode:"",spmplatform:0}},computed:(0,r.default)({},(0,o.mapGetters)(["appInfo","userInfo","isLogin"])),watch:{appInfo:function(t){}},onLoad:function(){if("wxMiniProgram"==this.platform){var t=uni.getMenuButtonBoundingClientRect().top-uni.getSystemInfoSync().statusBarHeight,e=uni.getSystemInfoSync().statusBarHeight+t;this.tobheight=t+e+uni.getMenuButtonBoundingClientRect().height}this.spmplatform=["H5","wxOfficialAccount","wxMiniProgram","App"].indexOf(this.platform)+1,this.commonqrcodePath()},methods:{queryList:function(t,e){var i=this,n={page:t,limit:e};this.$http("question.my",n).then((function(t){0==t.code&&(uni.setNavigationBarTitle({title:i.appInfo.site_name}),i.$refs.paging.complete(t.data.data),i.isLoading=!1)}))},toSave:function(){var t=this;uni.showLoading({title:"海报生成中"}),this.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){t.showPoster=!1,uni.hideLoading(),uni.showModal({confirmColor:"#26B3A0",confirmText:"查看图片",title:"提示",content:"查看图片后长按图片即可保存或分享",success:function(t){t.confirm?uni.previewImage({urls:[e.tempFilePath]}):t.cancel&&(this.showPoster=!0)}})}})},commonqrcodePath:function(){var t=this,e=this.userInfo.id+".1.0."+this.spmplatform+".1";this.$http("common.qrcodePath",{spm:e}).then((function(e){0==e.code&&(t.qrcode=e.data)}))},copyText:function(t){uni.setClipboardData({data:t,success:function(){uni.showToast({title:"复制成功"})}})},gallerydel:function(t){var e=this;uni.showModal({confirmText:"删除",content:"是否删除此问答记录",title:"提示",confirmColor:"#26B3A0",success:function(i){i.confirm&&e.$http("question.del",{id:e.jobList[t].id}).then((function(t){0==t.code?(uni.showToast({title:"删除成功"}),e.$refs.paging.reload(!0)):uni.showToast({title:"删除失败",icon:"none"})}))}})},onSubmit:function(){uni.navigateTo({url:"/pages/main/answer/index"})},createPoster:function(t){this.posterObj={width:"670rpx",background:"#fff",borderRadius:"16rpx",css:{width:"670rpx"},views:[{type:"view",css:{marginTop:"20rpx",paddingLeft:"10rpx",display:"flex"},views:[{type:"image",src:this.userInfo.avatar?this.userInfo.avatar:"/static/images/head.jpg",css:{marginTop:"10rpx",marginLeft:"10rpx",borderRadius:"16rpx",width:"80rpx",height:"80rpx",border:"2rpx solid #fff",objectFit:"cover"}},{type:"view",css:{marginTop:"10rpx",marginLeft:"20rpx"},views:[{type:"view",views:[{type:"text",text:this.userInfo.nickname?this.userInfo.nickname:"提问者",css:{marginTop:"10rpx",fontSize:"28rpx",fontWeight:"bold",color:"#1A2033",lineHeight:"28rpx"}}]},{type:"view",views:[{type:"text",text:"我的提问",css:{marginTop:"15rpx",fontSize:"22rpx",color:"#999",lineHeight:"25rpx"}}]}]}]},{type:"view",css:{marginTop:"20rpx",width:"610rpx",padding:"10rpx",background:"#d2f8d3",borderRadius:"16rpx",marginLeft:"20rpx",marginRight:"10rpx"},views:[{type:"text",text:this.jobList[t].question,css:{fontSize:"28rpx",color:"#1A2033",lineHeight:"45rpx",lineClamp:2,paddingLeft:"10rpx",paddingRight:"10rpx",width:"590rpx"}}]},{type:"view",css:{marginTop:"20rpx",paddingLeft:"10rpx",display:"flex"},views:[{type:"image",src:"/static/images/open.png",css:{marginTop:"10rpx",marginLeft:"10rpx",borderRadius:"16rpx",width:"80rpx",height:"80rpx",border:"2rpx solid #fff",objectFit:"cover"}},{type:"view",css:{marginTop:"10rpx",marginLeft:"20rpx"},views:[{type:"view",views:[{type:"text",text:this.appInfo.site_name?this.appInfo.site_name:"AI智能问答机器人",css:{marginTop:"10rpx",fontSize:"28rpx",fontWeight:"bold",color:"#1A2033",lineHeight:"28rpx"}}]},{type:"view",views:[{type:"text",text:"回答结果",css:{marginTop:"15rpx",fontSize:"22rpx",color:"#999",lineHeight:"25rpx"}}]}]}]},{type:"view",css:{marginTop:"20rpx",width:"610rpx",padding:"10rpx",background:"#f5f6f8",borderRadius:"16rpx",marginLeft:"20rpx",marginRight:"10rpx"},views:[{type:"text",text:uni.$u.trim(this.jobList[t].answer),css:{fontSize:"28rpx",color:"#1A2033",lineHeight:"45rpx",lineClamp:11,width:"590rpx",padding:"10rpx"}}]},{type:"view",css:{marginTop:"20rpx",width:"100%",textAlign:"center"},views:[{type:"qrcode",text:this.qrcode,css:{width:"200rpx",height:"200rpx"}}]},{type:"text",text:"———— 长按识别 | 欢迎使用 ————",css:{marginTop:"20rpx",width:"100%",textAlign:"center",fontSize:"24rpx",color:"#989FB3",lineHeight:"33rpx"}}]},this.showPoster=!0}}};e.default=a},7275:function(t,e,i){"use strict";i.r(e);var n=i("8b7f"),r=i("364d");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("970f");var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"0fba428e",null,!1,n["a"],void 0);e["default"]=s.exports},"75b3":function(t,e,i){"use strict";i.r(e);var n=i("0226"),r=i("848e");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("3f44");var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"035d8199",null,!1,n["a"],void 0);e["default"]=s.exports},7614:function(t,e,i){"use strict";i.r(e);var n=i("d689"),r=i("d64e");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var a=i("f0c5"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},"7f13":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-view[data-v-d7655832], uni-scroll-view[data-v-d7655832], uni-swiper-item[data-v-d7655832]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-link[data-v-d7655832]{line-height:1;display:flex;flex-direction:row;flex-wrap:wrap;flex:1}",""]),t.exports=e},"848e":function(t,e,i){"use strict";i.r(e);var n=i("7169"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"871a":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{showHeight:{type:[String,Number],default:uni.$u.props.readMore.showHeight},toggle:{type:Boolean,default:uni.$u.props.readMore.toggle},closeText:{type:String,default:uni.$u.props.readMore.closeText},openText:{type:String,default:uni.$u.props.readMore.openText},color:{type:String,default:uni.$u.props.readMore.color},fontSize:{type:[String,Number],default:uni.$u.props.readMore.fontSize},shadowStyle:{type:Object,default:function(){return{backgroundImage:"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",paddingTop:"100px",marginTop:"-100px"}}},textIndent:{type:String,default:uni.$u.props.readMore.textIndent},name:{type:[String,Number],default:uni.$u.props.readMore.name}}};e.default=n},"8b7f":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"limepainter",staticClass:"lime-painter"},[t.canvasId&&t.size?i("v-uni-view",{style:t.styles},[t.use2dCanvas?i("v-uni-canvas",{staticClass:"lime-painter__canvas",style:t.size,attrs:{id:t.canvasId,type:"2d"}}):i("v-uni-canvas",{staticClass:"lime-painter__canvas",style:t.size,attrs:{"canvas-id":t.canvasId,id:t.canvasId,width:t.boardWidth*t.dpr,height:t.boardHeight*t.dpr}})],1):t._e(),t._t("default")],2)},r=[]},"8cfe":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(t){var e=/^data:image\/(\w+);base64,/.exec(t)||[],i=(0,s.default)(e,2);i[1];return new Promise((function(e,i){for(var n=t.split(",")[0].split(":")[1].split(";")[0],r=atob(t.split(",")[1]),o=new ArrayBuffer(r.length),a=new Uint8Array(o),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);e(URL.createObjectURL(new Blob([a],{type:n})))}))},e.compareVersion=function(t,e){t=t.split("."),e=e.split(".");var i=Math.max(t.length,e.length);while(t.length<i)t.push("0");while(e.length<i)e.push("0");for(var n=0;n<i;n++){var r=parseInt(t[n],10),o=parseInt(e[n],10);if(r>o)return 1;if(r<o)return-1}return 0},e.downloadFile=function(t){return t?new Promise((function(e,i){if(c[t])return i();c[t]=1,uni.downloadFile({url:t,success:function(t){e(t)},fail:function(t){i(t)}})})):Promise.reject({err:"no url"})},e.getImageInfo=function(t,e){var i=this;return new Promise(function(){var n=(0,a.default)((0,r.default)().mark((function n(a,s){var d;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(d=t,!c[t]||!c[t].errMsg){n.next=5;break}a(c[t]),n.next=16;break;case 5:if(n.prev=5,!e){n.next=10;break}return n.next=9,l(t);case 9:d=n.sent;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](5),s((0,o.default)((0,o.default)({},n.t0),{},{src:d}));case 15:uni.getImageInfo({src:d,success:function(e){if(e.path=e.path.replace(/^\./,window.location.origin),i.canvas.createImage){var n=i.canvas.createImage();n.src=e.path,n.onload=function(){e.path=n,c[t]=e,a(c[t])},n.onerror=function(e){s({err:e,path:t})}}else u?a(e):(c[t]=e,a(c[t]))},fail:function(e){console.error({err:e,path:t}),s({err:e,path:t})}});case 16:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(t,e){return n.apply(this,arguments)}}())},e.isBase64=void 0,e.isNumber=d,e.networkReg=void 0,e.pathToBase64=l,e.sleep=function(t){return new Promise((function(e){return setTimeout(e,t)}))},e.toPx=function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"===typeof e)return e;if(d(e))return 1*e;if("string"===typeof e){var r=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g,o=r.exec(e);if(!e||!o)return 0;var a=o[3];e=parseFloat(e);var s=0;return"rpx"===a?s=uni.upx2px(e):"px"===a?s=1*e:"%"===a?s=e*t(i)/100:"em"===a&&(s=e*t(i||14)),n?1*s.toFixed(2):Math.round(s)}return 0};var r=n(i("c7eb")),o=n(i("5530")),a=n(i("1da1")),s=n(i("3835"));i("ac1f"),i("00b4"),i("d3b7"),i("caad"),i("acd8"),i("14d9"),i("e25e"),i("c19f"),i("ace4"),i("c975"),i("5cc6"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("986a"),i("1d02"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("b39a"),i("72f7"),i("5319"),i("d401"),i("81b2"),i("0eb6"),i("b7ef"),i("8bd4"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861");e.networkReg=/^(http|\/\/)/;e.isBase64=function(t){return/^data:image\/(\w+);base64/.test(t)};var u=["devtools"].includes(uni.getSystemInfoSync().platform),c={};function d(t){return/^-?\d+(\.\d+)?$/.test(t)}function l(t){return/^data:/.test(t)?t:new Promise((function(e,i){var n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){var t=document.createElement("canvas");t.width=this.naturalWidth,t.height=this.naturalHeight,t.getContext("2d").drawImage(n,0,0);var i=t.toDataURL("image/png");e(i),t.height=t.width=0},n.src=t+"?v="+Math.random(),n.onerror=function(t){i(t)}}))}},"94b3":function(t,e,i){var n=i("7f13");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("331866cf",n,!0,{sourceMap:!1,shadowMode:!1})},"95b5":function(t,e,i){var n=i("0864");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("f3d63a2a",n,!0,{sourceMap:!1,shadowMode:!1})},"970f":function(t,e,i){"use strict";var n=i("f148"),r=i.n(n);r.a},a259:function(t,e,i){"use strict";i.r(e);var n=i("f889"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},a626:function(t,e,i){"use strict";var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Painter=void 0;var r=n(i("53ca"));i("d3b7"),i("a4d3"),i("e01a"),i("d28b"),i("3ca3"),i("ddb0"),i("d9e2"),i("d401"),i("14d9"),i("ac1f"),i("00b4"),i("acd8"),i("2ca0"),i("466d"),i("c975"),i("498a"),i("baa5"),i("7a82"),i("131a"),i("fb6a"),i("a630"),i("caad"),i("2532"),i("4e82"),i("159b"),i("13d5"),i("b64b"),i("d81d"),i("7db0"),i("5319"),i("99af"),i("4ec9"),i("cb29"),i("4de4"),i("e9c4"),i("07ac");var o=function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))}function s(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!((r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var u={MP_WEIXIN:"mp-weixin",MP_QQ:"mp-qq",MP_ALIPAY:"mp-alipay",MP_BAIDU:"mp-baidu",MP_TOUTIAO:"mp-toutiao",MP_DINGDING:"mp-dingding",H5:"h5",WEB:"web",PLUS:"plus"},c=["contentSize","clientSize","borderSize","offsetSize"],d="view",l="text",f="image",h="qrcode",p="block",v={display:p,color:"#000000",lineHeight:"1.4em",fontSize:14,fontWeight:400,fontFamily:"sans-serif",lineCap:"butt",flexDirection:"row",flexWrap:"nowrap",textAlign:"left",alignItems:"flex-start",justifyContent:"flex-start",position:"static",transformOrigin:"center center"},g={upx2px:function(t){return window.innerWidth/750*t},getSystemInfoSync:function(){return{screenWidth:window.innerWidth}},getImageInfo:function(t){var e=t.src,i=t.success,n=t.fail,r=new Image;r.onload=function(){i({width:r.naturalWidth,height:r.naturalHeight,path:r.src,src:e})},r.onerror=n,r.src=e}},m="object"==("undefined"===typeof window?"undefined":(0,r.default)(window))?"undefined"==typeof uni||"undefined"!=typeof uni&&!uni.addInterceptor?u.WEB:u.H5:"object"==("undefined"===typeof swan?"undefined":(0,r.default)(swan))?u.MP_BAIDU:"object"==("undefined"===typeof tt?"undefined":(0,r.default)(tt))?u.MP_TOUTIAO:"object"==("undefined"===typeof plus?"undefined":(0,r.default)(plus))?u.PLUS:"object"==("undefined"===typeof wx?"undefined":(0,r.default)(wx))?u.MP_WEIXIN:void 0,x=m==u.MP_WEIXIN?wx:"undefined"!=typeof uni?uni.getImageInfo?{upx2px:function(t){return uni.upx2px(t)},getSystemInfoSync:function(){return uni.getSystemInfoSync()},getImageInfo:function(t){return uni.getImageInfo(t)},downloadFile:function(t){return uni.downloadFile(t)}}:Object.assign(uni,g):"undefined"!=typeof window?g:uni;if(!x.upx2px){var b=((x.getSystemInfoSync&&uni.getSystemInfoSync()).screenWidth||375)/750;x.upx2px=function(t){return b*t}}function y(t){return/^-?\d+(\.\d+)?$/.test(t)}function w(t,e,i){if("number"==typeof t)return t;if(y(t))return 1*t;if("string"==typeof t){var n=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g.exec(t);if(!t||!n)return 0;var r=n[3];t=parseFloat(t);var o=0;return"rpx"===r?o=x.upx2px(t):"px"===r?o=1*t:"%"===r&&e?o=t*w(e)/100:"em"===r&&e&&(o=t*w(e||14)),1*o.toFixed(2)}return 0}function S(t){return/%$/.test(t)}function k(t){for(var e=[],i=[],n=0,r=t.substring(0,t.length-1).split("%,");n<r.length;n++){var o=r[n];e.push(o.substring(0,o.lastIndexOf(" ")).trim()),i.push(o.substring(o.lastIndexOf(" "),o.length)/100)}return{colors:e,percents:i}}function _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function P(){return P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},P.apply(this,arguments)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function I(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return M(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?M(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t){return"number"==typeof t}function T(t){return"auto"===t||null===t}function O(t){return/%$/.test(t)}var B,C=0,R=function(){function t(){_(this,"elements",[]),_(this,"afterElements",[]),_(this,"beforeElements",[]),_(this,"ids",[]),_(this,"width",0),_(this,"height",0),_(this,"top",0),_(this,"left",0),_(this,"pre",null),_(this,"offsetX",0),_(this,"offsetY",0),C++,this.id=C}var e=t.prototype;return e.fixedBind=function(t,e){void 0===e&&(e=0),this.container=e?t.parent:t.root,this.container.fixedLine=this,this.fixedAdd(t)},e.fixedAdd=function(t){this.elements.push(t);var e=t.computedStyle.zIndex;(void 0===e?0:e)>=0?this.afterElements.push(t):this.beforeElements.push(t),this.refreshLayout()},e.bind=function(t){this.container=t.parent,this.container.line=null,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),this.isInline=t.isInline(),this.container.line=this,this.outerWidth=t.parent&&t.parent.contentSize.width?t.parent.contentSize.width:1/0,this.add(t)},e.getPreLine=function(){return this.container.lines[this.container.lines.length-2]},e.canIEnter=function(t){return this.outerWidth||t.parent&&t.parent.contentSize.width,!((100*t.offsetSize.width+100*this.width)/100>this.outerWidth)||(this.closeLine(),!1)},e.closeLine=function(){delete this.container.line},e.add=function(t){this.ids.includes(t.id)||(this.ids.push(t.id),this.elements.push(t),this.refreshWidthHeight(t))},e.refreshWidthHeight=function(t){t.offsetSize.height>this.height&&(this.height=t.offsetSize.height),this.width+=t.offsetSize.width||0,(this.container.lineMaxWidth||0)<this.width&&(this.container.lineMaxWidth=this.width)},e.refreshXAlign=function(){if(this.isInline){var t=this.container.contentSize.width-this.width,e=this.container.style.textAlign;"center"===e?t/=2:"left"===e&&(t=0),this.offsetX=t}},e.getOffsetY=function(t){if(!t||!t.style)return 0;var e=(t.style||{}).verticalAlign;return"bottom"===e?this.height-t.contentSize.height:"middle"===e?(this.height-t.contentSize.height)/2:0},e.layout=function(t,e){for(var i in this.refreshXAlign(),this.pre?(this.top=this.pre.top+this.pre.height+this.offsetY,this.left=e+this.offsetX):(this.top=Math.max(this.top,this.container.contentSize.top,t)+this.offsetY,this.left=Math.max(this.left,this.container.contentSize.left,e)+this.offsetX),this.elements){var n=this.elements[i],r=this.elements[i-1],o=this.getOffsetY(n);n.style.top=this.top+o,n.style.left=r?r.offsetSize.left+r.offsetSize.width:this.left,n.getBoxPosition2()}},e.refreshLayout=function(){this.afterElements=this.afterElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex})),this.beforeElements=this.beforeElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex}))},t}(),L=((B={})["row"]={width:"width",contentWidth:"width",x:"x",y:"y",contentX:"left",height:"height",contentHeight:"height",marginLeft:"marginLeft"},B["column"]={width:"height",contentWidth:"height",x:"y",y:"x",contentX:"top",height:"width",contentHeight:"width",marginLeft:"marginTop"},B),W=function(t){var e,i;function n(){var e;return _(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call(this)||this),"outerWidth",0),e.exactValue=0,e.flexTotal=0,e.key=null,e}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,z(e,i);var r=n.prototype;return r.bind=function(t){console.warn("[painter] flex-box 功能未完善谨慎使用"),this.container=t.parent,this.container.line=this,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),t.parent&&(this.key=L[t.parent.style.flexDirection]),this.initHeight(t),this.outerWidth=t.parent&&t.parent.contentSize[this.key.contentWidth]?t.parent.contentSize[this.key.contentWidth]:1/0,this.add(t)},r.add=function(t){this.ids.push(t.id),$(t.style.flex)?this.flexTotal+=t.style.flex:$(t.style[this.key.width])&&(this.exactValue+=t.contentSize[this.key.width]),this.elements.push(t),this.refreshWidthHeight(t),t.next||this.closeLine()},r.closeLine=function(){this.calcFlex()},r.initHeight=function(t){this[this.key.height]=0},r.calcFlex=function(){var t=this,e=this.container.contentSize[this.key.contentWidth];this.elements.forEach((function(i){var n=i.style.width||0;$(i.style.flex)&&(n=i.style.flex/t.flexTotal*(e-t.exactValue)),i.computedStyle[t.key.width]=n,delete i.line,delete i.lines,delete i.lineMaxWidth,i.getBoxWidthHeight()}))},r.refreshWidthHeight=function(t){this.container.style.alignItems&&!t.style.alignSelf&&(t.style.alignSelf=this.container.style.alignItems),t.contentSize[this.key.height]>this[this.key.height]&&(this[this.key.height]=t.offsetSize[this.key.height]),this[this.key.width]+=t.offsetSize[this.key.width];var e=Math.min(this[this.key.width],this.container.contentSize[this.key.width]);(this.container.lineMaxWidth||0)<e&&(this.container.lineMaxWidth=e)},r.refreshXAlign=function(){var t=this,e=this.elements.reduce((function(e,i){return e+i.offsetSize[t.key.width]}),0),i=this.outerWidth==1/0?0:this.outerWidth-Math.max(this[this.key.width],e),n=this.container.style.justifyContent;"center"===n?i/=2:"flex-start"===n?i=0:["space-between","space-around"].includes(n)&&(function(e,i){void 0===i&&(i=0),i/=t.elements.length+(e?-1:1),t.elements.forEach((function(n,r){var o;e&&!r||(n.style.margin?n.style.margin[t.key.marginLeft]+=i:n.style.margin=((o={})[t.key.marginLeft]=i,o))})),i=0}("space-between"==n,i),i=0),this.offsetX=i||0,this.refreshYAlign()},r.refreshYAlign=function(){if(1==this.container.lines.length)return 0;var t=this.container.lines.reduce((function(t,e){return t+e.height}),0);if("center"===this.container.style.alignItems){var e=(this.container.contentSize[this.key.contentHeight]-t)/(this.container.lines.length+1);this.container.lines.forEach((function(t){t.offsetY=e}))}if("flex-end"===this.container.style.alignItems){var i=this.container.contentSize[this.key.contentHeight]-t;this.container.lines[0].offsetY=i}},r.getOffsetY=function(t){return this.container.lines.length>1?0:"flex-end"===t.style.alignSelf?this.container.contentSize[this.key.contentHeight]-t.contentSize[this.key.height]:"center"===t.style.alignSelf?(this.container.contentSize[this.key.contentHeight]-t.contentSize[this.key.height])/2:0},n}(R),j=f,F=l,H=d,A=h,E="inline-block",N="flex",U="absolute",D="fixed",q=0,Y={left:null,top:null,width:null,height:null},X=function(){function t(t,e,i,n){var r=this;_(this,"id",q++),_(this,"style",{left:null,top:null,width:null,height:null}),_(this,"computedStyle",{}),_(this,"originStyle",{}),_(this,"children",{}),_(this,"layoutBox",P({},Y)),_(this,"contentSize",P({},Y)),_(this,"clientSize",P({},Y)),_(this,"borderSize",P({},Y)),_(this,"offsetSize",P({},Y)),this.ctx=n,this.root=i,e&&(this.parent=e),this.name=t.name||t.type,this.attributes=this.getAttributes(t);var o=this.getComputedStyle(t,e&&e.computedStyle);this.isAbsolute=o.position==U,this.isFixed=o.position==D,this.originStyle=o,Object.keys(o).forEach((function(t){Object.defineProperty(r.style,t,{configurable:!0,enumerable:!0,get:function(){return o[t]},set:function(e){o[t]=e}})}));var a={contentSize:P({},this.contentSize),clientSize:P({},this.clientSize),borderSize:P({},this.borderSize),offsetSize:P({},this.offsetSize)};Object.keys(a).forEach((function(t){Object.keys(r[t]).forEach((function(e){Object.defineProperty(r[t],e,{configurable:!0,enumerable:!0,get:function(){return a[t][e]},set:function(i){a[t][e]=i}})}))})),this.computedStyle=this.style}var e=t.prototype;return e.add=function(t){t.parent=this,this.children[t.id]=t},e.getChildren=function(){var t=this;return Object.keys(this.children).map((function(e){return t.children[e]}))},e.getLineRect=function(t,e){var i=e?e.lines:this.parent&&this.parent.lines;return i&&i.find((function(e){return e.ids.includes(t)}))||{width:0,height:0}},e.getComputedStyle=function(t,e){var i=["color","fontSize","lineHeight","verticalAlign","fontWeight","textAlign"],n=t.css,o=void 0===n?{}:n,a=t.type,s=void 0===a?H:a,u=P({},v);if([F,j,A].includes(s)&&!o.display&&(u.display=E),e)for(var c=0;c<i.length;c++){var d=i[c];(o[d]||e[d])&&(o[d]=o[d]||e[d])}for(var l=function(){var t=h[f],e=o[t];if(/-/.test(t)&&(t=t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),u.key=e),/^(box|text)?shadow$/i.test(t)){var i=[];return e.replace(/((\d+(rpx|px)?\s+?){3})(.+)/,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i=e[1].match(/\d+(rpx|px)?/g).map((function(t){return w(t)})).concat(e[4])})),/^text/.test(t)?u.textShadow=i:u.boxShadow=i,"continue"}if(/^border/i.test(t)&&!/radius$/i.test(t)){var n,a=t.match(/^border([BTRLa-z]+)?/)[0],c=t.match(/[W|S|C][a-z]+/),d=e.replace(/([\(,])\s+|\s+([\),])/g,"$1$2").split(" ").map((function(t){return/^\d/.test(t)?w(t,""):t}));return u[a]=((n={})[a+"Width"]=y(d[0])?d[0]:0,n[a+"Style"]=d[1]||"solid",n[a+"Color"]=d[2]||"black",n),1==d.length&&c&&(u[a][a+c[0]]=d[0]),"continue"}if(/^background(color)?$/i.test(t))return u.backgroundColor=e,"continue";if(/^objectPosition$/i.test(t))return u[t]=e.split(" "),"continue";if(/padding|margin|radius/i.test(t)){var l=/radius$/i.test(t),p=l?"borderRadius":t.match(/[a-z]+/)[0],v=[0,0,0,0].map((function(t,e){return l?["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"][e]:[p+"Top",p+"Right",p+"Bottom",p+"Left"][e]})),g="margin";if("padding"===t||t===g||/^(border)?radius$/i.test(t)){var m,x=(""+e).split(" ").map((function(e){return/^\d+(rpx|px)?$/.test(e)?w(e):t!=g&&/auto/.test(e)?0:e}),[])||[0],b=l?"borderRadius":t,S=x[0],k=x[1],_=x[2],P=x[3];u[b]=((m={})[v[0]]=T(S)?0:S,m[v[1]]=y(k)||T(k)?k:S,m[v[2]]=T(y(_)?_:S)?0:y(_)?_:S,m[v[3]]=y(P)?P:k||S,m)}else{var z;"object"==(0,r.default)(u[p])||(u[p]=((z={})[v[0]]=u[p]||0,z[v[1]]=u[p]||0,z[v[2]]=u[p]||0,z[v[3]]=u[p]||0,z)),u[p][t]=p==g&&T(e)||O(e)?e:w(e)}return"continue"}if(/^transform$/i.test(t))return u[t]={},e.replace(/([a-zA-Z]+)\(([0-9,-\.%rpxdeg\s]+)\)/g,(function(e,i,n){var r=n.split(",").map((function(t){return t.replace(/(^\s*)|(\s*$)/g,"")})),a=function(t,e){return t.includes("deg")?1*t:e&&!O(e)?w(t,e):t};i.includes("matrix")?u[t][i]=r.map((function(t){return 1*t})):i.includes("rotate")?u[t][i]=1*n.match(/^-?\d+(\.\d+)?/)[0]:/[X, Y]/.test(i)?u[t][i]=/[X]/.test(i)?a(r[0],o.width):a(r[0],o.height):(u[t][i+"X"]=a(r[0],o.width),u[t][i+"Y"]=a(r[1]||r[0],o.height))})),"continue";/^font$/i.test(t)&&console.warn("font 不支持简写"),/^left|top$/i.test(t)&&![U,D].includes(o.position)?u[t]=0:u[t]=/^[\d\.]+(px|rpx)?$/.test(e)?w(e):/em$/.test(e)&&s==F?w(e,o.fontSize):e},f=0,h=Object.keys(o);f<h.length;f++)l();return u},e.setPosition=function(t,e){var i={left:"width",top:"height",right:"width",bottom:"height"};Object.keys(i).forEach((function(n){var r="right"==n?"left":"top";["right","bottom"].includes(n)&&void 0!==t.style[n]&&"number"!=typeof t.originStyle[r]?t.style[r]=e[i[n]]-t.offsetSize[i[n]]-w(t.style[n],e[i[n]]):t.style[n]=w(t.style[n],e[i[n]])}))},e.getAttributes=function(t){var e=t.attributes||{};return(t.url||t.src)&&(e.src=e.src||t.url||t.src),t.replace&&(e.replace=t.replace),t.text&&(e.text=t.text),e},e.getOffsetSize=function(t,e,i){void 0===i&&(i=c[3]);var n=e||{},r=n.margin,o=(r=void 0===r?{}:r).marginLeft,a=void 0===o?0:o,s=r.marginTop,u=void 0===s?0:s,d=r.marginRight,l=void 0===d?0:d,f=r.marginBottom,h=void 0===f?0:f,p=n.padding,v=(p=void 0===p?{}:p).paddingLeft,g=void 0===v?0:v,m=p.paddingTop,x=void 0===m?0:m,b=p.paddingRight,y=void 0===b?0:b,w=p.paddingBottom,S=void 0===w?0:w,k=n.border,_=(k=void 0===k?{}:k).borderWidth,P=void 0===_?0:_,z=n.borderTop,M=(z=void 0===z?{}:z).borderTopWidth,I=void 0===M?P:M,$=n.borderBottom,T=($=void 0===$?{}:$).borderBottomWidth,O=void 0===T?P:T,B=n.borderRight,C=(B=void 0===B?{}:B).borderRightWidth,R=void 0===C?P:C,L=n.borderLeft,W=(L=void 0===L?{}:L).borderLeftWidth,j=void 0===W?P:W,F=a<0&&l<0?Math.abs(a+l):0,H=u<0&&h<0?Math.abs(u+h):0,A=a>=0&&l<0,E=u>=0&&h<0;return i==c[0]&&(this[i].left=t.left+a+g+j+(A?2*-l:0),this[i].top=t.top+u+x+I+(E?2*-h:0),this[i].width=t.width+(this[i].widthAdd?0:F),this[i].height=t.height+(this[i].heightAdd?0:H),this[i].widthAdd=F,this[i].heightAdd=H),i==c[1]&&(this[i].left=t.left+a+j+(A<0?-l:0),this[i].top=t.top+u+I+(E?-h:0),this[i].width=t.width+g+y,this[i].height=t.height+x+S),i==c[2]&&(this[i].left=t.left+a+j/2+(A<0?-l:0),this[i].top=t.top+u+I/2+(E?-h:0),this[i].width=t.width+g+y+j/2+R/2,this[i].height=t.height+x+S+O/2+I/2),i==c[3]&&(this[i].left=t.left+(A<0?-l:0),this[i].top=t.top+(E?-h:0),this[i].width=t.width+g+y+j+R+a+l,this[i].height=t.height+x+S+O+I+h+u),this[i]},e.layoutBoxUpdate=function(t,e,i,n){var r=this;if(void 0===i&&(i=-1),"border-box"==e.boxSizing){var o=e||{},a=o.border,s=(a=void 0===a?{}:a).borderWidth,u=void 0===s?0:s,d=o.borderTop,l=(d=void 0===d?{}:d).borderTopWidth,f=void 0===l?u:l,h=o.borderBottom,p=(h=void 0===h?{}:h).borderBottomWidth,v=void 0===p?u:p,g=o.borderRight,m=(g=void 0===g?{}:g).borderRightWidth,x=void 0===m?u:m,b=o.borderLeft,y=(b=void 0===b?{}:b).borderLeftWidth,w=void 0===y?u:y,S=o.padding,k=(S=void 0===S?{}:S).paddingTop,_=void 0===k?0:k,P=S.paddingRight,z=void 0===P?0:P,M=S.paddingBottom,I=void 0===M?0:M,$=S.paddingLeft,T=void 0===$?0:$;i||(t.width-=T+z+x+w),1!==i||n||(t.height-=_+I+f+v)}this.layoutBox&&(c.forEach((function(i){return r.layoutBox[i]=r.getOffsetSize(t,e,i)})),this.layoutBox=Object.assign({},this.layoutBox,this.layoutBox.borderSize))},e.getBoxPosition2=function(){var t=this.computedStyle,e=this.fixedLine,i=this.lines,n=t.left,r=void 0===n?0:n,o=t.top,a=void 0===o?0:o,s=t.padding||{},u=s.paddingBottom,c=void 0===u?0:u,d=s.paddingRight,l=void 0===d?0:d,f=P({},this.contentSize,{left:r,top:a}),h=this.contentSize.top-this.offsetSize.top,p=this.contentSize.left-this.offsetSize.left;if(this.root.fixedLine&&!this.root.isDone){this.root.isDone=!0;for(var v,g=I(this.root.fixedLine.elements);!(v=g()).done;){var m=v.value;m.setPosition(m,this.root.offsetSize),m.getBoxPosition2()}}if(e)for(var x,b=I(e.elements);!(x=b()).done;){var y=x.value;y.setPosition(y,f),y.style.left+=r+p+l,y.style.top+=a+h+c,y.getBoxPosition2()}if(i)for(var w,S=I(i);!(w=S()).done;)w.value.layout(f.top+h,f.left+p);return this.layoutBoxUpdate(f,t),this.layoutBox},e.getBoxState=function(t,e){return this.isBlock(t)||this.isBlock(e)},e.isBlock=function(t){return void 0===t&&(t=this),t&&"block"==t.style.display},e.isFlex=function(t){return void 0===t&&(t=this),t&&t.style.display==N},e.isInFlow=function(){return!(this.isAbsolute||this.isFixed)},e.inFlexBox=function(t){return void 0===t&&(t=this),!!t.isInFlow()&&!!t.parent&&(!(!t.parent||t.parent.style.display!==N)||void 0)},e.isInline=function(t){return void 0===t&&(t=this),t&&t.style.display==E},e.contrastSize=function(t,e,i){var n=t;return i&&(n=Math.min(n,i)),e&&(n=Math.max(n,e)),n},e.measureText=function(t,e){var i=this.ctx.measureText(t),n=i.width,r=i.actualBoundingBoxAscent,o=i.actualBoundingBoxDescent;return{ascent:r,descent:o,width:n,fontHeight:r+o||.7*e+1}},e.getBoxWidthHeight=function(){var t=this,e=this.name,i=this.computedStyle,n=this.attributes,r=this.parent,o=void 0===r?{}:r,a=this.ctx,s=this.getChildren(),u=i.left,c=void 0===u?0:u,d=i.top,l=void 0===d?0:d,f=i.bottom,h=i.right,p=i.width,v=void 0===p?0:p,g=i.minWidth,m=i.maxWidth,x=i.minHeight,b=i.maxHeight,y=i.height,S=void 0===y?0:y,k=i.fontSize,_=void 0===k?14:k,P=i.fontWeight,z=i.fontFamily,M=i.fontStyle,I=i.position,$=i.lineClamp,T=i.lineHeight,B=i.padding,C=void 0===B?{}:B,L=i.margin,A=void 0===L?{}:L,E=i.border,N=(E=void 0===E?{}:E).borderWidth,D=void 0===N?0:N,q=i.borderRight,Y=(q=void 0===q?{}:q).borderRightWidth,X=void 0===Y?D:Y,J=i.borderLeft,G=(J=void 0===J?{}:J).borderLeftWidth,V=void 0===G?D:G,Q=o.contentSize&&o.contentSize.width,K=o.contentSize&&o.contentSize.height;if(O(v)&&Q&&(v=w(v,Q)),O(v)&&!Q&&(v=null),O(S)&&K&&(S=w(S,K)),O(S)&&!K&&(S=null),O(g)&&Q&&(g=w(g,Q)),O(m)&&Q&&(m=w(m,Q)),O(x)&&K&&(x=w(x,K)),O(b)&&K&&(b=w(b,K)),i.padding&&Q)for(var Z in i.padding)Object.hasOwnProperty.call(i.padding,Z)&&(i.padding[Z]=w(i.padding[Z],Q));var tt=C.paddingRight,et=void 0===tt?0:tt,it=C.paddingLeft,nt=void 0===it?0:it;if(i.margin&&[i.margin.marginLeft,i.margin.marginRight].includes("auto"))if(v){var rt=Q&&Q-v-et-nt-V-X||0;i.margin.marginLeft==i.margin.marginRight?i.margin.marginLeft=i.margin.marginRight=rt/2:"auto"==i.margin.marginLeft?i.margin.marginLeft=rt:i.margin.marginRight=rt}else i.margin.marginLeft=i.margin.marginRight=0;var ot=A.marginRight,at=void 0===ot?0:ot,st=A.marginLeft,ut={width:v,height:S,left:0,top:0},ct=nt+et+V+X+(void 0===st?0:st)+at;if(e==F&&!this.attributes.widths){var dt=n.text||"";a.save(),a.setFonts({fontFamily:z,fontSize:_,fontWeight:P,fontStyle:M});var lt=new Map;dt.split("\n").map((function(e){var i=e.split("").map((function(e){var i=lt.get(e);if(i)return i;var n=t.measureText(e,_).width;return lt.set(e,n),n})),n=t.measureText(e,_),r=n.fontHeight,o=n.ascent,a=n.descent;t.attributes.fontHeight=r,t.attributes.ascent=o,t.attributes.descent=a,t.attributes.widths||(t.attributes.widths=[]),t.attributes.widths.push({widths:i,total:i.reduce((function(t,e){return t+e}),0)})})),a.restore()}if(e==j&&null==v){var ft=n.width,ht=n.height;ut.width=this.contrastSize(Math.round(ft*S/ht)||0,g,m),this.layoutBoxUpdate(ut,i,0)}if(e==F&&null==v){var pt=this.attributes.widths,vt=Math.max.apply(Math,pt.map((function(t){return t.total})));o&&Q>0&&(vt>Q||this.isBlock(this))&&!this.isAbsolute&&!this.isFixed&&(vt=Q-ct),ut.width=this.contrastSize(vt,g,m),this.layoutBoxUpdate(ut,i,0)}if(e==F&&(o.style.flex||!this.attributes.lines)){var gt=this.attributes.widths.length;this.attributes.widths.forEach((function(t){return t.widths.reduce((function(t,e,i){return t+e>ut.width?(gt++,e):t+e}),0)})),gt=$&>>$?$:gt,this.attributes.lines=gt}if(e==j&&null==S){var mt=n.width,xt=n.height;ut.height=this.contrastSize(w(ut.width*xt/mt)||0,x,b),this.layoutBoxUpdate(ut,i,1)}e==F&&null==S&&(T=w(T,_),ut.height=this.contrastSize(w(this.attributes.lines*T),x,b),this.layoutBoxUpdate(ut,i,1,!0)),o&&o.children&&Q&&([H,F].includes(e)&&this.isFlex()||e==H&&this.isBlock(this)&&this.isInFlow())&&(ut.width=this.contrastSize(Q-ct,g,m),this.layoutBoxUpdate(ut,i)),v&&!O(v)&&(ut.width=this.contrastSize(v,g,m),this.layoutBoxUpdate(ut,i,0)),S&&!O(S)&&(ut.height=this.contrastSize(ut.height,x,b),this.layoutBoxUpdate(ut,i,1));var bt=0;if(s.length){var yt=null;s.forEach((function(e,n){e.getBoxWidthHeight();var r=s[n+1];if(r&&r.isInFlow()&&(e.next=r),e.isInFlow()&&!e.inFlexBox()){var o=t.getBoxState(yt,e);t.line&&t.line.canIEnter(e)&&!o?t.line.add(e):(new R).bind(e),yt=e}else e.inFlexBox()?t.line&&(t.line.canIEnter(e)||"nowrap"==i.flexWrap)?t.line.add(e):(new W).bind(e):e.isFixed?t.root.fixedLine?t.root.fixedLine.fixedAdd(e):(new R).fixedBind(e):t.fixedLine?t.fixedLine.fixedAdd(e):(new R).fixedBind(e,1)})),this.lines&&(bt=this.lines.reduce((function(t,e){return t+e.height}),0))}var wt=0,St=0;if(!v&&(this.isAbsolute||this.isFixed)&&Q){var kt=I==U?Q:this.root.width,_t=kt-(O(c)?w(c,kt):c)-(O(h)?w(h,kt):h);wt=i.left?_t:this.lineMaxWidth}if(!S&&(null!=l?l:this.isAbsolute||this.isFixed&&K)){var Pt=I==U?K:this.root.height,zt=Pt-(O(l)?w(l,Pt):l)-(O(f)?w(f,Pt):f);St=i.top?zt:0}if(v&&!O(v)||ut.width||(ut.width=wt||this.contrastSize((this.isBlock(this)&&!this.isInFlow()?Q||o.lineMaxWidth:this.lineMaxWidth)||this.lineMaxWidth,g,m),this.layoutBoxUpdate(ut,i,0)),S||!bt&&!St||(ut.height=St||this.contrastSize(bt,x,b),this.layoutBoxUpdate(ut,i)),i.borderRadius&&this.borderSize&&this.borderSize.width)for(var Z in i.borderRadius)Object.hasOwnProperty.call(i.borderRadius,Z)&&(i.borderRadius[Z]=w(i.borderRadius[Z],this.borderSize.width));return this.layoutBox},e.layout=function(){return this.getBoxWidthHeight(),this.root.offsetSize=this.offsetSize,this.getBoxPosition2(),this.offsetSize},t}(),J=function(){var t,e,i,n,r,o,a=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],s=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],u=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],c=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],d=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],l=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],f=[],h=[],p=[],v=[],g=[],m=2;function x(t,e){var i;t>e&&(i=t,t=e,e=i),i=e,i*=e,i+=e,i>>=1,v[i+=t]=1}function b(t,i){var n;for(p[t+e*i]=1,n=-2;n<2;n++)p[t+n+e*(i-2)]=1,p[t-2+e*(i+n+1)]=1,p[t+2+e*(i+n)]=1,p[t+n+1+e*(i+2)]=1;for(n=0;n<2;n++)x(t-1,i+n),x(t+1,i-n),x(t-n,i-1),x(t+n,i+1)}function y(t){for(;t>=255;)t=((t-=255)>>8)+(255&t);return t}var w=[];function S(t,e,i,n){var r,o,a;for(r=0;r<n;r++)f[i+r]=0;for(r=0;r<e;r++){if(255!=(a=d[f[t+r]^f[i]]))for(o=1;o<n;o++)f[i+o-1]=f[i+o]^l[y(a+w[n-o])];else for(o=i;o<i+n;o++)f[o]=f[o+1];f[i+n-1]=255==a?0:l[y(a+w[0])]}}function k(t,e){var i;return t>e&&(i=t,t=e,e=i),i=e,i+=e*e,i>>=1,v[i+=t]}function _(t){var i,n,r,o;switch(t){case 0:for(n=0;n<e;n++)for(i=0;i<e;i++)i+n&1||k(i,n)||(p[i+n*e]^=1);break;case 1:for(n=0;n<e;n++)for(i=0;i<e;i++)1&n||k(i,n)||(p[i+n*e]^=1);break;case 2:for(n=0;n<e;n++)for(r=0,i=0;i<e;i++,r++)3==r&&(r=0),r||k(i,n)||(p[i+n*e]^=1);break;case 3:for(o=0,n=0;n<e;n++,o++)for(3==o&&(o=0),r=o,i=0;i<e;i++,r++)3==r&&(r=0),r||k(i,n)||(p[i+n*e]^=1);break;case 4:for(n=0;n<e;n++)for(r=0,o=n>>1&1,i=0;i<e;i++,r++)3==r&&(r=0,o=!o),o||k(i,n)||(p[i+n*e]^=1);break;case 5:for(o=0,n=0;n<e;n++,o++)for(3==o&&(o=0),r=0,i=0;i<e;i++,r++)3==r&&(r=0),(i&n&1)+!(!r|!o)||k(i,n)||(p[i+n*e]^=1);break;case 6:for(o=0,n=0;n<e;n++,o++)for(3==o&&(o=0),r=0,i=0;i<e;i++,r++)3==r&&(r=0),(i&n&1)+(r&&r==o)&1||k(i,n)||(p[i+n*e]^=1);break;case 7:for(o=0,n=0;n<e;n++,o++)for(3==o&&(o=0),r=0,i=0;i<e;i++,r++)3==r&&(r=0),(r&&r==o)+(i+n&1)&1||k(i,n)||(p[i+n*e]^=1)}}function P(t){var e,i=0;for(e=0;e<=t;e++)g[e]>=5&&(i+=3+g[e]-5);for(e=3;e<t-1;e+=2)g[e-2]==g[e+2]&&g[e+2]==g[e-1]&&g[e-1]==g[e+1]&&3*g[e-1]==g[e]&&(0==g[e-3]||e+3>t||3*g[e-3]>=4*g[e]||3*g[e+3]>=4*g[e])&&(i+=40);return i}function z(){var t,i,n,r,o,a=0,s=0;for(i=0;i<e-1;i++)for(t=0;t<e-1;t++)(p[t+e*i]&&p[t+1+e*i]&&p[t+e*(i+1)]&&p[t+1+e*(i+1)]||!(p[t+e*i]||p[t+1+e*i]||p[t+e*(i+1)]||p[t+1+e*(i+1)]))&&(a+=3);for(i=0;i<e;i++){for(g[0]=0,n=r=t=0;t<e;t++)(o=p[t+e*i])==r?g[n]++:g[++n]=1,s+=(r=o)?1:-1;a+=P(n)}s<0&&(s=-s);var u=s,c=0;for(u+=u<<2,u<<=1;u>e*e;)u-=e*e,c++;for(a+=10*c,t=0;t<e;t++){for(g[0]=0,n=r=i=0;i<e;i++)(o=p[t+e*i])==r?g[n]++:g[++n]=1,r=o;a+=P(n)}return a}var M=null;return{api:{get ecclevel(){return m},set ecclevel(t){m=t},get size(){return _size},set size(t){_size=t},get canvas(){return M},set canvas(t){M=t},getFrame:function(g){return function(g){var P,M,I,$,T,O,B,C;$=g.length,t=0;do{if(t++,I=4*(m-1)+16*(t-1),i=c[I++],n=c[I++],r=c[I++],o=c[I],$<=(I=r*(i+n)+n-3+(t<=9)))break}while(t<40);for(e=17+4*t,T=r+(r+o)*(i+n)+n,$=0;$<T;$++)h[$]=0;for(f=g.slice(0),$=0;$<e*e;$++)p[$]=0;for($=0;$<(e*(e+1)+1)/2;$++)v[$]=0;for($=0;$<3;$++){for(I=0,M=0,1==$&&(I=e-7),2==$&&(M=e-7),p[M+3+e*(I+3)]=1,P=0;P<6;P++)p[M+P+e*I]=1,p[M+e*(I+P+1)]=1,p[M+6+e*(I+P)]=1,p[M+P+1+e*(I+6)]=1;for(P=1;P<5;P++)x(M+P,I+1),x(M+1,I+P+1),x(M+5,I+P),x(M+P+1,I+5);for(P=2;P<4;P++)p[M+P+e*(I+2)]=1,p[M+2+e*(I+P+1)]=1,p[M+4+e*(I+P)]=1,p[M+P+1+e*(I+4)]=1}if(t>1)for($=a[t],M=e-7;;){for(P=e-7;P>$-3&&(b(P,M),!(P<$));)P-=$;if(M<=$+9)break;b(6,M-=$),b(M,6)}for(p[8+e*(e-8)]=1,M=0;M<7;M++)x(7,M),x(e-8,M),x(7,M+e-7);for(P=0;P<8;P++)x(P,7),x(P+e-8,7),x(P,e-8);for(P=0;P<9;P++)x(P,8);for(P=0;P<8;P++)x(P+e-8,8),x(8,P);for(M=0;M<7;M++)x(8,M+e-7);for(P=0;P<e-14;P++)1&P?(x(8+P,6),x(6,8+P)):(p[8+P+6*e]=1,p[6+e*(8+P)]=1);if(t>6)for($=s[t-7],I=17,P=0;P<6;P++)for(M=0;M<3;M++,I--)1&(I>11?t>>I-12:$>>I)?(p[5-P+e*(2-M+e-11)]=1,p[2-M+e-11+e*(5-P)]=1):(x(5-P,2-M+e-11),x(2-M+e-11,5-P));for(M=0;M<e;M++)for(P=0;P<=M;P++)p[P+e*M]&&x(P,M);for(T=f.length,O=0;O<T;O++)h[O]=f.charCodeAt(O);if(f=h.slice(0),T>=(P=r*(i+n)+n)-2&&(T=P-2,t>9&&T--),O=T,t>9){for(f[O+2]=0,f[O+3]=0;O--;)$=f[O],f[O+3]|=255&$<<4,f[O+2]=$>>4;f[2]|=255&T<<4,f[1]=T>>4,f[0]=64|T>>12}else{for(f[O+1]=0,f[O+2]=0;O--;)$=f[O],f[O+2]|=255&$<<4,f[O+1]=$>>4;f[1]|=255&T<<4,f[0]=64|T>>4}for(O=T+3-(t<10);O<P;)f[O++]=236,f[O++]=17;for(w[0]=1,O=0;O<o;O++){for(w[O+1]=1,B=O;B>0;B--)w[B]=w[B]?w[B-1]^l[y(d[w[B]]+O)]:w[B-1];w[0]=l[y(d[w[0]]+O)]}for(O=0;O<=o;O++)w[O]=d[w[O]];for(I=P,M=0,O=0;O<i;O++)S(M,r,I,o),M+=r,I+=o;for(O=0;O<n;O++)S(M,r+1,I,o),M+=r+1,I+=o;for(M=0,O=0;O<r;O++){for(B=0;B<i;B++)h[M++]=f[O+B*r];for(B=0;B<n;B++)h[M++]=f[i*r+O+B*(r+1)]}for(B=0;B<n;B++)h[M++]=f[i*r+O+B*(r+1)];for(O=0;O<o;O++)for(B=0;B<i+n;B++)h[M++]=f[P+O+B*o];for(f=h,P=M=e-1,I=T=1,C=(r+o)*(i+n)+n,O=0;O<C;O++)for($=f[O],B=0;B<8;B++,$<<=1){128&$&&(p[P+e*M]=1);do{T?P--:(P++,I?0!=M?M--:(I=!I,6==(P-=2)&&(P--,M=9)):M!=e-1?M++:(I=!I,6==(P-=2)&&(P--,M-=8))),T=!T}while(k(P,M))}for(f=p.slice(0),$=0,M=3e4,I=0;I<8&&(_(I),(P=z())<M&&(M=P,$=I),7!=$);I++)p=f.slice(0);for($!=I&&_($),M=u[$+(m-1<<3)],I=0;I<8;I++,M>>=1)1&M&&(p[e-1-I+8*e]=1,I<6?p[8+e*I]=1:p[8+e*(I+1)]=1);for(I=0;I<7;I++,M>>=1)1&M&&(p[8+e*(e-7+I)]=1,I?p[6-I+8*e]=1:p[7+8*e]=1);return p}(g)},utf16to8:function(t){var e,i,n,r;for(e="",n=t.length,i=0;i<n;i++)(r=t.charCodeAt(i))>=1&&r<=127?e+=t.charAt(i):r>2047?(e+=String.fromCharCode(224|r>>12&15),e+=String.fromCharCode(128|r>>6&63),e+=String.fromCharCode(128|r>>0&63)):(e+=String.fromCharCode(192|r>>6&31),e+=String.fromCharCode(128|r>>0&63));return e},draw:function(t,i,n,r,o){i.drawView(n,r);var a=i.ctx,s=n.contentSize,u=s.width,c=s.height,d=s.left,l=s.top;r.borderRadius,r.backgroundColor;var f=r.color,h=void 0===f?"#000000":f;if(r.border,n.contentSize.left,n.borderSize.left,n.contentSize.top,n.borderSize.top,m=o||m,a){a.save(),i.setOpacity(r),i.setTransform(n,r);var p=Math.min(u,c);t=this.utf16to8(t);var v=this.getFrame(t),g=p/e;a.setFillStyle(h);for(var x=0;x<e;x++)for(var b=0;b<e;b++)v[b*e+x]&&a.fillRect(d+g*x,l+g*b,g,g);a.restore(),i.setBorder(n,r)}else console.warn("No canvas provided to draw QR code in!")}}}}(),G=l,V=h,Q=d,K="middle",Z=function(){function t(t){var e,i=this;this.v="1.9.3.5",this.id=null,this.pixelRatio=1,this.width=0,this.height=0,this.sleep=1e3/30,this.count=0,this.isRate=!1,this.isDraw=!0,this.isCache=!0,this.fixed="",this.useCORS=!1,this.imageBus=[],this.createImage=function(t,e){return new Promise((function(i,n){if(window){var r=new Image;e&&r.setAttribute("crossOrigin","Anonymous"),r.src=t,r.onload=function(){i({width:r.naturalWidth||r.width,height:r.naturalHeight||r.height,path:r,src:this.src})},r.onerror=function(t){n(t)}}else n({fail:"getImageInfo fail",src:t})}))},this.options=t,Object.assign(this,t),this.ctx=((e=t.context).setFonts=function(t){var i=t.fontFamily,n=void 0===i?"sans-serif":i,r=t.fontSize,o=void 0===r?14:r,a=t.fontWeight,s=void 0===a?"normal":a,c=t.fontStyle,d=void 0===c?"normal":c;m==u.MP_TOUTIAO&&(s="bold"==s?"bold":"",d="italic"==d?"italic":""),e.font="".concat(d," ").concat(s," ").concat(Math.round(o),"px ").concat(n)},e.draw&&e.setFillStyle?e:Object.assign(e,{setStrokeStyle:function(t){e.strokeStyle=t},setLineWidth:function(t){e.lineWidth=t},setLineCap:function(t){e.lineCap=t},setFillStyle:function(t){e.fillStyle=t},setFontSize:function(t){e.font="".concat(String(t),"px sans-serif")},setGlobalAlpha:function(t){e.globalAlpha=t},setLineJoin:function(t){e.lineJoin=t},setTextAlign:function(t){e.textAlign=t},setMiterLimit:function(t){e.miterLimit=t},setShadow:function(t,i,n,r){e.shadowOffsetX=t,e.shadowOffsetY=i,e.shadowBlur=n,e.shadowColor=r},setTextBaseline:function(t){e.textBaseline=t},createCircularGradient:function(){},draw:function(){}})),this.progress=0,this.root={width:t.width,height:t.height,fontSizeRate:1,fixedLine:null},this.size=this.root;var n=0;Object.defineProperty(this,"progress",{configurable:!0,set:function(t){n=t,i.lifecycle("onProgress",t/i.count)},get:function(){return n||0}})}return t.prototype.lifecycle=function(t,e){this.options.listen&&this.options.listen[t]&&this.options.listen[t](e)},t.prototype.setContext=function(t){t&&(this.ctx=t)},t.prototype.init=function(){(this.canvas.height||u.WEB==m)&&(this.canvas.height=this.size.height*this.pixelRatio,this.canvas.width=this.size.width*this.pixelRatio,this.ctx.scale(this.pixelRatio,this.pixelRatio))},t.prototype.clear=function(){this.ctx.clearRect(0,0,this.size.width,this.size.height)},t.prototype.clipPath=function(t,e,i,n,r,o,a){void 0===o&&(o=!1),void 0===a&&(a=!1);var s=this.ctx;if(/polygon/.test(r)){var u=r.match(/-?\d+(rpx|px|%)?\s+-?\d+(rpx|px|%)?/g)||[];s.beginPath(),u.map((function(r){var o=r.split(" "),a=o[0],s=o[1];return[w(a,i)+t,w(s,n)+e]})).forEach((function(t,e){0==e?s.moveTo(t[0],t[1]):s.lineTo(t[0],t[1])})),s.closePath(),a&&s.stroke(),o&&s.fill()}},t.prototype.roundRect=function(t,e,i,n,r,o,a){if(void 0===o&&(o=!1),void 0===a&&(a=!1),!(r<0)){var s=this.ctx;if(s.beginPath(),r){var u=r||{},c=u.borderTopLeftRadius,d=void 0===c?r||0:c,l=u.borderTopRightRadius,f=void 0===l?r||0:l,h=u.borderBottomRightRadius,p=void 0===h?r||0:h,v=u.borderBottomLeftRadius,g=void 0===v?r||0:v;s.arc(t+i-p,e+n-p,p,0,.5*Math.PI),s.lineTo(t+g,e+n),s.arc(t+g,e+n-g,g,.5*Math.PI,Math.PI),s.lineTo(t,e+d),s.arc(t+d,e+d,d,Math.PI,1.5*Math.PI),s.lineTo(t+i-f,e),s.arc(t+i-f,e+f,f,1.5*Math.PI,2*Math.PI),s.lineTo(t+i,e+n-p)}else s.rect(t,e,i,n);s.closePath(),a&&s.stroke(),o&&s.fill()}},t.prototype.setTransform=function(t,e){var i=e.transform,n=e.transformOrigin,r=this.ctx,o=i||{},a=o.scaleX,s=void 0===a?1:a,u=o.scaleY,c=void 0===u?1:u,d=o.translateX,l=void 0===d?0:d,f=o.translateY,h=void 0===f?0:f,p=o.rotate,v=void 0===p?0:p,g=o.skewX,m=void 0===g?0:g,x=o.skewY,b=void 0===x?0:x,S=t.left,k=t.top,_=t.width,P=t.height;l=w(l,_)||0,h=w(h,P)||0;var z={top:w("0%",1),center:w("50%",1),bottom:w("100%",1)},M={left:w("0%",1),center:w("50%",1),right:w("100%",1)};if(n=n.split(" ").filter((function(t,e){return e<2})).reduce((function(t,e){if(/\d+/.test(e)){var i=w(e,1)/(/px|rpx$/.test(e)?y(t.x)?P:_:1);return y(t.x)?Object.assign(t,{y:i}):Object.assign(t,{x:i})}return y(M[e])&&!y(t.x)?Object.assign(t,{x:M[e]}):Object.assign(t,{y:z[e]||.5})}),{}),(l||h)&&r.translate(l,h),(s||c)&&r.scale(s,c),v){var I=S+_*n.x,$=k+P*n.y;r.translate(I,$),r.rotate(v*Math.PI/180),r.translate(-I,-$)}(m||b)&&r.transform(1,Math.tan(b*Math.PI/180),Math.tan(m*Math.PI/180),1,0,0)},t.prototype.setBackground=function(t,e,i,n,r){var o=this.ctx;t&&"transparent"!=t?function(t){return!(!t||!t.startsWith("linear")&&!t.startsWith("radial"))}(t)?function(t,e,i,n,r,o){t.startsWith("linear")?function(t,e,i,n,r,o){for(var a=function(t,e,i,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var o=t.match(/([-]?\d{1,3})deg/),a=o&&o[1]?parseFloat(o[1]):0;if(a>=360&&(a-=360),a<0&&(a+=360),0===(a=Math.round(a)))return{x0:Math.round(e/2)+n,y0:i+r,x1:Math.round(e/2)+n,y1:r};if(180===a)return{x0:Math.round(e/2)+n,y0:r,x1:Math.round(e/2)+n,y1:i+r};if(90===a)return{x0:n,y0:Math.round(i/2)+r,x1:e+n,y1:Math.round(i/2)+r};if(270===a)return{x0:e+n,y0:Math.round(i/2)+r,x1:n,y1:Math.round(i/2)+r};var s=Math.round(180*Math.asin(e/Math.sqrt(Math.pow(e,2)+Math.pow(i,2)))/Math.PI);if(a===s)return{x0:n,y0:i+r,x1:e+n,y1:r};if(a===180-s)return{x0:n,y0:r,x1:e+n,y1:i+r};if(a===180+s)return{x0:e+n,y0:r,x1:n,y1:i+r};if(a===360-s)return{x0:e+n,y0:i+r,x1:n,y1:r};var u,c=0,d=0,l=0,f=0;if(a<s||a>180-s&&a<180||a>180&&a<180+s||a>360-s){var h=a*Math.PI/180,p=a<s||a>360-s?i/2:-i/2,v=Math.tan(h)*p,g=a<s||a>180-s&&a<180?e/2-v:-e/2-v;c=-(l=v+(u=Math.pow(Math.sin(h),2)*g)),d=-(f=p+u/Math.tan(h))}(a>s&&a<90||a>90&&a<90+s||a>180+s&&a<270||a>270&&a<360-s)&&(h=(90-a)*Math.PI/180,v=a>s&&a<90||a>90&&a<90+s?e/2:-e/2,p=Math.tan(h)*v,g=a>s&&a<90||a>270&&a<360-s?i/2-p:-i/2-p,c=-(l=v+(u=Math.pow(Math.sin(h),2)*g)/Math.tan(h)),d=-(f=p+u));return c=Math.round(c+e/2)+n,d=Math.round(i/2-d)+r,l=Math.round(l+e/2)+n,f=Math.round(i/2-f)+r,{x0:c,y0:d,x1:l,y1:f}}(r,t,e,i,n),s=a.x0,u=a.y0,c=a.x1,d=a.y1,l=o.createLinearGradient(s,u,c,d),f=r.match(/linear-gradient\((.+)\)/)[1],h=k(f.substring(f.indexOf(",")+1)),p=0;p<h.colors.length;p++)l.addColorStop(h.percents[p],h.colors[p]);o.setFillStyle(l)}(e,i,n,r,t,o):t.startsWith("radial")&&function(t,e,i,n,r,o){for(var a=k(r.match(/radial-gradient\((.+)\)/)[1]),s=Math.round(t/2)+i,u=Math.round(e/2)+n,c=o.createRadialGradient(s,u,0,s,u,Math.max(t,e)/2),d=0;d<a.colors.length;d++)c.addColorStop(a.percents[d],a.colors[d]);o.setFillStyle(c)}(e,i,n,r,t,o)}(t,e,i,n,r,o):o.setFillStyle(t):[u.MP_TOUTIAO,u.MP_BAIDU].includes(m)?o.setFillStyle("rgba(0,0,0,0)"):o.setFillStyle("transparent")},t.prototype.setShadow=function(t){var e=t.boxShadow,i=void 0===e?[]:e,n=this.ctx;if(i.length){var r=i[0],o=i[1],a=i[2],s=i[3];n.setShadow(r,o,a,s)}},t.prototype.setBorder=function(t,e){var i=this.ctx,n=t.width,r=t.height,o=t.left,a=t.top,s=e.border,u=e.borderBottom,c=e.borderTop,d=e.borderRight,l=e.borderLeft,f=e.borderRadius,h=e.lineCap,p=s||{},v=p.borderWidth,g=void 0===v?0:v,x=p.borderStyle,b=p.borderColor,y=u||{},w=y.borderBottomWidth,S=void 0===w?g:w,k=y.borderBottomStyle,_=void 0===k?x:k,P=y.borderBottomColor,z=void 0===P?b:P,M=c||{},I=M.borderTopWidth,$=void 0===I?g:I,T=M.borderTopStyle,O=void 0===T?x:T,B=M.borderTopColor,C=void 0===B?b:B,R=d||{},L=R.borderRightWidth,W=void 0===L?g:L,j=R.borderRightStyle,F=void 0===j?x:j,H=R.borderRightColor,A=void 0===H?b:H,E=l||{},N=E.borderLeftWidth,U=void 0===N?g:N,D=E.borderLeftStyle,q=void 0===D?x:D,Y=E.borderLeftColor,X=void 0===Y?b:Y,J=f||{},G=J.borderTopLeftRadius,V=void 0===G?f||0:G,Q=J.borderTopRightRadius,K=void 0===Q?f||0:Q,Z=J.borderBottomRightRadius,tt=void 0===Z?f||0:Z,et=J.borderBottomLeftRadius,it=void 0===et?f||0:et;if(u||l||c||d||s){var nt=function(t,e,n){"dashed"==e?/mp/.test(m)?i.setLineDash([Math.ceil(4*t/3),Math.ceil(4*t/3)]):i.setLineDash([Math.ceil(6*t),Math.ceil(6*t)]):"dotted"==e&&i.setLineDash([t,t]),i.setStrokeStyle(n)},rt=function(t,e,n,r,o,a,s,u,c,d,l,f,p,v,g){i.save(),i.setLineCap(g?"square":h),i.setLineWidth(f),nt(f,p,v),i.beginPath(),i.arc(t,e,s,Math.PI*c,Math.PI*d),i.lineTo(n,r),i.arc(o,a,u,Math.PI*d,Math.PI*l),i.stroke(),i.restore()};if(i.save(),s&&!u&&!l&&!c&&!d)return i.setLineWidth(g),nt(g,x,b),this.roundRect(o,a,n,r,f,!1,!!b),void i.restore();S&&rt(o+n-tt,a+r-tt,o+it,a+r,o+it,a+r-it,tt,it,.25,.5,.75,S,_,z,U&&W),U&&rt(o+it,a+r-it,o,a+V,o+V,a+V,it,V,.75,1,1.25,U,q,X,$&&S),$&&rt(o+V,a+V,o+n-K,a,o+n-K,a+K,V,K,1.25,1.5,1.75,$,O,C,U&&W),W&&rt(o+n-K,a+K,o+n,a+r-tt,o+n-tt,a+r-tt,K,tt,1.75,2,.25,W,F,A,$&&S)}},t.prototype.setOpacity=function(t){var e=t.opacity,i=void 0===e?1:e;this.ctx.setGlobalAlpha(i)},t.prototype.drawPattern=function(t,e,i){return a(this,void 0,void 0,(function(){var n=this;return s(this,(function(r){return[2,new Promise((function(r,o){n.drawView(e,i,!0,!1,!0);var a=n,s=a.ctx;a.canvas;var u=e.width,c=e.height,d=e.left,l=e.top,f=i||{},h=f.borderRadius,p=void 0===h?0:h,v=f.backgroundImage,g=f.backgroundRepeat,m=void 0===g?"repeat":g;v&&function(t){var o=s.createPattern(t.src,m);s.setFillStyle(o),n.roundRect(d,l,u,c,p,!0,!1),n.setBorder(e,i),r()}(t)}))]}))}))},t.prototype.drawView=function(t,e,i,n,r){void 0===i&&(i=!0),void 0===n&&(n=!0),void 0===r&&(r=!0);var o=this.ctx,a=t.width,s=t.height,u=t.left,c=t.top,d=e||{},l=d.borderRadius,f=void 0===l?0:l,h=d.backgroundColor,p=void 0===h?"transparent":h,v=d.overflow;e.opacity&&this.setOpacity(e),this.setTransform(t,e),r&&(o.save(),this.setShadow(e)),i&&this.setBackground(p,a,s,u,c),e.clipPath?this.clipPath(u,c,a,s,e.clipPath,i,!1):this.roundRect(u,c,a,s,f,i,!1),r&&o.restore(),n&&this.setBorder(t,e),"hidden"==v&&o.clip()},t.prototype.drawImage=function(t,e,i,n){return void 0===e&&(e={}),void 0===i&&(i={}),void 0===n&&(n=!0),a(this,void 0,void 0,(function(){var r=this;return s(this,(function(o){switch(o.label){case 0:return[4,new Promise((function(o,c){return a(r,void 0,void 0,(function(){var r,a,c,d,l,f,h,p,v,g,x,b,y,k,_,P,z,M,I,$,T,O=this;return s(this,(function(s){return r=this.ctx,a=i.borderRadius,c=void 0===a?0:a,d=i.backgroundColor,l=void 0===d?"transparent":d,f=i.objectFit,h=void 0===f?"fill":f,p=i.backgroundSize,v=void 0===p?"fill":p,g=i.objectPosition,x=i.backgroundPosition,b=i.boxShadow,i.backgroundImage&&(h=v,g=x),b&&this.drawView(e,Object.assign(i,{backgroundColor:l||b&&(l||"#ffffff")}),!0,!1,!0),y=e.width,k=e.height,_=e.left,P=e.top,r.save(),z=e.contentSize.left-e.borderSize.left,M=e.contentSize.top-e.borderSize.top,n||(this.setOpacity(i),this.setTransform(e,i),this.setBackground(l,y,k,_,P),this.roundRect(_,P,y,k,c,!!(c||!b&&l),!1)),_+=z,P+=M,r.clip(),I=function(t){if("fill"!==h){var i=function(t,e,i){var n=t.objectFit,r=t.objectPosition,o=e.width/e.height,a=i.width/i.height,s=1;"contain"==n&&o>=a||"cover"==n&&o<a?s=e.height/i.height:("contain"==n&&o<a||"cover"==n&&o>=a)&&(s=e.width/i.width);var u=i.width*s,c=i.height*s,d=r||[],l=d[0],f=d[1],h=/^\d+px|rpx$/.test(l)?w(l,e.width):(e.width-u)*(S(l)?w(l,1):{left:0,center:.5,right:1}[l||"center"]),p=/^\d+px|rpx$/.test(f)?w(f,e.height):(e.height-c)*(S(f)?w(f,1):{top:0,center:.5,bottom:1}[f||"center"]),v=function(t,e){return[(t-h)/s,(e-p)/s]},g=v(0,0),m=g[0],x=g[1],b=v(e.width,e.height),y=b[0],k=b[1];return{sx:Math.max(m,0),sy:Math.max(x,0),sw:Math.min(y-m,i.width),sh:Math.min(k-x,i.height),dx:Math.max(h,0),dy:Math.max(p,0),dw:Math.min(u,e.width),dh:Math.min(c,e.height)}}({objectFit:h,objectPosition:g},e.contentSize,t),n=i.sx,o=i.sy,a=i.sh,s=i.sw,c=i.dx,d=i.dy,l=i.dh,f=i.dw;m==u.MP_BAIDU?r.drawImage(t.src,c+_,d+P,f,l,n,o,s,a):r.drawImage(t.src,n,o,s,a,c+_,d+P,f,l)}else r.drawImage(t.src,_,P,y,k)},$=function(){r.restore(),O.drawView(e,i,!1,!0,!1),o(1)},T=function(t){I(t),$()},T(t),[2]}))}))}))];case 1:return o.sent(),[2]}}))}))},t.prototype.drawText=function(t,e,i,n){var r=this.ctx,o=e.borderSize,a=e.contentSize,s=e.left,u=e.top,c=a.width,d=a.height,l=a.left-o.left,f=a.top-o.top,h=i.color,p=void 0===h?"#000000":h,v=i.lineHeight,g=void 0===v?"1.4em":v,m=i.fontSize,x=void 0===m?14:m,b=i.fontWeight,y=i.fontFamily,S=i.fontStyle,k=i.textAlign,_=void 0===k?"left":k,P=i.verticalAlign,z=void 0===P?K:P,M=i.backgroundColor,I=i.lineClamp,$=i.backgroundClip,T=i.textShadow,O=i.textDecoration;if(this.drawView(e,i,$!=G),g=w(g,x),t){r.save(),this.setShadow({boxShadow:T}),s+=l,u+=f;var B=n.fontHeight,C=n.descent+n.ascent;switch(r.setFonts({fontFamily:y,fontSize:x,fontWeight:b,fontStyle:S}),r.setTextBaseline(C?K:z),r.setTextAlign(_),$?this.setBackground(M,c,d,s,u):r.setFillStyle(p),_){case"left":break;case"center":s+=.5*c;break;case"right":s+=c}var R=n.lines*g,L=Math.ceil((d-R)/2);switch(L<0&&(L=0),z){case"top":break;case K:u+=L;break;case"bottom":u+=2*L}var W=(g-B)/2,j=function(t){var e=r.measureText(t),i=e.actualBoundingBoxDescent,n=void 0===i?0:i,o=e.actualBoundingBoxAscent;return"top"==z?{fix:C?void 0===o?0:o:0,lineY:C?2*W:W}:z==K?{fix:C?g/2+n/4:g/2,lineY:(g-B)/2}:"bottom"==z?{fix:C?g-n:g+W,lineY:0}:{fix:0,height:0,lineY:0}},F=function(t,e,i){var o=t;switch(_){case"left":o+=i;break;case"center":o=(t-=i/2)+i;break;case"right":o=t,t-=i}if(O){r.setLineWidth(x/13),r.beginPath();var a=.1*n.fontHeight;/\bunderline\b/.test(O)&&(r.moveTo(t,e+a),r.lineTo(o,e+a)),/\boverline\b/.test(O)&&(C||(e-=W),r.moveTo(t,e-n.fontHeight-a),r.lineTo(o,e-n.fontHeight-a)),/\bline-through\b/.test(O)&&(r.moveTo(t,e-.5*n.fontHeight),r.lineTo(o,e-.5*n.fontHeight)),r.closePath(),r.setStrokeStyle(p),r.stroke()}};if(!n.widths||1==n.widths.length&&n.widths[0].total<=a.width){var H=j(t),A=H.fix,E=H.lineY;return r.fillText(t,s,u+A),F(s,(u+=g)-E,n&&n.widths&&n.widths[0].total||n.text),r.restore(),void this.setBorder(e,i)}for(var N=t.split(""),U=u,D=s,q="",Y=0,X=0;X<=N.length;X++){var J=N[X]||"",V="\n"===J,Q=""==J,Z=q+(J=V?"":J),tt=r.measureText(Z).width;if(Y>=I)break;if(D=s,tt>a.width||V||Q){if(Y++,q=Q&&tt<=a.width?Z:q,Y===I&&tt>c){for(;r.measureText("".concat(q,"...")).width>a.width&&!(q.length<=1);)q=q.substring(0,q.length-1);q+="..."}var et=j(q);if(A=et.fix,E=et.lineY,r.fillText(q,D,u+A),F(D,(u+=g)-E,tt),q=J,u>U+d)break}else q=Z}r.restore()}},t.prototype.source=function(t){return a(this,void 0,void 0,(function(){var e,i,n,r=this;return s(this,(function(o){switch(o.label){case 0:if(this.node=null,e=+new Date,"{}"==JSON.stringify(t))return[2];if(!t.type)for(i in t.type=Q,t.css=t.css||{},t)["views","children","type","css"].includes(i)||(t.css[i]=t[i],delete t[i]);return t.css&&!t.css.width&&(t.css||(t.css={})),[4,this.create(t)];case 1:return(n=o.sent())?(this.size=n.layout()||{},this.node=n,this.onEffectFinished().then((function(t){return r.lifecycle("onEffectSuccess",t)})).catch((function(t){return r.lifecycle("onEffectFail",t)})),console.log("布局用时:"+(+new Date-e)+"ms"),[2,this.size]):[2,console.warn("no node")]}}))}))},t.prototype.getImageInfo=function(t){return this.imageBus[t]||(this.imageBus[t]=this.createImage(t,this.useCORS)),this.imageBus[t]},t.prototype.create=function(t,e){return a(this,void 0,void 0,(function(){var i,n,r,a,u,c,d,l,f,h,p,v,g,m,x,b,y;return s(this,(function(s){switch(s.label){case 0:if(i="image"==t.type,n=[G,V].includes(t.type),r=t.css||{},a=r.backgroundImage,u=r.display,i&&!t.src&&!t.url||n&&!t.text)return[2];if("none"==u)return[2];if(n&&(t.text=String(t.text)),!(i||t.type==Q&&a))return[3,4];c=i?t.src:"",d=/url\((.+)\)/.exec(a),a&&d&&d[1]&&(c=d[1]||""),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.getImageInfo(c)];case 2:return l=s.sent(),f=l.width,h=l.height,!(p=l.path)&&i?[2]:(p&&(t.attributes=Object.assign(t.attributes||{},{width:f,height:h,path:p,src:p,naturalSrc:c})),[3,4]);case 3:return v=s.sent(),t.type!=Q?[2]:(this.lifecycle("onEffectFail",o(o({},v),{src:c})),[3,4]);case 4:if(this.count+=1,g=new X(t,e,this.root,this.ctx),!(m=t.views||t.children))return[3,8];x=0,s.label=5;case 5:return x<m.length?(b=m[x],[4,this.create(b,g)]):[3,8];case 6:(y=s.sent())&&g.add(y),s.label=7;case 7:return x++,[3,5];case 8:return[2,g]}}))}))},t.prototype.drawNode=function(t,e){return void 0===e&&(e=!1),a(this,void 0,void 0,(function(){var i,n,r,o,a,u,c,d,l,f,h,p,v,g,m,x,b,y,w,S;return s(this,(function(s){switch(s.label){case 0:return i=t.layoutBox,n=t.computedStyle,r=t.attributes,o=t.name,a=t.children,u=t.fixedLine,c=t.attributes,d=c.src,l=c.text,["fixed"].includes(n.position)&&!e?[2]:(this.ctx.save(),o!==Q?[3,7]:d?n.backgroundRepeat?[4,this.drawPattern(r,i,n)]:[3,2]:[3,5]);case 1:return s.sent(),[3,4];case 2:return[4,this.drawImage(r,i,n,!1)];case 3:s.sent(),s.label=4;case 4:return[3,6];case 5:this.drawView(i,n),s.label=6;case 6:return[3,10];case 7:return"image"===o&&d?[4,this.drawImage(r,i,n,!1)]:[3,9];case 8:return s.sent(),[3,10];case 9:o===G?this.drawText(l,i,n,r):o===V&&J.api&&J.api.draw(l,this,i,n),s.label=10;case 10:if(this.progress+=1,h=(f=u||{}).beforeElements,p=f.afterElements,!h)return[3,14];v=0,g=h,s.label=11;case 11:return v<g.length?(S=g[v],[4,this.drawNode(S)]):[3,14];case 12:s.sent(),s.label=13;case 13:return v++,[3,11];case 14:if(!a)return[3,18];m=Object.values?Object.values(a):Object.keys(a).map((function(t){return a[t]})),x=0,b=m,s.label=15;case 15:return x<b.length?"absolute"===(S=b[x]).computedStyle.position?[3,17]:[4,this.drawNode(S)]:[3,18];case 16:s.sent(),s.label=17;case 17:return x++,[3,15];case 18:if(!p)return[3,22];y=0,w=p,s.label=19;case 19:return y<w.length?(S=w[y],[4,this.drawNode(S)]):[3,22];case 20:s.sent(),s.label=21;case 21:return y++,[3,19];case 22:return this.ctx.restore(),[2]}}))}))},t.prototype.render=function(t){var e=this;return void 0===t&&(t=30),new Promise((function(i,n){return a(e,void 0,void 0,(function(){var e,r,o,a,u,c,d,l,f,h;return s(this,(function(s){switch(s.label){case 0:return e=+new Date,this.init(),[4,(p=t,void 0===p&&(p=0),new Promise((function(t){return setTimeout(t,p)})))];case 1:s.sent(),s.label=2;case 2:if(s.trys.push([2,14,,15]),!this.node)return[3,12];if(r=this.root.fixedLine||{},o=r.beforeElements,a=r.afterElements,!o)return[3,6];u=0,c=o,s.label=3;case 3:return u<c.length?(f=c[u],[4,this.drawNode(f,!0)]):[3,6];case 4:s.sent(),s.label=5;case 5:return u++,[3,3];case 6:return[4,this.drawNode(this.node)];case 7:if(s.sent(),!a)return[3,11];d=0,l=a,s.label=8;case 8:return d<l.length?(f=l[d],[4,this.drawNode(f,!0)]):[3,11];case 9:s.sent(),s.label=10;case 10:return d++,[3,8];case 11:return i(this.node),[3,13];case 12:this.lifecycle("onEffectFail","node is empty"),s.label=13;case 13:return[3,15];case 14:return h=s.sent(),this.lifecycle("onEffectFail",h),n(h),[3,15];case 15:return console.log("渲染用时:"+(+new Date-e-30)+"ms"),[2]}var p}))}))}))},t.prototype.onEffectFinished=function(){var t=this,e=Object.keys(this.imageBus).map((function(e){return t.imageBus[e]}));return Promise.all(e)},t.prototype.destroy=function(){this.node=[]},t.prototype.save=function(t){try{var e=t||{},i=e.fileType,n=void 0===i?"png":i,r=e.quality,o=void 0===r?1:r;return this.canvas.toDataURL("image/".concat(n),o)}catch(t){return this.lifecycle("onEffectFail","image cross domain"),t}},t}();e.default=e.Painter=Z,u.WEB==m&&(window.Painter=Z)},ab55:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{color:{type:String,default:uni.$u.props.link.color},fontSize:{type:[String,Number],default:uni.$u.props.link.fontSize},underLine:{type:Boolean,default:uni.$u.props.link.underLine},href:{type:String,default:uni.$u.props.link.href},mpTips:{type:String,default:uni.$u.props.link.mpTips},lineColor:{type:String,default:uni.$u.props.link.lineColor},text:{type:String,default:uni.$u.props.link.text}}};e.default=n},b9a8:function(t,e,i){"use strict";var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.children=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.indexKey;return{inject:(0,a.default)({},t,{default:null}),watch:{el:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0},src:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},text:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},css:{handler:function(t,e){t!=e&&(this.el.css=("object"==(0,o.default)(t)?t:t&&Object.assign.apply(Object,(0,r.default)(s(t))))||{})},immediate:!0},replace:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0}},created:function(){var e=this;this._uid||(this._uid=this._.uid),Object.defineProperty(this,"parent",{get:function(){return e[t]||[]}}),Object.defineProperty(this,"index",{get:function(){e.bindRelation();var t=e.parent;t=void 0===t?{}:t;var i=t.el;i=void 0===i?{}:i;var n=i.views,r=void 0===n?[]:n;return r.indexOf(e.el)}}),this.el.type=this.type,this.bindRelation()},beforeDestroy:function(){this.removeEl()},methods:{removeEl:function(){var t=this;this.parent&&(this.parent.el.views=this.parent.el.views.filter((function(e){return e._uid!==t._uid})))},bindRelation:function(){var t=this;if(this.el._uid||(this.el._uid=this._uid),["text","qrcode"].includes(this.type)&&(this.el.text=this.$slots&&this.$slots.default&&this.$slots.default[0].text||"".concat(this.text||"").replace(/\\n/g,"\n")),"image"==this.type&&(this.el.src=this.src),this.parent){var e=this.parent.el.views||[];-1!==e.indexOf(this.el)?this.parent.el.views=e.map((function(e){return e._uid==t._uid?t.el:e})):this.parent.el.views=[].concat((0,r.default)(e),[this.el])}}},mounted:function(){}}},e.parent=function(t){return{provide:function(){return(0,a.default)({},t,this)},data:function(){return{el:{css:{},views:[]}}},watch:{css:{handler:function(t){this.canvasId&&(this.el.css=("object"==(0,o.default)(t)?t:t&&Object.assign.apply(Object,(0,r.default)(s(t))))||{},this.canvasWidth=this.el.css&&this.el.css.width||this.canvasWidth,this.canvasHeight=this.el.css&&this.el.css.height||this.canvasHeight)},immediate:!0}}}};var r=n(i("2909")),o=n(i("53ca")),a=n(i("ade3"));i("d81d"),i("4de4"),i("d3b7"),i("ac1f"),i("00b4"),i("fb6a"),i("c975"),i("5319"),i("e9c4"),i("7a82"),i("caad"),i("99af");var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(";").filter((function(t){return t&&!/^[\n\s]+$/.test(t)})).map((function(t){var e=t.slice(0,t.indexOf(":")),i=t.slice(t.indexOf(":")+1);return(0,a.default)({},e.replace(/-([a-z])/g,(function(){return arguments[1].toUpperCase()})).replace(/\s+/g,""),i.replace(/^\s+/,"").replace(/\s+$/,"")||"")}))}},b9b0:function(t,e,i){"use strict";var n=i("94b3"),r=i.n(n);r.a},baa5:function(t,e,i){var n=i("23e7"),r=i("e58c");n({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},cba6:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={"u-Text":i("7614").default,uIcon:i("94f3").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-read-more"},[i("v-uni-view",{staticClass:"u-read-more__content",style:{height:t.isLongContent&&"close"===t.status?t.$u.addUnit(t.showHeight):t.$u.addUnit(t.contentHeight),textIndent:t.textIndent}},[i("v-uni-view",{ref:"u-read-more__content__inner",staticClass:"u-read-more__content__inner",class:[t.elId]},[t._t("default")],2)],1),t.isLongContent?i("v-uni-view",{staticClass:"u-read-more__toggle",style:[t.innerShadowStyle]},[t._t("toggle",[i("v-uni-view",{staticClass:"u-read-more__toggle__text",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleReadMore.apply(void 0,arguments)}}},[i("u--text",{attrs:{text:"close"===t.status?t.closeText:t.openText,color:t.color,size:t.fontSize,lineHeight:t.fontSize,margin:"0 5px 0 0"}}),i("v-uni-view",{staticClass:"u-read-more__toggle__icon"},[i("u-icon",{attrs:{color:t.color,size:t.fontSize+2,name:"close"===t.status?"arrow-down":"arrow-up"}})],1)],1)])],2):t._e()],1)},o=[]},d5b1:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".lime-painter[data-v-0fba428e],\n.lime-painter__canvas[data-v-0fba428e]{\nwidth:100%;\n}",""]),t.exports=e},d64e:function(t,e,i){"use strict";i.r(e);var n=i("68aa"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},d689:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("uvText",{attrs:{type:t.type,show:t.show,text:t.text,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,mode:t.mode,href:t.href,format:t.format,call:t.call,openType:t.openType,bold:t.bold,block:t.block,lines:t.lines,color:t.color,decoration:t.decoration,size:t.size,iconStyle:t.iconStyle,margin:t.margin,lineHeight:t.lineHeight,align:t.align,wordWrap:t.wordWrap,customStyle:t.customStyle},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")}}})},r=[]},ee6f:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{openType:String},methods:{onGetUserInfo:function(t){this.$emit("getuserinfo",t.detail)},onContact:function(t){this.$emit("contact",t.detail)},onGetPhoneNumber:function(t){this.$emit("getphonenumber",t.detail)},onError:function(t){this.$emit("error",t.detail)},onLaunchApp:function(t){this.$emit("launchapp",t.detail)},onOpenSetting:function(t){this.$emit("opensetting",t.detail)}}};e.default=n},f148:function(t,e,i){var n=i("d5b1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("0c60db80",n,!0,{sourceMap:!1,shadowMode:!1})},f39c:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-view[data-v-7c1d503a], uni-scroll-view[data-v-7c1d503a], uni-swiper-item[data-v-7c1d503a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-read-more__content[data-v-7c1d503a]{overflow:hidden;color:#606266;font-size:15px;text-align:left}.u-read-more__toggle[data-v-7c1d503a]{display:flex;flex-direction:row;justify-content:center}.u-read-more__toggle__text[data-v-7c1d503a]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-top:5px}",""]),t.exports=e},f889:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("44a7")),o=(n(i("11f4")),n(i("ee6f")),n(i("3833"))),a={name:"u--text",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default,o.default],computed:{valueStyle:function(){var t={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:uni.$u.addUnit(this.size)};return!this.type&&(t.color=this.color),this.isNvue&&this.lines&&(t.lines=this.lines),this.lineHeight&&(t.lineHeight=uni.$u.addUnit(this.lineHeight)),!this.isNvue&&this.block&&(t.display="block"),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},isNvue:function(){return!1},isMp:function(){return!1}},data:function(){return{}},methods:{clickHandler:function(){this.call&&"phone"===this.mode&&uni.makePhoneCall({phoneNumber:this.text}),this.$emit("click")}}};e.default=a},fcfe:function(t,e,i){"use strict";var n=i("1424"),r=i.n(n);r.a}}]);
|