(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["component_ele_compose~app"],{"0074":function(e,t,n){},"062c":function(e,t,n){"use strict";n("2491")},"0693":function(e,t,n){"use strict";n("9163")},"0998":function(e,t,n){"use strict";n("d3b7"),n("25f0");var o=n("7a23"),i=n("f3eb"),a={style:{display:"flex",marginTop:"14px"}},r={class:"pinyin-content"},c=["volume"],l=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),s=Object(o["defineComponent"])({props:{sourceUri:String,pinyinString:String},setup:function(e){var t=e,n=Object(o["ref"])(),s=Object(o["ref"])(),u=Object(o["ref"])(.6);function d(){null!==t.sourceUri&&void 0!==t.sourceUri&&(s.value.src=t.sourceUri),n.value.load(),n.value.play()}return function(m,f){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",a,[Object(o["createElementVNode"])("div",r,Object(o["toDisplayString"])(t.pinyinString),1),e.sourceUri?(Object(o["openBlock"])(),Object(o["createBlock"])(i["a"],{key:0,style:{width:"16px",height:"16px",margin:"5px 0 0 10px"},playCount:1,onClick:d})):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:n,volume:u.value,autoplay:""},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:s,type:"audio/mpeg"},null,512),l],8,c)])}}}),u=(n("5367"),n("d959")),d=n.n(u);const m=d()(s,[["__scopeId","data-v-7c5ffb83"]]);var f=m,p=n("d2a3"),b={key:0,style:{marginBottom:"20px"}},v={style:{fontSize:"26px",color:"#3d91ff"}},h={style:{margin:"16px 0"}},O=Object(o["defineComponent"])({props:{title:String,richTextModel:{type:Object,required:!0}},setup:function(e){var t=e;return function(n,i){return e.richTextModel.allText?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",b,[Object(o["createElementVNode"])("div",v,Object(o["toDisplayString"])(t.title),1),Object(o["createElementVNode"])("div",h,[Object(o["createVNode"])(p["a"],{richText:t.richTextModel},null,8,["richText"])])])):Object(o["createCommentVNode"])("",!0)}}});const j=O;var y=j,g=function(e){return Object(o["pushScopeId"])("data-v-052203f2"),e=e(),Object(o["popScopeId"])(),e},x={class:"element-content"},w={class:"word-content"},k=g((function(){return Object(o["createElementVNode"])("div",{style:{height:"1px",backgroundColor:"#E0E0E0",width:"100%",margin:"10px 0"}},null,-1)})),I={class:"details-content",style:{marginTop:"16px"}},E=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",x,[Object(o["createElementVNode"])("div",w,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createVNode"])(f,{"pinyin-string":e.elementInfo.ciElementInfo.pinyin,"source-uri":e.elementInfo.ciElementInfo.pronounceLocalSource},null,8,["pinyin-string","source-uri"]),k,Object(o["createElementVNode"])("div",I,[Object(o["createVNode"])(y,{title:"释义","rich-text-model":e.elementInfo.ciElementInfo.explanation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"例句","rich-text-model":e.elementInfo.ciElementInfo.example},null,8,["rich-text-model"])])])}}});n("5425");const N=d()(E,[["__scopeId","data-v-052203f2"]]);var V=N,B=function(e){return Object(o["pushScopeId"])("data-v-b7438310"),e=e(),Object(o["popScopeId"])(),e},C={class:"element-content"},S={class:"word-content"},P=B((function(){return Object(o["createElementVNode"])("div",{style:{height:"1px",backgroundColor:"#E0E0E0",width:"100%",margin:"10px 0"}},null,-1)})),T={class:"details-content",style:{marginTop:"16px"}},D=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",C,[Object(o["createElementVNode"])("div",S,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createVNode"])(f,{"pinyin-string":e.elementInfo.idiomElementInfo.pinyin,"source-uri":e.elementInfo.idiomElementInfo.pronounceLocalSource},null,8,["pinyin-string","source-uri"]),P,Object(o["createElementVNode"])("div",T,[Object(o["createVNode"])(y,{title:"释义","rich-text-model":e.elementInfo.idiomElementInfo.explanation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"来源","rich-text-model":e.elementInfo.idiomElementInfo.derivation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"用法","rich-text-model":e.elementInfo.idiomElementInfo.grammar},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"例句","rich-text-model":e.elementInfo.idiomElementInfo.example},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"近义词","rich-text-model":e.elementInfo.idiomElementInfo.synonym},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"反义词","rich-text-model":e.elementInfo.idiomElementInfo.antonym},null,8,["rich-text-model"])])])}}});n("933d");const M=d()(D,[["__scopeId","data-v-b7438310"]]);var A=M,z=(n("4de4"),{style:{display:"flex",marginTop:"14px"}}),F={class:"pinyin-content"},_=["volume"],L=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),q=Object(o["defineComponent"])({props:{sourceUri:String,pinyinString:String},setup:function(e){var t=e,n=Object(o["ref"])(),a=Object(o["ref"])(),r=Object(o["ref"])(.6);function c(){null!==t.sourceUri&&void 0!==t.sourceUri&&(a.value.src=t.sourceUri),n.value.load(),n.value.play()}return function(e,l){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",z,[Object(o["createElementVNode"])("div",F,Object(o["toDisplayString"])(t.pinyinString),1),Object(o["createVNode"])(i["a"],{style:{width:"16px",height:"16px",margin:"15px 0 0 10px"},playCount:1,onClick:c})]),Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:n,volume:r.value,autoplay:""},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:a,type:"audio/mpeg"},null,512),L],8,_)])}}});n("7bf8");const W=d()(q,[["__scopeId","data-v-a24d8232"]]);var R=W,H=function(e){return Object(o["pushScopeId"])("data-v-53d3a39a"),e=e(),Object(o["popScopeId"])(),e},Y={class:"element-content"},X={key:0,style:{marginLeft:"12px",marginBottom:"14px"}},Q={style:{display:"flex"}},U=["onClick"],Z={style:{left:"-50%",position:"relative",textAlign:"center"}},G={class:"cnCard-content"},J={style:{height:"80px",display:"flex",flex:"auto"}},$={class:"word-content"},K={style:{width:"280px",marginLeft:"26px"}},ee=H((function(){return Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",{class:"LineBorder"}),Object(o["createElementVNode"])("div",{class:"LineBorder top24"}),Object(o["createElementVNode"])("div",{class:"LineBorder top24"}),Object(o["createElementVNode"])("div",{class:"LineBorder top24"})],-1)})),te={style:{left:"50%",position:"relative",float:"left"}},ne={style:{display:"flex",fontSize:"24px",color:"#494b4d",margin:"26px 0 16px"}},oe={key:0},ie={key:1,style:{margin:"0 60px"}},ae={key:2},re=H((function(){return Object(o["createElementVNode"])("div",{style:{height:"1px",backgroundColor:"#E0E0E0",width:"100%",margin:"10px 0"}},null,-1)})),ce={style:{display:"flex",width:"100%",justifyContent:"space-between"}},le={class:"tabs-body"},se={key:0},ue={key:0,class:"hintText"},de={key:1,style:{fontSize:"28px"}},me=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"18px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"15px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 18px"}},"开头"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"15px"}})],-1)})),fe={key:0,class:"hintText"},pe=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"18px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"15px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 18px"}},"中间"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"15px"}})],-1)})),be={key:1,class:"hintText"},ve=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"18px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"15px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 18px"}},"结尾"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"15px"}})],-1)})),he={key:2,class:"hintText"},Oe={key:2},je={key:0,class:"hintText"},ye={style:{marginLeft:"15px"}},ge=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 释义 ",-1)})),xe=[ge],we=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 词组 ",-1)})),ke=[we],Ie=H((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 例句 ",-1)})),Ee=[Ie],Ne=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e;function n(e){t.elementInfo.wordElementInfo.selectedExplanationModel=t.elementInfo.wordElementInfo.explanations.filter((function(t){return t.pinyin===e}))[0],t.elementInfo.wordElementInfo.selectedPinyin=e}return function(t,i){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Y,[e.elementInfo.wordElementInfo.pinyins.length>1?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",X,[Object(o["createElementVNode"])("div",Q,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.elementInfo.wordElementInfo.pinyins,(function(t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t,style:{marginRight:"8px"}},[Object(o["createElementVNode"])("div",{class:"pinyin-TabItem",onClick:function(e){return n(t)},style:Object(o["normalizeStyle"])({minWidth:"35px",left:"50%",position:"relative",float:"left",color:"".concat(e.elementInfo.wordElementInfo.selectedPinyin===t?"#3d91ff":"#BFBFBF")})},[Object(o["createElementVNode"])("div",Z,Object(o["toDisplayString"])(t),1),Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({width:"35px",height:"2px",left:"-16px",position:"relative",marginTop:"3px",borderRadius:"2px",backgroundColor:"".concat(e.elementInfo.wordElementInfo.selectedPinyin===t?"#3d91ff":"#fff")})},null,4)],12,U)])})),128))])])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",G,[Object(o["createElementVNode"])("div",J,[Object(o["createElementVNode"])("div",$,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createElementVNode"])("div",K,[ee,Object(o["createElementVNode"])("div",te,[Object(o["createVNode"])(R,{class:"dictAudioPlayer","font-size":50,"pinyin-string":e.elementInfo.wordElementInfo.selectedPinyin,"source-uri":e.elementInfo.wordElementInfo.selectedExplanationModel.pronounceLocalSource},null,8,["pinyin-string","source-uri"])])])])]),Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",ne,[e.elementInfo.wordElementInfo.radical?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",oe,"部首:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.radical),1)):Object(o["createCommentVNode"])("",!0),e.elementInfo.wordElementInfo.stroke?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ie," 笔画:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.stroke),1)):Object(o["createCommentVNode"])("",!0),e.elementInfo.wordElementInfo.traditional?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ae,"繁体:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.traditional),1)):Object(o["createCommentVNode"])("",!0)]),re,Object(o["createElementVNode"])("div",ce,[Object(o["createElementVNode"])("div",le,["Introduction"===e.elementInfo.wordElementInfo.currentContentType?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",se,[Object(o["createVNode"])(p["a"],{richText:e.elementInfo.wordElementInfo.selectedExplanationModel.explanation},null,8,["richText"]),e.elementInfo.wordElementInfo.selectedExplanationModel.explanation.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ue," 没有释义内容 "))])):Object(o["createCommentVNode"])("",!0),"GroupWord"===e.elementInfo.wordElementInfo.currentContentType?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",de,[me,Object(o["createVNode"])(p["a"],{richText:e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atFirst},null,8,["richText"]),e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atFirst.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",fe," 没有开头词 ")),pe,Object(o["createVNode"])(p["a"],{richText:e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atMiddle},null,8,["richText"]),e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atMiddle.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",be," 没有中间词 ")),ve,Object(o["createVNode"])(p["a"],{richText:e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atLast},null,8,["richText"]),e.elementInfo.wordElementInfo.selectedExplanationModel.groupWord.atLast.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",he," 没有结尾词 "))])):Object(o["createCommentVNode"])("",!0),"Sentence"===e.elementInfo.wordElementInfo.currentContentType?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Oe,[0===e.elementInfo.wordElementInfo.selectedExplanationModel.proses.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",je," 没有例句 ")):Object(o["createCommentVNode"])("",!0),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.elementInfo.wordElementInfo.selectedExplanationModel.proses,(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(p["a"],{richText:e,style:{marginBottom:"16px"},key:e.allText},null,8,["richText"])})),128))])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",ye,[Object(o["createElementVNode"])("div",{class:"btn tabItem",onClick:i[0]||(i[0]=function(t){return e.elementInfo.wordElementInfo.currentContentType="Introduction"}),style:Object(o["normalizeStyle"])({marginTop:"100px",backgroundColor:"".concat("Introduction"===e.elementInfo.wordElementInfo.currentContentType?"#3d91ff":"#fff"),color:"".concat("Introduction"===e.elementInfo.wordElementInfo.currentContentType?"#fff":"#494B4D"),borderWidth:"".concat("Introduction"===e.elementInfo.wordElementInfo.currentContentType?"0":"1px")})},xe,4),Object(o["createElementVNode"])("div",{class:"btn tabItem",onClick:i[1]||(i[1]=function(t){return e.elementInfo.wordElementInfo.currentContentType="GroupWord"}),style:Object(o["normalizeStyle"])({backgroundColor:"".concat("GroupWord"===e.elementInfo.wordElementInfo.currentContentType?"#3d91ff":"#fff"),color:"".concat("GroupWord"===e.elementInfo.wordElementInfo.currentContentType?"#fff":"#494B4D"),borderWidth:"".concat("GroupWord"===e.elementInfo.wordElementInfo.currentContentType?"0":"1px")})},ke,4),Object(o["createElementVNode"])("div",{class:"btn tabItem",onClick:i[2]||(i[2]=function(t){return e.elementInfo.wordElementInfo.currentContentType="Sentence"}),style:Object(o["normalizeStyle"])({backgroundColor:"".concat("Sentence"===e.elementInfo.wordElementInfo.currentContentType?"#3d91ff":"#fff"),color:"".concat("Sentence"===e.elementInfo.wordElementInfo.currentContentType?"#fff":"#494B4D"),borderWidth:"".concat("Sentence"===e.elementInfo.wordElementInfo.currentContentType?"0":"1px")})},Ee,4)])])])])}}});n("062c");const Ve=d()(Ne,[["__scopeId","data-v-53d3a39a"]]);var Be=Ve,Ce=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(o["ref"])(t.elementInfo.dictType.toString());return function(t,i){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"base-element-content",style:Object(o["normalizeStyle"])([{overflow:"disable",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}])},["1"===n.value?(Object(o["openBlock"])(),Object(o["createBlock"])(V,{key:0,elementInfo:e.elementInfo},null,8,["elementInfo"])):"2"===n.value?(Object(o["openBlock"])(),Object(o["createBlock"])(A,{key:1,elementInfo:e.elementInfo},null,8,["elementInfo"])):"0"===n.value?(Object(o["openBlock"])(),Object(o["createBlock"])(Be,{key:2,elementInfo:e.elementInfo},null,8,["elementInfo"])):Object(o["createCommentVNode"])("",!0)],4)}}});n("7cf0");const Se=d()(Ce,[["__scopeId","data-v-5a9792aa"]]);t["a"]=Se},"09b4":function(e,t,n){"use strict";n("4ab0")},"102c":function(e,t,n){"use strict";n("27f6")},"144b":function(e,t,n){"use strict";n("201c")},"1b6d":function(e,t,n){},"1bdc":function(e,t,n){},"1d7c":function(e,t,n){"use strict";n("79d8")},"201c":function(e,t,n){},2491:function(e,t,n){},"25ad":function(e,t,n){},"27f6":function(e,t,n){},"2ce9":function(e,t,n){},"324d":function(e,t,n){"use strict";n("9f68")},"33fa":function(e,t,n){"use strict";n("ad98")},"389a":function(e,t,n){"use strict";n("3bd9")},"3a9ba":function(e,t,n){},"3bd9":function(e,t,n){},"41dd":function(e,t,n){},"433c":function(e,t,n){"use strict";n("1b6d")},"468a":function(e,t,n){},4801:function(e,t,n){"use strict";n("3a9ba")},"4ab0":function(e,t,n){},"4d5b":function(e,t,n){},"4ee2":function(e,t,n){"use strict";n("88fc")},"522f":function(e,t,n){},5367:function(e,t,n){"use strict";n("968c")},5425:function(e,t,n){"use strict";n("b628")},5917:function(e,t,n){},"5a17":function(e,t,n){"use strict";n("d3b7"),n("25f0"),n("99af");var o=n("7a23"),i=n("b85c"),a=n("f3eb"),r={style:{display:"flex",marginTop:"8px"}},c={class:"pinyin-content"},l=["volume"],s=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),u=Object(o["defineComponent"])({props:{sourceUri:String,pinyinString:String},setup:function(e){var t=e,n=Object(o["ref"])(),i=Object(o["ref"])(),u=Object(o["ref"])(.6);function d(){null!==t.sourceUri&&void 0!==t.sourceUri&&(i.value.src=t.sourceUri),n.value.load(),n.value.play()}return Object(o["onMounted"])((function(){})),function(m,f){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",r,[Object(o["createElementVNode"])("div",c,Object(o["toDisplayString"])(t.pinyinString),1),e.sourceUri?(Object(o["openBlock"])(),Object(o["createBlock"])(a["a"],{key:0,style:{width:"16px",height:"16px",margin:"2px 0 0 10px"},playCount:1,onClick:d})):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:n,volume:u.value,autoplay:""},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:i,type:"audio/mpeg"},null,512),s],8,l)])}}}),d=(n("389a"),n("d959")),m=n.n(d);const f=m()(u,[["__scopeId","data-v-78303526"]]);var p=f,b=n("d2a3"),v={key:0,style:{marginTop:"6px"}},h={class:"title-content"},O=Object(o["defineComponent"])({props:{title:String,richTextModel:{type:Object,required:!0}},setup:function(e){var t=e;return function(n,i){return e.richTextModel.allText?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",v,[Object(o["createElementVNode"])("div",h,Object(o["toDisplayString"])(t.title),1),Object(o["createVNode"])(b["a"],{richText:t.richTextModel,class:"richText-content"},null,8,["richText"])])):Object(o["createCommentVNode"])("",!0)}}});n("33fa");const j=m()(O,[["__scopeId","data-v-6ff94d22"]]);var y=j,g=n("d9f3"),x={class:"btn imgTextCombineBtn foldBtn"},w={class:"btn-name"},k={key:0},I={key:1},E=Object(o["defineComponent"])({props:{isCollapsed:Boolean},setup:function(e){return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",x,[Object(o["createVNode"])(g["a"],{class:"svg",name:"".concat(e.isCollapsed?"max":"min",".origin")},null,8,["name"]),Object(o["createElementVNode"])("div",w,[e.isCollapsed?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",k,"展开")):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",I,"收起"))])])}}});n("102c");const N=m()(E,[["__scopeId","data-v-2066fdac"]]);var V=N,B=n("97e3"),C=n("175c"),S=n("be92"),P=n("bf3b"),T={class:"cnCard-content"},D={style:{height:"43px",display:"flex",justifyContent:"space-between",flex:"auto"}},M={class:"word-content"},A=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},emits:["foldClick"],setup:function(e,t){t.emit;var n=e,a=Object(C["a"])(),r=Object(B["a"])(),c=Object(o["ref"])(),l=Object(S["c"])(Object(P["a"])()),s=l.activeElementList,u=(Object(o["ref"])(n.elementInfo.originHeight),Object(o["ref"])(n.elementInfo.isCollapsed)),d=function(){u.value=!u.value;var e,t=Object(i["a"])(s.value);try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.id===n.elementInfo.id){var a=o;a.isCollapsed=u.value}}}catch(r){t.e(r)}finally{t.f()}m()},m=function(){var e,t,o=Object(i["a"])(s.value);try{for(o.s();!(t=o.n()).done;){var l=t.value;l.id===n.elementInfo.id&&function(){var t=l,o=t.height,i=null===(e=c.value)||void 0===e?void 0:e.offsetHeight,s=t.originHeight;a.setSelectionBoxVisiblity(!1),setTimeout((function(){var e=c.value.offsetHeight*s/i,l=c.value.offsetHeight*o/i;t.originHeight=e,t.height=l,r.updateElementSize({id:n.elementInfo.id,width:n.elementInfo.width,height:l}),a.setSelectionBoxVisiblity(!0)}),10)}()}}catch(u){o.e(u)}finally{o.f()}};return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"element-content",ref_key:"elementContent",ref:c},[Object(o["createElementVNode"])("div",T,[Object(o["createElementVNode"])("div",D,[Object(o["createElementVNode"])("div",M,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createVNode"])(V,{onClick:n[0]||(n[0]=function(e){return d()}),isCollapsed:u.value},null,8,["isCollapsed"])])]),Object(o["createVNode"])(p,{"pinyin-string":e.elementInfo.ciElementInfo.pinyin,"source-uri":e.elementInfo.ciElementInfo.pronounceLocalSource},null,8,["pinyin-string","source-uri"]),u.value?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:"details-content",onTouchstart:n[1]||(n[1]=Object(o["withModifiers"])((function(){}),["stop"]))},[Object(o["createVNode"])(y,{title:"释义","rich-text-model":e.elementInfo.ciElementInfo.explanation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"例句","rich-text-model":e.elementInfo.ciElementInfo.example},null,8,["rich-text-model"])],32))],512)}}});n("09b4");const z=m()(A,[["__scopeId","data-v-5e6c3dc0"]]);var F=z,_={class:"cnCard-content"},L={style:{height:"43px",display:"flex",justifyContent:"space-between",flex:"auto"}},q={class:"word-content"},W=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},emits:["foldClick"],setup:function(e,t){t.emit;var n=e,a=Object(C["a"])(),r=Object(B["a"])(),c=Object(o["ref"])(),l=Object(S["c"])(Object(P["a"])()),s=l.activeElementList,u=(Object(o["ref"])(n.elementInfo.originHeight),Object(o["ref"])(n.elementInfo.isCollapsed)),d=function(){u.value=!u.value;var e,t=Object(i["a"])(s.value);try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.id===n.elementInfo.id){var a=o;a.isCollapsed=u.value}}}catch(r){t.e(r)}finally{t.f()}m()},m=function(){var e,t,o=Object(i["a"])(s.value);try{for(o.s();!(t=o.n()).done;){var l=t.value;l.id===n.elementInfo.id&&function(){var t=l,o=t.height,i=null===(e=c.value)||void 0===e?void 0:e.offsetHeight,s=t.originHeight;a.setSelectionBoxVisiblity(!1),setTimeout((function(){var e=c.value.offsetHeight*s/i,l=c.value.offsetHeight*o/i;t.originHeight=e,t.height=l,r.updateElementSize({id:n.elementInfo.id,width:n.elementInfo.width,height:l}),a.setSelectionBoxVisiblity(!0)}),10)}()}}catch(u){o.e(u)}finally{o.f()}};return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"element-content",ref_key:"elementContent",ref:c},[Object(o["createElementVNode"])("div",_,[Object(o["createElementVNode"])("div",L,[Object(o["createElementVNode"])("div",q,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createVNode"])(V,{onClick:n[0]||(n[0]=function(e){return d()}),isCollapsed:u.value},null,8,["isCollapsed"])])]),Object(o["createVNode"])(p,{"pinyin-string":e.elementInfo.idiomElementInfo.pinyin,"source-uri":e.elementInfo.idiomElementInfo.pronounceLocalSource},null,8,["pinyin-string","source-uri"]),u.value?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:"details-content",onTouchstart:n[1]||(n[1]=Object(o["withModifiers"])((function(){}),["stop"]))},[Object(o["createVNode"])(y,{title:"释义","rich-text-model":e.elementInfo.idiomElementInfo.explanation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{style:{marginTop:"16px"},title:"来源","rich-text-model":e.elementInfo.idiomElementInfo.derivation},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{style:{marginTop:"16px"},title:"用法","rich-text-model":e.elementInfo.idiomElementInfo.grammar},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{style:{marginTop:"16px"},title:"例句","rich-text-model":e.elementInfo.idiomElementInfo.example},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"近义词",style:{marginTop:"16px"},"rich-text-model":e.elementInfo.idiomElementInfo.synonym},null,8,["rich-text-model"]),Object(o["createVNode"])(y,{title:"反义词",style:{marginBottom:"10px",marginTop:"16px"},"rich-text-model":e.elementInfo.idiomElementInfo.antonym},null,8,["rich-text-model"])],32))],512)}}});n("c7c6");const R=m()(W,[["__scopeId","data-v-2710f0e6"]]);var H=R,Y=(n("4de4"),{style:{display:"flex",marginTop:"8px"}}),X={class:"pinyin-content"},Q=["volume"],U=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),Z=Object(o["defineComponent"])({props:{sourceUri:String,pinyinString:String},setup:function(e){var t=e,n=Object(o["ref"])(),i=Object(o["ref"])(),r=Object(o["ref"])(.6);function c(){null!==t.sourceUri&&void 0!==t.sourceUri&&(i.value.src=t.sourceUri),n.value.load(),n.value.play()}return function(l,s){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",Y,[Object(o["createElementVNode"])("div",X,Object(o["toDisplayString"])(t.pinyinString),1),e.sourceUri?(Object(o["openBlock"])(),Object(o["createBlock"])(a["a"],{key:0,style:{width:"16px",height:"16px",margin:"10px 0 0 10px"},playCount:1,onClick:c})):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:n,volume:r.value,autoplay:""},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:i,type:"audio/mpeg"},null,512),U],8,Q)])}}});n("0693");const G=m()(Z,[["__scopeId","data-v-75c08fd6"]]);var J=G,$=function(e){return Object(o["pushScopeId"])("data-v-23515166"),e=e(),Object(o["popScopeId"])(),e},K={key:0,style:{marginLeft:"12px",marginBottom:"8px"}},ee={style:{display:"flex"}},te=["onClick"],ne={style:{left:"-50%",position:"relative",textAlign:"center"}},oe={class:"cnCard-content"},ie={style:{height:"62px",display:"flex",justifyContent:"space-between",flex:"auto"}},ae={class:"word-content"},re={style:{width:"220px"}},ce=$((function(){return Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",{class:"LineBorder"}),Object(o["createElementVNode"])("div",{class:"LineBorder top16"}),Object(o["createElementVNode"])("div",{class:"LineBorder top16"}),Object(o["createElementVNode"])("div",{class:"LineBorder top16"})],-1)})),le={style:{left:"50%",position:"relative",float:"left",marginTop:"6px"}},se={style:{paddingTop:"8px"}},ue={key:1},de={style:{display:"flex",fontSize:"16px",color:"#494b4d",margin:"16px 0"}},me={key:0},fe={key:1,style:{margin:"0 20px"}},pe={key:2},be={class:"tabBtn-content"},ve=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 释义 ",-1)})),he=[ve],Oe=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 词组 ",-1)})),je=[Oe],ye=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"table-cell",textAlign:"center",verticalAlign:"middle"}}," 例句 ",-1)})),ge=[ye],xe={key:1,class:"hintText-sentence"},we=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"8px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"7px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 8px",width:"10%"}},"开头"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"7px"}})],-1)})),ke={key:0,class:"hintText"},Ie=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"8px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"7px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 8px",width:"10%"}},"中间"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"7px"}})],-1)})),Ee={key:1,class:"hintText"},Ne=$((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",margin:"8px 0"}},[Object(o["createElementVNode"])("div",{style:{height:"2px",width:"45%",backgroundColor:"#E0E0E0",marginTop:"7px"}}),Object(o["createElementVNode"])("div",{style:{color:"#808080",margin:"0 8px",width:"10%"}},"结尾"),Object(o["createElementVNode"])("div",{style:{height:"2px",backgroundColor:"#E0E0E0",width:"45%",marginTop:"7px"}})],-1)})),Ve={key:2,class:"hintText"},Be={key:0,class:"hintText-sentence"},Ce=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},emits:["foldClick"],setup:function(e,t){t.emit;var n=e,a=Object(C["a"])(),r=Object(B["a"])(),c=Object(o["ref"])(),l=Object(S["c"])(Object(P["a"])()),s=l.activeElementList,u=(Object(o["ref"])(n.elementInfo.originHeight),Object(o["ref"])(n.elementInfo.isCollapsed)),d=Object(o["ref"])(n.elementInfo.wordElementInfo.currentContentType),m=Object(o["ref"])(n.elementInfo.wordElementInfo.selectedExplanationModel),f=Object(o["ref"])(n.elementInfo.wordElementInfo.selectedPinyin),p=function(){u.value=!u.value;var e,t=Object(i["a"])(s.value);try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.id===n.elementInfo.id){var a=o;a.isCollapsed=u.value}}}catch(r){t.e(r)}finally{t.f()}O()},v=function(e){d.value=e;var t,o=Object(i["a"])(s.value);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a.id===n.elementInfo.id){var r=a;r.wordElementInfo.currentContentType=d.value}}}catch(c){o.e(c)}finally{o.f()}O()},h=function(e){m.value=n.elementInfo.wordElementInfo.explanations.filter((function(t){return t.pinyin===e}))[0],f.value=e;var t,o=Object(i["a"])(s.value);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a.id===n.elementInfo.id){var r=a;r.wordElementInfo.selectedExplanationModel=m.value,r.wordElementInfo.selectedPinyin=f.value}}}catch(c){o.e(c)}finally{o.f()}u.value||O()},O=function(){var e,t,o=Object(i["a"])(s.value);try{for(o.s();!(t=o.n()).done;){var l=t.value;l.id===n.elementInfo.id&&function(){var t=l,o=t.height,i=null===(e=c.value)||void 0===e?void 0:e.offsetHeight,s=t.originHeight;a.setSelectionBoxVisiblity(!1),setTimeout((function(){var e=c.value.offsetHeight*s/i,l=c.value.offsetHeight*o/i;t.originHeight=e,t.height=l,r.updateElementSize({id:n.elementInfo.id,width:n.elementInfo.width,height:l}),a.setSelectionBoxVisiblity(!0)}),50)}()}}catch(u){o.e(u)}finally{o.f()}};return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"element-content",ref_key:"elementContent",ref:c},[e.elementInfo.wordElementInfo.pinyins.length>1?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",K,[Object(o["createElementVNode"])("div",ee,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.elementInfo.wordElementInfo.pinyins,(function(e){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:e,style:{marginRight:"8px"}},[Object(o["createElementVNode"])("div",{class:"pinyin-TabItem",onClick:function(t){return h(e)},style:Object(o["normalizeStyle"])({minWidth:"35px",left:"50%",position:"relative",float:"left",color:"".concat(f.value===e?"#3d91ff":"#BFBFBF")})},[Object(o["createElementVNode"])("div",ne,Object(o["toDisplayString"])(e),1),Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({width:"35px",height:"2px",left:"-16px",position:"relative",marginTop:"3px",borderRadius:"2px",backgroundColor:"".concat(f.value===e?"#3d91ff":"#fff")})},null,4)],12,te)])})),128))])])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",oe,[Object(o["createElementVNode"])("div",ie,[Object(o["createElementVNode"])("div",ae,Object(o["toDisplayString"])(e.elementInfo.word),1),Object(o["createElementVNode"])("div",re,[ce,Object(o["createElementVNode"])("div",le,[Object(o["createVNode"])(J,{class:"dictAudioPlayer","pinyin-string":f.value,"source-uri":m.value.pronounceLocalSource},null,8,["pinyin-string","source-uri"])])]),Object(o["createElementVNode"])("div",se,[Object(o["createVNode"])(V,{onClick:n[0]||(n[0]=function(e){return p()}),isCollapsed:u.value},null,8,["isCollapsed"])])])]),u.value?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ue,[Object(o["createElementVNode"])("div",de,[e.elementInfo.wordElementInfo.radical?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",me,"部首:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.radical),1)):Object(o["createCommentVNode"])("",!0),e.elementInfo.wordElementInfo.stroke?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",fe," 笔画:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.stroke),1)):Object(o["createCommentVNode"])("",!0),e.elementInfo.wordElementInfo.traditional?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",pe,"繁体:"+Object(o["toDisplayString"])(e.elementInfo.wordElementInfo.traditional),1)):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",be,[Object(o["createElementVNode"])("div",{class:"btn tabBtn",onClick:n[1]||(n[1]=function(e){return v("Introduction")}),style:Object(o["normalizeStyle"])({borderRadius:"8px 0 0 8px",backgroundColor:"".concat("Introduction"===d.value?"#3d91ff":"#fff"),color:"".concat("Introduction"===d.value?"#fff":"#494B4D")})},he,4),Object(o["createElementVNode"])("div",{class:"btn tabBtn",onClick:n[2]||(n[2]=function(e){return v("GroupWord")}),style:Object(o["normalizeStyle"])({borderLeft:"0",borderRight:"0",backgroundColor:"".concat("GroupWord"===d.value?"#3d91ff":"#fff"),color:"".concat("GroupWord"===d.value?"#fff":"#494B4D")})},je,4),Object(o["createElementVNode"])("div",{class:"btn tabBtn",onClick:n[3]||(n[3]=function(e){return v("Sentence")}),style:Object(o["normalizeStyle"])({borderRadius:"0 8px 8px 0",backgroundColor:"".concat("Sentence"===d.value?"#3d91ff":"#fff"),color:"".concat("Sentence"===d.value?"#fff":"#494B4D")})},ge,4)]),Object(o["createElementVNode"])("div",null,["Introduction"===d.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:"details-content",onTouchstart:n[4]||(n[4]=Object(o["withModifiers"])((function(){}),["stop"]))},[m.value.explanation.allText?(Object(o["openBlock"])(),Object(o["createBlock"])(b["a"],{key:0,class:"details-text",richText:m.value.explanation},null,8,["richText"])):Object(o["createCommentVNode"])("",!0),m.value.explanation.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",xe,"没有释义内容"))],32)):Object(o["createCommentVNode"])("",!0),"GroupWord"===d.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:1,class:"details-content",style:{fontSize:"18px"},onTouchstart:n[5]||(n[5]=Object(o["withModifiers"])((function(){}),["stop"]))},[we,Object(o["createVNode"])(b["a"],{richText:m.value.groupWord.atFirst},null,8,["richText"]),m.value.groupWord.atFirst.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",ke,"没有开头词")),Ie,Object(o["createVNode"])(b["a"],{richText:m.value.groupWord.atMiddle},null,8,["richText"]),m.value.groupWord.atMiddle.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ee,"没有中间词")),Ne,Object(o["createVNode"])(b["a"],{richText:m.value.groupWord.atLast},null,8,["richText"]),m.value.groupWord.atLast.allText?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Ve,"没有结尾词"))],32)):Object(o["createCommentVNode"])("",!0),"Sentence"===d.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:2,class:"details-content",onTouchstart:n[6]||(n[6]=Object(o["withModifiers"])((function(){}),["stop"]))},[0===m.value.proses.length?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Be,"没有例句")):Object(o["createCommentVNode"])("",!0),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(m.value.proses,(function(e){return Object(o["openBlock"])(),Object(o["createBlock"])(b["a"],{richText:e,style:{marginBottom:"10px"},key:e.allText},null,8,["richText"])})),128))],32)):Object(o["createCommentVNode"])("",!0)])]))],512)}}});n("4801");const Se=m()(Ce,[["__scopeId","data-v-23515166"]]);var Pe=Se,Te=n("1107"),De=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(S["c"])(Object(P["a"])()),i=(n.activeElementList,Object(o["ref"])(t.elementInfo.originHeight)),a=Object(o["ref"])(t.elementInfo.dictType.toString()),r=Object(o["ref"])(t.elementInfo.width/t.elementInfo.originWidth),c=Object(o["ref"])(t.elementInfo.height/t.elementInfo.originHeight);Object(o["watch"])((function(){return t.elementInfo.height}),(function(e){r.value=t.elementInfo.width/t.elementInfo.originWidth,c.value=t.elementInfo.height/t.elementInfo.originHeight}));Object(o["computed"])((function(){return"scale(".concat(t.elementInfo.width/t.elementInfo.originWidth,", ").concat(t.elementInfo.height/i.value,")")}));return function(t,n){var i;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(["base-element-content",null===(i=e.elementInfo.animationClass)||void 0===i?void 0:i.class]),onAnimationend:n[0]||(n[0]=function(){var t,n,i;return(null===(n=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationEnd)&&(null===(i=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationEnd.apply(t,arguments))}),onAnimationstart:n[1]||(n[1]=function(){var t,n,i;return(null===(n=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationStart)&&(null===(i=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationStart.apply(t,arguments))}),onAnimationiteration:n[2]||(n[2]=function(){var t,n,i;return(null===(n=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationIteration)&&(null===(i=Object(o["unref"])(Te["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationIteration.apply(t,arguments))}),style:Object(o["normalizeStyle"])([{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"},e.elementInfo.animationClass.style])},[Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({transformOrigin:"top left",transform:"scale(".concat(r.value,", ").concat(c.value,")"),width:"".concat(e.elementInfo.originWidth,"px")})},["1"===a.value?(Object(o["openBlock"])(),Object(o["createBlock"])(F,{key:0,elementInfo:e.elementInfo},null,8,["elementInfo"])):"2"===a.value?(Object(o["openBlock"])(),Object(o["createBlock"])(H,{key:1,elementInfo:e.elementInfo},null,8,["elementInfo"])):"0"===a.value?(Object(o["openBlock"])(),Object(o["createBlock"])(Pe,{key:2,elementInfo:e.elementInfo},null,8,["elementInfo"])):Object(o["createCommentVNode"])("",!0)],4)])],38)}}});n("433c");const Me=m()(De,[["__scopeId","data-v-056db419"]]);t["a"]=Me},"6f56":function(e,t,n){},7185:function(e,t,n){"use strict";n("0074")},"719a":function(e,t,n){"use strict";n("1bdc")},7293:function(e,t,n){},"76a5":function(e,t,n){"use strict";var o=n("7a23"),i=n("b85c"),a=n("d9f3"),r=n("741b"),c=function(e){return Object(o["pushScopeId"])("data-v-f9092edc"),e=e(),Object(o["popScopeId"])(),e},l={class:"control-area"},s={style:{width:"84px",height:"84px","margin-top":"84px","margin-left":"0"}},u={key:0},d={key:0},m={key:1},f={class:"control-btn-area-2"},p={class:"control-btn-area-2-div",style:{width:"84px",height:"84px"}},b={class:"submit-span-div"},v={key:0},h={key:1},O={class:"control-btn-area-2-div",style:{marginTop:"36px",marginLeft:"12px"}},j={key:0,class:"switch-div"},y=c((function(){return Object(o["createElementVNode"])("span",{style:{fontSize:"20px"}},"答案",-1)})),g={key:1,class:"switch-div",style:{marginTop:"16px"}},x=c((function(){return Object(o["createElementVNode"])("span",{style:{fontSize:"20px"}},"解析",-1)})),w=Object(o["defineComponent"])({props:{isCanSubmit:Boolean,answer:String,correctAnswer:String,showAnswer:Boolean,showAnalyze:Boolean,showFeedBack:Boolean,showSubmit:Boolean,forground:{type:String,default:"#494B4D"}},emits:["switchChange","reset","submit"],setup:function(e,t){var n=t.emit,i=e,c=Object(o["ref"])(!1),w=Object(o["ref"])(!1),k=Object(o["ref"])(!1),I=Object(o["ref"])("提交"),E=Object(o["computed"])((function(){return i.isCanSubmit})),N=Object(o["computed"])((function(){return i.answer===i.correctAnswer})),V=function(e){"answer"===e?(c.value=!c.value,n("switchChange",e,c.value)):(w.value=!w.value,n("switchChange",e,w.value))},B=function(){E.value&&"提交"===I.value?(n("submit"),i.showFeedBack?k.value=!0:k.value=!1,I.value="重置"):"重置"===I.value&&(I.value="提交",k.value=!1,w.value=!1,c.value=!1,n("switchChange","answer",c.value),n("switchChange","analyze",w.value),n("reset"))};return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",l,[Object(o["createElementVNode"])("div",s,[k.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",u,[Object(o["unref"])(N)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",d,[Object(o["createVNode"])(a["a"],{width:84,height:84,name:"correct-answer.origin",class:"submit-ico"})])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",m,[Object(o["createVNode"])(a["a"],{width:84,height:84,name:"uncorrect-answer.origin",class:"submit-ico"})]))])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",f,[Object(o["createElementVNode"])("div",p,[e.showSubmit?(Object(o["openBlock"])(),Object(o["createElementBlock"])("button",{key:0,type:"button",class:"submit-btn",onClick:B},[Object(o["createElementVNode"])("div",b,[Object(o["createElementVNode"])("span",{style:Object(o["normalizeStyle"])({color:i.forground,fontSize:"20px"})},Object(o["toDisplayString"])(I.value),5)]),Object(o["unref"])(E)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",v,[Object(o["createVNode"])(a["a"],{width:84,height:84,name:"submit-btn.origin",class:"submit-ico"})])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",h,[Object(o["createVNode"])(a["a"],{width:84,height:84,name:"disable-submit-btn.origin",class:"submit-ico"})]))])):Object(o["createCommentVNode"])("",!0)]),Object(o["createElementVNode"])("div",O,[i.showAnswer?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",j,[Object(o["createVNode"])(Object(o["unref"])(r["ToggleButton"]),{width:60,height:30,sync:!0,color:{checked:"#3D91FF",unchecked:"#BFBFBF"},onChange:n[0]||(n[0]=function(e){return V("answer")}),value:c.value,name:"toggle"},null,8,["value"]),y])):Object(o["createCommentVNode"])("",!0),i.showAnalyze?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",g,[Object(o["createVNode"])(Object(o["unref"])(r["ToggleButton"]),{width:60,height:30,sync:!0,color:{checked:"#3D91FF",unchecked:"#BFBFBF"},onChange:n[1]||(n[1]=function(e){return V("analyze")}),value:w.value,name:"toggle"},null,8,["value"]),x])):Object(o["createCommentVNode"])("",!0)])])])}}}),k=(n("c635a"),n("d959")),I=n.n(k);const E=I()(w,[["__scopeId","data-v-f9092edc"]]);var N=E,V=n("6155"),B={class:"stem-text"},C=["src"],S={key:1},P=Object(o["defineComponent"])({props:{stemText:String,stemImg:String,showHr:Boolean,stemForground:{type:String,default:"#494B4D"},answerBackground:{type:String,default:"#494B4D"}},emits:["imgClick"],setup:function(e,t){var n=t.emit,i=e;Object(o["useCssVars"])((function(t){return{bca8bafe:e.stemForground,"46e204dc":e.answerBackground}}));var a=function(){n("imgClick")},r=Object(o["computed"])((function(){return""===i.stemImg?"":new V["a"](i.stemImg).uri})),c=Object(o["computed"])((function(){return""===r.value?void 0:"".concat(r.value)}));return function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("p",B,Object(o["toDisplayString"])(i.stemText),1),null!==i.stemImg?(Object(o["openBlock"])(),Object(o["createElementBlock"])("img",{key:0,class:"img-stemImg",src:Object(o["unref"])(c),onClick:a},null,8,C)):Object(o["createCommentVNode"])("",!0),i.showHr?(Object(o["openBlock"])(),Object(o["createElementBlock"])("hr",S)):Object(o["createCommentVNode"])("",!0)])}}});n("bf1a");const T=I()(P,[["__scopeId","data-v-19fe529e"]]);var D=T,M=function(e){return Object(o["pushScopeId"])("data-v-7c4b6a01"),e=e(),Object(o["popScopeId"])(),e},A={class:"answer-area"},z={key:0,id:"answer",class:"answer",style:{marginTop:"12px"}},F=M((function(){return Object(o["createElementVNode"])("span",null,"【答案】:",-1)})),_={key:1,id:"analyze",class:"answer",style:{marginTop:"8px"}},L=M((function(){return Object(o["createElementVNode"])("span",null,"【解析】:",-1)})),q=Object(o["defineComponent"])({props:{answer:String,analyze:String,answerVisable:Boolean,analyzeVisable:Boolean,answerBackground:{type:String,default:"#494B4D"},elementForground:{type:String,default:"#494B4D"}},setup:function(e){var t=e;return Object(o["useCssVars"])((function(t){return{"39cc3530":e.answerBackground,"1ad291d0":e.elementForground}})),function(n,i){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",A,[e.answerVisable?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",z,[F,Object(o["createElementVNode"])("p",null,Object(o["toDisplayString"])(t.answer),1)])):Object(o["createCommentVNode"])("",!0),e.analyzeVisable?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",_,[L,Object(o["createElementVNode"])("p",null,Object(o["toDisplayString"])(t.analyze),1)])):Object(o["createCommentVNode"])("",!0)])}}});n("a8e8");const W=I()(q,[["__scopeId","data-v-7c4b6a01"]]);var R=W,H=n("c82c"),Y=n.n(H),X=(n("0808"),n("289b")),Q=n("e51d"),U=n("7a54"),Z={class:"content"},G={class:"question-content"},J={id:"stem-img"},$={id:"option-area"},K=["id"],ee=["src","onClick"],te=["onUpdate:modelValue","onChange"],ne=["onClick"],oe={id:"answer-area"},ie=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e;Object(o["useCssVars"])((function(t){return{"7f43f436":e.elementInfo.elementForground}}));var n=Object(o["ref"])(!1),a=Object(o["ref"])(!1),r=Object(o["ref"])(),c=Object(o["computed"])((function(){return n.value||a.value})),l=Object(o["ref"])(!1),s=Object(o["computed"])((function(){return t.elementInfo.newConfig.optionItems})),u=function(){X["c"].get(X["a"].APP_OPTIONS).isHeadlessMode()&&Q["a"].emit(U["a"],t.elementInfo.id)},d=function(e){l.value=!0,r.value=e.optionNumber;var t,n=Object(i["a"])(s.value);try{for(n.s();!(t=n.n()).done;){var o=t.value;o!==e&&(o.isSelected=!1)}}catch(a){n.e(a)}finally{n.f()}},m=function(){var e,t=Object(i["a"])(s.value);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isSelected=!1}}catch(o){t.e(o)}finally{t.f()}r.value="",l.value=!1},f=function(e){e.isSelected=!0,d(e)},p=function(e,t){"answer"===e?n.value=t:a.value=t},b=function(){var e=document.querySelector("#stem-img");if(e){var t=new Y.a(e,{inline:!1,fullscreen:!0,title:!1,toolbar:!1,keyboard:!1,hide:function(){t.destroy()},hidden:function(){t.destroy()},show:function(){t.full()}});t.show()}},v=function(e){var t=document.querySelector("#option-".concat(e));if(t){var n=new Y.a(t,{inline:!1,fullscreen:!0,title:!1,toolbar:!1,keyboard:!1,hide:function(){n.destroy()},hidden:function(){n.destroy()},show:function(){n.full()}});n.show()}},h=function(e){var t=Object(o["computed"])((function(){return""===e?"":new V["a"](e).uri}));return Object(o["computed"])((function(){return""===t.value?void 0:"".concat(t.value)})).value};return function(t,i){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Z,[Object(o["createElementVNode"])("div",G,[Object(o["createElementVNode"])("div",J,[Object(o["createVNode"])(D,{"stem-forground":e.elementInfo.stemForground,"stem-text":e.elementInfo.newConfig.imgStem.StemText,"stem-img":e.elementInfo.newConfig.imgStem.StemImg,"answer-background":e.elementInfo.answerBackground,"show-hr":!0,onImgClick:b},null,8,["stem-forground","stem-text","stem-img","answer-background"])]),Object(o["createElementVNode"])("div",$,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(s),(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t,style:{marginBottom:"50px"}},[Object(o["createElementVNode"])("div",{id:"option-"+t},[""!==e.optionImg?(Object(o["openBlock"])(),Object(o["createElementBlock"])("img",{key:0,class:"option-stemImg",src:h(e.optionImg),onClick:function(e){return v(t)},onLoad:u},null,40,ee)):Object(o["createCommentVNode"])("",!0)],8,K),Object(o["createElementVNode"])("div",null,[Object(o["withDirectives"])(Object(o["createElementVNode"])("input",{hidden:"true",type:"checkbox","onUpdate:modelValue":function(t){return e.isSelected=t},id:"{{index}}",onChange:function(t){return d(e)}},null,40,te),[[o["vModelCheckbox"],e.isSelected]]),Object(o["createElementVNode"])("label",{onClick:function(t){return f(e)},class:Object(o["normalizeClass"])(["question-font","option-lable",{"selected-lable":e.isSelected}])},Object(o["toDisplayString"])(e.optionNumber+" . "+e.optionContent),11,ne)])])})),128))]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",oe,[Object(o["createVNode"])(R,{analyze:e.elementInfo.newConfig.Analyze,answer:e.elementInfo.newConfig.Answer,"analyze-visable":a.value,"answer-visable":n.value,"answer-background":e.elementInfo.answerBackground,"element-forground":e.elementInfo.elementForground},null,8,["analyze","answer","analyze-visable","answer-visable","answer-background","element-forground"])],512),[[o["vShow"],Object(o["unref"])(c)]])]),Object(o["createVNode"])(N,{onSwitchChange:p,onReset:m,"is-can-submit":l.value,"correct-answer":e.elementInfo.newConfig.Answer,answer:r.value,"show-analyze":!0,"show-answer":!0,"show-feed-back":!0,"show-submit":!0},null,8,["is-can-submit","correct-answer","answer"])])}}});n("e625");const ae=I()(ie,[["__scopeId","data-v-4785c934"]]);var re=ae,ce=(n("4de4"),n("d3b7"),n("4e82"),n("fb6a"),n("159b"),n("99af"),n("c740"),n("caad"),n("0613")),le=n("6da4"),se={class:"content"},ue={class:"question-content"},de={class:"stem",id:"stem-img"},me={id:"match-area"},fe={class:"list-div text-div"},pe={style:{width:"280px",height:"56px",outline:"none"}},be={key:0},ve={key:1},he={key:2},Oe={class:"text"},je={style:{width:"280px",height:"56px"}},ye=["id"],ge={key:0},xe={key:1},we={key:2},ke={key:0,style:{width:"40px",height:"40px"}},Ie={key:0},Ee={key:1},Ne={class:"list-div match-text-div"},Ve=["onPointerdownCapture","onPointermoveCapture","onPointerupCapture"],Be={key:0},Ce={key:1},Se={key:2},Pe={class:"text"},Te={id:"answer-area"},De=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(o["ref"])(!1),i=Object(o["ref"])(!1),r=Object(o["ref"])(!1),c=Object(o["ref"])(),l=Object(ce["h"])(),s=Object(o["ref"])(-1),u=Object(o["computed"])((function(){return n.value||i.value})),d=Object(o["computed"])((function(){return t.elementInfo.newConfig.matchItems})),m=Object(o["computed"])((function(){return d.value.filter((function(e){return!1===e.IsInvalid}))})),f=Object(o["computed"])((function(){return d.value.slice().sort((function(){return Math.random()-.5}))})),p=Object(o["computed"])((function(){return m.value.filter((function(e){return!1===e.IsMatched})).length<1})),b=Object(o["computed"])((function(){var e="";return m.value.forEach((function(t){return e+="".concat(t.Text,"——").concat(t.MatchText,"\n")})),e})),v=["them1","them2","them9"],h=["them3","them5","them7"],O=[],j=[],y={x:0,y:0,top:0,left:0,isMoving:!1};console.log(f);var g=function(e,t){"answer"===e?n.value=t:i.value=t},x=function(e,t){if(void 0!==t.target){var n=t.target;null===n||void 0===n||n.setPointerCapture(t.pointerId),y.x=t.pageX,y.y=t.pageY,y.isMoving=!0,y.top=e.top,y.left=e.left}},w=function(e,t){if(y.isMoving){s.value=-1;var n=(t.pageX-y.x)/l.currentScale,o=(t.pageY-y.y)/l.currentScale,i=y.top+o,a=y.left+n;e.left=a,e.top=i,I(t);var r=m.value.findIndex((function(t){return t.IsMatchedText===e.MatchText}));r>=0&&(m.value[r].IsMatched=!1,m.value[r].IsMatchedText=le["g"],console.log(r))}},k=function(e,t){var n,o=t.target;do{n=null===o||void 0===o?void 0:o.parentElement,o=n}while("BUTTON"!==(null===n||void 0===n?void 0:n.nodeName));if(-1!==s.value&&null!==n&&!1===m.value[s.value].IsMatched&&void 0!==n){m.value[s.value].IsMatched=!0;var i=j[s.value].offsetTop-n.offsetTop,a=j[s.value].offsetLeft-n.offsetLeft;e.top=e.top+i,e.left=e.left+a,m.value[s.value].IsMatchedText=e.MatchText,e.MatchText===m.value[s.value].MatchText?m.value[s.value].IsSubmitTrue=!0:m.value[s.value].IsSubmitTrue=!1}s.value=-1,y.isMoving=!1,y.left=0,y.top=0,y.x=0,y.y=0;var r=t.target;null===r||void 0===r||r.releasePointerCapture(t.pointerId)},I=function(e){var t,n,o,i,a,r=e.target;if(a="SPAN"===r.nodeName?null===(t=r.parentElement)||void 0===t?void 0:t.parentElement:null===(i=null===(o=null===(n=r.parentElement)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.parentElement,null!==a&&void 0!==a){var c,l=[a.offsetWidth,a.offsetHeight,a.offsetLeft+a.offsetWidth/2,a.offsetTop+a.offsetHeight/2];if(-1!==O.length)for(c=0;c.9&&(n.visible=!1)),"Y"===t.axis&&(O.setFromEuler(P.set(0,0,Math.PI/2)),n.quaternion.copy(i).multiply(O),Math.abs(T.copy(q).applyQuaternion(i).dot(t.eye))>.9&&(n.visible=!1)),"Z"===t.axis&&(O.setFromEuler(P.set(0,Math.PI/2,0)),n.quaternion.copy(i).multiply(O),Math.abs(T.copy(W).applyQuaternion(i).dot(t.eye))>.9&&(n.visible=!1)),"XYZE"===t.axis&&(O.setFromEuler(P.set(0,Math.PI/2,0)),T.copy(t.rotationAxis),n.quaternion.setFromRotationMatrix(M.lookAt(D,T,q)),n.quaternion.multiply(O),n.visible=t.dragging),"E"===t.axis&&(n.visible=!1)):"START"===n.name?(n.position.copy(t.worldPositionStart),n.visible=t.dragging):"END"===n.name?(n.position.copy(t.worldPosition),n.visible=t.dragging):"DELTA"===n.name?(n.position.copy(t.worldPositionStart),n.quaternion.copy(t.worldQuaternionStart),v.set(1e-10,1e-10,1e-10).add(t.worldPositionStart).sub(t.worldPosition).multiplyScalar(-1),v.applyQuaternion(t.worldQuaternionStart.clone().invert()),n.scale.copy(v),n.visible=t.dragging):(n.quaternion.copy(i),t.dragging?n.position.copy(t.worldPositionStart):n.position.copy(t.worldPosition),t.axis&&(n.visible=-1!==t.axis.search(n.name))),"continue";if(n.quaternion.copy(i),"translate"===t.mode||"scale"===t.mode){var r=.99,c=.2;"X"===n.name&&Math.abs(T.copy(L).applyQuaternion(i).dot(t.eye))>r&&(n.scale.set(1e-10,1e-10,1e-10),n.visible=!1),"Y"===n.name&&Math.abs(T.copy(q).applyQuaternion(i).dot(t.eye))>r&&(n.scale.set(1e-10,1e-10,1e-10),n.visible=!1),"Z"===n.name&&Math.abs(T.copy(W).applyQuaternion(i).dot(t.eye))>r&&(n.scale.set(1e-10,1e-10,1e-10),n.visible=!1),"XY"===n.name&&Math.abs(T.copy(W).applyQuaternion(i).dot(t.eye))r&&(n.scale.set(1e-10,1e-10,1e-10),n.visible=!1)}else"rotate"===t.mode&&(A.copy(i),T.copy(t.eye).applyQuaternion(O.copy(i).invert()),-1!==n.name.search("E")&&n.quaternion.setFromRotationMatrix(M.lookAt(t.eye,D,q)),"X"===n.name&&(O.setFromAxisAngle(L,Math.atan2(-T.y,T.z)),O.multiplyQuaternions(A,O),n.quaternion.copy(O)),"Y"===n.name&&(O.setFromAxisAngle(q,Math.atan2(T.x,T.z)),O.multiplyQuaternions(A,O),n.quaternion.copy(O)),"Z"===n.name&&(O.setFromAxisAngle(W,Math.atan2(T.y,T.x)),O.multiplyQuaternions(A,O),n.quaternion.copy(O)));n.visible=n.visible&&(-1===n.name.indexOf("X")||t.showX),n.visible=n.visible&&(-1===n.name.indexOf("Y")||t.showY),n.visible=n.visible&&(-1===n.name.indexOf("Z")||t.showZ),n.visible=n.visible&&(-1===n.name.indexOf("E")||t.showX&&t.showY&&t.showZ),n.material._color=n.material._color||n.material.color.clone(),n.material._opacity=n.material._opacity||n.material.opacity,n.material.color.copy(n.material._color),n.material.opacity=n.material._opacity,t.enabled&&t.axis&&(n.name===t.axis||t.axis.split("").some((function(e){return n.name===e})))&&(n.material.opacity=1)},c=0;c6&&(t=1),K(new p["e"](100*t,100*t,100*t),e)):"cylinder"===e.geometryType?(n&&n>6&&(t=1),K(new p["k"](100*t,100*t,100*t,60,1),e)):"cone"===e.geometryType?(t=n&&n>6?1:4,K(new p["j"](100*t,100*t,60),e)):"triangularPyramid"===e.geometryType?(t=n&&n>6?1:4,K(new p["j"](100*t,100*t,3),e)):void 0},te=n("0613"),ne=n("be92"),oe=n("1107"),ie=Object(r["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(r["computed"])((function(){return"scale(".concat(t.elementInfo.width/t.elementInfo.originWidth,", ").concat(t.elementInfo.height/t.elementInfo.originHeight,")")})),i=Object(r["ref"])(),c=Object(r["ref"])(t.elementInfo.isRotate),l=Object(r["ref"])(t.elementInfo.isScale),s=Object(r["ref"])(t.elementInfo.isFill),u=Object(r["ref"])(t.elementInfo.fillColor),d=(Object(r["ref"])(t.elementInfo.defaultColorIndex),function(){c.value=!1,l.value=!1,s.value=!1,f.remove(D)}),m=Object(te["c"])();m.$subscribe((function(){var e=Object(ne["c"])(Object(te["c"])()),n=e.activeElementIdList;n.value.every((function(e){return e!==t.elementInfo.id}))&&d()}),{detached:!0});var f=new p["T"],b=new p["T"],v=t.elementInfo.width/t.elementInfo.height,h=new p["J"](-600*v,600*v,600,-600,.01,3e4),O=new p["J"](-600*v,600*v,600,-600,.01,3e4);h.position.set(3e3,2e3,5e3),h.lookAt(-3,-2,-5);var j=new p["l"](6579300);j.position.set(30,20,50),j.lookAt(-3,-2,-5);var y=new p["Y"](16777215,2);y.position.set(30,20,50),y.lookAt(-3,-2,-5);var g=new p["a"](16777215,.8);f.add(g),f.add(j);var x=new p["gb"]({antialias:!0});x.setSize(2*t.elementInfo.width,2*t.elementInfo.height),x.setClearColor(16777215,0),x.autoClear=!1;for(var w=function(){b.position.set(f.position.x,f.position.y,f.position.z),b.rotation.set(f.rotation.x,f.rotation.y,f.rotation.z),O.position.set(h.position.x,h.position.y,h.position.z),O.rotation.set(h.rotation.x,h.rotation.y,h.rotation.z),x.clear(),x.render(b,O),x.clearDepth(),x.render(f,h)},k=[],E=[],N=Object(ne["c"])(m),V=N.activeElementList,B=function(){var e,n=Object(o["a"])(V.value);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.id===t.elementInfo.id){for(var a=i,r=0;r1?k[1]:k[0]:"triangularPyramid"===t.elementInfo.geometryType?1===e?k[0]:0===e?k[1]:k[e]:k[e]},_=function(e,n){var o=new p["i"](n);if("cube"===t.elementInfo.geometryType)switch(e){case 0:k[3]=o;break;case 1:k[2]=o;break;case 2:k[0]=o;break;case 3:k[1]=o;break;case 4:k[4]=o;break;case 5:k[5]=o;break;default:k[0]=o}if("cylinder"===t.elementInfo.geometryType)switch(e){case 0:k[2]=o;break;case 1:k[0]=o;break;case 2:k[1]=o;break;default:k[0]=o}"cone"===t.elementInfo.geometryType&&(e>1?k[1]=o:k[0]=o),"triangularPyramid"===t.elementInfo.geometryType&&(1===e?k[0]=o:0===e?k[1]=o:k[e]=o),B()},L=-1,q=!1;document.addEventListener("pointermove",(function(e){z(e),M.setFromCamera(A,h);var t=M.intersectObjects(f.children,!1);if(s.value&&t.length>0){if(q=!0,null!==t[0].face&&void 0!==t[0].face){var n=t[0].face.materialIndex;T.mesh.material[n].color.set(new p["i"](u.value)),T.mesh.material[n].opacity=1,L!==n&&L>=0&&(T.mesh.material[L].color.set(F(L)),T.mesh.material[L].opacity=1),L=n}}else q=!1,L>=0&&(T.mesh.material[L].color.set(F(L)),T.mesh.material[L].opacity=1)}));var W=function(e,t){T.mesh.material[e].color.set(t),_(e,t)},R=function(e){s.value&&u.value&&q&&(W(L,u.value),e.preventDefault()),"mouse"===e.pointerType&&2===e.button&&(c.value=!1,l.value=!1,s.value=!1,f.remove(D),e.preventDefault())},H=function(e){B(),e.preventDefault()},Y=function e(){requestAnimationFrame(e),b.position.set(f.position.x,f.position.y,f.position.z),b.rotation.set(f.rotation.x,f.rotation.y,f.rotation.z),O.position.set(h.position.x,h.position.y,h.position.z),O.rotation.set(h.rotation.x,h.rotation.y,h.rotation.z),void 0!==T.outlineMesh&&(T.outlineMesh.position.set(T.mesh.position.x,T.mesh.position.y,T.mesh.position.z),T.outlineMesh.rotation.set(T.mesh.rotation.x,T.mesh.rotation.y,T.mesh.rotation.z)),w()},X=function(e,t){var n=function t(n){var o=n.children.filter((function(e){return e}));o.forEach((function(e){e.children.length?t(e):"Mesh"===e.type&&(e.geometry.dispose(),e.material.dispose(),e.clear&&e.clear())})),n.clear&&n.clear(e),o=null};try{n(t)}catch(o){console.log("clearScene Error: ",o)}try{e.renderLists.dispose(),e.dispose(),e.forceContextLoss(),e.domElement=null,e.content=null,e=null}catch(o){console.log("clearRenderer Error: ",o)}window.requestAnimationId&&cancelAnimationFrame(window.requestAnimationId),p["g"].clear()};return Object(r["watch"])((function(){return t.elementInfo.isRotate}),(function(e){console.log("isRotate.value",c.value),c.value=e,l.value=!1,s.value=!1,c.value&&(D.setMode("rotate"),f.add(D))})),Object(r["watch"])((function(){return t.elementInfo.isScale}),(function(e){l.value=e,c.value=!1,s.value=!1,l.value&&(D.setMode("scale"),f.add(D))})),Object(r["watch"])((function(){return t.elementInfo.isFill}),(function(e){s.value=e,l.value=!1,c.value=!1})),Object(r["watch"])((function(){return t.elementInfo.fillColor}),(function(e){u.value=e})),Object(r["watch"])((function(){return t.elementInfo.defaultColorIndex}),(function(e){"cube"===t.elementInfo.geometryType&&a()(T.mesh.material)&&(0===e&&(W(3,"#FFB7B7"),W(2,"#FFE2E2"),W(0,"#D64545"),W(1,"#EFB5B5"),W(4,"#F37474"),W(5,"#FAC7C7")),1===e&&(W(3,"#FFDEB1"),W(2,"#FFF2E0"),W(0,"#BD720A"),W(1,"#E5C79D"),W(4,"#E9AE5D"),W(5,"#F6DFBE")),2===e&&(W(3,"#7DE8FB"),W(2,"#CBF6FD"),W(0,"#00687B"),W(1,"#99C3CA"),W(4,"#00B3D3"),W(5,"#99E1ED")),3===e&&(W(3,"#B7FFEE"),W(2,"#E2FFF8"),W(0,"#13AA86"),W(1,"#A1DDCF"),W(4,"#78E1C8"),W(5,"#C9F3E9")),4===e&&(W(3,"#E890FF"),W(2,"#F6D3FF"),W(0,"#C553C5"),W(1,"#E8BAE8"),W(4,"#B78DFF"),W(5,"#E2D1FF")),5===e&&(W(3,"#B4B7FF"),W(2,"#E1E2FF"),W(0,"#3137A0"),W(1,"#ADAFD9"),W(4,"#4C52CD"),W(5,"#B7BAEB"))),"cylinder"===t.elementInfo.geometryType&&a()(T.mesh.material)&&(0===e&&(W(1,"#FFB7B7"),W(2,"#FFE2E2"),W(0,"#F37474")),1===e&&(W(1,"#FFDEB1"),W(2,"#FFF2E0"),W(0,"#E9AE5D")),2===e&&(W(1,"#7DE8FB"),W(2,"#CBF6FD"),W(0,"#00B3D3")),3===e&&(W(1,"#B7FFEE"),W(2,"#E2FFF8"),W(0,"#78E1C8")),4===e&&(W(1,"#E890FF"),W(2,"#F6D3FF"),W(0,"#B78DFF")),5===e&&(W(1,"#B4B7FF"),W(2,"#E1E2FF"),W(0,"#4C52CD"))),"cone"===t.elementInfo.geometryType&&a()(T.mesh.material)&&(0===e&&(W(0,"#F37474"),W(2,"#FAC7C7")),1===e&&(W(0,"#E9AE5D"),W(2,"#F6DFBE")),2===e&&(W(0,"#00B3D3"),W(2,"#99E1ED")),3===e&&(W(0,"#78E1C8"),W(2,"#C9F3E9")),4===e&&(W(0,"#B78DFF"),W(2,"#E2D1FF")),5===e&&(W(0,"#4C52CD"),W(2,"#B7BAEB"))),"triangularPyramid"===t.elementInfo.geometryType&&a()(T.mesh.material)&&(0===e&&(W(1,"#FFE2E2"),W(0,"#FFB7B7"),W(2,"#D64545"),W(3,"#D64545")),1===e&&(W(1,"#FFF2E0"),W(0,"#E9AE5D"),W(2,"#BD720A"),W(3,"#BD720A")),2===e&&(W(1,"#CBF6FD"),W(0,"#00B3D3"),W(2,"#00687B"),W(3,"#00687B")),3===e&&(W(1,"#E2FFF8"),W(0,"#78E1C8"),W(2,"#13AA86"),W(3,"#13AA86")),4===e&&(W(1,"#F6D3FF"),W(0,"#B78DFF"),W(2,"#C553C5"),W(3,"#C553C5")),5===e&&(W(1,"#E1E2FF"),W(0,"#4C52CD"),W(2,"#3137A0"),W(3,"#3137A0")))})),Object(r["onMounted"])((function(){void 0!==i.value&&null!==i.value&&0===i.value.childElementCount&&i.value.appendChild(x.domElement),Y()})),Object(r["onUnmounted"])((function(){X(x,f),X(x,b)})),function(t,o){var a;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["base-element",null===(a=e.elementInfo.animationClass)||void 0===a?void 0:a.class]),onAnimationend:o[2]||(o[2]=function(){var t,n,o;return(null===(n=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationEnd)&&(null===(o=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationEnd.apply(t,arguments))}),onAnimationstart:o[3]||(o[3]=function(){var t,n,o;return(null===(n=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationStart)&&(null===(o=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationStart.apply(t,arguments))}),onAnimationiteration:o[4]||(o[4]=function(){var t,n,o;return(null===(n=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationIteration)&&(null===(o=Object(r["unref"])(oe["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationIteration.apply(t,arguments))}),onPointerdown:R,style:Object(r["normalizeStyle"])([{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"},e.elementInfo.animationClass.style])},[Object(r["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(r["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(r["createElementVNode"])("div",{class:"element-content",style:Object(r["normalizeStyle"])({transform:"scale(0.5, 0.5)",transformOrigin:"top left"})},[Object(r["createElementVNode"])("div",{class:"wrapper",style:Object(r["normalizeStyle"])({"pointer-events":c.value||l.value?"inherit":"none",transform:"".concat(Object(r["unref"])(n)),transformOrigin:"top left"})},[Object(r["createElementVNode"])("div",{ref_key:"threeContainer",ref:i,onTouchstart:o[0]||(o[0]=Object(r["withModifiers"])((function(){}),["stop","prevent"])),onMousedown:o[1]||(o[1]=Object(r["withModifiers"])((function(){}),["stop"])),onPointerup:H},null,544)],4)],4)],4)],38)}}}),ae=(n("ade4"),n("d959")),re=n.n(ae);const ce=re()(ie,[["__scopeId","data-v-3ef806e7"]]);t["a"]=ce},"9f68":function(e,t,n){},a287:function(e,t,n){},a417:function(e,t,n){"use strict";n("99af");var o=n("7a23"),i=n("d9f3"),a=n("0613"),r=n("a7fa"),c=n("b85c"),l=(n("ac1f"),n("5319"),n("5b81"),n("1276"),n("f3eb")),s=n("741b"),u=function(e){return Object(o["pushScopeId"])("data-v-50cbed7a"),e=e(),Object(o["popScopeId"])(),e},d=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),m=u((function(){return Object(o["createElementVNode"])("div",{style:{height:"12px"}},null,-1)})),f={style:{display:"flex",alignItems:"center"}},p=["title"],b=["onClick"],v={style:{display:"flex",alignItems:"center"}},h={class:"helpBtn",style:{fill:"#494B4D",marginTop:"16px",marginRight:"4px"}},O=["title"],j={style:{display:"flex",height:"80px"}},y=u((function(){return Object(o["createElementVNode"])("svg",{class:"svg",style:{width:"24px",height:"24px",padding:"6px 6px 2px 2px"}},[Object(o["createElementVNode"])("path",{d:"M12,10.59L7.41,6 12,1.41 12,0 10.59,0 6,4.59 1.41,0 0,0 0,1.41 4.58,6 0,10.59 0,12 1.41,12 6,7.41 10.59,12 12,12 12,10.59z"})],-1)})),g=u((function(){return Object(o["createElementVNode"])("span",{style:{marginLeft:"1px"}},"关闭",-1)})),x=[y,g],w=u((function(){return Object(o["createElementVNode"])("label",{for:"checkbox1",style:{fontSize:"16px",marginTop:"8px",marginLeft:"8px"}},"音标",-1)})),k=Object(o["createTextVNode"])(),I=u((function(){return Object(o["createElementVNode"])("br",null,null,-1)})),E={style:{display:"flex",marginRight:"40px","justify-content":"flex-end",alignItems:"start"}},N=u((function(){return Object(o["createElementVNode"])("label",{for:"checkbox2",style:{fontSize:"16px",marginTop:"8px",marginLeft:"8px"}},"释义",-1)})),V=Object(o["createTextVNode"])(),B=u((function(){return Object(o["createElementVNode"])("br",null,null,-1)})),C={name:"EnglishAnswer"},S=Object(o["defineComponent"])(Object.assign(Object.assign({},C),{props:{elementInfo:{type:Object,required:!0}},emits:["closeWindow"],setup:function(e,t){var n=t.emit,a=e,r=Object(o["ref"])(!0),u=Object(o["ref"])(!0),y=Object(o["ref"])(document.body.clientWidth),g=Object(o["ref"])(document.body.clientHeight),C=Object(o["ref"])(1),S=Object(o["ref"])(1),P=Object(o["ref"])(document.body.clientWidth>900?1:.5),T=Object(o["ref"])(),D=Object(o["ref"])(),M=function(){n("closeWindow")};window.onresize=function(){y.value=document.body.clientWidth,g.value=document.body.clientHeight};var A=!1,z=function(e){try{void 0!==T.value&&null!==T.value&&(T.value.pause(),A?(D.value.src=e.ukUrl,A=!1):(D.value.src=e.usUrl,A=!0),T.value.load(),T.value.play())}catch(t){console.log(t)}},F=function(e){var t,n=new Array,o=e.replaceAll("\r\n","\n"),i=o.split("\n"),a=Object(c["a"])(i);try{for(a.s();!(t=a.n()).done;){var r=t.value;n.push(r)}}catch(l){a.e(l)}finally{a.f()}return n},_=Object(o["computed"])((function(){var e,t=new Array,n=1,o=Object(c["a"])(a.elementInfo.wordInfos);try{for(o.s();!(e=o.n()).done;){var i=e.value;t.push({isOpenPopup:!1,transLationList:F(i.translation),firstTranslation:i.translation.replaceAll("\r\n","\n").split("\n")[0],index:n,word:i.word,translation:i.translation,phonetic_us:i.phonetic_us,phonetic_gb:i.phonetic_gb,ukUrl:i.maleAudioUri,usUrl:i.femaleAudioUri}),n+=1}}catch(r){o.e(r)}finally{o.f()}return t}));return function(e,t){var n=Object(o["resolveDirective"])("popover");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"answerPanel",style:Object(o["normalizeStyle"])({width:y.value+"px",height:g.value+"px",transform:"scale(".concat(C.value,",").concat(S.value,")"),transformOrigin:"0 0"})},[Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:T,crossOrigin:"anonymous",volume:50,autoplay:""},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:D,type:"audio/mpeg"},null,512),d],512),Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({width:"calc(100% - 64px)",height:"calc(100% - 144px)",background:"#F8FDFF",border:"0 solid rgba(0, 0, 0, 0.05)","box-shadow":"0 0 30px 0 rgb(0 0 0 / 30%)","border-radius":"24px",margin:"32px 32px 32px 32px"})},[m,Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({overflow:"auto",marginTop:"24px",marginBottom:"24px",height:"calc(100% - 72px)",display:"flex",flexWrap:"wrap",alignContent:"flex-start"})},[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(Object(o["unref"])(_),(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:t,style:Object(o["normalizeStyle"])({display:"flex",marginLeft:60*P.value+"px",marginTop:40*P.value+"px",marginRight:60*P.value+"px",marginBottom:40*P.value+"px"})},[Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({color:"#494B4D",fontSize:24*P.value+"px",marginTop:48*P.value+"px",width:40*P.value+"px"})},Object(o["toDisplayString"])(e.index),5),Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",f,[Object(o["createElementVNode"])("div",{class:"tooltip",title:e.word,style:Object(o["normalizeStyle"])({color:"#0B0C0D",fontSize:72*P.value+"px",marginTop:24*P.value+"px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"visible",maxWidth:800*P.value+"px"})},Object(o["toDisplayString"])(e.word),13,p),Object(o["createElementVNode"])("div",{onClick:function(t){return z(e)},style:Object(o["normalizeStyle"])({fill:"#3d91ff",marginTop:32*P.value+"px",marginLeft:"8px"})},[Object(o["createVNode"])(l["a"],{width:32,height:32,id:"play-list-audio",playCount:1,svgName:"audioBlue.origin"})],12,b)]),Object(o["createElementVNode"])("div",v,[Object(o["createVNode"])(Object(o["unref"])(s["Popover"]),{name:"transLationListPopup"+t,transition:"fade"},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("div",null,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(e.transLationList,(function(e,t){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{style:{fontSize:"18px",marginTop:"8px",marginBottom:"8px"},key:t},Object(o["toDisplayString"])(e),1)})),128))])]})),_:2},1032,["name"]),Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",h,[Object(o["createVNode"])(i["a"],{name:"help.origin",width:32,height:32,class:"icon"})])),[[n,{name:"transLationListPopup".concat(t),position:"bottom"}]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{style:{color:"#494B4D",whiteSpace:"nowrap",fontSize:"16px",marginTop:"24px"}},Object(o["toDisplayString"])(e.phonetic_us),513),[[o["vShow"],r.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"tooltip",title:e.firstTranslation,style:Object(o["normalizeStyle"])({color:"#494B4D",fontSize:"24px",marginTop:"24px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:500*P.value+"px",marginLeft:"12px"})},Object(o["toDisplayString"])(e.firstTranslation),13,O),[[o["vShow"],u.value]])])])],4)})),128))],4)],4),Object(o["createElementVNode"])("div",j,[Object(o["createElementVNode"])("div",{class:"closebutton",onClick:M},x),Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({flex:"8",display:"flex","justify-content":"flex-end",marginRight:40*P.value+"px",alignItems:"start"})},[Object(o["createVNode"])(Object(o["unref"])(s["ToggleButton"]),{width:64,height:32,onChange:t[0]||(t[0]=function(e){return r.value=!r.value}),value:r.value,name:"toggle"},null,8,["value"]),w,k,I],4),Object(o["createElementVNode"])("div",E,[Object(o["createVNode"])(Object(o["unref"])(s["ToggleButton"]),{width:64,height:32,onChange:t[1]||(t[1]=function(e){return u.value=!u.value}),value:u.value,name:"toggle2"},null,8,["value"]),N,V,B])])],4)}}})),P=(n("eeae"),n("d959")),T=n.n(P);const D=T()(S,[["__scopeId","data-v-50cbed7a"]]);var M=D,A=function(e){return Object(o["pushScopeId"])("data-v-6ce24830"),e=e(),Object(o["popScopeId"])(),e},z=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),F=A((function(){return Object(o["createElementVNode"])("div",{style:{height:"12px"}},null,-1)})),_={style:{height:"100%"}},L=["onClick"],q={style:{display:"flex",height:"80px"}},W=A((function(){return Object(o["createElementVNode"])("svg",{class:"svg",style:{width:"24px",height:"24px",padding:"6px 6px 2px 2px"}},[Object(o["createElementVNode"])("path",{d:"M12,10.59L7.41,6 12,1.41 12,0 10.59,0 6,4.59 1.41,0 0,0 0,1.41 4.58,6 0,10.59 0,12 1.41,12 6,7.41 10.59,12 12,12 12,10.59z"})],-1)})),R=A((function(){return Object(o["createElementVNode"])("span",{style:{marginLeft:"1px"}},"关闭",-1)})),H=[W,R],Y={style:{flex:"1",display:"flex",marginRight:"40px","justify-content":"flex-end",alignItems:"start"}},X=A((function(){return Object(o["createElementVNode"])("label",{for:"checkbox2",style:{fontSize:"16px",marginTop:"8px",marginLeft:"8px"}},"拼音",-1)})),Q=Object(o["createTextVNode"])(),U=A((function(){return Object(o["createElementVNode"])("br",null,null,-1)})),Z={name:"ChineseAnswer"},G=Object(o["defineComponent"])(Object.assign(Object.assign({},Z),{props:{elementInfo:{type:Object,required:!0}},emits:["closeWindow"],setup:function(e,t){var n=t.emit,i=e,a=Object(o["ref"])(!0),r=Object(o["ref"])(document.body.clientWidth),u=Object(o["ref"])(document.body.clientHeight),d=Object(o["ref"])(1),m=Object(o["ref"])(1),f=Object(o["ref"])(document.body.clientWidth>900?1:.5),p=Object(o["ref"])(),b=Object(o["ref"])(),v=function(){n("closeWindow")};window.onresize=function(){r.value=document.body.clientWidth,u.value=document.body.clientHeight};var h=function(e){try{void 0!==p.value&&null!==p.value&&(p.value.pause(),b.value.src=e.audioUrl,p.value.load(),p.value.play())}catch(t){console.log(t)}},O=function(e,t){for(var n=new Array,o=new Array,i=0;i0;t--){var n=Math.floor(Math.random()*t),o=e[n];e[n]=e[t],e[t]=o}return e},z=function(){var e=l.elementInfo.wordInfos;return"Random"===l.elementInfo.settingInfo.playOrder&&(e=A(e)),e},F=z(),_=function(e){try{void 0!==p.value&&null!==p.value&&null!==m.value&&void 0!==m.value&&m.value.createVisual(e)}catch(t){console.log(t)}},L=function(){clearInterval(te),te=0},q=function(){clearInterval(ee),ee=0},W=function(){0===te&&(te=setInterval(K,50))},R=function(){0===ee&&(ee=setInterval($,50))},H=function(){L(),q(),p.value.pause(),C=!1,w=3e3,E=0,N=0,V=0,O.value=N>0,j.value=null!==F&&N=F.length?F.length:N+1,x.value=0,R()},Y=function(){try{if(N=F.length?F.length:N+1,x.value=(N*(l.elementInfo.settingInfo.readCount-1)*k+3e3+1e3*l.elementInfo.settingInfo.writeTime*N)/S*100,E=0,V=0,M=D(),Y()},G=function(){N>0&&(N-=1,Z()),O.value=N>0,j.value=N0?(q(),w=-1,x.value=3e3/S*100,Y()):(N0,j.value=N0,j.value=N=F.length&&(c("ended"),H()),E+=50,E>=M&&(M=D(),E=0,V>=l.elementInfo.settingInfo.readCount&&(L(),V=0,N+=1,O.value=N>0,j.value=N=F.length?F.length:N+1),Y()),x.value+=50/S*100},ee=window.setInterval($,50),te=0;return n({reSet:H}),function(t,n){var a=Object(o["resolveDirective"])("popover");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("div",Ne,[Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:p,crossOrigin:"anonymous",volume:h.value,autoplay:"",onEnded:T},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:b,src:v,type:"audio/mpeg"},null,512),Be],40,Ve),Object(o["createVNode"])(Ie,{audio:p.value,audioSource:b.value,ref_key:"audioVisualizationVisual",ref:m},null,8,["audio","audioSource"])]),Object(o["createElementVNode"])("div",Ce,[Se,Object(o["createElementVNode"])("div",Pe,[Object(o["createElementVNode"])("div",Te,[Object(o["createElementVNode"])("span",De,Object(o["toDisplayString"])(g.value),1),Me,Object(o["createElementVNode"])("span",Ae,Object(o["toDisplayString"])(e.elementInfo.wordInfos.length),1)])])]),Object(o["createElementVNode"])("div",ze,[Object(o["createElementVNode"])("div",Fe,[Object(o["createElementVNode"])("div",{class:"progressChild",style:Object(o["normalizeStyle"])({width:"".concat(x.value,"%")})},null,4)])]),Object(o["createElementVNode"])("div",_e,[Object(o["createVNode"])(Object(o["unref"])(s["Popover"]),{name:"bbb",width:40,transition:"fade"},{default:Object(o["withCtx"])((function(){return[Object(o["createElementVNode"])("div",Le,[Object(o["createVNode"])(r["a"],{onChange:P,modelValue:h.value,vertical:!0},null,8,["modelValue"])])]})),_:1}),Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"toolBtn",style:Object(o["normalizeStyle"])({pointerEvents:Object(o["unref"])(d)?"none":"auto"})},[Object(o["createVNode"])(i["a"],{name:"audio.origin",width:32,height:32,class:"icon"})],4)),[[a,void 0,"bbb",{top:!0}]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"toolBtn",onClick:G},[Object(o["createVNode"])(i["a"],{name:"perv-page",width:32,height:32,class:"icon"})],512),[[o["vShow"],!0===O.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",qe,[Object(o["createVNode"])(i["a"],{name:"perv-page",width:32,height:32,class:"icon"})],512),[[o["vShow"],!1===O.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"ellipseBtn",onClick:Q},[Object(o["createVNode"])(i["a"],{name:"pause",width:32,height:32,class:"icon"})],512),[[o["vShow"],"Playing"===f.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"ellipseBtn",onClick:U},[Object(o["createVNode"])(i["a"],{name:"sanjiao",width:32,height:32,class:"icon"})],512),[[o["vShow"],"Pause"===f.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"toolBtn",onClick:J},[Object(o["createVNode"])(i["a"],{name:"next-page",width:32,height:32,class:"icon"})],512),[[o["vShow"],!0===j.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",We,[Object(o["createVNode"])(i["a"],{name:"next-page",width:32,height:32,class:"icon"})],512),[[o["vShow"],!1===j.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"toolBtn",onClick:X},[Object(o["createVNode"])(i["a"],{name:"fullScreen",width:32,height:32,class:"icon"})],512),[[o["vShow"],!y.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",{class:"toolBtn",onClick:X},[Object(o["createVNode"])(i["a"],{name:"exitFullScreen",width:32,height:32,class:"icon"})],512),[[o["vShow"],y.value]])])])}}}));n("a630a");const Ye=T()(He,[["__scopeId","data-v-e1dd5c76"]]);var Xe=Ye,Qe=function(e){return Object(o["pushScopeId"])("data-v-15982b7a"),e=e(),Object(o["popScopeId"])(),e},Ue=["onPointerdown","onPointerup"],Ze={style:{marginLeft:"24px",display:"flex",alignItems:"center",height:"100%"}},Ge=Qe((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"12px",marginLeft:"4px"}},"听写",-1)})),Je=Qe((function(){return Object(o["createElementVNode"])("svg",{class:"svg",style:{width:"24px",height:"24px",padding:"6px"}},[Object(o["createElementVNode"])("path",{d:"M12,10.59L7.41,6 12,1.41 12,0 10.59,0 6,4.59 1.41,0 0,0 0,1.41 4.58,6 0,10.59 0,12 1.41,12 6,7.41 10.59,12 12,12 12,10.59z"})],-1)})),$e=[Je],Ke=Qe((function(){return Object(o["createElementVNode"])("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",height:"76px"}},[Object(o["createElementVNode"])("div",{style:{height:"40px"}}),Object(o["createElementVNode"])("div",{style:{fontSize:"24px",fontWeight:"bold",textAlign:"center"}}," 请 在 听 写 前 确 认 音 量 大 小 ")],-1)})),et={style:{height:"89px",marginLeft:"72px",marginRight:"72px"}},tt=Qe((function(){return Object(o["createElementVNode"])("div",{style:{height:"31px"}},null,-1)})),nt={style:{display:"flex",justifyContent:"space-between",height:"58px"}},ot={class:"dicInfo"},it={style:{marginBottom:"12px"}},at={style:{fontSize:"24px",fontWeight:"bold",color:"#3d91ff"}},rt=Qe((function(){return Object(o["createElementVNode"])("span",{style:{fontSize:"12px",fontWeight:"bold",color:"#3d91ff"}}," 个",-1)})),ct=Qe((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"14px"}},"词语总数",-1)})),lt={class:"dicInfo"},st={style:{marginBottom:"12px"}},ut={style:{fontSize:"24px",fontWeight:"bold",color:"#3d91ff"}},dt=Qe((function(){return Object(o["createElementVNode"])("span",{style:{fontSize:"12px",fontWeight:"bold",color:"#3d91ff"}}," 次",-1)})),mt=Qe((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"14px"}},"朗读次数",-1)})),ft={class:"dicInfo"},pt={style:{marginBottom:"12px"}},bt={style:{fontSize:"24px",fontWeight:"bold",color:"#3d91ff"}},vt=Qe((function(){return Object(o["createElementVNode"])("span",{style:{fontSize:"12px",fontWeight:"bold",color:"#3d91ff"}}," 秒",-1)})),ht=Qe((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"14px"}},"书写时间",-1)})),Ot={style:{height:"102px",marginLeft:"72px",marginRight:"72px"}},jt=Qe((function(){return Object(o["createElementVNode"])("div",{style:{height:"46px"}},null,-1)})),yt={key:0,style:{display:"flex",justifyContent:"space-between",height:"56px"}},gt={style:{marginBottom:"28px"}},xt={style:{marginTop:"6px"}},wt={style:{width:"290px",height:"8px",paddingBottom:"12px",marginRight:"8px"}},kt=Qe((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"14px",color:"#8c8c8c",display:"flex",justifyContent:"space-between",marginTop:"8px"}},[Object(o["createElementVNode"])("div",null,"0"),Object(o["createElementVNode"])("div",null,"50"),Object(o["createElementVNode"])("div",null,"100")],-1)})),It=Qe((function(){return Object(o["createElementVNode"])("div",{class:"line"},null,-1)})),Et={style:{display:"flex",alignItems:"center",justifyContent:"center",height:"89px"}},Nt=["volume"],Vt=["src"],Bt=Object(o["createTextVNode"])(" 您的浏览器不支持该音频格式。 "),Ct={style:{display:"flex",alignItems:"center",marginLeft:"6px"}},St=Qe((function(){return Object(o["createElementVNode"])("div",null,"开始听写",-1)})),Pt={style:{display:"flex",alignItems:"center",marginLeft:"6px",fill:"white"}},Tt=Qe((function(){return Object(o["createElementVNode"])("div",null,"暂停听写",-1)})),Dt={key:1,style:{height:"356px",width:"400px",marginLeft:"40px",position:"absolute"}},Mt={name:"StartDictation"},At=Object(o["defineComponent"])(Object.assign(Object.assign({},Mt),{props:{elementInfo:{type:Object,required:!0}},emits:["refresh"],setup:function(e,t){var n=t.emit,c=e,l=Object(a["b"])(),s=Object(o["ref"])(),u=Object(o["ref"])(),d=Object(o["ref"])(),m=function(){n("refresh")},f=Object(o["ref"])(.5),p=Object(o["ref"])("none"),b=Object(o["ref"])("Normal"),v=Object(o["ref"])(1),h=Object(o["ref"])(1),O=Object(o["ref"])("mobile"===l.currentDevice.device?.45:1),j=Object(o["ref"])("mobile"===l.currentDevice.device?.45:1),y=Object(o["ref"])(480),g=Object(o["ref"])(400),x=Object(o["ref"])(document.body.clientWidth/2-240*O.value),w=Object(o["ref"])(document.body.clientHeight/2-200*j.value),k="iOS"===l.currentDevice.system&&"mobile"===l.currentDevice.device,I={x:0,y:0,top:0,left:0,isMoving:!1},E="dictation",N=Object(be["a"])(E,"qztxqqryldx.mp3"),V=Object(be["a"])(E,"bctxg.mp3"),B=Object(be["a"])(E,"gdc.mp3"),C=Object(be["a"])(E,"mgdcld.mp3"),S=Object(be["a"])(E,"c.mp3"),P=Object(be["a"])(E,"ldwhgy.mp3"),T=Object(be["a"])(E,"msxsj.mp3"),D=Object(be["a"])(E,"txzsks.mp3"),M=Object(be["a"])(E,"txjs.mp3"),A=[],z=-1,F=function(e){p.value=e},_=function(e){f.value=e},L=function(){p.value="ReadyAudioPlaying",z=0,u.value.src=A[z],s.value.load(),s.value.play(),d.value.reSet(),H()},q=function(){"Maximize"===b.value&&R(),p.value="Finish",void 0!==s.value&&(s.value.pause(),u.value.src=M,s.value.load(),s.value.play())},W=function(e){var t=document.body;if(e){var n=480,o=356;b.value="Maximize";var i=null===t||void 0===t?void 0:t.clientWidth,a=null===t||void 0===t?void 0:t.clientHeight;O.value=1,j.value=1,void 0!==i&&void 0!==n&&void 0!==a&&void 0!==o&&(g.value=a,y.value=i,i>=a?v.value=h.value=(a-44)/o:h.value=v.value=i/n)}else R()},R=function(){b.value="Normal",O.value="mobile"===l.currentDevice.device?.45:1,j.value="mobile"===l.currentDevice.device?.45:1,v.value=1,h.value=1,g.value=400,y.value=480},H=function(){"ReadyAudioPauseing"!==p.value?(p.value="ReadyAudioPlaying",s.value.pause(),Q()):"ReadyAudioPauseing"===p.value&&(p.value="ReadyAudioPlaying",s.value.play())},Y=function(){p.value="ReadyAudioPauseing",s.value.pause()},X=function(){z+=1,0!==z?z===A.length&&z>3?p.value="Playing":Q():p.value="Prepare"},Q=function(){z<=A.length-1&&(u.value.src=A[z],s.value.load(),s.value.play())},U=function(e,t){f.value=t};Object(o["onMounted"])((function(){A.push(V),ye(c.elementInfo.count,A),A.push(B),A.push(C),ye(c.elementInfo.settingInfo.readCount,A),A.push(S),A.push(P),ye(c.elementInfo.settingInfo.writeTime,A),A.push(T),A.push(D)}));var Z=function(e){if(void 0!==e.target&&"Maximize"!==b.value){var t=e.target;null===t||void 0===t||t.setPointerCapture(e.pointerId),I.x=e.pageX,I.y=e.pageY,I.isMoving=!0,I.top=w.value,I.left=x.value}},G=function(e){if(I.isMoving){var t=e.pageX-I.x,n=e.pageY-I.y,o=I.top+n,i=I.left+t;x.value=i,w.value=o}},J=function(e){if("Maximize"!==b.value){I.isMoving=!1;var t=e.target;null===t||void 0===t||t.releasePointerCapture(e.pointerId)}};return function(t,n){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"panel",id:"startDictationWindow",style:Object(o["normalizeStyle"])({width:y.value+"px",height:g.value+"px",borderRadius:"Maximize"===b.value?"0px":"12px",left:"Maximize"===b.value?"0px":x.value+"px",top:"Maximize"===b.value?"0px":w.value+"px",transform:"scale(".concat(O.value,",").concat(j.value,")"),transformOrigin:"0 0"})},[Object(o["createElementVNode"])("div",null,[Object(o["createElementVNode"])("div",{class:"title",style:Object(o["normalizeStyle"])({borderRadius:"Maximize"===b.value?"0px":"12px 12px 0 0"}),onPointerdown:Object(o["withModifiers"])(Z,["prevent"]),onPointermove:G,onPointerup:Object(o["withModifiers"])(J,["prevent"])},[Object(o["createElementVNode"])("div",Ze,[Object(o["createVNode"])(i["a"],{name:"dictation",width:16,height:16,class:"icon"}),Ge,Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({width:"calc(100% - 80px)"})},null,4),"Maximize"!==b.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,class:"closeSvg",onClick:m},$e)):Object(o["createCommentVNode"])("",!0)])],44,Ue),Object(o["withDirectives"])(Object(o["createElementVNode"])("div",null,[Ke,Object(o["createElementVNode"])("div",et,[tt,Object(o["createElementVNode"])("div",nt,[Object(o["createElementVNode"])("div",ot,[Object(o["createElementVNode"])("div",it,[Object(o["createElementVNode"])("span",at,Object(o["toDisplayString"])(e.elementInfo.count),1),rt]),ct]),Object(o["createElementVNode"])("div",lt,[Object(o["createElementVNode"])("div",st,[Object(o["createElementVNode"])("span",ut,Object(o["toDisplayString"])(e.elementInfo.settingInfo.readCount),1),dt]),mt]),Object(o["createElementVNode"])("div",ft,[Object(o["createElementVNode"])("div",pt,[Object(o["createElementVNode"])("span",bt,Object(o["toDisplayString"])(e.elementInfo.settingInfo.writeTime),1),vt]),ht])])]),Object(o["createElementVNode"])("div",Ot,[jt,Object(o["unref"])(k)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",yt,[Object(o["createElementVNode"])("div",gt,[Object(o["createVNode"])(i["a"],{name:"audio.origin",width:28,height:28,class:"icon"})]),Object(o["createElementVNode"])("div",xt,[Object(o["createElementVNode"])("div",wt,[Object(o["createVNode"])(r["a"],{width:290,height:8,onChange:U,modelValue:f.value,vertical:!1},null,8,["modelValue"])]),kt])]))]),It,Object(o["createElementVNode"])("div",Et,[Object(o["createElementVNode"])("audio",{ref_key:"audioPlayer",ref:s,volume:f.value,autoplay:"",onEnded:X},[Object(o["createElementVNode"])("source",{ref_key:"source",ref:u,src:Object(o["unref"])(N),type:"audio/mpeg"},null,8,Vt),Bt],40,Nt),Object(o["createElementVNode"])("div",null,[Object(o["withDirectives"])(Object(o["createElementVNode"])("button",{class:Object(o["normalizeClass"])("Prepare"===p.value?"startbutton":"button"),onClick:H},[Object(o["createElementVNode"])("div",Ct,[Object(o["createVNode"])(i["a"],{name:"sanjiao",width:32,height:32,class:"icon"}),St])],2),[[o["vShow"],"Prepare"===p.value||"ReadyAudioPauseing"===p.value]]),Object(o["withDirectives"])(Object(o["createElementVNode"])("button",{class:"button",onClick:Y},[Object(o["createElementVNode"])("div",Pt,[Object(o["createVNode"])(i["a"],{name:"pause",width:32,height:32,class:"icon"}),Tt])],512),[[o["vShow"],"ReadyAudioPlaying"===p.value]])])])],512),[[o["vShow"],"none"===p.value||"Prepare"===p.value||"ReadyAudioPlaying"===p.value||"ReadyAudioPauseing"===p.value]]),Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{key:0,style:Object(o["normalizeStyle"])({height:g.value-44+"px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",opacity:"Playing"===p.value||"Pause"===p.value?"1":"0.01",pointerEvents:"Playing"===p.value||"Pause"===p.value?"auto":"none",position:"absolute"})},[Object(o["createElementVNode"])("div",{style:Object(o["normalizeStyle"])({height:"356px",width:"480px",transform:"scale(".concat(v.value,",").concat(h.value,")"),transformOrigin:"center center"})},[Object(o["createVNode"])(Xe,{elementInfo:e.elementInfo,style:{marginLeft:"40px",marginRight:"40px"},ref_key:"dictationPlayingVue",ref:d,onOperationModeChanged:F,operationModeFromParent:p.value,onFullScreen:W,volumeNum:f.value,onChangeVolume:_,onEnded:q},null,8,["elementInfo","operationModeFromParent","volumeNum"])],4)],4)),[[o["vShow"],"Playing"===p.value||"Pause"===p.value]]),"Finish"===p.value?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",Dt,[Object(o["createVNode"])(pe,{elementInfo:e.elementInfo,onRetryDictation:L},null,8,["elementInfo"])])):Object(o["createCommentVNode"])("",!0)])],4)}}}));n("144b");const zt=T()(At,[["__scopeId","data-v-15982b7a"]]);var Ft=zt,_t=n("1107"),Lt=function(e){return Object(o["pushScopeId"])("data-v-759407fa"),e=e(),Object(o["popScopeId"])(),e},qt={style:{zIndex:10}},Wt={class:"dictationCard"},Rt={class:"title"},Ht={style:{marginLeft:"24px",display:"flex",alignItems:"center",height:"100%"}},Yt=Lt((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"12px",marginLeft:"4px"}},"听写",-1)})),Xt={style:{height:"56px"}},Qt=Lt((function(){return Object(o["createElementVNode"])("div",{style:{height:"24px"}},null,-1)})),Ut={style:{marginLeft:"24px",display:"flex",height:"100%"}},Zt={style:{fontSize:"36px",fontWeight:"bold",marginBottom:"-4px"}},Gt=Lt((function(){return Object(o["createElementVNode"])("div",{style:{fontSize:"14px",marginLeft:"4px",marginTop:"16px"}},"个词语",-1)})),Jt=Object(o["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(o["ref"])(!1);function n(){Oe.isShowDictationWinodw=t.value=!1}var a=function(){null===document.getElementById("startDictationWindow")&&(Oe.isShowDictationWinodw=t.value=!0)};return function(r,c){var l;return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:Object(o["normalizeClass"])(["base-element",null===(l=e.elementInfo.animationClass)||void 0===l?void 0:l.class]),onAnimationend:c[0]||(c[0]=function(){var t,n,i;return(null===(n=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationEnd)&&(null===(i=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationEnd.apply(t,arguments))}),onAnimationstart:c[1]||(c[1]=function(){var t,n,i;return(null===(n=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationStart)&&(null===(i=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationStart.apply(t,arguments))}),onAnimationiteration:c[2]||(c[2]=function(){var t,n,i;return(null===(n=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationIteration)&&(null===(i=Object(o["unref"])(_t["b"]).get(e.elementInfo.animationClass.id))||void 0===i?void 0:(t=i).animationIteration.apply(t,arguments))}),style:Object(o["normalizeStyle"])([{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"},e.elementInfo.animationClass.style])},[t.value?(Object(o["openBlock"])(),Object(o["createBlock"])(o["Teleport"],{key:0,to:"body"},[Object(o["createElementVNode"])("div",qt,[Object(o["createVNode"])(Ft,{elementInfo:e.elementInfo,onRefresh:n},null,8,["elementInfo"])])])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(o["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(o["createElementVNode"])("div",{class:"element-content",style:Object(o["normalizeStyle"])({width:e.elementInfo.originalWidth+"px",height:e.elementInfo.originalHeight+"px",transformOrigin:"top left",transform:"scale(".concat(e.elementInfo.width/e.elementInfo.originalWidth,", ").concat(e.elementInfo.height/e.elementInfo.originalHeight,")")})},[Object(o["createElementVNode"])("div",Wt,[Object(o["createElementVNode"])("div",Rt,[Object(o["createElementVNode"])("div",Ht,[Object(o["createVNode"])(i["a"],{name:"dictation",width:16,height:16,class:"icon"}),Yt])]),Object(o["createElementVNode"])("div",Xt,[Qt,Object(o["createElementVNode"])("div",Ut,[Object(o["createElementVNode"])("div",Zt,Object(o["toDisplayString"])(e.elementInfo.count),1),Gt])]),Object(o["createElementVNode"])("div",{style:{height:"84px"}},[Object(o["createElementVNode"])("div",{style:{marginLeft:"22px",display:"flex",alignItems:"center",height:"100%"}},[Object(o["createElementVNode"])("button",{class:"button",onClick:a},"听写")])])])],4)],4)],38)}}});n("fab8");const $t=T()(Jt,[["__scopeId","data-v-759407fa"]]);t["a"]=$t},a4dd:function(e,t,n){"use strict";n("88a3")},a630a:function(e,t,n){"use strict";n("468a")},a8e8:function(e,t,n){"use strict";n("25ad")},ad98:function(e,t,n){},ade4:function(e,t,n){"use strict";n("f86d")},b628:function(e,t,n){},b67a:function(e,t,n){"use strict";n.d(t,"r",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"i",(function(){return f})),n.d(t,"q",(function(){return p})),n.d(t,"j",(function(){return b})),n.d(t,"l",(function(){return h})),n.d(t,"h",(function(){return j})),n.d(t,"m",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return x})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return k})),n.d(t,"g",(function(){return I})),n.d(t,"n",(function(){return E})),n.d(t,"o",(function(){return N})),n.d(t,"k",(function(){return V})),n.d(t,"a",(function(){return B})),n.d(t,"p",(function(){return C}));var o=n("b85c"),i=n("c707"),a=n.n(i),r=(n("d3b7"),n("159b"),n("4de4"),n("b246")),c=n("6da4"),l=n("f630"),s=n("3aad"),u=26;function d(e,t){e.forEach((function(e){"geometry"===e.type&&1===e.geometries.length&&"Line"===e.geometries[0].type&&0===e.marks.length&&(void 0!==t?m(e,t):m(e))}))}var m=function(e,t){if(1===e.geometries.length&&"Line"===e.geometries[0].type&&(0!==e.rotate||void 0!==t)&&0===e.marks.length){var n=new r["a"](e.left+e.geometries[0].points[0].x,e.top+e.geometries[0].points[0].y),o=new r["a"](e.left+e.geometries[0].points[1].x,e.top+e.geometries[0].points[1].y),i=void 0===t?e.rotate:t,a=Object(s["g"])(n,o),c=Object(s["n"])(n,a,i),l=Object(s["n"])(o,a,i),u=0===Math.abs(c.x-l.x)?2:Math.abs(c.x-l.x),d=0===Math.abs(c.y-l.y)?2:Math.abs(c.y-l.y),m=Math.min(c.y,l.y),f=Math.min(c.x,l.x);e.rotate=0,e.left=f,e.top=m,e.width=u,e.height=d,e.viewBoxHeight=d,e.viewBoxWidth=u,e.geometries[0].points[0].x=c.x-f,e.geometries[0].points[0].y=c.y-m,e.geometries[0].points[1].x=l.x-f,e.geometries[0].points[1].y=l.y-m}},f=function(e,t,n,o){if(!o){var i=Object(s["b"])(e,t);return Math.abs(Math.abs(i)-n)<2?i<=0?0:1:i<=0?1:0}return Object(s["b"])(e,o)<=0?0:1},p=function(e,t,n){if(Object(s["e"])(e,t,1e-5)||Object(s["e"])(e,n,1e-5))return!0;if(e.x>=Math.min(t.x,n.x)&&e.x<=Math.max(t.x,n.x)){var o=new r["a"];o.x=t.x-e.x,o.y=t.y-e.y;var i=new r["a"];i.x=n.x-e.x,i.y=n.y-e.y;var a=Object(s["b"])(o,i);return Object(s["d"])(180,Math.abs(a),1e-5)}return!1},b=function(e,t,n){var o=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),i=new r["a"];i.x=(e.x+t.x)/2-n.x,i.y=(e.y+t.y)/2-n.y,i=Object(s["m"])(i);var a=new r["a"];return a.x=n.x+i.x*o,a.y=n.y+i.y*o,a},v=function(e,t){var n=new r["a"];return n.x=t.x-e.x,n.y=t.y-e.y,n=Object(s["m"])(n),n.x=u*n.x,n.y=u*n.y,n},h=function(e,t){var n=new Array;return Object(s["e"])(e,t.point2,1e-5)?(n.push(Object(s["a"])(e,v(e,t.point1))),n):Object(s["e"])(e,t.point1,1e-5)?(n.push(Object(s["a"])(e,v(e,t.point2))),n):(n.push(Object(s["a"])(e,v(e,t.point1))),n.push(Object(s["a"])(e,v(e,t.point2))),n)},O=function(e,t,n){var o=Object(s["j"])(Object(s["k"])(e,t),90);return o=Object(s["m"])(o),Object(s["l"])(o,n)},j=function(e,t,n){for(var o=new Array,i=n.length,a=0;a2&&(f.x=-1*f.x,f.y=-1*f.y),o>50?(a.x=18*f.x*2+t.x,a.y=18*f.y*2+t.y):o>30?(a.x=18*f.x*2.5+t.x,a.y=18*f.y*2.5+t.y):(a.x=18*f.x*3+t.x,a.y=18*f.y*3+t.y),a},k=function(e,t,n){var o=new Array;if(360===e)return o;var i=new r["a"];i.x=0,i.y=1;var a=(360-e)/2,c=Object(s["j"])(i,a),l=Object(s["a"])(t,Object(s["l"])(c,n)),u=Object(s["j"])(i,-a),d=Object(s["a"])(t,Object(s["l"])(u,n));return o.push(l),o.push(d),o},I=function(e){switch(e){case"Dash":return"4 4";case"DotDash":return"10 6";case"Normal":return"";case"LongDash":return"20 4 4 4";case"None":return"";default:return""}},E=function(e,t,n,o){var i=new Array;if(0===n)return i;var a=Math.abs(t.x-e.x)/n,c=Math.abs(t.y-e.y)/n,l=0,u=0;i.push({start:e,end:g(e,t,o)}),i.push({start:t,end:x(e,t,o)});for(var d=1;dt.x&&e.y>t.y&&(l=t.x+a*d,u=t.y+c*d),e.x<=t.x&&e.y>t.y&&(l=e.x+a*d,u=t.y+c*(n-d)),e.x>t.x&&e.y<=t.y&&(l=l=t.x+a*d,u=e.y+c*(n-d));var m=Object(s["j"])(Object(s["k"])(t,e),-90);m=Object(s["m"])(m),m.x=m.x*(5+2*o),m.y=m.y*(5+2*o);var f=new r["a"];f.x=l,f.y=u;var p=Object(s["a"])(f,m);i.push({start:p,end:f})}return i},N=function(e,t,n){var o,i,a=0,c=new r["a"],l=new r["a"];for(c=e[0],o=1;o<=t;o++)l=e[o%t],n.y>Math.min(c.y,l.y)&&n.y<=Math.max(c.y,l.y)&&n.x<=Math.max(c.x,l.x)&&c.y!==l.y&&(i=(n.y-c.y)*(l.x-c.x)/(l.y-c.y)+c.x,(c.x===l.x||n.x<=i)&&a++),c=l;return a%2!==0},V=function(e,t){var n,i=new Array,r=new Array,c=new Array,u=new Array,d=e.filter((function(e){return!Object(s["e"])(e,t,.1)})),m=Object(o["a"])(d);try{for(m.s();!(n=m.n()).done;){var f=n.value;Object(s["k"])(t,f);f.x>t.x?r.push(new l["a"](t,f)):f.xt.y?u.push(new l["a"](t,f)):f.y0&&p.push(a()(i,[function(e){return e.length}])[0]),r.length>0&&p.push(a()(r,[function(e){return e.length}])[0]),c.length>0&&p.push(a()(c,[function(e){return e.length}])[0]),u.length>0&&p.push(a()(u,[function(e){return e.length}])[0]),p},B=function(e){return-180===e?e=180:(e=360-e,e>=360&&(e-=360)),e},C=function(){return{points:new Array,type:"Polygon",lineType:"Normal",strokeThickness:c["f"],stroke:c["g"],segmentType:"Line",angleOfEllipse:c["f"],sweepDirection:"Counterclockwise",isLargeArc:c["d"],radiusVisible:c["d"],angleVisible:c["d"],bisectrixCount:c["f"]}}},bf1a:function(e,t,n){"use strict";n("8d82")},bf4c:function(e,t,n){},c635a:function(e,t,n){"use strict";n("a287")},c7c6:function(e,t,n){"use strict";n("98ba")},c849:function(e,t,n){},ca03:function(e,t,n){"use strict";n("bf4c")},de25:function(e,t,n){"use strict";n("6f56")},e625:function(e,t,n){"use strict";n("522f")},e8d4:function(e,t,n){"use strict";n("4d5b")},eeae:function(e,t,n){"use strict";n("2ce9")},ef31:function(e,t,n){"use strict";var o=n("b85c"),i=n("1723"),a=n.n(i),r=(n("4de4"),n("d3b7"),n("99af"),n("7a23")),c=n("b246"),l=n("1107"),s=n("3aad"),u=n("b67a"),d=n("53ca"),m=n("1fee"),f=n.n(m),p=n("c707"),b=n.n(p),v=n("63ea"),h=n.n(v),O=n("f630"),j=new Array,y=new Array,g=new Array,x=new Array,w=function(e){var t,n={points:"",brush:""},i=Object(o["a"])(j);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(Object(u["o"])(a.points,a.points.length,e.paintPoint)){var r,c=Object(o["a"])(a.points);try{for(c.s();!(r=c.n()).done;){var l=r.value;n.points=n.points+l.x+","+l.y+" "}}catch(s){c.e(s)}finally{c.f()}n.brush=e.paintBrush}}}catch(s){i.e(s)}finally{i.f()}return n},k=function(e){x=new Array,x=x.concat(e.geometries[0].points);var t=new Array;t.push(e.geometries[0]);for(var n=1;n=Object(s["i"])(i.startPoint,c))if(g.filter((function(e){return h()(e.key,i)})).length>0)g.filter((function(e){return h()(e.key,i)}))[0].points.push(c);else{var u=new Array;u.push(c),g.push({key:i,points:u})}}}catch(d){r.e(d)}finally{r.f()}};for(i.s();!(n=i.n()).done;)a()}catch(r){i.e(r)}finally{i.f()}},N=function(){y=new Array;var e,t=Object(o["a"])(x);try{var n=function(){var t,n=e.value,i=g.filter((function(e){return e.points.filter((function(e){return Object(s["e"])(e,n,1e-5)})).length>0})),a=Object(o["a"])(i);try{for(a.s();!(t=a.n()).done;){var r=t.value,c=Object(u["k"])(r.points,n);y.filter((function(e){return h()(e.key,n)})).length>0?y.filter((function(e){return h()(e.key,n)}))[0].lines=y.filter((function(e){return h()(e.key,n)}))[0].lines.concat(c):y.push({key:n,lines:c})}}catch(l){a.e(l)}finally{a.f()}};for(t.s();!(e=t.n()).done;)n()}catch(i){t.e(i)}finally{t.f()}},V=function(){if(j=new Array,x.length>2){var e=(new Array).concat(x),t=function(){var t=b()(e,[function(e){return-e.x}]),n=t[0];e=e.filter((function(e){return!Object(s["e"])(e,n,1e-5)}));var i,a=y.filter((function(e){return h()(e.key,n)}))[0].lines,r=Object(o["a"])(a);try{for(r.s();!(i=r.n()).done;){var c=i.value,l=S(c,c.startPoint);if(!0===l.result){var d=Object(u["p"])();d.points=l.resultPoints,j.push(d),P(l.resultlineInfos)}}}catch(f){r.e(f)}finally{r.f()}var m=b()(y,[function(e){return-e.key.x}]);if(a.filter((function(e){return 1===e.usedTimes})).length<=1||m[0].key.x>n.x)return"continue";y=y.filter((function(e){return!Object(s["e"])(e.key,n,1e-5)}))};while(e.length>0)t()}},B=function(){for(var e=function(e){for(var t=0;t0;t--)e(t)},C=function(e,t){if(e.length===t.length){var n,i=Object(o["a"])(e);try{var a=function(){var e=n.value;if(!(t.filter((function(t){return Object(s["e"])(t,e,1e-5)})).length>0))return{v:!1}};for(i.s();!(n=i.n()).done;){var r=a();if("object"===Object(d["a"])(r))return r.v}}catch(c){i.e(c)}finally{i.f()}return!0}return!1},S=function e(t,n){var i=!1,a={result:!1,resultPoints:new Array,resultlineInfos:new Array},r=new Array;r.push(t.startPoint);var l=new Array;if(l.push(t),Object(s["e"])(t.endPoint,n,1e-5))return i=!0,a.result=i,a.resultPoints=r,a.resultlineInfos=l,a;var d=t.endPoint,m=NaN,f=new Array,p=y.filter((function(e){return Object(s["e"])(e.key,d,1e-5)})).length>0?y.filter((function(e){return Object(s["e"])(e.key,d,1e-5)}))[0].lines:new Array;if(p.length>1){var v=new c["a"];v.x=d.x+10,v.y=d.y;var h,O=Object(s["k"])(d,v),j=Object(o["a"])(p);try{for(j.s();!(h=j.n()).done;){var g=h.value;g.equals(t)&&(m=Object(s["b"])(O,Object(s["k"])(g.startPoint,g.endPoint)),m=Object(u["a"])(m));var x=Object(s["b"])(O,Object(s["k"])(g.startPoint,g.endPoint));x=Object(u["a"])(x),f.push({line:g,angle:x})}}catch(C){j.e(C)}finally{j.f()}if(isNaN(m))return a.result=i,a.resultPoints=r,a.resultlineInfos=l,a;var w=b()(f,[function(e){return e.angle}]),k=w[0].angle;if(m===k){var I=w[w.length-1].line;if(1===I.usedTimes)return a.result=i,a.resultPoints=r,a.resultlineInfos=l,a;if(0===Math.floor(Math.abs(Object(s["b"])(Object(s["k"])(t.startPoint,t.endPoint),Object(s["k"])(I.startPoint,I.endPoint)))))return a.result=i,a.resultPoints=r,a.resultlineInfos=l,a;var E=e(I,n);return i=E.result,r=r.concat(E.resultPoints),l=l.concat(E.resultlineInfos),a.result=i,a.resultPoints=r,a.resultlineInfos=l,a}var N=b()(f.filter((function(e){return e.angle0}));if(n.length>0){var i,a=Object(o["a"])(n[0].lines);try{for(a.s();!(i=a.n()).done;){var r=i.value;r.equalStartPointAndEndPoint(e)&&(r.usedTimes=1)}}catch(c){a.e(c)}finally{a.f()}}};for(n.s();!(t=n.n()).done;)i()}catch(a){n.e(a)}finally{n.f()}},T=function(e){for(var t=new Array,n=0;n1)for(var a=1;a<=t;a++){var r=Object(s["j"])(i,360/t*a),l=Object(s["a"])(e,Object(s["l"])(r,n));o.push({start:e,end:l})}return o},a=Object(r["computed"])((function(){var e={centerPoint:new c["a"],angle:0,radius:0,bisectrixPoints:new Array,dashArray:"",arcPoints:new Array};return"Ellipse"===o.elementInfo.geometries[0].type&&(e.centerPoint=o.elementInfo.geometries[0].points[0],e.radius=Object(s["i"])(e.centerPoint,o.elementInfo.geometries[0].points[1]),e.dashArray=Object(u["g"])(o.elementInfo.geometries[0].lineType),e.bisectrixPoints=i(e.centerPoint,o.elementInfo.geometries[0].bisectrixCount,e.radius),e.angle=o.elementInfo.geometries[0].angleOfEllipse,e.arcPoints=Object(u["f"])(o.elementInfo.geometries[0].angleOfEllipse,e.centerPoint,e.radius)),e})),l=Object(r["ref"])(a.value.centerPoint);return n({centerPoint:l}),function(t,n){return"Ellipse"===e.elementInfo.geometries[0].type?(Object(r["openBlock"])(),Object(r["createElementBlock"])("g",X,[Object(r["createElementVNode"])("g",null,[360===Object(r["unref"])(a).angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("g",Q,[Object(r["createElementVNode"])("ellipse",{class:"geometry",cx:Object(r["unref"])(a).centerPoint.x,cy:Object(r["unref"])(a).centerPoint.y,rx:Object(r["unref"])(a).radius,ry:Object(r["unref"])(a).radius,stroke:e.elementInfo.geometries[0].stroke,"stroke-width":e.elementInfo.geometries[0].strokeThickness,"stroke-dasharray":Object(r["unref"])(a).dashArray,fill:e.elementInfo.paints.length>0?e.elementInfo.paints[0].paintBrush:"transparent"},null,8,U),Object(r["createElementVNode"])("ellipse",{cx:Object(r["unref"])(a).centerPoint.x,cy:Object(r["unref"])(a).centerPoint.y,rx:"2",ry:"2",stroke:e.elementInfo.geometries[0].stroke,"stroke-width":"1","stroke-dasharray":"",fill:"rgba(0,0,0,1)"},null,8,Z),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(a).bisectrixPoints,(function(t,n){return Object(r["openBlock"])(),Object(r["createElementBlock"])("line",{x1:t.start.x,y1:t.start.y,x2:t.end.x,y2:t.end.y,key:n,stroke:e.elementInfo.geometries[0].stroke,"stroke-width":e.elementInfo.geometries[0].strokeThickness},null,8,G)})),128))])):Object(r["createCommentVNode"])("",!0),360!==Object(r["unref"])(a).angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("path",{key:1,d:"M ".concat(Object(r["unref"])(a).centerPoint.x," ").concat(Object(r["unref"])(a).centerPoint.y," L ").concat(Object(r["unref"])(a).arcPoints[0].x," ").concat(Object(r["unref"])(a).arcPoints[0].y," A ").concat(Object(r["unref"])(a).radius," ").concat(Object(r["unref"])(a).radius," ").concat(Object(r["unref"])(a).angle," ").concat(Object(r["unref"])(a).angle>180?1:0," 1 ").concat(Object(r["unref"])(a).arcPoints[1].x," ").concat(Object(r["unref"])(a).arcPoints[1].y," Z"),stroke:e.elementInfo.geometries[0].stroke,"stroke-width":e.elementInfo.geometries[0].strokeThickness,"stroke-dasharray":Object(r["unref"])(a).dashArray,fill:e.elementInfo.paints.length>0?e.elementInfo.paints[0].paintBrush:"transparent"},null,8,J)):Object(r["createCommentVNode"])("",!0)])])):Object(r["createCommentVNode"])("",!0)}}}));const ee=K;var te=ee,ne=n("0613"),oe=n("be92"),ie=n("7a54"),ae=n("e51d"),re=n("289b"),ce={class:"element-content"},le={id:"svgId"},se=["points","fill"],ue=["points","stroke","stroke-width","stroke-dasharray"],de=["x1","y1","x2","y2","stroke","stroke-width"],me=["onClick","opacity","d"],fe=["cx","cy","onClick","opacity"],pe=["onClick","opacity","d"],be=["x","opacity","y","fill"],ve=["stroke","opacity","d"],he=["stroke","opacity","d"],Oe=["x","y"],je=["x","y"],ye=Object(r["defineComponent"])({props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(ne["c"])(),i=Object(oe["c"])(n),d=(i.activeElementIdList,i.activeElementList),m=Object(r["ref"])(!1),f=26,p=Object(r["ref"])(),b=Object(r["ref"])(Object(u["g"])(t.elementInfo.geometries[0].lineType)),v=Object(r["ref"])(""),h=function(e){e.angleOpacity=1===e.angleOpacity?.01:1;var n,i=Object(o["a"])(d.value);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.id===t.elementInfo.id){var r=a;r.angles.filter((function(t){return Object(s["e"])(t.curPoint,e.curPoint,.01)}))[0].opacity=e.angleOpacity}}}catch(c){i.e(c)}finally{i.f()}},O=function(e){var n=new Array,i=new Array,a=t.elementInfo.geometries[0].points[0],r=Object(s["i"])(t.elementInfo.geometries[0].points[0],t.elementInfo.geometries[0].points[1]),l=j(a,r);l.length>0&&(l=Object(s["q"])(l,a)),i=Object(u["h"])(a,r,l);for(var d=1;d0)){var a={key:o,areaUp:t,areaDown:n};i.push(a)}},b=0;b0){var l,s=a()(i,(function(e){return e.key})),d=null===s?0:null===s||void 0===s?void 0:s.key,m={areaUp:new c["a"],areaDown:new c["a"]},p=Object(o["a"])(i);try{for(p.s();!(l=p.n()).done;){var b=l.value;b.key===d&&(m.areaUp=b.areaUp,m.areaDown=b.areaDown)}}catch(v){p.e(v)}finally{p.f()}r=Object(u["m"])(m,e,t)}else r.x=e.x+0,r.y=e.y+f+t;return n.x=r.x-18,n.y=r.y-18,n},x=Object(r["reactive"])(function(){var e=new Array;return{marks:e}}()),C=function(){var e,n=Object(o["a"])(t.elementInfo.marks);try{for(n.s();!(e=n.n()).done;){var i=e.value,a={firstText:"",secondText:"",markPoint:new c["a"]};a.firstText=i.markText.substring(0,1),a.secondText=i.markText.substring(1,2),a.markPoint.x=i.markPosition.x,a.markPoint.y=i.markPosition.y,a.markPoint=g(a.markPoint,t.elementInfo.geometries[0].strokeThickness),x.marks.push(a)}}catch(r){n.e(r)}finally{n.f()}},S=Object(r["reactive"])(function(){var e=new Array;return{paints:e}}()),P=function(){if(t.elementInfo.paints.length>0){k(t.elementInfo);var e=I(t.elementInfo);E(e),N(),V(),B();var n,i=Object(o["a"])(t.elementInfo.paints);try{for(i.s();!(n=i.n()).done;){var a=n.value;S.paints.push(w(a))}}catch(r){i.e(r)}finally{i.f()}}},T=Object(r["reactive"])(function(){var e=new Array;return{lines:e}}()),D=function(){if(t.elementInfo.geometries.length>1){var e,n=Object(o["a"])(t.elementInfo.geometries);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("Line"===i.type&&"Normal"!==i.lineType){var a={firstPoint:new c["a"],secondPoint:new c["a"],stroke:"#000000",strokethinkness:2};a.firstPoint.x=i.points[0].x,a.firstPoint.y=i.points[0].y,a.secondPoint.x=i.points[1].x,a.secondPoint.y=i.points[1].y,a.stroke=i.stroke,a.strokethinkness=i.strokeThickness,T.lines.push(a)}}}catch(r){n.e(r)}finally{n.f()}}},z=function(){m.value=!0,re["c"].get(re["a"].APP_OPTIONS).isHeadlessMode()&&ae["a"].emit(ie["a"],t.elementInfo.id)};Object(r["onMounted"])((function(){var e,n=Object(o["a"])(t.elementInfo.geometries);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("Polygon"===i.type){var a,r=Object(o["a"])(i.points);try{for(r.s();!(a=r.n()).done;){var c=a.value;v.value=v.value+c.x+","+c.y+" "}}catch(l){r.e(l)}finally{r.f()}}}}catch(l){n.e(l)}finally{n.f()}C(),P(),D(),setTimeout(z,100)}));var F=Object(r["reactive"])(function(){var e,n=new Array,i=Object(o["a"])(t.elementInfo.angles);try{for(i.s();!(e=i.n()).done;){var a=e.value,r=18,l={firstPoint:new c["a"],secondPoint:new c["a"],rightPoint:new c["a"],curPoint:new c["a"],textLocaltion:new c["a"],angle:1,leng:18,sweepDirection:1,angleOpacity:a.opacity};a.angle<=30?r=36:a.angle<=50&&(r=27);var d=new c["a"];d.x=a.prePoint.x-a.curPoint.x,d.y=a.prePoint.y-a.curPoint.y,d=Object(s["m"])(d);var m=new c["a"];m.x=d.x*r+a.curPoint.x,m.y=d.y*r+a.curPoint.y,l.firstPoint=m;var f=new c["a"];f.x=a.nextPoint.x-a.curPoint.x,f.y=a.nextPoint.y-a.curPoint.y,f=Object(s["m"])(f);var p=new c["a"];p.x=f.x*r+a.curPoint.x,p.y=f.y*r+a.curPoint.y,l.secondPoint=p,90===a.angle&&(l.rightPoint=Object(u["j"])(m,p,a.curPoint)),l.curPoint=a.curPoint,l.textLocaltion=Object(u["e"])(a.prePoint,a.curPoint,a.nextPoint,a.angle),l.angle=a.angle,l.leng=r,l.sweepDirection=Object(u["i"])(d,f,a.angle),n.push(l)}}catch(b){i.e(b)}finally{i.f()}return n}());return Object(r["watch"])((function(){return t.elementInfo.geometries[0].lineType}),(function(e){b.value=Object(u["g"])(e)})),Object(r["watch"])((function(){return t.elementInfo.geometries[0].strokeThickness}),(function(e){})),Object(r["watch"])((function(){return t.elementInfo.geometries[0].stroke}),(function(e){})),function(t,n){var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["base-element-Geometry",null===(o=e.elementInfo.animationClass)||void 0===o?void 0:o.class]),onAnimationend:n[0]||(n[0]=function(){var t,n,o;return(null===(n=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationEnd)&&(null===(o=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationEnd.apply(t,arguments))}),onAnimationstart:n[1]||(n[1]=function(){var t,n,o;return(null===(n=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationStart)&&(null===(o=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationStart.apply(t,arguments))}),onAnimationiteration:n[2]||(n[2]=function(){var t,n,o;return(null===(n=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===n?void 0:n.animationIteration)&&(null===(o=Object(r["unref"])(l["b"]).get(e.elementInfo.animationClass.id))||void 0===o?void 0:(t=o).animationIteration.apply(t,arguments))}),style:Object(r["normalizeStyle"])([{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"},e.elementInfo.animationClass.style])},[Object(r["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(r["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(r["createElementVNode"])("div",ce,[Object(r["createElementVNode"])("div",{style:Object(r["normalizeStyle"])({transform:"scale(".concat(isNaN(e.elementInfo.width/e.elementInfo.viewBoxWidth)?0:e.elementInfo.width/e.elementInfo.viewBoxWidth,",\n ").concat(isNaN(e.elementInfo.height/e.elementInfo.viewBoxHeight)?0:e.elementInfo.height/e.elementInfo.viewBoxHeight,")"),transformOrigin:"top left"})},[(Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{version:"1.0",id:"geometryPanel",style:Object(r["normalizeStyle"])({width:e.elementInfo.viewBoxWidth+"px",height:e.elementInfo.viewBoxHeight+"px"})},[Object(r["createElementVNode"])("g",le,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(S).paints,(function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("polygon",{class:"paint",key:t,points:e.points,"stroke-dasharray":"",fill:e.brush},null,8,se)})),128)),"Polygon"===e.elementInfo.geometries[0].type?(Object(r["openBlock"])(),Object(r["createElementBlock"])("polygon",{key:0,class:"geometry",points:v.value,stroke:e.elementInfo.geometries[0].stroke,"stroke-width":e.elementInfo.geometries[0].strokeThickness,"stroke-dasharray":b.value,fill:"rgba(255,255,255,0)"},null,8,ue)):Object(r["createCommentVNode"])("",!0),Object(r["createVNode"])(te,{ref_key:"ellipseGeometry",ref:p,elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(r["createVNode"])(Y,{elementInfo:e.elementInfo},null,8,["elementInfo"]),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(Object(r["unref"])(T).lines,(function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("line",{class:"geometry","pointer-events":"none",key:t,x1:e.firstPoint.x,y1:e.firstPoint.y,x2:e.secondPoint.x,y2:e.secondPoint.y,stroke:e.stroke,"stroke-width":e.strokethinkness,"stroke-dasharray":" 4 4",fill:"transparent","stroke-linecap":"round"},null,8,de)})),128)),m.value?(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],{key:1},Object(r["renderList"])(Object(r["unref"])(F),(function(t,n){var o,i;return Object(r["openBlock"])(),Object(r["createElementBlock"])("g",{key:n},[90!=t.angle&&360!=t.angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("path",{key:0,fill:"transparent",class:"geometryAngle","stroke-dasharray":"2,2",cursor:"pointer",onClick:function(e){return h(t)},opacity:t.angleOpacity,d:"M ".concat(t.curPoint.x,",").concat(t.curPoint.y," L ").concat(t.firstPoint.x,",").concat(t.firstPoint.y," A ").concat(t.leng," ").concat(t.leng," ").concat(t.angle," ").concat(t.angle>180?1:0," ").concat(t.sweepDirection," ").concat(t.secondPoint.x,",").concat(t.secondPoint.y," Z")},null,8,me)):Object(r["createCommentVNode"])("",!0),360===t.angle&&"Ellipse"===e.elementInfo.geometries[0].type?(Object(r["openBlock"])(),Object(r["createElementBlock"])("ellipse",{key:1,fill:"transparent",class:"geometryAngle",cx:null===(o=p.value)||void 0===o?void 0:o.centerPoint.x,cy:null===(i=p.value)||void 0===i?void 0:i.centerPoint.y,rx:"10",ry:"10",onClick:function(e){return h(t)},"stroke-dasharray":"2,2",cursor:"pointer",opacity:t.angleOpacity},null,8,fe)):Object(r["createCommentVNode"])("",!0),90===t.angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("path",{key:2,fill:"transparent",class:"geometryAngle",onClick:function(e){return h(t)},"stroke-dasharray":"2,2",cursor:"pointer",opacity:t.angleOpacity,d:"M ".concat(t.firstPoint.x," ,").concat(t.firstPoint.y," L ").concat(t.rightPoint.x," ").concat(t.rightPoint.y," L ").concat(t.secondPoint.x,",").concat(t.secondPoint.y," L ").concat(t.curPoint.x,",").concat(t.curPoint.y," Z")},null,8,pe)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("text",{class:"angleText",x:t.textLocaltion.x,"font-size":"12",display:"initial",opacity:t.angleOpacity,y:t.textLocaltion.y,fill:e.elementInfo.geometries[0].stroke,style:Object(r["normalizeStyle"])("transform: translateX(-10px) translateY(".concat(90===t.angle?3:5,"px);"))},Object(r["toDisplayString"])(t.angle)+"° ",13,be),90===t.angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("path",{key:3,fill:"transparent",stroke:e.elementInfo.geometries[0].stroke,"stroke-dasharray":"0,0",class:"transparentGeometryAngle",cursor:"pointer","pointer-events":"none",opacity:t.angleOpacity,d:"M ".concat(t.firstPoint.x," ,").concat(t.firstPoint.y," L ").concat(t.rightPoint.x," ").concat(t.rightPoint.y," L ").concat(t.secondPoint.x,",").concat(t.secondPoint.y)},null,8,ve)):Object(r["createCommentVNode"])("",!0),90!=t.angle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("path",{key:4,fill:"transparent","pointer-events":"none",class:"transparentGeometryAngle",stroke:e.elementInfo.geometries[0].stroke,"stroke-dasharray":"0,0",cursor:"pointer",opacity:t.angleOpacity,d:"M ".concat(t.firstPoint.x,",").concat(t.firstPoint.y," A ").concat(t.leng," ").concat(t.leng," ").concat(t.angle," ").concat(t.angle>180?1:0," ").concat(t.sweepDirection," ").concat(t.secondPoint.x,",").concat(t.secondPoint.y)},null,8,he)):Object(r["createCommentVNode"])("",!0)])})),128)):Object(r["createCommentVNode"])("",!0)]),m.value?(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],{key:0},Object(r["renderList"])(Object(r["unref"])(x).marks,(function(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("g",{key:t,style:{width:"40px",height:"40px"}},[Object(r["createElementVNode"])("text",{x:e.markPoint.x,y:e.markPoint.y,fontSize:"16",style:Object(r["normalizeStyle"])({height:"50%",width:"50%",transform:"translateX(10px) translateY(20px)",fontWeight:"bolder",fontSize:"18px"})},Object(r["toDisplayString"])(e.firstText),13,Oe),Object(r["createElementVNode"])("text",{x:e.markPoint.x,y:e.markPoint.y,style:Object(r["normalizeStyle"])({height:"50%",width:"50%",transform:"translateX(20.5px) translateY(22.5px)",fontSize:"9px"})},Object(r["toDisplayString"])(e.secondText),13,je)])})),128)):Object(r["createCommentVNode"])("",!0)],4))],4)])],4)],38)}}}),ge=(n("4ee2"),n("d959")),xe=n.n(ge);const we=xe()(ye,[["__scopeId","data-v-76d7dc5b"]]);t["a"]=we},f630:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("d4ec"),i=n("bee2"),a=n("b246"),r=n("3aad"),c=function(){function e(t,n){Object(o["a"])(this,e),this.startPoint=new a["a"],this.endPoint=new a["a"],this.usedTimes=0,this.length=0,this.startPoint=t,this.endPoint=n,this.length=Object(r["i"])(t,n)}return Object(i["a"])(e,[{key:"equals",value:function(e){return!!(Object(r["e"])(e.startPoint,this.startPoint,.1)&&Object(r["e"])(e.endPoint,this.endPoint,.1)||Object(r["e"])(e.startPoint,this.endPoint,.1)&&Object(r["e"])(e.endPoint,this.startPoint,.1))}},{key:"equalStartPointAndEndPoint",value:function(e){return!(!Object(r["e"])(e.startPoint,this.startPoint,.1)||!Object(r["e"])(e.endPoint,this.endPoint,.1))}}]),e}()},f86d:function(e,t,n){},fab8:function(e,t,n){"use strict";n("fd49")},fd49:function(e,t,n){}}]);