123456789101112131415161718192021222324252627282930313233343536 |
- !function(){var e=document.createElement("style");e.innerHTML="._unitSubjectTitle_1x5pg_1{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitSubjectTitle_1x5pg_1 ._unitScore_1x5pg_7{color:#777}._unitSubjectTitle_1x5pg_1 .van-tag{vertical-align:middle;margin-top:-.08rem}._unitDetail_1x5pg_14{padding-top:.53333rem;padding-bottom:.26667rem;font-size:.37333rem}._unitDetail_1x5pg_14 img,._unitDetail_1x5pg_14 video{width:100%}._unitTitleImg_1x5pg_23{width:100%}._unitTitleRate_1x5pg_26{display:flex;align-items:center;justify-content:flex-end;padding-top:.4rem;padding-bottom:.4rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitTitleRate_1x5pg_26 ._icon_1x5pg_37{font-size:.42667rem;margin-right:.16rem}._unitTitleRate_1x5pg_26 ._rate_1x5pg_41{color:#4991eb}._unitAudio_ml4u4_1{position:relative;display:flex}._nativeAudio_ml4u4_5{width:100%;height:1.06667rem}._htmlAudio_ml4u4_9{width:100%;height:1.06667rem;box-sizing:border-box;background:#ff8057;border-radius:.53333rem;padding:0 .32rem;z-index:9;display:flex;align-items:center;justify-content:space-between;color:#fff}._htmlAudio_ml4u4_9 ._htmlTimes_ml4u4_22{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#fff;line-height:.58667rem}._htmlAudio_ml4u4_9 ._iconAudio_ml4u4_31{margin-right:.16rem;font-size:.48rem}._htmlAudio_ml4u4_9 ._audioStatus_ml4u4_35{font-size:.37333rem}._answerAnalysis_1mdns_1 ._analysisResult_1mdns_1{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;padding-bottom:.53333rem}._answerAnalysis_1mdns_1 ._analysisResult_1mdns_1 ._aImg_1mdns_9{font-size:.48rem;margin-right:.16rem}._answerAnalysis_1mdns_1 ._success_1mdns_13{color:#3b8df3}._answerAnalysis_1mdns_1 ._error_1mdns_16{color:#f44541}._answerAnalysis_1mdns_1 ._analysisTitle_1mdns_19{padding-bottom:.26667rem}._answerAnalysis_1mdns_1 ._analysisMessage_1mdns_22{font-size:.4rem;color:#333;line-height:.56rem;text-align:justify;padding-bottom:.13333rem}._unitSubject_1pzvj_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;overflow:hidden;border-radius:.26667rem}._unitSubject_1pzvj_1+._unitSubject_1pzvj_1{margin-top:.32rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._option_1pzvj_23{margin-right:.26667rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26{word-break:break-all}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26 .van-image{height:1.01333rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26 .van-image__img{width:auto}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._valueAudio_1pzvj_35{width:4.26667rem}._unitAnswers_1pzvj_11 ._active_1pzvj_38{background-color:#ffebdd;color:#f67146}._unitAnswers_1pzvj_11 ._answerContent_1pzvj_42{display:flex;align-items:center}._unitAnswers_1pzvj_11 ._answerChoice_1pzvj_46{font-size:.42667rem;font-weight:500;line-height:.69333rem}._anserList_1yzxl_1{min-height:20vh;padding:.53333rem 0}._anserList_1yzxl_1 ._status_1yzxl_5{display:flex;align-items:center;padding:0 .53333rem .8rem}._anserList_1yzxl_1 ._status_1yzxl_5 span{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#333}._anserList_1yzxl_1 ._status_1yzxl_5 span+span{margin-left:.8rem}._anserList_1yzxl_1 ._status_1yzxl_5 i{display:inline-block;width:.48rem;height:.48rem;background-color:#eaeaea;border-radius:50%;margin-right:.21333rem}._anserList_1yzxl_1 ._aList_1yzxl_28{margin:0 .26667rem}._anserList_1yzxl_1 ._aList_1yzxl_28 .van-grid-item__content{padding:0 0 .34667rem}._anserList_1yzxl_1 ._aList_1yzxl_28 span{display:inline-flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;background:#eaeaea;font-size:.48rem;font-weight:500;color:#777;border-radius:50%}._anserList_1yzxl_1 ._aList_1yzxl_28 ._answered_1yzxl_46{background:#ff8057;color:#fff}._anserList_1yzxl_1 ._aList_1yzxl_28 ._yes_1yzxl_50{background-color:#71b0ff;color:#fff}._anserList_1yzxl_1 ._aList_1yzxl_28 ._no_1yzxl_54{background-color:#ff8486;color:#fff}._unitSubject_1ff9w_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_1ff9w_1+._unitSubject_1ff9w_1{margin-top:.32rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._option_1ff9w_22{margin-right:.26667rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25{word-break:break-all}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25 .van-image{height:1.01333rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25 .van-image__img{width:auto}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._valueAudio_1ff9w_34{width:4.53333rem}._unitAnswers_1ff9w_10 ._active_1ff9w_37{background-color:#ffebdd;color:#f67146}._unitAnswers_1ff9w_10 ._answerContent_1ff9w_41{display:flex;align-items:center}._unitAnswers_1ff9w_10 ._answerChoice_1ff9w_45{font-size:.42667rem;font-weight:500;line-height:.69333rem}._unitAnswers_1ff9w_10 .sortable-ghost{opacity:.5;background:#c8ebfb}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54{display:flex;align-items:center;justify-content:space-between;margin-top:.66667rem;padding-top:.8rem;padding-bottom:.8rem}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54 ._tips_1ff9w_62{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54 .van-button{min-width:2.24rem;height:.82667rem;line-height:.82667rem;font-size:.4rem;font-weight:500}._unitAnswers_1ff9w_10 ._itemsContainer_1ff9w_75{display:inline-block;margin-right:.26667rem;margin-bottom:.21333rem}._unitAnswers_1ff9w_10 ._items_1ff9w_75,._unitAnswers_1ff9w_10 ._imgs_1ff9w_81{min-width:1.49333rem;height:.96rem;font-size:.42667rem;font-weight:500;border-radius:.10667rem;background:#ffebdd;color:#f67146;justify-content:center}._unitAnswers_1ff9w_10 ._imgs_1ff9w_81{height:1.49333rem;width:auto}._unitAnswers_1ff9w_10 ._imgs_1ff9w_81 .van-image__img{width:auto}._unitSubject_cexcs_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_cexcs_1+._unitSubject_cexcs_1{margin-top:.32rem}._unitAnswers_cexcs_10{position:relative;padding-top:.53333rem;padding-bottom:.53333rem}._unitAnswers_cexcs_10 ._answerItem_cexcs_15{position:relative;z-index:2;margin-bottom:.4rem;display:flex;align-items:center;justify-content:space-between}._unitAnswers_cexcs_10 ._answerItem_cexcs_15:last-child{margin-bottom:0}._unitAnswers_cexcs_10 ._img_cexcs_26{width:2.53333rem}._unitAnswers_cexcs_10 ._unitItem_cexcs_29{display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:.16rem;border:.05333rem solid #d5d5d5;overflow:hidden;height:1.44rem;width:2.53333rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;text-align:center}._unitAnswers_cexcs_10 ._active_cexcs_45{border:.05333rem solid #ff8057;color:#f67146}._canvasSection_cexcs_49{position:absolute;top:0;left:0}._resetBtnGroup_cexcs_54{text-align:right;padding-bottom:.42667rem}._resetBtnGroup_cexcs_54 .van-button{min-width:2.24rem;line-height:.82667rem;height:.82667rem;font-size:.4rem;font-weight:500}._unitSubject_vaiy0_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_vaiy0_1+._unitSubject_vaiy0_1{margin-top:.32rem}._unitAnswers_vaiy0_10{padding-top:.53333rem;padding-bottom:.53333rem}._playSection_vaiy0_14{padding:.4rem .32rem;background:#ffebdd;border-radius:.26667rem}._playSection_vaiy0_14 ._img_vaiy0_19{width:1.2rem;height:1.2rem;margin-right:.32rem}._playSection_vaiy0_14 ._playTitle_vaiy0_24{font-size:.42667rem;font-weight:500;color:#333}._playSection_vaiy0_14 ._playBtn_vaiy0_29{flex-shrink:0;font-size:.4rem;font-weight:500;color:#fff;height:.82667rem;line-height:.82667rem}._unitScoreNum_vaiy0_37{margin-top:.66667rem;padding-top:.53333rem;text-align:center}._unitScoreNum_vaiy0_37 ._score_vaiy0_42{font-size:.85333rem;font-weight:700;color:#f67146}._unitScoreNum_vaiy0_37 ._scoreTitle_vaiy0_47{font-size:.42667rem;font-weight:500;color:#333;padding:.10667rem 0 .26667rem}._unitScoreNum_vaiy0_37 ._scoreTips_vaiy0_53{font-size:.32rem;color:#aaa}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.fecc738b.js","./index-legacy.761bf286.js","./index-legacy.11f1ea5f.js","./index-legacy.918b8c74.js"],(function(e){"use strict";var t,n,o,r,i,a,l,s,u,c,d,f,p,h,m,g,v,_,b,y,w,A,x,S,E,T,D,I,O,C;return{setters:[function(e){t=e.bQ,n=e.ao,o=e.d,r=e.r,i=e.b7,a=e.c,l=e.a5,s=e.q,u=e.y,c=e.F,d=e.al,f=e.bR,p=e.bS,h=e.bT,m=e.$,g=e.Z,v=e.B,_=e._,b=e.R,y=e.an,w=e.e,A=e.bJ,x=e.f,S=e.p,E=e.bL},function(e){T=e.I},function(e){D=e.G,I=e.a},function(e){O=e.T},function(e){C=e.C}],execute:function(){e("i","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAABohJREFUeF7tnd1vVEUUwH+nC/qgIBp8IFGjIjZFeOFBo6AofwGE0C1GIGoEv5DEmECi0CnVBBJjguAHGEgAI10Ikb8ABUUjDzwA0lQ+oyY8QARFExW2x9x7t3W73e7euztTtnvnvjQhc8+c+e0w95wzZ84IDfKoMS1kelvJayvS0oryMOhDwCSECSgTwr/Bo1xDuBb+hasgZxB+Qvv7yEgf+bY+Maa/EYYmN1MJXb/4EbR/Hso8YC5wpyV9rgCHEA4iLQdl3Z4fLclNLGbUAWt3dip5WQK6BHgwsca1vXAOZDcZ3S1rc2drE1HbW6MCWPcuynBKFiPyMsoTwKj0WwaJInyH6qdM1z3Svi9fG7b4bzkdqJpFtyCZZaCrUabGV2sUWgpnQTai+Z1i9v3rqkdngNVkl4K+B3KPK+XtyNVfQd4Wk9tlR95QKdYBq8nOAD4CnnKhsEOZh4HXxORO2uzDGmDdunw8F//oBn0TGG9TyVGUdR3kA6ZMXCsrtl230a8VwGo67gdyoI/aUOrmy5CjQFZMz4V6dakbsHZ1LADdjlqzYesdk533hSsgL0pnz5f1CKwLsJr2d0DW30Szq56xx3lXQdeJ2ftunMbl2tQEWA0tkN0EvF5rx2PsvS2QWyWGxO53YsAF23YXqtkxBqk+dUVyaH5pUps5EeBw5krHF6mDO/DThJB7nk0ykxMCzm5O0bIw0ozfIia3Mu5/h9iACx+07riCm7udro374YsFODTFVPc3sbWQdD4oIgvjmHBVAYdOhOixprNzkyItbR/YySqzqjkjFQEX3N9vm8dDq5fqMMpHmTJxTiW3ujJg07EhDDX6pwIB2SimZ81IDUYEXIiKHRvDgZvRmhZBUGjWSFG4SoAPjcGQ42hBLe3nsJhcsKc47CkLOAqWs/NmaTtG+11WLmg/DHDoCiPBdkqD70Q02s8Q7Izo1FJXejjgro6XUN3WaOqPCX1Elktnz2fFug4BHO7+9rb0NdwG5ZigG7phZ2nrby3erR4K2LQ/F+YP+KcOArpEzN7PB+NDxZLUZI9AmLdg95n+GNzXBuPG2ZVbq7QbN+DnXjj1Q60SRn5POCKduTnDAEcZN5y2Hm94ehHMXWh/IDYkHtoPX++zIWnIPCXDtIEMosElQk2HAe203RtvbYXb7rAu1orAv36H91dYETVUiHSJ6THBvxUBzgY5W/ZzxVZthkl3OxiEBZFXL8Gm2KHdJB2eE5MLM5lCwAW3+EQSCbHbzpgN81+FTCb2K6PSMJ+HAx/DyeCz4+SZGbjPEeCu7EqUD510Ewi9awrcOw0yDZKPkr8Ov5yG3y46GzLCG9KZ2zwwg4O9//nuekul5ANicgskzCyn97LF5OdU0iwz6CvQNlm0O9tGnlOeigMCGaaLmvb5IHWlBzlQrUlE6gLRro7VqG5okhE11jBE1oia7A7g+cbSrFm0kR0B4CDx+MlmGVKDjeObAPBxYGaDKdYs6pwIAJ8HggRqd0+aomlDKV4IAF8CJjujm75oWjHKy6Jd2b9RbnUGOJXRtAJN4R/3gNMZTYsIh4BdLxHpjaYFiMMl4hzKA86WiLRG06IZfN6baU5nFse9o+EW8GFR07Ed9AW3/aRVeuAq+2CPu18/Cvb4cKU7wkG40gfc3fGNAu5+y8gR4WjLKBCuJus3Pe1TjjY9Q8Cut+3TGE0r2bYPqpS4STxJazStpWVGUE7MfepUOqNpQ1OnonXYUfJfKqNp5ZL/XKWvpi+apmXTVwsfu29RZlv/oKYpN22kBOxomfBHCOqfXJWOEPhDMPXxrXYIJlom/DGumilXO8YVLRP+IGJtgGMeRCy4zv4obXLK8Y7SDshVk/WHweNDTnYYvDCLA/fZlzOoDrm2cgYF784X5KgKuMaCHCHgqKKqLykzImSpr6RMYRb7okjlANsoijT4wfNlvUoR2yvr9b9VEVZa9YXpQiCWC9MVmW6+tCK4Ka0Yrce+OKjT4qCDrrRkfHnbquZb1KBqacVycnyB5ph0awVc8uHzJcYr8K5pBhfL80XyK8/mugEPOiP+moeypK0ALnKr/UUlJZitAS6ylf1VO0WQrQMuAu0vi6rXiqhmrPjrzmq0g6uBHRYZGbiwD3kFeNz1D1tBPwW+B/2kKS7sK+uk+Csnk87P2tuH5cSEZ5xemqp8ZfuOuCQjdvaRS6JEZEuXXvurrUB07S/hdb+3D7n2F/6EgWt/OYNIXyNe+/sfZeDDVd1yhKYAAAAASUVORK5CYII=");const k=e("e",new t),M={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},P=e("Q",{RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"}),R="单选题",N="多选题",j="连线题",L="排序题",B="演奏题",F="IMAGE",z="TXT",H="AUDIO";var U={unitSubjectTitle:"_unitSubjectTitle_1x5pg_1",unitScore:"_unitScore_1x5pg_7",unitDetail:"_unitDetail_1x5pg_14",unitTitleImg:"_unitTitleImg_1x5pg_23",unitTitleRate:"_unitTitleRate_1x5pg_26",icon:"_icon_1x5pg_37",rate:"_rate_1x5pg_41"};var X="_unitAudio_ml4u4_1",Y="_htmlAudio_ml4u4_9",G="_htmlTimes_ml4u4_22",V="_iconAudio_ml4u4_31",q="_audioStatus_ml4u4_35",W={};
- /*!
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- !function(e){!function(){var t=function(){this.init()};t.prototype={init:function(){var e=this||o;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||o;if(e=parseFloat(e),t.ctx||d(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||o;t.ctx||d(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||o,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||o,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,d()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(c){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",i=r.match(/OPR\/([0-6].)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,l=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),s=r.match(/Version\/(.*?) /),u=l&&s&&parseInt(s[1],10)<15;return e._codecs={mp3:!(a||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,e._releaseHtml5Audio(o)}catch(n){e.noAudio=!0;break}for(var r=0;r<e._howls.length;r++)if(!e._howls[r]._webAudio)for(var i=e._howls[r]._getSoundIds(),a=0;a<i.length;a++){var l=e._howls[r]._soundById(i[a]);l&&l._node&&!l._node._unlocked&&(l._node._unlocked=!0,l._node.load())}e._autoResume();var s=e.ctx.createBufferSource();s.buffer=e._scratchBuffer,s.connect(e.ctx.destination),void 0===s.start?s.noteOn(0):s.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),s.onended=function(){s.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||o;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||o;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&o.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&o.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var o=new t,r=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};r.prototype={init:function(e){var t=this;return o.ctx||d(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=o.usingWebAudio&&!t._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(o.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var r,a;if(e._format&&e._format[n])r=e._format[n];else{if("string"!=typeof(a=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(r=/^data:audio\/([^;,]+);/i.exec(a))||(r=/\.([^.]+)$/.exec(a.split("?",1)[0])),r&&(r=r[1].toLowerCase())}if(r||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),r&&o.codecs(r)){t=e._src[n];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&l(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var i=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(i++,r=n._sounds[a]._id);1===i?e=null:r=null}}var l=r?n._soundById(r):n._inactiveSound();if(!l)return null;if(r&&!e&&(e=l._sprite||"__default"),"loaded"!==n._state){l._sprite=e,l._ended=!1;var s=l._id;return n._queue.push({event:"play",action:function(){n.play(s)}}),s}if(r&&!l._paused)return t||n._loadQueue("play"),l._id;n._webAudio&&o._autoResume();var u=Math.max(0,l._seek>0?l._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(l._rate),f=n._sprite[e][0]/1e3,p=(n._sprite[e][0]+n._sprite[e][1])/1e3;l._sprite=e,l._ended=!1;var h=function(){l._paused=!1,l._seek=u,l._start=f,l._stop=p,l._loop=!(!l._loop&&!n._sprite[e][2])};if(!(u>=p)){var m=l._node;if(n._webAudio){var g=function(){n._playLock=!1,h(),n._refreshBuffer(l);var e=l._muted||n._muted?0:l._volume;m.gain.setValueAtTime(e,o.ctx.currentTime),l._playStart=o.ctx.currentTime,void 0===m.bufferSource.start?l._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):l._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(n._endTimers[l._id]=setTimeout(n._ended.bind(n,l),d)),t||setTimeout((function(){n._emit("play",l._id),n._loadQueue()}),0)};"running"===o.state&&"interrupted"!==o.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(l._id))}else{var v=function(){m.currentTime=u,m.muted=l._muted||n._muted||o._muted||m.muted,m.volume=l._volume*o.volume(),m.playbackRate=l._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,h(),r.then((function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",l._id)})).catch((function(){n._playLock=!1,n._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),l._ended=!0,l._paused=!0}))):t||(n._playLock=!1,h(),n._emit("play",l._id)),m.playbackRate=l._rate,m.paused)return void n._emit("playerror",l._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||l._loop?n._endTimers[l._id]=setTimeout(n._ended.bind(n,l),d):(n._endTimers[l._id]=function(){n._ended(l),m.removeEventListener("ended",n._endTimers[l._id],!1)},m.addEventListener("ended",n._endTimers[l._id],!1))}catch(i){n._emit("playerror",l._id,i)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var _=window&&window.ejecta||!m.readyState&&o._navigator.isCocoonJS;if(m.readyState>=3||_)v();else{n._playLock=!0,n._state="loading";var b=function(){n._state="loaded",v(),m.removeEventListener(o._canPlayEvent,b,!1)};m.addEventListener(o._canPlayEvent,b,!1),n._clearTimer(l._id)}}return l._id}n._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var r=t._soundById(n[o]);if(r&&!r._paused&&(r._seek=t.seek(n[o]),r._rateSeek=0,r._paused=!0,t._stopFade(n[o]),r._node))if(t._webAudio){if(!r._node.bufferSource)continue;void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),t._cleanBuffer(r._node)}else isNaN(r._node.duration)&&r._node.duration!==1/0||r._node.pause();arguments[1]||t._emit("pause",r?r._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var o=n._getSoundIds(e),r=0;r<o.length;r++){n._clearTimer(o[r]);var i=n._soundById(o[r]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(o[r]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&n._clearSound(i._node))),t||n._emit("stop",i._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),i=0;i<r.length;i++){var a=n._soundById(r[i]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,o.ctx.currentTime):a._node&&(a._node.muted=!!o._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]){var a=r._getSoundIds(),l=a.indexOf(i[0]);l>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var s=0;s<t.length;s++)(n=r._soundById(t[s]))&&(n._volume=e,i[2]||r._stopFade(t[s]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*o.volume()),r._emit("volume",n._id));return r},fade:function(e,t,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,n,r)}}),i;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),i.volume(e,r);for(var a=i._getSoundIds(r),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if(r||i._stopFade(a[l]),i._webAudio&&!s._muted){var u=o.ctx.currentTime,c=u+n/1e3;s._volume=e,s._node.gain.setValueAtTime(e,u),s._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(s,e,t,n,a[l],void 0===r)}}return i},_startFadeInterval:function(e,t,n,o,r,i){var a=this,l=t,s=n-t,u=Math.abs(s/.01),c=Math.max(4,u>0?o/u:o),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var r=(Date.now()-d)/o;d=Date.now(),l+=s*r,l=Math.round(100*l)/100,l=s<0?Math.max(n,l):Math.min(n,l),a._webAudio?e._volume=l:a.volume(l,e._id,!0),i&&(a._volume=l),(n<t&&l<=n||n>t&&l>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,o=this,r=arguments;if(0===r.length)return o._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=o._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],o._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=o._getSoundIds(t),a=0;a<i.length;a++)(n=o._soundById(i[a]))&&(n._loop=e,o._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(i[a])&&(o.pause(i[a],!0),o.play(i[a],!0)))));return o},rate:function(){var e,t,n,r=this,i=arguments;if(0===i.length)t=r._sounds[0]._id;else if(1===i.length){var a=r._getSoundIds(),l=a.indexOf(i[0]);l>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var s=0;s<t.length;s++)if(n=r._soundById(t[s])){r.playing(t[s])&&(n._rateSeek=r.seek(t[s]),n._playStart=r._webAudio?o.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,o.ctx.currentTime):n._node&&(n._node.playbackRate=e);var u=r.seek(t[s]),c=(r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-u,d=1e3*c/Math.abs(n._rate);!r._endTimers[t[s]]&&n._paused||(r._clearTimer(t[s]),r._endTimers[t[s]]=setTimeout(r._ended.bind(r,n),d)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length)n._sounds.length&&(t=n._sounds[0]._id);else if(1===r.length){var i=n._getSoundIds(),a=i.indexOf(r[0]);a>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var l=n._soundById(t);if(l){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var s=n.playing(t)?o.ctx.currentTime-l._playStart:0,u=l._rateSeek?l._rateSeek-l._seek:0;return l._seek+(u+s*Math.abs(l._rate))}return l._node.currentTime}var c=n.playing(t);c&&n.pause(t,!0),l._seek=e,l._ended=!1,n._clearTimer(t),n._webAudio||!l._node||isNaN(l._node.duration)||(l._node.currentTime=e);var d=function(){c&&n.play(t,!0),n._emit("seek",t)};if(c&&!n._webAudio){var f=function(){n._playLock?setTimeout(f,0):d()};setTimeout(f,0)}else d()}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var o=0;o<t._sounds.length;o++)if(!t._sounds[o]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,o=t._soundById(e);return o&&(n=t._sprite[o._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(o._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),o._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=o._howls.indexOf(e);r>=0&&o._howls.splice(r,1);var i=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===e._src||e._src.indexOf(o._howls[n]._src)>=0){i=!1;break}return a&&i&&delete a[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var r=this["_on"+e];return"function"==typeof t&&r.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this,r=o["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<r.length;i++){var a=n===r[i].id;if(t===r[i].fn&&a||!t&&a){r.splice(i,1);break}}else if(e)o["_on"+e]=[];else{var l=Object.keys(o);for(i=0;i<l.length;i++)0===l[i].indexOf("_on")&&Array.isArray(o[l[i]])&&(o[l[i]]=[])}return o},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this,r=o["_on"+e],i=r.length-1;i>=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(o,r[i].fn),0),r[i].once&&o.off(e,r[i].fn,r[i].id));return o._loadQueue(e),o},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var r=!(!e._loop&&!t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&r&&t.stop(e._id,!0).play(e._id),t._webAudio&&r){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=o.ctx.currentTime;var i=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),i)}return t._webAudio&&!r&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),o._autoSuspend()),t._webAudio||r||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;o>=0;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=o.ctx.createBufferSource(),e._node.bufferSource.buffer=a[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,o.ctx.currentTime),this},_cleanBuffer:function(e){var t=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=o._scratchBuffer}catch(n){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=o._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),e._node.gain.setValueAtTime(n,o.ctx.currentTime),e._node.paused=!0,e._node.connect(o.masterGain)):o.noAudio||(e._node=o._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(o._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*o.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(o._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var a={},l=function(e){var t=e._src;if(a[t])return e._duration=a[t].duration,void c(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);u(o.buffer,e)}else{var i=new XMLHttpRequest;i.open(e._xhr.method,t,!0),i.withCredentials=e._xhr.withCredentials,i.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){i.setRequestHeader(t,e._xhr.headers[t])})),i.onload=function(){var t=(i.status+"")[0];"0"===t||"2"===t||"3"===t?u(i.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+".")},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(i)}},s=function(e){try{e.send()}catch(t){e.onerror()}},u=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(a[t._src]=e,c(t,e)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(e).then(r).catch(n):o.ctx.decodeAudioData(e,r,n)},c=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},d=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(i){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),t=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());o._navigator&&!r&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:o._volume,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};e.Howler=o,e.Howl=r,void 0!==n?(n.HowlerGlobal=t,n.Howler=o,n.Howl=r,n.Sound=i):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=o,window.Howl=r,window.Sound=i)}(),
- /*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;return o.ctx&&o.ctx.listener?(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e?o._pos:(o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,t,n,o,r,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var l=a._orientation;return t="number"!=typeof t?l[1]:t,n="number"!=typeof n?l[2]:n,o="number"!=typeof o?l[3]:o,r="number"!=typeof r?l[4]:r,i="number"!=typeof i?l[5]:i,"number"!=typeof e?l:(a._orientation=[e,t,n,o,r,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,o,r,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,n)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var i=o._getSoundIds(n),a=0;a<i.length;a++){var l=o._soundById(i[a]);if(l){if("number"!=typeof e)return l._stereo;l._stereo=e,l._pos=[e,0,0],l._node&&(l._pannerAttr.panningModel="equalpower",l._panner&&l._panner.pan||t(l,r),"spatial"===r?void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):l._panner.setPosition(e,0,0):l._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),o._emit("stereo",l._id)}}return o},Howl.prototype.pos=function(e,n,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,n,o,r)}}),i;if(n="number"!=typeof n?0:n,o="number"!=typeof o?-.5:o,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,n,o]}for(var a=i._getSoundIds(r),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if("number"!=typeof e)return s._pos;s._pos=[e,n,o],s._node&&(s._panner&&!s._panner.pan||t(s,"spatial"),void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):s._panner.setPosition(e,n,o)),i._emit("pos",s._id)}}return i},Howl.prototype.orientation=function(e,n,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,n,o,r)}}),i;if(n="number"!=typeof n?i._orientation[1]:n,o="number"!=typeof o?i._orientation[2]:o,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,n,o]}for(var a=i._getSoundIds(r),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if("number"!=typeof e)return s._orientation;s._orientation=[e,n,o],s._node&&(s._panner||(s._pos||(s._pos=i._pos||[0,0,-.5]),t(s,"spatial")),void 0!==s._panner.orientationX?(s._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),s._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):s._panner.setOrientation(e,n,o)),i._emit("orientation",s._id)}}return i},Howl.prototype.pannerAttr=function(){var e,n,o,r=this,i=arguments;if(!r._webAudio)return r;if(0===i.length)return r._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(o=r._soundById(parseInt(i[0],10)))?o._pannerAttr:r._pannerAttr;e=i[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),r._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:r._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:r._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:r._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:r._panningModel})}else 2===i.length&&(e=i[0],n=parseInt(i[1],10));for(var a=r._getSoundIds(n),l=0;l<a.length;l++)if(o=r._soundById(a[l])){var s=o._pannerAttr;s={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:s.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:s.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:s.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:s.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:s.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:s.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:s.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:s.panningModel};var u=o._panner;u?(u.coneInnerAngle=s.coneInnerAngle,u.coneOuterAngle=s.coneOuterAngle,u.coneOuterGain=s.coneOuterGain,u.distanceModel=s.distanceModel,u.maxDistance=s.maxDistance,u.refDistance=s.refDistance,u.rolloffFactor=s.rolloffFactor,u.panningModel=s.panningModel):(o._pos||(o._pos=r._pos||[0,0,-.5]),t(o,"spatial"))}return r},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}(W);var K=o({name:"unit-audio",props:{src:{type:String,default:""}},setup(e){const t=r({audioStatus:"stopped",duration:0}),n=new W.Howl({src:e.src+"?t="+ +new Date,format:["mp3"]});return n.on("load",(e=>{console.log(n.duration()),t.duration=Math.ceil(n.duration())})),n.on("end",(e=>{t.audioStatus="stopped"})),k.on("unitAudioStop",(()=>{n.stop(),t.audioStatus="stopped"})),i((()=>{n.off("load")})),()=>a("div",{class:X},[a("div",{class:Y,onClick:e=>{e.stopPropagation(),"stopped"===t.audioStatus?(k.emit("unitAudioStop"),n.play(),t.audioStatus="paused"):"paused"===t.audioStatus&&(n.pause(),t.audioStatus="stopped")}},[a("div",{class:G},[a(l,{class:V,name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA5lJREFUWEfNmEvIVlUUhp83wpoEDbpACRURNQil0CBRGkQXu0gONKqBWUZgKUqXQVF2oaIyirJAUrNBRSkImV1oYtEFSqSkgQZREwMvRJADFWnF+7d2HI/n/Od8X/rzHTijs/dez17rXWvtfcSIPRqUJyLOAm4ArgIuBc4HTst1/gJ+A34CvgA+lrR3EBu9gSJiJvAwMBs4uaeRI8AnwAuSvuozpxMoIi4AXgNuzAUPA58BnwPbgF+AP/Pb6cCFwDTgGuA6YFJ+2wIskfTreGDjAkXEbcDqDImNvgK8Lml/n91GxBnAfcAywLAO6b2S3mub3woUEY8DTwAeswG4f1A9FKOpu1XAPCC8rqSnmqAagRLmSeBv4DFJz/bxSNeYiHgEeBo4CVjRBHUMUIbpndzJ7ZLebzIUERcBczLTzgF2SHqoB9StwLvp+Tvq4TsKKAX8Y2rm0SbPRMSVwPPArJrx3ZImdwH5e3rqmdTU1KrQ60AfZTZtkDS/unhE2M0GeSB39wewGdgK7AZ+kLSvD1BCfZCa2iLppjLvP6CI8I6/zBS+uCrghNkIzAUOAc8BL0k60BegPi6Fviuzb1apU1WgD4Gbm8QWES8CDwJO91skfT0sSM3rKzKTN0uyHsdS2jF1O7DbnVXnVutMasYALohXV2EiwvNdBKemIetvmySndueTdcp2LQfb3VuA7gTesiYKaaWGOIwOp2uHS8HYExFTcs7lNcvbgYWSdnQS/btOiYznrC9AhjHUUkluE8WoU/tnwAI+r2gmYdyb3FR/Bz7NKdcDLgGuyDP7QEXEEuBVYL2khQXo+3T9DEnfVoCcUSvL4PSM57iH2TObgAWSDODdGvDtFL89Na0rfCmJbzLU0wuQ09V95+xadhXPjbkzjU4HvkvPXFJgKpsw1M701BWSvNnWJ/W7xwkj6cwCdBA4xa8ki7eEzF39Wr+S3N3thUXAm8A6SXc3WYqItcBdwD2S1nQA+TTgUnJI0qldQE53d/zLStGbKKDGkLXsfkJC1ijqFqAJEXVj2rfFfiLSvrUwdkB5IyekMLa2jo4MOTGtI9O5lPCjWkSf8j/smIhobq4J1Hr8GNZgj4LYfvxIqNYD2vGGiojxD2gJ5DvYuEfY4wHW+wibUK7MnYf8YcEiov8hv9LDfCcbjWtQDWo0LooVqPpV+mXgjQGv0ouB5f/7Kl2BGp2fDVXhjszvmHo2jcwPq2HTfNB5/wC4HxNDoqwBYAAAAABJRU5ErkJggg=="},null),a("span",null,[t.duration,s('"')])]),a(l,{name:"stopped"===t.audioStatus?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAS1JREFUSEvN1rsuRUEUgOH/xzvoeBHxFioPQYIgoXVJXBKFikp0apWCaFDxBITQaBQKBdmykr0TOck5+2z7zORMOZnMN5c1a5Zkbmb2GC6wKIpxYBEYAw7Ux7Yn0nOHRVFcAdMl8gXsAZvq53/hOvAbGO2Y/A1YBU7UoilcB/aa8BaYV2+aoG3AcGJBp8CyGjuvbW3BCog73QJ21bjrrm1QYAU8AUvqWTdx0GDlXJb3+9AJpwLD+QGOgHX1vYJTgpXxAcyq59GRAwznWZ3MCb6oE7nAONIZ9SI1GEFzDKzlCJpI+pH27lM/i2wPP1LbNrCTOrVVyXtFfa3N3C3f4R0wN+jvKSJtJOcHfA1M/Skx9oGNlCVGFFEL5dEfJi+i+gmCpmOGqy5tuvp+xv8CviiKHYL2qIQAAAAASUVORK5CYII=":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",class:q},null)])])}}),Q=o({name:"answer-title",props:{index:{type:Number,default:1},name:{type:String,default:""},score:{type:Number,default:0},answerType:{type:String,default:""},extra:{type:Object,default:()=>({})},showRate:{type:Boolean,default:!1}},setup(e){const t=u((()=>e.answerType===P.CHECKBOX?N:e.answerType===P.LINK?j:e.answerType===P.SORT?L:e.answerType===P.PLAY?B:R)),n=u((()=>e.extra.mediaUrls?e.extra.mediaUrls.split(","):""));return()=>a(c,null,[a("div",{class:U.unitSubjectTitle},[e.index,s("、"),e.name,s(" "),a("span",{class:U.unitScore},[s("("),e.score||0,s("分)")]),a(O,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[t.value]})]),e.showRate&&a("div",{class:U.unitTitleRate},[a(l,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",class:U.icon},null),s("正确率:"),a("span",{class:U.rate},[e.extra.rightRate||0,s("%")])]),e.extra.questionDetail||n.value?a("div",{class:U.unitDetail},[a("div",{innerHTML:e.extra.questionDetail},null),n.value&&n.value.map((e=>e&&a(c,null,["mp3"===e.substr(-3)?a(K,{src:e,class:U.valueAudio},null):a(T,{class:[U.unitTitleImg,"answerTitleImg"],src:e},null)])))]):""])}});var J="_answerAnalysis_1mdns_1",Z="_analysisResult_1mdns_1",$="_aImg_1mdns_9",ee="_success_1mdns_13",te="_error_1mdns_16",ne="_analysisTitle_1mdns_19",oe="_analysisMessage_1mdns_22",re=e("a","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApFJREFUWEfNmMtrU0EUh7+TW21R3OnWJ/gAV4JV2lKsSF24DmhNzG0XNhUFd+JfUNwJim1dtKmtKGTtQhErpS1o0ZXgA8HHVneipGByZO4lMUlz7ySawszyzpk53/2dmTNnRmixaTq9B7zTqPaBHALdibAtmEb5AfIV9C0iS1B8LHNzn1pxIc0YazLp0bU1ieploAdoalyACCuI3KbwMy/5fNHmzzqxXhg5hRZvoRy0TRbbL7xDvCtyb/ppnF0kkPp+F7+5CXqxBUVszApylw6uSi5XaGTcEEiTwzvoLD0Cjto8/GP/KmuJM5Kf+VY/fh1QANNVWvzvENlITQgLif56qBqgMEy6uIHK1GOu0iH91eGrBUr5k6Cjtp9rb79MyXwuW56zAhTsplLxSRsXcLPcSsIbLO++ACjMM1vebPi6iUIM1tOvwyZPhUBp/yyqD+LziMDACdi9C5ZX4P2HeAUO7IfeHvj8BRaeg5ocGdNEzslc7mEIlMosAb2xA04OwHAmNCkWYWIKXrxsPOR4N2RHwfPC/plZeLZgC+GyzM/2iQ4N7SWx6aN17Yz4oULlFgV1rBvGqmCMvVFoOmcDUqS0TzTtZ1GdsFljQnD92t+/bqRUIxgDPn7DHmIzn8iYaCozD5y3AhmDKIcmfKbVK2ML7Xqn90VT/ivQI00BRUGVSuHwRMIe0lhH8tooZM6T7U0DRUFVT9C6MuXR30XTmQJKZ0tAZahL2VpVzHej1p3J6B0Y50hYcxDIuZA5uKgd2/bOJUbXjg6zC9t+uNZn9FYO1wDIufLDtQItUMmlEraczdWlIj9QybVrUADl0kWxEjqXrtIVKJceG6pLFmeeY2qgXHqwqi/wgmuTt3lwo570/gATF5asuw6doAAAAABJRU5ErkJggg=="),ie=o({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"回答正确"},errorFlagText:{type:String,default:"回答错误"}},setup:e=>()=>a("div",{class:J},[e.topic?a(c,null,[e.userResult?a("div",{class:[Z,ee]},[a(l,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA9tJREFUWEfNmFtsFFUYgL9/uttuqVwqFxWRWDBKE9AE0weFNF6wpeGhLUkJxERDTRQTTHwAjBLvD74awXAx3RpRa9pII0bRhgChF5VLUeRSRNSQQEggIUo0tbTnN2e32+3MbjszW0x2Huf85/+/+a9njhDyafhIywZvmGoDS0WkHGUuMHlYzXWEC6p6xoGuSNT5tu0p+T2MCQki3NCqBYN/04DR9Yo+DATaB6ggPTiyNVJCW9sqGfKz56u4Nq7LULNFYIGfsvHWFfoQ54UvGmXfeHJjAj3SrLFSNe8q8iyqvuCBYEVU0J3XxHnx4Frpz7Ynq6GauM6MoV+pakUgQyGFRORIP7Jib6Nc8W7NABqGOaSqEwqRH6OI9PUjlV4oF1AyTGph/hfPZHhD5Mg1kcrR4XMB1ceHtqvynN/X3cx1EXa0NxasS+kcAbLVJGjHTUvgoNQiqkhVqvoSQLbPDFw3Jyda2kEZvHK2JRROdhbaPpUAqm/W1WpMS64Kg+ybVgw15fDPAOw9AwOeFimOs6Z9rXyWBGoyXYouCaI4F5k7psDbNcL0kmSG7D+nbOlUlypButufcZbKyrjOM2p+DTEOQjHNmQpv1Qilk9L1c/FPZf3nbiA7ZqJRZ77UN+k6xWwLZSWg8NxSeHO5MK3Y3e5ajxtajmcqEXheapuGPhZ4MqCNwGJlt8Iby4UpMTdMx1lle7eS4R/rIvhE6uLmGKqLs1mqnAf3zRJ6/lBOXQ7Mwj0z4PVq4ZYiN8zXp5UPvs+GMqxbpFfqmswV0Blec0vKYMOjTuK1UeX9LmX/OX+oe2fCa9VCSaEbZs9JpfnwODAJ1XLVAvWDFnlNPV0BdYuSQCmoHT1Kx9mxocpvg1erhOKoG2b3CWXXUT+YBNC/YwJZt7+zQogUpJWrJl1u+4j3WXg7bH5CiHlgWn9UWnqDwKSBsobMLlfcBRsfE6IeqA8PK3tOpZEemA0vLxOKIm7PfHrM0PaTf5jTEjZk4yS1FVx8J7z0uFDoMbbrqGH3CXhwDmyy6x5oG6L2n8PA2IhJb6Cyv382vJLFA4fOGx66O9ODzT8oX54OCZMq+6CNcawcGW3W5tjO75Rv+sLDJDLINsYwo2PBrGQVTfKUdKoKt3Ur+37JDWZkdNjtYYZrtj5j+9TWTuWAnYg5PiPDNQEU8vgxf3qy+dmxMDikvNepdP6WI8nwNtfxI5cD2tQY2GQ/fxUu/TUxmIwDmlWXV0fY1Pfl1SHfQuXdb5CFyqsfxVTo8upXOgWVV5cNo4s4b65jRkPl1YWVt+XZ2adKlcH4XOk5XZEooa/0/gN75eEGM2i4wwAAAABJRU5ErkJggg==",class:$},null),e.rightFlagText]):a("div",{class:[Z,te]},[a(l,{name:re,class:$},null),e.errorFlagText])]):"",e.answerAnalysis&&a(c,null,[a("div",{class:[Z,ne]},[a(l,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABllJREFUWEedmHlsFVUUxn+3UAqUVagSFhUQFEUWLYQYIEbkD0wMrQU1kogaARHFqJRVAVkMUuAPJQImGKNgwlqq7CWIkrpgIQRUSqSIRVnCUrpA2TrXnHdn3rsznXkW5p/33syd+777ne9895yrCLlWFOvU6gqySGG41mSiaO/U0lwDjgb51PLpfo/d0+CE3Jfp3XeqtOaUoynWUFDdgU2fZaobwb9XwRtL9uhsxyEP6CrPgn/qgQkCCwPjG2stxH23VCtyP85S+TaGOKDZs3VKs8EsUIpJWqOEhviEFrAYEwGW4mA8Nur+eZxRG7ij0FqzKOMQU2fPVvKIOKBFu/VCINdDeyvMvJhp3vp8XwijHjgbbN3w5i0boSbHAUmYtGZDjBlLB/Vd+fQnDZtzdwYAuXPZjPrYTehLK0XO8hyVr0TAVZUcsTWTLCTxkFmCnjHUMDRnhwHmiTz4PSh8n+40peoSPdTiPXqkdlgbxoxMnNEMLtXA1ZtuJgX1oeH5vgbI1wcSYIJMpDWEVk3g34qQeVwm0TyrFn+nVzkOozxAdpjSG8Gbg+DCZfiyGCqvBhiw0z4s1K5WWqTBhIFwZzN4bxuU1yRsw2YJxWq1aLcu0Zr7w+Isy87qBQ+1M6BW/Ag1LlO2F/kyJ+BFwsykxw3T+0/Cyn2GRTussdDKJIqjKm+3rnQcmsuAuIlZYZF7T/eEB+6CT/ZChbs6m0nPJMOAtWwMM56Eg6fgq/1Q6yQJmaJKfbRLrCCAOInzesLMSIfMTtA9A1o3hQYpJqTHL8D+f+D3M5ajuwyECj7AqFpQ6AKyNRDcFqxnKQqG9YAB94J8j7pKz8MXxSbUPk8LsQI7+9SHAigCQCAtYyy81B+6tAmHceU61NyANunmefU1WPI9nKqMtoKgxaj5Ow0gn6gDW4X3fERveLRTNCs7SmBrCQzuAtk9ISUFzl+GOYVQc93aigKbcjxBRNfzdmgdKtBASndqBeMfA5UkTCLYvcdhw2HI7Aij+xnwW4/AxsOBRVtRsbWl5uzwh0yyQkQqgy5eNisUwM/1gUc6RrNjP9lXZtJ74kBjGRK6twvgpmPSv226mf9MJZytTmhMIqE+2O7PsqlDoGkjM/21mzBru3l55lBIT6sfIBk1txDaNYcxA8w78rv0AizLgSap5l7VNRi33u/uapYAsujr3d5MJNeZKpDVpjaA+U/VH4yMXHMQDp2G+cPMe58Wwc9lMLgzdGhpFnmiHH447he8mrktIWp5MWxjFLedd4uA/i6HY+dhSDcDaPlPUPRXeFXp2UIsZO9vdQElqQ5l4NxhiVDeGleJkJWcC9/D7EJQzdhiNJTM/uX56Ezo0+F2oID40+sb4XptEpN0s1pN32yJOgKYALqvLbwx8PYASdqvOhBen8cl4gGattnyoZBOwu40XukHfeuZ+h708iswZYvJKNtvQitH0dCUb90s8/aYsILeRS/injgI7mldP6ZkG5m/C45d8HtNsnJFTXYBJat77bK1UUN4oS/0vzu5a5eVw9IiOHnJn1mhfZ2Q4JhxKvcbrX3FUtS+Fth/pg+Bzm3MykWscjVMMWWIXK+th0tuhRnaOoW1WRKydwt0pYbmSbPMLUVFBN4KBZDs+it/SZhbi8awNNswN3YdVIhuAtVhcPGBGqlKAJU4UsLahVJEW2zXNVIFdm0D56pBTFAmln1QCja5Xl1nCrY6RpskkzUcVe8U6FW1DqNCW+RAc2dn3PQnoFsG5B+GohMGhHQVM4YYhl5e42ZWRKkR0Z+tVm8V6JG6lrXx1UdVdHb7LHX2g5DTC/44A7+dNYBaN4Gh3eHPczBtW/gBRJ3ay503NoG0QWOLdWpaGUccTVefY0eIzhsj7z/zMAzqAnc0NYDEkQ+fhpW/mtI1WSNgh9JgobRc0yNWbk3YoLM1ppWuk3ERRy8+k3NnjDI7X0cTONKJrUSONjQ5hWNVfrz+G79eL3Q0uaGHDFbXEHYOFFkCh+gnyExsLZq8XeOswwa5Kccxp3uywNFMchxUWKcQBsY+rIrZQtRhVkCDHjPaYdGu00wleBzjbQZj1upsR5MnmgqmrIyJOkgIdeBgf+f18K5mFORKmOyNKLRkH7tCp15vSZaG4Y5Dpta0dyzz/L+Gz7dXJbKoSmOO9JSm4CJs2j+u7pHef31/i4JLMvf4AAAAAElFTkSuQmCC",class:$},null),s("答案解析")]),a("div",{class:oe},[e.answerAnalysis])])])});var ae="_unitSubject_1pzvj_1",le="_unitAnswers_1pzvj_11",se="_unitAnswer_1pzvj_11",ue="_option_1pzvj_23",ce="_value_1pzvj_26",de="_valueAudio_1pzvj_35",fe="_active_1pzvj_38",pe="_answerContent_1pzvj_42",he="_answerChoice_1pzvj_46";e("C",o({name:"choice-question",props:{value:{type:Array,default:()=>[]},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(e,{emit:t}){const n=u((()=>{const t=e.data.answers||[],n=e.value||[];return t.forEach((e=>{const t=n.findIndex((t=>t.answerId===e.examinationQuestionAnswerId));e.checked=-1!==t})),t}));return()=>a(c,null,[a("div",{class:ae},[a(Q,{index:e.index,name:e.data.name,showRate:e.showRate,score:e.data.totalScore,answerType:"radio"===e.type?P.RADIO:P.CHECKBOX,extra:{questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls,rightRate:e.data.rightRate}},null),a("div",{class:le},[n.value.map(((n,o)=>a("div",{class:[se,n.checked&&fe],onClick:()=>(n=>{if(console.log(n,"onSelect"),e.readOnly)return;const o=e.value||[],r={answerId:n.examinationQuestionAnswerId,answer:n.questionAnswer,answerExtra:n.questionExtra};if(console.log(r,"onSelect"),"checkbox"===e.type){const e=o.findIndex((e=>e.answerId===n.examinationQuestionAnswerId));e>=0?(o.splice(e,1),t("update:value",[...o])):t("update:value",[...o,r])}else t("update:value",[r])})(n)},[a("div",{class:pe},[a("span",{class:ue},[M[o+1],s(".")]),n.questionAnswerTypeCode===F&&a("div",{class:ce},[a(T,{src:n.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),n.questionAnswerTypeCode===z&&a("div",{class:ce},[n.questionAnswer]),n.questionAnswerTypeCode===H&&a("div",{class:ce},[a(K,{src:n.questionAnswer,class:de},null)])]),e.showRate&&a("div",{class:he},[n.selectRate||0,s("%人选择")])])))])]),e.showAnalysis&&a("div",{class:ae},[a(ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])])}}));var me="_anserList_1yzxl_1",ge="_status_1yzxl_5",ve="_aList_1yzxl_28",_e="_answered_1yzxl_46",be="_yes_1yzxl_50",ye="_no_1yzxl_54";e("A",o({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"已答",color:"#FF8057"},{text:"未答",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(e,{emit:t}){console.log(e.lookType,"lookType");const n=t=>{let n=!1;return e.answerResult.forEach((e=>{e.questionId===t&&(n=e.rightFlag)})),n};return()=>{let o;return a("div",{class:me},[e.statusList.length>0&&a("div",{class:ge},[e.statusList.map((e=>a("span",null,[a("i",{style:{backgroundColor:e.color}},null),e.text])))]),a("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[a(D,{class:ve,columnNum:6,border:!1},(r=o=e.value.map(((o,r)=>a(I,{onClick:()=>t("select",r)},{default:()=>[a("span",{class:["ANSWER"===e.lookType&&o.userAnswer&&o.userAnswer.length>0&&_e,"RESULT"===e.lookType&&(n(o.id)?be:ye),"CLICK"===e.lookType&&r===e.index&&_e,"CLICK"!==e.lookType&&o.showAnalysis?o.analysis.userResult?be:ye:""]},[r+1])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!d(r)?o:{default:()=>[o]}))])]);var r}}}));var we={exports:{}},Ae=f(p);
- /**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */
- function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(){return De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},De.apply(this,arguments)}function Ie(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oe(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ke(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Me=ke(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Pe=ke(/Edge/i),Re=ke(/firefox/i),Ne=ke(/safari/i)&&!ke(/chrome/i)&&!ke(/android/i),je=ke(/iP(ad|od|hone)/i),Le=ke(/chrome/i)&&ke(/android/i),Be={capture:!1,passive:!1};function Fe(e,t,n){e.addEventListener(t,n,!Me&&Be)}function ze(e,t,n){e.removeEventListener(t,n,!Me&&Be)}function He(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Ue(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Xe(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&He(e,t):He(e,t))||o&&e===n)return e;if(e===n)break}while(e=Ue(e))}return null}var Ye,Ge=/\s+/g;function Ve(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Ge," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Ge," ")}}function qe(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function We(e,t){var n="";if("string"==typeof e)n=e;else do{var o=qe(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Ke(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function Qe(){var e=document.scrollingElement;return e||document.documentElement}function Je(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,c,d;if(e!==window&&e.parentNode&&e!==Qe()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Me))do{if(r&&r.getBoundingClientRect&&("none"!==qe(r,"transform")||n&&"static"!==qe(r,"position"))){var f=r.getBoundingClientRect();a-=f.top+parseInt(qe(r,"border-top-width")),l-=f.left+parseInt(qe(r,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var p=We(r||e),h=p&&p.a,m=p&&p.d;p&&(s=(a/=m)+(c/=m),u=(l/=h)+(d/=h))}return{top:a,left:l,bottom:s,right:u,width:d,height:c}}}function Ze(e,t,n){for(var o=ot(e,!0),r=Je(e)[t];o;){var i=Je(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===Qe())break;o=ot(o,!1)}return!1}function $e(e,t,n,o){for(var r=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==cn.ghost&&(o||a[i]!==cn.dragged)&&Xe(a[i],n.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function et(e,t){for(var n=e.lastElementChild;n&&(n===cn.ghost||"none"===qe(n,"display")||t&&!He(n,t));)n=n.previousElementSibling;return n||null}function tt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===cn.clone||t&&!He(e,t)||n++;return n}function nt(e){var t=0,n=0,o=Qe();if(e)do{var r=We(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function ot(e,t){if(!e||!e.getBoundingClientRect)return Qe();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=qe(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Qe();if(o||t)return n;o=!0}}}while(n=n.parentNode);return Qe()}function rt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function it(e,t){return function(){if(!Ye){var n=arguments,o=this;1===n.length?e.call(o,n[0]):e.apply(o,n),Ye=setTimeout((function(){Ye=void 0}),t)}}}function at(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function lt(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function st(e,t){qe(e,"position","absolute"),qe(e,"top",t.top),qe(e,"left",t.left),qe(e,"width",t.width),qe(e,"height",t.height)}function ut(e){qe(e,"position",""),qe(e,"top",""),qe(e,"left",""),qe(e,"width",""),qe(e,"height","")}var ct="Sortable"+(new Date).getTime();function dt(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==qe(e,"display")&&e!==cn.ghost){t.push({target:e,rect:Je(e)});var n=Se({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=We(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Je(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=We(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&rt(s,l)&&!rt(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,s,u,o.options)),rt(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,c,l,t)),t&&(r=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){qe(e,"transition",""),qe(e,"transform","");var r=We(this.el),i=r&&r.a,a=r&&r.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,qe(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),qe(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),qe(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){qe(e,"transition",""),qe(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var ft=[],pt={initializeByDefault:!0},ht={mount:function(e){for(var t in pt)pt.hasOwnProperty(t)&&!(t in e)&&(e[t]=pt[t]);ft.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ft.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";ft.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](Se({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](Se({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in ft.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,De(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return ft.forEach((function(o){"function"==typeof o.eventProperties&&De(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return ft.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function mt(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[ct]){var m,g=t.options,v="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||Me||Pe?(m=document.createEvent("Event")).initEvent(o,!0,!0):m=new CustomEvent(o,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=r||n,m.clone=i,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var _=Se(Se({},h),ht.getEventProperties(o,t));for(var b in _)m[b]=_[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var gt=["evt"],vt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=Ie(n,gt);ht.pluginEvent.bind(cn)(e,t,Se({dragEl:bt,parentEl:yt,ghostEl:wt,rootEl:At,nextEl:xt,lastDownEl:St,cloneEl:Et,cloneHidden:Tt,dragStarted:Ft,putSortable:Mt,activeSortable:cn.active,originalEvent:o,oldIndex:Dt,oldDraggableIndex:Ot,newIndex:It,newDraggableIndex:Ct,hideGhostForTarget:an,unhideGhostForTarget:ln,cloneNowHidden:function(){Tt=!0},cloneNowShown:function(){Tt=!1},dispatchSortableEvent:function(e){_t({sortable:t,name:e,originalEvent:o})}},r))};function _t(e){mt(Se({putSortable:Mt,cloneEl:Et,targetEl:bt,rootEl:At,oldIndex:Dt,oldDraggableIndex:Ot,newIndex:It,newDraggableIndex:Ct},e))}var bt,yt,wt,At,xt,St,Et,Tt,Dt,It,Ot,Ct,kt,Mt,Pt,Rt,Nt,jt,Lt,Bt,Ft,zt,Ht,Ut,Xt,Yt=!1,Gt=!1,Vt=[],qt=!1,Wt=!1,Kt=[],Qt=!1,Jt=[],Zt="undefined"!=typeof document,$t=je,en=Pe||Me?"cssFloat":"float",tn=Zt&&!Le&&!je&&"draggable"in document.createElement("div"),nn=function(){if(Zt){if(Me)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),on=function(e,t){var n=qe(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=$e(e,0,t),i=$e(e,1,t),a=r&&qe(r),l=i&&qe(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Je(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Je(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[en]||i&&"none"===n[en]&&s+u>o)?"vertical":"horizontal"},rn=function(e){function t(e,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==Ee(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},an=function(){!nn&&wt&&qe(wt,"display","none")},ln=function(){!nn&&wt&&qe(wt,"display","")};Zt&&document.addEventListener("click",(function(e){if(Gt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Gt=!1,!1}),!0);var sn=function(e){if(bt){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Vt.some((function(e){var t=e[ct].options.emptyInsertThreshold;if(t&&!et(e)){var n=Je(e),o=r>=n.left-t&&r<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return o&&l?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ct]._onDragOver(n)}}var r,i,a},un=function(e){bt&&bt.parentNode[ct]._isOutsideThisEl(e.target)};function cn(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=De({},t),e[ct]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return on(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==cn.supportPointer&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};for(var o in ht.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var r in rn(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&tn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Fe(e,"pointerdown",this._onTapStart):(Fe(e,"mousedown",this._onTapStart),Fe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Fe(e,"dragover",this),Fe(e,"dragenter",this)),Vt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),De(this,dt())}function dn(e,t,n,o,r,i,a,l){var s,u,c=e[ct],d=c.options.onMove;return!window.CustomEvent||Me||Pe?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=r||t,s.relatedRect=i||Je(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function fn(e){e.draggable=!1}function pn(){Qt=!1}function hn(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function mn(e){return setTimeout(e,0)}function gn(e){return clearTimeout(e)}cn.prototype={constructor:cn,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(zt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,bt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=o.filter;if(function(e){Jt.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Jt.push(o)}}(n),!bt&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Ne||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Xe(l,o.draggable,n,!1))&&l.animated||St===l)){if(Dt=tt(l),Ot=tt(l,o.draggable),"function"==typeof u){if(u.call(this,e,l,this))return _t({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),vt("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=Xe(s,o.trim(),n,!1))return _t({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),vt("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!Xe(s,o.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!bt&&n.parentNode===i){var s=Je(n);if(At=i,yt=(bt=n).parentNode,xt=bt.nextSibling,St=n,kt=a.group,cn.dragged=bt,Pt={target:bt,clientX:(t||e).clientX,clientY:(t||e).clientY},Lt=Pt.clientX-s.left,Bt=Pt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,bt.style["will-change"]="all",o=function(){vt("delayEnded",r,{evt:e}),cn.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Re&&r.nativeDraggable&&(bt.draggable=!0),r._triggerDragStart(e,t),_t({sortable:r,name:"choose",originalEvent:e}),Ve(bt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Ke(bt,e.trim(),fn)})),Fe(l,"dragover",sn),Fe(l,"mousemove",sn),Fe(l,"touchmove",sn),Fe(l,"mouseup",r._onDrop),Fe(l,"touchend",r._onDrop),Fe(l,"touchcancel",r._onDrop),Re&&this.nativeDraggable&&(this.options.touchStartThreshold=4,bt.draggable=!0),vt("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Pe||Me))o();else{if(cn.eventCanceled)return void this._onDrop();Fe(l,"mouseup",r._disableDelayedDrag),Fe(l,"touchend",r._disableDelayedDrag),Fe(l,"touchcancel",r._disableDelayedDrag),Fe(l,"mousemove",r._delayedDragTouchMoveHandler),Fe(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&Fe(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){bt&&fn(bt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ze(e,"mouseup",this._disableDelayedDrag),ze(e,"touchend",this._disableDelayedDrag),ze(e,"touchcancel",this._disableDelayedDrag),ze(e,"mousemove",this._delayedDragTouchMoveHandler),ze(e,"touchmove",this._delayedDragTouchMoveHandler),ze(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Fe(document,"pointermove",this._onTouchMove):Fe(document,t?"touchmove":"mousemove",this._onTouchMove):(Fe(bt,"dragend",this),Fe(At,"dragstart",this._onDragStart));try{document.selection?mn((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Yt=!1,At&&bt){vt("dragStarted",this,{evt:t}),this.nativeDraggable&&Fe(document,"dragover",un);var n=this.options;!e&&Ve(bt,n.dragClass,!1),Ve(bt,n.ghostClass,!0),cn.active=this,e&&this._appendGhost(),_t({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Rt){this._lastX=Rt.clientX,this._lastY=Rt.clientY,an();for(var e=document.elementFromPoint(Rt.clientX,Rt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Rt.clientX,Rt.clientY))!==t;)t=e;if(bt.parentNode[ct]._isOutsideThisEl(e),t)do{if(t[ct]){if(t[ct]._onDragOver({clientX:Rt.clientX,clientY:Rt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ln()}},_onTouchMove:function(e){if(Pt){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=wt&&We(wt,!0),a=wt&&i&&i.a,l=wt&&i&&i.d,s=$t&&Xt&&nt(Xt),u=(r.clientX-Pt.clientX+o.x)/(a||1)+(s?s[0]-Kt[0]:0)/(a||1),c=(r.clientY-Pt.clientY+o.y)/(l||1)+(s?s[1]-Kt[1]:0)/(l||1);if(!cn.active&&!Yt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(wt){i?(i.e+=u-(Nt||0),i.f+=c-(jt||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");qe(wt,"webkitTransform",d),qe(wt,"mozTransform",d),qe(wt,"msTransform",d),qe(wt,"transform",d),Nt=u,jt=c,Rt=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!wt){var e=this.options.fallbackOnBody?document.body:At,t=Je(bt,!0,$t,!0,e),n=this.options;if($t){for(Xt=e;"static"===qe(Xt,"position")&&"none"===qe(Xt,"transform")&&Xt!==document;)Xt=Xt.parentNode;Xt!==document.body&&Xt!==document.documentElement?(Xt===document&&(Xt=Qe()),t.top+=Xt.scrollTop,t.left+=Xt.scrollLeft):Xt=Qe(),Kt=nt(Xt)}Ve(wt=bt.cloneNode(!0),n.ghostClass,!1),Ve(wt,n.fallbackClass,!0),Ve(wt,n.dragClass,!0),qe(wt,"transition",""),qe(wt,"transform",""),qe(wt,"box-sizing","border-box"),qe(wt,"margin",0),qe(wt,"top",t.top),qe(wt,"left",t.left),qe(wt,"width",t.width),qe(wt,"height",t.height),qe(wt,"opacity","0.8"),qe(wt,"position",$t?"absolute":"fixed"),qe(wt,"zIndex","100000"),qe(wt,"pointerEvents","none"),cn.ghost=wt,e.appendChild(wt),qe(wt,"transform-origin",Lt/parseInt(wt.style.width)*100+"% "+Bt/parseInt(wt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;vt("dragStart",this,{evt:e}),cn.eventCanceled?this._onDrop():(vt("setupClone",this),cn.eventCanceled||((Et=lt(bt)).draggable=!1,Et.style["will-change"]="",this._hideClone(),Ve(Et,this.options.chosenClass,!1),cn.clone=Et),n.cloneId=mn((function(){vt("clone",n),cn.eventCanceled||(n.options.removeCloneOnHide||At.insertBefore(Et,bt),n._hideClone(),_t({sortable:n,name:"clone"}))})),!t&&Ve(bt,r.dragClass,!0),t?(Gt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ze(document,"mouseup",n._onDrop),ze(document,"touchend",n._onDrop),ze(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,bt)),Fe(document,"drop",n),qe(bt,"transform","translateZ(0)")),Yt=!0,n._dragStartId=mn(n._dragStarted.bind(n,t,e)),Fe(document,"selectstart",n),Ft=!0,Ne&&qe(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,a=e.target,l=this.options,s=l.group,u=cn.active,c=kt===s,d=l.sort,f=Mt||u,p=this,h=!1;if(!Qt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Xe(a,l.draggable,i,!0),O("dragOver"),cn.eventCanceled)return h;if(bt.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return k(!1);if(Gt=!1,u&&!l.disabled&&(c?d||(o=yt!==At):Mt===this||(this.lastPutMode=kt.checkPull(this,u,bt,e))&&s.checkPut(this,u,bt,e))){if(r="vertical"===this._getDirection(e,a),t=Je(bt),O("dragOverValid"),cn.eventCanceled)return h;if(o)return yt=At,C(),this._hideClone(),O("revert"),cn.eventCanceled||(xt?At.insertBefore(bt,xt):At.appendChild(bt)),k(!0);var m=et(i,l.draggable);if(!m||function(e,t,n){var o=Je(et(n.el,n.options.draggable)),r=10;return t?e.clientX>o.right+r||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+r}(e,r,this)&&!m.animated){if(m===bt)return k(!1);if(m&&i===e.target&&(a=m),a&&(n=Je(a)),!1!==dn(At,i,bt,t,a,n,e,!!a))return C(),i.appendChild(bt),yt=i,M(),k(!0)}else if(m&&function(e,t,n){var o=Je($e(n.el,0,n.options,!0)),r=10;return t?e.clientX<o.left-r||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-r||e.clientY<o.bottom&&e.clientX<o.left}(e,r,this)){var g=$e(i,0,l,!0);if(g===bt)return k(!1);if(n=Je(a=g),!1!==dn(At,i,bt,t,a,n,e,!1))return C(),i.insertBefore(bt,g),yt=i,M(),k(!0)}else if(a.parentNode===i){n=Je(a);var v,_,b,y=bt.parentNode!==i,w=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===a||r===l||o+i/2===a+s/2}(bt.animated&&bt.toRect||t,a.animated&&a.toRect||n,r),A=r?"top":"left",x=Ze(a,"top","top")||Ze(bt,"top","top"),S=x?x.scrollTop:void 0;if(zt!==a&&(_=n[A],qt=!1,Wt=!w&&l.invertSwap||y),v=function(e,t,n,o,r,i,a,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!a)if(l&&Ut<u*r){if(!qt&&(1===Ht?s>c+u*i/2:s<d-u*i/2)&&(qt=!0),qt)f=!0;else if(1===Ht?s<c+Ut:s>d-Ut)return-Ht}else if(s>c+u*(1-r)/2&&s<d-u*(1-r)/2)return function(e){return tt(bt)<tt(e)?1:-1}(t);if((f=f||a)&&(s<c+u*i/2||s>d-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Wt,zt===a),0!==v){var E=tt(bt);do{E-=v,b=yt.children[E]}while(b&&("none"===qe(b,"display")||b===wt))}if(0===v||b===a)return k(!1);zt=a,Ht=v;var T=a.nextElementSibling,D=!1,I=dn(At,i,bt,t,a,n,e,D=1===v);if(!1!==I)return 1!==I&&-1!==I||(D=1===I),Qt=!0,setTimeout(pn,30),C(),D&&!T?i.appendChild(bt):a.parentNode.insertBefore(bt,D?T:a),x&&at(x,0,S-x.scrollTop),yt=bt.parentNode,void 0===_||Wt||(Ut=Math.abs(_-Je(a)[A])),M(),k(!0)}if(i.contains(bt))return k(!1)}return!1}function O(l,s){vt(l,p,Se({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:k,onMove:function(n,o){return dn(At,i,bt,t,n,Je(n),e,o)},changed:M},s))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function k(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(Ve(bt,Mt?Mt.options.ghostClass:u.options.ghostClass,!1),Ve(bt,l.ghostClass,!0)),Mt!==p&&p!==cn.active?Mt=p:p===cn.active&&Mt&&(Mt=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===bt&&!bt.animated||a===i&&!a.animated)&&(zt=null),l.dragoverBubble||e.rootEl||a===document||(bt.parentNode[ct]._isOutsideThisEl(e.target),!t&&sn(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){It=tt(bt),Ct=tt(bt,l.draggable),_t({sortable:p,name:"change",toEl:i,newIndex:It,newDraggableIndex:Ct,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ze(document,"mousemove",this._onTouchMove),ze(document,"touchmove",this._onTouchMove),ze(document,"pointermove",this._onTouchMove),ze(document,"dragover",sn),ze(document,"mousemove",sn),ze(document,"touchmove",sn)},_offUpEvents:function(){var e=this.el.ownerDocument;ze(e,"mouseup",this._onDrop),ze(e,"touchend",this._onDrop),ze(e,"pointerup",this._onDrop),ze(e,"touchcancel",this._onDrop),ze(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;It=tt(bt),Ct=tt(bt,n.draggable),vt("drop",this,{evt:e}),yt=bt&&bt.parentNode,It=tt(bt),Ct=tt(bt,n.draggable),cn.eventCanceled||(Yt=!1,Wt=!1,qt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gn(this.cloneId),gn(this._dragStartId),this.nativeDraggable&&(ze(document,"drop",this),ze(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&qe(document.body,"user-select",""),qe(bt,"transform",""),e&&(Ft&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),(At===yt||Mt&&"clone"!==Mt.lastPutMode)&&Et&&Et.parentNode&&Et.parentNode.removeChild(Et),bt&&(this.nativeDraggable&&ze(bt,"dragend",this),fn(bt),bt.style["will-change"]="",Ft&&!Yt&&Ve(bt,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),Ve(bt,this.options.chosenClass,!1),_t({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:e}),At!==yt?(It>=0&&(_t({rootEl:yt,name:"add",toEl:yt,fromEl:At,originalEvent:e}),_t({sortable:this,name:"remove",toEl:yt,originalEvent:e}),_t({rootEl:yt,name:"sort",toEl:yt,fromEl:At,originalEvent:e}),_t({sortable:this,name:"sort",toEl:yt,originalEvent:e})),Mt&&Mt.save()):It!==Dt&&It>=0&&(_t({sortable:this,name:"update",toEl:yt,originalEvent:e}),_t({sortable:this,name:"sort",toEl:yt,originalEvent:e})),cn.active&&(null!=It&&-1!==It||(It=Dt,Ct=Ot),_t({sortable:this,name:"end",toEl:yt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){vt("nulling",this),At=bt=yt=wt=xt=Et=St=Tt=Pt=Rt=Ft=It=Ct=Dt=Ot=zt=Ht=Mt=kt=cn.dragged=cn.ghost=cn.clone=cn.active=null,Jt.forEach((function(e){e.checked=!0})),Jt.length=Nt=jt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":bt&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)Xe(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||hn(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];Xe(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Xe(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=ht.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&rn(n)},destroy:function(){vt("destroy",this);var e=this.el;e[ct]=null,ze(e,"mousedown",this._onTapStart),ze(e,"touchstart",this._onTapStart),ze(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ze(e,"dragover",this),ze(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Vt.splice(Vt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Tt){if(vt("hideClone",this),cn.eventCanceled)return;qe(Et,"display","none"),this.options.removeCloneOnHide&&Et.parentNode&&Et.parentNode.removeChild(Et),Tt=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Tt){if(vt("showClone",this),cn.eventCanceled)return;bt.parentNode!=At||this.options.group.revertClone?xt?At.insertBefore(Et,xt):At.appendChild(Et):At.insertBefore(Et,bt),this.options.group.revertClone&&this.animate(bt,Et),qe(Et,"display",""),Tt=!1}}else this._hideClone()}},Zt&&Fe(document,"touchmove",(function(e){(cn.active||Yt)&&e.cancelable&&e.preventDefault()})),cn.utils={on:Fe,off:ze,css:qe,find:Ke,is:function(e,t){return!!Xe(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:it,closest:Xe,toggleClass:Ve,clone:lt,index:tt,nextTick:mn,cancelNextTick:gn,detectDirection:on,getChild:$e},cn.get=function(e){return e[ct]},cn.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(cn.utils=Se(Se({},cn.utils),e.utils)),ht.mount(e)}))},cn.create=function(e,t){return new cn(e,t)},cn.version="1.14.0";var vn,_n,bn,yn,wn,An,xn=[],Sn=!1;function En(){xn.forEach((function(e){clearInterval(e.pid)})),xn=[]}function Tn(){clearInterval(An)}var Dn,In=it((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=Qe(),c=!1;_n!==n&&(_n=n,En(),vn=t.scroll,r=t.scrollFn,!0===vn&&(vn=ot(n,!0)));var d=0,f=vn;do{var p=f,h=Je(p),m=h.top,g=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,w=void 0,A=void 0,x=p.scrollWidth,S=p.scrollHeight,E=qe(p),T=p.scrollLeft,D=p.scrollTop;p===u?(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY));var I=w&&(Math.abs(_-i)<=l&&T+b<x)-(Math.abs(v-i)<=l&&!!T),O=A&&(Math.abs(g-a)<=l&&D+y<S)-(Math.abs(m-a)<=l&&!!D);if(!xn[d])for(var C=0;C<=d;C++)xn[C]||(xn[C]={});xn[d].vx==I&&xn[d].vy==O&&xn[d].el===p||(xn[d].el=p,xn[d].vx=I,xn[d].vy=O,clearInterval(xn[d].pid),0==I&&0==O||(c=!0,xn[d].pid=setInterval(function(){o&&0===this.layer&&cn.active._onTouchMove(wn);var t=xn[this.layer].vy?xn[this.layer].vy*s:0,n=xn[this.layer].vx?xn[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(cn.dragged.parentNode[ct],n,t,e,wn,xn[this.layer].el)||at(xn[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=ot(f,!1)));Sn=c}}),30),On=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||r;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Cn(){}function kn(){}Cn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=$e(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:On},De(Cn,{pluginName:"revertOnSpill"}),kn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:On},De(kn,{pluginName:"removeOnSpill"});var Mn,Pn,Rn,Nn,jn,Ln=[],Bn=[],Fn=!1,zn=!1,Hn=!1;function Un(e,t){Bn.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function Xn(){Ln.forEach((function(e){e!==Rn&&e.parentNode&&e.parentNode.removeChild(e)}))}cn.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Fe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Fe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Fe(document,"touchmove",this._handleFallbackAutoScroll):Fe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ze(document,"dragover",this._handleAutoScroll):(ze(document,"pointermove",this._handleFallbackAutoScroll),ze(document,"touchmove",this._handleFallbackAutoScroll),ze(document,"mousemove",this._handleFallbackAutoScroll)),Tn(),En(),clearTimeout(Ye),Ye=void 0},nulling:function(){wn=_n=vn=Sn=An=bn=yn=null,xn.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(wn=e,t||this.options.forceAutoScrollFallback||Pe||Me||Ne){In(e,this.options,i,t);var a=ot(i,!0);!Sn||An&&o===bn&&r===yn||(An&&Tn(),An=setInterval((function(){var i=ot(document.elementFromPoint(o,r),!0);i!==a&&(a=i,En()),In(e,n.options,i,t)}),10),bn=o,yn=r)}else{if(!this.options.bubbleScroll||ot(i,!0)===Qe())return void En();In(e,this.options,ot(i,!1),!1)}}},De(e,{pluginName:"scroll",initializeByDefault:!0})}),cn.mount(kn,Cn);var Yn,Gn=Object.freeze(Object.defineProperty({__proto__:null,default:cn,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?Fe(document,"pointerup",this._deselectMultiDrag):(Fe(document,"mouseup",this._deselectMultiDrag),Fe(document,"touchend",this._deselectMultiDrag)),Fe(document,"keydown",this._checkKeyDown),Fe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var o="";Ln.length&&Pn===e?Ln.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Rn=t},delayEnded:function(){this.isMultiDrag=~Ln.indexOf(Rn)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<Ln.length;o++)Bn.push(lt(Ln[o])),Bn[o].sortableIndex=Ln[o].sortableIndex,Bn[o].draggable=!1,Bn[o].style["will-change"]="",Ve(Bn[o],this.options.selectedClass,!1),Ln[o]===Rn&&Ve(Bn[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ln.length&&Pn===t&&(Un(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(Un(!1,n),Bn.forEach((function(e){qe(e,"display","")})),t(),jn=!1,o())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,o=e.cancel;this.isMultiDrag&&(Bn.forEach((function(e){qe(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),jn=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Pn&&Pn.multiDrag._deselectMultiDrag(),Ln.forEach((function(e){e.sortableIndex=tt(e)})),Ln=Ln.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Hn=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ln.forEach((function(e){e!==Rn&&qe(e,"position","absolute")}));var o=Je(Rn,!1,!0,!0);Ln.forEach((function(e){e!==Rn&&st(e,o)})),zn=!0,Fn=!0}n.animateAll((function(){zn=!1,Fn=!1,t.options.animation&&Ln.forEach((function(e){ut(e)})),t.options.sort&&Xn()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;zn&&~Ln.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;Ln.length>1&&(Ln.forEach((function(e){o.addAnimationState({target:e,rect:zn?Je(e):r}),ut(e),e.fromRect=r,t.removeAnimationState(e)})),zn=!1,function(e,t){Ln.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,l=this.options;if(o){if(n&&r._hideClone(),Fn=!1,l.animation&&Ln.length>1&&(zn||!n&&!r.options.sort&&!a)){var s=Je(Rn,!1,!0,!0);Ln.forEach((function(e){e!==Rn&&(st(e,s),i.appendChild(e))})),zn=!0}if(!n)if(zn||Xn(),Ln.length>1){var u=jn;r._showClone(t),r.options.animation&&!jn&&u&&Bn.forEach((function(e){r.addAnimationState({target:e,rect:Nn}),e.fromRect=Nn,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(Ln.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){Nn=De({},t);var r=We(Rn,!0);Nn.top-=r.f,Nn.left-=r.e}},dragOverAnimationComplete:function(){zn&&(zn=!1,Xn())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var u=this.options,c=o.children;if(!Hn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ve(Rn,u.selectedClass,!~Ln.indexOf(Rn)),~Ln.indexOf(Rn))Ln.splice(Ln.indexOf(Rn),1),Mn=null,mt({sortable:r,rootEl:n,name:"deselect",targetEl:Rn,originalEvt:t});else{if(Ln.push(Rn),mt({sortable:r,rootEl:n,name:"select",targetEl:Rn,originalEvt:t}),t.shiftKey&&Mn&&r.el.contains(Mn)){var d,f,p=tt(Mn),h=tt(Rn);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~Ln.indexOf(c[f])||(Ve(c[f],u.selectedClass,!0),Ln.push(c[f]),mt({sortable:r,rootEl:n,name:"select",targetEl:c[f],originalEvt:t}))}else Mn=Rn;Pn=s}if(Hn&&this.isMultiDrag){if(zn=!1,(o[ct].options.sort||o!==n)&&Ln.length>1){var m=Je(Rn),g=tt(Rn,":not(."+this.options.selectedClass+")");if(!Fn&&u.animation&&(Rn.thisAnimationDuration=null),s.captureAnimationState(),!Fn&&(u.animation&&(Rn.fromRect=m,Ln.forEach((function(e){if(e.thisAnimationDuration=null,e!==Rn){var t=zn?Je(e):m;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),Xn(),Ln.forEach((function(e){c[g]?o.insertBefore(e,c[g]):o.appendChild(e),g++})),a===tt(Rn))){var v=!1;Ln.forEach((function(e){e.sortableIndex===tt(e)||(v=!0)})),v&&i("update")}Ln.forEach((function(e){ut(e)})),s.animateAll()}Pn=s}(n===o||l&&"clone"!==l.lastPutMode)&&Bn.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Hn=!1,Bn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ze(document,"pointerup",this._deselectMultiDrag),ze(document,"mouseup",this._deselectMultiDrag),ze(document,"touchend",this._deselectMultiDrag),ze(document,"keydown",this._checkKeyDown),ze(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Hn&&Hn||Pn!==this.sortable||e&&Xe(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Ln.length;){var t=Ln[0];Ve(t,this.options.selectedClass,!1),Ln.shift(),mt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},De(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[ct];t&&t.options.multiDrag&&!~Ln.indexOf(e)&&(Pn&&Pn!==t&&(Pn.multiDrag._deselectMultiDrag(),Pn=t),Ve(e,t.options.selectedClass,!0),Ln.push(e))},deselect:function(e){var t=e.parentNode[ct],n=Ln.indexOf(e);t&&t.options.multiDrag&&~n&&(Ve(e,t.options.selectedClass,!1),Ln.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ln.forEach((function(o){var r;t.push({multiDragElement:o,index:o.sortableIndex}),r=zn&&o!==Rn?-1:zn?tt(o,":not(."+e.options.selectedClass+")"):tt(o),n.push({multiDragElement:o,index:r})})),{items:Oe(Ln),clones:[].concat(Bn),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:cn,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Dn=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var u=Dn;!1!==o(n)?(Ve(n,s.swapClass,!0),Dn=n):Dn=null,u&&u!==Dn&&Ve(u,s.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,o=e.dragEl,r=n||this.sortable,i=this.options;Dn&&Ve(Dn,i.swapClass,!1),Dn&&(i.swap||n&&n.options.swap)&&o!==Dn&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),function(e,t){var n,o,r=e.parentNode,i=t.parentNode;if(!r||!i||r.isEqualNode(t)||i.isEqualNode(e))return;n=tt(e),o=tt(t),r.isEqualNode(i)&&n<o&&o++;r.insertBefore(t,r.children[n]),i.insertBefore(e,i.children[o])}(o,Dn),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){Dn=null}},De(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Dn}}})}},Symbol.toStringTag,{value:"Module"}));"undefined"!=typeof self&&self,Yn=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var o={};o[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var o=n("1c0b");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var o=n("fc6a"),r=n("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(t){return a.slice()}}(e):r(o(e))}},"06cf":function(e,t,n){var o=n("83ab"),r=n("d1e7"),i=n("5c6c"),a=n("fc6a"),l=n("c04e"),s=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=o?c:function(e,t){if(e=a(e),t=l(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var o=n("83ab"),r=n("d039"),i=n("cc12");e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,n){var o=n("23e7"),r=n("d58f").left,i=n("a640"),a=n("ae40"),l=i("reduce"),s=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!l||!s},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var o=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"159b":function(e,t,n){var o=n("da84"),r=n("fdbc"),i=n("17c2"),a=n("9112");for(var l in r){var s=o[l],u=s&&s.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(c){u.forEach=i}}},"17c2":function(e,t,n){var o=n("b727").forEach,r=n("a640"),i=n("ae40"),a=r("forEach"),l=i("forEach");e.exports=a&&l?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var o=n("d066");e.exports=o("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var o=n("b622")("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var o=n("d039"),r=n("b622"),i=n("2d00"),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var o=n("a691"),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},"23e7":function(e,t,n){var o=n("da84"),r=n("06cf").f,i=n("9112"),a=n("6eeb"),l=n("ce4e"),s=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(n=m?o:g?o[h]||l(h,{}):(o[h]||{}).prototype)for(c in t){if(f=t[c],d=e.noTargetGet?(p=r(n,c))&&p.value:n[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,c,f,e)}}},"241c":function(e,t,n){var o=n("ca84"),r=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},"25f0":function(e,t,n){var o=n("6eeb"),r=n("825a"),i=n("d039"),a=n("ad6d"),l="toString",s=RegExp.prototype,u=s.toString,c=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=l;(c||d)&&o(RegExp.prototype,l,(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var o,r=n("23e7"),i=n("06cf").f,a=n("50c4"),l=n("5a34"),s=n("1d80"),u=n("ab13"),c=n("c430"),d="".startsWith,f=Math.min,p=u("startsWith");r({target:"String",proto:!0,forced:!(!c&&!p&&(o=i(String.prototype,"startsWith"),o&&!o.writable)||p)},{startsWith:function(e){var t=String(s(this));l(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return d?d.call(t,o,n):t.slice(n,n+o.length)===o}})},"2d00":function(e,t,n){var o,r,i=n("da84"),a=n("342f"),l=i.process,s=l&&l.versions,u=s&&s.v8;u?r=(o=u.split("."))[0]+o[1]:a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},"342f":function(e,t,n){var o=n("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,t,n){var o=n("f5df"),r=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||r[o(e)]}},"37e8":function(e,t,n){var o=n("83ab"),r=n("9bf2"),i=n("825a"),a=n("df75");e.exports=o?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),l=o.length,s=0;l>s;)r.f(e,n=o[s++],t[n]);return e}},"3bbe":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var o=n("6547").charAt,r=n("69f3"),i=n("7dd0"),a="String Iterator",l=r.set,s=r.getterFor(a);i(String,"String",(function(e){l(this,{type:a,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=o(n,r),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var o=n("23e7"),r=n("17c2");o({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(e,t,n){var o=n("da84");e.exports=o},"44ad":function(e,t,n){var o=n("d039"),r=n("c6b6"),i="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var o=n("b622"),r=n("7c73"),i=n("9bf2"),a=o("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:r(null)}),e.exports=function(e){l[a][e]=!0}},"44e7":function(e,t,n){var o=n("861d"),r=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},4930:function(e,t,n){var o=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var o=n("fc6a"),r=n("50c4"),i=n("23cb"),a=function(e){return function(t,n,a){var l,s=o(t),u=r(s.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){var o=n("23e7"),r=n("b727").filter,i=n("1dde"),a=n("ae40"),l=i("filter"),s=a("filter");o({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var o=n("0366"),r=n("7b0b"),i=n("9bdd"),a=n("e95a"),l=n("50c4"),s=n("8418"),u=n("35a1");e.exports=function(e){var t,n,c,d,f,p,h=r(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,_=void 0!==v,b=u(h),y=0;if(_&&(v=o(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=l(h.length));t>y;y++)p=_?v(h[y],y):h[y],s(n,y,p);else for(f=(d=b.call(h)).next,n=new m;!(c=f.call(d)).done;y++)p=_?i(d,v,[c.value,y],!0):c.value,s(n,y,p);return n.length=y,n}},"4fad":function(e,t,n){var o=n("23e7"),r=n("6f53").entries;o({target:"Object",stat:!0},{entries:function(e){return r(e)}})},"50c4":function(e,t,n){var o=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var o=n("d784"),r=n("825a"),i=n("7b0b"),a=n("50c4"),l=n("a691"),s=n("1d80"),u=n("8aa5"),c=n("14c3"),d=Math.max,f=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var g=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=o.REPLACE_KEEPS_$0,_=g?"$":"$0";return[function(n,o){var r=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r,o):t.call(String(r),n,o)},function(e,o){if(!g&&v||"string"==typeof o&&-1===o.indexOf(_)){var i=n(t,e,this,o);if(i.done)return i.value}var s=r(e),p=String(this),h="function"==typeof o;h||(o=String(o));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}for(var w=[];;){var A=c(s,p);if(null===A)break;if(w.push(A),!m)break;""===String(A[0])&&(s.lastIndex=u(p,a(s.lastIndex),y))}for(var x,S="",E=0,T=0;T<w.length;T++){A=w[T];for(var D=String(A[0]),I=d(f(l(A.index),p.length),0),O=[],C=1;C<A.length;C++)O.push(void 0===(x=A[C])?x:String(x));var k=A.groups;if(h){var M=[D].concat(O,I,p);void 0!==k&&M.push(k);var P=String(o.apply(void 0,M))}else P=b(D,p,I,O,k,o);I>=E&&(S+=p.slice(E,I)+P,E=I+D.length)}return S+p.slice(E)}];function b(e,n,o,r,a,l){var s=o+e.length,u=r.length,c=m;return void 0!==a&&(a=i(a),c=h),t.call(l,c,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(s);case"<":l=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return t;if(c>u){var d=p(c/10);return 0===d?t:d<=u?void 0===r[d-1]?i.charAt(1):r[d-1]+i.charAt(1):t}l=r[c-1]}return void 0===l?"":l}))}}))},5692:function(e,t,n){var o=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var o=n("d066"),r=n("241c"),i=n("7418"),a=n("825a");e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var o=n("44e7");e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var o=n("23e7"),r=n("a2bf"),i=n("7b0b"),a=n("50c4"),l=n("1c0b"),s=n("65f0");o({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),o=a(n.length);return l(e),(t=s(n,0)).length=r(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var o=n("a691"),r=n("1d80"),i=function(e){return function(t,n){var i,a,l=String(r(t)),s=o(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var o=n("861d"),r=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var o,r,i,a=n("7f9a"),l=n("da84"),s=n("861d"),u=n("9112"),c=n("5135"),d=n("f772"),f=n("d012"),p=l.WeakMap;if(a){var h=new p,m=h.get,g=h.has,v=h.set;o=function(e,t){return v.call(h,e,t),t},r=function(e){return m.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var _=d("state");f[_]=!0,o=function(e,t){return u(e,_,t),t},r=function(e){return c(e,_)?e[_]:{}},i=function(e){return c(e,_)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var o=n("da84"),r=n("9112"),i=n("5135"),a=n("ce4e"),l=n("8925"),s=n("69f3"),u=s.get,c=s.enforce,d=String(String).split("String");(e.exports=function(e,t,n,l){var s=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||r(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==o?(s?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:r(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},"6f53":function(e,t,n){var o=n("83ab"),r=n("df75"),i=n("fc6a"),a=n("d1e7").f,l=function(e){return function(t){for(var n,l=i(t),s=r(l),u=s.length,c=0,d=[];u>c;)n=s[c++],o&&!a.call(l,n)||d.push(e?[n,l[n]]:l[n]);return d}};e.exports={entries:l(!0),values:l(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var o=n("428f"),r=n("5135"),i=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var o=n("1d80");e.exports=function(e){return Object(o(e))}},"7c73":function(e,t,n){var o,r=n("825a"),i=n("37e8"),a=n("7839"),l=n("d012"),s=n("1be4"),u=n("cc12"),c=n("f772"),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;h=o?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):((t=u("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};l[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[d]=e):n=h(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){var o=n("23e7"),r=n("9ed3"),i=n("e163"),a=n("d2bb"),l=n("d44e"),s=n("9112"),u=n("6eeb"),c=n("b622"),d=n("c430"),f=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",_="values",b="entries",y=function(){return this};e.exports=function(e,t,n,c,p,w,A){r(n,t,c);var x,S,E,T=function(e){if(e===p&&k)return k;if(!m&&e in O)return O[e];switch(e){case v:case _:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",I=!1,O=e.prototype,C=O[g]||O["@@iterator"]||p&&O[p],k=!m&&C||T(p),M="Array"==t&&O.entries||C;if(M&&(x=i(M.call(new e)),h!==Object.prototype&&x.next&&(d||i(x)===h||(a?a(x,h):"function"!=typeof x[g]&&s(x,g,y)),l(x,D,!0,!0),d&&(f[D]=y))),p==_&&C&&C.name!==_&&(I=!0,k=function(){return C.call(this)}),d&&!A||O[g]===k||s(O,g,k),f[t]=k,p)if(S={values:T(_),keys:w?k:T(v),entries:T(b)},A)for(E in S)(m||I||!(E in O))&&u(O,E,S[E]);else o({target:t,proto:!0,forced:m||I},S);return S}},"7f9a":function(e,t,n){var o=n("da84"),r=n("8925"),i=o.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},"825a":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var o=n("d039");e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var o=n("c04e"),r=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,n){var o,r,i;"undefined"!=typeof self&&self,r=[],void 0===(i="function"==typeof(o=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,o,r,i=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(f.stack)||i.exec(f.stack),l=a&&a[1]||!1,s=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(o,"$1").trim());for(var d=0;d<c.length;d++){if("interactive"===c[d].readyState)return c[d];if(c[d].src===l)return c[d];if(l===u&&c[d].innerHTML&&c[d].innerHTML.trim()===r)return c[d]}return null}}return e})?o.apply(t,r):o)||(e.exports=i)},8925:function(e,t,n){var o=n("c6cd"),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},"8aa5":function(e,t,n){var o=n("6547").charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},9112:function(e,t,n){var o=n("83ab"),r=n("9bf2"),i=n("5c6c");e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var o,r,i=n("ad6d"),a=n("9f7f"),l=RegExp.prototype.exec,s=String.prototype.replace,u=l,c=(o=/a/,r=/b*/g,l.call(o,"a"),l.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,f=void 0!==/()??/.exec("")[1];(c||f||d)&&(u=function(e){var t,n,o,r,a=this,u=d&&a.sticky,p=i.call(a),h=a.source,m=0,g=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,m++),n=new RegExp("^(?:"+h+")",p)),f&&(n=new RegExp("^"+h+"$(?!\\s)",p)),c&&(t=a.lastIndex),o=l.call(u?n:a,g),u?o?(o.input=o.input.slice(m),o[0]=o[0].slice(m),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:c&&o&&(a.lastIndex=a.global?o.index+o[0].length:t),f&&o&&o.length>1&&s.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),e.exports=u},"94ca":function(e,t,n){var o=n("d039"),r=/#|\.prototype\./,i=function(e,t){var n=l[a(e)];return n==u||n!=s&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"99af":function(e,t,n){var o=n("23e7"),r=n("d039"),i=n("e8b5"),a=n("861d"),l=n("7b0b"),s=n("50c4"),u=n("8418"),c=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),h=f("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=p>=51||!r((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),_=d("concat"),b=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,forced:!v||!_},{concat:function(e){var t,n,o,r,i,a=l(this),d=c(a,0),f=0;for(t=-1,o=arguments.length;t<o;t++)if(b(i=-1===t?a:arguments[t])){if(f+(r=s(i.length))>m)throw TypeError(g);for(n=0;n<r;n++,f++)n in i&&u(d,f,i[n])}else{if(f>=m)throw TypeError(g);u(d,f++,i)}return d.length=f,d}})},"9bdd":function(e,t,n){var o=n("825a");e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&o(i.call(e)),a}}},"9bf2":function(e,t,n){var o=n("83ab"),r=n("0cfb"),i=n("825a"),a=n("c04e"),l=Object.defineProperty;t.f=o?l:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return l(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var o=n("ae93").IteratorPrototype,r=n("7c73"),i=n("5c6c"),a=n("d44e"),l=n("3f8c"),s=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=r(o,{next:i(1,n)}),a(e,u,!1,!0),l[u]=s,e}},"9f7f":function(e,t,n){var o=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=o((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=o((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,n){var o=n("e8b5"),r=n("50c4"),i=n("0366"),a=function(e,t,n,l,s,u,c,d){for(var f,p=s,h=0,m=!!c&&i(c,d,3);h<l;){if(h in n){if(f=m?m(n[h],h,t):n[h],u>0&&o(f))p=a(e,t,f,r(f.length),p,u-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=a},a352:function(e,n){e.exports=t},a434:function(e,t,n){var o=n("23e7"),r=n("23cb"),i=n("a691"),a=n("50c4"),l=n("7b0b"),s=n("65f0"),u=n("8418"),c=n("1dde"),d=n("ae40"),f=c("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,o,c,d,f,p,_=l(this),b=a(_.length),y=r(e,b),w=arguments.length;if(0===w?n=o=0:1===w?(n=0,o=b-y):(n=w-2,o=m(h(i(t),0),b-y)),b+n-o>g)throw TypeError(v);for(c=s(_,o),d=0;d<o;d++)(f=y+d)in _&&u(c,d,_[f]);if(c.length=o,n<o){for(d=y;d<b-o;d++)p=d+n,(f=d+o)in _?_[p]=_[f]:delete _[p];for(d=b;d>b-o+n;d--)delete _[d-1]}else if(n>o)for(d=b-o;d>y;d--)p=d+n-1,(f=d+o-1)in _?_[p]=_[f]:delete _[p];for(d=0;d<n;d++)_[d+y]=arguments[d+2];return _.length=b-o+n,c}})},a4d3:function(e,t,n){var o=n("23e7"),r=n("da84"),i=n("d066"),a=n("c430"),l=n("83ab"),s=n("4930"),u=n("fdbf"),c=n("d039"),d=n("5135"),f=n("e8b5"),p=n("861d"),h=n("825a"),m=n("7b0b"),g=n("fc6a"),v=n("c04e"),_=n("5c6c"),b=n("7c73"),y=n("df75"),w=n("241c"),A=n("057f"),x=n("7418"),S=n("06cf"),E=n("9bf2"),T=n("d1e7"),D=n("9112"),I=n("6eeb"),O=n("5692"),C=n("f772"),k=n("d012"),M=n("90e3"),P=n("b622"),R=n("e538"),N=n("746f"),j=n("d44e"),L=n("69f3"),B=n("b727").forEach,F=C("hidden"),z="Symbol",H=P("toPrimitive"),U=L.set,X=L.getterFor(z),Y=Object.prototype,G=r.Symbol,V=i("JSON","stringify"),q=S.f,W=E.f,K=A.f,Q=T.f,J=O("symbols"),Z=O("op-symbols"),$=O("string-to-symbol-registry"),ee=O("symbol-to-string-registry"),te=O("wks"),ne=r.QObject,oe=!ne||!ne.prototype||!ne.prototype.findChild,re=l&&c((function(){return 7!=b(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=q(Y,t);o&&delete Y[t],W(e,t,n),o&&e!==Y&&W(Y,t,o)}:W,ie=function(e,t){var n=J[e]=b(G.prototype);return U(n,{type:z,tag:e,description:t}),l||(n.description=t),n},ae=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},le=function(e,t,n){e===Y&&le(Z,t,n),h(e);var o=v(t,!0);return h(n),d(J,o)?(n.enumerable?(d(e,F)&&e[F][o]&&(e[F][o]=!1),n=b(n,{enumerable:_(0,!1)})):(d(e,F)||W(e,F,_(1,{})),e[F][o]=!0),re(e,o,n)):W(e,o,n)},se=function(e,t){h(e);var n=g(t),o=y(n).concat(fe(n));return B(o,(function(t){l&&!ue.call(n,t)||le(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=Q.call(this,t);return!(this===Y&&d(J,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,F)&&this[F][t])||n)},ce=function(e,t){var n=g(e),o=v(t,!0);if(n!==Y||!d(J,o)||d(Z,o)){var r=q(n,o);return!r||!d(J,o)||d(n,F)&&n[F][o]||(r.enumerable=!0),r}},de=function(e){var t=K(g(e)),n=[];return B(t,(function(e){d(J,e)||d(k,e)||n.push(e)})),n},fe=function(e){var t=e===Y,n=K(t?Z:g(e)),o=[];return B(n,(function(e){!d(J,e)||t&&!d(Y,e)||o.push(J[e])})),o};s||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===Y&&n.call(Z,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,_(1,e))};return l&&oe&&re(Y,t,{configurable:!0,set:n}),ie(t,e)},I(G.prototype,"toString",(function(){return X(this).tag})),I(G,"withoutSetter",(function(e){return ie(M(e),e)})),T.f=ue,E.f=le,S.f=ce,w.f=A.f=de,x.f=fe,R.f=function(e){return ie(P(e),e)},l&&(W(G.prototype,"description",{configurable:!0,get:function(){return X(this).description}}),a||I(Y,"propertyIsEnumerable",ue,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),B(y(te),(function(e){N(e)})),o({target:z,stat:!0,forced:!s},{for:function(e){var t=String(e);if(d($,t))return $[t];var n=G(t);return $[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(ee,e))return ee[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!s,sham:!l},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:le,defineProperties:se,getOwnPropertyDescriptor:ce}),o({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de,getOwnPropertySymbols:fe}),o({target:"Object",stat:!0,forced:c((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),V&&o({target:"JSON",stat:!0,forced:!s||c((function(){var e=G();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))}))},{stringify:function(e,t,n){for(var o,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(o=t,(p(t)||void 0!==e)&&!ae(e))return f(t)||(t=function(e,t){if("function"==typeof o&&(t=o.call(this,e,t)),!ae(t))return t}),r[1]=t,V.apply(null,r)}}),G.prototype[H]||D(G.prototype,H,G.prototype.valueOf),j(G,z),k[F]=!0},a630:function(e,t,n){var o=n("23e7"),r=n("4df4");o({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:r})},a640:function(e,t,n){var o=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},ab13:function(e,t,n){var o=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){var o=n("23e7"),r=n("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){var o=n("825a");e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var o=n("83ab"),r=n("d039"),i=n("5135"),a=Object.defineProperty,l={},s=function(e){throw e};e.exports=function(e,t){if(i(l,e))return l[e];t||(t={});var n=[][e],u=!!i(t,"ACCESSORS")&&t.ACCESSORS,c=i(t,0)?t[0]:s,d=i(t,1)?t[1]:void 0;return l[e]=!!n&&!r((function(){if(u&&!o)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,c,d)}))}},ae93:function(e,t,n){var o,r,i,a=n("e163"),l=n("9112"),s=n("5135"),u=n("b622"),c=n("c430"),d=u("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(r=a(a(i)))!==Object.prototype&&(o=r):f=!0),null==o&&(o={}),c||s(o,d)||l(o,d,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:f}},b041:function(e,t,n){var o=n("00ee"),r=n("f5df");e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(e,t,n){var o=n("83ab"),r=n("9bf2").f,i=Function.prototype,a=i.toString,l=/^\s*function ([^ (]*)/,s="name";o&&!(s in i)&&r(i,s,{configurable:!0,get:function(){try{return a.call(this).match(l)[1]}catch(e){return""}}})},b622:function(e,t,n){var o=n("da84"),r=n("5692"),i=n("5135"),a=n("90e3"),l=n("4930"),s=n("fdbf"),u=r("wks"),c=o.Symbol,d=s?c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(l&&i(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},b64b:function(e,t,n){var o=n("23e7"),r=n("7b0b"),i=n("df75");o({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(r(e))}})},b727:function(e,t,n){var o=n("0366"),r=n("44ad"),i=n("7b0b"),a=n("50c4"),l=n("65f0"),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d;return function(p,h,m,g){for(var v,_,b=i(p),y=r(b),w=o(h,m,3),A=a(y.length),x=0,S=g||l,E=t?S(p,A):n?S(p,0):void 0;A>x;x++)if((f||x in y)&&(_=w(v=y[x],x,b),e))if(t)E[x]=_;else if(_)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:s.call(E,v)}else if(c)return!1;return d?-1:u||c?c:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},c04e:function(e,t,n){var o=n("861d");e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var o=n("da84"),r=n("ce4e"),i="__core-js_shared__",a=o[i]||r(i,{});e.exports=a},c740:function(e,t,n){var o=n("23e7"),r=n("b727").findIndex,i=n("44d2"),a=n("ae40"),l="findIndex",s=!0,u=a(l);l in[]&&Array(1).findIndex((function(){s=!1})),o({target:"Array",proto:!0,forced:s||!u},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(l)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"==typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){var o=n("23e7"),r=n("4d64").indexOf,i=n("a640"),a=n("ae40"),l=[].indexOf,s=!!l&&1/[1].indexOf(1,-0)<0,u=i("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:s||!u||!c},{indexOf:function(e){return s?l.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var o=n("5135"),r=n("fc6a"),i=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)!o(a,n)&&o(l,n)&&u.push(n);for(;t.length>s;)o(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},caad:function(e,t,n){var o=n("23e7"),r=n("4d64").includes,i=n("44d2");o({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(e,t,n){var o=n("da84"),r=n("861d"),i=o.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},ce4e:function(e,t,n){var o=n("da84"),r=n("9112");e.exports=function(e,t){try{r(o,e,t)}catch(n){o[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var o=n("428f"),r=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:o},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return o(n),r(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var o=n("00ee"),r=n("6eeb"),i=n("b041");o||r(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var o=n("9bf2").f,r=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var o=n("1c0b"),r=n("7b0b"),i=n("44ad"),a=n("50c4"),l=function(e){return function(t,n,l,s){o(n);var u=r(t),c=i(u),d=a(u.length),f=e?d-1:0,p=e?-1:1;if(l<2)for(;;){if(f in c){s=c[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in c&&(s=n(s,c[f],f,u));return s}};e.exports={left:l(!1),right:l(!0)}},d784:function(e,t,n){n("ac1f");var o=n("6eeb"),r=n("d039"),i=n("b622"),a=n("9263"),l=n("9112"),s=i("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c="$0"==="a".replace(/./,"$0"),d=i("replace"),f=!!/./[d]&&""===/./[d]("a","$0"),p=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var h=i(e),m=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!g||"replace"===e&&(!u||!c||f)||"split"===e&&!p){var v=/./[h],_=n(h,""[e],(function(e,t,n,o,r){return t.exec===a?m&&!r?{done:!0,value:v.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=_[0],y=_[1];o(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}d&&l(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){var o=n("23e7"),r=n("b727").map,i=n("1dde"),a=n("ae40"),l=i("map"),s=a("map");o({target:"Array",proto:!0,forced:!l||!s},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var o=n("23e7"),r=n("83ab"),i=n("56ef"),a=n("fc6a"),l=n("06cf"),s=n("8418");o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,o=a(e),r=l.f,u=i(o),c={},d=0;u.length>d;)void 0!==(n=r(o,t=u[d++]))&&s(c,t,n);return c}})},dbf1:function(e,t,n){(function(e){n.d(t,"a",(function(){return o}));var o="undefined"!=typeof window?window.console:e.console}).call(this,n("c8ba"))},ddb0:function(e,t,n){var o=n("da84"),r=n("fdbc"),i=n("e260"),a=n("9112"),l=n("b622"),s=l("iterator"),u=l("toStringTag"),c=i.values;for(var d in r){var f=o[d],p=f&&f.prototype;if(p){if(p[s]!==c)try{a(p,s,c)}catch(m){p[s]=c}if(p[u]||a(p,u,d),r[d])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(m){p[h]=i[h]}}}},df75:function(e,t,n){var o=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return o(e,r)}},e01a:function(e,t,n){var o=n("23e7"),r=n("83ab"),i=n("da84"),a=n("5135"),l=n("861d"),s=n("9bf2").f,u=n("e893"),c=i.Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};u(f,c);var p=f.prototype=c.prototype;p.constructor=f;var h=p.toString,m="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=h.call(e);if(a(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),o({global:!0,forced:!0},{Symbol:f})}},e163:function(e,t,n){var o=n("5135"),r=n("7b0b"),i=n("f772"),a=n("e177"),l=i("IE_PROTO"),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),o(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},e177:function(e,t,n){var o=n("d039");e.exports=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){var o=n("fc6a"),r=n("44d2"),i=n("3f8c"),a=n("69f3"),l=n("7dd0"),s="Array Iterator",u=a.set,c=a.getterFor(s);e.exports=l(Array,"Array",(function(e,t){u(this,{type:s,target:o(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,o=e.index++;return!t||o>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},e439:function(e,t,n){var o=n("23e7"),r=n("d039"),i=n("fc6a"),a=n("06cf").f,l=n("83ab"),s=r((function(){a(1)}));o({target:"Object",stat:!0,forced:!l||s,sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},e538:function(e,t,n){var o=n("b622");t.f=o},e893:function(e,t,n){var o=n("5135"),r=n("56ef"),i=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=r(t),l=a.f,s=i.f,u=0;u<n.length;u++){var c=n[u];o(e,c)||l(e,c,s(t,c))}}},e8b5:function(e,t,n){var o=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==o(e)}},e95a:function(e,t,n){var o=n("b622"),r=n("3f8c"),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},f5df:function(e,t,n){var o=n("00ee"),r=n("c6b6"),i=n("b622")("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},f772:function(e,t,n){var o=n("5692"),r=n("90e3"),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},fb15:function(e,t,n){if(n.r(t),"undefined"!=typeof window){var o=window.document.currentScript,r=n("8875");o=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(s){r=!0,i=s}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("a630"),n("fb6a"),n("b0c0"),n("25f0");var p=n("a352"),h=n.n(p);function m(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function g(e,t,n){var o=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,o)}var v=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");var _,b,y=/-(\w)/g,w=(_=function(e){return e.replace(y,(function(e,t){return t.toUpperCase()}))},b=Object.create(null),function(e){return b[e]||(b[e]=_(e))});n("5db7"),n("73d9");var A=["Start","Add","Remove","Update","End"],x=["Choose","Unchoose","Sort","Filter","Clone"],S=["Move"],E=[S,A,x].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),T={manage:S,manageAndEmit:A,emit:x};n("caad"),n("2ca0");var D=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function I(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function O(e){return e.reduce((function(e,t){var n=d(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}function C(e){return Object.entries(e).filter((function(e){var t=d(e,2),n=t[0];return t[1],!I(n)})).map((function(e){var t=d(e,2),n=t[0],o=t[1];return[w(n),o]})).filter((function(e){var t,n=d(e,2),o=n[0];return n[1],t=o,!(-1!==E.indexOf(t))}))}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}n("c740");var M=function(e){return e.el},P=function(e){return e.__draggable_context},R=function(){function e(t){var n=t.nodes,o=n.header,r=n.default,i=n.footer,a=t.root,l=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=r,this.children=[].concat(f(o),f(r),f(i)),this.externalComponent=a.externalComponent,this.rootTransition=a.transition,this.tag=a.tag,this.realList=l}var t,n,o;return t=e,n=[{key:"render",value:function(e,t){var n=this.tag,o=this.children;return e(n,t,this._isRootComponent?{default:function(){return o}}:o)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,n){var o,r;o=M(e),r={element:t[n],index:n},o.__draggable_context=r}))}},{key:"getUnderlyingVm",value:function(e){return P(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,o=n.length,r=t.children,i=r.item(e);if(null===i)return o;var a=P(i);if(a)return a.index;if(0===o)return 0;var l=M(n[0]),s=f(r).findIndex((function(e){return e===l}));return e<s?0:o}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}],n&&k(t.prototype,n),o&&k(t,o),e}(),N=n("8bbf");function j(e){var t=["transition-group","TransitionGroup"].includes(e),n=!function(e){return D.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(N.resolveComponent)(e):t?N.TransitionGroup:e}}function L(e){var t=e.$slots,n=e.tag,o=e.realList,r=function(e){var t=e.$slots,n=e.realList,o=e.getKey,r=n||[],i=d(["header","footer"].map((function(e){return(n=t[e])?n():[];var n})),2),a=i[0],l=i[1],u=t.item;if(!u)throw new Error("draggable element must have an item slot");var c=r.flatMap((function(e,t){return u({element:e,index:t}).map((function(t){return t.key=o(e),t.props=s(s({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(c.length!==r.length)throw new Error("Item slot must have only one child");return{header:a,footer:l,default:c}}({$slots:t,realList:o,getKey:e.getKey}),i=j(n);return new R({nodes:r,root:i,realList:o})}function B(e,t){var n=this;Object(N.nextTick)((function(){return n.$emit(e.toLowerCase(),t)}))}function F(e){var t=this;return function(n,o){if(null!==t.realList)return t["onDrag".concat(e)](n,o)}}function z(e){var t=this,n=F.call(this,e);return function(o,r){n.call(t,o,r),B.call(t,e,o)}}var H=null,U={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},X=["update:modelValue","change"].concat(f([].concat(f(T.manageAndEmit),f(T.emit)).map((function(e){return e.toLowerCase()})))),Y=Object(N.defineComponent)({name:"draggable",inheritAttrs:!1,props:U,emits:X,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,o=this.componentData,r=L({$slots:e,tag:n,realList:this.realList,getKey:this.getKey});this.componentStructure=r;var i=function(e){var t=e.$attrs,n=e.componentData,o=void 0===n?{}:n;return s(s({},O(Object.entries(t).filter((function(e){var t=d(e,2),n=t[0];return t[1],I(n)})))),o)}({$attrs:t,componentData:o});return r.render(N.h,i)}catch(a){return this.error=!0,Object(N.h)("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&v.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var o=function(e){var t=e.$attrs,n=e.callBackBuilder,o=O(C(t));Object.entries(n).forEach((function(e){var t=d(e,2),n=t[0],r=t[1];T[n].forEach((function(e){o["on".concat(e)]=r(e)}))}));var r="[data-draggable]".concat(o.draggable||"");return s(s({},o),{},{draggable:r})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return z.call(e,t)},emit:function(t){return B.bind(e,t)},manage:function(t){return F.call(e,t)}}}),r=1===n.nodeType?n:n.parentElement;this._sortable=new h.a(r,o),this.targetDomElement=r,r.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&C(e).forEach((function(e){var n=d(e,2),o=n[0],r=n[1];t.option(o,r)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(N.nextTick)((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,o=this.getUnderlyingPotencialDraggableComponent(t);if(!o)return{component:o};var r=o.realList,i={list:r,component:o};return t!==n&&r?s(s({},o.getUnderlyingVm(n)||{}),i):i},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),H=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){m(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var o={element:t,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(e){if(g(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,o=t.element;this.spliceList(n,1);var r={element:o,oldIndex:n};this.emitChanges({removed:r})}else m(e.clone)},onDragUpdate:function(e){m(e.item),g(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var o={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:o})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style.display})),o=n.indexOf(t.related),r=e.component.getVmIndexFromDomIndex(o);return-1===n.indexOf(H)&&t.willInsertAfter?r+1:r},onDragMove:function(e,t){var n=this.move,o=this.realList;if(!n||!o)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(r,e),a=s(s({},this.context),{},{futureIndex:i});return n(s(s({},e),{},{relatedContext:r,draggedContext:a}),t)},onDragEnd:function(){H=null}}}),G=Y;t.default=G},fb6a:function(e,t,n){var o=n("23e7"),r=n("861d"),i=n("e8b5"),a=n("23cb"),l=n("50c4"),s=n("fc6a"),u=n("8418"),c=n("b622"),d=n("1dde"),f=n("ae40"),p=d("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;o({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,o,c,d=s(this),f=l(d.length),p=a(e,f),h=a(void 0===t?f:t,f);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(d,p,h);for(o=new(void 0===n?Array:n)(v(h-p,0)),c=0;p<h;p++,c++)p in d&&u(o,c,d[p]);return o.length=c,o}})},fc6a:function(e,t,n){var o=n("44ad"),r=n("1d80");e.exports=function(e){return o(r(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var o=n("4930");e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},we.exports=Yn(Ae,f(Gn));var Vn=h(we.exports);var qn="_unitSubject_1ff9w_1",Wn="_unitAnswers_1ff9w_10",Kn="_unitAnswer_1ff9w_10",Qn="_option_1ff9w_22",Jn="_value_1ff9w_25",Zn="_active_1ff9w_37",$n="_answerContent_1ff9w_41",eo="_sortReset_1ff9w_54",to="_tips_1ff9w_62",no="_itemsContainer_1ff9w_75",oo="_items_1ff9w_75",ro="_imgs_1ff9w_81";
- /**!
- * Sortable 1.15.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){so(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function so(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(){return uo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},uo.apply(this,arguments)}function co(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fo(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var po=fo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ho=fo(/Edge/i),mo=fo(/firefox/i),go=fo(/safari/i)&&!fo(/chrome/i)&&!fo(/android/i),vo=fo(/iP(ad|od|hone)/i),_o=fo(/chrome/i)&&fo(/android/i),bo={capture:!1,passive:!1};function yo(e,t,n){e.addEventListener(t,n,!po&&bo)}function wo(e,t,n){e.removeEventListener(t,n,!po&&bo)}function Ao(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function xo(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function So(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Ao(e,t):Ao(e,t))||o&&e===n)return e;if(e===n)break}while(e=xo(e))}return null}var Eo,To=/\s+/g;function Do(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(To," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(To," ")}}function Io(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Oo(e,t){var n="";if("string"==typeof e)n=e;else do{var o=Io(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Co(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function ko(){var e=document.scrollingElement;return e||document.documentElement}function Mo(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,c,d;if(e!==window&&e.parentNode&&e!==ko()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!po))do{if(r&&r.getBoundingClientRect&&("none"!==Io(r,"transform")||n&&"static"!==Io(r,"position"))){var f=r.getBoundingClientRect();a-=f.top+parseInt(Io(r,"border-top-width")),l-=f.left+parseInt(Io(r,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var p=Oo(r||e),h=p&&p.a,m=p&&p.d;p&&(s=(a/=m)+(c/=m),u=(l/=h)+(d/=h))}return{top:a,left:l,bottom:s,right:u,width:d,height:c}}}function Po(e,t,n){for(var o=Bo(e,!0),r=Mo(e)[t];o;){var i=Mo(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===ko())break;o=Bo(o,!1)}return!1}function Ro(e,t,n,o){for(var r=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Hr.ghost&&(o||a[i]!==Hr.dragged)&&So(a[i],n.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function No(e,t){for(var n=e.lastElementChild;n&&(n===Hr.ghost||"none"===Io(n,"display")||t&&!Ao(n,t));)n=n.previousElementSibling;return n||null}function jo(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Hr.clone||t&&!Ao(e,t)||n++;return n}function Lo(e){var t=0,n=0,o=ko();if(e)do{var r=Oo(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function Bo(e,t){if(!e||!e.getBoundingClientRect)return ko();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Io(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return ko();if(o||t)return n;o=!0}}}while(n=n.parentNode);return ko()}function Fo(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function zo(e,t){return function(){if(!Eo){var n=arguments,o=this;1===n.length?e.call(o,n[0]):e.apply(o,n),Eo=setTimeout((function(){Eo=void 0}),t)}}}function Ho(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Uo(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Xo="Sortable"+(new Date).getTime();function Yo(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Io(e,"display")&&e!==Hr.ghost){t.push({target:e,rect:Mo(e)});var n=ao({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=Oo(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Mo(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=Oo(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&Fo(s,l)&&!Fo(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,s,u,o.options)),Fo(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,c,l,t)),t&&(r=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){Io(e,"transition",""),Io(e,"transform","");var r=Oo(this.el),i=r&&r.a,a=r&&r.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,Io(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Io(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Io(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Io(e,"transition",""),Io(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var Go=[],Vo={initializeByDefault:!0},qo={mount:function(e){for(var t in Vo)Vo.hasOwnProperty(t)&&!(t in e)&&(e[t]=Vo[t]);Go.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Go.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";Go.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](ao({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](ao({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in Go.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,uo(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return Go.forEach((function(o){"function"==typeof o.eventProperties&&uo(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return Go.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};var Wo=["evt"],Ko=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=co(n,Wo);qo.pluginEvent.bind(Hr)(e,t,ao({dragEl:Jo,parentEl:Zo,ghostEl:$o,rootEl:er,nextEl:tr,lastDownEl:nr,cloneEl:or,cloneHidden:rr,dragStarted:vr,putSortable:cr,activeSortable:Hr.active,originalEvent:o,oldIndex:ir,oldDraggableIndex:lr,newIndex:ar,newDraggableIndex:sr,hideGhostForTarget:Lr,unhideGhostForTarget:Br,cloneNowHidden:function(){rr=!0},cloneNowShown:function(){rr=!1},dispatchSortableEvent:function(e){Qo({sortable:t,name:e,originalEvent:o})}},r))};function Qo(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Xo]){var m,g=t.options,v="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||po||ho?(m=document.createEvent("Event")).initEvent(o,!0,!0):m=new CustomEvent(o,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=r||n,m.clone=i,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var _=ao(ao({},h),qo.getEventProperties(o,t));for(var b in _)m[b]=_[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(ao({putSortable:cr,cloneEl:or,targetEl:Jo,rootEl:er,oldIndex:ir,oldDraggableIndex:lr,newIndex:ar,newDraggableIndex:sr},e))}var Jo,Zo,$o,er,tr,nr,or,rr,ir,ar,lr,sr,ur,cr,dr,fr,pr,hr,mr,gr,vr,_r,br,yr,wr,Ar=!1,xr=!1,Sr=[],Er=!1,Tr=!1,Dr=[],Ir=!1,Or=[],Cr="undefined"!=typeof document,kr=vo,Mr=ho||po?"cssFloat":"float",Pr=Cr&&!_o&&!vo&&"draggable"in document.createElement("div"),Rr=function(){if(Cr){if(po)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Nr=function(e,t){var n=Io(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Ro(e,0,t),i=Ro(e,1,t),a=r&&Io(r),l=i&&Io(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Mo(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Mo(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Mr]||i&&"none"===n[Mr]&&s+u>o)?"vertical":"horizontal"},jr=function(e){function t(e,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==lo(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Lr=function(){!Rr&&$o&&Io($o,"display","none")},Br=function(){!Rr&&$o&&Io($o,"display","")};Cr&&!_o&&document.addEventListener("click",(function(e){if(xr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xr=!1,!1}),!0);var Fr=function(e){if(Jo){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Sr.some((function(e){var t=e[Xo].options.emptyInsertThreshold;if(t&&!No(e)){var n=Mo(e),o=r>=n.left-t&&r<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return o&&l?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Xo]._onDragOver(n)}}var r,i,a},zr=function(e){Jo&&Jo.parentNode[Xo]._isOutsideThisEl(e.target)};function Hr(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=uo({},t),e[Xo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nr(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Hr.supportPointer&&"PointerEvent"in window&&!go,emptyInsertThreshold:5};for(var o in qo.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var r in jr(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Pr,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?yo(e,"pointerdown",this._onTapStart):(yo(e,"mousedown",this._onTapStart),yo(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(yo(e,"dragover",this),yo(e,"dragenter",this)),Sr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),uo(this,Yo())}function Ur(e,t,n,o,r,i,a,l){var s,u,c=e[Xo],d=c.options.onMove;return!window.CustomEvent||po||ho?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=r||t,s.relatedRect=i||Mo(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Xr(e){e.draggable=!1}function Yr(){Ir=!1}function Gr(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Vr(e){return setTimeout(e,0)}function qr(e){return clearTimeout(e)}Hr.prototype={constructor:Hr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(_r=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Jo):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=o.filter;if(function(e){Or.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Or.push(o)}}(n),!Jo&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!go||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=So(l,o.draggable,n,!1))&&l.animated||nr===l)){if(ir=jo(l),lr=jo(l,o.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Qo({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Ko("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=So(s,o.trim(),n,!1))return Qo({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),Ko("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!So(s,o.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!Jo&&n.parentNode===i){var s=Mo(n);if(er=i,Zo=(Jo=n).parentNode,tr=Jo.nextSibling,nr=n,ur=a.group,Hr.dragged=Jo,dr={target:Jo,clientX:(t||e).clientX,clientY:(t||e).clientY},mr=dr.clientX-s.left,gr=dr.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Jo.style["will-change"]="all",o=function(){Ko("delayEnded",r,{evt:e}),Hr.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!mo&&r.nativeDraggable&&(Jo.draggable=!0),r._triggerDragStart(e,t),Qo({sortable:r,name:"choose",originalEvent:e}),Do(Jo,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Co(Jo,e.trim(),Xr)})),yo(l,"dragover",Fr),yo(l,"mousemove",Fr),yo(l,"touchmove",Fr),yo(l,"mouseup",r._onDrop),yo(l,"touchend",r._onDrop),yo(l,"touchcancel",r._onDrop),mo&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Jo.draggable=!0),Ko("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(ho||po))o();else{if(Hr.eventCanceled)return void this._onDrop();yo(l,"mouseup",r._disableDelayedDrag),yo(l,"touchend",r._disableDelayedDrag),yo(l,"touchcancel",r._disableDelayedDrag),yo(l,"mousemove",r._delayedDragTouchMoveHandler),yo(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&yo(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Jo&&Xr(Jo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;wo(e,"mouseup",this._disableDelayedDrag),wo(e,"touchend",this._disableDelayedDrag),wo(e,"touchcancel",this._disableDelayedDrag),wo(e,"mousemove",this._delayedDragTouchMoveHandler),wo(e,"touchmove",this._delayedDragTouchMoveHandler),wo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?yo(document,"pointermove",this._onTouchMove):yo(document,t?"touchmove":"mousemove",this._onTouchMove):(yo(Jo,"dragend",this),yo(er,"dragstart",this._onDragStart));try{document.selection?Vr((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Ar=!1,er&&Jo){Ko("dragStarted",this,{evt:t}),this.nativeDraggable&&yo(document,"dragover",zr);var n=this.options;!e&&Do(Jo,n.dragClass,!1),Do(Jo,n.ghostClass,!0),Hr.active=this,e&&this._appendGhost(),Qo({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fr){this._lastX=fr.clientX,this._lastY=fr.clientY,Lr();for(var e=document.elementFromPoint(fr.clientX,fr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fr.clientX,fr.clientY))!==t;)t=e;if(Jo.parentNode[Xo]._isOutsideThisEl(e),t)do{if(t[Xo]){if(t[Xo]._onDragOver({clientX:fr.clientX,clientY:fr.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Br()}},_onTouchMove:function(e){if(dr){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=$o&&Oo($o,!0),a=$o&&i&&i.a,l=$o&&i&&i.d,s=kr&&wr&&Lo(wr),u=(r.clientX-dr.clientX+o.x)/(a||1)+(s?s[0]-Dr[0]:0)/(a||1),c=(r.clientY-dr.clientY+o.y)/(l||1)+(s?s[1]-Dr[1]:0)/(l||1);if(!Hr.active&&!Ar){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if($o){i?(i.e+=u-(pr||0),i.f+=c-(hr||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Io($o,"webkitTransform",d),Io($o,"mozTransform",d),Io($o,"msTransform",d),Io($o,"transform",d),pr=u,hr=c,fr=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!$o){var e=this.options.fallbackOnBody?document.body:er,t=Mo(Jo,!0,kr,!0,e),n=this.options;if(kr){for(wr=e;"static"===Io(wr,"position")&&"none"===Io(wr,"transform")&&wr!==document;)wr=wr.parentNode;wr!==document.body&&wr!==document.documentElement?(wr===document&&(wr=ko()),t.top+=wr.scrollTop,t.left+=wr.scrollLeft):wr=ko(),Dr=Lo(wr)}Do($o=Jo.cloneNode(!0),n.ghostClass,!1),Do($o,n.fallbackClass,!0),Do($o,n.dragClass,!0),Io($o,"transition",""),Io($o,"transform",""),Io($o,"box-sizing","border-box"),Io($o,"margin",0),Io($o,"top",t.top),Io($o,"left",t.left),Io($o,"width",t.width),Io($o,"height",t.height),Io($o,"opacity","0.8"),Io($o,"position",kr?"absolute":"fixed"),Io($o,"zIndex","100000"),Io($o,"pointerEvents","none"),Hr.ghost=$o,e.appendChild($o),Io($o,"transform-origin",mr/parseInt($o.style.width)*100+"% "+gr/parseInt($o.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;Ko("dragStart",this,{evt:e}),Hr.eventCanceled?this._onDrop():(Ko("setupClone",this),Hr.eventCanceled||((or=Uo(Jo)).removeAttribute("id"),or.draggable=!1,or.style["will-change"]="",this._hideClone(),Do(or,this.options.chosenClass,!1),Hr.clone=or),n.cloneId=Vr((function(){Ko("clone",n),Hr.eventCanceled||(n.options.removeCloneOnHide||er.insertBefore(or,Jo),n._hideClone(),Qo({sortable:n,name:"clone"}))})),!t&&Do(Jo,r.dragClass,!0),t?(xr=!0,n._loopId=setInterval(n._emulateDragOver,50)):(wo(document,"mouseup",n._onDrop),wo(document,"touchend",n._onDrop),wo(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Jo)),yo(document,"drop",n),Io(Jo,"transform","translateZ(0)")),Ar=!0,n._dragStartId=Vr(n._dragStarted.bind(n,t,e)),yo(document,"selectstart",n),vr=!0,go&&Io(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,a=e.target,l=this.options,s=l.group,u=Hr.active,c=ur===s,d=l.sort,f=cr||u,p=this,h=!1;if(!Ir){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=So(a,l.draggable,i,!0),O("dragOver"),Hr.eventCanceled)return h;if(Jo.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return k(!1);if(xr=!1,u&&!l.disabled&&(c?d||(o=Zo!==er):cr===this||(this.lastPutMode=ur.checkPull(this,u,Jo,e))&&s.checkPut(this,u,Jo,e))){if(r="vertical"===this._getDirection(e,a),t=Mo(Jo),O("dragOverValid"),Hr.eventCanceled)return h;if(o)return Zo=er,C(),this._hideClone(),O("revert"),Hr.eventCanceled||(tr?er.insertBefore(Jo,tr):er.appendChild(Jo)),k(!0);var m=No(i,l.draggable);if(!m||function(e,t,n){var o=Mo(No(n.el,n.options.draggable)),r=10;return t?e.clientX>o.right+r||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+r}(e,r,this)&&!m.animated){if(m===Jo)return k(!1);if(m&&i===e.target&&(a=m),a&&(n=Mo(a)),!1!==Ur(er,i,Jo,t,a,n,e,!!a))return C(),m&&m.nextSibling?i.insertBefore(Jo,m.nextSibling):i.appendChild(Jo),Zo=i,M(),k(!0)}else if(m&&function(e,t,n){var o=Mo(Ro(n.el,0,n.options,!0)),r=10;return t?e.clientX<o.left-r||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-r||e.clientY<o.bottom&&e.clientX<o.left}(e,r,this)){var g=Ro(i,0,l,!0);if(g===Jo)return k(!1);if(n=Mo(a=g),!1!==Ur(er,i,Jo,t,a,n,e,!1))return C(),i.insertBefore(Jo,g),Zo=i,M(),k(!0)}else if(a.parentNode===i){n=Mo(a);var v,_,b,y=Jo.parentNode!==i,w=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===a||r===l||o+i/2===a+s/2}(Jo.animated&&Jo.toRect||t,a.animated&&a.toRect||n,r),A=r?"top":"left",x=Po(a,"top","top")||Po(Jo,"top","top"),S=x?x.scrollTop:void 0;if(_r!==a&&(_=n[A],Er=!1,Tr=!w&&l.invertSwap||y),v=function(e,t,n,o,r,i,a,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!a)if(l&&yr<u*r){if(!Er&&(1===br?s>c+u*i/2:s<d-u*i/2)&&(Er=!0),Er)f=!0;else if(1===br?s<c+yr:s>d-yr)return-br}else if(s>c+u*(1-r)/2&&s<d-u*(1-r)/2)return function(e){return jo(Jo)<jo(e)?1:-1}(t);if((f=f||a)&&(s<c+u*i/2||s>d-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Tr,_r===a),0!==v){var E=jo(Jo);do{E-=v,b=Zo.children[E]}while(b&&("none"===Io(b,"display")||b===$o))}if(0===v||b===a)return k(!1);_r=a,br=v;var T=a.nextElementSibling,D=!1,I=Ur(er,i,Jo,t,a,n,e,D=1===v);if(!1!==I)return 1!==I&&-1!==I||(D=1===I),Ir=!0,setTimeout(Yr,30),C(),D&&!T?i.appendChild(Jo):a.parentNode.insertBefore(Jo,D?T:a),x&&Ho(x,0,S-x.scrollTop),Zo=Jo.parentNode,void 0===_||Tr||(yr=Math.abs(_-Mo(a)[A])),M(),k(!0)}if(i.contains(Jo))return k(!1)}return!1}function O(l,s){Ko(l,p,ao({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:k,onMove:function(n,o){return Ur(er,i,Jo,t,n,Mo(n),e,o)},changed:M},s))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function k(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(Do(Jo,cr?cr.options.ghostClass:u.options.ghostClass,!1),Do(Jo,l.ghostClass,!0)),cr!==p&&p!==Hr.active?cr=p:p===Hr.active&&cr&&(cr=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===Jo&&!Jo.animated||a===i&&!a.animated)&&(_r=null),l.dragoverBubble||e.rootEl||a===document||(Jo.parentNode[Xo]._isOutsideThisEl(e.target),!t&&Fr(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){ar=jo(Jo),sr=jo(Jo,l.draggable),Qo({sortable:p,name:"change",toEl:i,newIndex:ar,newDraggableIndex:sr,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){wo(document,"mousemove",this._onTouchMove),wo(document,"touchmove",this._onTouchMove),wo(document,"pointermove",this._onTouchMove),wo(document,"dragover",Fr),wo(document,"mousemove",Fr),wo(document,"touchmove",Fr)},_offUpEvents:function(){var e=this.el.ownerDocument;wo(e,"mouseup",this._onDrop),wo(e,"touchend",this._onDrop),wo(e,"pointerup",this._onDrop),wo(e,"touchcancel",this._onDrop),wo(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ar=jo(Jo),sr=jo(Jo,n.draggable),Ko("drop",this,{evt:e}),Zo=Jo&&Jo.parentNode,ar=jo(Jo),sr=jo(Jo,n.draggable),Hr.eventCanceled||(Ar=!1,Tr=!1,Er=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qr(this.cloneId),qr(this._dragStartId),this.nativeDraggable&&(wo(document,"drop",this),wo(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),go&&Io(document.body,"user-select",""),Io(Jo,"transform",""),e&&(vr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),$o&&$o.parentNode&&$o.parentNode.removeChild($o),(er===Zo||cr&&"clone"!==cr.lastPutMode)&&or&&or.parentNode&&or.parentNode.removeChild(or),Jo&&(this.nativeDraggable&&wo(Jo,"dragend",this),Xr(Jo),Jo.style["will-change"]="",vr&&!Ar&&Do(Jo,cr?cr.options.ghostClass:this.options.ghostClass,!1),Do(Jo,this.options.chosenClass,!1),Qo({sortable:this,name:"unchoose",toEl:Zo,newIndex:null,newDraggableIndex:null,originalEvent:e}),er!==Zo?(ar>=0&&(Qo({rootEl:Zo,name:"add",toEl:Zo,fromEl:er,originalEvent:e}),Qo({sortable:this,name:"remove",toEl:Zo,originalEvent:e}),Qo({rootEl:Zo,name:"sort",toEl:Zo,fromEl:er,originalEvent:e}),Qo({sortable:this,name:"sort",toEl:Zo,originalEvent:e})),cr&&cr.save()):ar!==ir&&ar>=0&&(Qo({sortable:this,name:"update",toEl:Zo,originalEvent:e}),Qo({sortable:this,name:"sort",toEl:Zo,originalEvent:e})),Hr.active&&(null!=ar&&-1!==ar||(ar=ir,sr=lr),Qo({sortable:this,name:"end",toEl:Zo,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Ko("nulling",this),er=Jo=Zo=$o=tr=or=nr=rr=dr=fr=vr=ar=sr=ir=lr=_r=br=cr=ur=Hr.dragged=Hr.ghost=Hr.clone=Hr.active=null,Or.forEach((function(e){e.checked=!0})),Or.length=pr=hr=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Jo&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)So(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Gr(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];So(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return So(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=qo.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&jr(n)},destroy:function(){Ko("destroy",this);var e=this.el;e[Xo]=null,wo(e,"mousedown",this._onTapStart),wo(e,"touchstart",this._onTapStart),wo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(wo(e,"dragover",this),wo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Sr.splice(Sr.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!rr){if(Ko("hideClone",this),Hr.eventCanceled)return;Io(or,"display","none"),this.options.removeCloneOnHide&&or.parentNode&&or.parentNode.removeChild(or),rr=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(rr){if(Ko("showClone",this),Hr.eventCanceled)return;Jo.parentNode!=er||this.options.group.revertClone?tr?er.insertBefore(or,tr):er.appendChild(or):er.insertBefore(or,Jo),this.options.group.revertClone&&this.animate(Jo,or),Io(or,"display",""),rr=!1}}else this._hideClone()}},Cr&&yo(document,"touchmove",(function(e){(Hr.active||Ar)&&e.cancelable&&e.preventDefault()})),Hr.utils={on:yo,off:wo,css:Io,find:Co,is:function(e,t){return!!So(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:zo,closest:So,toggleClass:Do,clone:Uo,index:jo,nextTick:Vr,cancelNextTick:qr,detectDirection:Nr,getChild:Ro},Hr.get=function(e){return e[Xo]},Hr.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Hr.utils=ao(ao({},Hr.utils),e.utils)),qo.mount(e)}))},Hr.create=function(e,t){return new Hr(e,t)},Hr.version="1.15.0";var Wr,Kr,Qr,Jr,Zr,$r,ei=[],ti=!1;function ni(){ei.forEach((function(e){clearInterval(e.pid)})),ei=[]}function oi(){clearInterval($r)}var ri=zo((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=ko(),c=!1;Kr!==n&&(Kr=n,ni(),Wr=t.scroll,r=t.scrollFn,!0===Wr&&(Wr=Bo(n,!0)));var d=0,f=Wr;do{var p=f,h=Mo(p),m=h.top,g=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,w=void 0,A=void 0,x=p.scrollWidth,S=p.scrollHeight,E=Io(p),T=p.scrollLeft,D=p.scrollTop;p===u?(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY));var I=w&&(Math.abs(_-i)<=l&&T+b<x)-(Math.abs(v-i)<=l&&!!T),O=A&&(Math.abs(g-a)<=l&&D+y<S)-(Math.abs(m-a)<=l&&!!D);if(!ei[d])for(var C=0;C<=d;C++)ei[C]||(ei[C]={});ei[d].vx==I&&ei[d].vy==O&&ei[d].el===p||(ei[d].el=p,ei[d].vx=I,ei[d].vy=O,clearInterval(ei[d].pid),0==I&&0==O||(c=!0,ei[d].pid=setInterval(function(){o&&0===this.layer&&Hr.active._onTouchMove(Zr);var t=ei[this.layer].vy?ei[this.layer].vy*s:0,n=ei[this.layer].vx?ei[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Hr.dragged.parentNode[Xo],n,t,e,Zr,ei[this.layer].el)||Ho(ei[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=Bo(f,!1)));ti=c}}),30),ii=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||r;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ai(){}function li(){}ai.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Ro(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ii},uo(ai,{pluginName:"revertOnSpill"}),li.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ii},uo(li,{pluginName:"removeOnSpill"}),Hr.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?yo(document,"dragover",this._handleAutoScroll):this.options.supportPointer?yo(document,"pointermove",this._handleFallbackAutoScroll):t.touches?yo(document,"touchmove",this._handleFallbackAutoScroll):yo(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?wo(document,"dragover",this._handleAutoScroll):(wo(document,"pointermove",this._handleFallbackAutoScroll),wo(document,"touchmove",this._handleFallbackAutoScroll),wo(document,"mousemove",this._handleFallbackAutoScroll)),oi(),ni(),clearTimeout(Eo),Eo=void 0},nulling:function(){Zr=Kr=Wr=ti=$r=Qr=Jr=null,ei.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(Zr=e,t||this.options.forceAutoScrollFallback||ho||po||go){ri(e,this.options,i,t);var a=Bo(i,!0);!ti||$r&&o===Qr&&r===Jr||($r&&oi(),$r=setInterval((function(){var i=Bo(document.elementFromPoint(o,r),!0);i!==a&&(a=i,ni()),ri(e,n.options,i,t)}),10),Qr=o,Jr=r)}else{if(!this.options.bubbleScroll||Bo(i,!0)===ko())return void ni();ri(e,this.options,Bo(i,!1),!1)}}},uo(e,{pluginName:"scroll",initializeByDefault:!0})}),Hr.mount(li,ai);e("D",o({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(e,{emit:t}){const n=r({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]});m((()=>{}));const o=u((()=>{const t=e.data.answers||[],n=e.value||[];return t.forEach((e=>{const t=n.findIndex((t=>t.answerId===e.examinationQuestionAnswerId));e.checked=-1!==t})),t})),i=()=>{const t=e.data.answers||[],o=e.data.userAnswer||[];_((()=>{if(o.length>0){const e=[];o.forEach(((n,o)=>{const r=t.find((e=>n.answerId===e.examinationQuestionAnswerId)),i=t.find((e=>n.answerExtra==e.questionExtra)),a={itemIndex:o,index:n.answerId,leftValue:n.answer,rightValue:n.answerExtra,leftType:r&&r.questionAnswerTypeCode||"TXT",rightType:r&&r.questionExtraTypeCode||"TXT",rightIndex:i?i.examinationQuestionAnswerId:""};e.push(a)})),n.options=e}}))};return g((()=>n.options),(()=>{const e=n.options||[],o=[];e.forEach(((e,t)=>{o.push({answerId:e.index,answer:e.leftValue,answerExtra:t+1})})),t("update:value",o)})),m((()=>{i()})),()=>a(c,null,[a("div",{class:qn},[a(Q,{index:e.index,name:e.data.name,showRate:e.showRate,score:e.data.totalScore,answerType:P.SORT,extra:{rightRate:e.data.rightRate,questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls}},null),a("div",{class:[Wn]},[o.value.map(((o,r)=>a("div",{class:[Kn,o.checked&&Zn],onClick:()=>(o=>{if(o.checked||e.readOnly)return;const r=[];n.options.forEach(((e,t)=>{r.push({answerId:e.index,answer:e.leftValue,answerExtra:t+1})})),r.push({answerId:o.examinationQuestionAnswerId,answer:o.questionAnswer,answerExtra:n.list.length+1}),n.list.push({answerId:o.examinationQuestionAnswerId,answer:o.questionAnswer,answerExtra:n.list.length+1}),t("update:value",r),_((()=>{i()}))})(o)},[a("div",{class:$n},[a("span",{class:Qn},[M[r+1],s(".")]),o.questionAnswerTypeCode===F&&a("div",{class:Jn},[a(T,{src:o.questionAnswer},null)]),o.questionAnswerTypeCode===z&&a("div",{class:Jn},[o.questionAnswer])])]))),a("div",{class:[eo,"van-hairline--top"]},[a("span",{class:to},[s("我的回答(可拖拽)")]),a(v,{type:"primary",round:!0,disabled:e.readOnly,onClick:()=>{n.options=[],n.list=[],(()=>{const e=n.list||[],o=[];e.forEach(((e,t)=>{o.push({answerId:e.answerId,answer:e.answer,answerExtra:t+1})})),t("update:value",o)})(),i()}},{default:()=>[s("重置")]})]),e.readOnly?n.options.map((e=>a("div",{class:no},[e.leftType===z&&a(O,{class:[oo],"data-id":e.itemIndex},{default:()=>[e.leftValue]}),e.leftType===F&&a(T,{src:e.leftValue,"data-id":e.itemIndex,class:[ro,"van-hairline--surround"],fit:"cover"},null)]))):a(Vn,{modelValue:n.options,"onUpdate:modelValue":e=>n.options=e,itemKey:"itemIndex"},{item:e=>{const t=e.element;return a("div",{class:no},[t.leftType===z&&a(O,{class:[oo],"data-id":t.itemIndex},{default:()=>[t.leftValue]}),t.leftType===F&&a(T,{src:t.leftValue,"data-id":t.itemIndex,class:[ro,"van-hairline--surround"],fit:"cover"},null)])}})])]),e.showAnalysis&&a("div",{class:qn},[a(ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])])}}));var si="_unitSubject_cexcs_1",ui="_unitAnswers_cexcs_10",ci="_answerItem_cexcs_15",di="_img_cexcs_26",fi="_unitItem_cexcs_29",pi="_active_cexcs_45",hi="_canvasSection_cexcs_49",mi="_resetBtnGroup_cexcs_54";e("K",o({name:"keep-look-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(e,{emit:t}){const n=b(),o=r({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),i=(e,t="left")=>{const n=o.drawLineList||[];let r=!1,i=0,a={};return n.forEach(((n,o)=>{(n.leftIndex===e&&"left"===t||n.rightIndex===e&&"right"===t)&&(a=n,r=!0,i=o)})),{status:r,selectIndex:i,selectOption:a}},l=()=>{const e=y(n.value),t=o.selectItem[0],r=y(document.getElementById(t.index+"-left"));r.index=t.index;const i=o.selectItem[1],a=y(document.getElementById(i.index+"-right"));a.index=i.index,console.log(o.selectItem,r,a);const l={x:r.width,y:r.top+r.height/2-e.top},s={x:a.left-e.left,y:a.top+a.height/2-e.top};return o.options.forEach((e=>{e.index===r.index&&(e.leftLocked=!0),e.index===a.index&&(e.rightLocked=!0)})),{startPoint:l,endPoint:s,leftIndex:r.index,rightIndex:a.index}},u=e=>{if(e.getContext){const t=e.getContext("2d");t.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach((e=>{d(t,e.startPoint,e.endPoint)}))}},d=(e,t,n)=>{e.beginPath(),e.moveTo(Math.floor(t.x-1)*o.dpr,Math.ceil(t.y)*o.dpr),e.lineTo(Math.ceil(n.x+1)*o.dpr,Math.ceil(n.y)*o.dpr),e.lineWidth=2*o.dpr,e.strokeStyle="#FF8057",e.stroke()},f=()=>{const e=o.options||[],n=o.drawLineList||[],r=[];n.forEach((t=>{const n=e.find((e=>e.index===t.leftIndex)),o=e.find((e=>e.index===t.rightIndex));r.push({answerId:n.index,answer:n.leftValue,answerExtra:o.rightValue})})),t("update:value",r)};return m((()=>{(()=>{const t=e.data.answers||[],r=e.data.userAnswer||[];t.forEach((e=>{const t={index:e.examinationQuestionAnswerId,leftValue:e.questionAnswer,rightValue:e.questionExtra,leftType:e.questionAnswerTypeCode||"TXT",rightType:e.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(t)})),r.forEach((e=>{const t={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach((n=>{n.index===e.answerId&&(n.left=!0,n.leftLocked=!0,t.leftIndex=n.index),n.rightValue===e.answerExtra&&(n.right=!0,n.leftLocked=!0,t.rightIndex=n.index)})),o.drawLineList.push(t)})),_((()=>{o.drawLineList.forEach((e=>{console.log(e,"drawLine"),o.selectItem=[];const t=y(document.getElementById(e.leftIndex+"-left"));t.index=e.leftIndex,o.selectItem[0]=t;const n=y(document.getElementById(e.rightIndex+"-right"));n.index=e.rightIndex,o.selectItem[1]=n;const r=l();e.endPoint=r.endPoint,e.startPoint=r.startPoint,o.selectItem=[]})),setTimeout((()=>{u(n.value)}),100)}))})(),_((()=>{const e=document.getElementById(o.answerDomId),t=y(e);o.answerRect=t;const n=window.devicePixelRatio;o.dpr=n}))})),()=>a(c,null,[a("div",{class:si},[a(Q,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:P.LINK,extra:{questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls,rightRate:e.data.rightRate}},null),a("div",{class:[ui],id:o.answerDomId},[a("canvas",{ref:n,class:hi,width:o.answerRect.width*o.dpr||0,height:o.answerRect.height*o.dpr||0,style:{width:(o.answerRect.width||0)+"px",height:(o.answerRect.height||0)+"px"}},null),o.options.map((t=>a("div",{class:ci},[a("div",{class:[fi,t.left&&pi],id:t.index+"-left",onClick:r=>((t,r)=>{if(e.readOnly)return;o.options.forEach((e=>{e.leftLocked||r.index===e.index||(e.left=!1)}));const a=i(r.index,"left");if(a.status)o.options.forEach((e=>{e.rightLocked||(e.right=!1)})),o.selectItem=[],o.drawLineList.splice(a.selectIndex,1),u(n.value),o.options.forEach((e=>{a.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),a.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(r.left=!r.left,r.left?o.selectItem[0]={index:r.index}:o.selectItem[0]=null,o.selectItem[0]&&o.selectItem[1]){const e=l();o.drawLineList.push(e),o.selectItem=[],u(n.value)}f()})(0,t)},[t.leftType===z&&t.leftValue,t.leftType===F&&a(T,{src:t.leftValue,class:di},null)]),a("div",{class:[fi,t.right&&pi],id:t.index+"-right",onClick:r=>((t,r)=>{if(e.readOnly)return;o.options.forEach((e=>{e.rightLocked||r.index===e.index||(e.right=!1)}));const a=i(r.index,"right");if(a.status)o.options.forEach((e=>{e.leftLocked||(e.left=!1)})),o.selectItem=[],o.drawLineList.splice(a.selectIndex,1),u(n.value),o.options.forEach((e=>{a.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),a.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(r.right=!r.right,r.right?o.selectItem[1]={index:r.index}:o.selectItem[1]=null,o.selectItem[0]&&o.selectItem[1]){const e=l();o.drawLineList.push(e),o.selectItem=[],u(n.value)}f()})(0,t)},[t.rightType===z&&t.rightValue,t.rightType===F&&a(T,{src:t.rightValue,class:di},null)])])))]),a("div",{class:mi},[a(v,{round:!0,type:"primary",disabled:e.readOnly,onClick:()=>{o.drawLineList=[],u(n.value),o.options.forEach((e=>{e.left=!1,e.right=!1,e.leftLocked=!1,e.rightLocked=!1})),o.selectItem=[],f()}},{default:()=>[s("重置")]})])]),e.showAnalysis&&a("div",{class:si},[a(ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])])}}));var gi="_unitSubject_vaiy0_1",vi="_unitAnswers_vaiy0_10",_i="_playSection_vaiy0_14",bi="_img_vaiy0_19",yi="_playTitle_vaiy0_24",wi="_playBtn_vaiy0_29",Ai="_unitScoreNum_vaiy0_37",xi="_score_vaiy0_42",Si="_scoreTitle_vaiy0_47",Ei="_scoreTips_vaiy0_53";e("P",o({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},unitId:{type:String,default:""},readOnly:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0,score:0})}},emits:["update:value"],setup(e,{emit:t}){console.log(e,"props");const n=r({list:[],score:0}),o=u((()=>e.data.questionExtendsInfo?JSON.parse(e.data.questionExtendsInfo):"")),i=()=>{const r=o.value;r&&(console.log(e.unitId),w({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${r.musicSheetId}&modelType=evaluation&unitId=${e.unitId}&questionId=${e.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),A("webViewOnResume",(()=>{if(x().android){var o;const r=window.ORCHESTRA||(null===(o=window.webkit)||void 0===o||null===(o=o.messageHandlers)||void 0===o?void 0:o.ORCHESTRA);console.log(r,"-------------");const i=r.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",i);const a=i?JSON.parse(i):{};if(a.questionId===e.data.id){const e=a.score||0;n.score<e&&(n.score=a.score||0),S({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}t("update:value",[{answerId:"",answer:n.score,answerExtra:""}]),E("webViewOnResume",(()=>{}))}else S({api:"getCache",content:{key:"h5-orchestra-unit"}}).then((o=>{const r=o.content;if(r.value){console.log("🚀 ~ listenerMessage ~ content.value",r.value,"---------------");const o=r.value?JSON.parse(r.value):{};if(console.log("🚀 ~ listenerMessage ~ result",o,e.data.questionId),o.questionId===e.data.id){const e=o.score||0;n.score<e&&(n.score=o.score||0)}t("update:value",[{answerId:"",answer:n.score,answerExtra:""}]),S({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}E("webViewOnResume",(()=>{}))}))})))};return m((()=>{const t=e.value||[];t.length>0&&(n.score=t[0].answer)})),()=>a(c,null,[a("div",{class:gi},[a(Q,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:P.PLAY,extra:{questionDetail:e.data.questionDetail,mediaUrls:"",rightRate:e.data.rightRate}},null),a("div",{class:[vi]},[o.value&&a(C,{class:_i,center:!0,titleClass:["van-ellipsis",yi]},{icon:()=>a(T,{class:bi,src:"./assets/icon-song.c2cb716c.png"},null),title:()=>a(c,null,[o.value.musicName]),value:()=>a(v,{round:!0,class:wi,type:"primary",onClick:i,disabled:e.readOnly},{default:()=>[s("点击评测"),a(l,{name:"play"},null)]})}),(!e.readOnly||e.showScore)&&a("div",{class:["van-hairline--top",Ai]},[a("div",{class:xi},[n.score]),a("div",{class:Si},[s("评测分数")]),!e.showScore&&a("div",{class:Ei},[s("多次评测取完整评测的最高分数")])])])]),e.showAnalysis&&a("div",{class:gi},[a(ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])])}}))}}}))}();
|