12345678910 |
- import{a as Cl,aH as Al,aB as wl,r as z,_ as _e,f as li,q as Ol,W as Tl,w as Dl,aj as Oe,at as Pl,c as Z,o as j,b as l,S as v,K as y,P as K,Q as ie,u as ye,M as Ue,J as Ce,R as Je,a9 as We,L as Bo,G as It,T as Wi,Y as Vl,F as Rl,a7 as Ul}from"./vue.D1BjjNmv.js";import{b as Ml,C as Kl,U as Ct}from"./api.CxLDJZ0g.js";import{r as et,a3 as kl,g as Bl,a4 as Nl,c as jl,E as M,X as gt,U as mn,a5 as Fl,a6 as Hi,Y as Yi,a7 as si,a8 as Ll,a9 as Ql,Z as Xi}from"./index.DHf73rdx.js";import{g as Gl}from"./pcaData.5HEg6BqW.js";import zl from"./QuestionBankForm.BmTMGs62.js";import{A as $l}from"./api.CrgfWOtI.js";import Jl from"./treeList.DaNxKmrm.js";import{G as Zi,a as qi,b as _i}from"./api.D6IRal6v.js";import{_ as Wl}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QuestionOptionsEditor.CfqO4x61.js";import"./BlankAnswerEditor.C4I2efc6.js";const ea="/assets/sheng.BKW1Im68.png",Hl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";function Yl(r){return et({url:"/api/system/competency/list",method:"get",params:{...r,tenant_id:1}})}function Yt(r){return et({url:"/api/system/interview_question/list",method:"get",params:{...r,tenant_id:1}})}function Xl(r){return et({url:"/api/system/interview_question/ai_generated",method:"post",data:{...r,tenant_id:1},timeout:0})}function ta(r){return et({url:"/api/system/interview_question/draft_list",method:"get",params:{...r,tenant_id:1}})}function Zl(r){return et({url:"/api/system/interview_question/confirm_draft",method:"post",data:{...r,tenant_id:1},timeout:0})}function ql(r){return et({url:"/api/system/digital_human/",method:"get",params:{...r,tenant_id:1}})}function di(r){return et({url:"/api/system/job_config/list",method:"post",data:{...r,tenant_id:1}})}function Ft(r){return et({url:`/api/system/job_config/detail/${r.id}`,method:"put",data:{...r,tenant_id:1}})}function Un(r){return et({url:`/api/system/job_config/position/detail/${r}`,method:"get"})}function ui(r){return et({url:"api/system/job/add_question",method:"post",data:{...r,tenant_id:"1"}})}function ci(r){return et({url:"/api/system/digital_human/generate_opening_video",method:"post",data:{...r,tenant_id:"1"},timeout:0})}function na(r){return et({url:"/api/system/digital_human/generate_question_videos",method:"post",data:{...r,tenant_id:"1",force_regenerate:!0},timeout:0})}function _l(r){return et({url:"/api/system/job/batch_delete_questions",method:"post",data:{...r,tenant_id:"1"}})}function oa(r){return et({url:"/competency/generate_from_position/",method:"post",data:{...r,tenant_id:"1"},timeout:0})}function es(r){return et({url:"/competency/save_position_tags/",method:"post",data:{...r,tenant_id:"1"}})}function ts(r){return et({url:"/api/system/competency/list",method:"get",params:{...r,tenant_id:"1"}})}function ns(r){return et({url:"/api/system/job/questions",method:"get",params:{...r,tenant_id:1}})}function os(r){return et({url:"/api/system/competency/create",method:"post",data:{...r,tenant_id:1}})}function is(r){return et({url:"/api/system/competency/batch_bind",method:"post",data:{...r,tenant_id:1}})}var ha={exports:{}};/**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function ia(r,i){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);i&&(d=d.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,d)}return o}function Qt(r){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?ia(Object(o),!0).forEach(function(d){as(r,d,o[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ia(Object(o)).forEach(function(d){Object.defineProperty(r,d,Object.getOwnPropertyDescriptor(o,d))})}return r}function zo(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zo=function(i){return typeof i}:zo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zo(r)}function as(r,i,o){return i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}function Vt(){return Vt=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(r[d]=o[d])}return r},Vt.apply(this,arguments)}function rs(r,i){if(r==null)return{};var o={},d=Object.keys(r),n,c;for(c=0;c<d.length;c++)n=d[c],!(i.indexOf(n)>=0)&&(o[n]=r[n]);return o}function ls(r,i){if(r==null)return{};var o=rs(r,i),d,n;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(n=0;n<c.length;n++)d=c[n],!(i.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(r,d)&&(o[d]=r[d])}return o}function ss(r){return ds(r)||us(r)||cs(r)||fs()}function ds(r){if(Array.isArray(r))return xi(r)}function us(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function cs(r,i){if(r){if(typeof r=="string")return xi(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return xi(r,i)}}function xi(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,d=new Array(i);o<i;o++)d[o]=r[o];return d}function fs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var vs="1.14.0";function Xt(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Zt=Xt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xo=Xt(/Edge/i),aa=Xt(/firefox/i),ho=Xt(/safari/i)&&!Xt(/chrome/i)&&!Xt(/android/i),ya=Xt(/iP(ad|od|hone)/i),ps=Xt(/chrome/i)&&Xt(/android/i),ba={capture:!1,passive:!1};function be(r,i,o){r.addEventListener(i,o,!Zt&&ba)}function ge(r,i,o){r.removeEventListener(i,o,!Zt&&ba)}function Yo(r,i){if(i){if(i[0]===">"&&(i=i.substring(1)),r)try{if(r.matches)return r.matches(i);if(r.msMatchesSelector)return r.msMatchesSelector(i);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(i)}catch{return!1}return!1}}function ms(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Kt(r,i,o,d){if(r){o=o||document;do{if(i!=null&&(i[0]===">"?r.parentNode===o&&Yo(r,i):Yo(r,i))||d&&r===o)return r;if(r===o)break}while(r=ms(r))}return null}var ra=/\s+/g;function Qe(r,i,o){if(r&&i)if(r.classList)r.classList[o?"add":"remove"](i);else{var d=(" "+r.className+" ").replace(ra," ").replace(" "+i+" "," ");r.className=(d+(o?" "+i:"")).replace(ra," ")}}function te(r,i,o){var d=r&&r.style;if(d){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(o=r.currentStyle),i===void 0?o:o[i];!(i in d)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),d[i]=o+(typeof o=="string"?"":"px")}}function bn(r,i){var o="";if(typeof r=="string")o=r;else do{var d=te(r,"transform");d&&d!=="none"&&(o=d+" "+o)}while(!i&&(r=r.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function Sa(r,i,o){if(r){var d=r.getElementsByTagName(i),n=0,c=d.length;if(o)for(;n<c;n++)o(d[n],n);return d}return[]}function Lt(){var r=document.scrollingElement;return r||document.documentElement}function Fe(r,i,o,d,n){if(!(!r.getBoundingClientRect&&r!==window)){var c,t,a,s,u,m,g;if(r!==window&&r.parentNode&&r!==Lt()?(c=r.getBoundingClientRect(),t=c.top,a=c.left,s=c.bottom,u=c.right,m=c.height,g=c.width):(t=0,a=0,s=window.innerHeight,u=window.innerWidth,m=window.innerHeight,g=window.innerWidth),(i||o)&&r!==window&&(n=n||r.parentNode,!Zt))do if(n&&n.getBoundingClientRect&&(te(n,"transform")!=="none"||o&&te(n,"position")!=="static")){var h=n.getBoundingClientRect();t-=h.top+parseInt(te(n,"border-top-width")),a-=h.left+parseInt(te(n,"border-left-width")),s=t+c.height,u=a+c.width;break}while(n=n.parentNode);if(d&&r!==window){var b=bn(n||r),S=b&&b.a,E=b&&b.d;b&&(t/=E,a/=S,g/=S,m/=E,s=t+m,u=a+g)}return{top:t,left:a,bottom:s,right:u,width:g,height:m}}}function la(r,i,o){for(var d=rn(r,!0),n=Fe(r)[i];d;){var c=Fe(d)[o],t=void 0;if(t=n>=c,!t)return d;if(d===Lt())break;d=rn(d,!1)}return!1}function jn(r,i,o,d){for(var n=0,c=0,t=r.children;c<t.length;){if(t[c].style.display!=="none"&&t[c]!==de.ghost&&(d||t[c]!==de.dragged)&&Kt(t[c],o.draggable,r,!1)){if(n===i)return t[c];n++}c++}return null}function Oi(r,i){for(var o=r.lastElementChild;o&&(o===de.ghost||te(o,"display")==="none"||i&&!Yo(o,i));)o=o.previousElementSibling;return o||null}function $e(r,i){var o=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==de.clone&&(!i||Yo(r,i))&&o++;return o}function sa(r){var i=0,o=0,d=Lt();if(r)do{var n=bn(r),c=n.a,t=n.d;i+=r.scrollLeft*c,o+=r.scrollTop*t}while(r!==d&&(r=r.parentNode));return[i,o]}function gs(r,i){for(var o in r)if(r.hasOwnProperty(o)){for(var d in i)if(i.hasOwnProperty(d)&&i[d]===r[o][d])return Number(o)}return-1}function rn(r,i){if(!r||!r.getBoundingClientRect)return Lt();var o=r,d=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=te(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return Lt();if(d||i)return o;d=!0}}while(o=o.parentNode);return Lt()}function hs(r,i){if(r&&i)for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);return r}function fi(r,i){return Math.round(r.top)===Math.round(i.top)&&Math.round(r.left)===Math.round(i.left)&&Math.round(r.height)===Math.round(i.height)&&Math.round(r.width)===Math.round(i.width)}var yo;function Ea(r,i){return function(){if(!yo){var o=arguments,d=this;o.length===1?r.call(d,o[0]):r.apply(d,o),yo=setTimeout(function(){yo=void 0},i)}}}function ys(){clearTimeout(yo),yo=void 0}function xa(r,i,o){r.scrollLeft+=i,r.scrollTop+=o}function Ti(r){var i=window.Polymer,o=window.jQuery||window.Zepto;return i&&i.dom?i.dom(r).cloneNode(!0):o?o(r).clone(!0)[0]:r.cloneNode(!0)}function da(r,i){te(r,"position","absolute"),te(r,"top",i.top),te(r,"left",i.left),te(r,"width",i.width),te(r,"height",i.height)}function vi(r){te(r,"position",""),te(r,"top",""),te(r,"left",""),te(r,"width",""),te(r,"height","")}var pt="Sortable"+new Date().getTime();function bs(){var r=[],i;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var d=[].slice.call(this.el.children);d.forEach(function(n){if(!(te(n,"display")==="none"||n===de.ghost)){r.push({target:n,rect:Fe(n)});var c=Qt({},r[r.length-1].rect);if(n.thisAnimationDuration){var t=bn(n,!0);t&&(c.top-=t.f,c.left-=t.e)}n.fromRect=c}})}},addAnimationState:function(d){r.push(d)},removeAnimationState:function(d){r.splice(gs(r,{target:d}),1)},animateAll:function(d){var n=this;if(!this.options.animation){clearTimeout(i),typeof d=="function"&&d();return}var c=!1,t=0;r.forEach(function(a){var s=0,u=a.target,m=u.fromRect,g=Fe(u),h=u.prevFromRect,b=u.prevToRect,S=a.rect,E=bn(u,!0);E&&(g.top-=E.f,g.left-=E.e),u.toRect=g,u.thisAnimationDuration&&fi(h,g)&&!fi(m,g)&&(S.top-g.top)/(S.left-g.left)===(m.top-g.top)/(m.left-g.left)&&(s=Es(S,h,b,n.options)),fi(g,m)||(u.prevFromRect=m,u.prevToRect=g,s||(s=n.options.animation),n.animate(u,S,g,s)),s&&(c=!0,t=Math.max(t,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(i),c?i=setTimeout(function(){typeof d=="function"&&d()},t):typeof d=="function"&&d(),r=[]},animate:function(d,n,c,t){if(t){te(d,"transition",""),te(d,"transform","");var a=bn(this.el),s=a&&a.a,u=a&&a.d,m=(n.left-c.left)/(s||1),g=(n.top-c.top)/(u||1);d.animatingX=!!m,d.animatingY=!!g,te(d,"transform","translate3d("+m+"px,"+g+"px,0)"),this.forRepaintDummy=Ss(d),te(d,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),te(d,"transform","translate3d(0,0,0)"),typeof d.animated=="number"&&clearTimeout(d.animated),d.animated=setTimeout(function(){te(d,"transition",""),te(d,"transform",""),d.animated=!1,d.animatingX=!1,d.animatingY=!1},t)}}}}function Ss(r){return r.offsetWidth}function Es(r,i,o,d){return Math.sqrt(Math.pow(i.top-r.top,2)+Math.pow(i.left-r.left,2))/Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))*d.animation}var Mn=[],pi={initializeByDefault:!0},Io={mount:function(i){for(var o in pi)pi.hasOwnProperty(o)&&!(o in i)&&(i[o]=pi[o]);Mn.forEach(function(d){if(d.pluginName===i.pluginName)throw"Sortable: Cannot mount plugin ".concat(i.pluginName," more than once")}),Mn.push(i)},pluginEvent:function(i,o,d){var n=this;this.eventCanceled=!1,d.cancel=function(){n.eventCanceled=!0};var c=i+"Global";Mn.forEach(function(t){o[t.pluginName]&&(o[t.pluginName][c]&&o[t.pluginName][c](Qt({sortable:o},d)),o.options[t.pluginName]&&o[t.pluginName][i]&&o[t.pluginName][i](Qt({sortable:o},d)))})},initializePlugins:function(i,o,d,n){Mn.forEach(function(a){var s=a.pluginName;if(!(!i.options[s]&&!a.initializeByDefault)){var u=new a(i,o,i.options);u.sortable=i,u.options=i.options,i[s]=u,Vt(d,u.defaults)}});for(var c in i.options)if(i.options.hasOwnProperty(c)){var t=this.modifyOption(i,c,i.options[c]);typeof t<"u"&&(i.options[c]=t)}},getEventProperties:function(i,o){var d={};return Mn.forEach(function(n){typeof n.eventProperties=="function"&&Vt(d,n.eventProperties.call(o[n.pluginName],i))}),d},modifyOption:function(i,o,d){var n;return Mn.forEach(function(c){i[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[o]=="function"&&(n=c.optionListeners[o].call(i[c.pluginName],d))}),n}};function vo(r){var i=r.sortable,o=r.rootEl,d=r.name,n=r.targetEl,c=r.cloneEl,t=r.toEl,a=r.fromEl,s=r.oldIndex,u=r.newIndex,m=r.oldDraggableIndex,g=r.newDraggableIndex,h=r.originalEvent,b=r.putSortable,S=r.extraEventProperties;if(i=i||o&&o[pt],!!i){var E,I=i.options,O="on"+d.charAt(0).toUpperCase()+d.substr(1);window.CustomEvent&&!Zt&&!xo?E=new CustomEvent(d,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(d,!0,!0)),E.to=t||o,E.from=a||o,E.item=n||o,E.clone=c,E.oldIndex=s,E.newIndex=u,E.oldDraggableIndex=m,E.newDraggableIndex=g,E.originalEvent=h,E.pullMode=b?b.lastPutMode:void 0;var A=Qt(Qt({},S),Io.getEventProperties(d,i));for(var R in A)E[R]=A[R];o&&o.dispatchEvent(E),I[O]&&I[O].call(i,E)}}var xs=["evt"],St=function(i,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.evt,c=ls(d,xs);Io.pluginEvent.bind(de)(i,o,Qt({dragEl:W,parentEl:Ge,ghostEl:pe,rootEl:je,nextEl:yn,lastDownEl:$o,cloneEl:ze,cloneHidden:an,dragStarted:po,putSortable:st,activeSortable:de.active,originalEvent:n,oldIndex:Nn,oldDraggableIndex:bo,newIndex:wt,newDraggableIndex:on,hideGhostForTarget:wa,unhideGhostForTarget:Oa,cloneNowHidden:function(){an=!0},cloneNowShown:function(){an=!1},dispatchSortableEvent:function(a){ht({sortable:o,name:a,originalEvent:n})}},c))};function ht(r){vo(Qt({putSortable:st,cloneEl:ze,targetEl:W,rootEl:je,oldIndex:Nn,oldDraggableIndex:bo,newIndex:wt,newDraggableIndex:on},r))}var W,Ge,pe,je,yn,$o,ze,an,Nn,wt,bo,on,No,st,Bn=!1,Xo=!1,Zo=[],gn,Ut,mi,gi,ua,ca,po,Kn,So,Eo=!1,jo=!1,Jo,vt,hi=[],Ii=!1,qo=[],ei=typeof document<"u",Fo=ya,fa=xo||Zt?"cssFloat":"float",Is=ei&&!ps&&!ya&&"draggable"in document.createElement("div"),Ia=function(){if(ei){if(Zt)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Ca=function(i,o){var d=te(i),n=parseInt(d.width)-parseInt(d.paddingLeft)-parseInt(d.paddingRight)-parseInt(d.borderLeftWidth)-parseInt(d.borderRightWidth),c=jn(i,0,o),t=jn(i,1,o),a=c&&te(c),s=t&&te(t),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Fe(c).width,m=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Fe(t).width;if(d.display==="flex")return d.flexDirection==="column"||d.flexDirection==="column-reverse"?"vertical":"horizontal";if(d.display==="grid")return d.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&a.float&&a.float!=="none"){var g=a.float==="left"?"left":"right";return t&&(s.clear==="both"||s.clear===g)?"vertical":"horizontal"}return c&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=n&&d[fa]==="none"||t&&d[fa]==="none"&&u+m>n)?"vertical":"horizontal"},Cs=function(i,o,d){var n=d?i.left:i.top,c=d?i.right:i.bottom,t=d?i.width:i.height,a=d?o.left:o.top,s=d?o.right:o.bottom,u=d?o.width:o.height;return n===a||c===s||n+t/2===a+u/2},As=function(i,o){var d;return Zo.some(function(n){var c=n[pt].options.emptyInsertThreshold;if(!(!c||Oi(n))){var t=Fe(n),a=i>=t.left-c&&i<=t.right+c,s=o>=t.top-c&&o<=t.bottom+c;if(a&&s)return d=n}}),d},Aa=function(i){function o(c,t){return function(a,s,u,m){var g=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(c==null&&(t||g))return!0;if(c==null||c===!1)return!1;if(t&&c==="clone")return c;if(typeof c=="function")return o(c(a,s,u,m),t)(a,s,u,m);var h=(t?a:s).options.group.name;return c===!0||typeof c=="string"&&c===h||c.join&&c.indexOf(h)>-1}}var d={},n=i.group;(!n||zo(n)!="object")&&(n={name:n}),d.name=n.name,d.checkPull=o(n.pull,!0),d.checkPut=o(n.put),d.revertClone=n.revertClone,i.group=d},wa=function(){!Ia&&pe&&te(pe,"display","none")},Oa=function(){!Ia&&pe&&te(pe,"display","")};ei&&document.addEventListener("click",function(r){if(Xo)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),Xo=!1,!1},!0);var hn=function(i){if(W){i=i.touches?i.touches[0]:i;var o=As(i.clientX,i.clientY);if(o){var d={};for(var n in i)i.hasOwnProperty(n)&&(d[n]=i[n]);d.target=d.rootEl=o,d.preventDefault=void 0,d.stopPropagation=void 0,o[pt]._onDragOver(d)}}},ws=function(i){W&&W.parentNode[pt]._isOutsideThisEl(i.target)};function de(r,i){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=i=Vt({},i),r[pt]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ca(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,a){t.setData("Text",a.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:de.supportPointer!==!1&&"PointerEvent"in window&&!ho,emptyInsertThreshold:5};Io.initializePlugins(this,r,o);for(var d in o)!(d in i)&&(i[d]=o[d]);Aa(i);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=i.forceFallback?!1:Is,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?be(r,"pointerdown",this._onTapStart):(be(r,"mousedown",this._onTapStart),be(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(be(r,"dragover",this),be(r,"dragenter",this)),Zo.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),Vt(this,bs())}de.prototype={constructor:de,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(Kn=null)},_getDirection:function(i,o){return typeof this.options.direction=="function"?this.options.direction.call(this,i,o,W):this.options.direction},_onTapStart:function(i){if(i.cancelable){var o=this,d=this.el,n=this.options,c=n.preventOnFilter,t=i.type,a=i.touches&&i.touches[0]||i.pointerType&&i.pointerType==="touch"&&i,s=(a||i).target,u=i.target.shadowRoot&&(i.path&&i.path[0]||i.composedPath&&i.composedPath()[0])||s,m=n.filter;if(Ms(d),!W&&!(/mousedown|pointerdown/.test(t)&&i.button!==0||n.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ho&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Kt(s,n.draggable,d,!1),!(s&&s.animated)&&$o!==s)){if(Nn=$e(s),bo=$e(s,n.draggable),typeof m=="function"){if(m.call(this,i,s,this)){ht({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:d,fromEl:d}),St("filter",o,{evt:i}),c&&i.cancelable&&i.preventDefault();return}}else if(m&&(m=m.split(",").some(function(g){if(g=Kt(u,g.trim(),d,!1),g)return ht({sortable:o,rootEl:g,name:"filter",targetEl:s,fromEl:d,toEl:d}),St("filter",o,{evt:i}),!0}),m)){c&&i.cancelable&&i.preventDefault();return}n.handle&&!Kt(u,n.handle,d,!1)||this._prepareDragStart(i,a,s)}}},_prepareDragStart:function(i,o,d){var n=this,c=n.el,t=n.options,a=c.ownerDocument,s;if(d&&!W&&d.parentNode===c){var u=Fe(d);if(je=c,W=d,Ge=W.parentNode,yn=W.nextSibling,$o=d,No=t.group,de.dragged=W,gn={target:W,clientX:(o||i).clientX,clientY:(o||i).clientY},ua=gn.clientX-u.left,ca=gn.clientY-u.top,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,W.style["will-change"]="all",s=function(){if(St("delayEnded",n,{evt:i}),de.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!aa&&n.nativeDraggable&&(W.draggable=!0),n._triggerDragStart(i,o),ht({sortable:n,name:"choose",originalEvent:i}),Qe(W,t.chosenClass,!0)},t.ignore.split(",").forEach(function(m){Sa(W,m.trim(),yi)}),be(a,"dragover",hn),be(a,"mousemove",hn),be(a,"touchmove",hn),be(a,"mouseup",n._onDrop),be(a,"touchend",n._onDrop),be(a,"touchcancel",n._onDrop),aa&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),St("delayStart",this,{evt:i}),t.delay&&(!t.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(xo||Zt))){if(de.eventCanceled){this._onDrop();return}be(a,"mouseup",n._disableDelayedDrag),be(a,"touchend",n._disableDelayedDrag),be(a,"touchcancel",n._disableDelayedDrag),be(a,"mousemove",n._delayedDragTouchMoveHandler),be(a,"touchmove",n._delayedDragTouchMoveHandler),t.supportPointer&&be(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,t.delay)}else s()}},_delayedDragTouchMoveHandler:function(i){var o=i.touches?i.touches[0]:i;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&yi(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._disableDelayedDrag),ge(i,"touchend",this._disableDelayedDrag),ge(i,"touchcancel",this._disableDelayedDrag),ge(i,"mousemove",this._delayedDragTouchMoveHandler),ge(i,"touchmove",this._delayedDragTouchMoveHandler),ge(i,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(i,o){o=o||i.pointerType=="touch"&&i,!this.nativeDraggable||o?this.options.supportPointer?be(document,"pointermove",this._onTouchMove):o?be(document,"touchmove",this._onTouchMove):be(document,"mousemove",this._onTouchMove):(be(W,"dragend",this),be(je,"dragstart",this._onDragStart));try{document.selection?Wo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(i,o){if(Bn=!1,je&&W){St("dragStarted",this,{evt:o}),this.nativeDraggable&&be(document,"dragover",ws);var d=this.options;!i&&Qe(W,d.dragClass,!1),Qe(W,d.ghostClass,!0),de.active=this,i&&this._appendGhost(),ht({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(Ut){this._lastX=Ut.clientX,this._lastY=Ut.clientY,wa();for(var i=document.elementFromPoint(Ut.clientX,Ut.clientY),o=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(Ut.clientX,Ut.clientY),i!==o);)o=i;if(W.parentNode[pt]._isOutsideThisEl(i),o)do{if(o[pt]){var d=void 0;if(d=o[pt]._onDragOver({clientX:Ut.clientX,clientY:Ut.clientY,target:i,rootEl:o}),d&&!this.options.dragoverBubble)break}i=o}while(o=o.parentNode);Oa()}},_onTouchMove:function(i){if(gn){var o=this.options,d=o.fallbackTolerance,n=o.fallbackOffset,c=i.touches?i.touches[0]:i,t=pe&&bn(pe,!0),a=pe&&t&&t.a,s=pe&&t&&t.d,u=Fo&&vt&&sa(vt),m=(c.clientX-gn.clientX+n.x)/(a||1)+(u?u[0]-hi[0]:0)/(a||1),g=(c.clientY-gn.clientY+n.y)/(s||1)+(u?u[1]-hi[1]:0)/(s||1);if(!de.active&&!Bn){if(d&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<d)return;this._onDragStart(i,!0)}if(pe){t?(t.e+=m-(mi||0),t.f+=g-(gi||0)):t={a:1,b:0,c:0,d:1,e:m,f:g};var h="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");te(pe,"webkitTransform",h),te(pe,"mozTransform",h),te(pe,"msTransform",h),te(pe,"transform",h),mi=m,gi=g,Ut=c}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!pe){var i=this.options.fallbackOnBody?document.body:je,o=Fe(W,!0,Fo,!0,i),d=this.options;if(Fo){for(vt=i;te(vt,"position")==="static"&&te(vt,"transform")==="none"&&vt!==document;)vt=vt.parentNode;vt!==document.body&&vt!==document.documentElement?(vt===document&&(vt=Lt()),o.top+=vt.scrollTop,o.left+=vt.scrollLeft):vt=Lt(),hi=sa(vt)}pe=W.cloneNode(!0),Qe(pe,d.ghostClass,!1),Qe(pe,d.fallbackClass,!0),Qe(pe,d.dragClass,!0),te(pe,"transition",""),te(pe,"transform",""),te(pe,"box-sizing","border-box"),te(pe,"margin",0),te(pe,"top",o.top),te(pe,"left",o.left),te(pe,"width",o.width),te(pe,"height",o.height),te(pe,"opacity","0.8"),te(pe,"position",Fo?"absolute":"fixed"),te(pe,"zIndex","100000"),te(pe,"pointerEvents","none"),de.ghost=pe,i.appendChild(pe),te(pe,"transform-origin",ua/parseInt(pe.style.width)*100+"% "+ca/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(i,o){var d=this,n=i.dataTransfer,c=d.options;if(St("dragStart",this,{evt:i}),de.eventCanceled){this._onDrop();return}St("setupClone",this),de.eventCanceled||(ze=Ti(W),ze.draggable=!1,ze.style["will-change"]="",this._hideClone(),Qe(ze,this.options.chosenClass,!1),de.clone=ze),d.cloneId=Wo(function(){St("clone",d),!de.eventCanceled&&(d.options.removeCloneOnHide||je.insertBefore(ze,W),d._hideClone(),ht({sortable:d,name:"clone"}))}),!o&&Qe(W,c.dragClass,!0),o?(Xo=!0,d._loopId=setInterval(d._emulateDragOver,50)):(ge(document,"mouseup",d._onDrop),ge(document,"touchend",d._onDrop),ge(document,"touchcancel",d._onDrop),n&&(n.effectAllowed="move",c.setData&&c.setData.call(d,n,W)),be(document,"drop",d),te(W,"transform","translateZ(0)")),Bn=!0,d._dragStartId=Wo(d._dragStarted.bind(d,o,i)),be(document,"selectstart",d),po=!0,ho&&te(document.body,"user-select","none")},_onDragOver:function(i){var o=this.el,d=i.target,n,c,t,a=this.options,s=a.group,u=de.active,m=No===s,g=a.sort,h=st||u,b,S=this,E=!1;if(Ii)return;function I(Ee,Te){St(Ee,S,Qt({evt:i,isOwner:m,axis:b?"vertical":"horizontal",revert:t,dragRect:n,targetRect:c,canSort:g,fromSortable:h,target:d,completed:A,onMove:function(Me,Ke){return Lo(je,o,W,n,Me,Fe(Me),i,Ke)},changed:R},Te))}function O(){I("dragOverAnimationCapture"),S.captureAnimationState(),S!==h&&h.captureAnimationState()}function A(Ee){return I("dragOverCompleted",{insertion:Ee}),Ee&&(m?u._hideClone():u._showClone(S),S!==h&&(Qe(W,st?st.options.ghostClass:u.options.ghostClass,!1),Qe(W,a.ghostClass,!0)),st!==S&&S!==de.active?st=S:S===de.active&&st&&(st=null),h===S&&(S._ignoreWhileAnimating=d),S.animateAll(function(){I("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(d===W&&!W.animated||d===o&&!d.animated)&&(Kn=null),!a.dragoverBubble&&!i.rootEl&&d!==document&&(W.parentNode[pt]._isOutsideThisEl(i.target),!Ee&&hn(i)),!a.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),E=!0}function R(){wt=$e(W),on=$e(W,a.draggable),ht({sortable:S,name:"change",toEl:o,newIndex:wt,newDraggableIndex:on,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),d=Kt(d,a.draggable,o,!0),I("dragOver"),de.eventCanceled)return E;if(W.contains(i.target)||d.animated&&d.animatingX&&d.animatingY||S._ignoreWhileAnimating===d)return A(!1);if(Xo=!1,u&&!a.disabled&&(m?g||(t=Ge!==je):st===this||(this.lastPutMode=No.checkPull(this,u,W,i))&&s.checkPut(this,u,W,i))){if(b=this._getDirection(i,d)==="vertical",n=Fe(W),I("dragOverValid"),de.eventCanceled)return E;if(t)return Ge=je,O(),this._hideClone(),I("revert"),de.eventCanceled||(yn?je.insertBefore(W,yn):je.appendChild(W)),A(!0);var U=Oi(o,a.draggable);if(!U||Ps(i,b,this)&&!U.animated){if(U===W)return A(!1);if(U&&o===i.target&&(d=U),d&&(c=Fe(d)),Lo(je,o,W,n,d,c,i,!!d)!==!1)return O(),o.appendChild(W),Ge=o,R(),A(!0)}else if(U&&Ds(i,b,this)){var B=jn(o,0,a,!0);if(B===W)return A(!1);if(d=B,c=Fe(d),Lo(je,o,W,n,d,c,i,!1)!==!1)return O(),o.insertBefore(W,B),Ge=o,R(),A(!0)}else if(d.parentNode===o){c=Fe(d);var k=0,G,_=W.parentNode!==o,N=!Cs(W.animated&&W.toRect||n,d.animated&&d.toRect||c,b),Y=b?"top":"left",q=la(d,"top","top")||la(W,"top","top"),re=q?q.scrollTop:void 0;Kn!==d&&(G=c[Y],Eo=!1,jo=!N&&a.invertSwap||_),k=Vs(i,d,c,b,N?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,jo,Kn===d);var Q;if(k!==0){var T=$e(W);do T-=k,Q=Ge.children[T];while(Q&&(te(Q,"display")==="none"||Q===pe))}if(k===0||Q===d)return A(!1);Kn=d,So=k;var ue=d.nextElementSibling,H=!1;H=k===1;var oe=Lo(je,o,W,n,d,c,i,H);if(oe!==!1)return(oe===1||oe===-1)&&(H=oe===1),Ii=!0,setTimeout(Ts,30),O(),H&&!ue?o.appendChild(W):d.parentNode.insertBefore(W,H?ue:d),q&&xa(q,0,re-q.scrollTop),Ge=W.parentNode,G!==void 0&&!jo&&(Jo=Math.abs(G-Fe(d)[Y])),R(),A(!0)}if(o.contains(W))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",hn),ge(document,"mousemove",hn),ge(document,"touchmove",hn)},_offUpEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._onDrop),ge(i,"touchend",this._onDrop),ge(i,"pointerup",this._onDrop),ge(i,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(i){var o=this.el,d=this.options;if(wt=$e(W),on=$e(W,d.draggable),St("drop",this,{evt:i}),Ge=W&&W.parentNode,wt=$e(W),on=$e(W,d.draggable),de.eventCanceled){this._nulling();return}Bn=!1,jo=!1,Eo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ci(this.cloneId),Ci(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ho&&te(document.body,"user-select",""),te(W,"transform",""),i&&(po&&(i.cancelable&&i.preventDefault(),!d.dropBubble&&i.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(je===Ge||st&&st.lastPutMode!=="clone")&&ze&&ze.parentNode&&ze.parentNode.removeChild(ze),W&&(this.nativeDraggable&&ge(W,"dragend",this),yi(W),W.style["will-change"]="",po&&!Bn&&Qe(W,st?st.options.ghostClass:this.options.ghostClass,!1),Qe(W,this.options.chosenClass,!1),ht({sortable:this,name:"unchoose",toEl:Ge,newIndex:null,newDraggableIndex:null,originalEvent:i}),je!==Ge?(wt>=0&&(ht({rootEl:Ge,name:"add",toEl:Ge,fromEl:je,originalEvent:i}),ht({sortable:this,name:"remove",toEl:Ge,originalEvent:i}),ht({rootEl:Ge,name:"sort",toEl:Ge,fromEl:je,originalEvent:i}),ht({sortable:this,name:"sort",toEl:Ge,originalEvent:i})),st&&st.save()):wt!==Nn&&wt>=0&&(ht({sortable:this,name:"update",toEl:Ge,originalEvent:i}),ht({sortable:this,name:"sort",toEl:Ge,originalEvent:i})),de.active&&((wt==null||wt===-1)&&(wt=Nn,on=bo),ht({sortable:this,name:"end",toEl:Ge,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){St("nulling",this),je=W=Ge=pe=yn=ze=$o=an=gn=Ut=po=wt=on=Nn=bo=Kn=So=st=No=de.dragged=de.ghost=de.clone=de.active=null,qo.forEach(function(i){i.checked=!0}),qo.length=mi=gi=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":W&&(this._onDragOver(i),Os(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],o,d=this.el.children,n=0,c=d.length,t=this.options;n<c;n++)o=d[n],Kt(o,t.draggable,this.el,!1)&&i.push(o.getAttribute(t.dataIdAttr)||Us(o));return i},sort:function(i,o){var d={},n=this.el;this.toArray().forEach(function(c,t){var a=n.children[t];Kt(a,this.options.draggable,n,!1)&&(d[c]=a)},this),o&&this.captureAnimationState(),i.forEach(function(c){d[c]&&(n.removeChild(d[c]),n.appendChild(d[c]))}),o&&this.animateAll()},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,o){return Kt(i,o||this.options.draggable,this.el,!1)},option:function(i,o){var d=this.options;if(o===void 0)return d[i];var n=Io.modifyOption(this,i,o);typeof n<"u"?d[i]=n:d[i]=o,i==="group"&&Aa(d)},destroy:function(){St("destroy",this);var i=this.el;i[pt]=null,ge(i,"mousedown",this._onTapStart),ge(i,"touchstart",this._onTapStart),ge(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(ge(i,"dragover",this),ge(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Zo.splice(Zo.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!an){if(St("hideClone",this),de.eventCanceled)return;te(ze,"display","none"),this.options.removeCloneOnHide&&ze.parentNode&&ze.parentNode.removeChild(ze),an=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(an){if(St("showClone",this),de.eventCanceled)return;W.parentNode==je&&!this.options.group.revertClone?je.insertBefore(ze,W):yn?je.insertBefore(ze,yn):je.appendChild(ze),this.options.group.revertClone&&this.animate(W,ze),te(ze,"display",""),an=!1}}};function Os(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function Lo(r,i,o,d,n,c,t,a){var s,u=r[pt],m=u.options.onMove,g;return window.CustomEvent&&!Zt&&!xo?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=i,s.from=r,s.dragged=o,s.draggedRect=d,s.related=n||i,s.relatedRect=c||Fe(i),s.willInsertAfter=a,s.originalEvent=t,r.dispatchEvent(s),m&&(g=m.call(u,s,t)),g}function yi(r){r.draggable=!1}function Ts(){Ii=!1}function Ds(r,i,o){var d=Fe(jn(o.el,0,o.options,!0)),n=10;return i?r.clientX<d.left-n||r.clientY<d.top&&r.clientX<d.right:r.clientY<d.top-n||r.clientY<d.bottom&&r.clientX<d.left}function Ps(r,i,o){var d=Fe(Oi(o.el,o.options.draggable)),n=10;return i?r.clientX>d.right+n||r.clientX<=d.right&&r.clientY>d.bottom&&r.clientX>=d.left:r.clientX>d.right&&r.clientY>d.top||r.clientX<=d.right&&r.clientY>d.bottom+n}function Vs(r,i,o,d,n,c,t,a){var s=d?r.clientY:r.clientX,u=d?o.height:o.width,m=d?o.top:o.left,g=d?o.bottom:o.right,h=!1;if(!t){if(a&&Jo<u*n){if(!Eo&&(So===1?s>m+u*c/2:s<g-u*c/2)&&(Eo=!0),Eo)h=!0;else if(So===1?s<m+Jo:s>g-Jo)return-So}else if(s>m+u*(1-n)/2&&s<g-u*(1-n)/2)return Rs(i)}return h=h||t,h&&(s<m+u*c/2||s>g-u*c/2)?s>m+u/2?1:-1:0}function Rs(r){return $e(W)<$e(r)?1:-1}function Us(r){for(var i=r.tagName+r.className+r.src+r.href+r.textContent,o=i.length,d=0;o--;)d+=i.charCodeAt(o);return d.toString(36)}function Ms(r){qo.length=0;for(var i=r.getElementsByTagName("input"),o=i.length;o--;){var d=i[o];d.checked&&qo.push(d)}}function Wo(r){return setTimeout(r,0)}function Ci(r){return clearTimeout(r)}ei&&be(document,"touchmove",function(r){(de.active||Bn)&&r.cancelable&&r.preventDefault()});de.utils={on:be,off:ge,css:te,find:Sa,is:function(i,o){return!!Kt(i,o,i,!1)},extend:hs,throttle:Ea,closest:Kt,toggleClass:Qe,clone:Ti,index:$e,nextTick:Wo,cancelNextTick:Ci,detectDirection:Ca,getChild:jn};de.get=function(r){return r[pt]};de.mount=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i[0].constructor===Array&&(i=i[0]),i.forEach(function(d){if(!d.prototype||!d.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(d));d.utils&&(de.utils=Qt(Qt({},de.utils),d.utils)),Io.mount(d)})};de.create=function(r,i){return new de(r,i)};de.version=vs;var Xe=[],mo,Ai,wi=!1,bi,Si,_o,go;function Ks(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}return r.prototype={dragStarted:function(o){var d=o.originalEvent;this.sortable.nativeDraggable?be(document,"dragover",this._handleAutoScroll):this.options.supportPointer?be(document,"pointermove",this._handleFallbackAutoScroll):d.touches?be(document,"touchmove",this._handleFallbackAutoScroll):be(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var d=o.originalEvent;!this.options.dragOverBubble&&!d.rootEl&&this._handleAutoScroll(d)},drop:function(){this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):(ge(document,"pointermove",this._handleFallbackAutoScroll),ge(document,"touchmove",this._handleFallbackAutoScroll),ge(document,"mousemove",this._handleFallbackAutoScroll)),va(),Ho(),ys()},nulling:function(){_o=Ai=mo=wi=go=bi=Si=null,Xe.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,d){var n=this,c=(o.touches?o.touches[0]:o).clientX,t=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(c,t);if(_o=o,d||this.options.forceAutoScrollFallback||xo||Zt||ho){Ei(o,this.options,a,d);var s=rn(a,!0);wi&&(!go||c!==bi||t!==Si)&&(go&&va(),go=setInterval(function(){var u=rn(document.elementFromPoint(c,t),!0);u!==s&&(s=u,Ho()),Ei(o,n.options,u,d)},10),bi=c,Si=t)}else{if(!this.options.bubbleScroll||rn(a,!0)===Lt()){Ho();return}Ei(o,this.options,rn(a,!1),!1)}}},Vt(r,{pluginName:"scroll",initializeByDefault:!0})}function Ho(){Xe.forEach(function(r){clearInterval(r.pid)}),Xe=[]}function va(){clearInterval(go)}var Ei=Ea(function(r,i,o,d){if(i.scroll){var n=(r.touches?r.touches[0]:r).clientX,c=(r.touches?r.touches[0]:r).clientY,t=i.scrollSensitivity,a=i.scrollSpeed,s=Lt(),u=!1,m;Ai!==o&&(Ai=o,Ho(),mo=i.scroll,m=i.scrollFn,mo===!0&&(mo=rn(o,!0)));var g=0,h=mo;do{var b=h,S=Fe(b),E=S.top,I=S.bottom,O=S.left,A=S.right,R=S.width,U=S.height,B=void 0,k=void 0,G=b.scrollWidth,_=b.scrollHeight,N=te(b),Y=b.scrollLeft,q=b.scrollTop;b===s?(B=R<G&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),k=U<_&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(B=R<G&&(N.overflowX==="auto"||N.overflowX==="scroll"),k=U<_&&(N.overflowY==="auto"||N.overflowY==="scroll"));var re=B&&(Math.abs(A-n)<=t&&Y+R<G)-(Math.abs(O-n)<=t&&!!Y),Q=k&&(Math.abs(I-c)<=t&&q+U<_)-(Math.abs(E-c)<=t&&!!q);if(!Xe[g])for(var T=0;T<=g;T++)Xe[T]||(Xe[T]={});(Xe[g].vx!=re||Xe[g].vy!=Q||Xe[g].el!==b)&&(Xe[g].el=b,Xe[g].vx=re,Xe[g].vy=Q,clearInterval(Xe[g].pid),(re!=0||Q!=0)&&(u=!0,Xe[g].pid=setInterval((function(){d&&this.layer===0&&de.active._onTouchMove(_o);var ue=Xe[this.layer].vy?Xe[this.layer].vy*a:0,H=Xe[this.layer].vx?Xe[this.layer].vx*a:0;typeof m=="function"&&m.call(de.dragged.parentNode[pt],H,ue,r,_o,Xe[this.layer].el)!=="continue"||xa(Xe[this.layer].el,H,ue)}).bind({layer:g}),24))),g++}while(i.bubbleScroll&&h!==s&&(h=rn(h,!1)));wi=u}},30),Ta=function(i){var o=i.originalEvent,d=i.putSortable,n=i.dragEl,c=i.activeSortable,t=i.dispatchSortableEvent,a=i.hideGhostForTarget,s=i.unhideGhostForTarget;if(o){var u=d||c;a();var m=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,g=document.elementFromPoint(m.clientX,m.clientY);s(),u&&!u.el.contains(g)&&(t("spill"),this.onSpill({dragEl:n,putSortable:d}))}};function Di(){}Di.prototype={startIndex:null,dragStart:function(i){var o=i.oldDraggableIndex;this.startIndex=o},onSpill:function(i){var o=i.dragEl,d=i.putSortable;this.sortable.captureAnimationState(),d&&d.captureAnimationState();var n=jn(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),d&&d.animateAll()},drop:Ta};Vt(Di,{pluginName:"revertOnSpill"});function Pi(){}Pi.prototype={onSpill:function(i){var o=i.dragEl,d=i.putSortable,n=d||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:Ta};Vt(Pi,{pluginName:"removeOnSpill"});var Pt;function ks(){function r(){this.defaults={swapClass:"sortable-swap-highlight"}}return r.prototype={dragStart:function(o){var d=o.dragEl;Pt=d},dragOverValid:function(o){var d=o.completed,n=o.target,c=o.onMove,t=o.activeSortable,a=o.changed,s=o.cancel;if(t.options.swap){var u=this.sortable.el,m=this.options;if(n&&n!==u){var g=Pt;c(n)!==!1?(Qe(n,m.swapClass,!0),Pt=n):Pt=null,g&&g!==Pt&&Qe(g,m.swapClass,!1)}a(),d(!0),s()}},drop:function(o){var d=o.activeSortable,n=o.putSortable,c=o.dragEl,t=n||this.sortable,a=this.options;Pt&&Qe(Pt,a.swapClass,!1),Pt&&(a.swap||n&&n.options.swap)&&c!==Pt&&(t.captureAnimationState(),t!==d&&d.captureAnimationState(),Bs(c,Pt),t.animateAll(),t!==d&&d.animateAll())},nulling:function(){Pt=null}},Vt(r,{pluginName:"swap",eventProperties:function(){return{swapItem:Pt}}})}function Bs(r,i){var o=r.parentNode,d=i.parentNode,n,c;!o||!d||o.isEqualNode(i)||d.isEqualNode(r)||(n=$e(r),c=$e(i),o.isEqualNode(d)&&n<c&&c++,o.insertBefore(i,o.children[n]),d.insertBefore(r,d.children[c]))}var fe=[],At=[],uo,Mt,co=!1,Et=!1,kn=!1,Ve,fo,Qo;function Ns(){function r(i){for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));i.options.supportPointer?be(document,"pointerup",this._deselectMultiDrag):(be(document,"mouseup",this._deselectMultiDrag),be(document,"touchend",this._deselectMultiDrag)),be(document,"keydown",this._checkKeyDown),be(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,c){var t="";fe.length&&Mt===i?fe.forEach(function(a,s){t+=(s?", ":"")+a.textContent}):t=c.textContent,n.setData("Text",t)}}}return r.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(o){var d=o.dragEl;Ve=d},delayEnded:function(){this.isMultiDrag=~fe.indexOf(Ve)},setupClone:function(o){var d=o.sortable,n=o.cancel;if(this.isMultiDrag){for(var c=0;c<fe.length;c++)At.push(Ti(fe[c])),At[c].sortableIndex=fe[c].sortableIndex,At[c].draggable=!1,At[c].style["will-change"]="",Qe(At[c],this.options.selectedClass,!1),fe[c]===Ve&&Qe(At[c],this.options.chosenClass,!1);d._hideClone(),n()}},clone:function(o){var d=o.sortable,n=o.rootEl,c=o.dispatchSortableEvent,t=o.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&Mt===d&&(pa(!0,n),c("clone"),t()))},showClone:function(o){var d=o.cloneNowShown,n=o.rootEl,c=o.cancel;this.isMultiDrag&&(pa(!1,n),At.forEach(function(t){te(t,"display","")}),d(),Qo=!1,c())},hideClone:function(o){var d=this;o.sortable;var n=o.cloneNowHidden,c=o.cancel;this.isMultiDrag&&(At.forEach(function(t){te(t,"display","none"),d.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),Qo=!0,c())},dragStartGlobal:function(o){o.sortable,!this.isMultiDrag&&Mt&&Mt.multiDrag._deselectMultiDrag(),fe.forEach(function(d){d.sortableIndex=$e(d)}),fe=fe.sort(function(d,n){return d.sortableIndex-n.sortableIndex}),kn=!0},dragStarted:function(o){var d=this,n=o.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){fe.forEach(function(t){t!==Ve&&te(t,"position","absolute")});var c=Fe(Ve,!1,!0,!0);fe.forEach(function(t){t!==Ve&&da(t,c)}),Et=!0,co=!0}n.animateAll(function(){Et=!1,co=!1,d.options.animation&&fe.forEach(function(t){vi(t)}),d.options.sort&&Go()})}},dragOver:function(o){var d=o.target,n=o.completed,c=o.cancel;Et&&~fe.indexOf(d)&&(n(!1),c())},revert:function(o){var d=o.fromSortable,n=o.rootEl,c=o.sortable,t=o.dragRect;fe.length>1&&(fe.forEach(function(a){c.addAnimationState({target:a,rect:Et?Fe(a):t}),vi(a),a.fromRect=t,d.removeAnimationState(a)}),Et=!1,js(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(o){var d=o.sortable,n=o.isOwner,c=o.insertion,t=o.activeSortable,a=o.parentEl,s=o.putSortable,u=this.options;if(c){if(n&&t._hideClone(),co=!1,u.animation&&fe.length>1&&(Et||!n&&!t.options.sort&&!s)){var m=Fe(Ve,!1,!0,!0);fe.forEach(function(h){h!==Ve&&(da(h,m),a.appendChild(h))}),Et=!0}if(!n)if(Et||Go(),fe.length>1){var g=Qo;t._showClone(d),t.options.animation&&!Qo&&g&&At.forEach(function(h){t.addAnimationState({target:h,rect:fo}),h.fromRect=fo,h.thisAnimationDuration=null})}else t._showClone(d)}},dragOverAnimationCapture:function(o){var d=o.dragRect,n=o.isOwner,c=o.activeSortable;if(fe.forEach(function(a){a.thisAnimationDuration=null}),c.options.animation&&!n&&c.multiDrag.isMultiDrag){fo=Vt({},d);var t=bn(Ve,!0);fo.top-=t.f,fo.left-=t.e}},dragOverAnimationComplete:function(){Et&&(Et=!1,Go())},drop:function(o){var d=o.originalEvent,n=o.rootEl,c=o.parentEl,t=o.sortable,a=o.dispatchSortableEvent,s=o.oldIndex,u=o.putSortable,m=u||this.sortable;if(d){var g=this.options,h=c.children;if(!kn)if(g.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Qe(Ve,g.selectedClass,!~fe.indexOf(Ve)),~fe.indexOf(Ve))fe.splice(fe.indexOf(Ve),1),uo=null,vo({sortable:t,rootEl:n,name:"deselect",targetEl:Ve});else{if(fe.push(Ve),vo({sortable:t,rootEl:n,name:"select",targetEl:Ve}),d.shiftKey&&uo&&t.el.contains(uo)){var b=$e(uo),S=$e(Ve);if(~b&&~S&&b!==S){var E,I;for(S>b?(I=b,E=S):(I=S,E=b+1);I<E;I++)~fe.indexOf(h[I])||(Qe(h[I],g.selectedClass,!0),fe.push(h[I]),vo({sortable:t,rootEl:n,name:"select",targetEl:h[I]}))}}else uo=Ve;Mt=m}if(kn&&this.isMultiDrag){if(Et=!1,(c[pt].options.sort||c!==n)&&fe.length>1){var O=Fe(Ve),A=$e(Ve,":not(."+this.options.selectedClass+")");if(!co&&g.animation&&(Ve.thisAnimationDuration=null),m.captureAnimationState(),!co&&(g.animation&&(Ve.fromRect=O,fe.forEach(function(U){if(U.thisAnimationDuration=null,U!==Ve){var B=Et?Fe(U):O;U.fromRect=B,m.addAnimationState({target:U,rect:B})}})),Go(),fe.forEach(function(U){h[A]?c.insertBefore(U,h[A]):c.appendChild(U),A++}),s===$e(Ve))){var R=!1;fe.forEach(function(U){if(U.sortableIndex!==$e(U)){R=!0;return}}),R&&a("update")}fe.forEach(function(U){vi(U)}),m.animateAll()}Mt=m}(n===c||u&&u.lastPutMode!=="clone")&&At.forEach(function(U){U.parentNode&&U.parentNode.removeChild(U)})}},nullingGlobal:function(){this.isMultiDrag=kn=!1,At.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ge(document,"pointerup",this._deselectMultiDrag),ge(document,"mouseup",this._deselectMultiDrag),ge(document,"touchend",this._deselectMultiDrag),ge(document,"keydown",this._checkKeyDown),ge(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(o){if(!(typeof kn<"u"&&kn)&&Mt===this.sortable&&!(o&&Kt(o.target,this.options.draggable,this.sortable.el,!1))&&!(o&&o.button!==0))for(;fe.length;){var d=fe[0];Qe(d,this.options.selectedClass,!1),fe.shift(),vo({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:d})}},_checkKeyDown:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Vt(r,{pluginName:"multiDrag",utils:{select:function(o){var d=o.parentNode[pt];!d||!d.options.multiDrag||~fe.indexOf(o)||(Mt&&Mt!==d&&(Mt.multiDrag._deselectMultiDrag(),Mt=d),Qe(o,d.options.selectedClass,!0),fe.push(o))},deselect:function(o){var d=o.parentNode[pt],n=fe.indexOf(o);!d||!d.options.multiDrag||!~n||(Qe(o,d.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var o=this,d=[],n=[];return fe.forEach(function(c){d.push({multiDragElement:c,index:c.sortableIndex});var t;Et&&c!==Ve?t=-1:Et?t=$e(c,":not(."+o.options.selectedClass+")"):t=$e(c),n.push({multiDragElement:c,index:t})}),{items:ss(fe),clones:[].concat(At),oldIndicies:d,newIndicies:n}},optionListeners:{multiDragKey:function(o){return o=o.toLowerCase(),o==="ctrl"?o="Control":o.length>1&&(o=o.charAt(0).toUpperCase()+o.substr(1)),o}}})}function js(r,i){fe.forEach(function(o,d){var n=i.children[o.sortableIndex+(r?Number(d):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function pa(r,i){At.forEach(function(o,d){var n=i.children[o.sortableIndex+(r?Number(d):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Go(){fe.forEach(function(r){r!==Ve&&r.parentNode&&r.parentNode.removeChild(r)})}de.mount(new Ks);de.mount(Pi,Di);const Fs=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Ns,Sortable:de,Swap:ks,default:de},Symbol.toStringTag,{value:"Module"})),Ls=kl(Fs);(function(r,i){(function(d,n){r.exports=n(Nl,Ls)})(typeof self<"u"?self:jl,function(o,d){return function(n){var c={};function t(a){if(c[a])return c[a].exports;var s=c[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=n,t.c=c,t.d=function(a,s,u){t.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},t.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.t=function(a,s){if(s&1&&(a=t(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(t.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var m in a)t.d(u,m,(function(g){return a[g]}).bind(null,m));return u},t.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(s,"a",s),s},t.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},t.p="",t(t.s="fb15")}({"00ee":function(n,c,t){var a=t("b622"),s=a("toStringTag"),u={};u[s]="z",n.exports=String(u)==="[object z]"},"0366":function(n,c,t){var a=t("1c0b");n.exports=function(s,u,m){if(a(s),u===void 0)return s;switch(m){case 0:return function(){return s.call(u)};case 1:return function(g){return s.call(u,g)};case 2:return function(g,h){return s.call(u,g,h)};case 3:return function(g,h,b){return s.call(u,g,h,b)}}return function(){return s.apply(u,arguments)}}},"057f":function(n,c,t){var a=t("fc6a"),s=t("241c").f,u={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(h){try{return s(h)}catch{return m.slice()}};n.exports.f=function(b){return m&&u.call(b)=="[object Window]"?g(b):s(a(b))}},"06cf":function(n,c,t){var a=t("83ab"),s=t("d1e7"),u=t("5c6c"),m=t("fc6a"),g=t("c04e"),h=t("5135"),b=t("0cfb"),S=Object.getOwnPropertyDescriptor;c.f=a?S:function(I,O){if(I=m(I),O=g(O,!0),b)try{return S(I,O)}catch{}if(h(I,O))return u(!s.f.call(I,O),I[O])}},"0cfb":function(n,c,t){var a=t("83ab"),s=t("d039"),u=t("cc12");n.exports=!a&&!s(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,c,t){var a=t("23e7"),s=t("d58f").left,u=t("a640"),m=t("ae40"),g=u("reduce"),h=m("reduce",{1:0});a({target:"Array",proto:!0,forced:!g||!h},{reduce:function(S){return s(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,c,t){var a=t("c6b6"),s=t("9263");n.exports=function(u,m){var g=u.exec;if(typeof g=="function"){var h=g.call(u,m);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return s.call(u,m)}},"159b":function(n,c,t){var a=t("da84"),s=t("fdbc"),u=t("17c2"),m=t("9112");for(var g in s){var h=a[g],b=h&&h.prototype;if(b&&b.forEach!==u)try{m(b,"forEach",u)}catch{b.forEach=u}}},"17c2":function(n,c,t){var a=t("b727").forEach,s=t("a640"),u=t("ae40"),m=s("forEach"),g=u("forEach");n.exports=!m||!g?function(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,c,t){var a=t("d066");n.exports=a("document","documentElement")},"1c0b":function(n,c){n.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(n,c,t){var a=t("b622"),s=a("iterator"),u=!1;try{var m=0,g={next:function(){return{done:!!m++}},return:function(){u=!0}};g[s]=function(){return this},Array.from(g,function(){throw 2})}catch{}n.exports=function(h,b){if(!b&&!u)return!1;var S=!1;try{var E={};E[s]=function(){return{next:function(){return{done:S=!0}}}},h(E)}catch{}return S}},"1d80":function(n,c){n.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(n,c,t){var a=t("d039"),s=t("b622"),u=t("2d00"),m=s("species");n.exports=function(g){return u>=51||!a(function(){var h=[],b=h.constructor={};return b[m]=function(){return{foo:1}},h[g](Boolean).foo!==1})}},"23cb":function(n,c,t){var a=t("a691"),s=Math.max,u=Math.min;n.exports=function(m,g){var h=a(m);return h<0?s(h+g,0):u(h,g)}},"23e7":function(n,c,t){var a=t("da84"),s=t("06cf").f,u=t("9112"),m=t("6eeb"),g=t("ce4e"),h=t("e893"),b=t("94ca");n.exports=function(S,E){var I=S.target,O=S.global,A=S.stat,R,U,B,k,G,_;if(O?U=a:A?U=a[I]||g(I,{}):U=(a[I]||{}).prototype,U)for(B in E){if(G=E[B],S.noTargetGet?(_=s(U,B),k=_&&_.value):k=U[B],R=b(O?B:I+(A?".":"#")+B,S.forced),!R&&k!==void 0){if(typeof G==typeof k)continue;h(G,k)}(S.sham||k&&k.sham)&&u(G,"sham",!0),m(U,B,G,S)}}},"241c":function(n,c,t){var a=t("ca84"),s=t("7839"),u=s.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(g){return a(g,u)}},"25f0":function(n,c,t){var a=t("6eeb"),s=t("825a"),u=t("d039"),m=t("ad6d"),g="toString",h=RegExp.prototype,b=h[g],S=u(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),E=b.name!=g;(S||E)&&a(RegExp.prototype,g,function(){var O=s(this),A=String(O.source),R=O.flags,U=String(R===void 0&&O instanceof RegExp&&!("flags"in h)?m.call(O):R);return"/"+A+"/"+U},{unsafe:!0})},"2ca0":function(n,c,t){var a=t("23e7"),s=t("06cf").f,u=t("50c4"),m=t("5a34"),g=t("1d80"),h=t("ab13"),b=t("c430"),S="".startsWith,E=Math.min,I=h("startsWith"),O=!b&&!I&&!!function(){var A=s(String.prototype,"startsWith");return A&&!A.writable}();a({target:"String",proto:!0,forced:!O&&!I},{startsWith:function(R){var U=String(g(this));m(R);var B=u(E(arguments.length>1?arguments[1]:void 0,U.length)),k=String(R);return S?S.call(U,k,B):U.slice(B,B+k.length)===k}})},"2d00":function(n,c,t){var a=t("da84"),s=t("342f"),u=a.process,m=u&&u.versions,g=m&&m.v8,h,b;g?(h=g.split("."),b=h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(b=h[1]))),n.exports=b&&+b},"342f":function(n,c,t){var a=t("d066");n.exports=a("navigator","userAgent")||""},"35a1":function(n,c,t){var a=t("f5df"),s=t("3f8c"),u=t("b622"),m=u("iterator");n.exports=function(g){if(g!=null)return g[m]||g["@@iterator"]||s[a(g)]}},"37e8":function(n,c,t){var a=t("83ab"),s=t("9bf2"),u=t("825a"),m=t("df75");n.exports=a?Object.defineProperties:function(h,b){u(h);for(var S=m(b),E=S.length,I=0,O;E>I;)s.f(h,O=S[I++],b[O]);return h}},"3bbe":function(n,c,t){var a=t("861d");n.exports=function(s){if(!a(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"3ca3":function(n,c,t){var a=t("6547").charAt,s=t("69f3"),u=t("7dd0"),m="String Iterator",g=s.set,h=s.getterFor(m);u(String,"String",function(b){g(this,{type:m,string:String(b),index:0})},function(){var S=h(this),E=S.string,I=S.index,O;return I>=E.length?{value:void 0,done:!0}:(O=a(E,I),S.index+=O.length,{value:O,done:!1})})},"3f8c":function(n,c){n.exports={}},4160:function(n,c,t){var a=t("23e7"),s=t("17c2");a({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},"428f":function(n,c,t){var a=t("da84");n.exports=a},"44ad":function(n,c,t){var a=t("d039"),s=t("c6b6"),u="".split;n.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(m){return s(m)=="String"?u.call(m,""):Object(m)}:Object},"44d2":function(n,c,t){var a=t("b622"),s=t("7c73"),u=t("9bf2"),m=a("unscopables"),g=Array.prototype;g[m]==null&&u.f(g,m,{configurable:!0,value:s(null)}),n.exports=function(h){g[m][h]=!0}},"44e7":function(n,c,t){var a=t("861d"),s=t("c6b6"),u=t("b622"),m=u("match");n.exports=function(g){var h;return a(g)&&((h=g[m])!==void 0?!!h:s(g)=="RegExp")}},4930:function(n,c,t){var a=t("d039");n.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(n,c,t){var a=t("fc6a"),s=t("50c4"),u=t("23cb"),m=function(g){return function(h,b,S){var E=a(h),I=s(E.length),O=u(S,I),A;if(g&&b!=b){for(;I>O;)if(A=E[O++],A!=A)return!0}else for(;I>O;O++)if((g||O in E)&&E[O]===b)return g||O||0;return!g&&-1}};n.exports={includes:m(!0),indexOf:m(!1)}},"4de4":function(n,c,t){var a=t("23e7"),s=t("b727").filter,u=t("1dde"),m=t("ae40"),g=u("filter"),h=m("filter");a({target:"Array",proto:!0,forced:!g||!h},{filter:function(S){return s(this,S,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,c,t){var a=t("0366"),s=t("7b0b"),u=t("9bdd"),m=t("e95a"),g=t("50c4"),h=t("8418"),b=t("35a1");n.exports=function(E){var I=s(E),O=typeof this=="function"?this:Array,A=arguments.length,R=A>1?arguments[1]:void 0,U=R!==void 0,B=b(I),k=0,G,_,N,Y,q,re;if(U&&(R=a(R,A>2?arguments[2]:void 0,2)),B!=null&&!(O==Array&&m(B)))for(Y=B.call(I),q=Y.next,_=new O;!(N=q.call(Y)).done;k++)re=U?u(Y,R,[N.value,k],!0):N.value,h(_,k,re);else for(G=g(I.length),_=new O(G);G>k;k++)re=U?R(I[k],k):I[k],h(_,k,re);return _.length=k,_}},"4fad":function(n,c,t){var a=t("23e7"),s=t("6f53").entries;a({target:"Object",stat:!0},{entries:function(m){return s(m)}})},"50c4":function(n,c,t){var a=t("a691"),s=Math.min;n.exports=function(u){return u>0?s(a(u),9007199254740991):0}},5135:function(n,c){var t={}.hasOwnProperty;n.exports=function(a,s){return t.call(a,s)}},5319:function(n,c,t){var a=t("d784"),s=t("825a"),u=t("7b0b"),m=t("50c4"),g=t("a691"),h=t("1d80"),b=t("8aa5"),S=t("14c3"),E=Math.max,I=Math.min,O=Math.floor,A=/\$([$&'`]|\d\d?|<[^>]*>)/g,R=/\$([$&'`]|\d\d?)/g,U=function(B){return B===void 0?B:String(B)};a("replace",2,function(B,k,G,_){var N=_.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Y=_.REPLACE_KEEPS_$0,q=N?"$":"$0";return[function(T,ue){var H=h(this),oe=T==null?void 0:T[B];return oe!==void 0?oe.call(T,H,ue):k.call(String(H),T,ue)},function(Q,T){if(!N&&Y||typeof T=="string"&&T.indexOf(q)===-1){var ue=G(k,Q,this,T);if(ue.done)return ue.value}var H=s(Q),oe=String(this),Ee=typeof T=="function";Ee||(T=String(T));var Te=H.global;if(Te){var He=H.unicode;H.lastIndex=0}for(var Me=[];;){var Ke=S(H,oe);if(Ke===null||(Me.push(Ke),!Te))break;var we=String(Ke[0]);we===""&&(H.lastIndex=b(oe,m(H.lastIndex),He))}for(var Ye="",De=0,Ae=0;Ae<Me.length;Ae++){Ke=Me[Ae];for(var Re=String(Ke[0]),dt=E(I(g(Ke.index),oe.length),0),nt=[],ut=1;ut<Ke.length;ut++)nt.push(U(Ke[ut]));var ct=Ke.groups;if(Ee){var kt=[Re].concat(nt,dt,oe);ct!==void 0&&kt.push(ct);var Ze=String(T.apply(void 0,kt))}else Ze=re(Re,oe,dt,nt,ct,T);dt>=De&&(Ye+=oe.slice(De,dt)+Ze,De=dt+Re.length)}return Ye+oe.slice(De)}];function re(Q,T,ue,H,oe,Ee){var Te=ue+Q.length,He=H.length,Me=R;return oe!==void 0&&(oe=u(oe),Me=A),k.call(Ee,Me,function(Ke,we){var Ye;switch(we.charAt(0)){case"$":return"$";case"&":return Q;case"`":return T.slice(0,ue);case"'":return T.slice(Te);case"<":Ye=oe[we.slice(1,-1)];break;default:var De=+we;if(De===0)return Ke;if(De>He){var Ae=O(De/10);return Ae===0?Ke:Ae<=He?H[Ae-1]===void 0?we.charAt(1):H[Ae-1]+we.charAt(1):Ke}Ye=H[De-1]}return Ye===void 0?"":Ye})}})},5692:function(n,c,t){var a=t("c430"),s=t("c6cd");(n.exports=function(u,m){return s[u]||(s[u]=m!==void 0?m:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,c,t){var a=t("d066"),s=t("241c"),u=t("7418"),m=t("825a");n.exports=a("Reflect","ownKeys")||function(h){var b=s.f(m(h)),S=u.f;return S?b.concat(S(h)):b}},"5a34":function(n,c,t){var a=t("44e7");n.exports=function(s){if(a(s))throw TypeError("The method doesn't accept regular expressions");return s}},"5c6c":function(n,c){n.exports=function(t,a){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:a}}},"5db7":function(n,c,t){var a=t("23e7"),s=t("a2bf"),u=t("7b0b"),m=t("50c4"),g=t("1c0b"),h=t("65f0");a({target:"Array",proto:!0},{flatMap:function(S){var E=u(this),I=m(E.length),O;return g(S),O=h(E,0),O.length=s(O,E,E,I,0,1,S,arguments.length>1?arguments[1]:void 0),O}})},6547:function(n,c,t){var a=t("a691"),s=t("1d80"),u=function(m){return function(g,h){var b=String(s(g)),S=a(h),E=b.length,I,O;return S<0||S>=E?m?"":void 0:(I=b.charCodeAt(S),I<55296||I>56319||S+1===E||(O=b.charCodeAt(S+1))<56320||O>57343?m?b.charAt(S):I:m?b.slice(S,S+2):(I-55296<<10)+(O-56320)+65536)}};n.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(n,c,t){var a=t("861d"),s=t("e8b5"),u=t("b622"),m=u("species");n.exports=function(g,h){var b;return s(g)&&(b=g.constructor,typeof b=="function"&&(b===Array||s(b.prototype))?b=void 0:a(b)&&(b=b[m],b===null&&(b=void 0))),new(b===void 0?Array:b)(h===0?0:h)}},"69f3":function(n,c,t){var a=t("7f9a"),s=t("da84"),u=t("861d"),m=t("9112"),g=t("5135"),h=t("f772"),b=t("d012"),S=s.WeakMap,E,I,O,A=function(N){return O(N)?I(N):E(N,{})},R=function(N){return function(Y){var q;if(!u(Y)||(q=I(Y)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return q}};if(a){var U=new S,B=U.get,k=U.has,G=U.set;E=function(N,Y){return G.call(U,N,Y),Y},I=function(N){return B.call(U,N)||{}},O=function(N){return k.call(U,N)}}else{var _=h("state");b[_]=!0,E=function(N,Y){return m(N,_,Y),Y},I=function(N){return g(N,_)?N[_]:{}},O=function(N){return g(N,_)}}n.exports={set:E,get:I,has:O,enforce:A,getterFor:R}},"6eeb":function(n,c,t){var a=t("da84"),s=t("9112"),u=t("5135"),m=t("ce4e"),g=t("8925"),h=t("69f3"),b=h.get,S=h.enforce,E=String(String).split("String");(n.exports=function(I,O,A,R){var U=R?!!R.unsafe:!1,B=R?!!R.enumerable:!1,k=R?!!R.noTargetGet:!1;if(typeof A=="function"&&(typeof O=="string"&&!u(A,"name")&&s(A,"name",O),S(A).source=E.join(typeof O=="string"?O:"")),I===a){B?I[O]=A:m(O,A);return}else U?!k&&I[O]&&(B=!0):delete I[O];B?I[O]=A:s(I,O,A)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||g(this)})},"6f53":function(n,c,t){var a=t("83ab"),s=t("df75"),u=t("fc6a"),m=t("d1e7").f,g=function(h){return function(b){for(var S=u(b),E=s(S),I=E.length,O=0,A=[],R;I>O;)R=E[O++],(!a||m.call(S,R))&&A.push(h?[R,S[R]]:S[R]);return A}};n.exports={entries:g(!0),values:g(!1)}},"73d9":function(n,c,t){var a=t("44d2");a("flatMap")},7418:function(n,c){c.f=Object.getOwnPropertySymbols},"746f":function(n,c,t){var a=t("428f"),s=t("5135"),u=t("e538"),m=t("9bf2").f;n.exports=function(g){var h=a.Symbol||(a.Symbol={});s(h,g)||m(h,g,{value:u.f(g)})}},7839:function(n,c){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,c,t){var a=t("1d80");n.exports=function(s){return Object(a(s))}},"7c73":function(n,c,t){var a=t("825a"),s=t("37e8"),u=t("7839"),m=t("d012"),g=t("1be4"),h=t("cc12"),b=t("f772"),S=">",E="<",I="prototype",O="script",A=b("IE_PROTO"),R=function(){},U=function(N){return E+O+S+N+E+"/"+O+S},B=function(N){N.write(U("")),N.close();var Y=N.parentWindow.Object;return N=null,Y},k=function(){var N=h("iframe"),Y="java"+O+":",q;return N.style.display="none",g.appendChild(N),N.src=String(Y),q=N.contentWindow.document,q.open(),q.write(U("document.F=Object")),q.close(),q.F},G,_=function(){try{G=document.domain&&new ActiveXObject("htmlfile")}catch{}_=G?B(G):k();for(var N=u.length;N--;)delete _[I][u[N]];return _()};m[A]=!0,n.exports=Object.create||function(Y,q){var re;return Y!==null?(R[I]=a(Y),re=new R,R[I]=null,re[A]=Y):re=_(),q===void 0?re:s(re,q)}},"7dd0":function(n,c,t){var a=t("23e7"),s=t("9ed3"),u=t("e163"),m=t("d2bb"),g=t("d44e"),h=t("9112"),b=t("6eeb"),S=t("b622"),E=t("c430"),I=t("3f8c"),O=t("ae93"),A=O.IteratorPrototype,R=O.BUGGY_SAFARI_ITERATORS,U=S("iterator"),B="keys",k="values",G="entries",_=function(){return this};n.exports=function(N,Y,q,re,Q,T,ue){s(q,Y,re);var H=function(Ae){if(Ae===Q&&Me)return Me;if(!R&&Ae in Te)return Te[Ae];switch(Ae){case B:return function(){return new q(this,Ae)};case k:return function(){return new q(this,Ae)};case G:return function(){return new q(this,Ae)}}return function(){return new q(this)}},oe=Y+" Iterator",Ee=!1,Te=N.prototype,He=Te[U]||Te["@@iterator"]||Q&&Te[Q],Me=!R&&He||H(Q),Ke=Y=="Array"&&Te.entries||He,we,Ye,De;if(Ke&&(we=u(Ke.call(new N)),A!==Object.prototype&&we.next&&(!E&&u(we)!==A&&(m?m(we,A):typeof we[U]!="function"&&h(we,U,_)),g(we,oe,!0,!0),E&&(I[oe]=_))),Q==k&&He&&He.name!==k&&(Ee=!0,Me=function(){return He.call(this)}),(!E||ue)&&Te[U]!==Me&&h(Te,U,Me),I[Y]=Me,Q)if(Ye={values:H(k),keys:T?Me:H(B),entries:H(G)},ue)for(De in Ye)(R||Ee||!(De in Te))&&b(Te,De,Ye[De]);else a({target:Y,proto:!0,forced:R||Ee},Ye);return Ye}},"7f9a":function(n,c,t){var a=t("da84"),s=t("8925"),u=a.WeakMap;n.exports=typeof u=="function"&&/native code/.test(s(u))},"825a":function(n,c,t){var a=t("861d");n.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(n,c,t){var a=t("d039");n.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,c,t){var a=t("c04e"),s=t("9bf2"),u=t("5c6c");n.exports=function(m,g,h){var b=a(g);b in m?s.f(m,b,u(0,h)):m[b]=h}},"861d":function(n,c){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(n,c,t){var a,s,u;(function(m,g){s=[],a=g,u=typeof a=="function"?a.apply(c,s):a,u!==void 0&&(n.exports=u)})(typeof self<"u"?self:this,function(){function m(){var g=Object.getOwnPropertyDescriptor(document,"currentScript");if(!g&&"currentScript"in document&&document.currentScript||g&&g.get!==m&&document.currentScript)return document.currentScript;try{throw new Error}catch(G){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,b=/@([^@]*):(\d+):(\d+)\s*$/ig,S=h.exec(G.stack)||b.exec(G.stack),E=S&&S[1]||!1,I=S&&S[2]||!1,O=document.location.href.replace(document.location.hash,""),A,R,U,B=document.getElementsByTagName("script");E===O&&(A=document.documentElement.outerHTML,R=new RegExp("(?:[^\\n]+?\\n){0,"+(I-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),U=A.replace(R,"$1").trim());for(var k=0;k<B.length;k++)if(B[k].readyState==="interactive"||B[k].src===E||E===O&&B[k].innerHTML&&B[k].innerHTML.trim()===U)return B[k];return null}}return m})},8925:function(n,c,t){var a=t("c6cd"),s=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return s.call(u)}),n.exports=a.inspectSource},"8aa5":function(n,c,t){var a=t("6547").charAt;n.exports=function(s,u,m){return u+(m?a(s,u).length:1)}},"8bbf":function(n,c){n.exports=o},"90e3":function(n,c){var t=0,a=Math.random();n.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++t+a).toString(36)}},9112:function(n,c,t){var a=t("83ab"),s=t("9bf2"),u=t("5c6c");n.exports=a?function(m,g,h){return s.f(m,g,u(1,h))}:function(m,g,h){return m[g]=h,m}},9263:function(n,c,t){var a=t("ad6d"),s=t("9f7f"),u=RegExp.prototype.exec,m=String.prototype.replace,g=u,h=function(){var I=/a/,O=/b*/g;return u.call(I,"a"),u.call(O,"a"),I.lastIndex!==0||O.lastIndex!==0}(),b=s.UNSUPPORTED_Y||s.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,E=h||S||b;E&&(g=function(O){var A=this,R,U,B,k,G=b&&A.sticky,_=a.call(A),N=A.source,Y=0,q=O;return G&&(_=_.replace("y",""),_.indexOf("g")===-1&&(_+="g"),q=String(O).slice(A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&O[A.lastIndex-1]!==`
- `)&&(N="(?: "+N+")",q=" "+q,Y++),U=new RegExp("^(?:"+N+")",_)),S&&(U=new RegExp("^"+N+"$(?!\\s)",_)),h&&(R=A.lastIndex),B=u.call(G?U:A,q),G?B?(B.input=B.input.slice(Y),B[0]=B[0].slice(Y),B.index=A.lastIndex,A.lastIndex+=B[0].length):A.lastIndex=0:h&&B&&(A.lastIndex=A.global?B.index+B[0].length:R),S&&B&&B.length>1&&m.call(B[0],U,function(){for(k=1;k<arguments.length-2;k++)arguments[k]===void 0&&(B[k]=void 0)}),B}),n.exports=g},"94ca":function(n,c,t){var a=t("d039"),s=/#|\.prototype\./,u=function(S,E){var I=g[m(S)];return I==b?!0:I==h?!1:typeof E=="function"?a(E):!!E},m=u.normalize=function(S){return String(S).replace(s,".").toLowerCase()},g=u.data={},h=u.NATIVE="N",b=u.POLYFILL="P";n.exports=u},"99af":function(n,c,t){var a=t("23e7"),s=t("d039"),u=t("e8b5"),m=t("861d"),g=t("7b0b"),h=t("50c4"),b=t("8418"),S=t("65f0"),E=t("1dde"),I=t("b622"),O=t("2d00"),A=I("isConcatSpreadable"),R=9007199254740991,U="Maximum allowed index exceeded",B=O>=51||!s(function(){var N=[];return N[A]=!1,N.concat()[0]!==N}),k=E("concat"),G=function(N){if(!m(N))return!1;var Y=N[A];return Y!==void 0?!!Y:u(N)},_=!B||!k;a({target:"Array",proto:!0,forced:_},{concat:function(Y){var q=g(this),re=S(q,0),Q=0,T,ue,H,oe,Ee;for(T=-1,H=arguments.length;T<H;T++)if(Ee=T===-1?q:arguments[T],G(Ee)){if(oe=h(Ee.length),Q+oe>R)throw TypeError(U);for(ue=0;ue<oe;ue++,Q++)ue in Ee&&b(re,Q,Ee[ue])}else{if(Q>=R)throw TypeError(U);b(re,Q++,Ee)}return re.length=Q,re}})},"9bdd":function(n,c,t){var a=t("825a");n.exports=function(s,u,m,g){try{return g?u(a(m)[0],m[1]):u(m)}catch(b){var h=s.return;throw h!==void 0&&a(h.call(s)),b}}},"9bf2":function(n,c,t){var a=t("83ab"),s=t("0cfb"),u=t("825a"),m=t("c04e"),g=Object.defineProperty;c.f=a?g:function(b,S,E){if(u(b),S=m(S,!0),u(E),s)try{return g(b,S,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(b[S]=E.value),b}},"9ed3":function(n,c,t){var a=t("ae93").IteratorPrototype,s=t("7c73"),u=t("5c6c"),m=t("d44e"),g=t("3f8c"),h=function(){return this};n.exports=function(b,S,E){var I=S+" Iterator";return b.prototype=s(a,{next:u(1,E)}),m(b,I,!1,!0),g[I]=h,b}},"9f7f":function(n,c,t){var a=t("d039");function s(u,m){return RegExp(u,m)}c.UNSUPPORTED_Y=a(function(){var u=s("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),c.BROKEN_CARET=a(function(){var u=s("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(n,c,t){var a=t("e8b5"),s=t("50c4"),u=t("0366"),m=function(g,h,b,S,E,I,O,A){for(var R=E,U=0,B=O?u(O,A,3):!1,k;U<S;){if(U in b){if(k=B?B(b[U],U,h):b[U],I>0&&a(k))R=m(g,h,k,s(k.length),R,I-1)-1;else{if(R>=9007199254740991)throw TypeError("Exceed the acceptable array length");g[R]=k}R++}U++}return R};n.exports=m},a352:function(n,c){n.exports=d},a434:function(n,c,t){var a=t("23e7"),s=t("23cb"),u=t("a691"),m=t("50c4"),g=t("7b0b"),h=t("65f0"),b=t("8418"),S=t("1dde"),E=t("ae40"),I=S("splice"),O=E("splice",{ACCESSORS:!0,0:0,1:2}),A=Math.max,R=Math.min,U=9007199254740991,B="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!I||!O},{splice:function(G,_){var N=g(this),Y=m(N.length),q=s(G,Y),re=arguments.length,Q,T,ue,H,oe,Ee;if(re===0?Q=T=0:re===1?(Q=0,T=Y-q):(Q=re-2,T=R(A(u(_),0),Y-q)),Y+Q-T>U)throw TypeError(B);for(ue=h(N,T),H=0;H<T;H++)oe=q+H,oe in N&&b(ue,H,N[oe]);if(ue.length=T,Q<T){for(H=q;H<Y-T;H++)oe=H+T,Ee=H+Q,oe in N?N[Ee]=N[oe]:delete N[Ee];for(H=Y;H>Y-T+Q;H--)delete N[H-1]}else if(Q>T)for(H=Y-T;H>q;H--)oe=H+T-1,Ee=H+Q-1,oe in N?N[Ee]=N[oe]:delete N[Ee];for(H=0;H<Q;H++)N[H+q]=arguments[H+2];return N.length=Y-T+Q,ue}})},a4d3:function(n,c,t){var a=t("23e7"),s=t("da84"),u=t("d066"),m=t("c430"),g=t("83ab"),h=t("4930"),b=t("fdbf"),S=t("d039"),E=t("5135"),I=t("e8b5"),O=t("861d"),A=t("825a"),R=t("7b0b"),U=t("fc6a"),B=t("c04e"),k=t("5c6c"),G=t("7c73"),_=t("df75"),N=t("241c"),Y=t("057f"),q=t("7418"),re=t("06cf"),Q=t("9bf2"),T=t("d1e7"),ue=t("9112"),H=t("6eeb"),oe=t("5692"),Ee=t("f772"),Te=t("d012"),He=t("90e3"),Me=t("b622"),Ke=t("e538"),we=t("746f"),Ye=t("d44e"),De=t("69f3"),Ae=t("b727").forEach,Re=Ee("hidden"),dt="Symbol",nt="prototype",ut=Me("toPrimitive"),ct=De.set,kt=De.getterFor(dt),Ze=Object[nt],qe=s.Symbol,Gt=u("JSON","stringify"),Ot=re.f,Tt=Q.f,Sn=Y.f,Fn=T.f,xt=oe("symbols"),Bt=oe("op-symbols"),qt=oe("string-to-symbol-registry"),ln=oe("symbol-to-string-registry"),sn=oe("wks"),dn=s.QObject,un=!dn||!dn[nt]||!dn[nt].findChild,cn=g&&S(function(){return G(Tt({},"a",{get:function(){return Tt(this,"a",{value:7}).a}})).a!=7})?function(se,J,ae){var he=Ot(Ze,J);he&&delete Ze[J],Tt(se,J,ae),he&&se!==Ze&&Tt(Ze,J,he)}:Tt,_t=function(se,J){var ae=xt[se]=G(qe[nt]);return ct(ae,{type:dt,tag:se,description:J}),g||(ae.description=J),ae},w=b?function(se){return typeof se=="symbol"}:function(se){return Object(se)instanceof qe},C=function(J,ae,he){J===Ze&&C(Bt,ae,he),A(J);var Se=B(ae,!0);return A(he),E(xt,Se)?(he.enumerable?(E(J,Re)&&J[Re][Se]&&(J[Re][Se]=!1),he=G(he,{enumerable:k(0,!1)})):(E(J,Re)||Tt(J,Re,k(1,{})),J[Re][Se]=!0),cn(J,Se,he)):Tt(J,Se,he)},V=function(J,ae){A(J);var he=U(ae),Se=_(he).concat(xe(he));return Ae(Se,function(ot){(!g||ee.call(he,ot))&&C(J,ot,he[ot])}),J},F=function(J,ae){return ae===void 0?G(J):V(G(J),ae)},ee=function(J){var ae=B(J,!0),he=Fn.call(this,ae);return this===Ze&&E(xt,ae)&&!E(Bt,ae)?!1:he||!E(this,ae)||!E(xt,ae)||E(this,Re)&&this[Re][ae]?he:!0},le=function(J,ae){var he=U(J),Se=B(ae,!0);if(!(he===Ze&&E(xt,Se)&&!E(Bt,Se))){var ot=Ot(he,Se);return ot&&E(xt,Se)&&!(E(he,Re)&&he[Re][Se])&&(ot.enumerable=!0),ot}},ve=function(J){var ae=Sn(U(J)),he=[];return Ae(ae,function(Se){!E(xt,Se)&&!E(Te,Se)&&he.push(Se)}),he},xe=function(J){var ae=J===Ze,he=Sn(ae?Bt:U(J)),Se=[];return Ae(he,function(ot){E(xt,ot)&&(!ae||E(Ze,ot))&&Se.push(xt[ot])}),Se};if(h||(qe=function(){if(this instanceof qe)throw TypeError("Symbol is not a constructor");var J=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=He(J),he=function(Se){this===Ze&&he.call(Bt,Se),E(this,Re)&&E(this[Re],ae)&&(this[Re][ae]=!1),cn(this,ae,k(1,Se))};return g&&un&&cn(Ze,ae,{configurable:!0,set:he}),_t(ae,J)},H(qe[nt],"toString",function(){return kt(this).tag}),H(qe,"withoutSetter",function(se){return _t(He(se),se)}),T.f=ee,Q.f=C,re.f=le,N.f=Y.f=ve,q.f=xe,Ke.f=function(se){return _t(Me(se),se)},g&&(Tt(qe[nt],"description",{configurable:!0,get:function(){return kt(this).description}}),m||H(Ze,"propertyIsEnumerable",ee,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:qe}),Ae(_(sn),function(se){we(se)}),a({target:dt,stat:!0,forced:!h},{for:function(se){var J=String(se);if(E(qt,J))return qt[J];var ae=qe(J);return qt[J]=ae,ln[ae]=J,ae},keyFor:function(J){if(!w(J))throw TypeError(J+" is not a symbol");if(E(ln,J))return ln[J]},useSetter:function(){un=!0},useSimple:function(){un=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!g},{create:F,defineProperty:C,defineProperties:V,getOwnPropertyDescriptor:le}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ve,getOwnPropertySymbols:xe}),a({target:"Object",stat:!0,forced:S(function(){q.f(1)})},{getOwnPropertySymbols:function(J){return q.f(R(J))}}),Gt){var Le=!h||S(function(){var se=qe();return Gt([se])!="[null]"||Gt({a:se})!="{}"||Gt(Object(se))!="{}"});a({target:"JSON",stat:!0,forced:Le},{stringify:function(J,ae,he){for(var Se=[J],ot=1,Ln;arguments.length>ot;)Se.push(arguments[ot++]);if(Ln=ae,!(!O(ae)&&J===void 0||w(J)))return I(ae)||(ae=function(Co,En){if(typeof Ln=="function"&&(En=Ln.call(this,Co,En)),!w(En))return En}),Se[1]=ae,Gt.apply(null,Se)}})}qe[nt][ut]||ue(qe[nt],ut,qe[nt].valueOf),Ye(qe,dt),Te[Re]=!0},a630:function(n,c,t){var a=t("23e7"),s=t("4df4"),u=t("1c7e"),m=!u(function(g){Array.from(g)});a({target:"Array",stat:!0,forced:m},{from:s})},a640:function(n,c,t){var a=t("d039");n.exports=function(s,u){var m=[][s];return!!m&&a(function(){m.call(null,u||function(){throw 1},1)})}},a691:function(n,c){var t=Math.ceil,a=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?a:t)(s)}},ab13:function(n,c,t){var a=t("b622"),s=a("match");n.exports=function(u){var m=/./;try{"/./"[u](m)}catch{try{return m[s]=!1,"/./"[u](m)}catch{}}return!1}},ac1f:function(n,c,t){var a=t("23e7"),s=t("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(n,c,t){var a=t("825a");n.exports=function(){var s=a(this),u="";return s.global&&(u+="g"),s.ignoreCase&&(u+="i"),s.multiline&&(u+="m"),s.dotAll&&(u+="s"),s.unicode&&(u+="u"),s.sticky&&(u+="y"),u}},ae40:function(n,c,t){var a=t("83ab"),s=t("d039"),u=t("5135"),m=Object.defineProperty,g={},h=function(b){throw b};n.exports=function(b,S){if(u(g,b))return g[b];S||(S={});var E=[][b],I=u(S,"ACCESSORS")?S.ACCESSORS:!1,O=u(S,0)?S[0]:h,A=u(S,1)?S[1]:void 0;return g[b]=!!E&&!s(function(){if(I&&!a)return!0;var R={length:-1};I?m(R,1,{enumerable:!0,get:h}):R[1]=1,E.call(R,O,A)})}},ae93:function(n,c,t){var a=t("e163"),s=t("9112"),u=t("5135"),m=t("b622"),g=t("c430"),h=m("iterator"),b=!1,S=function(){return this},E,I,O;[].keys&&(O=[].keys(),"next"in O?(I=a(a(O)),I!==Object.prototype&&(E=I)):b=!0),E==null&&(E={}),!g&&!u(E,h)&&s(E,h,S),n.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:b}},b041:function(n,c,t){var a=t("00ee"),s=t("f5df");n.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(n,c,t){var a=t("83ab"),s=t("9bf2").f,u=Function.prototype,m=u.toString,g=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&s(u,h,{configurable:!0,get:function(){try{return m.call(this).match(g)[1]}catch{return""}}})},b622:function(n,c,t){var a=t("da84"),s=t("5692"),u=t("5135"),m=t("90e3"),g=t("4930"),h=t("fdbf"),b=s("wks"),S=a.Symbol,E=h?S:S&&S.withoutSetter||m;n.exports=function(I){return u(b,I)||(g&&u(S,I)?b[I]=S[I]:b[I]=E("Symbol."+I)),b[I]}},b64b:function(n,c,t){var a=t("23e7"),s=t("7b0b"),u=t("df75"),m=t("d039"),g=m(function(){u(1)});a({target:"Object",stat:!0,forced:g},{keys:function(b){return u(s(b))}})},b727:function(n,c,t){var a=t("0366"),s=t("44ad"),u=t("7b0b"),m=t("50c4"),g=t("65f0"),h=[].push,b=function(S){var E=S==1,I=S==2,O=S==3,A=S==4,R=S==6,U=S==5||R;return function(B,k,G,_){for(var N=u(B),Y=s(N),q=a(k,G,3),re=m(Y.length),Q=0,T=_||g,ue=E?T(B,re):I?T(B,0):void 0,H,oe;re>Q;Q++)if((U||Q in Y)&&(H=Y[Q],oe=q(H,Q,N),S)){if(E)ue[Q]=oe;else if(oe)switch(S){case 3:return!0;case 5:return H;case 6:return Q;case 2:h.call(ue,H)}else if(A)return!1}return R?-1:O||A?A:ue}};n.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6)}},c04e:function(n,c,t){var a=t("861d");n.exports=function(s,u){if(!a(s))return s;var m,g;if(u&&typeof(m=s.toString)=="function"&&!a(g=m.call(s))||typeof(m=s.valueOf)=="function"&&!a(g=m.call(s))||!u&&typeof(m=s.toString)=="function"&&!a(g=m.call(s)))return g;throw TypeError("Can't convert object to primitive value")}},c430:function(n,c){n.exports=!1},c6b6:function(n,c){var t={}.toString;n.exports=function(a){return t.call(a).slice(8,-1)}},c6cd:function(n,c,t){var a=t("da84"),s=t("ce4e"),u="__core-js_shared__",m=a[u]||s(u,{});n.exports=m},c740:function(n,c,t){var a=t("23e7"),s=t("b727").findIndex,u=t("44d2"),m=t("ae40"),g="findIndex",h=!0,b=m(g);g in[]&&Array(1)[g](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!b},{findIndex:function(E){return s(this,E,arguments.length>1?arguments[1]:void 0)}}),u(g)},c8ba:function(n,c){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}n.exports=t},c975:function(n,c,t){var a=t("23e7"),s=t("4d64").indexOf,u=t("a640"),m=t("ae40"),g=[].indexOf,h=!!g&&1/[1].indexOf(1,-0)<0,b=u("indexOf"),S=m("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!b||!S},{indexOf:function(I){return h?g.apply(this,arguments)||0:s(this,I,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,c,t){var a=t("5135"),s=t("fc6a"),u=t("4d64").indexOf,m=t("d012");n.exports=function(g,h){var b=s(g),S=0,E=[],I;for(I in b)!a(m,I)&&a(b,I)&&E.push(I);for(;h.length>S;)a(b,I=h[S++])&&(~u(E,I)||E.push(I));return E}},caad:function(n,c,t){var a=t("23e7"),s=t("4d64").includes,u=t("44d2"),m=t("ae40"),g=m("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!g},{includes:function(b){return s(this,b,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(n,c,t){var a=t("da84"),s=t("861d"),u=a.document,m=s(u)&&s(u.createElement);n.exports=function(g){return m?u.createElement(g):{}}},ce4e:function(n,c,t){var a=t("da84"),s=t("9112");n.exports=function(u,m){try{s(a,u,m)}catch{a[u]=m}return m}},d012:function(n,c){n.exports={}},d039:function(n,c){n.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(n,c,t){var a=t("428f"),s=t("da84"),u=function(m){return typeof m=="function"?m:void 0};n.exports=function(m,g){return arguments.length<2?u(a[m])||u(s[m]):a[m]&&a[m][g]||s[m]&&s[m][g]}},d1e7:function(n,c,t){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u=s&&!a.call({1:2},1);c.f=u?function(g){var h=s(this,g);return!!h&&h.enumerable}:a},d28b:function(n,c,t){var a=t("746f");a("iterator")},d2bb:function(n,c,t){var a=t("825a"),s=t("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,m={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(m,[]),u=m instanceof Array}catch{}return function(b,S){return a(b),s(S),u?g.call(b,S):b.__proto__=S,b}}():void 0)},d3b7:function(n,c,t){var a=t("00ee"),s=t("6eeb"),u=t("b041");a||s(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(n,c,t){var a=t("9bf2").f,s=t("5135"),u=t("b622"),m=u("toStringTag");n.exports=function(g,h,b){g&&!s(g=b?g:g.prototype,m)&&a(g,m,{configurable:!0,value:h})}},d58f:function(n,c,t){var a=t("1c0b"),s=t("7b0b"),u=t("44ad"),m=t("50c4"),g=function(h){return function(b,S,E,I){a(S);var O=s(b),A=u(O),R=m(O.length),U=h?R-1:0,B=h?-1:1;if(E<2)for(;;){if(U in A){I=A[U],U+=B;break}if(U+=B,h?U<0:R<=U)throw TypeError("Reduce of empty array with no initial value")}for(;h?U>=0:R>U;U+=B)U in A&&(I=S(I,A[U],U,O));return I}};n.exports={left:g(!1),right:g(!0)}},d784:function(n,c,t){t("ac1f");var a=t("6eeb"),s=t("d039"),u=t("b622"),m=t("9263"),g=t("9112"),h=u("species"),b=!s(function(){var A=/./;return A.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(A,"$<a>")!=="7"}),S=function(){return"a".replace(/./,"$0")==="$0"}(),E=u("replace"),I=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),O=!s(function(){var A=/(?:)/,R=A.exec;A.exec=function(){return R.apply(this,arguments)};var U="ab".split(A);return U.length!==2||U[0]!=="a"||U[1]!=="b"});n.exports=function(A,R,U,B){var k=u(A),G=!s(function(){var Q={};return Q[k]=function(){return 7},""[A](Q)!=7}),_=G&&!s(function(){var Q=!1,T=/a/;return A==="split"&&(T={},T.constructor={},T.constructor[h]=function(){return T},T.flags="",T[k]=/./[k]),T.exec=function(){return Q=!0,null},T[k](""),!Q});if(!G||!_||A==="replace"&&!(b&&S&&!I)||A==="split"&&!O){var N=/./[k],Y=U(k,""[A],function(Q,T,ue,H,oe){return T.exec===m?G&&!oe?{done:!0,value:N.call(T,ue,H)}:{done:!0,value:Q.call(ue,T,H)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:I}),q=Y[0],re=Y[1];a(String.prototype,A,q),a(RegExp.prototype,k,R==2?function(Q,T){return re.call(Q,this,T)}:function(Q){return re.call(Q,this)})}B&&g(RegExp.prototype[k],"sham",!0)}},d81d:function(n,c,t){var a=t("23e7"),s=t("b727").map,u=t("1dde"),m=t("ae40"),g=u("map"),h=m("map");a({target:"Array",proto:!0,forced:!g||!h},{map:function(S){return s(this,S,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,c,t){(function(a){var s=function(u){return u&&u.Math==Math&&u};n.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof a=="object"&&a)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(n,c,t){var a=t("23e7"),s=t("83ab"),u=t("56ef"),m=t("fc6a"),g=t("06cf"),h=t("8418");a({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(S){for(var E=m(S),I=g.f,O=u(E),A={},R=0,U,B;O.length>R;)B=I(E,U=O[R++]),B!==void 0&&h(A,U,B);return A}})},dbf1:function(n,c,t){(function(a){t.d(c,"a",function(){return u});function s(){return typeof window<"u"?window.console:a.console}var u=s()}).call(this,t("c8ba"))},ddb0:function(n,c,t){var a=t("da84"),s=t("fdbc"),u=t("e260"),m=t("9112"),g=t("b622"),h=g("iterator"),b=g("toStringTag"),S=u.values;for(var E in s){var I=a[E],O=I&&I.prototype;if(O){if(O[h]!==S)try{m(O,h,S)}catch{O[h]=S}if(O[b]||m(O,b,E),s[E]){for(var A in u)if(O[A]!==u[A])try{m(O,A,u[A])}catch{O[A]=u[A]}}}}},df75:function(n,c,t){var a=t("ca84"),s=t("7839");n.exports=Object.keys||function(m){return a(m,s)}},e01a:function(n,c,t){var a=t("23e7"),s=t("83ab"),u=t("da84"),m=t("5135"),g=t("861d"),h=t("9bf2").f,b=t("e893"),S=u.Symbol;if(s&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var E={},I=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),G=this instanceof I?new S(k):k===void 0?S():S(k);return k===""&&(E[G]=!0),G};b(I,S);var O=I.prototype=S.prototype;O.constructor=I;var A=O.toString,R=String(S("test"))=="Symbol(test)",U=/^Symbol\((.*)\)[^)]+$/;h(O,"description",{configurable:!0,get:function(){var k=g(this)?this.valueOf():this,G=A.call(k);if(m(E,k))return"";var _=R?G.slice(7,-1):G.replace(U,"$1");return _===""?void 0:_}}),a({global:!0,forced:!0},{Symbol:I})}},e163:function(n,c,t){var a=t("5135"),s=t("7b0b"),u=t("f772"),m=t("e177"),g=u("IE_PROTO"),h=Object.prototype;n.exports=m?Object.getPrototypeOf:function(b){return b=s(b),a(b,g)?b[g]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?h:null}},e177:function(n,c,t){var a=t("d039");n.exports=!a(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},e260:function(n,c,t){var a=t("fc6a"),s=t("44d2"),u=t("3f8c"),m=t("69f3"),g=t("7dd0"),h="Array Iterator",b=m.set,S=m.getterFor(h);n.exports=g(Array,"Array",function(E,I){b(this,{type:h,target:a(E),index:0,kind:I})},function(){var E=S(this),I=E.target,O=E.kind,A=E.index++;return!I||A>=I.length?(E.target=void 0,{value:void 0,done:!0}):O=="keys"?{value:A,done:!1}:O=="values"?{value:I[A],done:!1}:{value:[A,I[A]],done:!1}},"values"),u.Arguments=u.Array,s("keys"),s("values"),s("entries")},e439:function(n,c,t){var a=t("23e7"),s=t("d039"),u=t("fc6a"),m=t("06cf").f,g=t("83ab"),h=s(function(){m(1)}),b=!g||h;a({target:"Object",stat:!0,forced:b,sham:!g},{getOwnPropertyDescriptor:function(E,I){return m(u(E),I)}})},e538:function(n,c,t){var a=t("b622");c.f=a},e893:function(n,c,t){var a=t("5135"),s=t("56ef"),u=t("06cf"),m=t("9bf2");n.exports=function(g,h){for(var b=s(h),S=m.f,E=u.f,I=0;I<b.length;I++){var O=b[I];a(g,O)||S(g,O,E(h,O))}}},e8b5:function(n,c,t){var a=t("c6b6");n.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(n,c,t){var a=t("b622"),s=t("3f8c"),u=a("iterator"),m=Array.prototype;n.exports=function(g){return g!==void 0&&(s.Array===g||m[u]===g)}},f5df:function(n,c,t){var a=t("00ee"),s=t("c6b6"),u=t("b622"),m=u("toStringTag"),g=s(function(){return arguments}())=="Arguments",h=function(b,S){try{return b[S]}catch{}};n.exports=a?s:function(b){var S,E,I;return b===void 0?"Undefined":b===null?"Null":typeof(E=h(S=Object(b),m))=="string"?E:g?s(S):(I=s(S))=="Object"&&typeof S.callee=="function"?"Arguments":I}},f772:function(n,c,t){var a=t("5692"),s=t("90e3"),u=a("keys");n.exports=function(m){return u[m]||(u[m]=s(m))}},fb15:function(n,c,t){if(t.r(c),typeof window<"u"){var a=window.document.currentScript;{var s=t("8875");a=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(t.p=u[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function m(w,C,V){return C in w?Object.defineProperty(w,C,{value:V,enumerable:!0,configurable:!0,writable:!0}):w[C]=V,w}function g(w,C){var V=Object.keys(w);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(w);C&&(F=F.filter(function(ee){return Object.getOwnPropertyDescriptor(w,ee).enumerable})),V.push.apply(V,F)}return V}function h(w){for(var C=1;C<arguments.length;C++){var V=arguments[C]!=null?arguments[C]:{};C%2?g(Object(V),!0).forEach(function(F){m(w,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(V)):g(Object(V)).forEach(function(F){Object.defineProperty(w,F,Object.getOwnPropertyDescriptor(V,F))})}return w}function b(w){if(Array.isArray(w))return w}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function S(w,C){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w)))){var V=[],F=!0,ee=!1,le=void 0;try{for(var ve=w[Symbol.iterator](),xe;!(F=(xe=ve.next()).done)&&(V.push(xe.value),!(C&&V.length===C));F=!0);}catch(Le){ee=!0,le=Le}finally{try{!F&&ve.return!=null&&ve.return()}finally{if(ee)throw le}}return V}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function E(w,C){(C==null||C>w.length)&&(C=w.length);for(var V=0,F=new Array(C);V<C;V++)F[V]=w[V];return F}function I(w,C){if(w){if(typeof w=="string")return E(w,C);var V=Object.prototype.toString.call(w).slice(8,-1);if(V==="Object"&&w.constructor&&(V=w.constructor.name),V==="Map"||V==="Set")return Array.from(w);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return E(w,C)}}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(w,C){return b(w)||S(w,C)||I(w,C)||O()}function R(w){if(Array.isArray(w))return E(w)}function U(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}function B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(w){return R(w)||U(w)||I(w)||B()}var G=t("a352"),_=t.n(G);function N(w){w.parentElement!==null&&w.parentElement.removeChild(w)}function Y(w,C,V){var F=V===0?w.children[0]:w.children[V-1].nextSibling;w.insertBefore(C,F)}var q=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function re(w){var C=Object.create(null);return function(F){var ee=C[F];return ee||(C[F]=w(F))}}var Q=/-(\w)/g,T=re(function(w){return w.replace(Q,function(C,V){return V.toUpperCase()})});t("5db7"),t("73d9");var ue=["Start","Add","Remove","Update","End"],H=["Choose","Unchoose","Sort","Filter","Clone"],oe=["Move"],Ee=[oe,ue,H].flatMap(function(w){return w}).map(function(w){return"on".concat(w)}),Te={manage:oe,manageAndEmit:ue,emit:H};function He(w){return Ee.indexOf(w)!==-1}t("caad"),t("2ca0");var Me=["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 Ke(w){return Me.includes(w)}function we(w){return["transition-group","TransitionGroup"].includes(w)}function Ye(w){return["id","class","role","style"].includes(w)||w.startsWith("data-")||w.startsWith("aria-")||w.startsWith("on")}function De(w){return w.reduce(function(C,V){var F=A(V,2),ee=F[0],le=F[1];return C[ee]=le,C},{})}function Ae(w){var C=w.$attrs,V=w.componentData,F=V===void 0?{}:V,ee=De(Object.entries(C).filter(function(le){var ve=A(le,2),xe=ve[0];return ve[1],Ye(xe)}));return h(h({},ee),F)}function Re(w){var C=w.$attrs,V=w.callBackBuilder,F=De(dt(C));Object.entries(V).forEach(function(le){var ve=A(le,2),xe=ve[0],Le=ve[1];Te[xe].forEach(function(se){F["on".concat(se)]=Le(se)})});var ee="[data-draggable]".concat(F.draggable||"");return h(h({},F),{},{draggable:ee})}function dt(w){return Object.entries(w).filter(function(C){var V=A(C,2),F=V[0];return V[1],!Ye(F)}).map(function(C){var V=A(C,2),F=V[0],ee=V[1];return[T(F),ee]}).filter(function(C){var V=A(C,2),F=V[0];return V[1],!He(F)})}t("c740");function nt(w,C){if(!(w instanceof C))throw new TypeError("Cannot call a class as a function")}function ut(w,C){for(var V=0;V<C.length;V++){var F=C[V];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}function ct(w,C,V){return C&&ut(w.prototype,C),w}var kt=function(C){var V=C.el;return V},Ze=function(C,V){return C.__draggable_context=V},qe=function(C){return C.__draggable_context},Gt=function(){function w(C){var V=C.nodes,F=V.header,ee=V.default,le=V.footer,ve=C.root,xe=C.realList;nt(this,w),this.defaultNodes=ee,this.children=[].concat(k(F),k(ee),k(le)),this.externalComponent=ve.externalComponent,this.rootTransition=ve.transition,this.tag=ve.tag,this.realList=xe}return ct(w,[{key:"render",value:function(V,F){var ee=this.tag,le=this.children,ve=this._isRootComponent,xe=ve?{default:function(){return le}}:le;return V(ee,F,xe)}},{key:"updated",value:function(){var V=this.defaultNodes,F=this.realList;V.forEach(function(ee,le){Ze(kt(ee),{element:F[le],index:le})})}},{key:"getUnderlyingVm",value:function(V){return qe(V)}},{key:"getVmIndexFromDomIndex",value:function(V,F){var ee=this.defaultNodes,le=ee.length,ve=F.children,xe=ve.item(V);if(xe===null)return le;var Le=qe(xe);if(Le)return Le.index;if(le===0)return 0;var se=kt(ee[0]),J=k(ve).findIndex(function(ae){return ae===se});return V<J?0:le}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),w}(),Ot=t("8bbf");function Tt(w,C){var V=w[C];return V?V():[]}function Sn(w){var C=w.$slots,V=w.realList,F=w.getKey,ee=V||[],le=["header","footer"].map(function(ae){return Tt(C,ae)}),ve=A(le,2),xe=ve[0],Le=ve[1],se=C.item;if(!se)throw new Error("draggable element must have an item slot");var J=ee.flatMap(function(ae,he){return se({element:ae,index:he}).map(function(Se){return Se.key=F(ae),Se.props=h(h({},Se.props||{}),{},{"data-draggable":!0}),Se})});if(J.length!==ee.length)throw new Error("Item slot must have only one child");return{header:xe,footer:Le,default:J}}function Fn(w){var C=we(w),V=!Ke(w)&&!C;return{transition:C,externalComponent:V,tag:V?Object(Ot.resolveComponent)(w):C?Ot.TransitionGroup:w}}function xt(w){var C=w.$slots,V=w.tag,F=w.realList,ee=w.getKey,le=Sn({$slots:C,realList:F,getKey:ee}),ve=Fn(V);return new Gt({nodes:le,root:ve,realList:F})}function Bt(w,C){var V=this;Object(Ot.nextTick)(function(){return V.$emit(w.toLowerCase(),C)})}function qt(w){var C=this;return function(V,F){if(C.realList!==null)return C["onDrag".concat(w)](V,F)}}function ln(w){var C=this,V=qt.call(this,w);return function(F,ee){V.call(C,F,ee),Bt.call(C,w,F)}}var sn=null,dn={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(C){return C}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},un=["update:modelValue","change"].concat(k([].concat(k(Te.manageAndEmit),k(Te.emit)).map(function(w){return w.toLowerCase()}))),cn=Object(Ot.defineComponent)({name:"draggable",inheritAttrs:!1,props:dn,emits:un,data:function(){return{error:!1}},render:function(){try{this.error=!1;var C=this.$slots,V=this.$attrs,F=this.tag,ee=this.componentData,le=this.realList,ve=this.getKey,xe=xt({$slots:C,tag:F,realList:le,getKey:ve});this.componentStructure=xe;var Le=Ae({$attrs:V,componentData:ee});return xe.render(Ot.h,Le)}catch(se){return this.error=!0,Object(Ot.h)("pre",{style:{color:"red"}},se.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&q.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var C=this;if(!this.error){var V=this.$attrs,F=this.$el,ee=this.componentStructure;ee.updated();var le=Re({$attrs:V,callBackBuilder:{manageAndEmit:function(Le){return ln.call(C,Le)},emit:function(Le){return Bt.bind(C,Le)},manage:function(Le){return qt.call(C,Le)}}}),ve=F.nodeType===1?F:F.parentElement;this._sortable=new _.a(ve,le),this.targetDomElement=ve,ve.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var C=this.list;return C||this.modelValue},getKey:function(){var C=this.itemKey;return typeof C=="function"?C:function(V){return V[C]}}},watch:{$attrs:{handler:function(C){var V=this._sortable;V&&dt(C).forEach(function(F){var ee=A(F,2),le=ee[0],ve=ee[1];V.option(le,ve)})},deep:!0}},methods:{getUnderlyingVm:function(C){return this.componentStructure.getUnderlyingVm(C)||null},getUnderlyingPotencialDraggableComponent:function(C){return C.__draggable_component__},emitChanges:function(C){var V=this;Object(Ot.nextTick)(function(){return V.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var V=k(this.modelValue);C(V),this.$emit("update:modelValue",V)},spliceList:function(){var C=arguments,V=function(ee){return ee.splice.apply(ee,k(C))};this.alterList(V)},updatePosition:function(C,V){var F=function(le){return le.splice(V,0,le.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var V=C.to,F=C.related,ee=this.getUnderlyingPotencialDraggableComponent(V);if(!ee)return{component:ee};var le=ee.realList,ve={list:le,component:ee};if(V!==F&&le){var xe=ee.getUnderlyingVm(F)||{};return h(h({},xe),ve)}return ve},getVmIndexFromDomIndex:function(C){return this.componentStructure.getVmIndexFromDomIndex(C,this.targetDomElement)},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),sn=C.item},onDragAdd:function(C){var V=C.item._underlying_vm_;if(V!==void 0){N(C.item);var F=this.getVmIndexFromDomIndex(C.newIndex);this.spliceList(F,0,V);var ee={element:V,newIndex:F};this.emitChanges({added:ee})}},onDragRemove:function(C){if(Y(this.$el,C.item,C.oldIndex),C.pullMode==="clone"){N(C.clone);return}var V=this.context,F=V.index,ee=V.element;this.spliceList(F,1);var le={element:ee,oldIndex:F};this.emitChanges({removed:le})},onDragUpdate:function(C){N(C.item),Y(C.from,C.item,C.oldIndex);var V=this.context.index,F=this.getVmIndexFromDomIndex(C.newIndex);this.updatePosition(V,F);var ee={element:this.context.element,oldIndex:V,newIndex:F};this.emitChanges({moved:ee})},computeFutureIndex:function(C,V){if(!C.element)return 0;var F=k(V.to.children).filter(function(xe){return xe.style.display!=="none"}),ee=F.indexOf(V.related),le=C.component.getVmIndexFromDomIndex(ee),ve=F.indexOf(sn)!==-1;return ve||!V.willInsertAfter?le:le+1},onDragMove:function(C,V){var F=this.move,ee=this.realList;if(!F||!ee)return!0;var le=this.getRelatedContextFromMoveEvent(C),ve=this.computeFutureIndex(le,C),xe=h(h({},this.context),{},{futureIndex:ve}),Le=h(h({},C),{},{relatedContext:le,draggedContext:xe});return F(Le,V)},onDragEnd:function(){sn=null}}}),_t=cn;c.default=_t},fb6a:function(n,c,t){var a=t("23e7"),s=t("861d"),u=t("e8b5"),m=t("23cb"),g=t("50c4"),h=t("fc6a"),b=t("8418"),S=t("b622"),E=t("1dde"),I=t("ae40"),O=E("slice"),A=I("slice",{ACCESSORS:!0,0:0,1:2}),R=S("species"),U=[].slice,B=Math.max;a({target:"Array",proto:!0,forced:!O||!A},{slice:function(G,_){var N=h(this),Y=g(N.length),q=m(G,Y),re=m(_===void 0?Y:_,Y),Q,T,ue;if(u(N)&&(Q=N.constructor,typeof Q=="function"&&(Q===Array||u(Q.prototype))?Q=void 0:s(Q)&&(Q=Q[R],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return U.call(N,q,re);for(T=new(Q===void 0?Array:Q)(B(re-q,0)),ue=0;q<re;q++,ue++)q in N&&b(T,ue,N[q]);return T.length=ue,T}})},fc6a:function(n,c,t){var a=t("44ad"),s=t("1d80");n.exports=function(u){return a(s(u))}},fdbc:function(n,c){n.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(n,c,t){var a=t("4930");n.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(ha);var Qs=ha.exports;const ma=Bl(Qs);function ga(r,i){["name","gender","phone","id_card","ethnicity","height","weight","current_address","household_location","marital_status","expected_salary"].forEach(n=>{i[n]&&(r[n].visible=i[n].visible,r[n].required=i[n].required)}),["family_member","education","work_experience"].forEach(n=>{i[n]&&(r[n].visible=i[n].visible,Object.keys(i[n].fields).forEach(c=>{r[n].fields[c]&&(r[n].fields[c].visible=i[n].fields[c].visible,r[n].fields[c].required=i[n].fields[c].required)}))})}const Gs={class:"position-detail-container"},zs={class:"header-container"},$s={class:"header-actions"},Js={class:"detail-content"},Ws={class:"detail-item"},Hs={key:0,class:"detail-value"},Ys={key:1,class:"title-edit-container"},Xs={class:"title-edit-actions"},Zs={class:"detail-item"},qs={key:0,class:"detail-value"},_s={key:1,class:"title-edit-container"},ed={class:"title-edit-actions"},td={class:"detail-item"},nd={key:0,class:"detail-value"},od={key:1,class:"title-edit-container"},id={class:"title-edit-actions"},ad={class:"detail-item"},rd={key:0,class:"detail-value"},ld={key:1,class:"title-edit-container"},sd={class:"title-edit-actions"},dd={class:"detail-item"},ud={key:0,class:"detail-value"},cd={key:1,class:"title-edit-container"},fd={class:"title-edit-actions"},vd={class:"detail-item"},pd={key:0,class:"detail-value"},md={key:1,class:"title-edit-container"},gd={class:"title-edit-actions"},hd={class:"detail-item"},yd={class:"detail-value"},bd={class:"detail-item"},Sd={key:0,class:"detail-value"},Ed={key:1,class:"title-edit-container"},xd={class:"title-edit-actions"},Id={class:"detail-item"},Cd=["innerHTML"],Ad={key:2,class:"title-edit-container"},wd={class:"title-edit-actions"},Od={class:"detail-item"},Td=["innerHTML"],Dd={key:2,class:"title-edit-container"},Pd={class:"title-edit-actions"},Vd={class:"detail-item"},Rd={key:0,class:"detail-value"},Ud={key:1,class:"title-edit-container"},Md={class:"title-edit-actions"},Kd={class:"status-cards"},kd={class:"status-switch"},Bd={class:"status-text"},Nd={class:"section-title"},jd={class:"usage-content"},Fd={key:0,class:"usage-value"},Ld={key:1,class:"title-edit-container"},Qd={class:"title-edit-actions"},Gd={class:"section-title"},zd={class:"process-steps"},$d={class:"step-number"},Jd={class:"step-content"},Wd={class:"step-title"},Hd={class:"section-title"},Yd={class:"process-dialog-content"},Xd={key:0,class:"add-process-btn-top"},Zd={class:"process-number"},qd={class:"process-edit-content"},_d={class:"process-edit-desc"},eu={class:"process-edit-btn"},tu=["onClick"],nu={class:"dialog-footer"},ou={class:"ai-video-steps"},iu={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},au={class:"ai-video-options"},ru={class:"recommended-dimensions"},lu={class:"dimension-grid"},su={class:"ability-label"},du={class:"optional-dimensions"},uu={class:"header-row"},cu={class:"right_btn"},fu={class:"dimension-grid"},vu={class:"ability-label"},pu={class:"custom-dimensions"},mu={class:"dimension-form"},gu={class:"dimension-row"},hu={class:"dimension-input"},yu={class:"dimension-input"},bu={class:"dimension-actions"},Su={key:1,class:"ai-video-content"},Eu={class:"interview-settings"},xu={class:"interview-header"},Iu={class:"interview-actions"},Cu={class:"question-switches"},Au={class:"switch-item"},wu={class:"switch-item"},Ou={class:"interview-duration"},Tu={class:"duration-value"},Du={class:"interview-content"},Pu={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},Vu={key:0,class:"no-questions"},Ru={key:1,class:"question-list"},Uu={class:"question-card"},Mu={class:"question-header"},Ku={class:"question-title"},ku={class:"title-content"},Bu={class:"question-content"},Nu={class:"question-number"},ju={style:{color:"#0017ab"}},Fu={class:"question-tags"},Lu={key:0,class:"more-tags-indicator"},Qu={class:"question-actions",style:{"margin-top":"0px"}},Gu={class:"question-info"},zu={class:"info-item"},$u={key:0,class:"question-actions"},Ju={class:"answer-limit"},Wu={class:"answer-limit"},Hu={key:1,class:"question-actions"},Yu={class:"answer-limit"},Xu={class:"multi-dimension-questions"},Zu={class:"dimension-list"},qu={class:"dimension-header"},_u={class:"dimension-info"},ec={class:"ability-name"},tc=["onClick"],nc={key:2,class:"ai-video-content"},oc={class:"system-settings"},ic={class:"setting-section"},ac={style:{display:"flex","align-items":"flex-start"}},rc={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},lc=["src"],sc={class:"interviewer-avatars"},dc=["onClick"],uc={class:"avatar-wrapper"},cc=["src","alt"],fc=["title"],vc={class:"setting-item",style:{border:"none"}},pc={class:"setting-options"},mc={class:"interview-settings"},gc={class:"setting-item"},hc={class:"setting-item"},yc={class:"setting-options"},bc={class:"setting-item"},Sc={class:"drawer-footer"},Ec={class:"video-lecture-form"},xc={class:"form-item"},Ic={class:"upload-area"},Cc={class:"form-item"},Ac={class:"dialog-footer"},wc={class:"ai-chat-content"},Oc={class:"chat-settings"},Tc={class:"chat-actions"},Dc={class:"chat-questions"},Pc={key:0,class:"empty-questions"},Vc={key:1,class:"question-list"},Rc={class:"question-card"},Uc={class:"question-header"},Mc={class:"question-title"},Kc={class:"question-number"},kc={class:"question-actions"},Bc={class:"weight-control"},Nc={class:"answer-limit"},jc={class:"question-info"},Fc={class:"info-item"},Lc={class:"info-item"},Qc={class:"info-item"},Gc={class:"drawer-footer"},zc={class:"question-form"},$c={class:"form-item"},Jc={class:"form-item"},Wc={class:"form-item"},Hc={class:"competency-config"},Yc={class:"tag-name"},Xc={class:"form-tip"},Zc={class:"form-item"},qc={class:"form-item"},_c={key:0,class:"form-item"},ef=["onClick"],tf={style:{display:"flex","justify-content":"space-between","margin-top":"10px"}},nf={class:"form-item"},of={class:"form-item"},af={class:"form-item"},rf={class:"form-item"},lf={class:"dialog-footer"},sf={class:"question-select-content"},df={class:"custom-tree-node"},uf={class:"node-label",style:{display:"flex","align-items":"center"}},cf={class:"ml-2"},ff={class:"dialog-footer"},vf={class:"data-collection-form"},pf={class:"field-config-panel"},mf={class:"field-config-list"},gf={class:"field-config-item"},hf={class:"field-label"},yf={class:"field-config-item"},bf={class:"field-label"},Sf={class:"field-config-item sub-field"},Ef={class:"field-label"},xf={class:"field-config-item"},If={class:"field-label"},Cf={class:"field-config-item sub-field"},Af={class:"field-label"},wf={class:"field-config-item"},Of={class:"field-label"},Tf={class:"field-config-item"},Df={class:"field-label"},Pf={class:"field-config-item sub-field"},Vf={class:"field-label"},Rf={class:"dialog-footer"},Uf={class:"resume-collection-form"},Mf={class:"form-item"},Kf={class:"dialog-footer"},kf={class:"code-test-form"},Bf={class:"form-item"},Nf={class:"form-item"},jf={class:"switch-label"},Ff={class:"form-item"},Lf={class:"test-paper-selector"},Qf={key:0,class:"empty-paper"},Gf={key:1,class:"selected-paper"},zf={class:"paper-info"},$f={class:"paper-title"},Jf={class:"paper-meta"},Wf={class:"paper-actions"},Hf={class:"dialog-footer"},Yf={class:"typing-test-form"},Xf={class:"form-item"},Zf={class:"article-selection"},qf={class:"form-item"},_f={class:"form-item"},ev={class:"time-input-container"},tv={class:"form-item"},nv={class:"upload-area"},ov={class:"form-item"},iv={class:"form-item"},av={class:"form-item"},rv={class:"form-item"},lv={class:"criteria-options"},sv={class:"dialog-footer"},dv={class:"interview-settings-content"},uv={class:"settings-section"},cv={class:"setting-item"},fv={class:"setting-item"},vv={class:"setting-item"},pv={class:"setting-item"},mv={class:"setting-item"},gv={class:"settings-section"},hv={class:"setting-item"},yv={class:"setting-info"},bv={class:"setting-desc-container"},Sv={class:"setting-item"},Ev={class:"setting-info"},xv={key:0,class:"setting-desc-container"},Iv={class:"setting-desc"},Cv={key:1,class:"desc-edit-container"},Av={class:"desc-edit-actions"},wv={class:"setting-item"},Ov={class:"setting-info"},Tv={key:0,class:"setting-desc-container"},Dv={class:"setting-desc"},Pv={key:1,class:"desc-edit-container"},Vv={class:"desc-edit-actions"},Rv={class:"setting-item"},Uv={class:"setting-info"},Mv={key:0,class:"setting-desc-container"},Kv={class:"setting-desc"},kv={key:1,class:"desc-edit-container"},Bv={class:"desc-edit-actions"},Nv={class:"dialog-footer"},jv={class:"question-select-content"},Fv={class:"document-box document-left-box"},Lv={class:"search-bar"},Qv={class:"search-inputs"},Gv={class:"question-lists"},zv={class:"pagination-container"},$v={class:"dialog-footer"},Jv={class:"candidate-questions-form"},Wv={class:"form-item"},Hv={class:"form-item"},Yv={class:"form-item"},Xv={class:"dialog-footer"},Zv={class:"dialog-footer"},qv=Cl({__name:"index",setup(r){const i=Al(),o=wl(),d=z(o.query.id),n=z(!1),c=z(!1),t=_e({title:"",job_category:"",job_type_display:"",city:"",location:[],location_str:"",address_detail:"",benefits:[],requirements:"",job_type:0,salary_range:"",department:"",end_date:"",description:"",work_experience_required:"",education_required:"",competency_tags:[],options:[],status:0}),a=_e([{id:6,name:"简历收集",description:"简历收集",active:!0,type:"resume_collection",visible:!0},{id:5,name:"资料收集",description:"资料收集",active:!0,type:"data_collection",visible:!0},{id:2,name:"AI考察",description:"AI考察",active:!0,type:"ai_video",visible:!0},{id:8,name:"综合素质考察",description:"综合素质考察",active:!0,type:"common_sense",visible:!0},{id:9,name:"心理问题",description:"心理问题",active:!0,type:"psychological_problem",visible:!0},{id:7,name:"候选人提问",description:"时长5分钟,最多3个问题",active:!0,type:"candidate_questions",visible:!0,config:{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}},{id:3,name:"已通过",description:"已通过",active:!0,type:"passed",visible:!0},{id:4,name:"已淘汰",description:"已淘汰",active:!1,type:"rejected",visible:!0}]),s=z(!1),u=[{label:"AI考察",value:"ai_video"},{label:"视频宣讲",value:"video_presentation"},{label:"肢体检测",value:"body_detection"},{label:"资料收集",value:"data_collection"},{label:"简历收集",value:"resume_collection"},{label:"候选人提问",value:"candidate_questions"},{label:"心理问题",value:"psychological_problem"},{label:"综合素质考察",value:"common_sense"}],m=z(!1),g=f=>{rt.pageSize=f,Yt({page:rt.page,limit:rt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(rt.value=e.data.items,ft.page=e.data.page,ft.pageSize=e.data.limit,Jt.value=e.data.total)})},h=f=>{rt.page=f,Yt({page:rt.page,limit:rt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(rt.value=e.data.items,ft.page=e.data.page,ft.pageSize=e.data.limit,Jt.value=e.data.total)})},b=async()=>{const f=Nt.value.map(e=>e.id);if(console.log("selectedQuestionIds",f),f.length===0){M.warning("请至少选择一个问题");return}try{await ui({position_id:o.query.id,question_id:f,duration:60,tenant_id:"1"});const e=rt.value.filter(D=>D.selected);Nt.value.push(...e),M.success("问题添加成功"),m.value=!1}catch(e){console.error("添加问题失败:",e),e.code===4e3?M.warning("该题目已绑定,请选择其他题目"):M.error("添加问题失败,请重试")}},S=()=>{Pn.value=!0,oa({position_id:o.query.id}).then(f=>{f.data.forEach(e=>{e.selected=!1}),Rt.value=f.data,console.log("res",f),Pn.value=!1}).catch(f=>{console.log("err",f),Pn.value=!1})},E=Gl(),I=f=>{if(console.log("地址选择变化:",f),f&&Array.isArray(f)&&f.length>0){const[e,D,x]=f,P=E.find(ce=>ce.code===e);let L;P&&P.children&&(L=P.children.find(ce=>ce.code===D),L&&L.children&&L.children.find(ce=>ce.code===x))}},O=(f,e)=>{},A=z(-1),R=z(!1),U=_e({top:"0px",left:"0px"}),B=z(!1),k=_e({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),G=z(1),_=z([{label:"沟通能力",value:"communication",level:"CC",description:"能够清晰、准确地表达想法,善于倾听和理解他人的观点,具备良好的书面和口头表达能力。",expanded:!1,isNew:!0},{label:"团队协作",value:"teamwork",level:"CC",description:"能够与团队成员有效合作,共同完成目标,具备良好的团队精神和协作意识。",expanded:!1,isNew:!1}]);_e({min:0,max:100,minScore:0,maxScore:0});const N=f=>{console.log(f)};z("standard"),z(!1);const Y=z(!1),q=_e({title:"",videoFile:null,description:"",broadcastType:"required"}),re=z(!1);z(15),z(5);const Q=z(!1),T=_e({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""}),ue=f=>f.map(e=>e.id),H=z([]),oe=z([{label:"后端开发",value:"backend"},{label:"前端开发",value:"frontend"},{label:"产品经理",value:"product_manager"},{label:"项目经理",value:"project_manager"},{label:"测试工程师",value:"test_engineer"}]),Ee=z([{label:"技术能力",value:"tech"},{label:"管理能力",value:"management"},{label:"沟通能力",value:"communication"},{label:"专业知识",value:"professional"},{label:"个人素质",value:"personal"}]),Te=z([{label:"时间管理",value:"time_management"},{label:"压力处理",value:"pressure_handling"},{label:"团队合作",value:"team_cooperation"},{label:"问题分析",value:"problem_analysis"},{label:"创新思维",value:"innovative_thinking"}]),He=()=>{Object.assign(T,{id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""})},Me=()=>{Q.value=!1,He()},Ke=async()=>{if(!T.content){M.error("请输入题目内容");return}if(Zr())try{const f={id:T.id,content:T.content,competency_tags:T.competency_tags,options:T.options,weight:T.weight,level:T.level,question_form:T.question_form,position:T.position,category:T.category,suggestedDuration:T.suggestedDuration,scoring_reference:T.scoring_reference};console.log(f),Q.value=!1,He()}catch(f){console.error("添加问题失败:",f),M.error("添加问题失败,请重试")}},we=z(!1),Ye=_e({isRequired:!1,questions:[]});z([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const De=z(!1),Ae=_e({title:"简历收集",isRequired:!0,steps:4}),Re=()=>{De.value=!0},dt=()=>{De.value=!1,Object.assign(Ae,{title:"简历收集",isRequired:!0,steps:4})},nt=()=>{const f={id:Date.now(),name:Ae.title,description:"简历收集",active:!0,type:"resume_collection",config:{...Ae}};a.splice(A.value,0,f),De.value=!1,M.success("简历收集步骤已添加"),dt()},ut=z(!1),ct=_e({enableScoreQuestions:!1,enableColorBlindQuestions:!1,enableOpenQuestions:!1}),kt=async()=>{try{const f=o.query.id;if(!f){M.error("职位ID不存在");return}const e=Array.isArray(f)?f[0]:f,D=f,x=await Ml(f);if(x&&x.data){Object.assign(t,x.data),H.value=x.data.competency_tags;const P=await Un(f);P&&P.data&&(ke.value=P.data.id,P.data.enable_psychological_test!==void 0&&(ct.enableScoreQuestions=P.data.enable_psychological_test),P.data.enable_color_blind_test!==void 0&&(ct.enableColorBlindQuestions=P.data.enable_color_blind_test)),n.value=t.status===1}}catch(f){console.error("获取职位详情失败:",f),M.error("获取职位详情失败")}},Ze=()=>{i.push("/position/list")},qe=()=>{i.push("/position/list")},Gt=()=>{M.success("分享链接已复制到剪贴板")},Ot=async f=>{const e=o.query.id;try{const D=f?1:0;if(f){const x=await Kl({position_id:e,tenant_id:1});if(x.code===2e3){const{is_all_completed:P,total_questions:L}=x.data;if(!P||L<=0){M.warning(`无法开启职位,原因:${L<=0?"当前职位没有设置面试题目":"面试题目视频未全部生成完成"}`),n.value=!f;return}}else{M.error("检查视频状态失败,请稍后重试"),n.value=!f;return}}await Ct({id:e,status:D}),t.status=D,M.success(`职位已${f?"开启":"关闭"}`)}catch(D){console.error("修改状态失败:",D),M.error("修改状态失败"),n.value=!f}},Tt=()=>{s.value=!0},Sn=()=>{s.value=!1,M.success("招聘流程已更新")},Fn=()=>{s.value=!1},xt=(f,e)=>{f.type=="ai_video"&&(B.value=!1),f.type=="ai_chat"&&(re.value=!1),f.type=="ai_video"&&Ft({id:ke.value,enable_open_questions:!1}).then(D=>{D.code==2e3?M.success("删除成功"):M.error("删除失败")}),f.type=="psychological_problem"&&Ft({id:ke.value,enable_scoring_questions:!1}).then(D=>{D.code==2e3?M.success("删除成功"):M.error("删除失败")}),f.type=="common_sense"&&Ft({id:ke.value,enable_single_choice:!1,enable_multiple_choice:!1,enable_image_choice:!1,enable_fill_blank:!1}).then(D=>{D.code==2e3?M.success("删除成功"):M.error("删除失败")}),a.splice(e,1)},Bt=f=>({0:"未发布",1:"已发布",2:"已结束"})[f]||"未知状态",qt=f=>({0:"info",1:"success",2:"danger"})[f]||"info",ln=f=>({0:"全职",1:"兼职",2:"实习",3:"其他"})[f]||"未知",sn=(f,e)=>{A.value=f,R.value=!0;const D=e.currentTarget,x=D.closest(".process-dialog-content");if(x){const P=D.getBoundingClientRect(),L=x.getBoundingClientRect(),ce=P.bottom-L.top+5,X=P.left-L.left;U.top=`${ce}px`,U.left=`${X}px`}e.stopPropagation()},dn=async(f,e)=>{if(f==="ai_video"&&Ft({id:ke.value,enable_open_questions:!0}).then(P=>{P.code==2e3?(a[2].visible=!0,R.value=!1):M.error("更新配置失败")}),f==="common_sense"&&Ft({id:ke.value,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_fill_blank:!0}).then(P=>{P.code==2e3?(a[3].visible=!0,console.log("recruitmentProcess",a),R.value=!1):M.error("更新配置失败")}),f==="psychological_problem"&&Ft({id:ke.value,enable_scoring_questions:!0}).then(P=>{P.code==2e3?(a[4].visible=!0,R.value=!1):M.error("更新配置失败")}),f==="post_render_questions"){il.value=!0,R.value=!1;return}if(a.find(P=>!!(P.type&&P.type===f||P.name===e))){M.warning(`"${e}"步骤已存在,不能重复添加`),R.value=!1;return}if(f==="ai_chat"){re.value=!0,R.value=!1;return}if(f==="video_presentation"){V(),R.value=!1;return}if(f==="data_collection"){const P=await Un(o.query.id);P&&P.data?(ke.value=P.data.id,ga($,P.data.profile_fields_config),we.value=!0,R.value=!1):(we.value=!0,R.value=!1);return}if(f==="resume_collection"){Re(),R.value=!1;return}if(f==="code_test"){Va(),R.value=!1;return}if(f==="typing_test"){Gn.value=!0,R.value=!1;return}if(f==="candidate_questions"){Vn.value=!0,R.value=!1;return}const x={id:Date.now(),name:e,description:e,active:!0,type:f,visible:!0};console.log("newStep",x),a.splice(A.value,0,x),R.value=!1},un=async()=>{if(G.value<3){if(G.value===1){const f=Rt.value.filter(e=>e.selected);if(f.length===0){M.warning("请至少选择一个胜任力考核维度");return}try{_.value=f.map(e=>({label:e.name,value:e.name.toLowerCase().replace(/\s+/g,"_"),id:e.id,description:e.description||"",level:"CC",expanded:!1,isNew:!0}))}catch(e){console.error("处理胜任力标签失败:",e),M.error("处理胜任力标签失败");return}}if(G.value===2){if(J.value.length===0){M.warning("请至少添加一个面试题目");return}try{await Er()}catch(f){console.error("保存题目失败:",f),M.error("保存题目失败");return}}if(G.value===3){const f=xr();if(!f.isValid){f.messages.forEach(D=>{M.warning(D)});return}const e=Ar();console.log("完整的面试配置:",e)}G.value++}else _t()},cn=()=>{G.value>1&&G.value--},_t=async()=>{var P;if(!mt.value||!mt.value.id){M.warning("请选择面试官形象");return}const f={id:mt.value.id,name:mt.value.name,avatar_url:mt.value.avatar_url||mt.value.image},e=oi(),D={enableScoreQuestions:ct.enableScoreQuestions,enableColorBlindQuestions:ct.enableColorBlindQuestions};try{if(await Ct({id:o.query.id,status:0}),t.status=0,n.value=!1,ke.value==0){const L=await di({position_id:o.query.id,digital_human_id:mt.value.id});if(L.code==2e3){M.success("配置保存成功");try{const ce={config_id:((P=L.data)==null?void 0:P.id)||L.data};e.beforeStartText&&e.beforeStartText.trim()!==""?(await ci(ce),console.log("开场白生成成功"),B.value=!1,G.value=1,await new Promise(me=>setTimeout(me,4e3))):console.log("无开场白配置,跳过开场白生成"),await na(ce),M.success("视频开始生成")}catch(ce){console.error("获取开场白和视频失败:",ce),M.warning("视频生成中,请稍后")}}else M.error("配置保存失败")}else if((await Ft({id:ke.value,digital_human_id:mt.value.id})).code==2e3){M.success("配置保存成功");try{const ce={config_id:ke.value};console.log("开始生成开场白..."),await ci(ce),console.log("开场白生成成功"),B.value=!1,G.value=1,console.log("等待4秒后开始生成视频..."),await Tr(4e3),console.log("开始生成视频..."),await na(ce),console.log("视频生成请求已发送"),M.success("视频开始生成")}catch(ce){console.error("获取开场白和视频失败:",ce),M.warning("视频生成中,请稍后")}}else M.error("配置保存失败")}catch(L){console.error("更新职位状态失败:",L),M.error("更新职位状态失败");return}console.log("保存时选中的面试官:",f),console.log("保存时的面试设置:",e),console.log("保存时的题目设置:",D);const x={id:Date.now(),name:"AI考察",description:`已选择${_.value.length}项能力测评`,active:!0,type:"ai_video",abilities:_.value.map(L=>L.value),interviewer:f,settings:e};a.splice(A.value,0,x),B.value=!1,G.value=1,M.success("AI考察步骤已添加")},w=()=>{B.value=!1,G.value=1},C=f=>{},V=()=>{Y.value=!0},F=()=>{Y.value=!1,Object.assign(q,{title:"",videoFile:null,description:"",broadcastType:"required"})},ee=()=>{const f={id:Date.now(),name:q.title||"视频宣讲",description:q.description||"视频宣讲",active:!0,type:"video_presentation",config:{...q}};a.splice(A.value,0,f),Y.value=!1,M.success("视频宣讲步骤已添加"),F()},le=()=>{const f={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};a.splice(A.value,0,f),re.value=!1,M.success("AI实时对话步骤已添加")},ve=()=>{re.value=!1},xe=()=>{if(!Pe.title.trim()){M.warning("请输入环节名称");return}if(Pe.duration<=0){M.warning("提问时长必须大于0分钟");return}if(Pe.maxQuestions<=0){M.warning("最多提问数量必须大于0");return}if(lo.value>=0){const f=a[lo.value];f.name=Pe.title,f.description=`时长${Pe.duration}分钟,最多${Pe.maxQuestions}个问题`,f.config={...Pe},M.success("候选人提问环节已更新")}else{const f={id:Date.now(),name:Pe.title,description:`时长${Pe.duration}分钟,最多${Pe.maxQuestions}个问题`,active:!0,type:"candidate_questions",config:{...Pe}};a.splice(A.value,0,f),M.success("候选人提问环节已添加")}Vn.value=!1,se()},Le=()=>{Vn.value=!1,se()},se=()=>{lo.value=-1,Object.assign(Pe,{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]})},J=z([]),ae=li(()=>J.value.reduce((f,e)=>{switch(e.question_form){case 0:return f+60;case 1:return f+30;case 2:return f+30;default:return f+30}},0)),he=li(()=>{const f=ae.value;if(f<60)return`${f}秒`;const e=Math.floor(f/60),D=f%60;return D>0?`${e}分${D}秒`:`${e}分钟`}),Se=()=>{Q.value=!0},ot=()=>{Mo.value={question:"",question_form:null,competency_tags:[],position_types:[],category_id:null,tags:[],recommended_duration:60,status:1,is_required_correct:!1,is_system:!1,sort:1,options:[],scoring_reference:"",blank_answer_template:[]},Ni.value=!1,oo.value=!0},Ln=async f=>{try{const e=await $l({...f,tenant_id:1});if(e&&e.code===2e3){if(M.success("题目创建成功"),console.log(e),e.data){const D={id:e.data.id||e.data,title:f.question,question_form:f.question_form,question_form_name:En(f.question_form),scoring_reference:f.scoring_reference||"",competency_tags:f.competency_tags||[],options:f.options||[],enable_follow_up:!1,maxAnswers:1,weight:100,source:"custom_selected"};J.value.push(D)}oo.value=!1}else M.error("题目创建失败,请重试")}catch(e){console.error("创建题目失败:",e),M.error("题目创建失败,请重试")}},Co=()=>{oo.value=!1,Mo.value={}},En=f=>({0:"开放问题",1:"单选题",2:"多选题",3:"色盲题",4:"得分题",5:"判断题",6:"填空题"})[f]||"未知类型",Vi=f=>{const e=J.value[f];console.log(e),Object.assign(T,e),Q.value=!0,nl()},Ri=f=>{Xi.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{J.value.splice(f,1),M.success("删除成功")})},Da=()=>{we.value=!1,Object.assign(Ye,{isRequired:!1,questions:[]})};Ol(()=>{kt(),Ki(),wr(),Pa()}),Tl(()=>{Bi()});const Pa=async()=>{try{const f=o.query.id;if(f){const e=await Un(f);e&&e.data&&(e.data.enable_psychological_test!==void 0&&(ct.enableScoreQuestions=e.data.enable_psychological_test),e.data.enable_color_blind_test!==void 0&&(ct.enableColorBlindQuestions=e.data.enable_color_blind_test),a[2].visible=e.data.question_form_switches.enable_open_questions,a[3].visible=e.data.question_form_switches.enable_single_choice||e.data.question_form_switches.enable_multiple_choice||e.data.question_form_switches.enable_image_choice||e.data.question_form_switches.enable_fill_blank,a[4].visible=e.data.question_form_switches.enable_scoring_questions)}}catch(f){console.error("初始化配置状态失败:",f)}},Qn=z(!1),it=_e({title:"代码笔试",autoJudge:!0,selectedPaper:null}),Va=()=>{Qn.value=!0},Ui=()=>{Qn.value=!1,Object.assign(it,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},Ra=()=>{if(!it.selectedPaper){M.warning("请添加考试试卷");return}const f={id:Date.now(),name:it.title,description:`${it.selectedPaper.title}`,active:!0,type:"code_test",config:{...it}};a.splice(A.value,0,f),Qn.value=!1,M.success("代码笔试步骤已添加"),Ui()},Ua=()=>{it.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},Ma=()=>{M.info("查看试卷功能开发中")},Ka=()=>{M.info("更换试卷功能开发中")},ka=()=>{it.selectedPaper=null},Gn=z(!1),tt=_e({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),Mi=()=>{Gn.value=!1,Object.assign(tt,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},Ba=()=>{const f={id:Date.now(),name:tt.title,description:`打字测试 ${tt.duration}分钟`,active:!0,type:"typing_test",config:{...tt}};a.splice(A.value,0,f),Gn.value=!1,M.success("打字测试步骤已添加"),Mi()},Ao=z(!1),xn=z(""),Na=()=>{xn.value=t.title,Ao.value=!0},ja=()=>{Ao.value=!1},Fa=async()=>{if(!xn.value.trim()){M.warning("职位名称不能为空");return}try{const f=o.query.id;await Ct({id:f,title:xn.value.trim()}),t.title=xn.value.trim(),Ao.value=!1,M.success("职位名称已更新")}catch(f){console.error("更新职位名称失败:",f),M.error("更新职位名称失败")}},wo=z(!1),zt=z(""),La=()=>{if(!t.location)zt.value="";else if(Array.isArray(t.location))zt.value=t.location;else if(typeof t.location=="string")try{const e=t.location.replace(/[\[\]']/g,"").split(",").map(L=>L.trim()),D=E.find(L=>L.name===e[0]);let x,P;D&&D.children&&(x=D.children.find(L=>L.name===e[1]),x&&x.children&&(P=x.children.find(L=>L.name===e[2]))),zt.value=[D==null?void 0:D.code,x==null?void 0:x.code,P==null?void 0:P.code].filter(Boolean)}catch(f){console.error("解析地址失败:",f),zt.value=""}wo.value=!0},Qa=()=>{wo.value=!1},Ga=async()=>{try{const f=o.query.id,e=[];if(zt.value&&Array.isArray(zt.value)){const[D,x,P]=zt.value,L=E.find(me=>me.code===D);let ce,X;L&&(e.push(L.name),L.children&&(ce=L.children.find(me=>me.code===x),ce&&(e.push(ce.name),ce.children&&(X=ce.children.find(me=>me.code===P),X&&e.push(X.name)))))}await Ct({id:f,location:e}),t.location=e,wo.value=!1,M.success("工作地点已更新")}catch(f){console.error("更新工作地点失败:",f),M.error("更新工作地点失败")}},Oo=z(!1),zn=z(""),za=()=>{zn.value=t.salary_range||"",Oo.value=!0},$a=()=>{Oo.value=!1},Ja=async()=>{try{const f=o.query.id;await Ct({id:f,salary_range:zn.value.trim()}),t.salary_range=zn.value.trim(),Oo.value=!1,M.success("职位薪资已更新")}catch(f){console.error("更新职位薪资失败:",f),M.error("更新职位薪资失败")}},To=z(!1),$n=z(""),Wa=()=>{$n.value=t.work_experience_required||"",To.value=!0},Ha=()=>{To.value=!1},Ya=async()=>{try{const f=o.query.id;await Ct({id:f,work_experience_required:$n.value}),t.work_experience_required=$n.value,To.value=!1,M.success("工作经验已更新")}catch(f){console.error("更新工作经验失败:",f),M.error("更新工作经验失败")}},Do=z(!1),Jn=z(""),Xa=()=>{Jn.value=t.education_required||"",Do.value=!0},Za=()=>{Do.value=!1},qa=async()=>{try{const f=o.query.id;await Ct({id:f,education_required:Jn.value}),t.education_required=Jn.value,Do.value=!1,M.success("学历要求已更新")}catch(f){console.error("更新学历要求失败:",f),M.error("更新学历要求失败")}},Po=z(!1),Wn=z(""),_a=()=>{Wn.value=t.department||"",Po.value=!0},er=()=>{Po.value=!1},tr=async()=>{try{const f=o.query.id;await Ct({id:f,department:Wn.value.trim()}),t.department=Wn.value.trim(),Po.value=!1,M.success("所属部门已更新")}catch(f){console.error("更新所属部门失败:",f),M.error("更新所属部门失败")}},Vo=z(!1),Hn=z(""),nr=()=>{Hn.value=t.end_date||"",Vo.value=!0},or=()=>{Vo.value=!1},ir=async()=>{try{const f=o.query.id;await Ct({id:f,end_date:Hn.value}),t.end_date=Hn.value,Vo.value=!1,M.success("截止日期已更新")}catch(f){console.error("更新截止日期失败:",f),M.error("更新截止日期失败")}},Yn=z(!1),Xn=z(""),ar=()=>{Xn.value=t.requirements||"",Yn.value=!0},rr=()=>{Yn.value=!1},lr=async()=>{try{const f=o.query.id;await Ct({id:f,requirements:Xn.value}),t.requirements=Xn.value,Yn.value=!1,M.success("职位要求已更新")}catch(f){console.error("更新职位要求失败:",f),M.error("更新职位要求失败")}},Zn=z(!1),qn=z(""),sr=()=>{qn.value=t.description||"",Zn.value=!0},dr=()=>{Zn.value=!1},ur=async()=>{try{const f=o.query.id;await Ct({id:f,description:qn.value}),t.description=qn.value,Zn.value=!1,M.success("职位描述已更新")}catch(f){console.error("更新职位描述失败:",f),M.error("更新职位描述失败")}},In=z(!1),_n=z(0),cr=()=>{_n.value=t.job_type||0,In.value=!0},fr=()=>{In.value=!1},vr=async()=>{try{const f=o.query.id;await Ct({id:f,job_type:_n.value}),t.job_type=_n.value,In.value=!1,M.success("职位性质已更新")}catch(f){console.error("更新职位性质失败:",f),M.error("更新职位性质失败")}},Rt=z([]),Ro=z(!1),Cn=z([]),Ki=async()=>{try{const f=await Yl({page:1,pageSize:1e3});f&&f.data}catch(f){console.error("获取能力标签列表失败:",f),M.error("获取能力标签列表失败")}},pr=async()=>{var f;await Ki(),Cn.value=((f=t.competency_tags)==null?void 0:f.map(e=>e.id))||[],H.value.forEach(e=>{e.selected=Cn.value.includes(e.id)}),Ro.value=!0},mr=()=>{Ro.value=!1},gr=async()=>{try{const f=o.query.id;await Ct({id:f,competency_tags:Cn.value}),t.competency_tags=H.value.filter(e=>Cn.value.includes(e.id)).map(e=>({id:e.id,name:e.name})),Ro.value=!1,M.success("能力标签已更新")}catch(f){console.error("更新能力标签失败:",f),M.error("更新能力标签失败")}},hr=z(null),ke=z(0),Uo=async f=>{if(f.name==="资料收集"){const e=await Un(o.query.id);e&&e.data?(ke.value=e.data.id,ga($,e.data.profile_fields_config),we.value=!0,R.value=!1):(we.value=!0,R.value=!1);return}if(f.name==="AI考察"){if(f.action==="delete"){await ol();return}const e=await Un(o.query.id);Pn.value=!0,hr.value=f,B.value=!0,G.value=1;try{const D=await ta({position_id:o.query.id,page:1,limit:20});D&&D.data&&D.data.dataList&&(J.value=D.data.dataList.map(P=>(P.content=P.question,P.title=P.question,P.competency_tags=P.competency_tag_info,P.source="ai_generated",P)));const x=await ts({position_id:o.query.id,page:1,limit:50});if(console.log("existingTags",x),x&&x.data&&x.data.items.length>0)x.data.items.forEach(P=>{P.importance=1,P.selected=!1,t.latest_competency_snapshot&&Array.isArray(t.latest_competency_snapshot)&&(P.selected=t.latest_competency_snapshot.some(L=>L.id===P.id))}),Rt.value=x.data.items;else{const P=await oa({position_id:o.query.id});if(P&&P.data){P.data.forEach(L=>{L.selected=!1}),Rt.value=P.data;try{await es({position_id:o.query.id,tags:Rt.value}),M.success("胜任力标签保存成功")}catch(L){console.error("保存胜任力标签失败:",L),M.error("胜任力标签保存失败")}}}e&&e.data&&(ke.value=e.data.id)}catch(D){console.error("获取或生成能力标签失败:",D),M.error("获取或生成能力标签失败")}finally{Pn.value=!1}Object.keys(k).forEach(D=>{k[D]=!1})}f.name==="综合素质考察"&&Yt({page:1,limit:20}).then(e=>{e.data&&(rt.value=e.data.items,ft.page=e.data.page,ft.pageSize=e.data.limit,Jt.value=e.data.total,cl(),m.value=!0)}),f.name==="心理问题"&&Yt({page:1,limit:30,question_form:4}).then(e=>{e.data&&(lt.question_form=4,rt.value=e.data.items,ft.page=e.data.page,ft.pageSize=e.data.limit,Jt.value=e.data.total,pl(),wn.value=!0)})},en=z(""),An=z(""),yr=z(!1),br=async()=>{if(!en.value.trim()){M.warning("请输入维度名称");return}if(Rt.value.find(e=>e.name===en.value.trim())){M.warning("该维度名称已存在,请重新输入");return}try{const e=await os({name:en.value.trim(),description:An.value.trim(),importance:1,weight:0});if(!e.data)throw new Error("创建标签失败");const D=e.data.id;await is({tag_ids:[D],position_ids:[d.value]});const x={id:D,name:en.value.trim(),description:An.value.trim(),selected:!1,importance:1,weight:0,isCustom:!0};Rt.value.push(x),yr.value,en.value="",An.value="",console.log("添加新维度成功:",x),console.log("当前备选维度列表:",Rt.value)}catch(e){console.error("添加自定义维度失败:",e),M.error("添加自定义维度失败,请重试")}},at=_e({keepVideo:!1,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),ti=z([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),mt=z(ti.value[0]),ni=z(""),Sr=f=>{mt.value=f,console.log("选中的面试官信息:",{id:f.id,name:f.name,avatar_url:f.avatar_url||f.image}),ni.value=f.avatar_url,M.success(`已选择面试官:${f.name}`)},Er=async()=>{const f=J.value.filter(D=>D.source==="ai_generated"),e=J.value.filter(D=>D.source==="custom_selected");if(console.log("AI生成的题目:",f),console.log("自定义选择的题目:",e),f.length>0&&(await Zl({draft_ids:f.map(D=>D.id)}),console.log("AI生成的题目已保存到草稿")),e.length>0){const D={position_id:o.query.id,question_id:{question_id:e},duration:60,tenant_id:1};console.log("自定义选择的题目需要调用专门的接口处理");const x=await ui(D);x&&x.code===2e3?M.success("自定义选择的题目已保存"):M.error("自定义选择的题目保存失败")}},oi=()=>{const f={keepVideo:at.keepVideo,interruptionMode:at.interruptionMode,followUpStyle:at.followUpStyle,smartFollowUp:at.smartFollowUp};return console.log("当前面试设置:",f),f},eo=(f,e)=>{switch(console.log(`面试设置 ${f} 已更改为:`,e),f){case"keepVideo":console.log("回答视频保留设置:",e?"开启":"关闭");break;case"interruptionMode":console.log("中断后作答限制模式:",e==="previous"?"从上一问重新作答":"从当前问题作答");break;case"followUpStyle":console.log("追问风格:",e);break;case"smartFollowUp":console.log("智慧追问设置:",e?"开启":"关闭");break}},xr=()=>{const f=oi(),e={isValid:!0,messages:[]};return f.interruptionMode===""&&(e.isValid=!1,e.messages.push("请选择中断后作答限制模式")),e},Ir=f=>{c.value=!0,console.log("开始拖拽题目:",f)},Cr=f=>{c.value=!1,console.log("拖拽结束:",f),console.log("当前题目顺序:",J.value),M.success("题目顺序已更新")},Ar=()=>({interviewer:{id:mt.value.id,name:mt.value.name,avatar_url:mt.value.avatar_url||mt.value.image},settings:oi(),questionSettings:{enableScoreQuestions:ct.enableScoreQuestions,enableColorBlindQuestions:ct.enableColorBlindQuestions},abilities:_.value,questions:J.value,currentStep:G.value}),wr=async()=>{const f=await ql({page:1,pageSize:1e3});f&&f.data&&(ti.value=f.data)},ki=(f,e)=>{e?to.value.push({name:f.name,description:f.description||"暂无描述"}):to.value=to.value.filter(D=>D.name!==f.name)},Or=f=>{Xi.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=_.value[f];_.value.splice(f,1),to.value=to.value.filter(x=>x.name!==e.label);const D=Rt.value.find(x=>x.name===e.label);D&&(D.selected=!1),M.success("胜任力标签已删除")}).catch(()=>{})},to=z([]),Tr=f=>new Promise(e=>setTimeout(e,f));let $t=null;const Dr=async(f,e=300,D=2e3)=>{let x=0;$t={cancelled:!1};const P=$t;return new Promise((L,ce)=>{const X=async()=>{try{if(P.cancelled){console.log("轮询已被取消"),L(null);return}x++,console.log(`第${x}次轮询获取草稿列表...`);const me=await ta(f);if(P.cancelled){console.log("轮询已被取消"),L(null);return}if(me&&me.data&&me.data.dataList&&me.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),$t=null,L(me);return}if(x>=e){console.log("轮询达到最大次数,停止轮询"),$t=null,L(me);return}setTimeout(X,D)}catch(me){if(console.error(`第${x}次轮询失败:`,me),P.cancelled){console.log("轮询已被取消"),L(null);return}x<e?setTimeout(X,D):($t=null,ce(me))}};X()})},Bi=()=>{$t&&($t.cancelled=!0,$t=null,console.log("轮询已被手动取消"))},Pr=()=>{Bi(),ut.value=!1,M.info("已取消AI自动组题")},wn=z(!1),no=z(""),rt=z([]),Nt=z([]),oo=z(!1),Mo=z({}),Ni=z(!1),Vr=z(0),Jt=z(0),lt=_e({page:1,pageSize:10,keyword:"",question_form:null}),ft=_e({page:1,limit:20,keyword:"",question_form:null}),Rr=async()=>{try{const f={...lt,keyword:no.value,...lt.question_form!==null&&{question_form:lt.question_form}},e=await Yt(f);e&&e.data&&(rt.value=e.data.items,Vr.value=e.data.total)}catch(f){console.error("获取题目列表失败:",f),M.error("获取题目列表失败")}},Ko=()=>{lt.page=1,Rr()},Ur=f=>{Nt.value=f},ji=()=>{wn.value=!1,Nt.value=[],no.value=""},Mr=async()=>{if(Nt.value.length===0){M.warning("请至少选择一个题目");return}try{const f=Nt.value.map(D=>D.id);await ui({position_id:o.query.id,question_id:f,duration:60,tenant_id:"1"});const e=Nt.value.map(D=>({id:D.id,title:D.question||D.title,ability:D.ability||"未设置",content:D.content||D.question,target:D.target||"未设置",competency_tags:D.competency_tags||[],question_form_name:D.question_form_name,scoring_reference:D.scoring_reference,question_form:D.question_form,is_required_correct:D.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:D.options||[],source:"custom_selected"}));J.value.push(...e),wn.value=!1,Nt.value=[],no.value="",M.success("题目添加成功")}catch(f){console.error("添加题目失败:",f),wn.value=!1,f.code===4e3?M.warning("该题目已绑定,请选择其他题目"):M.error("添加题目失败,请重试")}},$=_e({name:{visible:!0,label:"姓名",required:!0},gender:{visible:!0,label:"性别",required:!0},three_period:{visible:!0,label:"是否为三期",required:!0},phone:{visible:!0,label:"手机号",required:!0},id_card:{visible:!0,label:"身份证号",required:!0},ethnicity:{visible:!0,label:"民族",required:!0},height:{visible:!0,label:"身高(cm)",required:!1},weight:{visible:!0,label:"体重(kg)",required:!1},current_address:{visible:!0,label:"现居住地址",required:!0},household_location:{visible:!0,label:"户口所在地",required:!1},marital_status:{visible:!0,label:"婚育状况",required:!1},expected_salary:{visible:!0,label:"期望薪资(元/月)",required:!1},family_member:{visible:!0,label:"家庭成员",fields:{relation:{visible:!0,label:"称谓",required:!0},name:{visible:!0,label:"姓名",required:!0},workplace_address:{visible:!0,label:"工作单位/家庭地址",required:!1},position:{visible:!0,label:"职务",required:!1},phone:{visible:!0,label:"联系电话",required:!0},is_emergency_contact:{visible:!0,label:"是否为紧急联系人",required:!1}}},education:{visible:!0,label:"教育经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},school_name:{visible:!0,label:"学校名称",required:!0},major:{visible:!0,label:"专业",required:!0},degree:{visible:!0,label:"学历",required:!0}}},require_professional_skills:{visible:!0,label:"专业技能",required:!0},training_fields_config:{visible:!0,label:"受过的培训",required:!0},work_experience:{visible:!0,label:"工作经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},company_name:{visible:!0,label:"单位名称",required:!0},employee_count:{visible:!0,label:"单位人数",required:!0},department:{visible:!0,label:"任职部门",required:!0},position:{visible:!0,label:"担任职务",required:!0},monthly_salary:{visible:!0,label:"月总收入",required:!0},supervisor:{visible:!0,label:"直接领导",required:!0},supervisor_phone:{visible:!0,label:"领导电话",required:!0}}},question_form_switches:{enable_open_questions:!0,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_scoring_questions:!0,enable_follow_up_questions:!0,enable_fill_blank:!0}}),Kr=async()=>{try{const f={position_id:o.query.id,require_resume_upload:!0,resume_file_types:["pdf","docx","doc"],max_resume_size_mb:10,digital_human_opening_speech:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",require_basic_info:!0,profile_fields_config:{name:{required:$.name.required,visible:$.name.visible},phone:{required:$.phone.required,visible:$.phone.visible},id_card:{required:$.id_card.required,visible:$.id_card.visible},gender:{required:$.gender.required,visible:$.gender.visible},birth_date:{required:!1,visible:!0},political_status:{required:!1,visible:!0},ethnicity:{required:$.ethnicity.required,visible:$.ethnicity.visible},height:{required:$.height.required,visible:$.height.visible},weight:{required:$.weight.required,visible:$.weight.visible},marital_status:{required:$.marital_status.required,visible:$.marital_status.visible}},require_education_info:$.education.visible,education_fields_config:{school_name:{required:$.education.fields.school_name.required,visible:$.education.fields.school_name.visible},major:{required:$.education.fields.major.required,visible:$.education.fields.major.visible},degree:{required:$.education.fields.degree.required,visible:$.education.fields.degree.visible},start_date:{required:$.education.fields.start_time.required,visible:$.education.fields.start_time.visible},end_date:{required:$.education.fields.end_time.required,visible:$.education.fields.end_time.visible}},require_work_experience:$.work_experience.visible,work_experience_fields_config:{company_name:{required:$.work_experience.fields.company_name.required,visible:$.work_experience.fields.company_name.visible},position:{required:$.work_experience.fields.position.required,visible:$.work_experience.fields.position.visible},department:{required:$.work_experience.fields.department.required,visible:$.work_experience.fields.department.visible},start_date:{required:$.work_experience.fields.start_time.required,visible:$.work_experience.fields.start_time.visible},end_date:{required:$.work_experience.fields.end_time.required,visible:$.work_experience.fields.end_time.visible},job_description:{required:!0,visible:!0},achievements:{required:!1,visible:!0},resignation_reason:{required:!1,visible:!0}},require_family_info:$.family_member.visible,family_fields_config:{relation:{required:$.family_member.fields.relation.required,visible:$.family_member.fields.relation.visible},name:{required:$.family_member.fields.name.required,visible:$.family_member.fields.name.visible},workplace:{required:$.family_member.fields.workplace_address.required,visible:$.family_member.fields.workplace_address.visible},position:{required:$.family_member.fields.position.required,visible:$.family_member.fields.position.visible},phone:{required:$.family_member.fields.phone.required,visible:$.family_member.fields.phone.visible}},require_training_info:$.training_fields_config.visible,require_professional_skills:$.require_professional_skills.visible,enable_posture_check:!0,posture_check_config:{required_photos:["front","side","back"],instructions:"请按照提示上传您的全身照片,确保光线充足,背景简洁"},interview_duration_minutes:45,enable_video_recording:!0,enable_face_recognition:!0,scoring_method:"hybrid",auto_analysis_enabled:!0,custom_welcome_message:"欢迎参加咖啡师岗位的面试,请放松心情,准备好开始面试吧!",custom_instructions:"本次面试共有10个问题,每个问题有60秒的回答时间,请简洁明了地表达您的观点。",notification_config:{send_email:!0,send_sms:!1,notify_hr:!0,completion_message:"感谢您完成面试,我们将在3个工作日内给您回复。"},is_active:!0,is_template:!1};ke.value==0||(f.id=ke.value),ke.value==0?(await di(f)).code==2e3?(M.success("配置保存成功"),we.value=!1,R.value=!1):M.error("配置保存失败"):(await Ft(f)).code==2e3?(M.success("配置保存成功"),we.value=!1,R.value=!1):M.error("配置保存失败")}catch(f){console.error("保存配置失败:",f),M.error("配置保存失败")}},kr=()=>({name:$.name,gender:$.gender,three_period:$.three_period,phone:$.phone,id_card:$.id_card,ethnicity:$.ethnicity,height:$.height,weight:$.weight,current_address:$.current_address,household_location:$.household_location,marital_status:$.marital_status,expected_salary:$.expected_salary}),Br=()=>({skills:$.require_professional_skills,training:$.training_fields_config}),io=z(!1),Be=_e({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),On=z(!1),ao=z(!1),ro=z(!1),tn=z(""),Tn=z(""),Dn=z(""),Nr=()=>{io.value=!1,On.value=!1,ao.value=!1,ro.value=!1,Object.assign(Be,{faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我想咨询其间的面试,欢迎来到大面试",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部流程拍摄,面试者同意可为今后资讯调研"})},jr=()=>{console.log("保存面试设置:",Be),M.success("面试设置已保存"),io.value=!1},Fr=()=>{Un(o.query.id).then(f=>{io.value=!0,ke.value=f.data.id,Be.beforeStartText=f.data.digital_human_opening_speech})},Lr=()=>{tn.value=Be.beforeStartText,On.value=!0},Qr=()=>{On.value=!1,tn.value=""},Gr=async()=>{var f;if(!tn.value.trim()){M.warning("开始前提示内容不能为空");return}Be.beforeStartText=tn.value.trim();try{let e;if(console.log(ke.value),ke.value==0)e=await di({position_id:o.query.id,digital_human_opening_speech:tn.value.trim()}),e.code===2e3?(ke.value=((f=e.data)==null?void 0:f.id)||e.data,M.success("开始前提示内容已创建"),On.value=!1):M.error("开始前提示内容创建失败");else if(e=await Ft({id:ke.value,digital_human_opening_speech:tn.value.trim()}),e.code===2e3){M.success("开始前提示内容已更新"),On.value=!1;try{const D={config_id:ke.value};await ci(D),console.log("开场白生成成功")}catch(D){console.error("获取开场白失败:",D),M.warning("开场白生成中,请稍后")}}else M.error("开始前提示内容更新失败")}catch(e){console.error("保存开始前提示内容失败:",e),M.error("保存失败,请重试")}},zr=()=>{Tn.value=Be.afterStartText,ao.value=!0},$r=()=>{ao.value=!1,Tn.value=""},Jr=()=>{if(!Tn.value.trim()){M.warning("开始后提醒内容不能为空");return}Be.afterStartText=Tn.value.trim(),ao.value=!1,M.success("开始后提醒内容已更新")},Wr=()=>{Dn.value=Be.disclaimerText,ro.value=!0},Hr=()=>{ro.value=!1,Dn.value=""},Yr=()=>{if(!Dn.value.trim()){M.warning("免责声明内容不能为空");return}Be.disclaimerText=Dn.value.trim(),ro.value=!1,M.success("免责声明内容已更新")},fn=_e({openQuestionsCount:5,choiceQuestionsCount:10}),Fi=()=>{console.log("题目数量已更新:",fn)},Li=async()=>{try{ut.value=!0;const f=_.value.map(x=>x.id);if(f.length===0){M.warning("请先选择能力标签");return}const e={position_id:o.query.id,competency_tag_ids:f,open_questions_count:fn.openQuestionsCount,choice_questions_count:fn.choiceQuestionsCount,auto_save:!0,tenant_id:1},D=await Xl(e);if(D&&D.data){const x=await Dr({tenant_id:1,page:1,limit:30,position_id:o.query.id});if(console.log(x),x===null){console.log("轮询被取消,停止处理");return}if(x&&x.data&&x.data.dataList){const P=x.data.dataList.map(L=>({id:L.id||Date.now(),title:L.question||L.title,ability:L.ability||"未设置",content:L.content||L.question,target:L.target||"未设置",competency_tags:L.competency_tag_info||[],question_form_name:L.question_form_name,scoring_reference:L.scoring_reference,question_form:L.question_form,is_required_correct:L.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:L.options||[],source:"ai_generated"}));J.value=P,M.success(`已成功生成${P.length}个面试题目`)}else M.warning("AI生成题目中,请稍后再试")}}catch(f){console.error("AI自动组题失败:",f),M.error("AI自动组题失败,请重试")}finally{ut.value=!1}},Xr=f=>{if(T.competency_tags=[],f.length>0){const e=Math.floor(100/f.length),D=100%f.length;T.competency_tags=f.map((x,P)=>{const L=H.value.find(ce=>ce.id===x);return{id:x,name:L?L.name:`标签${x}`,weight:e+(P<D?1:0)}})}},Zr=()=>T.competency_tags.length===0?(M.warning("请至少选择一个胜任力标签"),!1):T.weight<=0||T.weight>100?(M.warning("权重必须在1-100之间"),!1):!0,qr=f=>{switch(T.type=f,f){case"open":T.suggestedDuration=120;break;case"single":case"multiple":T.suggestedDuration=60;break;case"fill":T.suggestedDuration=30;break;case"self":T.suggestedDuration=180;break;default:T.suggestedDuration=60}},Pn=z(!1),Vn=z(!1),lo=z(-1),Pe=_e({title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}),_r=(f,e)=>{lo.value=e,f.config?Object.assign(Pe,f.config):(Pe.title=f.name,Pe.description=f.description||"候选人可以向面试官提问关于公司、职位或团队的问题",Pe.duration=5,Pe.maxQuestions=3,Pe.isRequired=f.active,Pe.allowSkip=!1,Pe.guidelines=["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]),Vn.value=!0},el=(f,e)=>{switch(f.type){case"ai_video":Uo(f);break;case"candidate_questions":_r(f,e);break;case"data_collection":Uo(f);break;case"resume_collection":Uo(f);break;default:Uo(f);break}},tl=(f,e)=>{(e===null||e<0)&&(e=0),e>100&&(e=100);const D=T.competency_tags;D[f].weight;const x=Math.round(e);if(D[f].weight=x,D.length===1){D[0].weight=100;return}const P=D.filter((ce,X)=>X!==f),L=P.reduce((ce,X)=>ce+X.weight,0);if(L===0){const ce=100-x,X=Math.floor(ce/P.length),me=ce%P.length;P.forEach((yt,vn)=>{const bt=D.findIndex(Ne=>Ne.id===yt.id);D[bt].weight=X+(vn<me?1:0)})}else{const ce=100-x;if(ce>0){P.forEach(me=>{const yt=D.findIndex(bt=>bt.id===me.id),vn=me.weight/L;D[yt].weight=Math.round(ce*vn)});const X=ii();if(X!==100){const me=100-X,yt=P.reduce((bt,Ne)=>Ne.weight>bt.weight?Ne:bt),vn=D.findIndex(bt=>bt.id===yt.id);D[vn].weight+=me}}else P.forEach(X=>{const me=D.findIndex(yt=>yt.id===X.id);D[me].weight=0})}},ii=()=>T.competency_tags.reduce((e,D)=>e+(D.weight||0),0),nl=()=>{const f=T.competency_tags;if(f.length===0)return;const e=Math.floor(100/f.length),D=100%f.length;f.forEach((x,P)=>{x.weight=e+(P<D?1:0)})},Qi=li({get:()=>ue(T.competency_tags),set:f=>{T.competency_tags=f,Xr(f)}}),ol=async()=>{try{const f=await ns({position_id:o.query.id,tenant_id:1,is_ai_generated:!0});f&&f.data&&f.data.length>0&&(await _l({position_id:o.query.id,question_id:f.data.map(e=>e.id),tenant_id:1}),ke.value>0&&await Ft({id:ke.value,enable_ai_questions:!1}),M.success("AI考察问题已删除"))}catch(f){console.error("删除AI考察问题失败:",f),M.error("删除AI考察问题失败")}};Dl(()=>$.question_form_switches.enable_open_questions,f=>{f?a.forEach(e=>{e.type==="ai_interview"&&(e.visible=!0)}):a.forEach(e=>{e.type==="ai_interview"&&(e.visible=!1)})},{immediate:!0}),z(!1),z(!1);const il=z(!1),ko=z(!1),nn=z({duration:5,detectionItems:["face","pose"],promptText:"请按照提示完成相应的动作,系统将自动进行检测。"}),al=()=>{ko.value=!1},rl=async()=>{try{await saveProcessConfig({position_id:o.params.id,process_type:"body_detection",config:nn.value}),M.success("配置保存成功"),ko.value=!1}catch(f){console.error("保存肢体检测配置失败:",f),M.error("配置保存失败")}},Gi=z([]),ll=z(),sl=f=>{console.log(f);const{firstLevel:e,secondLevel:D,currentNode:x}=f;D?Yt({page:1,limit:20,question_tags:D.id.replace("tag_",""),question_form:lt.question_form}).then(P=>{P.data&&(rt.value=P.data.items,ft.page=P.data.page,ft.pageSize=P.data.limit,Jt.value=P.data.total)}):e&&Yt({page:1,limit:20,question_category:e.id.replace("category_",""),question_form:lt.question_form}).then(P=>{P.data&&(rt.value=P.data.items,ft.page=P.data.page,ft.pageSize=P.data.limit,Jt.value=P.data.total)})},dl=f=>{console.log(f)},ul=f=>{console.log(f)},cl=()=>{Zi({}).then(f=>{console.log("ret",f),f.data,qi({}).then(e=>{console.log("res",e);const D=e.data.items.filter(x=>!["技术能力","服务意识","职业素质","基本常识","色盲检测","内容铺垫"].includes(x.name));_i({}).then(x=>{console.log("res",x);const P=x.data.items,L=[...D.map(ce=>({id:`category_${ce.id}`,title:ce.name,children:P.filter(X=>X.category_id===ce.id).map(X=>({id:`tag_${X.id}`,title:X.name,chinese_explanation:X.chinese_explanation||""}))}))];Gi.value=L})})})},zi=z([]),fl={children:"children",label:"title"},vl=async f=>{try{if(f.id.startsWith("category_")){const e=f.id.replace("category_",""),D=await Yt({page:1,limit:1e3,question_category:e,question_form:lt.question_form});if(D&&D.data){rt.value=D.data.items,ft.page=D.data.page,ft.pageSize=D.data.limit,Jt.value=D.data.total;const x=document.querySelector(".el-table__header-wrapper");if(x){const P=x.querySelector(".el-checkbox");P&&P.__vueParentComponent.emit("change",!0)}Nt.value=D.data.items}}else if(f.id.startsWith("tag_")){const e=f.id.replace("tag_",""),D=await Yt({page:1,limit:1e3,question_tags:e,question_form:lt.question_form});if(D&&D.data){rt.value=D.data.items,ft.page=D.data.page,ft.pageSize=D.data.limit,Jt.value=D.data.total;const x=document.querySelector(".el-table__header-wrapper");if(x){const P=x.querySelector(".el-checkbox");P&&P.__vueParentComponent.emit("change",!0)}Nt.value=D.data.items}}}catch(e){console.error("获取题目列表失败:",e),M.error("获取题目列表失败")}},pl=()=>{Zi({}).then(f=>{console.log("ret",f),f.data,qi({}).then(e=>{console.log("res",e);const D=e.data.items.filter(x=>!["技术能力","服务意识","职业素质","基本常识","色盲检测","内容铺垫","红线题","健康情况","综合素质题"].includes(x.name));_i({}).then(x=>{console.log("res",x);const P=x.data.items,L=[...D.map(ce=>({id:`category_${ce.id}`,title:ce.name,children:P.filter(X=>X.category_id===ce.id).map(X=>({id:`tag_${X.id}`,title:X.name,chinese_explanation:X.chinese_explanation||""}))}))];zi.value=L})})})};return(f,e)=>{const D=Oe("page-header"),x=Oe("el-button"),P=Oe("el-icon"),L=Oe("el-input"),ce=Oe("el-cascader"),X=Oe("el-option"),me=Oe("el-select"),yt=Oe("el-tag"),vn=Oe("el-date-picker"),bt=Oe("el-card"),Ne=Oe("el-switch"),Dt=Oe("el-dialog"),Wt=Oe("el-checkbox"),ml=Oe("Refresh"),pn=Oe("el-input-number"),so=Oe("el-radio"),$i=Oe("el-upload"),Rn=Oe("el-tooltip"),gl=Oe("Folder"),hl=Oe("el-tree"),jt=Oe("el-col"),Ht=Oe("el-row"),yl=Oe("el-radio-group"),ai=Oe("el-table-column"),bl=Oe("el-table"),Sl=Oe("el-pagination"),ri=Oe("el-form-item"),El=Oe("el-checkbox-group"),xl=Oe("el-form"),Ji=Pl("loading");return j(),Z("div",Gs,[l("div",zs,[v(D,{title:"测试",onBack:Ze}),l("div",$s,[v(x,{type:"primary",onClick:qe},{default:y(()=>e[92]||(e[92]=[K("保存")])),_:1}),v(x,{onClick:Gt},{default:y(()=>e[93]||(e[93]=[K("分享职位")])),_:1})])]),l("div",Js,[v(bt,{class:"detail-card"},{default:y(()=>[e[125]||(e[125]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位详情")],-1)),l("div",Ws,[e[96]||(e[96]=l("div",{class:"detail-label"},"职位名称",-1)),Ao.value?(j(),Z("div",Ys,[v(L,{modelValue:xn.value,"onUpdate:modelValue":e[0]||(e[0]=p=>xn.value=p),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),l("div",Xs,[v(x,{size:"small",onClick:ja},{default:y(()=>e[94]||(e[94]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Fa},{default:y(()=>e[95]||(e[95]=[K("保存")])),_:1})])])):(j(),Z("div",Hs,[K(ie(t.title)+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:Na},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",Zs,[e[99]||(e[99]=l("div",{class:"detail-label"},"工作地点",-1)),wo.value?(j(),Z("div",_s,[v(ce,{modelValue:zt.value,"onUpdate:modelValue":e[1]||(e[1]=p=>zt.value=p),options:ye(E),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:I},null,8,["modelValue","options"]),l("div",ed,[v(x,{size:"small",onClick:Qa},{default:y(()=>e[97]||(e[97]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Ga},{default:y(()=>e[98]||(e[98]=[K("保存")])),_:1})])])):(j(),Z("div",qs,[K(ie((()=>{if(!t.location)return"暂无";if(Array.isArray(t.location))return t.location.join(",");if(typeof t.location=="string")try{return t.location.replace(/[\[\]']/g,"").split(",").map(ne=>ne.trim()).join(",")}catch{return t.location}return t.location})())+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:La},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",td,[e[102]||(e[102]=l("div",{class:"detail-label"},"职位薪资",-1)),Oo.value?(j(),Z("div",od,[v(L,{modelValue:zn.value,"onUpdate:modelValue":e[2]||(e[2]=p=>zn.value=p),placeholder:"请输入职位薪资",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",id,[v(x,{size:"small",onClick:$a},{default:y(()=>e[100]||(e[100]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Ja},{default:y(()=>e[101]||(e[101]=[K("保存")])),_:1})])])):(j(),Z("div",nd,[K(ie(t.salary_range||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:za},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",ad,[e[105]||(e[105]=l("div",{class:"detail-label"},"工作经验",-1)),To.value?(j(),Z("div",ld,[v(me,{modelValue:$n.value,"onUpdate:modelValue":e[3]||(e[3]=p=>$n.value=p),placeholder:"请选择工作经验",style:{width:"100%"}},{default:y(()=>[v(X,{label:"不限",value:"不限"}),v(X,{label:"应届毕业生",value:"应届毕业生"}),v(X,{label:"1年以下",value:"1年以下"}),v(X,{label:"1-3年",value:"1-3年"}),v(X,{label:"3-5年",value:"3-5年"}),v(X,{label:"5-10年",value:"5-10年"}),v(X,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),l("div",sd,[v(x,{size:"small",onClick:Ha},{default:y(()=>e[103]||(e[103]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Ya},{default:y(()=>e[104]||(e[104]=[K("保存")])),_:1})])])):(j(),Z("div",rd,[K(ie(t.work_experience_required||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:Wa},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",dd,[e[108]||(e[108]=l("div",{class:"detail-label"},"学历要求",-1)),Do.value?(j(),Z("div",cd,[v(me,{modelValue:Jn.value,"onUpdate:modelValue":e[4]||(e[4]=p=>Jn.value=p),placeholder:"请选择学历要求",style:{width:"100%"}},{default:y(()=>[v(X,{label:"不限",value:"不限"}),v(X,{label:"高中",value:"高中"}),v(X,{label:"大专",value:"大专"}),v(X,{label:"本科",value:"本科"}),v(X,{label:"硕士",value:"硕士"}),v(X,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),l("div",fd,[v(x,{size:"small",onClick:Za},{default:y(()=>e[106]||(e[106]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:qa},{default:y(()=>e[107]||(e[107]=[K("保存")])),_:1})])])):(j(),Z("div",ud,[K(ie(t.education_required||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:Xa},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",vd,[e[111]||(e[111]=l("div",{class:"detail-label"},"所属部门",-1)),Po.value?(j(),Z("div",md,[v(L,{modelValue:Wn.value,"onUpdate:modelValue":e[5]||(e[5]=p=>Wn.value=p),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",gd,[v(x,{size:"small",onClick:er},{default:y(()=>e[109]||(e[109]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:tr},{default:y(()=>e[110]||(e[110]=[K("保存")])),_:1})])])):(j(),Z("div",pd,[K(ie(t.department||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:_a},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",hd,[e[112]||(e[112]=l("div",{class:"detail-label"},"职位状态",-1)),l("div",yd,[v(yt,{type:qt(t.status)},{default:y(()=>[K(ie(Bt(t.status)),1)]),_:1},8,["type"])])]),l("div",bd,[e[115]||(e[115]=l("div",{class:"detail-label"},"截止日期",-1)),Vo.value?(j(),Z("div",Ed,[v(vn,{modelValue:Hn.value,"onUpdate:modelValue":e[6]||(e[6]=p=>Hn.value=p),type:"date",placeholder:"请选择截止日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"]),l("div",xd,[v(x,{size:"small",onClick:or},{default:y(()=>e[113]||(e[113]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:ir},{default:y(()=>e[114]||(e[114]=[K("保存")])),_:1})])])):(j(),Z("div",Sd,[K(ie(t.end_date||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:nr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))]),l("div",Id,[e[118]||(e[118]=l("div",{class:"detail-label"},"职位要求",-1)),Yn.value?Ue("",!0):(j(),Z("div",{key:0,class:"detail-value html-content",innerHTML:t.requirements},null,8,Cd)),Yn.value?(j(),Z("div",Ad,[v(L,{modelValue:Xn.value,"onUpdate:modelValue":e[7]||(e[7]=p=>Xn.value=p),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",wd,[v(x,{size:"small",onClick:rr},{default:y(()=>e[116]||(e[116]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:lr},{default:y(()=>e[117]||(e[117]=[K("保存")])),_:1})])])):(j(),Ce(x,{key:1,type:"text",class:"edit-title-btn",onClick:ar},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1}))]),e[126]||(e[126]=l("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),l("div",Od,[e[121]||(e[121]=l("div",{class:"detail-label"},"职位描述",-1)),Zn.value?Ue("",!0):(j(),Z("div",{key:0,class:"detail-value html-content",innerHTML:t.description},null,8,Td)),Zn.value?(j(),Z("div",Dd,[v(L,{modelValue:qn.value,"onUpdate:modelValue":e[8]||(e[8]=p=>qn.value=p),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",Pd,[v(x,{size:"small",onClick:dr},{default:y(()=>e[119]||(e[119]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:ur},{default:y(()=>e[120]||(e[120]=[K("保存")])),_:1})])])):(j(),Ce(x,{key:1,type:"text",class:"edit-title-btn",onClick:sr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1}))]),l("div",Vd,[e[124]||(e[124]=l("div",{class:"detail-label"},"能力标签",-1)),Ro.value?(j(),Z("div",Ud,[v(me,{modelValue:Cn.value,"onUpdate:modelValue":e[9]||(e[9]=p=>Cn.value=p),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:y(()=>[(j(!0),Z(Je,null,We(H.value,p=>(j(),Ce(X,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",Md,[v(x,{size:"small",onClick:mr},{default:y(()=>e[122]||(e[122]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:gr},{default:y(()=>e[123]||(e[123]=[K("保存")])),_:1})])])):(j(),Z("div",Rd,[(j(!0),Z(Je,null,We(t.competency_tags,p=>(j(),Ce(yt,{key:p.id,effect:"plain",class:"competency-tag"},{default:y(()=>[K(ie(p.name),1)]),_:2},1024))),128)),v(x,{type:"text",class:"edit-title-btn",onClick:pr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))])]),_:1}),l("div",Kd,[v(bt,{class:"status-card"},{default:y(()=>[e[127]||(e[127]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位状态")],-1)),l("div",kd,[v(Ne,{modelValue:n.value,"onUpdate:modelValue":e[10]||(e[10]=p=>n.value=p),"inactive-text":"",onChange:Ot},null,8,["modelValue"]),l("span",Bd,ie(n.value?"已启用":"待启用"),1)])]),_:1}),v(bt,{class:"status-card"},{default:y(()=>[l("div",Nd,[e[129]||(e[129]=l("div",{class:"section-line"},null,-1)),e[130]||(e[130]=l("span",null,"职位性质",-1)),In.value?Ue("",!0):(j(),Ce(x,{key:0,type:"text",class:"edit-btn",onClick:cr},{default:y(()=>e[128]||(e[128]=[K("编辑")])),_:1}))]),l("div",jd,[In.value?Ue("",!0):(j(),Z("div",Fd,ie(ln(t.job_type)),1)),In.value?(j(),Z("div",Ld,[v(me,{modelValue:_n.value,"onUpdate:modelValue":e[11]||(e[11]=p=>_n.value=p),placeholder:"请选择职位性质",style:{width:"100%"}},{default:y(()=>[v(X,{label:"全职",value:0}),v(X,{label:"兼职",value:1}),v(X,{label:"实习",value:2}),v(X,{label:"其他",value:3})]),_:1},8,["modelValue"]),l("div",Qd,[v(x,{size:"small",onClick:fr},{default:y(()=>e[131]||(e[131]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:vr},{default:y(()=>e[132]||(e[132]=[K("保存")])),_:1})])])):Ue("",!0)])]),_:1}),v(bt,{class:"status-card"},{default:y(()=>[l("div",Gd,[e[134]||(e[134]=l("div",{class:"section-line"},null,-1)),e[135]||(e[135]=l("span",null,"招聘流程",-1)),v(x,{type:"text",class:"edit-btn",onClick:Tt},{default:y(()=>e[133]||(e[133]=[K("设置流程")])),_:1})]),l("div",zd,[(j(!0),Z(Je,null,We(a,(p,ne)=>Bo((j(),Z("div",{key:p.id,class:It(["process-step",{disabled:!p.active}])},[l("div",$d,ie(ne+1),1),l("div",Jd,[l("div",Wd,ie(p.name),1)])],2)),[[Wi,p.visible]])),128))])]),_:1}),v(bt,{class:"status-card"},{default:y(()=>[l("div",Hd,[e[137]||(e[137]=l("div",{class:"section-line"},null,-1)),e[138]||(e[138]=l("span",null,"面试设置",-1)),v(x,{type:"text",class:"edit-btn",onClick:Fr},{default:y(()=>e[136]||(e[136]=[K("编辑")])),_:1})])]),_:1})])]),v(Dt,{title:"设置招聘流程",modelValue:s.value,"onUpdate:modelValue":e[14]||(e[14]=p=>s.value=p),width:"500px","close-on-click-modal":!1},{footer:y(()=>[l("span",nu,[v(x,{onClick:Fn},{default:y(()=>e[142]||(e[142]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Sn},{default:y(()=>e[143]||(e[143]=[K("确定")])),_:1})])]),default:y(()=>[l("div",Yd,[(j(!0),Z(Je,null,We(a,(p,ne)=>Bo((j(),Z("div",{key:p.id},[ne<a.length-1?(j(),Z("div",Xd,[v(x,{type:"text",onClick:Ie=>sn(ne,Ie)},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(mn))]),_:1})]),_:2},1032,["onClick"])])):Ue("",!0),l("div",{class:It(["process-edit-item",{highlight:p.active}])},[l("div",Zd,ie(ne+1),1),l("div",qd,[l("div",null,ie(p.name),1),l("div",_d,ie(p.description),1)]),l("div",eu,[v(x,{type:"info",size:"small",plain:"",onClick:Ie=>el(p,ne)},{default:y(()=>e[139]||(e[139]=[K(" 修改 ")])),_:2},1032,["onClick"]),v(x,{type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Ie=>xt(p,ne)},{default:y(()=>e[140]||(e[140]=[K(" 删除 ")])),_:2},1032,["onClick"])])],2)])),[[Wi,p.visible]])),128)),e[141]||(e[141]=l("div",{class:"add-process-btn"},null,-1))]),R.value?(j(),Z("div",{key:0,class:"process-options-menu",style:Rl({top:U.top,left:U.left}),onClick:e[13]||(e[13]=Vl(()=>{},["stop"]))},[l("div",{class:"close-btn",onClick:e[12]||(e[12]=p=>R.value=!1)},[v(P,null,{default:y(()=>[v(ye(Fl))]),_:1})]),(j(),Z(Je,null,We(u,p=>l("div",{key:p.value,class:"process-option-item",onClick:ne=>dn(p.value,p.label)},ie(p.label),9,tu)),64))],4)):Ue("",!0)]),_:1},8,["modelValue"]),v(ye(si),{title:"AI考察",modelValue:B.value,"onUpdate:modelValue":e[33]||(e[33]=p=>B.value=p),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",Sc,[G.value>1?(j(),Ce(x,{key:0,size:"small",onClick:cn},{default:y(()=>e[184]||(e[184]=[K("上一步")])),_:1})):Ue("",!0),v(x,{onClick:w,size:"small"},{default:y(()=>e[185]||(e[185]=[K("取消")])),_:1}),G.value<3?(j(),Ce(x,{key:1,type:"primary",size:"small",onClick:un,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[186]||(e[186]=[K("下一步")])),_:1})):(j(),Ce(x,{key:2,type:"success",onClick:_t,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[187]||(e[187]=[K("新增")])),_:1}))])]),default:y(()=>[l("div",ou,[l("div",{class:It(["step-item",{active:G.value===1}]),onClick:e[15]||(e[15]=p=>C(1))},[e[144]||(e[144]=l("div",{class:"step-number"},"1",-1)),l("div",{class:It(["step-title",{"active-title":G.value===1}])},"考察能力",2)],2),l("div",{class:It(["step-line",{"active-line":G.value>=2}])},null,2),l("div",{class:It(["step-item",{active:G.value===2}]),onClick:e[16]||(e[16]=p=>C(2))},[e[145]||(e[145]=l("div",{class:"step-number"},"2",-1)),l("div",{class:It(["step-title",{"active-title":G.value===2}])},"面试题目",2)],2),l("div",{class:It(["step-line",{"active-line":G.value>=3}])},null,2),l("div",{class:It(["step-item",{active:G.value===3}]),onClick:e[17]||(e[17]=p=>C(3))},[e[146]||(e[146]=l("div",{class:"step-number"},"3",-1)),l("div",{class:It(["step-title",{"active-title":G.value===3}])},"系统设置",2)],2)]),G.value===1?Bo((j(),Z("div",iu,[l("div",au,[e[153]||(e[153]=l("div",{class:"ai-video-options-header"},[l("div",{class:"ai-video-options-header-title"},[l("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的新智能能力加入到该职位的考察能力列表中。")])],-1)),l("div",ru,[l("div",lu,[(j(!0),Z(Je,null,We(Rt.value.slice(0,10),p=>(j(),Ce(Wt,{key:p.id,modelValue:p.selected,"onUpdate:modelValue":ne=>p.selected=ne,onChange:ne=>ki(p,ne),class:"custom-checkbox"},{default:y(()=>[l("div",su,[l("span",null,ie(p.name),1),e[147]||(e[147]=l("img",{src:ea,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",du,[l("div",uu,[e[149]||(e[149]=l("h3",{style:{color:"#808080"}},"备选考核维度",-1)),l("div",cu,[v(x,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:S},{default:y(()=>e[148]||(e[148]=[K("重新生成")])),_:1})])]),l("div",fu,[(j(!0),Z(Je,null,We(Rt.value.slice(10,50),p=>(j(),Ce(Wt,{key:p.id,modelValue:p.selected,"onUpdate:modelValue":ne=>p.selected=ne,onChange:ne=>ki(p,ne),class:"custom-checkbox"},{default:y(()=>[l("div",vu,[l("span",null,ie(p.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",pu,[e[152]||(e[152]=l("h3",{style:{color:"#808080"}},"自定义维度",-1)),l("div",mu,[l("div",gu,[l("div",hu,[v(L,{style:{width:"150px"},modelValue:en.value,"onUpdate:modelValue":e[18]||(e[18]=p=>en.value=p),placeholder:"请输入维度名称"},null,8,["modelValue"])]),l("div",yu,[e[150]||(e[150]=l("div",{class:"input-label"},"特征描述:",-1)),v(L,{modelValue:An.value,"onUpdate:modelValue":e[19]||(e[19]=p=>An.value=p),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),l("div",bu,[v(x,{type:"primary",onClick:br},{default:y(()=>e[151]||(e[151]=[K("添加")])),_:1})])])])])])),[[Ji,Pn.value]]):Ue("",!0),G.value===2?(j(),Z("div",Su,[l("div",Eu,[l("div",xu,[l("div",Iu,[v(x,{plain:"",class:"custom-btn",onClick:ot},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[154]||(e[154]=K(" 自定义题目 "))]),_:1}),v(x,{plain:"",class:"custom-btn"},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(Hi))]),_:1}),e[155]||(e[155]=K(" 导入题目 "))]),_:1}),J.value.length>0?(j(),Ce(x,{key:0,type:"primary",plain:"",class:"custom-btn",loading:ut.value,onClick:Li},{default:y(()=>[v(P,null,{default:y(()=>[v(ml)]),_:1}),e[156]||(e[156]=K(" 重新生成 "))]),_:1},8,["loading"])):Ue("",!0),l("div",Cu,[l("div",Au,[e[157]||(e[157]=l("span",{class:"switch-label"},"开放题数量",-1)),v(pn,{modelValue:fn.openQuestionsCount,"onUpdate:modelValue":e[20]||(e[20]=p=>fn.openQuestionsCount=p),min:1,max:10,size:"small",onChange:Fi},null,8,["modelValue"])]),l("div",wu,[e[158]||(e[158]=l("span",{class:"switch-label"},"选择题数量",-1)),v(pn,{modelValue:fn.choiceQuestionsCount,"onUpdate:modelValue":e[21]||(e[21]=p=>fn.choiceQuestionsCount=p),min:1,max:20,size:"small",onChange:Fi},null,8,["modelValue"])])])]),l("div",Ou,[e[159]||(e[159]=l("span",null,"预计面试时长: ",-1)),l("span",Tu,ie(he.value),1),e[160]||(e[160]=l("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序",-1))])]),l("div",Du,[Bo((j(),Z("div",Pu,[J.value.length===0?(j(),Z("div",Vu,[e[163]||(e[163]=l("p",null,"暂无题目",-1)),e[164]||(e[164]=l("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),e[165]||(e[165]=l("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),v(x,{type:"success",class:"auto-generate-btn",loading:ut.value,onClick:Li},{default:y(()=>e[161]||(e[161]=[K(" AI自动组题 ")])),_:1},8,["loading"]),ut.value&&ye($t)?(j(),Ce(x,{key:0,type:"warning",plain:"",size:"small",onClick:Pr,style:{"margin-left":"10px"}},{default:y(()=>e[162]||(e[162]=[K(" 取消生成 ")])),_:1})):Ue("",!0)])):(j(),Z("div",Ru,[v(ye(ma),{modelValue:J.value,"onUpdate:modelValue":e[22]||(e[22]=p=>J.value=p),"item-key":"id",handle:".drag-handle",onStart:Ir,onEnd:Cr,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:y(({element:p})=>[l("div",Uu,[e[169]||(e[169]=l("div",{class:"drag-handle"},[l("img",{src:Hl,alt:"",class:"dorp"})],-1)),l("div",Mu,[l("div",Ku,[l("div",ku,[l("div",Bu,[l("span",Nu,"题目"+ie(J.value.indexOf(p)+1),1),l("span",null,[l("span",ju,ie("「"+p.question_form_name+"」"),1),K(ie(p.title),1)])]),l("div",Fu,[(j(!0),Z(Je,null,We((p.competency_tag_info||p.competency_tags||[]).slice(0,2),(ne,Ie)=>(j(),Ce(yt,{key:ne.id,effect:"plain",class:"competency-tag",size:"small"},{default:y(()=>[K(ie(ne.name),1)]),_:2},1024))),128)),(p.competency_tag_info||p.competency_tags||[]).length>2?(j(),Z("span",Lu," +"+ie((p.competency_tag_info||p.competency_tags||[]).length-2),1)):Ue("",!0)])])]),l("div",Qu,[v(x,{type:"text",onClick:ne=>Vi(J.value.indexOf(p))},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:2},1032,["onClick"]),v(x,{type:"text",onClick:ne=>Ri(J.value.indexOf(p))},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(Yi))]),_:1})]),_:2},1032,["onClick"])])]),l("div",Gu,[l("div",zu,[l("span",null,ie(p.scoring_reference),1)])]),p.question_form==0?(j(),Z("div",$u,[l("div",Ju,[v(Ne,{style:{"margin-top":"0px"},modelValue:p.enable_follow_up,"onUpdate:modelValue":ne=>p.enable_follow_up=ne,onChange:N},null,8,["modelValue","onUpdate:modelValue"]),e[166]||(e[166]=l("span",{class:"answer-label"},"回答不充分追问",-1))]),l("div",Wu,[e[167]||(e[167]=l("span",{class:"answer-label"},"追问轮数",-1)),v(me,{modelValue:p.maxAnswers,"onUpdate:modelValue":ne=>p.maxAnswers=ne,size:"small",placeholder:"请选择"},{default:y(()=>[v(X,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):Ue("",!0),p.question_form==1?(j(),Z("div",Hu,[l("div",Yu,[e[168]||(e[168]=l("span",{class:"answer-label"},"是否为红线题:",-1)),v(me,{modelValue:p.is_required_correct,"onUpdate:modelValue":ne=>p.is_required_correct=ne,onChange:ne=>O(p.id,p.is_required_correct),size:"small",placeholder:"请选择"},{default:y(()=>[v(X,{label:"是",value:!0}),v(X,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):Ue("",!0)])]),_:1},8,["modelValue"])]))])),[[Ji,ut.value]]),l("div",Xu,[e[172]||(e[172]=l("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),l("div",Zu,[(j(!0),Z(Je,null,We(_.value,(p,ne)=>(j(),Z("div",{key:p.value,class:"dimension-item"},[l("div",qu,[l("div",_u,[l("span",ec,ie(p.label),1),e[170]||(e[170]=l("img",{src:ea,alt:"",class:"sheng"},null,-1))])]),l("div",{class:"dimension-content",onClick:Ie=>Or(ne),title:"点击删除此胜任力标签"},e[171]||(e[171]=[l("div",{class:"ability-description"},ie("—"),-1)]),8,tc)]))),128))])])])])])):Ue("",!0),G.value===3?(j(),Z("div",nc,[l("div",oc,[l("div",ic,[e[183]||(e[183]=l("div",{class:"section-header"},"请选择面试官形象",-1)),l("div",ac,[l("div",rc,[ni.value?(j(),Z("img",{key:0,src:ni.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,lc)):Ue("",!0)]),l("div",null,[l("div",sc,[(j(!0),Z(Je,null,We(ti.value,p=>(j(),Z("div",{key:p.id,class:It(["avatar-item",{active:mt.value.id===p.id}]),onClick:ne=>Sr(p)},[l("div",uc,[l("div",{class:It(["avatar-circle",{selected:mt.value.id===p.id}])},[l("img",{src:p.avatar_url||p.image,alt:p.name},null,8,cc)],2),l("div",{class:"avatar-name",title:p.name},ie(p.name),9,fc)])],10,dc))),128))]),l("div",vc,[e[173]||(e[173]=l("div",{class:"setting-label"},"「追问风格」",-1)),l("div",pc,[v(me,{modelValue:at.followUpStyle,"onUpdate:modelValue":e[23]||(e[23]=p=>at.followUpStyle=p),placeholder:"请选择",onChange:e[24]||(e[24]=p=>eo("followUpStyle",at.followUpStyle))},{default:y(()=>[v(X,{label:"温和",value:"1"}),v(X,{label:"严厉",value:"2"}),v(X,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),e[174]||(e[174]=l("div",{class:"setting-desc"},null,-1))])])]),l("div",mc,[l("div",gc,[e[175]||(e[175]=l("div",{class:"setting-label"},[l("p",null,"「回答视频保留」")],-1)),e[176]||(e[176]=l("div",{class:"setting-desc"},[l("p",null,"选取后,将在报告中展示候选人的回答视频")],-1)),v(Ne,{modelValue:at.keepVideo,"onUpdate:modelValue":e[25]||(e[25]=p=>at.keepVideo=p),onChange:e[26]||(e[26]=p=>eo("keepVideo",p))},null,8,["modelValue"])]),l("div",hc,[e[179]||(e[179]=l("div",{class:"setting-label"},[l("p",null,"「中断后作答限制」")],-1)),l("div",yc,[v(so,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[27]||(e[27]=p=>at.interruptionMode=p),label:"current",onChange:e[28]||(e[28]=p=>eo("interruptionMode",at.interruptionMode))},{default:y(()=>e[177]||(e[177]=[K(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),v(so,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[29]||(e[29]=p=>at.interruptionMode=p),label:"previous",onChange:e[30]||(e[30]=p=>eo("interruptionMode",at.interruptionMode))},{default:y(()=>e[178]||(e[178]=[K(" 从头作答 ")])),_:1},8,["modelValue"])]),e[180]||(e[180]=l("div",{class:"setting-desc",style:{width:"40px"}},null,-1))]),l("div",bc,[e[181]||(e[181]=l("div",{class:"setting-label"},[l("p",null,"「智慧追问」")],-1)),e[182]||(e[182]=l("div",{class:"setting-desc"},[l("p",null,"追问将结合候选人资料情况,综合分析发问")],-1)),v(Ne,{modelValue:at.smartFollowUp,"onUpdate:modelValue":e[31]||(e[31]=p=>at.smartFollowUp=p),onChange:e[32]||(e[32]=p=>eo("smartFollowUp",p))},null,8,["modelValue"])])])])])])):Ue("",!0)]),_:1},8,["modelValue"]),v(Dt,{title:"新增视频宣讲",modelValue:Y.value,"onUpdate:modelValue":e[35]||(e[35]=p=>Y.value=p),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:y(()=>[l("span",Ac,[v(x,{onClick:F},{default:y(()=>e[191]||(e[191]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:ee},{default:y(()=>e[192]||(e[192]=[K("确认")])),_:1})])]),default:y(()=>[l("div",Ec,[l("div",xc,[e[189]||(e[189]=l("div",{class:"form-label"},"上传视频",-1)),v($i,{class:"video-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"video/*"},{default:y(()=>[l("div",Ic,[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[188]||(e[188]=l("div",{class:"upload-text"},"上传文件大小不超过500M",-1))])]),_:1})]),l("div",Cc,[e[190]||(e[190]=l("div",{class:"form-label"},"视频简介",-1)),v(L,{modelValue:q.description,"onUpdate:modelValue":e[34]||(e[34]=p=>q.description=p),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),v(ye(si),{title:"AI实时对话",modelValue:re.value,"onUpdate:modelValue":e[37]||(e[37]=p=>re.value=p),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",Gc,[v(x,{onClick:ve},{default:y(()=>e[203]||(e[203]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:le},{default:y(()=>e[204]||(e[204]=[K("确认")])),_:1})])]),default:y(()=>[l("div",wc,[l("div",Oc,[e[202]||(e[202]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"对话设置")],-1)),l("div",Tc,[v(x,{type:"primary",plain:"",onClick:Se},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[193]||(e[193]=K(" 添加问题 "))]),_:1}),v(x,{type:"success",plain:"",onClick:ot},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(Hi))]),_:1}),e[194]||(e[194]=K(" 导入问题 "))]),_:1})]),l("div",Dc,[J.value.length===0?(j(),Z("div",Pc,e[195]||(e[195]=[l("p",null,"暂无问题",-1),l("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(j(),Z("div",Vc,[v(ye(ma),{modelValue:J.value,"onUpdate:modelValue":e[36]||(e[36]=p=>J.value=p),"item-key":"id",handle:".drag-handle"},{item:y(({element:p,index:ne})=>[K(ie(p)+" ",1),l("div",Rc,[l("div",Uc,[l("div",Mc,[l("span",Kc,"题目"+ie(ne+1),1),l("span",null,ie(p.question),1)]),l("div",kc,[l("div",Bc,[e[197]||(e[197]=l("span",{class:"weight-label"},"权重占比:",-1)),v(pn,{modelValue:p.weight,"onUpdate:modelValue":Ie=>p.weight=Ie,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:y(()=>e[196]||(e[196]=[K("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),l("div",Nc,[e[198]||(e[198]=l("span",{class:"answer-label"},"最多回答次数",-1)),v(me,{modelValue:p.maxAnswers,"onUpdate:modelValue":Ie=>p.maxAnswers=Ie,size:"small",placeholder:"请选择"},{default:y(()=>[v(X,{label:"1次",value:1}),v(X,{label:"2次",value:2}),v(X,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),v(x,{type:"text",onClick:Ie=>Vi(ne)},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:2},1032,["onClick"]),v(x,{type:"text",onClick:Ie=>Ri(ne)},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(Yi))]),_:1})]),_:2},1032,["onClick"])])]),l("div",jc,[l("div",Fc,[e[199]||(e[199]=l("span",{class:"info-label"},"考察能力:",-1)),l("span",null,ie(p.ability),1)]),l("div",Lc,[e[200]||(e[200]=l("span",{class:"info-label"},"面试内容:",-1)),l("span",null,ie(p.content),1)]),l("div",Qc,[e[201]||(e[201]=l("span",{class:"info-label"},"对话目标:",-1)),l("span",null,ie(p.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),v(Dt,{title:"编辑问题",modelValue:Q.value,"onUpdate:modelValue":e[48]||(e[48]=p=>Q.value=p),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:y(()=>[l("span",lf,[v(x,{onClick:Me},{default:y(()=>e[231]||(e[231]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Ke},{default:y(()=>e[232]||(e[232]=[K("确认")])),_:1})])]),default:y(()=>[l("div",zc,[l("div",$c,[e[205]||(e[205]=l("div",{class:"form-label"},[K(" 题目内容"),l("span",{class:"required"},"*")],-1)),v(L,{modelValue:T.content,"onUpdate:modelValue":e[38]||(e[38]=p=>T.content=p),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",Jc,[e[206]||(e[206]=l("div",{class:"form-label"},"胜任力标签",-1)),v(me,{modelValue:Qi.value,"onUpdate:modelValue":e[39]||(e[39]=p=>Qi.value=p),placeholder:"请选择胜任力标签",class:"full-width",multiple:""},{default:y(()=>[(j(!0),Z(Je,null,We(H.value,p=>(j(),Ce(X,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[207]||(e[207]=l("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),l("div",Wc,[e[213]||(e[213]=l("div",{class:"form-label"}," 胜任力配置 ",-1)),l("div",Hc,[e[209]||(e[209]=l("div",{class:"config-row"},[l("span",{class:"config-label"},"标签"),l("span",{class:"config-label"},"权重")],-1)),(j(!0),Z(Je,null,We(T.competency_tags,(p,ne)=>(j(),Z("div",{class:"config-row",key:p.id},[l("span",Yc,ie(p.name),1),v(pn,{modelValue:p.weight,"onUpdate:modelValue":Ie=>p.weight=Ie,min:0,max:100,step:1,"controls-position":"right",onChange:Ie=>tl(ne,Ie)},null,8,["modelValue","onUpdate:modelValue","onChange"]),e[208]||(e[208]=K(" % "))]))),128))]),l("div",Xc,[e[210]||(e[210]=K(" 配置各个胜任力标签的权重,总和需要100% ")),l("span",{class:It(["weight-sum",{"weight-error":ii()!==100}])}," (当前总计: "+ie(ii())+"%) ",3),e[211]||(e[211]=l("br",null,null,-1)),v(P,{style:{color:"#409eff","margin-right":"4px","margin-top":"4px"}},{default:y(()=>[v(ye(Ll))]),_:1}),e[212]||(e[212]=l("span",{style:{color:"#909399","font-size":"11px"}},' 修改任意权重时,其他权重会自动按比例调整以保持总和为100%。点击"平均分配"可快速平均分配所有权重。 ',-1))])]),l("div",Zc,[e[214]||(e[214]=l("div",{class:"form-label"},"题目形式",-1)),v(me,{modelValue:T.type,"onUpdate:modelValue":e[40]||(e[40]=p=>T.type=p),placeholder:"开放问题",class:"full-width",onChange:qr},{default:y(()=>[v(X,{label:"开放问题",value:"open"}),v(X,{label:"单选题",value:"single"}),v(X,{label:"多选题",value:"multiple"}),v(X,{label:"填空题",value:"fill"}),v(X,{label:"自言语",value:"self"})]),_:1},8,["modelValue"]),e[215]||(e[215]=l("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),l("div",qc,[e[216]||(e[216]=l("div",{class:"form-label"},"适用职位",-1)),v(me,{modelValue:T.position,"onUpdate:modelValue":e[41]||(e[41]=p=>T.position=p),placeholder:"请选择适用职位类型",class:"full-width",multiple:""},{default:y(()=>[(j(!0),Z(Je,null,We(oe.value,p=>(j(),Ce(X,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[217]||(e[217]=l("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),T.question_form===1||T.question_form===2?(j(),Z("div",_c,[e[221]||(e[221]=l("div",{class:"form-label"},"选项",-1)),l("div",null,[e[220]||(e[220]=l("div",{class:"option-header",style:{display:"flex","margin-bottom":"10px","font-weight":"bold"}},[l("span",{style:{flex:"1"}},"选项内容"),l("span",{style:{width:"80px","text-align":"center"}},"是否正确")],-1)),(j(!0),Z(Je,null,We(T.options,(p,ne)=>(j(),Z("div",{key:ne,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[v(L,{modelValue:p.text,"onUpdate:modelValue":Ie=>p.text=Ie,placeholder:"请输入选项内容",style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),v(Rn,{content:"设置为正确答案",placement:"top",effect:"light"},{default:y(()=>[l("div",{onClick:()=>{T.question_form===1?T.options.forEach((Ie,Il)=>{Ie.is_correct=Il===ne}):p.is_correct=!p.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[T.question_form===1?(j(),Ce(so,{key:0,modelValue:p.is_correct,"onUpdate:modelValue":Ie=>p.is_correct=Ie,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(j(),Ce(Wt,{key:1,modelValue:p.is_correct,"onUpdate:modelValue":Ie=>p.is_correct=Ie},null,8,["modelValue","onUpdate:modelValue"]))],8,ef)]),_:2},1024)]))),128)),l("div",tf,[v(x,{type:"primary",onClick:e[42]||(e[42]=()=>{T.options||(T.options=[]);const p=T.options.length>0?Math.max(...T.options.map(ne=>ne.sort||0))+1:1;T.options.push({option_text:"",is_correct:!1,sort:p})})},{default:y(()=>e[218]||(e[218]=[K(" 添加选项 ")])),_:1}),T.options&&T.options.length>2?(j(),Ce(x,{key:0,type:"danger",onClick:e[43]||(e[43]=()=>{T.options.pop()})},{default:y(()=>e[219]||(e[219]=[K(" 删除最后一项 ")])),_:1})):Ue("",!0)])]),e[222]||(e[222]=l("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):Ue("",!0),l("div",nf,[e[223]||(e[223]=l("div",{class:"form-label"},"分类",-1)),v(me,{modelValue:T.category,"onUpdate:modelValue":e[44]||(e[44]=p=>T.category=p),placeholder:"请选择题目分类",class:"full-width"},{default:y(()=>[(j(!0),Z(Je,null,We(Ee.value,p=>(j(),Ce(X,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[224]||(e[224]=l("div",{class:"form-tip"},"选择题目所属分类",-1))]),l("div",of,[e[225]||(e[225]=l("div",{class:"form-label"},"标签",-1)),v(me,{modelValue:T.tags,"onUpdate:modelValue":e[45]||(e[45]=p=>T.tags=p),placeholder:"请选择标签",class:"full-width",multiple:""},{default:y(()=>[(j(!0),Z(Je,null,We(Te.value,p=>(j(),Ce(X,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[226]||(e[226]=l("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),l("div",af,[e[227]||(e[227]=l("div",{class:"form-label"},"建议时长(秒)",-1)),v(pn,{modelValue:T.suggestedDuration,"onUpdate:modelValue":e[46]||(e[46]=p=>T.suggestedDuration=p),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width"},null,8,["modelValue"]),e[228]||(e[228]=l("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),l("div",rf,[e[229]||(e[229]=l("div",{class:"form-label"},"评价标准",-1)),v(L,{modelValue:T.scoring_reference,"onUpdate:modelValue":e[47]||(e[47]=p=>T.scoring_reference=p),type:"textarea",rows:"4",placeholder:"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",class:"full-width"},null,8,["modelValue"]),e[230]||(e[230]=l("div",{class:"form-tip"},"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",-1))])])]),_:1},8,["modelValue"]),v(Dt,{title:"选择题目",modelValue:wn.value,"onUpdate:modelValue":e[49]||(e[49]=p=>wn.value=p),width:"30%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",ff,[v(x,{onClick:ji},{default:y(()=>e[233]||(e[233]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Mr,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[234]||(e[234]=[K("确定")])),_:1})])]),default:y(()=>[l("div",sf,[v(hl,{ref:"treeRef",data:zi.value,"node-key":"id",props:fl,"default-expand-all":"","highlight-current":"",onNodeClick:vl},{default:y(({node:p,data:ne})=>[l("div",df,[l("div",uf,[v(P,null,{default:y(()=>[v(gl)]),_:1}),l("span",cf,ie(ne.title),1)])])]),_:1},8,["data"])])]),_:1},8,["modelValue"]),v(Dt,{title:"创建自定义题目",modelValue:oo.value,"onUpdate:modelValue":e[51]||(e[51]=p=>oo.value=p),width:"40%","close-on-click-modal":!1,class:"question-bank-form-dialog","before-close":Co},{default:y(()=>[v(zl,{modelValue:Mo.value,"onUpdate:modelValue":e[50]||(e[50]=p=>Mo.value=p),"is-edit":Ni.value,onSubmit:Ln,onCancel:Co},null,8,["modelValue","is-edit"])]),_:1},8,["modelValue"]),v(Dt,{title:"资料收集",modelValue:we.value,"onUpdate:modelValue":e[55]||(e[55]=p=>we.value=p),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:y(()=>[l("span",Rf,[v(x,{onClick:Da},{default:y(()=>e[244]||(e[244]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Kr},{default:y(()=>e[245]||(e[245]=[K("确认")])),_:1})])]),default:y(()=>[l("div",vf,[l("div",pf,[e[243]||(e[243]=l("div",{class:"panel-header"},[l("h3",null,"字段显示配置")],-1)),l("div",mf,[e[238]||(e[238]=l("div",{class:"section-title"},"基本信息",-1)),v(Ht,{gutter:20},{default:y(()=>[(j(!0),Z(Je,null,We(kr(),(p,ne)=>(j(),Ce(jt,{span:8,key:ne},{default:y(()=>[l("div",gf,[l("span",hf,ie(p.label),1),v(Rn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(Ne,{modelValue:p.visible,"onUpdate:modelValue":Ie=>p.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[239]||(e[239]=l("div",{class:"section-title"},"家庭成员信息",-1)),v(Ht,{gutter:20},{default:y(()=>[v(jt,{span:24},{default:y(()=>[l("div",yf,[l("span",bf,[K(ie($.family_member.label)+" ",1),$.family_member.visible?(j(),Ce(yt,{key:0,size:"small",type:"success"},{default:y(()=>e[235]||(e[235]=[K("已启用")])),_:1})):Ue("",!0)]),v(Ne,{modelValue:$.family_member.visible,"onUpdate:modelValue":e[52]||(e[52]=p=>$.family_member.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),$.family_member.visible?(j(),Ce(Ht,{key:0,gutter:20},{default:y(()=>[(j(!0),Z(Je,null,We($.family_member.fields,(p,ne)=>(j(),Ce(jt,{span:8,key:ne},{default:y(()=>[l("div",Sf,[l("span",Ef,ie(p.label),1),v(Rn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(Ne,{modelValue:p.visible,"onUpdate:modelValue":Ie=>p.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0),e[240]||(e[240]=l("div",{class:"section-title"},"教育经历",-1)),v(Ht,{gutter:20},{default:y(()=>[v(jt,{span:24},{default:y(()=>[l("div",xf,[l("span",If,[K(ie($.education.label)+" ",1),$.education.visible?(j(),Ce(yt,{key:0,size:"small",type:"success"},{default:y(()=>e[236]||(e[236]=[K("已启用")])),_:1})):Ue("",!0)]),v(Ne,{modelValue:$.education.visible,"onUpdate:modelValue":e[53]||(e[53]=p=>$.education.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),$.education.visible?(j(),Ce(Ht,{key:1,gutter:20},{default:y(()=>[(j(!0),Z(Je,null,We($.education.fields,(p,ne)=>(j(),Ce(jt,{span:8,key:ne},{default:y(()=>[l("div",Cf,[l("span",Af,ie(p.label),1),v(Rn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(Ne,{modelValue:p.visible,"onUpdate:modelValue":Ie=>p.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0),e[241]||(e[241]=l("div",{class:"section-title"},"专业技能",-1)),v(Ht,{gutter:20},{default:y(()=>[(j(!0),Z(Je,null,We(Br(),(p,ne)=>(j(),Ce(jt,{span:8,key:ne},{default:y(()=>[l("div",wf,[l("span",Of,ie(p.label),1),v(Rn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(Ne,{modelValue:p.visible,"onUpdate:modelValue":Ie=>p.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[242]||(e[242]=l("div",{class:"section-title"},"工作经历",-1)),v(Ht,{gutter:20},{default:y(()=>[v(jt,{span:24},{default:y(()=>[l("div",Tf,[l("span",Df,[K(ie($.work_experience.label)+" ",1),$.work_experience.visible?(j(),Ce(yt,{key:0,size:"small",type:"success"},{default:y(()=>e[237]||(e[237]=[K("已启用")])),_:1})):Ue("",!0)]),v(Ne,{modelValue:$.work_experience.visible,"onUpdate:modelValue":e[54]||(e[54]=p=>$.work_experience.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),$.work_experience.visible?(j(),Ce(Ht,{key:2,gutter:20},{default:y(()=>[(j(!0),Z(Je,null,We($.work_experience.fields,(p,ne)=>(j(),Ce(jt,{span:8,key:ne},{default:y(()=>[l("div",Pf,[l("span",Vf,ie(p.label),1),v(Rn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(Ne,{modelValue:p.visible,"onUpdate:modelValue":Ie=>p.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0)])])])]),_:1},8,["modelValue"]),v(Dt,{title:"简历收集",modelValue:De.value,"onUpdate:modelValue":e[57]||(e[57]=p=>De.value=p),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:y(()=>[l("span",Kf,[v(x,{onClick:dt},{default:y(()=>e[247]||(e[247]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:nt},{default:y(()=>e[248]||(e[248]=[K("确认")])),_:1})])]),default:y(()=>[l("div",Uf,[l("div",Mf,[e[246]||(e[246]=l("div",{class:"form-label"},"步骤名称",-1)),v(L,{modelValue:Ae.title,"onUpdate:modelValue":e[56]||(e[56]=p=>Ae.title=p),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),v(Dt,{title:"添加代码笔试步骤",modelValue:Qn.value,"onUpdate:modelValue":e[60]||(e[60]=p=>Qn.value=p),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:y(()=>[l("span",Hf,[v(x,{onClick:Ui},{default:y(()=>e[257]||(e[257]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Ra},{default:y(()=>e[258]||(e[258]=[K("确认")])),_:1})])]),default:y(()=>[l("div",kf,[l("div",Bf,[e[249]||(e[249]=l("div",{class:"form-label"},"步骤名称",-1)),v(L,{modelValue:it.title,"onUpdate:modelValue":e[58]||(e[58]=p=>it.title=p),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Nf,[e[250]||(e[250]=l("div",{class:"form-label"},"自动评判试卷",-1)),v(Ne,{modelValue:it.autoJudge,"onUpdate:modelValue":e[59]||(e[59]=p=>it.autoJudge=p)},null,8,["modelValue"]),l("span",jf,ie(it.autoJudge?"开启":"关闭"),1)]),l("div",Ff,[e[256]||(e[256]=l("div",{class:"form-label"},"添加考试试卷",-1)),l("div",Lf,[it.selectedPaper?(j(),Z("div",Gf,[l("div",zf,[l("div",$f,ie(it.selectedPaper.title),1),l("div",Jf,[l("span",null,ie(it.selectedPaper.questionCount)+"道题",1),l("span",null,ie(it.selectedPaper.duration)+"分钟",1),l("span",null,ie(it.selectedPaper.difficulty),1)])]),l("div",Wf,[v(x,{type:"text",onClick:Ma},{default:y(()=>e[253]||(e[253]=[K("查看")])),_:1}),v(x,{type:"text",onClick:Ka},{default:y(()=>e[254]||(e[254]=[K("更换")])),_:1}),v(x,{type:"text",onClick:ka},{default:y(()=>e[255]||(e[255]=[K("删除")])),_:1})])])):(j(),Z("div",Qf,[v(x,{type:"primary",plain:"",onClick:Ua},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[251]||(e[251]=K(" 添加考卷 "))]),_:1}),e[252]||(e[252]=l("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),v(ye(si),{title:"添加打字测试步骤",modelValue:Gn.value,"onUpdate:modelValue":e[68]||(e[68]=p=>Gn.value=p),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:y(()=>[l("span",sv,[v(x,{onClick:Mi},{default:y(()=>e[275]||(e[275]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:Ba},{default:y(()=>e[276]||(e[276]=[K("保存")])),_:1})])]),default:y(()=>[l("div",Yf,[l("div",Xf,[e[260]||(e[260]=l("div",{class:"form-label"},"选择文章",-1)),l("div",Zf,[v(x,{type:"primary",size:"small",class:"add-article-btn"},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[259]||(e[259]=K(" 添加文章 "))]),_:1})])]),l("div",qf,[e[263]||(e[263]=l("div",{class:"form-label"},"候选人选择文章方式",-1)),v(yl,{modelValue:tt.selectionMode,"onUpdate:modelValue":e[61]||(e[61]=p=>tt.selectionMode=p)},{default:y(()=>[v(so,{label:"random"},{default:y(()=>e[261]||(e[261]=[K("随机抽取")])),_:1}),v(so,{label:"self"},{default:y(()=>e[262]||(e[262]=[K("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),l("div",_f,[e[265]||(e[265]=l("div",{class:"form-label"},"测试时间",-1)),l("div",ev,[v(L,{modelValue:tt.duration,"onUpdate:modelValue":e[62]||(e[62]=p=>tt.duration=p),class:"time-input"},null,8,["modelValue"]),e[264]||(e[264]=l("span",{class:"time-unit"},"分钟",-1))])]),l("div",tv,[e[267]||(e[267]=l("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),v($i,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:y(()=>[l("div",nv,[v(P,null,{default:y(()=>[v(ye(mn))]),_:1}),e[266]||(e[266]=l("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),l("div",ov,[e[268]||(e[268]=l("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),v(L,{modelValue:tt.notes,"onUpdate:modelValue":e[63]||(e[63]=p=>tt.notes=p),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",iv,[e[269]||(e[269]=l("div",{class:"form-label"},"测试页面标题",-1)),v(L,{modelValue:tt.pageTitle,"onUpdate:modelValue":e[64]||(e[64]=p=>tt.pageTitle=p),placeholder:"测试页面标题"},null,8,["modelValue"])]),l("div",av,[e[271]||(e[271]=l("div",{class:"form-label"},"视频监控",-1)),v(Wt,{modelValue:tt.videoMonitoring,"onUpdate:modelValue":e[65]||(e[65]=p=>tt.videoMonitoring=p)},{default:y(()=>e[270]||(e[270]=[K("视频监控")])),_:1},8,["modelValue"])]),l("div",rv,[e[274]||(e[274]=l("div",{class:"form-label"},"通过标准",-1)),l("div",lv,[v(Wt,{modelValue:tt.passCriteria.speed,"onUpdate:modelValue":e[66]||(e[66]=p=>tt.passCriteria.speed=p)},{default:y(()=>e[272]||(e[272]=[K("速度")])),_:1},8,["modelValue"]),v(Wt,{modelValue:tt.passCriteria.accuracy,"onUpdate:modelValue":e[67]||(e[67]=p=>tt.passCriteria.accuracy=p)},{default:y(()=>e[273]||(e[273]=[K("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),v(Dt,{title:"面试设置",modelValue:io.value,"onUpdate:modelValue":e[78]||(e[78]=p=>io.value=p),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:y(()=>[l("span",Nv,[v(x,{onClick:Nr},{default:y(()=>e[296]||(e[296]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:jr},{default:y(()=>e[297]||(e[297]=[K("完成")])),_:1})])]),default:y(()=>[l("div",dv,[l("div",uv,[e[283]||(e[283]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"防作弊设置")],-1)),l("div",cv,[e[277]||(e[277]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「人脸一致性检测」"),l("p",{class:"setting-desc"},"该强调,非本人操作人脸可视化提醒和警示,默认开启")],-1)),v(Ne,{modelValue:Be.faceConsistency,"onUpdate:modelValue":e[69]||(e[69]=p=>Be.faceConsistency=p),disabled:!0},null,8,["modelValue"])]),l("div",fv,[e[278]||(e[278]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),l("p",{class:"setting-desc"},"该强调,非本人前来体验截屏录屏以上行为,为防止提醒")],-1)),v(Ne,{modelValue:Be.preventScreenshot,"onUpdate:modelValue":e[70]||(e[70]=p=>Be.preventScreenshot=p),disabled:!0},null,8,["modelValue"])]),l("div",vv,[e[280]||(e[280]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 切 屏 预 制 」"),l("p",{class:"setting-desc"},"该强调,非本人前使用切屏处理用页面,为防作弊警示")],-1)),v(Ne,{modelValue:Be.screenSwitchAlert,"onUpdate:modelValue":e[71]||(e[71]=p=>Be.screenSwitchAlert=p),disabled:!0},{default:y(()=>e[279]||(e[279]=[l("span",{class:"switch-desc"},"切屏超过 2 次关闭,作答本关面试",-1)])),_:1},8,["modelValue"])]),l("div",pv,[e[281]||(e[281]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 情 绪 识 别」"),l("p",{class:"setting-desc"},"该现已,条件较差以及入侵过程中的作弊,条件等好等")],-1)),v(Ne,{modelValue:Be.positionDetection,"onUpdate:modelValue":e[72]||(e[72]=p=>Be.positionDetection=p)},null,8,["modelValue"])]),l("div",mv,[e[282]||(e[282]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 眼 动 检 测 」"),l("p",{class:"setting-desc"},"视实检测候选人的眼动频率进行分析,页面等较等")],-1)),v(Ne,{modelValue:Be.eyeMovementDetection,"onUpdate:modelValue":e[73]||(e[73]=p=>Be.eyeMovementDetection=p)},null,8,["modelValue"])])]),l("div",gv,[e[295]||(e[295]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"其他设置")],-1)),l("div",hv,[l("div",yv,[e[285]||(e[285]=l("span",{class:"setting-name"},"重复面试",-1)),l("div",bv,[e[284]||(e[284]=l("p",{class:"setting-desc",style:{}},"选取后,将允许面试者进行重复面试",-1)),v(Ne,{modelValue:Be.reviewInterview,"onUpdate:modelValue":e[74]||(e[74]=p=>Be.reviewInterview=p)},null,8,["modelValue"])])])]),l("div",Sv,[l("div",Ev,[e[288]||(e[288]=l("span",{class:"setting-name"},"开场词",-1)),On.value?(j(),Z("div",Cv,[v(L,{modelValue:tn.value,"onUpdate:modelValue":e[75]||(e[75]=p=>tn.value=p),type:"textarea",rows:"2",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),l("div",Av,[v(x,{size:"small",onClick:Qr},{default:y(()=>e[286]||(e[286]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Gr},{default:y(()=>e[287]||(e[287]=[K("保存")])),_:1})])])):(j(),Z("div",xv,[l("p",Iv,ie(Be.beforeStartText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:Lr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))])]),l("div",wv,[l("div",Ov,[e[291]||(e[291]=l("span",{class:"setting-name"},"开始后提醒",-1)),ao.value?(j(),Z("div",Pv,[v(L,{modelValue:Tn.value,"onUpdate:modelValue":e[76]||(e[76]=p=>Tn.value=p),type:"textarea",rows:"2",placeholder:"请输入开始后提醒内容",maxlength:"100","show-word-limit":""},null,8,["modelValue"]),l("div",Vv,[v(x,{size:"small",onClick:$r},{default:y(()=>e[289]||(e[289]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Jr},{default:y(()=>e[290]||(e[290]=[K("保存")])),_:1})])])):(j(),Z("div",Tv,[l("p",Dv,ie(Be.afterStartText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:zr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))])]),l("div",Rv,[l("div",Uv,[e[294]||(e[294]=l("span",{class:"setting-name"},"结束语",-1)),ro.value?(j(),Z("div",kv,[v(L,{modelValue:Dn.value,"onUpdate:modelValue":e[77]||(e[77]=p=>Dn.value=p),type:"textarea",rows:"2",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),l("div",Bv,[v(x,{size:"small",onClick:Hr},{default:y(()=>e[292]||(e[292]=[K("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Yr},{default:y(()=>e[293]||(e[293]=[K("保存")])),_:1})])])):(j(),Z("div",Mv,[l("p",Kv,ie(Be.disclaimerText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:Wr},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(gt))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),v(Dt,{title:"选择题目",modelValue:m.value,"onUpdate:modelValue":e[83]||(e[83]=p=>m.value=p),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",$v,[v(x,{onClick:ji},{default:y(()=>e[298]||(e[298]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:b,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[299]||(e[299]=[K("确定")])),_:1})])]),default:y(()=>[l("div",jv,[v(Ht,{class:"document-el-row"},{default:y(()=>[v(jt,{span:3},{default:y(()=>[l("div",Fv,[v(Jl,{ref_key:"treeListRef",ref:ll,treeData:Gi.value,onTreeClick:sl,onUpdateDocument:dl,onDeleteDocument:ul},null,8,["treeData"])])]),_:1}),v(jt,{span:21},{default:y(()=>[l("div",Lv,[l("div",Qv,[v(L,{modelValue:no.value,"onUpdate:modelValue":e[79]||(e[79]=p=>no.value=p),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Ko,onKeyup:Ul(Ko,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:y(()=>[v(x,{onClick:Ko},{default:y(()=>[v(P,null,{default:y(()=>[v(ye(Ql))]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(me,{modelValue:lt.question_form,"onUpdate:modelValue":e[80]||(e[80]=p=>lt.question_form=p),placeholder:"题目类型",clearable:"",onChange:Ko,style:{width:"120px"}},{default:y(()=>[v(X,{label:"开放问题",value:0}),v(X,{label:"单选题",value:1}),v(X,{label:"多选题",value:2}),v(X,{label:"看图选答案",value:3}),v(X,{label:"得分题",value:4}),v(X,{label:"追加型开放问题",value:5}),v(X,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),l("div",Gv,[v(bl,{data:rt.value,style:{width:"100%"},onSelectionChange:Ur},{default:y(()=>[v(ai,{type:"selection",width:"55"}),v(ai,{prop:"question",label:"题目标题"}),v(ai,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),l("div",zv,[v(Sl,{"current-page":lt.page,"onUpdate:currentPage":e[81]||(e[81]=p=>lt.page=p),"page-size":lt.pageSize,"onUpdate:pageSize":e[82]||(e[82]=p=>lt.pageSize=p),total:Jt.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:g,onCurrentChange:h},null,8,["current-page","page-size","total"])])])]),_:1})]),_:1})])]),_:1},8,["modelValue"]),v(Dt,{title:lo.value>=0?"编辑候选人提问环节":"配置候选人提问环节",modelValue:Vn.value,"onUpdate:modelValue":e[87]||(e[87]=p=>Vn.value=p),width:"600px","close-on-click-modal":!1,class:"candidate-questions-dialog"},{footer:y(()=>[l("span",Xv,[v(x,{onClick:Le},{default:y(()=>e[306]||(e[306]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:xe},{default:y(()=>e[307]||(e[307]=[K("确认")])),_:1})])]),default:y(()=>[l("div",Jv,[l("div",Wv,[e[300]||(e[300]=l("div",{class:"form-label"},[K(" 环节名称"),l("span",{class:"required"},"*")],-1)),v(L,{modelValue:Pe.title,"onUpdate:modelValue":e[84]||(e[84]=p=>Pe.title=p),placeholder:"请输入环节名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Hv,[e[301]||(e[301]=l("div",{class:"form-label"},[K(" 提问时长"),l("span",{class:"required"},"*")],-1)),v(pn,{modelValue:Pe.duration,"onUpdate:modelValue":e[85]||(e[85]=p=>Pe.duration=p),min:1,max:30,step:1,"controls-position":"right",style:{width:"200px"}},null,8,["modelValue"]),e[302]||(e[302]=l("span",{class:"form-unit"},"分钟",-1)),e[303]||(e[303]=l("div",{class:"form-tip"},"候选人可用于提问的总时长",-1))]),l("div",Yv,[e[304]||(e[304]=l("div",{class:"form-label"},"环节描述",-1)),v(L,{modelValue:Pe.description,"onUpdate:modelValue":e[86]||(e[86]=p=>Pe.description=p),type:"textarea",rows:"3",placeholder:"请输入环节描述",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),e[305]||(e[305]=l("div",{class:"form-tip"},"向候选人说明此环节的目的和意义",-1))])])]),_:1},8,["title","modelValue"]),v(Dt,{modelValue:ko.value,"onUpdate:modelValue":e[91]||(e[91]=p=>ko.value=p),title:"肢体检测配置",width:"600px","close-on-click-modal":!1},{footer:y(()=>[l("span",Zv,[v(x,{onClick:al,size:"small"},{default:y(()=>e[312]||(e[312]=[K("取消")])),_:1}),v(x,{type:"primary",onClick:rl,size:"small"},{default:y(()=>e[313]||(e[313]=[K("确定")])),_:1})])]),default:y(()=>[v(xl,{model:nn.value,"label-width":"120px"},{default:y(()=>[v(ri,{label:"检测时长"},{default:y(()=>[v(pn,{modelValue:nn.value.duration,"onUpdate:modelValue":e[88]||(e[88]=p=>nn.value.duration=p),min:1,max:30,step:1,"controls-position":"right"},null,8,["modelValue"]),e[308]||(e[308]=K(" 分钟 "))]),_:1}),v(ri,{label:"检测项目"},{default:y(()=>[v(El,{modelValue:nn.value.detectionItems,"onUpdate:modelValue":e[89]||(e[89]=p=>nn.value.detectionItems=p)},{default:y(()=>[v(Wt,{label:"face"},{default:y(()=>e[309]||(e[309]=[K("面部表情")])),_:1}),v(Wt,{label:"pose"},{default:y(()=>e[310]||(e[310]=[K("肢体姿态")])),_:1}),v(Wt,{label:"gesture"},{default:y(()=>e[311]||(e[311]=[K("手势动作")])),_:1})]),_:1},8,["modelValue"])]),_:1}),v(ri,{label:"提示文本"},{default:y(()=>[v(L,{modelValue:nn.value.promptText,"onUpdate:modelValue":e[90]||(e[90]=p=>nn.value.promptText=p),type:"textarea",rows:3,placeholder:"请输入提示文本"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),up=Wl(qv,[["__scopeId","data-v-8127e420"]]);export{up as default};
|