| 12345678910 |
- import{a as ts,r as G,aH as ns,aB as os,_ as et,f as Eo,q as is,W as as,w as va,aj as Ue,at as rs,c as $,o as U,b as l,S as m,K as y,P as k,Q as se,u as fe,M as De,J as Ae,R as We,a9 as qe,L as jn,G as Pt,T as pa,Y as ls,F as ss,a7 as ds,t as _o}from"./vue.D1BjjNmv.js";import{b as us,c as cs,C as fs,U as bt}from"./api.BDfMoSGE.js";import{ab as vs,g as ps,ac as ms,c as gs,E as A,a1 as St,$ as In,ad as hs,ae as ma,C as ga,af as xi,S as Kt,ag as ys,A as bs,F as ha}from"./index.CL7yl-Wb.js";import{G as wn,a as Ss,b as Es,Q as xs,c as nn,A as Ii,d as ya,e as wi,U as tt,C as xo,D as ba,f as Ci,g as Sa,h as Is,i as ws,B as Cs,S as As,j as Os,k as Ea,l as xa,m as Ts,n as Ds,o as Ps}from"./QuestionBankForm.BqAesEUq.js";import{g as Rs}from"./pcaData.5HEg6BqW.js";import Vs from"./BlankAnswerEditor.C84NgMQM.js";import{A as Us,a as ks}from"./api.RkBqaXeZ.js";import Ks from"./treeList.CgjooEq0.js";import{G as Ia,a as wa,b as Ca}from"./api.CnUXTblF.js";import{_ as Ms}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QuestionOptionsEditor.e0gHieJV.js";const Aa="/assets/sheng.BKW1Im68.png",Ns="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";var ja={exports:{}};/**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function Oa(c,o){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(c);o&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(c,n).enumerable})),i.push.apply(i,u)}return i}function qt(c){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?Oa(Object(i),!0).forEach(function(u){Bs(c,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Oa(Object(i)).forEach(function(u){Object.defineProperty(c,u,Object.getOwnPropertyDescriptor(i,u))})}return c}function ri(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ri=function(o){return typeof o}:ri=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ri(c)}function Bs(c,o,i){return o in c?Object.defineProperty(c,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):c[o]=i,c}function Nt(){return Nt=Object.assign||function(c){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(c[u]=i[u])}return c},Nt.apply(this,arguments)}function Fs(c,o){if(c==null)return{};var i={},u=Object.keys(c),n,s;for(s=0;s<u.length;s++)n=u[s],!(o.indexOf(n)>=0)&&(i[n]=c[n]);return i}function Ls(c,o){if(c==null)return{};var i=Fs(c,o),u,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);for(n=0;n<s.length;n++)u=s[n],!(o.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(c,u)&&(i[u]=c[u])}return i}function js(c){return Qs(c)||Gs(c)||zs(c)||$s()}function Qs(c){if(Array.isArray(c))return Mi(c)}function Gs(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function zs(c,o){if(c){if(typeof c=="string")return Mi(c,o);var i=Object.prototype.toString.call(c).slice(8,-1);if(i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set")return Array.from(c);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Mi(c,o)}}function Mi(c,o){(o==null||o>c.length)&&(o=c.length);for(var i=0,u=new Array(o);i<o;i++)u[i]=c[i];return u}function $s(){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 Js="1.14.0";function on(c){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(c)}var an=on(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ko=on(/Edge/i),Ta=on(/firefox/i),Po=on(/safari/i)&&!on(/chrome/i)&&!on(/android/i),Qa=on(/iP(ad|od|hone)/i),Ws=on(/chrome/i)&&on(/android/i),Ga={capture:!1,passive:!1};function Ie(c,o,i){c.addEventListener(o,i,!an&&Ga)}function Se(c,o,i){c.removeEventListener(o,i,!an&&Ga)}function ci(c,o){if(o){if(o[0]===">"&&(o=o.substring(1)),c)try{if(c.matches)return c.matches(o);if(c.msMatchesSelector)return c.msMatchesSelector(o);if(c.webkitMatchesSelector)return c.webkitMatchesSelector(o)}catch{return!1}return!1}}function Hs(c){return c.host&&c!==document&&c.host.nodeType?c.host:c.parentNode}function Gt(c,o,i,u){if(c){i=i||document;do{if(o!=null&&(o[0]===">"?c.parentNode===i&&ci(c,o):ci(c,o))||u&&c===i)return c;if(c===i)break}while(c=Hs(c))}return null}var Da=/\s+/g;function He(c,o,i){if(c&&o)if(c.classList)c.classList[i?"add":"remove"](o);else{var u=(" "+c.className+" ").replace(Da," ").replace(" "+o+" "," ");c.className=(u+(i?" "+o:"")).replace(Da," ")}}function ae(c,o,i){var u=c&&c.style;if(u){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(c,""):c.currentStyle&&(i=c.currentStyle),o===void 0?i:i[o];!(o in u)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),u[o]=i+(typeof i=="string"?"":"px")}}function Tn(c,o){var i="";if(typeof c=="string")i=c;else do{var u=ae(c,"transform");u&&u!=="none"&&(i=u+" "+i)}while(!o&&(c=c.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(i)}function za(c,o,i){if(c){var u=c.getElementsByTagName(o),n=0,s=u.length;if(i)for(;n<s;n++)i(u[n],n);return u}return[]}function Ht(){var c=document.scrollingElement;return c||document.documentElement}function $e(c,o,i,u,n){if(!(!c.getBoundingClientRect&&c!==window)){var s,t,r,d,f,v,p;if(c!==window&&c.parentNode&&c!==Ht()?(s=c.getBoundingClientRect(),t=s.top,r=s.left,d=s.bottom,f=s.right,v=s.height,p=s.width):(t=0,r=0,d=window.innerHeight,f=window.innerWidth,v=window.innerHeight,p=window.innerWidth),(o||i)&&c!==window&&(n=n||c.parentNode,!an))do if(n&&n.getBoundingClientRect&&(ae(n,"transform")!=="none"||i&&ae(n,"position")!=="static")){var h=n.getBoundingClientRect();t-=h.top+parseInt(ae(n,"border-top-width")),r-=h.left+parseInt(ae(n,"border-left-width")),d=t+s.height,f=r+s.width;break}while(n=n.parentNode);if(u&&c!==window){var b=Tn(n||c),S=b&&b.a,I=b&&b.d;b&&(t/=I,r/=S,p/=S,v/=I,d=t+v,f=r+p)}return{top:t,left:r,bottom:d,right:f,width:p,height:v}}}function Pa(c,o,i){for(var u=vn(c,!0),n=$e(c)[o];u;){var s=$e(u)[i],t=void 0;if(t=n>=s,!t)return u;if(u===Ht())break;u=vn(u,!1)}return!1}function Wn(c,o,i,u){for(var n=0,s=0,t=c.children;s<t.length;){if(t[s].style.display!=="none"&&t[s]!==pe.ghost&&(u||t[s]!==pe.dragged)&&Gt(t[s],i.draggable,c,!1)){if(n===o)return t[s];n++}s++}return null}function ji(c,o){for(var i=c.lastElementChild;i&&(i===pe.ghost||ae(i,"display")==="none"||o&&!ci(i,o));)i=i.previousElementSibling;return i||null}function Ze(c,o){var i=0;if(!c||!c.parentNode)return-1;for(;c=c.previousElementSibling;)c.nodeName.toUpperCase()!=="TEMPLATE"&&c!==pe.clone&&(!o||ci(c,o))&&i++;return i}function Ra(c){var o=0,i=0,u=Ht();if(c)do{var n=Tn(c),s=n.a,t=n.d;o+=c.scrollLeft*s,i+=c.scrollTop*t}while(c!==u&&(c=c.parentNode));return[o,i]}function qs(c,o){for(var i in c)if(c.hasOwnProperty(i)){for(var u in o)if(o.hasOwnProperty(u)&&o[u]===c[i][u])return Number(i)}return-1}function vn(c,o){if(!c||!c.getBoundingClientRect)return Ht();var i=c,u=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var n=ae(i);if(i.clientWidth<i.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Ht();if(u||o)return i;u=!0}}while(i=i.parentNode);return Ht()}function Ys(c,o){if(c&&o)for(var i in o)o.hasOwnProperty(i)&&(c[i]=o[i]);return c}function Ai(c,o){return Math.round(c.top)===Math.round(o.top)&&Math.round(c.left)===Math.round(o.left)&&Math.round(c.height)===Math.round(o.height)&&Math.round(c.width)===Math.round(o.width)}var Ro;function $a(c,o){return function(){if(!Ro){var i=arguments,u=this;i.length===1?c.call(u,i[0]):c.apply(u,i),Ro=setTimeout(function(){Ro=void 0},o)}}}function Xs(){clearTimeout(Ro),Ro=void 0}function Ja(c,o,i){c.scrollLeft+=o,c.scrollTop+=i}function Qi(c){var o=window.Polymer,i=window.jQuery||window.Zepto;return o&&o.dom?o.dom(c).cloneNode(!0):i?i(c).clone(!0)[0]:c.cloneNode(!0)}function Va(c,o){ae(c,"position","absolute"),ae(c,"top",o.top),ae(c,"left",o.left),ae(c,"width",o.width),ae(c,"height",o.height)}function Oi(c){ae(c,"position",""),ae(c,"top",""),ae(c,"left",""),ae(c,"width",""),ae(c,"height","")}var gt="Sortable"+new Date().getTime();function Zs(){var c=[],o;return{captureAnimationState:function(){if(c=[],!!this.options.animation){var u=[].slice.call(this.el.children);u.forEach(function(n){if(!(ae(n,"display")==="none"||n===pe.ghost)){c.push({target:n,rect:$e(n)});var s=qt({},c[c.length-1].rect);if(n.thisAnimationDuration){var t=Tn(n,!0);t&&(s.top-=t.f,s.left-=t.e)}n.fromRect=s}})}},addAnimationState:function(u){c.push(u)},removeAnimationState:function(u){c.splice(qs(c,{target:u}),1)},animateAll:function(u){var n=this;if(!this.options.animation){clearTimeout(o),typeof u=="function"&&u();return}var s=!1,t=0;c.forEach(function(r){var d=0,f=r.target,v=f.fromRect,p=$e(f),h=f.prevFromRect,b=f.prevToRect,S=r.rect,I=Tn(f,!0);I&&(p.top-=I.f,p.left-=I.e),f.toRect=p,f.thisAnimationDuration&&Ai(h,p)&&!Ai(v,p)&&(S.top-p.top)/(S.left-p.left)===(v.top-p.top)/(v.left-p.left)&&(d=ed(S,h,b,n.options)),Ai(p,v)||(f.prevFromRect=v,f.prevToRect=p,d||(d=n.options.animation),n.animate(f,S,p,d)),d&&(s=!0,t=Math.max(t,d),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},d),f.thisAnimationDuration=d)}),clearTimeout(o),s?o=setTimeout(function(){typeof u=="function"&&u()},t):typeof u=="function"&&u(),c=[]},animate:function(u,n,s,t){if(t){ae(u,"transition",""),ae(u,"transform","");var r=Tn(this.el),d=r&&r.a,f=r&&r.d,v=(n.left-s.left)/(d||1),p=(n.top-s.top)/(f||1);u.animatingX=!!v,u.animatingY=!!p,ae(u,"transform","translate3d("+v+"px,"+p+"px,0)"),this.forRepaintDummy=_s(u),ae(u,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),ae(u,"transform","translate3d(0,0,0)"),typeof u.animated=="number"&&clearTimeout(u.animated),u.animated=setTimeout(function(){ae(u,"transition",""),ae(u,"transform",""),u.animated=!1,u.animatingX=!1,u.animatingY=!1},t)}}}}function _s(c){return c.offsetWidth}function ed(c,o,i,u){return Math.sqrt(Math.pow(o.top-c.top,2)+Math.pow(o.left-c.left,2))/Math.sqrt(Math.pow(o.top-i.top,2)+Math.pow(o.left-i.left,2))*u.animation}var Qn=[],Ti={initializeByDefault:!0},Mo={mount:function(o){for(var i in Ti)Ti.hasOwnProperty(i)&&!(i in o)&&(o[i]=Ti[i]);Qn.forEach(function(u){if(u.pluginName===o.pluginName)throw"Sortable: Cannot mount plugin ".concat(o.pluginName," more than once")}),Qn.push(o)},pluginEvent:function(o,i,u){var n=this;this.eventCanceled=!1,u.cancel=function(){n.eventCanceled=!0};var s=o+"Global";Qn.forEach(function(t){i[t.pluginName]&&(i[t.pluginName][s]&&i[t.pluginName][s](qt({sortable:i},u)),i.options[t.pluginName]&&i[t.pluginName][o]&&i[t.pluginName][o](qt({sortable:i},u)))})},initializePlugins:function(o,i,u,n){Qn.forEach(function(r){var d=r.pluginName;if(!(!o.options[d]&&!r.initializeByDefault)){var f=new r(o,i,o.options);f.sortable=o,f.options=o.options,o[d]=f,Nt(u,f.defaults)}});for(var s in o.options)if(o.options.hasOwnProperty(s)){var t=this.modifyOption(o,s,o.options[s]);typeof t<"u"&&(o.options[s]=t)}},getEventProperties:function(o,i){var u={};return Qn.forEach(function(n){typeof n.eventProperties=="function"&&Nt(u,n.eventProperties.call(i[n.pluginName],o))}),u},modifyOption:function(o,i,u){var n;return Qn.forEach(function(s){o[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[i]=="function"&&(n=s.optionListeners[i].call(o[s.pluginName],u))}),n}};function Ao(c){var o=c.sortable,i=c.rootEl,u=c.name,n=c.targetEl,s=c.cloneEl,t=c.toEl,r=c.fromEl,d=c.oldIndex,f=c.newIndex,v=c.oldDraggableIndex,p=c.newDraggableIndex,h=c.originalEvent,b=c.putSortable,S=c.extraEventProperties;if(o=o||i&&i[gt],!!o){var I,w=o.options,D="on"+u.charAt(0).toUpperCase()+u.substr(1);window.CustomEvent&&!an&&!Ko?I=new CustomEvent(u,{bubbles:!0,cancelable:!0}):(I=document.createEvent("Event"),I.initEvent(u,!0,!0)),I.to=t||i,I.from=r||i,I.item=n||i,I.clone=s,I.oldIndex=d,I.newIndex=f,I.oldDraggableIndex=v,I.newDraggableIndex=p,I.originalEvent=h,I.pullMode=b?b.lastPutMode:void 0;var P=qt(qt({},S),Mo.getEventProperties(u,o));for(var B in P)I[B]=P[B];i&&i.dispatchEvent(I),w[D]&&w[D].call(o,I)}}var td=["evt"],It=function(o,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=u.evt,s=Ls(u,td);Mo.pluginEvent.bind(pe)(o,i,qt({dragEl:H,parentEl:Ye,ghostEl:ye,rootEl:ze,nextEl:On,lastDownEl:li,cloneEl:Xe,cloneHidden:fn,dragStarted:Oo,putSortable:ut,activeSortable:pe.active,originalEvent:n,oldIndex:Jn,oldDraggableIndex:Vo,newIndex:Vt,newDraggableIndex:cn,hideGhostForTarget:Ya,unhideGhostForTarget:Xa,cloneNowHidden:function(){fn=!0},cloneNowShown:function(){fn=!1},dispatchSortableEvent:function(r){Et({sortable:i,name:r,originalEvent:n})}},s))};function Et(c){Ao(qt({putSortable:ut,cloneEl:Xe,targetEl:H,rootEl:ze,oldIndex:Jn,oldDraggableIndex:Vo,newIndex:Vt,newDraggableIndex:cn},c))}var H,Ye,ye,ze,On,li,Xe,fn,Jn,Vt,Vo,cn,ei,ut,$n=!1,fi=!1,vi=[],Cn,jt,Di,Pi,Ua,ka,Oo,Gn,Uo,ko=!1,ti=!1,si,mt,Ri=[],Ni=!1,pi=[],gi=typeof document<"u",ni=Qa,Ka=Ko||an?"cssFloat":"float",nd=gi&&!Ws&&!Qa&&"draggable"in document.createElement("div"),Wa=function(){if(gi){if(an)return!1;var c=document.createElement("x");return c.style.cssText="pointer-events:auto",c.style.pointerEvents==="auto"}}(),Ha=function(o,i){var u=ae(o),n=parseInt(u.width)-parseInt(u.paddingLeft)-parseInt(u.paddingRight)-parseInt(u.borderLeftWidth)-parseInt(u.borderRightWidth),s=Wn(o,0,i),t=Wn(o,1,i),r=s&&ae(s),d=t&&ae(t),f=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+$e(s).width,v=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+$e(t).width;if(u.display==="flex")return u.flexDirection==="column"||u.flexDirection==="column-reverse"?"vertical":"horizontal";if(u.display==="grid")return u.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return t&&(d.clear==="both"||d.clear===p)?"vertical":"horizontal"}return s&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||f>=n&&u[Ka]==="none"||t&&u[Ka]==="none"&&f+v>n)?"vertical":"horizontal"},od=function(o,i,u){var n=u?o.left:o.top,s=u?o.right:o.bottom,t=u?o.width:o.height,r=u?i.left:i.top,d=u?i.right:i.bottom,f=u?i.width:i.height;return n===r||s===d||n+t/2===r+f/2},id=function(o,i){var u;return vi.some(function(n){var s=n[gt].options.emptyInsertThreshold;if(!(!s||ji(n))){var t=$e(n),r=o>=t.left-s&&o<=t.right+s,d=i>=t.top-s&&i<=t.bottom+s;if(r&&d)return u=n}}),u},qa=function(o){function i(s,t){return function(r,d,f,v){var p=r.options.group.name&&d.options.group.name&&r.options.group.name===d.options.group.name;if(s==null&&(t||p))return!0;if(s==null||s===!1)return!1;if(t&&s==="clone")return s;if(typeof s=="function")return i(s(r,d,f,v),t)(r,d,f,v);var h=(t?r:d).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var u={},n=o.group;(!n||ri(n)!="object")&&(n={name:n}),u.name=n.name,u.checkPull=i(n.pull,!0),u.checkPut=i(n.put),u.revertClone=n.revertClone,o.group=u},Ya=function(){!Wa&&ye&&ae(ye,"display","none")},Xa=function(){!Wa&&ye&&ae(ye,"display","")};gi&&document.addEventListener("click",function(c){if(fi)return c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),fi=!1,!1},!0);var An=function(o){if(H){o=o.touches?o.touches[0]:o;var i=id(o.clientX,o.clientY);if(i){var u={};for(var n in o)o.hasOwnProperty(n)&&(u[n]=o[n]);u.target=u.rootEl=i,u.preventDefault=void 0,u.stopPropagation=void 0,i[gt]._onDragOver(u)}}},ad=function(o){H&&H.parentNode[gt]._isOutsideThisEl(o.target)};function pe(c,o){if(!(c&&c.nodeType&&c.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(c));this.el=c,this.options=o=Nt({},o),c[gt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(c.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ha(c,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,r){t.setData("Text",r.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:pe.supportPointer!==!1&&"PointerEvent"in window&&!Po,emptyInsertThreshold:5};Mo.initializePlugins(this,c,i);for(var u in i)!(u in o)&&(o[u]=i[u]);qa(o);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=o.forceFallback?!1:nd,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?Ie(c,"pointerdown",this._onTapStart):(Ie(c,"mousedown",this._onTapStart),Ie(c,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ie(c,"dragover",this),Ie(c,"dragenter",this)),vi.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Nt(this,Zs())}pe.prototype={constructor:pe,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(Gn=null)},_getDirection:function(o,i){return typeof this.options.direction=="function"?this.options.direction.call(this,o,i,H):this.options.direction},_onTapStart:function(o){if(o.cancelable){var i=this,u=this.el,n=this.options,s=n.preventOnFilter,t=o.type,r=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,d=(r||o).target,f=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||d,v=n.filter;if(vd(u),!H&&!(/mousedown|pointerdown/.test(t)&&o.button!==0||n.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Po&&d&&d.tagName.toUpperCase()==="SELECT")&&(d=Gt(d,n.draggable,u,!1),!(d&&d.animated)&&li!==d)){if(Jn=Ze(d),Vo=Ze(d,n.draggable),typeof v=="function"){if(v.call(this,o,d,this)){Et({sortable:i,rootEl:f,name:"filter",targetEl:d,toEl:u,fromEl:u}),It("filter",i,{evt:o}),s&&o.cancelable&&o.preventDefault();return}}else if(v&&(v=v.split(",").some(function(p){if(p=Gt(f,p.trim(),u,!1),p)return Et({sortable:i,rootEl:p,name:"filter",targetEl:d,fromEl:u,toEl:u}),It("filter",i,{evt:o}),!0}),v)){s&&o.cancelable&&o.preventDefault();return}n.handle&&!Gt(f,n.handle,u,!1)||this._prepareDragStart(o,r,d)}}},_prepareDragStart:function(o,i,u){var n=this,s=n.el,t=n.options,r=s.ownerDocument,d;if(u&&!H&&u.parentNode===s){var f=$e(u);if(ze=s,H=u,Ye=H.parentNode,On=H.nextSibling,li=u,ei=t.group,pe.dragged=H,Cn={target:H,clientX:(i||o).clientX,clientY:(i||o).clientY},Ua=Cn.clientX-f.left,ka=Cn.clientY-f.top,this._lastX=(i||o).clientX,this._lastY=(i||o).clientY,H.style["will-change"]="all",d=function(){if(It("delayEnded",n,{evt:o}),pe.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Ta&&n.nativeDraggable&&(H.draggable=!0),n._triggerDragStart(o,i),Et({sortable:n,name:"choose",originalEvent:o}),He(H,t.chosenClass,!0)},t.ignore.split(",").forEach(function(v){za(H,v.trim(),Vi)}),Ie(r,"dragover",An),Ie(r,"mousemove",An),Ie(r,"touchmove",An),Ie(r,"mouseup",n._onDrop),Ie(r,"touchend",n._onDrop),Ie(r,"touchcancel",n._onDrop),Ta&&this.nativeDraggable&&(this.options.touchStartThreshold=4,H.draggable=!0),It("delayStart",this,{evt:o}),t.delay&&(!t.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(Ko||an))){if(pe.eventCanceled){this._onDrop();return}Ie(r,"mouseup",n._disableDelayedDrag),Ie(r,"touchend",n._disableDelayedDrag),Ie(r,"touchcancel",n._disableDelayedDrag),Ie(r,"mousemove",n._delayedDragTouchMoveHandler),Ie(r,"touchmove",n._delayedDragTouchMoveHandler),t.supportPointer&&Ie(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(d,t.delay)}else d()}},_delayedDragTouchMoveHandler:function(o){var i=o.touches?o.touches[0]:o;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){H&&Vi(H),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;Se(o,"mouseup",this._disableDelayedDrag),Se(o,"touchend",this._disableDelayedDrag),Se(o,"touchcancel",this._disableDelayedDrag),Se(o,"mousemove",this._delayedDragTouchMoveHandler),Se(o,"touchmove",this._delayedDragTouchMoveHandler),Se(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,i){i=i||o.pointerType=="touch"&&o,!this.nativeDraggable||i?this.options.supportPointer?Ie(document,"pointermove",this._onTouchMove):i?Ie(document,"touchmove",this._onTouchMove):Ie(document,"mousemove",this._onTouchMove):(Ie(H,"dragend",this),Ie(ze,"dragstart",this._onDragStart));try{document.selection?di(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(o,i){if($n=!1,ze&&H){It("dragStarted",this,{evt:i}),this.nativeDraggable&&Ie(document,"dragover",ad);var u=this.options;!o&&He(H,u.dragClass,!1),He(H,u.ghostClass,!0),pe.active=this,o&&this._appendGhost(),Et({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(jt){this._lastX=jt.clientX,this._lastY=jt.clientY,Ya();for(var o=document.elementFromPoint(jt.clientX,jt.clientY),i=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(jt.clientX,jt.clientY),o!==i);)i=o;if(H.parentNode[gt]._isOutsideThisEl(o),i)do{if(i[gt]){var u=void 0;if(u=i[gt]._onDragOver({clientX:jt.clientX,clientY:jt.clientY,target:o,rootEl:i}),u&&!this.options.dragoverBubble)break}o=i}while(i=i.parentNode);Xa()}},_onTouchMove:function(o){if(Cn){var i=this.options,u=i.fallbackTolerance,n=i.fallbackOffset,s=o.touches?o.touches[0]:o,t=ye&&Tn(ye,!0),r=ye&&t&&t.a,d=ye&&t&&t.d,f=ni&&mt&&Ra(mt),v=(s.clientX-Cn.clientX+n.x)/(r||1)+(f?f[0]-Ri[0]:0)/(r||1),p=(s.clientY-Cn.clientY+n.y)/(d||1)+(f?f[1]-Ri[1]:0)/(d||1);if(!pe.active&&!$n){if(u&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<u)return;this._onDragStart(o,!0)}if(ye){t?(t.e+=v-(Di||0),t.f+=p-(Pi||0)):t={a:1,b:0,c:0,d:1,e:v,f:p};var h="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");ae(ye,"webkitTransform",h),ae(ye,"mozTransform",h),ae(ye,"msTransform",h),ae(ye,"transform",h),Di=v,Pi=p,jt=s}o.cancelable&&o.preventDefault()}},_appendGhost:function(){if(!ye){var o=this.options.fallbackOnBody?document.body:ze,i=$e(H,!0,ni,!0,o),u=this.options;if(ni){for(mt=o;ae(mt,"position")==="static"&&ae(mt,"transform")==="none"&&mt!==document;)mt=mt.parentNode;mt!==document.body&&mt!==document.documentElement?(mt===document&&(mt=Ht()),i.top+=mt.scrollTop,i.left+=mt.scrollLeft):mt=Ht(),Ri=Ra(mt)}ye=H.cloneNode(!0),He(ye,u.ghostClass,!1),He(ye,u.fallbackClass,!0),He(ye,u.dragClass,!0),ae(ye,"transition",""),ae(ye,"transform",""),ae(ye,"box-sizing","border-box"),ae(ye,"margin",0),ae(ye,"top",i.top),ae(ye,"left",i.left),ae(ye,"width",i.width),ae(ye,"height",i.height),ae(ye,"opacity","0.8"),ae(ye,"position",ni?"absolute":"fixed"),ae(ye,"zIndex","100000"),ae(ye,"pointerEvents","none"),pe.ghost=ye,o.appendChild(ye),ae(ye,"transform-origin",Ua/parseInt(ye.style.width)*100+"% "+ka/parseInt(ye.style.height)*100+"%")}},_onDragStart:function(o,i){var u=this,n=o.dataTransfer,s=u.options;if(It("dragStart",this,{evt:o}),pe.eventCanceled){this._onDrop();return}It("setupClone",this),pe.eventCanceled||(Xe=Qi(H),Xe.draggable=!1,Xe.style["will-change"]="",this._hideClone(),He(Xe,this.options.chosenClass,!1),pe.clone=Xe),u.cloneId=di(function(){It("clone",u),!pe.eventCanceled&&(u.options.removeCloneOnHide||ze.insertBefore(Xe,H),u._hideClone(),Et({sortable:u,name:"clone"}))}),!i&&He(H,s.dragClass,!0),i?(fi=!0,u._loopId=setInterval(u._emulateDragOver,50)):(Se(document,"mouseup",u._onDrop),Se(document,"touchend",u._onDrop),Se(document,"touchcancel",u._onDrop),n&&(n.effectAllowed="move",s.setData&&s.setData.call(u,n,H)),Ie(document,"drop",u),ae(H,"transform","translateZ(0)")),$n=!0,u._dragStartId=di(u._dragStarted.bind(u,i,o)),Ie(document,"selectstart",u),Oo=!0,Po&&ae(document.body,"user-select","none")},_onDragOver:function(o){var i=this.el,u=o.target,n,s,t,r=this.options,d=r.group,f=pe.active,v=ei===d,p=r.sort,h=ut||f,b,S=this,I=!1;if(Ni)return;function w(be,ke){It(be,S,qt({evt:o,isOwner:v,axis:b?"vertical":"horizontal",revert:t,dragRect:n,targetRect:s,canSort:p,fromSortable:h,target:u,completed:P,onMove:function(Qe,re){return oi(ze,i,H,n,Qe,$e(Qe),o,re)},changed:B},ke))}function D(){w("dragOverAnimationCapture"),S.captureAnimationState(),S!==h&&h.captureAnimationState()}function P(be){return w("dragOverCompleted",{insertion:be}),be&&(v?f._hideClone():f._showClone(S),S!==h&&(He(H,ut?ut.options.ghostClass:f.options.ghostClass,!1),He(H,r.ghostClass,!0)),ut!==S&&S!==pe.active?ut=S:S===pe.active&&ut&&(ut=null),h===S&&(S._ignoreWhileAnimating=u),S.animateAll(function(){w("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(u===H&&!H.animated||u===i&&!u.animated)&&(Gn=null),!r.dragoverBubble&&!o.rootEl&&u!==document&&(H.parentNode[gt]._isOutsideThisEl(o.target),!be&&An(o)),!r.dragoverBubble&&o.stopPropagation&&o.stopPropagation(),I=!0}function B(){Vt=Ze(H),cn=Ze(H,r.draggable),Et({sortable:S,name:"change",toEl:i,newIndex:Vt,newDraggableIndex:cn,originalEvent:o})}if(o.preventDefault!==void 0&&o.cancelable&&o.preventDefault(),u=Gt(u,r.draggable,i,!0),w("dragOver"),pe.eventCanceled)return I;if(H.contains(o.target)||u.animated&&u.animatingX&&u.animatingY||S._ignoreWhileAnimating===u)return P(!1);if(fi=!1,f&&!r.disabled&&(v?p||(t=Ye!==ze):ut===this||(this.lastPutMode=ei.checkPull(this,f,H,o))&&d.checkPut(this,f,H,o))){if(b=this._getDirection(o,u)==="vertical",n=$e(H),w("dragOverValid"),pe.eventCanceled)return I;if(t)return Ye=ze,D(),this._hideClone(),w("revert"),pe.eventCanceled||(On?ze.insertBefore(H,On):ze.appendChild(H)),P(!0);var V=ji(i,r.draggable);if(!V||dd(o,b,this)&&!V.animated){if(V===H)return P(!1);if(V&&i===o.target&&(u=V),u&&(s=$e(u)),oi(ze,i,H,n,u,s,o,!!u)!==!1)return D(),i.appendChild(H),Ye=i,B(),P(!0)}else if(V&&sd(o,b,this)){var L=Wn(i,0,r,!0);if(L===H)return P(!1);if(u=L,s=$e(u),oi(ze,i,H,n,u,s,o,!1)!==!1)return D(),i.insertBefore(H,L),Ye=i,B(),P(!0)}else if(u.parentNode===i){s=$e(u);var K=0,Z,ne=H.parentNode!==i,M=!od(H.animated&&H.toRect||n,u.animated&&u.toRect||s,b),Y=b?"top":"left",ee=Pa(u,"top","top")||Pa(H,"top","top"),le=ee?ee.scrollTop:void 0;Gn!==u&&(Z=s[Y],ko=!1,ti=!M&&r.invertSwap||ne),K=ud(o,u,s,b,M?1:r.swapThreshold,r.invertedSwapThreshold==null?r.swapThreshold:r.invertedSwapThreshold,ti,Gn===u);var F;if(K!==0){var W=Ze(H);do W-=K,F=Ye.children[W];while(F&&(ae(F,"display")==="none"||F===ye))}if(K===0||F===u)return P(!1);Gn=u,Uo=K;var de=u.nextElementSibling,X=!1;X=K===1;var q=oi(ze,i,H,n,u,s,o,X);if(q!==!1)return(q===1||q===-1)&&(X=q===1),Ni=!0,setTimeout(ld,30),D(),X&&!de?i.appendChild(H):u.parentNode.insertBefore(H,X?de:u),ee&&Ja(ee,0,le-ee.scrollTop),Ye=H.parentNode,Z!==void 0&&!ti&&(si=Math.abs(Z-$e(u)[Y])),B(),P(!0)}if(i.contains(H))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",An),Se(document,"mousemove",An),Se(document,"touchmove",An)},_offUpEvents:function(){var o=this.el.ownerDocument;Se(o,"mouseup",this._onDrop),Se(o,"touchend",this._onDrop),Se(o,"pointerup",this._onDrop),Se(o,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(o){var i=this.el,u=this.options;if(Vt=Ze(H),cn=Ze(H,u.draggable),It("drop",this,{evt:o}),Ye=H&&H.parentNode,Vt=Ze(H),cn=Ze(H,u.draggable),pe.eventCanceled){this._nulling();return}$n=!1,ti=!1,ko=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Bi(this.cloneId),Bi(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Po&&ae(document.body,"user-select",""),ae(H,"transform",""),o&&(Oo&&(o.cancelable&&o.preventDefault(),!u.dropBubble&&o.stopPropagation()),ye&&ye.parentNode&&ye.parentNode.removeChild(ye),(ze===Ye||ut&&ut.lastPutMode!=="clone")&&Xe&&Xe.parentNode&&Xe.parentNode.removeChild(Xe),H&&(this.nativeDraggable&&Se(H,"dragend",this),Vi(H),H.style["will-change"]="",Oo&&!$n&&He(H,ut?ut.options.ghostClass:this.options.ghostClass,!1),He(H,this.options.chosenClass,!1),Et({sortable:this,name:"unchoose",toEl:Ye,newIndex:null,newDraggableIndex:null,originalEvent:o}),ze!==Ye?(Vt>=0&&(Et({rootEl:Ye,name:"add",toEl:Ye,fromEl:ze,originalEvent:o}),Et({sortable:this,name:"remove",toEl:Ye,originalEvent:o}),Et({rootEl:Ye,name:"sort",toEl:Ye,fromEl:ze,originalEvent:o}),Et({sortable:this,name:"sort",toEl:Ye,originalEvent:o})),ut&&ut.save()):Vt!==Jn&&Vt>=0&&(Et({sortable:this,name:"update",toEl:Ye,originalEvent:o}),Et({sortable:this,name:"sort",toEl:Ye,originalEvent:o})),pe.active&&((Vt==null||Vt===-1)&&(Vt=Jn,cn=Vo),Et({sortable:this,name:"end",toEl:Ye,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){It("nulling",this),ze=H=Ye=ye=On=Xe=li=fn=Cn=jt=Oo=Vt=cn=Jn=Vo=Gn=Uo=ut=ei=pe.dragged=pe.ghost=pe.clone=pe.active=null,pi.forEach(function(o){o.checked=!0}),pi.length=Di=Pi=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":H&&(this._onDragOver(o),rd(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],i,u=this.el.children,n=0,s=u.length,t=this.options;n<s;n++)i=u[n],Gt(i,t.draggable,this.el,!1)&&o.push(i.getAttribute(t.dataIdAttr)||fd(i));return o},sort:function(o,i){var u={},n=this.el;this.toArray().forEach(function(s,t){var r=n.children[t];Gt(r,this.options.draggable,n,!1)&&(u[s]=r)},this),i&&this.captureAnimationState(),o.forEach(function(s){u[s]&&(n.removeChild(u[s]),n.appendChild(u[s]))}),i&&this.animateAll()},save:function(){var o=this.options.store;o&&o.set&&o.set(this)},closest:function(o,i){return Gt(o,i||this.options.draggable,this.el,!1)},option:function(o,i){var u=this.options;if(i===void 0)return u[o];var n=Mo.modifyOption(this,o,i);typeof n<"u"?u[o]=n:u[o]=i,o==="group"&&qa(u)},destroy:function(){It("destroy",this);var o=this.el;o[gt]=null,Se(o,"mousedown",this._onTapStart),Se(o,"touchstart",this._onTapStart),Se(o,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(o,"dragover",this),Se(o,"dragenter",this)),Array.prototype.forEach.call(o.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),vi.splice(vi.indexOf(this.el),1),this.el=o=null},_hideClone:function(){if(!fn){if(It("hideClone",this),pe.eventCanceled)return;ae(Xe,"display","none"),this.options.removeCloneOnHide&&Xe.parentNode&&Xe.parentNode.removeChild(Xe),fn=!0}},_showClone:function(o){if(o.lastPutMode!=="clone"){this._hideClone();return}if(fn){if(It("showClone",this),pe.eventCanceled)return;H.parentNode==ze&&!this.options.group.revertClone?ze.insertBefore(Xe,H):On?ze.insertBefore(Xe,On):ze.appendChild(Xe),this.options.group.revertClone&&this.animate(H,Xe),ae(Xe,"display",""),fn=!1}}};function rd(c){c.dataTransfer&&(c.dataTransfer.dropEffect="move"),c.cancelable&&c.preventDefault()}function oi(c,o,i,u,n,s,t,r){var d,f=c[gt],v=f.options.onMove,p;return window.CustomEvent&&!an&&!Ko?d=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(d=document.createEvent("Event"),d.initEvent("move",!0,!0)),d.to=o,d.from=c,d.dragged=i,d.draggedRect=u,d.related=n||o,d.relatedRect=s||$e(o),d.willInsertAfter=r,d.originalEvent=t,c.dispatchEvent(d),v&&(p=v.call(f,d,t)),p}function Vi(c){c.draggable=!1}function ld(){Ni=!1}function sd(c,o,i){var u=$e(Wn(i.el,0,i.options,!0)),n=10;return o?c.clientX<u.left-n||c.clientY<u.top&&c.clientX<u.right:c.clientY<u.top-n||c.clientY<u.bottom&&c.clientX<u.left}function dd(c,o,i){var u=$e(ji(i.el,i.options.draggable)),n=10;return o?c.clientX>u.right+n||c.clientX<=u.right&&c.clientY>u.bottom&&c.clientX>=u.left:c.clientX>u.right&&c.clientY>u.top||c.clientX<=u.right&&c.clientY>u.bottom+n}function ud(c,o,i,u,n,s,t,r){var d=u?c.clientY:c.clientX,f=u?i.height:i.width,v=u?i.top:i.left,p=u?i.bottom:i.right,h=!1;if(!t){if(r&&si<f*n){if(!ko&&(Uo===1?d>v+f*s/2:d<p-f*s/2)&&(ko=!0),ko)h=!0;else if(Uo===1?d<v+si:d>p-si)return-Uo}else if(d>v+f*(1-n)/2&&d<p-f*(1-n)/2)return cd(o)}return h=h||t,h&&(d<v+f*s/2||d>p-f*s/2)?d>v+f/2?1:-1:0}function cd(c){return Ze(H)<Ze(c)?1:-1}function fd(c){for(var o=c.tagName+c.className+c.src+c.href+c.textContent,i=o.length,u=0;i--;)u+=o.charCodeAt(i);return u.toString(36)}function vd(c){pi.length=0;for(var o=c.getElementsByTagName("input"),i=o.length;i--;){var u=o[i];u.checked&&pi.push(u)}}function di(c){return setTimeout(c,0)}function Bi(c){return clearTimeout(c)}gi&&Ie(document,"touchmove",function(c){(pe.active||$n)&&c.cancelable&&c.preventDefault()});pe.utils={on:Ie,off:Se,css:ae,find:za,is:function(o,i){return!!Gt(o,i,o,!1)},extend:Ys,throttle:$a,closest:Gt,toggleClass:He,clone:Qi,index:Ze,nextTick:di,cancelNextTick:Bi,detectDirection:Ha,getChild:Wn};pe.get=function(c){return c[gt]};pe.mount=function(){for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];o[0].constructor===Array&&(o=o[0]),o.forEach(function(u){if(!u.prototype||!u.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(u));u.utils&&(pe.utils=qt(qt({},pe.utils),u.utils)),Mo.mount(u)})};pe.create=function(c,o){return new pe(c,o)};pe.version=Js;var _e=[],To,Fi,Li=!1,Ui,ki,mi,Do;function pd(){function c(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return c.prototype={dragStarted:function(i){var u=i.originalEvent;this.sortable.nativeDraggable?Ie(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ie(document,"pointermove",this._handleFallbackAutoScroll):u.touches?Ie(document,"touchmove",this._handleFallbackAutoScroll):Ie(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var u=i.originalEvent;!this.options.dragOverBubble&&!u.rootEl&&this._handleAutoScroll(u)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),Ma(),ui(),Xs()},nulling:function(){mi=Fi=To=Li=Do=Ui=ki=null,_e.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,u){var n=this,s=(i.touches?i.touches[0]:i).clientX,t=(i.touches?i.touches[0]:i).clientY,r=document.elementFromPoint(s,t);if(mi=i,u||this.options.forceAutoScrollFallback||Ko||an||Po){Ki(i,this.options,r,u);var d=vn(r,!0);Li&&(!Do||s!==Ui||t!==ki)&&(Do&&Ma(),Do=setInterval(function(){var f=vn(document.elementFromPoint(s,t),!0);f!==d&&(d=f,ui()),Ki(i,n.options,f,u)},10),Ui=s,ki=t)}else{if(!this.options.bubbleScroll||vn(r,!0)===Ht()){ui();return}Ki(i,this.options,vn(r,!1),!1)}}},Nt(c,{pluginName:"scroll",initializeByDefault:!0})}function ui(){_e.forEach(function(c){clearInterval(c.pid)}),_e=[]}function Ma(){clearInterval(Do)}var Ki=$a(function(c,o,i,u){if(o.scroll){var n=(c.touches?c.touches[0]:c).clientX,s=(c.touches?c.touches[0]:c).clientY,t=o.scrollSensitivity,r=o.scrollSpeed,d=Ht(),f=!1,v;Fi!==i&&(Fi=i,ui(),To=o.scroll,v=o.scrollFn,To===!0&&(To=vn(i,!0)));var p=0,h=To;do{var b=h,S=$e(b),I=S.top,w=S.bottom,D=S.left,P=S.right,B=S.width,V=S.height,L=void 0,K=void 0,Z=b.scrollWidth,ne=b.scrollHeight,M=ae(b),Y=b.scrollLeft,ee=b.scrollTop;b===d?(L=B<Z&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),K=V<ne&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(L=B<Z&&(M.overflowX==="auto"||M.overflowX==="scroll"),K=V<ne&&(M.overflowY==="auto"||M.overflowY==="scroll"));var le=L&&(Math.abs(P-n)<=t&&Y+B<Z)-(Math.abs(D-n)<=t&&!!Y),F=K&&(Math.abs(w-s)<=t&&ee+V<ne)-(Math.abs(I-s)<=t&&!!ee);if(!_e[p])for(var W=0;W<=p;W++)_e[W]||(_e[W]={});(_e[p].vx!=le||_e[p].vy!=F||_e[p].el!==b)&&(_e[p].el=b,_e[p].vx=le,_e[p].vy=F,clearInterval(_e[p].pid),(le!=0||F!=0)&&(f=!0,_e[p].pid=setInterval((function(){u&&this.layer===0&&pe.active._onTouchMove(mi);var de=_e[this.layer].vy?_e[this.layer].vy*r:0,X=_e[this.layer].vx?_e[this.layer].vx*r:0;typeof v=="function"&&v.call(pe.dragged.parentNode[gt],X,de,c,mi,_e[this.layer].el)!=="continue"||Ja(_e[this.layer].el,X,de)}).bind({layer:p}),24))),p++}while(o.bubbleScroll&&h!==d&&(h=vn(h,!1)));Li=f}},30),Za=function(o){var i=o.originalEvent,u=o.putSortable,n=o.dragEl,s=o.activeSortable,t=o.dispatchSortableEvent,r=o.hideGhostForTarget,d=o.unhideGhostForTarget;if(i){var f=u||s;r();var v=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,p=document.elementFromPoint(v.clientX,v.clientY);d(),f&&!f.el.contains(p)&&(t("spill"),this.onSpill({dragEl:n,putSortable:u}))}};function Gi(){}Gi.prototype={startIndex:null,dragStart:function(o){var i=o.oldDraggableIndex;this.startIndex=i},onSpill:function(o){var i=o.dragEl,u=o.putSortable;this.sortable.captureAnimationState(),u&&u.captureAnimationState();var n=Wn(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(i,n):this.sortable.el.appendChild(i),this.sortable.animateAll(),u&&u.animateAll()},drop:Za};Nt(Gi,{pluginName:"revertOnSpill"});function zi(){}zi.prototype={onSpill:function(o){var i=o.dragEl,u=o.putSortable,n=u||this.sortable;n.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),n.animateAll()},drop:Za};Nt(zi,{pluginName:"removeOnSpill"});var Mt;function md(){function c(){this.defaults={swapClass:"sortable-swap-highlight"}}return c.prototype={dragStart:function(i){var u=i.dragEl;Mt=u},dragOverValid:function(i){var u=i.completed,n=i.target,s=i.onMove,t=i.activeSortable,r=i.changed,d=i.cancel;if(t.options.swap){var f=this.sortable.el,v=this.options;if(n&&n!==f){var p=Mt;s(n)!==!1?(He(n,v.swapClass,!0),Mt=n):Mt=null,p&&p!==Mt&&He(p,v.swapClass,!1)}r(),u(!0),d()}},drop:function(i){var u=i.activeSortable,n=i.putSortable,s=i.dragEl,t=n||this.sortable,r=this.options;Mt&&He(Mt,r.swapClass,!1),Mt&&(r.swap||n&&n.options.swap)&&s!==Mt&&(t.captureAnimationState(),t!==u&&u.captureAnimationState(),gd(s,Mt),t.animateAll(),t!==u&&u.animateAll())},nulling:function(){Mt=null}},Nt(c,{pluginName:"swap",eventProperties:function(){return{swapItem:Mt}}})}function gd(c,o){var i=c.parentNode,u=o.parentNode,n,s;!i||!u||i.isEqualNode(o)||u.isEqualNode(c)||(n=Ze(c),s=Ze(o),i.isEqualNode(u)&&n<s&&s++,i.insertBefore(o,i.children[n]),u.insertBefore(c,u.children[s]))}var he=[],Rt=[],Io,Qt,wo=!1,wt=!1,zn=!1,Be,Co,ii;function hd(){function c(o){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));o.options.supportPointer?Ie(document,"pointerup",this._deselectMultiDrag):(Ie(document,"mouseup",this._deselectMultiDrag),Ie(document,"touchend",this._deselectMultiDrag)),Ie(document,"keydown",this._checkKeyDown),Ie(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,s){var t="";he.length&&Qt===o?he.forEach(function(r,d){t+=(d?", ":"")+r.textContent}):t=s.textContent,n.setData("Text",t)}}}return c.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var u=i.dragEl;Be=u},delayEnded:function(){this.isMultiDrag=~he.indexOf(Be)},setupClone:function(i){var u=i.sortable,n=i.cancel;if(this.isMultiDrag){for(var s=0;s<he.length;s++)Rt.push(Qi(he[s])),Rt[s].sortableIndex=he[s].sortableIndex,Rt[s].draggable=!1,Rt[s].style["will-change"]="",He(Rt[s],this.options.selectedClass,!1),he[s]===Be&&He(Rt[s],this.options.chosenClass,!1);u._hideClone(),n()}},clone:function(i){var u=i.sortable,n=i.rootEl,s=i.dispatchSortableEvent,t=i.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||he.length&&Qt===u&&(Na(!0,n),s("clone"),t()))},showClone:function(i){var u=i.cloneNowShown,n=i.rootEl,s=i.cancel;this.isMultiDrag&&(Na(!1,n),Rt.forEach(function(t){ae(t,"display","")}),u(),ii=!1,s())},hideClone:function(i){var u=this;i.sortable;var n=i.cloneNowHidden,s=i.cancel;this.isMultiDrag&&(Rt.forEach(function(t){ae(t,"display","none"),u.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),ii=!0,s())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&Qt&&Qt.multiDrag._deselectMultiDrag(),he.forEach(function(u){u.sortableIndex=Ze(u)}),he=he.sort(function(u,n){return u.sortableIndex-n.sortableIndex}),zn=!0},dragStarted:function(i){var u=this,n=i.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){he.forEach(function(t){t!==Be&&ae(t,"position","absolute")});var s=$e(Be,!1,!0,!0);he.forEach(function(t){t!==Be&&Va(t,s)}),wt=!0,wo=!0}n.animateAll(function(){wt=!1,wo=!1,u.options.animation&&he.forEach(function(t){Oi(t)}),u.options.sort&&ai()})}},dragOver:function(i){var u=i.target,n=i.completed,s=i.cancel;wt&&~he.indexOf(u)&&(n(!1),s())},revert:function(i){var u=i.fromSortable,n=i.rootEl,s=i.sortable,t=i.dragRect;he.length>1&&(he.forEach(function(r){s.addAnimationState({target:r,rect:wt?$e(r):t}),Oi(r),r.fromRect=t,u.removeAnimationState(r)}),wt=!1,yd(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(i){var u=i.sortable,n=i.isOwner,s=i.insertion,t=i.activeSortable,r=i.parentEl,d=i.putSortable,f=this.options;if(s){if(n&&t._hideClone(),wo=!1,f.animation&&he.length>1&&(wt||!n&&!t.options.sort&&!d)){var v=$e(Be,!1,!0,!0);he.forEach(function(h){h!==Be&&(Va(h,v),r.appendChild(h))}),wt=!0}if(!n)if(wt||ai(),he.length>1){var p=ii;t._showClone(u),t.options.animation&&!ii&&p&&Rt.forEach(function(h){t.addAnimationState({target:h,rect:Co}),h.fromRect=Co,h.thisAnimationDuration=null})}else t._showClone(u)}},dragOverAnimationCapture:function(i){var u=i.dragRect,n=i.isOwner,s=i.activeSortable;if(he.forEach(function(r){r.thisAnimationDuration=null}),s.options.animation&&!n&&s.multiDrag.isMultiDrag){Co=Nt({},u);var t=Tn(Be,!0);Co.top-=t.f,Co.left-=t.e}},dragOverAnimationComplete:function(){wt&&(wt=!1,ai())},drop:function(i){var u=i.originalEvent,n=i.rootEl,s=i.parentEl,t=i.sortable,r=i.dispatchSortableEvent,d=i.oldIndex,f=i.putSortable,v=f||this.sortable;if(u){var p=this.options,h=s.children;if(!zn)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),He(Be,p.selectedClass,!~he.indexOf(Be)),~he.indexOf(Be))he.splice(he.indexOf(Be),1),Io=null,Ao({sortable:t,rootEl:n,name:"deselect",targetEl:Be});else{if(he.push(Be),Ao({sortable:t,rootEl:n,name:"select",targetEl:Be}),u.shiftKey&&Io&&t.el.contains(Io)){var b=Ze(Io),S=Ze(Be);if(~b&&~S&&b!==S){var I,w;for(S>b?(w=b,I=S):(w=S,I=b+1);w<I;w++)~he.indexOf(h[w])||(He(h[w],p.selectedClass,!0),he.push(h[w]),Ao({sortable:t,rootEl:n,name:"select",targetEl:h[w]}))}}else Io=Be;Qt=v}if(zn&&this.isMultiDrag){if(wt=!1,(s[gt].options.sort||s!==n)&&he.length>1){var D=$e(Be),P=Ze(Be,":not(."+this.options.selectedClass+")");if(!wo&&p.animation&&(Be.thisAnimationDuration=null),v.captureAnimationState(),!wo&&(p.animation&&(Be.fromRect=D,he.forEach(function(V){if(V.thisAnimationDuration=null,V!==Be){var L=wt?$e(V):D;V.fromRect=L,v.addAnimationState({target:V,rect:L})}})),ai(),he.forEach(function(V){h[P]?s.insertBefore(V,h[P]):s.appendChild(V),P++}),d===Ze(Be))){var B=!1;he.forEach(function(V){if(V.sortableIndex!==Ze(V)){B=!0;return}}),B&&r("update")}he.forEach(function(V){Oi(V)}),v.animateAll()}Qt=v}(n===s||f&&f.lastPutMode!=="clone")&&Rt.forEach(function(V){V.parentNode&&V.parentNode.removeChild(V)})}},nullingGlobal:function(){this.isMultiDrag=zn=!1,Rt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Se(document,"pointerup",this._deselectMultiDrag),Se(document,"mouseup",this._deselectMultiDrag),Se(document,"touchend",this._deselectMultiDrag),Se(document,"keydown",this._checkKeyDown),Se(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof zn<"u"&&zn)&&Qt===this.sortable&&!(i&&Gt(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;he.length;){var u=he[0];He(u,this.options.selectedClass,!1),he.shift(),Ao({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:u})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Nt(c,{pluginName:"multiDrag",utils:{select:function(i){var u=i.parentNode[gt];!u||!u.options.multiDrag||~he.indexOf(i)||(Qt&&Qt!==u&&(Qt.multiDrag._deselectMultiDrag(),Qt=u),He(i,u.options.selectedClass,!0),he.push(i))},deselect:function(i){var u=i.parentNode[gt],n=he.indexOf(i);!u||!u.options.multiDrag||!~n||(He(i,u.options.selectedClass,!1),he.splice(n,1))}},eventProperties:function(){var i=this,u=[],n=[];return he.forEach(function(s){u.push({multiDragElement:s,index:s.sortableIndex});var t;wt&&s!==Be?t=-1:wt?t=Ze(s,":not(."+i.options.selectedClass+")"):t=Ze(s),n.push({multiDragElement:s,index:t})}),{items:js(he),clones:[].concat(Rt),oldIndicies:u,newIndicies:n}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function yd(c,o){he.forEach(function(i,u){var n=o.children[i.sortableIndex+(c?Number(u):0)];n?o.insertBefore(i,n):o.appendChild(i)})}function Na(c,o){Rt.forEach(function(i,u){var n=o.children[i.sortableIndex+(c?Number(u):0)];n?o.insertBefore(i,n):o.appendChild(i)})}function ai(){he.forEach(function(c){c!==Be&&c.parentNode&&c.parentNode.removeChild(c)})}pe.mount(new pd);pe.mount(zi,Gi);const bd=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:hd,Sortable:pe,Swap:md,default:pe},Symbol.toStringTag,{value:"Module"})),Sd=vs(bd);(function(c,o){(function(u,n){c.exports=n(ms,Sd)})(typeof self<"u"?self:gs,function(i,u){return function(n){var s={};function t(r){if(s[r])return s[r].exports;var d=s[r]={i:r,l:!1,exports:{}};return n[r].call(d.exports,d,d.exports,t),d.l=!0,d.exports}return t.m=n,t.c=s,t.d=function(r,d,f){t.o(r,d)||Object.defineProperty(r,d,{enumerable:!0,get:f})},t.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,d){if(d&1&&(r=t(r)),d&8||d&4&&typeof r=="object"&&r&&r.__esModule)return r;var f=Object.create(null);if(t.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:r}),d&2&&typeof r!="string")for(var v in r)t.d(f,v,(function(p){return r[p]}).bind(null,v));return f},t.n=function(r){var d=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(d,"a",d),d},t.o=function(r,d){return Object.prototype.hasOwnProperty.call(r,d)},t.p="",t(t.s="fb15")}({"00ee":function(n,s,t){var r=t("b622"),d=r("toStringTag"),f={};f[d]="z",n.exports=String(f)==="[object z]"},"0366":function(n,s,t){var r=t("1c0b");n.exports=function(d,f,v){if(r(d),f===void 0)return d;switch(v){case 0:return function(){return d.call(f)};case 1:return function(p){return d.call(f,p)};case 2:return function(p,h){return d.call(f,p,h)};case 3:return function(p,h,b){return d.call(f,p,h,b)}}return function(){return d.apply(f,arguments)}}},"057f":function(n,s,t){var r=t("fc6a"),d=t("241c").f,f={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(h){try{return d(h)}catch{return v.slice()}};n.exports.f=function(b){return v&&f.call(b)=="[object Window]"?p(b):d(r(b))}},"06cf":function(n,s,t){var r=t("83ab"),d=t("d1e7"),f=t("5c6c"),v=t("fc6a"),p=t("c04e"),h=t("5135"),b=t("0cfb"),S=Object.getOwnPropertyDescriptor;s.f=r?S:function(w,D){if(w=v(w),D=p(D,!0),b)try{return S(w,D)}catch{}if(h(w,D))return f(!d.f.call(w,D),w[D])}},"0cfb":function(n,s,t){var r=t("83ab"),d=t("d039"),f=t("cc12");n.exports=!r&&!d(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,s,t){var r=t("23e7"),d=t("d58f").left,f=t("a640"),v=t("ae40"),p=f("reduce"),h=v("reduce",{1:0});r({target:"Array",proto:!0,forced:!p||!h},{reduce:function(S){return d(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,s,t){var r=t("c6b6"),d=t("9263");n.exports=function(f,v){var p=f.exec;if(typeof p=="function"){var h=p.call(f,v);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(r(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(f,v)}},"159b":function(n,s,t){var r=t("da84"),d=t("fdbc"),f=t("17c2"),v=t("9112");for(var p in d){var h=r[p],b=h&&h.prototype;if(b&&b.forEach!==f)try{v(b,"forEach",f)}catch{b.forEach=f}}},"17c2":function(n,s,t){var r=t("b727").forEach,d=t("a640"),f=t("ae40"),v=d("forEach"),p=f("forEach");n.exports=!v||!p?function(b){return r(this,b,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,s,t){var r=t("d066");n.exports=r("document","documentElement")},"1c0b":function(n,s){n.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(n,s,t){var r=t("b622"),d=r("iterator"),f=!1;try{var v=0,p={next:function(){return{done:!!v++}},return:function(){f=!0}};p[d]=function(){return this},Array.from(p,function(){throw 2})}catch{}n.exports=function(h,b){if(!b&&!f)return!1;var S=!1;try{var I={};I[d]=function(){return{next:function(){return{done:S=!0}}}},h(I)}catch{}return S}},"1d80":function(n,s){n.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(n,s,t){var r=t("d039"),d=t("b622"),f=t("2d00"),v=d("species");n.exports=function(p){return f>=51||!r(function(){var h=[],b=h.constructor={};return b[v]=function(){return{foo:1}},h[p](Boolean).foo!==1})}},"23cb":function(n,s,t){var r=t("a691"),d=Math.max,f=Math.min;n.exports=function(v,p){var h=r(v);return h<0?d(h+p,0):f(h,p)}},"23e7":function(n,s,t){var r=t("da84"),d=t("06cf").f,f=t("9112"),v=t("6eeb"),p=t("ce4e"),h=t("e893"),b=t("94ca");n.exports=function(S,I){var w=S.target,D=S.global,P=S.stat,B,V,L,K,Z,ne;if(D?V=r:P?V=r[w]||p(w,{}):V=(r[w]||{}).prototype,V)for(L in I){if(Z=I[L],S.noTargetGet?(ne=d(V,L),K=ne&&ne.value):K=V[L],B=b(D?L:w+(P?".":"#")+L,S.forced),!B&&K!==void 0){if(typeof Z==typeof K)continue;h(Z,K)}(S.sham||K&&K.sham)&&f(Z,"sham",!0),v(V,L,Z,S)}}},"241c":function(n,s,t){var r=t("ca84"),d=t("7839"),f=d.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(p){return r(p,f)}},"25f0":function(n,s,t){var r=t("6eeb"),d=t("825a"),f=t("d039"),v=t("ad6d"),p="toString",h=RegExp.prototype,b=h[p],S=f(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),I=b.name!=p;(S||I)&&r(RegExp.prototype,p,function(){var D=d(this),P=String(D.source),B=D.flags,V=String(B===void 0&&D instanceof RegExp&&!("flags"in h)?v.call(D):B);return"/"+P+"/"+V},{unsafe:!0})},"2ca0":function(n,s,t){var r=t("23e7"),d=t("06cf").f,f=t("50c4"),v=t("5a34"),p=t("1d80"),h=t("ab13"),b=t("c430"),S="".startsWith,I=Math.min,w=h("startsWith"),D=!b&&!w&&!!function(){var P=d(String.prototype,"startsWith");return P&&!P.writable}();r({target:"String",proto:!0,forced:!D&&!w},{startsWith:function(B){var V=String(p(this));v(B);var L=f(I(arguments.length>1?arguments[1]:void 0,V.length)),K=String(B);return S?S.call(V,K,L):V.slice(L,L+K.length)===K}})},"2d00":function(n,s,t){var r=t("da84"),d=t("342f"),f=r.process,v=f&&f.versions,p=v&&v.v8,h,b;p?(h=p.split("."),b=h[0]+h[1]):d&&(h=d.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=d.match(/Chrome\/(\d+)/),h&&(b=h[1]))),n.exports=b&&+b},"342f":function(n,s,t){var r=t("d066");n.exports=r("navigator","userAgent")||""},"35a1":function(n,s,t){var r=t("f5df"),d=t("3f8c"),f=t("b622"),v=f("iterator");n.exports=function(p){if(p!=null)return p[v]||p["@@iterator"]||d[r(p)]}},"37e8":function(n,s,t){var r=t("83ab"),d=t("9bf2"),f=t("825a"),v=t("df75");n.exports=r?Object.defineProperties:function(h,b){f(h);for(var S=v(b),I=S.length,w=0,D;I>w;)d.f(h,D=S[w++],b[D]);return h}},"3bbe":function(n,s,t){var r=t("861d");n.exports=function(d){if(!r(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},"3ca3":function(n,s,t){var r=t("6547").charAt,d=t("69f3"),f=t("7dd0"),v="String Iterator",p=d.set,h=d.getterFor(v);f(String,"String",function(b){p(this,{type:v,string:String(b),index:0})},function(){var S=h(this),I=S.string,w=S.index,D;return w>=I.length?{value:void 0,done:!0}:(D=r(I,w),S.index+=D.length,{value:D,done:!1})})},"3f8c":function(n,s){n.exports={}},4160:function(n,s,t){var r=t("23e7"),d=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},"428f":function(n,s,t){var r=t("da84");n.exports=r},"44ad":function(n,s,t){var r=t("d039"),d=t("c6b6"),f="".split;n.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(v){return d(v)=="String"?f.call(v,""):Object(v)}:Object},"44d2":function(n,s,t){var r=t("b622"),d=t("7c73"),f=t("9bf2"),v=r("unscopables"),p=Array.prototype;p[v]==null&&f.f(p,v,{configurable:!0,value:d(null)}),n.exports=function(h){p[v][h]=!0}},"44e7":function(n,s,t){var r=t("861d"),d=t("c6b6"),f=t("b622"),v=f("match");n.exports=function(p){var h;return r(p)&&((h=p[v])!==void 0?!!h:d(p)=="RegExp")}},4930:function(n,s,t){var r=t("d039");n.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(n,s,t){var r=t("fc6a"),d=t("50c4"),f=t("23cb"),v=function(p){return function(h,b,S){var I=r(h),w=d(I.length),D=f(S,w),P;if(p&&b!=b){for(;w>D;)if(P=I[D++],P!=P)return!0}else for(;w>D;D++)if((p||D in I)&&I[D]===b)return p||D||0;return!p&&-1}};n.exports={includes:v(!0),indexOf:v(!1)}},"4de4":function(n,s,t){var r=t("23e7"),d=t("b727").filter,f=t("1dde"),v=t("ae40"),p=f("filter"),h=v("filter");r({target:"Array",proto:!0,forced:!p||!h},{filter:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,t){var r=t("0366"),d=t("7b0b"),f=t("9bdd"),v=t("e95a"),p=t("50c4"),h=t("8418"),b=t("35a1");n.exports=function(I){var w=d(I),D=typeof this=="function"?this:Array,P=arguments.length,B=P>1?arguments[1]:void 0,V=B!==void 0,L=b(w),K=0,Z,ne,M,Y,ee,le;if(V&&(B=r(B,P>2?arguments[2]:void 0,2)),L!=null&&!(D==Array&&v(L)))for(Y=L.call(w),ee=Y.next,ne=new D;!(M=ee.call(Y)).done;K++)le=V?f(Y,B,[M.value,K],!0):M.value,h(ne,K,le);else for(Z=p(w.length),ne=new D(Z);Z>K;K++)le=V?B(w[K],K):w[K],h(ne,K,le);return ne.length=K,ne}},"4fad":function(n,s,t){var r=t("23e7"),d=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(v){return d(v)}})},"50c4":function(n,s,t){var r=t("a691"),d=Math.min;n.exports=function(f){return f>0?d(r(f),9007199254740991):0}},5135:function(n,s){var t={}.hasOwnProperty;n.exports=function(r,d){return t.call(r,d)}},5319:function(n,s,t){var r=t("d784"),d=t("825a"),f=t("7b0b"),v=t("50c4"),p=t("a691"),h=t("1d80"),b=t("8aa5"),S=t("14c3"),I=Math.max,w=Math.min,D=Math.floor,P=/\$([$&'`]|\d\d?|<[^>]*>)/g,B=/\$([$&'`]|\d\d?)/g,V=function(L){return L===void 0?L:String(L)};r("replace",2,function(L,K,Z,ne){var M=ne.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Y=ne.REPLACE_KEEPS_$0,ee=M?"$":"$0";return[function(W,de){var X=h(this),q=W==null?void 0:W[L];return q!==void 0?q.call(W,X,de):K.call(String(X),W,de)},function(F,W){if(!M&&Y||typeof W=="string"&&W.indexOf(ee)===-1){var de=Z(K,F,this,W);if(de.done)return de.value}var X=d(F),q=String(this),be=typeof W=="function";be||(W=String(W));var ke=X.global;if(ke){var Fe=X.unicode;X.lastIndex=0}for(var Qe=[];;){var re=S(X,q);if(re===null||(Qe.push(re),!ke))break;var Ke=String(re[0]);Ke===""&&(X.lastIndex=b(q,v(X.lastIndex),Fe))}for(var Ge="",_=0,Me=0;Me<Qe.length;Me++){re=Qe[Me];for(var Re=String(re[0]),ct=I(w(p(re.index),q.length),0),ot=[],zt=1;zt<re.length;zt++)ot.push(V(re[zt]));var Yt=re.groups;if(be){var it=[Re].concat(ot,ct,q);Yt!==void 0&&it.push(Yt);var Je=String(W.apply(void 0,it))}else Je=le(Re,q,ct,ot,Yt,W);ct>=_&&(Ge+=q.slice(_,ct)+Je,_=ct+Re.length)}return Ge+q.slice(_)}];function le(F,W,de,X,q,be){var ke=de+F.length,Fe=X.length,Qe=B;return q!==void 0&&(q=f(q),Qe=P),K.call(be,Qe,function(re,Ke){var Ge;switch(Ke.charAt(0)){case"$":return"$";case"&":return F;case"`":return W.slice(0,de);case"'":return W.slice(ke);case"<":Ge=q[Ke.slice(1,-1)];break;default:var _=+Ke;if(_===0)return re;if(_>Fe){var Me=D(_/10);return Me===0?re:Me<=Fe?X[Me-1]===void 0?Ke.charAt(1):X[Me-1]+Ke.charAt(1):re}Ge=X[_-1]}return Ge===void 0?"":Ge})}})},5692:function(n,s,t){var r=t("c430"),d=t("c6cd");(n.exports=function(f,v){return d[f]||(d[f]=v!==void 0?v:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,s,t){var r=t("d066"),d=t("241c"),f=t("7418"),v=t("825a");n.exports=r("Reflect","ownKeys")||function(h){var b=d.f(v(h)),S=f.f;return S?b.concat(S(h)):b}},"5a34":function(n,s,t){var r=t("44e7");n.exports=function(d){if(r(d))throw TypeError("The method doesn't accept regular expressions");return d}},"5c6c":function(n,s){n.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(n,s,t){var r=t("23e7"),d=t("a2bf"),f=t("7b0b"),v=t("50c4"),p=t("1c0b"),h=t("65f0");r({target:"Array",proto:!0},{flatMap:function(S){var I=f(this),w=v(I.length),D;return p(S),D=h(I,0),D.length=d(D,I,I,w,0,1,S,arguments.length>1?arguments[1]:void 0),D}})},6547:function(n,s,t){var r=t("a691"),d=t("1d80"),f=function(v){return function(p,h){var b=String(d(p)),S=r(h),I=b.length,w,D;return S<0||S>=I?v?"":void 0:(w=b.charCodeAt(S),w<55296||w>56319||S+1===I||(D=b.charCodeAt(S+1))<56320||D>57343?v?b.charAt(S):w:v?b.slice(S,S+2):(w-55296<<10)+(D-56320)+65536)}};n.exports={codeAt:f(!1),charAt:f(!0)}},"65f0":function(n,s,t){var r=t("861d"),d=t("e8b5"),f=t("b622"),v=f("species");n.exports=function(p,h){var b;return d(p)&&(b=p.constructor,typeof b=="function"&&(b===Array||d(b.prototype))?b=void 0:r(b)&&(b=b[v],b===null&&(b=void 0))),new(b===void 0?Array:b)(h===0?0:h)}},"69f3":function(n,s,t){var r=t("7f9a"),d=t("da84"),f=t("861d"),v=t("9112"),p=t("5135"),h=t("f772"),b=t("d012"),S=d.WeakMap,I,w,D,P=function(M){return D(M)?w(M):I(M,{})},B=function(M){return function(Y){var ee;if(!f(Y)||(ee=w(Y)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return ee}};if(r){var V=new S,L=V.get,K=V.has,Z=V.set;I=function(M,Y){return Z.call(V,M,Y),Y},w=function(M){return L.call(V,M)||{}},D=function(M){return K.call(V,M)}}else{var ne=h("state");b[ne]=!0,I=function(M,Y){return v(M,ne,Y),Y},w=function(M){return p(M,ne)?M[ne]:{}},D=function(M){return p(M,ne)}}n.exports={set:I,get:w,has:D,enforce:P,getterFor:B}},"6eeb":function(n,s,t){var r=t("da84"),d=t("9112"),f=t("5135"),v=t("ce4e"),p=t("8925"),h=t("69f3"),b=h.get,S=h.enforce,I=String(String).split("String");(n.exports=function(w,D,P,B){var V=B?!!B.unsafe:!1,L=B?!!B.enumerable:!1,K=B?!!B.noTargetGet:!1;if(typeof P=="function"&&(typeof D=="string"&&!f(P,"name")&&d(P,"name",D),S(P).source=I.join(typeof D=="string"?D:"")),w===r){L?w[D]=P:v(D,P);return}else V?!K&&w[D]&&(L=!0):delete w[D];L?w[D]=P:d(w,D,P)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||p(this)})},"6f53":function(n,s,t){var r=t("83ab"),d=t("df75"),f=t("fc6a"),v=t("d1e7").f,p=function(h){return function(b){for(var S=f(b),I=d(S),w=I.length,D=0,P=[],B;w>D;)B=I[D++],(!r||v.call(S,B))&&P.push(h?[B,S[B]]:S[B]);return P}};n.exports={entries:p(!0),values:p(!1)}},"73d9":function(n,s,t){var r=t("44d2");r("flatMap")},7418:function(n,s){s.f=Object.getOwnPropertySymbols},"746f":function(n,s,t){var r=t("428f"),d=t("5135"),f=t("e538"),v=t("9bf2").f;n.exports=function(p){var h=r.Symbol||(r.Symbol={});d(h,p)||v(h,p,{value:f.f(p)})}},7839:function(n,s){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,s,t){var r=t("1d80");n.exports=function(d){return Object(r(d))}},"7c73":function(n,s,t){var r=t("825a"),d=t("37e8"),f=t("7839"),v=t("d012"),p=t("1be4"),h=t("cc12"),b=t("f772"),S=">",I="<",w="prototype",D="script",P=b("IE_PROTO"),B=function(){},V=function(M){return I+D+S+M+I+"/"+D+S},L=function(M){M.write(V("")),M.close();var Y=M.parentWindow.Object;return M=null,Y},K=function(){var M=h("iframe"),Y="java"+D+":",ee;return M.style.display="none",p.appendChild(M),M.src=String(Y),ee=M.contentWindow.document,ee.open(),ee.write(V("document.F=Object")),ee.close(),ee.F},Z,ne=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch{}ne=Z?L(Z):K();for(var M=f.length;M--;)delete ne[w][f[M]];return ne()};v[P]=!0,n.exports=Object.create||function(Y,ee){var le;return Y!==null?(B[w]=r(Y),le=new B,B[w]=null,le[P]=Y):le=ne(),ee===void 0?le:d(le,ee)}},"7dd0":function(n,s,t){var r=t("23e7"),d=t("9ed3"),f=t("e163"),v=t("d2bb"),p=t("d44e"),h=t("9112"),b=t("6eeb"),S=t("b622"),I=t("c430"),w=t("3f8c"),D=t("ae93"),P=D.IteratorPrototype,B=D.BUGGY_SAFARI_ITERATORS,V=S("iterator"),L="keys",K="values",Z="entries",ne=function(){return this};n.exports=function(M,Y,ee,le,F,W,de){d(ee,Y,le);var X=function(Me){if(Me===F&&Qe)return Qe;if(!B&&Me in ke)return ke[Me];switch(Me){case L:return function(){return new ee(this,Me)};case K:return function(){return new ee(this,Me)};case Z:return function(){return new ee(this,Me)}}return function(){return new ee(this)}},q=Y+" Iterator",be=!1,ke=M.prototype,Fe=ke[V]||ke["@@iterator"]||F&&ke[F],Qe=!B&&Fe||X(F),re=Y=="Array"&&ke.entries||Fe,Ke,Ge,_;if(re&&(Ke=f(re.call(new M)),P!==Object.prototype&&Ke.next&&(!I&&f(Ke)!==P&&(v?v(Ke,P):typeof Ke[V]!="function"&&h(Ke,V,ne)),p(Ke,q,!0,!0),I&&(w[q]=ne))),F==K&&Fe&&Fe.name!==K&&(be=!0,Qe=function(){return Fe.call(this)}),(!I||de)&&ke[V]!==Qe&&h(ke,V,Qe),w[Y]=Qe,F)if(Ge={values:X(K),keys:W?Qe:X(L),entries:X(Z)},de)for(_ in Ge)(B||be||!(_ in ke))&&b(ke,_,Ge[_]);else r({target:Y,proto:!0,forced:B||be},Ge);return Ge}},"7f9a":function(n,s,t){var r=t("da84"),d=t("8925"),f=r.WeakMap;n.exports=typeof f=="function"&&/native code/.test(d(f))},"825a":function(n,s,t){var r=t("861d");n.exports=function(d){if(!r(d))throw TypeError(String(d)+" is not an object");return d}},"83ab":function(n,s,t){var r=t("d039");n.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,s,t){var r=t("c04e"),d=t("9bf2"),f=t("5c6c");n.exports=function(v,p,h){var b=r(p);b in v?d.f(v,b,f(0,h)):v[b]=h}},"861d":function(n,s){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(n,s,t){var r,d,f;(function(v,p){d=[],r=p,f=typeof r=="function"?r.apply(s,d):r,f!==void 0&&(n.exports=f)})(typeof self<"u"?self:this,function(){function v(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==v&&document.currentScript)return document.currentScript;try{throw new Error}catch(Z){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,b=/@([^@]*):(\d+):(\d+)\s*$/ig,S=h.exec(Z.stack)||b.exec(Z.stack),I=S&&S[1]||!1,w=S&&S[2]||!1,D=document.location.href.replace(document.location.hash,""),P,B,V,L=document.getElementsByTagName("script");I===D&&(P=document.documentElement.outerHTML,B=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),V=P.replace(B,"$1").trim());for(var K=0;K<L.length;K++)if(L[K].readyState==="interactive"||L[K].src===I||I===D&&L[K].innerHTML&&L[K].innerHTML.trim()===V)return L[K];return null}}return v})},8925:function(n,s,t){var r=t("c6cd"),d=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(f){return d.call(f)}),n.exports=r.inspectSource},"8aa5":function(n,s,t){var r=t("6547").charAt;n.exports=function(d,f,v){return f+(v?r(d,f).length:1)}},"8bbf":function(n,s){n.exports=i},"90e3":function(n,s){var t=0,r=Math.random();n.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++t+r).toString(36)}},9112:function(n,s,t){var r=t("83ab"),d=t("9bf2"),f=t("5c6c");n.exports=r?function(v,p,h){return d.f(v,p,f(1,h))}:function(v,p,h){return v[p]=h,v}},9263:function(n,s,t){var r=t("ad6d"),d=t("9f7f"),f=RegExp.prototype.exec,v=String.prototype.replace,p=f,h=function(){var w=/a/,D=/b*/g;return f.call(w,"a"),f.call(D,"a"),w.lastIndex!==0||D.lastIndex!==0}(),b=d.UNSUPPORTED_Y||d.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,I=h||S||b;I&&(p=function(D){var P=this,B,V,L,K,Z=b&&P.sticky,ne=r.call(P),M=P.source,Y=0,ee=D;return Z&&(ne=ne.replace("y",""),ne.indexOf("g")===-1&&(ne+="g"),ee=String(D).slice(P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&D[P.lastIndex-1]!==`
- `)&&(M="(?: "+M+")",ee=" "+ee,Y++),V=new RegExp("^(?:"+M+")",ne)),S&&(V=new RegExp("^"+M+"$(?!\\s)",ne)),h&&(B=P.lastIndex),L=f.call(Z?V:P,ee),Z?L?(L.input=L.input.slice(Y),L[0]=L[0].slice(Y),L.index=P.lastIndex,P.lastIndex+=L[0].length):P.lastIndex=0:h&&L&&(P.lastIndex=P.global?L.index+L[0].length:B),S&&L&&L.length>1&&v.call(L[0],V,function(){for(K=1;K<arguments.length-2;K++)arguments[K]===void 0&&(L[K]=void 0)}),L}),n.exports=p},"94ca":function(n,s,t){var r=t("d039"),d=/#|\.prototype\./,f=function(S,I){var w=p[v(S)];return w==b?!0:w==h?!1:typeof I=="function"?r(I):!!I},v=f.normalize=function(S){return String(S).replace(d,".").toLowerCase()},p=f.data={},h=f.NATIVE="N",b=f.POLYFILL="P";n.exports=f},"99af":function(n,s,t){var r=t("23e7"),d=t("d039"),f=t("e8b5"),v=t("861d"),p=t("7b0b"),h=t("50c4"),b=t("8418"),S=t("65f0"),I=t("1dde"),w=t("b622"),D=t("2d00"),P=w("isConcatSpreadable"),B=9007199254740991,V="Maximum allowed index exceeded",L=D>=51||!d(function(){var M=[];return M[P]=!1,M.concat()[0]!==M}),K=I("concat"),Z=function(M){if(!v(M))return!1;var Y=M[P];return Y!==void 0?!!Y:f(M)},ne=!L||!K;r({target:"Array",proto:!0,forced:ne},{concat:function(Y){var ee=p(this),le=S(ee,0),F=0,W,de,X,q,be;for(W=-1,X=arguments.length;W<X;W++)if(be=W===-1?ee:arguments[W],Z(be)){if(q=h(be.length),F+q>B)throw TypeError(V);for(de=0;de<q;de++,F++)de in be&&b(le,F,be[de])}else{if(F>=B)throw TypeError(V);b(le,F++,be)}return le.length=F,le}})},"9bdd":function(n,s,t){var r=t("825a");n.exports=function(d,f,v,p){try{return p?f(r(v)[0],v[1]):f(v)}catch(b){var h=d.return;throw h!==void 0&&r(h.call(d)),b}}},"9bf2":function(n,s,t){var r=t("83ab"),d=t("0cfb"),f=t("825a"),v=t("c04e"),p=Object.defineProperty;s.f=r?p:function(b,S,I){if(f(b),S=v(S,!0),f(I),d)try{return p(b,S,I)}catch{}if("get"in I||"set"in I)throw TypeError("Accessors not supported");return"value"in I&&(b[S]=I.value),b}},"9ed3":function(n,s,t){var r=t("ae93").IteratorPrototype,d=t("7c73"),f=t("5c6c"),v=t("d44e"),p=t("3f8c"),h=function(){return this};n.exports=function(b,S,I){var w=S+" Iterator";return b.prototype=d(r,{next:f(1,I)}),v(b,w,!1,!0),p[w]=h,b}},"9f7f":function(n,s,t){var r=t("d039");function d(f,v){return RegExp(f,v)}s.UNSUPPORTED_Y=r(function(){var f=d("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),s.BROKEN_CARET=r(function(){var f=d("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},a2bf:function(n,s,t){var r=t("e8b5"),d=t("50c4"),f=t("0366"),v=function(p,h,b,S,I,w,D,P){for(var B=I,V=0,L=D?f(D,P,3):!1,K;V<S;){if(V in b){if(K=L?L(b[V],V,h):b[V],w>0&&r(K))B=v(p,h,K,d(K.length),B,w-1)-1;else{if(B>=9007199254740991)throw TypeError("Exceed the acceptable array length");p[B]=K}B++}V++}return B};n.exports=v},a352:function(n,s){n.exports=u},a434:function(n,s,t){var r=t("23e7"),d=t("23cb"),f=t("a691"),v=t("50c4"),p=t("7b0b"),h=t("65f0"),b=t("8418"),S=t("1dde"),I=t("ae40"),w=S("splice"),D=I("splice",{ACCESSORS:!0,0:0,1:2}),P=Math.max,B=Math.min,V=9007199254740991,L="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!w||!D},{splice:function(Z,ne){var M=p(this),Y=v(M.length),ee=d(Z,Y),le=arguments.length,F,W,de,X,q,be;if(le===0?F=W=0:le===1?(F=0,W=Y-ee):(F=le-2,W=B(P(f(ne),0),Y-ee)),Y+F-W>V)throw TypeError(L);for(de=h(M,W),X=0;X<W;X++)q=ee+X,q in M&&b(de,X,M[q]);if(de.length=W,F<W){for(X=ee;X<Y-W;X++)q=X+W,be=X+F,q in M?M[be]=M[q]:delete M[be];for(X=Y;X>Y-W+F;X--)delete M[X-1]}else if(F>W)for(X=Y-W;X>ee;X--)q=X+W-1,be=X+F-1,q in M?M[be]=M[q]:delete M[be];for(X=0;X<F;X++)M[X+ee]=arguments[X+2];return M.length=Y-W+F,de}})},a4d3:function(n,s,t){var r=t("23e7"),d=t("da84"),f=t("d066"),v=t("c430"),p=t("83ab"),h=t("4930"),b=t("fdbf"),S=t("d039"),I=t("5135"),w=t("e8b5"),D=t("861d"),P=t("825a"),B=t("7b0b"),V=t("fc6a"),L=t("c04e"),K=t("5c6c"),Z=t("7c73"),ne=t("df75"),M=t("241c"),Y=t("057f"),ee=t("7418"),le=t("06cf"),F=t("9bf2"),W=t("d1e7"),de=t("9112"),X=t("6eeb"),q=t("5692"),be=t("f772"),ke=t("d012"),Fe=t("90e3"),Qe=t("b622"),re=t("e538"),Ke=t("746f"),Ge=t("d44e"),_=t("69f3"),Me=t("b727").forEach,Re=be("hidden"),ct="Symbol",ot="prototype",zt=Qe("toPrimitive"),Yt=_.set,it=_.getterFor(ct),Je=Object[ot],Le=d.Symbol,Xt=f("JSON","stringify"),Ct=le.f,Ut=F.f,At=Y.f,xt=W.f,Ot=q("symbols"),$t=q("op-symbols"),rn=q("string-to-symbol-registry"),pn=q("symbol-to-string-registry"),mn=q("wks"),gn=d.QObject,hn=!gn||!gn[ot]||!gn[ot].findChild,yn=p&&S(function(){return Z(Ut({},"a",{get:function(){return Ut(this,"a",{value:7}).a}})).a!=7})?function(ce,oe,ue){var Ee=Ct(Je,oe);Ee&&delete Je[oe],Ut(ce,oe,ue),Ee&&ce!==Je&&Ut(Je,oe,Ee)}:Ut,bn=function(ce,oe){var ue=Ot[ce]=Z(Le[ot]);return Yt(ue,{type:ct,tag:ce,description:oe}),p||(ue.description=oe),ue},T=b?function(ce){return typeof ce=="symbol"}:function(ce){return Object(ce)instanceof Le},O=function(oe,ue,Ee){oe===Je&&O($t,ue,Ee),P(oe);var we=L(ue,!0);return P(Ee),I(Ot,we)?(Ee.enumerable?(I(oe,Re)&&oe[Re][we]&&(oe[Re][we]=!1),Ee=Z(Ee,{enumerable:K(0,!1)})):(I(oe,Re)||Ut(oe,Re,K(1,{})),oe[Re][we]=!0),yn(oe,we,Ee)):Ut(oe,we,Ee)},R=function(oe,ue){P(oe);var Ee=V(ue),we=ne(Ee).concat(Oe(Ee));return Me(we,function(ft){(!p||te.call(Ee,ft))&&O(oe,ft,Ee[ft])}),oe},z=function(oe,ue){return ue===void 0?Z(oe):R(Z(oe),ue)},te=function(oe){var ue=L(oe,!0),Ee=xt.call(this,ue);return this===Je&&I(Ot,ue)&&!I($t,ue)?!1:Ee||!I(this,ue)||!I(Ot,ue)||I(this,Re)&&this[Re][ue]?Ee:!0},ve=function(oe,ue){var Ee=V(oe),we=L(ue,!0);if(!(Ee===Je&&I(Ot,we)&&!I($t,we))){var ft=Ct(Ee,we);return ft&&I(Ot,we)&&!(I(Ee,Re)&&Ee[Re][we])&&(ft.enumerable=!0),ft}},ge=function(oe){var ue=At(V(oe)),Ee=[];return Me(ue,function(we){!I(Ot,we)&&!I(ke,we)&&Ee.push(we)}),Ee},Oe=function(oe){var ue=oe===Je,Ee=At(ue?$t:V(oe)),we=[];return Me(Ee,function(ft){I(Ot,ft)&&(!ue||I(Je,ft))&&we.push(Ot[ft])}),we};if(h||(Le=function(){if(this instanceof Le)throw TypeError("Symbol is not a constructor");var oe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ue=Fe(oe),Ee=function(we){this===Je&&Ee.call($t,we),I(this,Re)&&I(this[Re],ue)&&(this[Re][ue]=!1),yn(this,ue,K(1,we))};return p&&hn&&yn(Je,ue,{configurable:!0,set:Ee}),bn(ue,oe)},X(Le[ot],"toString",function(){return it(this).tag}),X(Le,"withoutSetter",function(ce){return bn(Fe(ce),ce)}),W.f=te,F.f=O,le.f=ve,M.f=Y.f=ge,ee.f=Oe,re.f=function(ce){return bn(Qe(ce),ce)},p&&(Ut(Le[ot],"description",{configurable:!0,get:function(){return it(this).description}}),v||X(Je,"propertyIsEnumerable",te,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Le}),Me(ne(mn),function(ce){Ke(ce)}),r({target:ct,stat:!0,forced:!h},{for:function(ce){var oe=String(ce);if(I(rn,oe))return rn[oe];var ue=Le(oe);return rn[oe]=ue,pn[ue]=oe,ue},keyFor:function(oe){if(!T(oe))throw TypeError(oe+" is not a symbol");if(I(pn,oe))return pn[oe]},useSetter:function(){hn=!0},useSimple:function(){hn=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!p},{create:z,defineProperty:O,defineProperties:R,getOwnPropertyDescriptor:ve}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ge,getOwnPropertySymbols:Oe}),r({target:"Object",stat:!0,forced:S(function(){ee.f(1)})},{getOwnPropertySymbols:function(oe){return ee.f(B(oe))}}),Xt){var je=!h||S(function(){var ce=Le();return Xt([ce])!="[null]"||Xt({a:ce})!="{}"||Xt(Object(ce))!="{}"});r({target:"JSON",stat:!0,forced:je},{stringify:function(oe,ue,Ee){for(var we=[oe],ft=1,Hn;arguments.length>ft;)we.push(arguments[ft++]);if(Hn=ue,!(!D(ue)&&oe===void 0||T(oe)))return w(ue)||(ue=function(hi,Dn){if(typeof Hn=="function"&&(Dn=Hn.call(this,hi,Dn)),!T(Dn))return Dn}),we[1]=ue,Xt.apply(null,we)}})}Le[ot][zt]||de(Le[ot],zt,Le[ot].valueOf),Ge(Le,ct),ke[Re]=!0},a630:function(n,s,t){var r=t("23e7"),d=t("4df4"),f=t("1c7e"),v=!f(function(p){Array.from(p)});r({target:"Array",stat:!0,forced:v},{from:d})},a640:function(n,s,t){var r=t("d039");n.exports=function(d,f){var v=[][d];return!!v&&r(function(){v.call(null,f||function(){throw 1},1)})}},a691:function(n,s){var t=Math.ceil,r=Math.floor;n.exports=function(d){return isNaN(d=+d)?0:(d>0?r:t)(d)}},ab13:function(n,s,t){var r=t("b622"),d=r("match");n.exports=function(f){var v=/./;try{"/./"[f](v)}catch{try{return v[d]=!1,"/./"[f](v)}catch{}}return!1}},ac1f:function(n,s,t){var r=t("23e7"),d=t("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},ad6d:function(n,s,t){var r=t("825a");n.exports=function(){var d=r(this),f="";return d.global&&(f+="g"),d.ignoreCase&&(f+="i"),d.multiline&&(f+="m"),d.dotAll&&(f+="s"),d.unicode&&(f+="u"),d.sticky&&(f+="y"),f}},ae40:function(n,s,t){var r=t("83ab"),d=t("d039"),f=t("5135"),v=Object.defineProperty,p={},h=function(b){throw b};n.exports=function(b,S){if(f(p,b))return p[b];S||(S={});var I=[][b],w=f(S,"ACCESSORS")?S.ACCESSORS:!1,D=f(S,0)?S[0]:h,P=f(S,1)?S[1]:void 0;return p[b]=!!I&&!d(function(){if(w&&!r)return!0;var B={length:-1};w?v(B,1,{enumerable:!0,get:h}):B[1]=1,I.call(B,D,P)})}},ae93:function(n,s,t){var r=t("e163"),d=t("9112"),f=t("5135"),v=t("b622"),p=t("c430"),h=v("iterator"),b=!1,S=function(){return this},I,w,D;[].keys&&(D=[].keys(),"next"in D?(w=r(r(D)),w!==Object.prototype&&(I=w)):b=!0),I==null&&(I={}),!p&&!f(I,h)&&d(I,h,S),n.exports={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:b}},b041:function(n,s,t){var r=t("00ee"),d=t("f5df");n.exports=r?{}.toString:function(){return"[object "+d(this)+"]"}},b0c0:function(n,s,t){var r=t("83ab"),d=t("9bf2").f,f=Function.prototype,v=f.toString,p=/^\s*function ([^ (]*)/,h="name";r&&!(h in f)&&d(f,h,{configurable:!0,get:function(){try{return v.call(this).match(p)[1]}catch{return""}}})},b622:function(n,s,t){var r=t("da84"),d=t("5692"),f=t("5135"),v=t("90e3"),p=t("4930"),h=t("fdbf"),b=d("wks"),S=r.Symbol,I=h?S:S&&S.withoutSetter||v;n.exports=function(w){return f(b,w)||(p&&f(S,w)?b[w]=S[w]:b[w]=I("Symbol."+w)),b[w]}},b64b:function(n,s,t){var r=t("23e7"),d=t("7b0b"),f=t("df75"),v=t("d039"),p=v(function(){f(1)});r({target:"Object",stat:!0,forced:p},{keys:function(b){return f(d(b))}})},b727:function(n,s,t){var r=t("0366"),d=t("44ad"),f=t("7b0b"),v=t("50c4"),p=t("65f0"),h=[].push,b=function(S){var I=S==1,w=S==2,D=S==3,P=S==4,B=S==6,V=S==5||B;return function(L,K,Z,ne){for(var M=f(L),Y=d(M),ee=r(K,Z,3),le=v(Y.length),F=0,W=ne||p,de=I?W(L,le):w?W(L,0):void 0,X,q;le>F;F++)if((V||F in Y)&&(X=Y[F],q=ee(X,F,M),S)){if(I)de[F]=q;else if(q)switch(S){case 3:return!0;case 5:return X;case 6:return F;case 2:h.call(de,X)}else if(P)return!1}return B?-1:D||P?P:de}};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,s,t){var r=t("861d");n.exports=function(d,f){if(!r(d))return d;var v,p;if(f&&typeof(v=d.toString)=="function"&&!r(p=v.call(d))||typeof(v=d.valueOf)=="function"&&!r(p=v.call(d))||!f&&typeof(v=d.toString)=="function"&&!r(p=v.call(d)))return p;throw TypeError("Can't convert object to primitive value")}},c430:function(n,s){n.exports=!1},c6b6:function(n,s){var t={}.toString;n.exports=function(r){return t.call(r).slice(8,-1)}},c6cd:function(n,s,t){var r=t("da84"),d=t("ce4e"),f="__core-js_shared__",v=r[f]||d(f,{});n.exports=v},c740:function(n,s,t){var r=t("23e7"),d=t("b727").findIndex,f=t("44d2"),v=t("ae40"),p="findIndex",h=!0,b=v(p);p in[]&&Array(1)[p](function(){h=!1}),r({target:"Array",proto:!0,forced:h||!b},{findIndex:function(I){return d(this,I,arguments.length>1?arguments[1]:void 0)}}),f(p)},c8ba:function(n,s){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,s,t){var r=t("23e7"),d=t("4d64").indexOf,f=t("a640"),v=t("ae40"),p=[].indexOf,h=!!p&&1/[1].indexOf(1,-0)<0,b=f("indexOf"),S=v("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:h||!b||!S},{indexOf:function(w){return h?p.apply(this,arguments)||0:d(this,w,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,s,t){var r=t("5135"),d=t("fc6a"),f=t("4d64").indexOf,v=t("d012");n.exports=function(p,h){var b=d(p),S=0,I=[],w;for(w in b)!r(v,w)&&r(b,w)&&I.push(w);for(;h.length>S;)r(b,w=h[S++])&&(~f(I,w)||I.push(w));return I}},caad:function(n,s,t){var r=t("23e7"),d=t("4d64").includes,f=t("44d2"),v=t("ae40"),p=v("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!p},{includes:function(b){return d(this,b,arguments.length>1?arguments[1]:void 0)}}),f("includes")},cc12:function(n,s,t){var r=t("da84"),d=t("861d"),f=r.document,v=d(f)&&d(f.createElement);n.exports=function(p){return v?f.createElement(p):{}}},ce4e:function(n,s,t){var r=t("da84"),d=t("9112");n.exports=function(f,v){try{d(r,f,v)}catch{r[f]=v}return v}},d012:function(n,s){n.exports={}},d039:function(n,s){n.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(n,s,t){var r=t("428f"),d=t("da84"),f=function(v){return typeof v=="function"?v:void 0};n.exports=function(v,p){return arguments.length<2?f(r[v])||f(d[v]):r[v]&&r[v][p]||d[v]&&d[v][p]}},d1e7:function(n,s,t){var r={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,f=d&&!r.call({1:2},1);s.f=f?function(p){var h=d(this,p);return!!h&&h.enumerable}:r},d28b:function(n,s,t){var r=t("746f");r("iterator")},d2bb:function(n,s,t){var r=t("825a"),d=t("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,v={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(v,[]),f=v instanceof Array}catch{}return function(b,S){return r(b),d(S),f?p.call(b,S):b.__proto__=S,b}}():void 0)},d3b7:function(n,s,t){var r=t("00ee"),d=t("6eeb"),f=t("b041");r||d(Object.prototype,"toString",f,{unsafe:!0})},d44e:function(n,s,t){var r=t("9bf2").f,d=t("5135"),f=t("b622"),v=f("toStringTag");n.exports=function(p,h,b){p&&!d(p=b?p:p.prototype,v)&&r(p,v,{configurable:!0,value:h})}},d58f:function(n,s,t){var r=t("1c0b"),d=t("7b0b"),f=t("44ad"),v=t("50c4"),p=function(h){return function(b,S,I,w){r(S);var D=d(b),P=f(D),B=v(D.length),V=h?B-1:0,L=h?-1:1;if(I<2)for(;;){if(V in P){w=P[V],V+=L;break}if(V+=L,h?V<0:B<=V)throw TypeError("Reduce of empty array with no initial value")}for(;h?V>=0:B>V;V+=L)V in P&&(w=S(w,P[V],V,D));return w}};n.exports={left:p(!1),right:p(!0)}},d784:function(n,s,t){t("ac1f");var r=t("6eeb"),d=t("d039"),f=t("b622"),v=t("9263"),p=t("9112"),h=f("species"),b=!d(function(){var P=/./;return P.exec=function(){var B=[];return B.groups={a:"7"},B},"".replace(P,"$<a>")!=="7"}),S=function(){return"a".replace(/./,"$0")==="$0"}(),I=f("replace"),w=function(){return/./[I]?/./[I]("a","$0")==="":!1}(),D=!d(function(){var P=/(?:)/,B=P.exec;P.exec=function(){return B.apply(this,arguments)};var V="ab".split(P);return V.length!==2||V[0]!=="a"||V[1]!=="b"});n.exports=function(P,B,V,L){var K=f(P),Z=!d(function(){var F={};return F[K]=function(){return 7},""[P](F)!=7}),ne=Z&&!d(function(){var F=!1,W=/a/;return P==="split"&&(W={},W.constructor={},W.constructor[h]=function(){return W},W.flags="",W[K]=/./[K]),W.exec=function(){return F=!0,null},W[K](""),!F});if(!Z||!ne||P==="replace"&&!(b&&S&&!w)||P==="split"&&!D){var M=/./[K],Y=V(K,""[P],function(F,W,de,X,q){return W.exec===v?Z&&!q?{done:!0,value:M.call(W,de,X)}:{done:!0,value:F.call(de,W,X)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),ee=Y[0],le=Y[1];r(String.prototype,P,ee),r(RegExp.prototype,K,B==2?function(F,W){return le.call(F,this,W)}:function(F){return le.call(F,this)})}L&&p(RegExp.prototype[K],"sham",!0)}},d81d:function(n,s,t){var r=t("23e7"),d=t("b727").map,f=t("1dde"),v=t("ae40"),p=f("map"),h=v("map");r({target:"Array",proto:!0,forced:!p||!h},{map:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,s,t){(function(r){var d=function(f){return f&&f.Math==Math&&f};n.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof r=="object"&&r)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(n,s,t){var r=t("23e7"),d=t("83ab"),f=t("56ef"),v=t("fc6a"),p=t("06cf"),h=t("8418");r({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(S){for(var I=v(S),w=p.f,D=f(I),P={},B=0,V,L;D.length>B;)L=w(I,V=D[B++]),L!==void 0&&h(P,V,L);return P}})},dbf1:function(n,s,t){(function(r){t.d(s,"a",function(){return f});function d(){return typeof window<"u"?window.console:r.console}var f=d()}).call(this,t("c8ba"))},ddb0:function(n,s,t){var r=t("da84"),d=t("fdbc"),f=t("e260"),v=t("9112"),p=t("b622"),h=p("iterator"),b=p("toStringTag"),S=f.values;for(var I in d){var w=r[I],D=w&&w.prototype;if(D){if(D[h]!==S)try{v(D,h,S)}catch{D[h]=S}if(D[b]||v(D,b,I),d[I]){for(var P in f)if(D[P]!==f[P])try{v(D,P,f[P])}catch{D[P]=f[P]}}}}},df75:function(n,s,t){var r=t("ca84"),d=t("7839");n.exports=Object.keys||function(v){return r(v,d)}},e01a:function(n,s,t){var r=t("23e7"),d=t("83ab"),f=t("da84"),v=t("5135"),p=t("861d"),h=t("9bf2").f,b=t("e893"),S=f.Symbol;if(d&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var I={},w=function(){var K=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Z=this instanceof w?new S(K):K===void 0?S():S(K);return K===""&&(I[Z]=!0),Z};b(w,S);var D=w.prototype=S.prototype;D.constructor=w;var P=D.toString,B=String(S("test"))=="Symbol(test)",V=/^Symbol\((.*)\)[^)]+$/;h(D,"description",{configurable:!0,get:function(){var K=p(this)?this.valueOf():this,Z=P.call(K);if(v(I,K))return"";var ne=B?Z.slice(7,-1):Z.replace(V,"$1");return ne===""?void 0:ne}}),r({global:!0,forced:!0},{Symbol:w})}},e163:function(n,s,t){var r=t("5135"),d=t("7b0b"),f=t("f772"),v=t("e177"),p=f("IE_PROTO"),h=Object.prototype;n.exports=v?Object.getPrototypeOf:function(b){return b=d(b),r(b,p)?b[p]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?h:null}},e177:function(n,s,t){var r=t("d039");n.exports=!r(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},e260:function(n,s,t){var r=t("fc6a"),d=t("44d2"),f=t("3f8c"),v=t("69f3"),p=t("7dd0"),h="Array Iterator",b=v.set,S=v.getterFor(h);n.exports=p(Array,"Array",function(I,w){b(this,{type:h,target:r(I),index:0,kind:w})},function(){var I=S(this),w=I.target,D=I.kind,P=I.index++;return!w||P>=w.length?(I.target=void 0,{value:void 0,done:!0}):D=="keys"?{value:P,done:!1}:D=="values"?{value:w[P],done:!1}:{value:[P,w[P]],done:!1}},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},e439:function(n,s,t){var r=t("23e7"),d=t("d039"),f=t("fc6a"),v=t("06cf").f,p=t("83ab"),h=d(function(){v(1)}),b=!p||h;r({target:"Object",stat:!0,forced:b,sham:!p},{getOwnPropertyDescriptor:function(I,w){return v(f(I),w)}})},e538:function(n,s,t){var r=t("b622");s.f=r},e893:function(n,s,t){var r=t("5135"),d=t("56ef"),f=t("06cf"),v=t("9bf2");n.exports=function(p,h){for(var b=d(h),S=v.f,I=f.f,w=0;w<b.length;w++){var D=b[w];r(p,D)||S(p,D,I(h,D))}}},e8b5:function(n,s,t){var r=t("c6b6");n.exports=Array.isArray||function(f){return r(f)=="Array"}},e95a:function(n,s,t){var r=t("b622"),d=t("3f8c"),f=r("iterator"),v=Array.prototype;n.exports=function(p){return p!==void 0&&(d.Array===p||v[f]===p)}},f5df:function(n,s,t){var r=t("00ee"),d=t("c6b6"),f=t("b622"),v=f("toStringTag"),p=d(function(){return arguments}())=="Arguments",h=function(b,S){try{return b[S]}catch{}};n.exports=r?d:function(b){var S,I,w;return b===void 0?"Undefined":b===null?"Null":typeof(I=h(S=Object(b),v))=="string"?I:p?d(S):(w=d(S))=="Object"&&typeof S.callee=="function"?"Arguments":w}},f772:function(n,s,t){var r=t("5692"),d=t("90e3"),f=r("keys");n.exports=function(v){return f[v]||(f[v]=d(v))}},fb15:function(n,s,t){if(t.r(s),typeof window<"u"){var r=window.document.currentScript;{var d=t("8875");r=d(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:d})}var f=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);f&&(t.p=f[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function v(T,O,R){return O in T?Object.defineProperty(T,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[O]=R,T}function p(T,O){var R=Object.keys(T);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(T);O&&(z=z.filter(function(te){return Object.getOwnPropertyDescriptor(T,te).enumerable})),R.push.apply(R,z)}return R}function h(T){for(var O=1;O<arguments.length;O++){var R=arguments[O]!=null?arguments[O]:{};O%2?p(Object(R),!0).forEach(function(z){v(T,z,R[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(R)):p(Object(R)).forEach(function(z){Object.defineProperty(T,z,Object.getOwnPropertyDescriptor(R,z))})}return T}function b(T){if(Array.isArray(T))return T}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function S(T,O){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(T)))){var R=[],z=!0,te=!1,ve=void 0;try{for(var ge=T[Symbol.iterator](),Oe;!(z=(Oe=ge.next()).done)&&(R.push(Oe.value),!(O&&R.length===O));z=!0);}catch(je){te=!0,ve=je}finally{try{!z&&ge.return!=null&&ge.return()}finally{if(te)throw ve}}return R}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function I(T,O){(O==null||O>T.length)&&(O=T.length);for(var R=0,z=new Array(O);R<O;R++)z[R]=T[R];return z}function w(T,O){if(T){if(typeof T=="string")return I(T,O);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(T);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return I(T,O)}}function D(){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 P(T,O){return b(T)||S(T,O)||w(T,O)||D()}function B(T){if(Array.isArray(T))return I(T)}function V(T){if(typeof Symbol<"u"&&Symbol.iterator in Object(T))return Array.from(T)}function L(){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(T){return B(T)||V(T)||w(T)||L()}var Z=t("a352"),ne=t.n(Z);function M(T){T.parentElement!==null&&T.parentElement.removeChild(T)}function Y(T,O,R){var z=R===0?T.children[0]:T.children[R-1].nextSibling;T.insertBefore(O,z)}var ee=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function le(T){var O=Object.create(null);return function(z){var te=O[z];return te||(O[z]=T(z))}}var F=/-(\w)/g,W=le(function(T){return T.replace(F,function(O,R){return R.toUpperCase()})});t("5db7"),t("73d9");var de=["Start","Add","Remove","Update","End"],X=["Choose","Unchoose","Sort","Filter","Clone"],q=["Move"],be=[q,de,X].flatMap(function(T){return T}).map(function(T){return"on".concat(T)}),ke={manage:q,manageAndEmit:de,emit:X};function Fe(T){return be.indexOf(T)!==-1}t("caad"),t("2ca0");var Qe=["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 re(T){return Qe.includes(T)}function Ke(T){return["transition-group","TransitionGroup"].includes(T)}function Ge(T){return["id","class","role","style"].includes(T)||T.startsWith("data-")||T.startsWith("aria-")||T.startsWith("on")}function _(T){return T.reduce(function(O,R){var z=P(R,2),te=z[0],ve=z[1];return O[te]=ve,O},{})}function Me(T){var O=T.$attrs,R=T.componentData,z=R===void 0?{}:R,te=_(Object.entries(O).filter(function(ve){var ge=P(ve,2),Oe=ge[0];return ge[1],Ge(Oe)}));return h(h({},te),z)}function Re(T){var O=T.$attrs,R=T.callBackBuilder,z=_(ct(O));Object.entries(R).forEach(function(ve){var ge=P(ve,2),Oe=ge[0],je=ge[1];ke[Oe].forEach(function(ce){z["on".concat(ce)]=je(ce)})});var te="[data-draggable]".concat(z.draggable||"");return h(h({},z),{},{draggable:te})}function ct(T){return Object.entries(T).filter(function(O){var R=P(O,2),z=R[0];return R[1],!Ge(z)}).map(function(O){var R=P(O,2),z=R[0],te=R[1];return[W(z),te]}).filter(function(O){var R=P(O,2),z=R[0];return R[1],!Fe(z)})}t("c740");function ot(T,O){if(!(T instanceof O))throw new TypeError("Cannot call a class as a function")}function zt(T,O){for(var R=0;R<O.length;R++){var z=O[R];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(T,z.key,z)}}function Yt(T,O,R){return O&&zt(T.prototype,O),T}var it=function(O){var R=O.el;return R},Je=function(O,R){return O.__draggable_context=R},Le=function(O){return O.__draggable_context},Xt=function(){function T(O){var R=O.nodes,z=R.header,te=R.default,ve=R.footer,ge=O.root,Oe=O.realList;ot(this,T),this.defaultNodes=te,this.children=[].concat(K(z),K(te),K(ve)),this.externalComponent=ge.externalComponent,this.rootTransition=ge.transition,this.tag=ge.tag,this.realList=Oe}return Yt(T,[{key:"render",value:function(R,z){var te=this.tag,ve=this.children,ge=this._isRootComponent,Oe=ge?{default:function(){return ve}}:ve;return R(te,z,Oe)}},{key:"updated",value:function(){var R=this.defaultNodes,z=this.realList;R.forEach(function(te,ve){Je(it(te),{element:z[ve],index:ve})})}},{key:"getUnderlyingVm",value:function(R){return Le(R)}},{key:"getVmIndexFromDomIndex",value:function(R,z){var te=this.defaultNodes,ve=te.length,ge=z.children,Oe=ge.item(R);if(Oe===null)return ve;var je=Le(Oe);if(je)return je.index;if(ve===0)return 0;var ce=it(te[0]),oe=K(ge).findIndex(function(ue){return ue===ce});return R<oe?0:ve}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),T}(),Ct=t("8bbf");function Ut(T,O){var R=T[O];return R?R():[]}function At(T){var O=T.$slots,R=T.realList,z=T.getKey,te=R||[],ve=["header","footer"].map(function(ue){return Ut(O,ue)}),ge=P(ve,2),Oe=ge[0],je=ge[1],ce=O.item;if(!ce)throw new Error("draggable element must have an item slot");var oe=te.flatMap(function(ue,Ee){return ce({element:ue,index:Ee}).map(function(we){return we.key=z(ue),we.props=h(h({},we.props||{}),{},{"data-draggable":!0}),we})});if(oe.length!==te.length)throw new Error("Item slot must have only one child");return{header:Oe,footer:je,default:oe}}function xt(T){var O=Ke(T),R=!re(T)&&!O;return{transition:O,externalComponent:R,tag:R?Object(Ct.resolveComponent)(T):O?Ct.TransitionGroup:T}}function Ot(T){var O=T.$slots,R=T.tag,z=T.realList,te=T.getKey,ve=At({$slots:O,realList:z,getKey:te}),ge=xt(R);return new Xt({nodes:ve,root:ge,realList:z})}function $t(T,O){var R=this;Object(Ct.nextTick)(function(){return R.$emit(T.toLowerCase(),O)})}function rn(T){var O=this;return function(R,z){if(O.realList!==null)return O["onDrag".concat(T)](R,z)}}function pn(T){var O=this,R=rn.call(this,T);return function(z,te){R.call(O,z,te),$t.call(O,T,z)}}var mn=null,gn={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(O){return O}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},hn=["update:modelValue","change"].concat(K([].concat(K(ke.manageAndEmit),K(ke.emit)).map(function(T){return T.toLowerCase()}))),yn=Object(Ct.defineComponent)({name:"draggable",inheritAttrs:!1,props:gn,emits:hn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var O=this.$slots,R=this.$attrs,z=this.tag,te=this.componentData,ve=this.realList,ge=this.getKey,Oe=Ot({$slots:O,tag:z,realList:ve,getKey:ge});this.componentStructure=Oe;var je=Me({$attrs:R,componentData:te});return Oe.render(Ct.h,je)}catch(ce){return this.error=!0,Object(Ct.h)("pre",{style:{color:"red"}},ce.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&ee.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var O=this;if(!this.error){var R=this.$attrs,z=this.$el,te=this.componentStructure;te.updated();var ve=Re({$attrs:R,callBackBuilder:{manageAndEmit:function(je){return pn.call(O,je)},emit:function(je){return $t.bind(O,je)},manage:function(je){return rn.call(O,je)}}}),ge=z.nodeType===1?z:z.parentElement;this._sortable=new ne.a(ge,ve),this.targetDomElement=ge,ge.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var O=this.list;return O||this.modelValue},getKey:function(){var O=this.itemKey;return typeof O=="function"?O:function(R){return R[O]}}},watch:{$attrs:{handler:function(O){var R=this._sortable;R&&ct(O).forEach(function(z){var te=P(z,2),ve=te[0],ge=te[1];R.option(ve,ge)})},deep:!0}},methods:{getUnderlyingVm:function(O){return this.componentStructure.getUnderlyingVm(O)||null},getUnderlyingPotencialDraggableComponent:function(O){return O.__draggable_component__},emitChanges:function(O){var R=this;Object(Ct.nextTick)(function(){return R.$emit("change",O)})},alterList:function(O){if(this.list){O(this.list);return}var R=K(this.modelValue);O(R),this.$emit("update:modelValue",R)},spliceList:function(){var O=arguments,R=function(te){return te.splice.apply(te,K(O))};this.alterList(R)},updatePosition:function(O,R){var z=function(ve){return ve.splice(R,0,ve.splice(O,1)[0])};this.alterList(z)},getRelatedContextFromMoveEvent:function(O){var R=O.to,z=O.related,te=this.getUnderlyingPotencialDraggableComponent(R);if(!te)return{component:te};var ve=te.realList,ge={list:ve,component:te};if(R!==z&&ve){var Oe=te.getUnderlyingVm(z)||{};return h(h({},Oe),ge)}return ge},getVmIndexFromDomIndex:function(O){return this.componentStructure.getVmIndexFromDomIndex(O,this.targetDomElement)},onDragStart:function(O){this.context=this.getUnderlyingVm(O.item),O.item._underlying_vm_=this.clone(this.context.element),mn=O.item},onDragAdd:function(O){var R=O.item._underlying_vm_;if(R!==void 0){M(O.item);var z=this.getVmIndexFromDomIndex(O.newIndex);this.spliceList(z,0,R);var te={element:R,newIndex:z};this.emitChanges({added:te})}},onDragRemove:function(O){if(Y(this.$el,O.item,O.oldIndex),O.pullMode==="clone"){M(O.clone);return}var R=this.context,z=R.index,te=R.element;this.spliceList(z,1);var ve={element:te,oldIndex:z};this.emitChanges({removed:ve})},onDragUpdate:function(O){M(O.item),Y(O.from,O.item,O.oldIndex);var R=this.context.index,z=this.getVmIndexFromDomIndex(O.newIndex);this.updatePosition(R,z);var te={element:this.context.element,oldIndex:R,newIndex:z};this.emitChanges({moved:te})},computeFutureIndex:function(O,R){if(!O.element)return 0;var z=K(R.to.children).filter(function(Oe){return Oe.style.display!=="none"}),te=z.indexOf(R.related),ve=O.component.getVmIndexFromDomIndex(te),ge=z.indexOf(mn)!==-1;return ge||!R.willInsertAfter?ve:ve+1},onDragMove:function(O,R){var z=this.move,te=this.realList;if(!z||!te)return!0;var ve=this.getRelatedContextFromMoveEvent(O),ge=this.computeFutureIndex(ve,O),Oe=h(h({},this.context),{},{futureIndex:ge}),je=h(h({},O),{},{relatedContext:ve,draggedContext:Oe});return z(je,R)},onDragEnd:function(){mn=null}}}),bn=yn;s.default=bn},fb6a:function(n,s,t){var r=t("23e7"),d=t("861d"),f=t("e8b5"),v=t("23cb"),p=t("50c4"),h=t("fc6a"),b=t("8418"),S=t("b622"),I=t("1dde"),w=t("ae40"),D=I("slice"),P=w("slice",{ACCESSORS:!0,0:0,1:2}),B=S("species"),V=[].slice,L=Math.max;r({target:"Array",proto:!0,forced:!D||!P},{slice:function(Z,ne){var M=h(this),Y=p(M.length),ee=v(Z,Y),le=v(ne===void 0?Y:ne,Y),F,W,de;if(f(M)&&(F=M.constructor,typeof F=="function"&&(F===Array||f(F.prototype))?F=void 0:d(F)&&(F=F[B],F===null&&(F=void 0)),F===Array||F===void 0))return V.call(M,ee,le);for(W=new(F===void 0?Array:F)(L(le-ee,0)),de=0;ee<le;ee++,de++)ee in M&&b(W,de,M[ee]);return W.length=de,W}})},fc6a:function(n,s,t){var r=t("44ad"),d=t("1d80");n.exports=function(f){return r(d(f))}},fdbc:function(n,s){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,s,t){var r=t("4930");n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(ja);var Ed=ja.exports;const Ba=ps(Ed);function Fa(c,o){["name","gender","phone","id_card","ethnicity","height","weight","current_address","household_location","marital_status","expected_salary"].forEach(n=>{o[n]&&(c[n].visible=o[n].visible,c[n].required=o[n].required)}),["family_member","education","work_experience"].forEach(n=>{o[n]&&(c[n].visible=o[n].visible,Object.keys(o[n].fields).forEach(s=>{c[n].fields[s]&&(c[n].fields[s].visible=o[n].fields[s].visible,c[n].fields[s].required=o[n].fields[s].required)}))})}const xd={class:"position-detail-container"},Id={class:"header-container"},wd={class:"header-actions"},Cd={class:"detail-content"},Ad={class:"detail-item"},Od={key:0,class:"detail-value"},Td={key:1,class:"title-edit-container"},Dd={class:"title-edit-actions"},Pd={class:"detail-item"},Rd={key:0,class:"detail-value"},Vd={key:1,class:"title-edit-container"},Ud={class:"title-edit-actions"},kd={class:"detail-item"},Kd={key:0,class:"detail-value"},Md={key:1,class:"title-edit-container"},Nd={class:"title-edit-actions"},Bd={class:"detail-item"},Fd={key:0,class:"detail-value"},Ld={key:1,class:"title-edit-container"},jd={class:"salary-range-container"},Qd={class:"title-edit-actions"},Gd={class:"detail-item"},zd={key:0,class:"detail-value"},$d={key:1,class:"title-edit-container"},Jd={class:"title-edit-actions"},Wd={class:"detail-item"},Hd={key:0,class:"detail-value"},qd={key:1,class:"title-edit-container"},Yd={class:"title-edit-actions"},Xd={class:"detail-item"},Zd={key:0,class:"detail-value"},_d={key:1,class:"title-edit-container"},eu={class:"title-edit-actions"},tu={class:"detail-item"},nu={class:"detail-value"},ou={class:"detail-item"},iu={key:0,class:"detail-value"},au={key:1,class:"title-edit-container"},ru={class:"title-edit-actions"},lu={class:"detail-item"},su=["innerHTML"],du={key:2,class:"title-edit-container"},uu={class:"title-edit-actions"},cu={class:"detail-item"},fu=["innerHTML"],vu={key:2,class:"title-edit-container"},pu={class:"title-edit-actions"},mu={class:"detail-item"},gu={key:0,class:"detail-value"},hu={key:1,class:"title-edit-container"},yu={class:"title-edit-actions"},bu={class:"status-cards"},Su={class:"status-switch"},Eu={class:"status-text"},xu={class:"section-title"},Iu={class:"usage-content"},wu={key:0,class:"usage-value"},Cu={key:1,class:"title-edit-container"},Au={class:"title-edit-actions"},Ou={class:"section-title"},Tu={class:"process-steps"},Du={key:0,class:"step-number"},Pu={class:"step-content"},Ru={class:"step-title"},Vu={class:"section-title"},Uu={class:"process-dialog-content"},ku={key:0,class:"add-process-btn-top"},Ku={key:0,class:"process-number"},Mu={class:"process-edit-content"},Nu={key:1,class:"process-edit-btn"},Bu=["onClick"],Fu={class:"dialog-footer"},Lu={class:"ai-video-steps"},ju={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},Qu={class:"ai-video-options"},Gu={class:"recommended-dimensions"},zu={class:"dimension-grid"},$u={class:"ability-label"},Ju={class:"optional-dimensions"},Wu={class:"header-row"},Hu={class:"right_btn"},qu={class:"dimension-grid"},Yu={class:"ability-label"},Xu={class:"custom-dimensions"},Zu={class:"dimension-form"},_u={class:"dimension-row"},ec={class:"dimension-input"},tc={class:"dimension-input"},nc={class:"dimension-actions"},oc={key:1,class:"ai-video-content"},ic={class:"interview-settings"},ac={class:"interview-header"},rc={class:"interview-actions"},lc={class:"question-switches"},sc={class:"switch-item"},dc={class:"switch-item"},uc={class:"interview-duration"},cc={class:"duration-value"},fc={class:"interview-content"},vc={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},pc={key:0,class:"no-questions"},mc={key:1,class:"question-list"},gc={class:"question-card"},hc={class:"question-header"},yc={class:"question-title"},bc={class:"title-content"},Sc={class:"question-content"},Ec={class:"question-number"},xc={style:{color:"#0017ab"}},Ic={class:"question-tags"},wc={key:0,class:"more-tags-indicator"},Cc={class:"question-actions",style:{"margin-top":"0px"}},Ac={class:"question-info"},Oc={class:"info-item"},Tc={key:0,class:"question-actions"},Dc={class:"answer-limit"},Pc={class:"answer-limit"},Rc={key:1,class:"question-actions"},Vc={class:"answer-limit"},Uc={class:"multi-dimension-questions"},kc={class:"dimension-list"},Kc={class:"dimension-header"},Mc={class:"dimension-info"},Nc={class:"ability-name"},Bc=["onClick"],Fc={key:2,class:"ai-video-content"},Lc={class:"system-settings"},jc={class:"setting-section"},Qc={style:{display:"flex","align-items":"flex-start"}},Gc={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},zc=["src"],$c={class:"interviewer-avatars"},Jc=["onClick"],Wc={class:"avatar-wrapper"},Hc=["src","alt"],qc=["title"],Yc={class:"setting-item",style:{border:"none"}},Xc={class:"setting-options"},Zc={class:"interview-settings"},_c={class:"setting-item"},ef={class:"setting-item"},tf={class:"setting-options"},nf={class:"setting-item"},of={class:"drawer-footer"},af={class:"video-lecture-form"},rf={class:"form-item"},lf={class:"upload-area"},sf=["src"],df={class:"form-item"},uf={class:"dialog-footer"},cf={class:"ai-chat-content"},ff={class:"chat-settings"},vf={class:"chat-actions"},pf={class:"chat-questions"},mf={key:0,class:"empty-questions"},gf={key:1,class:"question-list"},hf={class:"question-card"},yf={class:"question-header"},bf={class:"question-title"},Sf={class:"question-number"},Ef={class:"question-actions"},xf={class:"weight-control"},If={class:"answer-limit"},wf={class:"question-info"},Cf={class:"info-item"},Af={class:"info-item"},Of={class:"info-item"},Tf={class:"drawer-footer"},Df={class:"question-form"},Pf={class:"form-item"},Rf={class:"form-item"},Vf={class:"form-item"},Uf={class:"competency-config"},kf={class:"tag-name"},Kf={class:"form-tip"},Mf={class:"form-item"},Nf={class:"form-item"},Bf={key:0,class:"form-item"},Ff=["onClick"],Lf={key:1,class:"form-item"},jf={key:2},Qf=["src"],Gf={class:"form-item"},zf={class:"form-item"},$f={class:"form-item"},Jf={class:"form-item"},Wf={class:"dialog-footer"},Hf={class:"question-select-content"},qf={class:"custom-tree-node"},Yf={class:"node-label",style:{display:"flex","align-items":"center"}},Xf={class:"ml-2"},Zf={class:"dialog-footer"},_f={class:"data-collection-form"},ev={class:"field-config-panel"},tv={class:"field-config-list"},nv={class:"field-config-item"},ov={class:"field-label"},iv={class:"field-config-item"},av={class:"field-label"},rv={class:"field-config-item sub-field"},lv={class:"field-label"},sv={class:"field-config-item"},dv={class:"field-label"},uv={class:"field-config-item sub-field"},cv={class:"field-label"},fv={class:"field-config-item"},vv={class:"field-label"},pv={class:"field-config-item"},mv={class:"field-label"},gv={class:"field-config-item sub-field"},hv={class:"field-label"},yv={class:"dialog-footer"},bv={class:"resume-collection-form"},Sv={class:"form-item"},Ev={class:"dialog-footer"},xv={class:"code-test-form"},Iv={class:"form-item"},wv={class:"form-item"},Cv={class:"switch-label"},Av={class:"form-item"},Ov={class:"test-paper-selector"},Tv={key:0,class:"empty-paper"},Dv={key:1,class:"selected-paper"},Pv={class:"paper-info"},Rv={class:"paper-title"},Vv={class:"paper-meta"},Uv={class:"paper-actions"},kv={class:"dialog-footer"},Kv={class:"typing-test-form"},Mv={class:"form-item"},Nv={class:"article-selection"},Bv={class:"form-item"},Fv={class:"form-item"},Lv={class:"time-input-container"},jv={class:"form-item"},Qv={class:"upload-area"},Gv={class:"form-item"},zv={class:"form-item"},$v={class:"form-item"},Jv={class:"form-item"},Wv={class:"criteria-options"},Hv={class:"dialog-footer"},qv={class:"interview-settings-content"},Yv={class:"settings-section"},Xv={class:"setting-item"},Zv={class:"setting-item"},_v={class:"setting-item"},ep={class:"setting-item"},tp={class:"settings-section"},np={class:"setting-item"},op={class:"setting-info"},ip={class:"setting-desc-container"},ap={class:"setting-item"},rp={class:"setting-info"},lp={key:0,class:"setting-desc-container"},sp={class:"setting-desc"},dp={key:1,class:"desc-edit-container"},up={class:"desc-edit-actions"},cp={class:"setting-item"},fp={class:"setting-info"},vp={key:0,class:"setting-desc-container"},pp={class:"setting-desc"},mp={key:1,class:"desc-edit-container"},gp={class:"desc-edit-actions"},hp={class:"dialog-footer"},yp={class:"question-select-content"},bp={class:"document-box document-left-box"},Sp={class:"search-bar"},Ep={class:"search-inputs"},xp={class:"question-lists"},Ip={class:"pagination-container"},wp={class:"dialog-footer"},Cp={class:"candidate-questions-form"},Ap={class:"form-item"},Op={class:"form-item"},Tp={class:"form-item"},Dp={class:"dialog-footer"},Pp={class:"dialog-footer"},Rp={class:"selected-applications-preview"},Vp={class:"preview-title"},Up={key:0,class:"tags-summary"},kp={key:1,style:{color:"#909399","margin-bottom":"8px"}},Kp={key:0,style:{color:"#909399"}},Mp={class:"preview-footer"},La="position_field_config_cache",Np=ts({__name:"index",setup(c){const o=(a,e)=>{try{const x={positionId:e,config:JSON.parse(JSON.stringify(a)),timestamp:Date.now()};localStorage.setItem(La,JSON.stringify(x))}catch(x){console.error("保存字段配置到缓存失败:",x)}},i=a=>{try{const e=localStorage.getItem(La);if(e){const x=JSON.parse(e);if(x.positionId===a&&Date.now()-x.timestamp<6048e5)return x.config}return null}catch(e){return console.error("读取字段配置缓存失败:",e),null}},u=G(null),n=ns(),s=os(),t=G(s.query.id),r=G(!1),d=G(!1),f=a=>p.slice(0,a+1).filter(e=>e.visible).length,v=et({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,detailed_address:""}),p=et([{id:1,name:"视频宣讲",description:"视频宣讲",active:!0,type:"video_presentation",visible:!0},{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:10,name:"肢体检测",description:"肢体检测",active:!0,type:"posture_check",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}]),h=G(!1),b=[{label:"视频宣讲",value:"video_presentation"},{label:"简历收集",value:"resume_collection"},{label:"资料收集",value:"data_collection"},{label:"AI考察",value:"ai_video"},{label:"综合素质考察",value:"common_sense"},{label:"心理测试",value:"psychological_problem"},{label:"候选人提问",value:"candidate_questions"},{label:"肢体检测",value:"posture_check"}],S=a=>(kt.value.forEach(e=>{a.id==e.id&&(a.name=e.name)}),a.name),I=G(!1),w=a=>{lt.pageSize=a,nn({page:lt.page,limit:lt.pageSize,question_form:st.question_form}).then(e=>{e.data&&(lt.value=e.data.items,vt.page=e.data.page,vt.pageSize=e.data.limit,Jt.value=e.data.total)})},D=a=>{lt.page=a,nn({page:lt.page,limit:lt.pageSize,question_form:st.question_form}).then(e=>{e.data&&(lt.value=e.data.items,vt.page=e.data.page,vt.pageSize=e.data.limit,Jt.value=e.data.total)})},P=async()=>{const a=Lt.value.map(e=>e.id);if(console.log("selectedQuestionIds",a),a.length===0){A.warning("请至少选择一个问题");return}try{await Ii({position_id:s.query.id,question_id:a,duration:60,tenant_id:Kt.get("tenant_id")});const e=lt.value.filter(x=>x.selected);Lt.value.push(...e),A.success("问题添加成功"),I.value=!1}catch(e){console.error("添加问题失败:",e),e.code===4e3?A.warning("该题目已绑定,请选择其他题目"):A.error("添加问题失败,请重试")}},B=()=>{En.value=!0,ya({position_id:s.query.id}).then(a=>{a.data.forEach(e=>{e.selected=!1}),kt.value=a.data,console.log("res",a),En.value=!1}).catch(a=>{console.log("err",a),En.value=!1})},V=Rs(),L=a=>{if(console.log("地址选择变化:",a),a&&Array.isArray(a)&&a.length>0){const[e,x,E]=a,C=V.find(J=>J.code===e);let N;C&&C.children&&(N=C.children.find(J=>J.code===x),N&&N.children&&N.children.find(J=>J.code===E))}},K=G(!1),Z=G([]),ne=Eo(()=>{const a=new Map,e=x=>{if(!x)return;const E=x.id??x.name;if(E==null)return;const C=String(E);a.has(C)||a.set(C,{id:x.id,name:x.name??x.label??x.text??x.title??""})};return Z.value.forEach(x=>{if(x.question_form===4){const E=x.psychological_tags||x.mental_tags||x.tags||[];Array.isArray(E)&&E.length>0?E.forEach(e):e({id:"psychological_default",name:"心理测试",title:"心理测试"})}else{const E=x.tags||x.competency_tags||[];Array.isArray(E)&&E.forEach(e)}}),Array.from(a.values())}),M=a=>{if(!a)return[];if(a.question_form===4){const e=a.psychological_tags||a.mental_tags||a.tags||[];return e.length===0?[{id:"psychological_default",name:"心理测试",title:"心理测试"}]:e}else return a.tags||a.competency_tags||[]},Y=async a=>{K.value=!0;try{const e=await wi({page:1,limit:100,job_id:s.query.id,question_form:a});e.data&&e.data.items&&(Z.value=e.data.items,a==="4"&&(console.log("心理问题数据结构:",e.data.items),e.data.items.forEach((x,E)=>{console.log(`心理问题 ${E+1}:`,{question:x.question,question_form:x.question_form,tags:x.tags,psychological_tags:x.psychological_tags,mental_tags:x.mental_tags,competency_tags:x.competency_tags})})))}catch(e){console.error("获取职位申请数据失败:",e),A.error("获取职位申请数据失败")}},ee=(a,e)=>{},le=G(-1),F=G(!1),W=et({top:"0px",left:"0px"}),de=G(!1),X=et({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),q=G(1),be=G([{label:"沟通能力",value:"communication",level:"CC",description:"能够清晰、准确地表达想法,善于倾听和理解他人的观点,具备良好的书面和口头表达能力。",expanded:!1,isNew:!0},{label:"团队协作",value:"teamwork",level:"CC",description:"能够与团队成员有效合作,共同完成目标,具备良好的团队精神和协作意识。",expanded:!1,isNew:!1}]);et({min:0,max:100,minScore:0,maxScore:0});const ke=a=>{console.log(a)};G("standard"),G(!1);const Fe=G(!1),Qe="https://backend.qicai321.com/api/system/admin_upload/",re=et({title:"",videoFile:null,video_url:"",description:"",broadcastType:"required"}),Ke=G(!1);G(15),G(5);const Ge=G(!1),_=et({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category_name:"",tags:[],suggestedDuration:60,scoring_reference:"",question_image_url:"",blank_answer_template:[],tag_ids:[]}),Me=a=>a.map(e=>e.id),Re=G([]),ct=G([]);G([{label:"技术能力",value:"tech"},{label:"管理能力",value:"management"},{label:"沟通能力",value:"communication"},{label:"专业知识",value:"professional"},{label:"个人素质",value:"personal"}]),G([]);const ot=()=>{Object.assign(_,{id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category_name:"",tags:[],suggestedDuration:60,scoring_reference:"",question_image_url:"",blank_answer_template:[],tag_ids:[]})},zt=async()=>{const a=await us({page:1,page_size:50});console.log(a),ct.value=a.data.map(e=>({label:e.title,value:String(e.id)}))},Yt=()=>{Ge.value=!1,ot()},it=G(!1);et({isRequired:!1,questions:[]}),G([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const Je=G(!1),Le=et({title:"简历收集",isRequired:!0,steps:4}),Xt=()=>{Je.value=!0},Ct=()=>{Je.value=!1,Object.assign(Le,{title:"简历收集",isRequired:!0,steps:4})},Ut=()=>{const a=p.find(e=>e.type==="resume_collection");if(a)a.visible=!0,a.name=Le.title,a.config={...Le};else{const e={id:Date.now(),name:Le.title,description:"简历收集",active:!0,type:"resume_collection",config:{...Le},visible:!0};p.splice(le.value,0,e)}tt({id:Ce.value,require_resume_upload:!0}).then(e=>{e.code==2e3||A.error("添加简历收集失败")}).catch(e=>{console.error("添加简历收集失败:",e),A.error("添加简历收集失败")}),Je.value=!1,A.success("简历收集步骤已添加"),Ct()},At=G(!1),xt=et({enableScoreQuestions:!1,enableColorBlindQuestions:!1,enableOpenQuestions:!1}),Ot=async()=>{var a;try{const e=s.query.id;if(!e){A.error("职位ID不存在");return}const x=Array.isArray(e)?e[0]:e,E=e,C=await cs(e);if(C&&C.data){Object.assign(v,C.data),console.log(v),Re.value=C.data.competency_tags;const N=await wn(e);if(N&&N.data)Ce.value=N.data.id,N.data.enable_psychological_test!==void 0&&(xt.enableScoreQuestions=N.data.enable_psychological_test),N.data.enable_color_blind_test!==void 0&&(xt.enableColorBlindQuestions=N.data.enable_color_blind_test);else if(N&&N.code===2e3&&N.message==="该职位暂无配置")try{const J=await xo({position_id:e,enable_psychological_test:!1,enable_color_blind_test:!1,digital_human_id:null,digital_human_opening_speech:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。"});J&&J.code===2e3?(Ce.value=((a=J.data)==null?void 0:a.id)||J.data,A.success("已自动创建职位配置"),xt.enableScoreQuestions=!1,xt.enableColorBlindQuestions=!1):A.warning("自动创建配置失败,请手动创建")}catch(J){console.error("自动创建配置失败:",J),A.warning("自动创建配置失败,请手动创建")}r.value=v.status===1}}catch(e){console.error("获取职位详情失败:",e),A.error("获取职位详情失败")}},$t=()=>{n.push("/position/list")},rn=()=>{n.push("/position/list")},pn=async a=>{const e=s.query.id;try{const x=a?1:0;if(a){const E=await fs({position_id:e,tenant_id:Kt.get("tenant_id")});if(E.code===2e3){const{is_all_completed:C,total_questions:N}=E.data;if(!C||N<=0){A.warning(`无法开启职位,原因:${N<=0?"当前职位没有设置面试题目":"面试题目视频未全部生成完成"}`),r.value=!a;return}}else{A.error("检查视频状态失败,请稍后重试"),r.value=!a;return}}await bt({id:e,status:x}),v.status=x,A.success(`职位已${a?"开启":"关闭"}`)}catch(x){console.error("修改状态失败:",x),A.error("修改状态失败"),r.value=!a}},mn=()=>{h.value=!0},gn=()=>{h.value=!1,A.success("招聘流程已更新")},hn=()=>{h.value=!1},yn=(a,e)=>{a.type=="ai_video"&&(de.value=!1),a.type=="ai_chat"&&(Ke.value=!1),a.type=="ai_video"&&tt({id:Ce.value,enable_open_questions:!1}).then(x=>{x.code==2e3?A.success("删除成功"):A.error("删除失败")}),a.type=="psychological_problem"&&tt({id:Ce.value,enable_scoring_questions:!1}).then(x=>{if(console.log(x),x.code==2e3){const E=Pn.value.filter(C=>C.question_form===4).map(C=>C.question_id).filter(C=>C!=null);console.log(E),E.length>0&&ba({position_id:s.query.id,question_id:E}).then(C=>{console.log(C),C.code==2e3&&(Pn.value=[])}),A.success("删除成功")}else A.error("删除失败")}),a.type=="common_sense"&&tt({id:Ce.value,enable_single_choice:!1,enable_multiple_choice:!1,enable_image_choice:!1,enable_fill_blank:!1}).then(x=>{if(x.code==2e3){A.success("删除成功");const E=Pn.value.filter(C=>C.question_form!==4&&C.question_form!==0).map(C=>C.question_id).filter(C=>C!=null);E.length>0&&ba({position_id:s.query.id,question_id:E}).then(C=>{C.code==2e3&&(Pn.value=[])})}else A.error("删除失败")}),a.type=="resume_collection"&&tt({id:Ce.value,require_resume_upload:!1}).then(x=>{x.code==2e3?A.success("删除成功"):A.error("删除失败")}),a.type=="posture_check"&&tt({id:Ce.value,enable_posture_check:!1}).then(x=>{if(x.code==2e3){A.success("删除成功");return}else A.error("删除失败")}),a.type=="candidate_questions"&&tt({id:Ce.value,enable_candidate_questions:!1}).then(x=>{if(x.code==2e3){A.success("删除成功");return}else A.error("删除失败")}),a.type=="video_presentation"&&tt({id:Ce.value,enable_video_presentation:!1}).then(x=>{if(x.code==2e3){A.success("删除成功");return}else A.error("删除失败")}),p.splice(e,1),console.log("recruitmentProcess",p)},bn=a=>({0:"未发布",1:"已发布",2:"已结束"})[a]||"未知状态",T=a=>({0:"info",1:"success",2:"danger"})[a]||"info",O=a=>({0:"全职",1:"兼职",2:"实习",3:"其他"})[a]||"未知",R=(a,e)=>{le.value=a,F.value=!0,console.log(a,e);const x=e.currentTarget,E=x.closest(".process-dialog-content");if(E){const C=x.getBoundingClientRect(),N=E.getBoundingClientRect(),J=C.bottom-N.top+5,Q=C.left-N.left;W.top=`${J}px`,W.left=`${Q}px`}e.stopPropagation()},z=async(a,e)=>{if(console.log("type",a==="video_presentation"),a==="ai_video"&&tt({id:Ce.value,enable_open_questions:!0}).then(C=>{C.code==2e3?(p[2].visible=!0,F.value=!1):A.error("更新配置失败")}),a==="common_sense"&&tt({id:Ce.value,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_fill_blank:!0}).then(C=>{C.code==2e3?(p[3].visible=!0,console.log("recruitmentProcess",p),F.value=!1):A.error("更新配置失败")}),a==="psychological_problem"&&tt({id:Ce.value,enable_scoring_questions:!0}).then(C=>{C.code==2e3?(p[4].visible=!0,F.value=!1):A.error("更新配置失败")}),a==="candidate_questions"&&tt({id:Ce.value,enable_candidate_questions:!0}).then(C=>{C.code==2e3?(console.log("recruitmentProcess",p),p[6].visible=!0,le.value=6):A.error("更新配置失败")}),a==="post_render_questions"){Ml.value=!0,F.value=!1;return}if(a==="resume_collection"){Xt(),F.value=!1;return}if(a==="posture_check"&&tt({id:Ce.value,enable_posture_check:!0}).then(C=>{C.code==2e3?(console.log("recruitmentProcess",p),p[5].visible=!0,le.value=5):A.error("删除失败")}),a==="video_presentation"){xn.value=-1,Fe.value=!0,F.value=!1;return}if(p.find(C=>a==="resume_collection"||a==="video_presentation"?C.type===a&&C.visible===!0:!!(C.type&&C.type===a||C.name===e))){A.warning(`"${e}"步骤已存在,不能重复添加`),F.value=!1;return}if(a==="ai_chat"){Ke.value=!0,F.value=!1;return}if(a==="data_collection"){const C=await wn(s.query.id);C&&C.data?(Ce.value=C.data.id,Fa(j,C.data.profile_fields_config),it.value=!0,F.value=!1):(it.value=!0,F.value=!1);return}if(a==="posture_check"&&(F.value=!1),a==="code_test"){rr(),F.value=!1;return}if(a==="typing_test"){Xn.value=!0,F.value=!1;return}const E={id:Date.now(),name:e,description:e,active:!0,type:a,visible:!0};console.log("newStep",E),p.splice(a==="posture_check"?5:le.value,0,E),F.value=!1},te=async()=>{if(q.value<3){if(q.value===1){const a=kt.value.filter(e=>e.selected);if(a.length===0){A.warning("请至少选择一个胜任力考核维度");return}try{be.value=a.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),A.error("处理胜任力标签失败");return}}if(q.value===2){if(Pe.value.length===0){A.warning("请至少添加一个面试题目");return}try{await _r()}catch(a){console.error("保存题目失败:",a),A.error("保存题目失败");return}}if(q.value===3){const a=el();if(!a.isValid){a.messages.forEach(x=>{A.warning(x)});return}const e=ol();console.log("完整的面试配置:",e)}q.value++}else ge()},ve=()=>{q.value>1&&q.value--},ge=async()=>{var C;if(!ht.value||!ht.value.id){A.warning("请选择面试官形象");return}if(!Ho.value){A.warning("请选择面试官");return}const a={id:ht.value.id,name:ht.value.name,avatar_url:ht.value.avatar_url||ht.value.image},e=bi(),x={enableScoreQuestions:xt.enableScoreQuestions,enableColorBlindQuestions:xt.enableColorBlindQuestions};try{if(await bt({id:s.query.id,status:0}),v.status=0,r.value=!1,Ce.value==0){const N=await xo({position_id:s.query.id,digital_human_id:ht.value.id});if(N.code==2e3){A.success("配置保存成功");try{const J={config_id:((C=N.data)==null?void 0:C.id)||N.data};e.beforeStartText&&e.beforeStartText.trim()!==""?(await Ci(J),console.log("开场白生成成功"),de.value=!1,q.value=1,await new Promise(me=>setTimeout(me,4e3))):console.log("无开场白配置,跳过开场白生成"),await Sa(J),A.success("视频开始生成")}catch(J){console.error("获取开场白和视频失败:",J),A.warning("视频生成中,请稍后")}}else A.error("配置保存失败")}else if((await tt({id:Ce.value,digital_human_id:ht.value.id})).code==2e3){A.success("配置保存成功");try{const J={config_id:Ce.value};console.log("开始生成开场白..."),await Ci(J),console.log("开场白生成成功"),de.value=!1,q.value=1,console.log("等待4秒后开始生成视频..."),await rl(4e3),console.log("开始生成视频..."),await Sa(J),console.log("视频生成请求已发送"),A.success("视频开始生成")}catch(J){console.error("获取开场白和视频失败:",J),A.warning("视频生成中,请稍后")}}else A.error("配置保存失败")}catch(N){console.error("更新职位状态失败:",N),A.error("更新职位状态失败");return}console.log("保存时选中的面试官:",a),console.log("保存时的面试设置:",e),console.log("保存时的题目设置:",x);const E={id:Date.now(),name:"AI考察",description:`已选择${be.value.length}项能力测评`,active:!0,type:"ai_video",abilities:be.value.map(N=>N.value),interviewer:a,settings:e};p.splice(le.value,0,E),de.value=!1,q.value=1,A.success("AI考察步骤已添加")},Oe=()=>{de.value=!1,q.value=1},je=a=>{},ce=()=>{Fe.value=!1,Object.assign(re,{title:"",videoFile:null,video_url:"",description:"",broadcastType:"required"})},oe=()=>{if(!re.video_url){A.warning("请先上传视频文件");return}if(xn.value>=0){const a=p[xn.value];a.name=re.title||"视频宣讲",a.description=re.description||"视频宣讲",a.config={video_url:re.video_url,description:re.description,broadcastType:re.broadcastType},A.success("视频宣讲步骤已更新"),Fe.value=!1,xn.value=-1,ce()}else tt({id:Ce.value,enable_video_presentation:!0,video_presentation_url:re.video_url,video_presentation_description:re.description}).then(a=>{if(a.code==2e3){const e={id:Date.now(),name:re.title||"视频宣讲",description:re.description||"视频宣讲",active:!0,type:"video_presentation",visible:!0,config:{video_url:re.video_url,description:re.description,broadcastType:re.broadcastType}};p.splice(le.value,0,e),A.success("视频宣讲步骤已添加"),Fe.value=!1,xn.value=-1,ce()}else A.error("添加视频宣讲失败")}).catch(a=>{console.error("添加视频宣讲失败:",a),A.error("添加视频宣讲失败")})},ue=a=>{const e=a.type.startsWith("video/"),x=a.size/1024/1024<500;return e?x?!0:(A.error("视频大小不能超过500M"),!1):(A.error("只能上传视频文件"),!1)},Ee=a=>{var x;const e=(a==null?void 0:a.url)||((x=a==null?void 0:a.data)==null?void 0:x.url)||(a==null?void 0:a.data);e?(re.video_url=e,A.success("视频上传成功")):A.warning("上传成功但未返回地址")},we=()=>{A.error("视频上传失败")},ft=()=>{const a={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};p.splice(le.value,0,a),Ke.value=!1,A.success("AI实时对话步骤已添加")},Hn=()=>{Ke.value=!1},hi=()=>{if(!Ne.title.trim()){A.warning("请输入环节名称");return}if(Ne.duration<=0){A.warning("提问时长必须大于0分钟");return}if(Ne.maxQuestions<=0){A.warning("最多提问数量必须大于0");return}if(go.value>=0){const a=p[go.value];a.name=Ne.title,a.description=`时长${Ne.duration}分钟,最多${Ne.maxQuestions}个问题`,a.config={...Ne},A.success("候选人提问环节已更新")}else{const a={id:Date.now(),name:Ne.title,description:`时长${Ne.duration}分钟,最多${Ne.maxQuestions}个问题`,active:!0,type:"candidate_questions",config:{...Ne},visible:!0};p.splice(le.value,0,a),A.success("候选人提问环节已添加")}mo.value=!1,$i()},Dn=()=>{mo.value=!1,$i()},$i=()=>{go.value=-1,Object.assign(Ne,{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]})},Pe=G([]),_a=Eo(()=>Pe.value.reduce((a,e)=>{switch(e.question_form){case 0:return a+60;case 1:return a+30;case 2:return a+30;default:return a+30}},0)),er=Eo(()=>{const a=_a.value;if(a<60)return`${a}秒`;const e=Math.floor(a/60),x=a%60;return x>0?`${e}分${x}秒`:`${e}分钟`}),tr=()=>{Ge.value=!0},Ji=()=>{qo.value={question:"",question_form:0,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:[]},ia.value=!1,vo.value=!0},nr=async a=>{try{let e;if(a.question_form==6?e=await Us({...a,tenant_id:Kt.get("tenant_id")}):e=await ks({...a,tenant_id:Kt.get("tenant_id")}),console.log(a),e&&e.code===2e3){if(A.success("题目创建成功"),console.log(e),e.data){const x={id:e.data.id||e.data,title:a.question,content:a.question,question_form:a.question_form,question_form_name:Hi(a.question_form),scoring_reference:a.scoring_reference||"",competency_tag_info:a.competency_tags||[],competency_tags:a.competency_tags||[],options:a.options||[],enable_follow_up:!1,maxAnswers:1,weight:100,source:"custom_selected",question_image_url:a.question_image_url||""};Pe.value.push(x)}vo.value=!1}else A.error("题目创建失败,请重试")}catch(e){console.error("创建题目失败:",e),A.error("题目创建失败,请重试")}},Wi=()=>{vo.value=!1,qo.value={}},Hi=a=>({0:"开放问题",1:"单选题",2:"多选题",3:"识图题",4:"得分题",5:"判断题",6:"填空题"})[a]||"未知类型",qi=a=>{if(Pe.value[a].source!=="ai_generated")console.log(Pe.value[a].id),Is(Pe.value[a].id).then(e=>{var x;if(console.log(e),e.code===2e3){const E={id:e.data.id,content:e.data.question,question_form:e.data.question_form,question_form_name:Hi(e.data.question_form),scoring_reference:e.data.scoring_reference,competency_tag_info:e.data.competency_tag_info,competency_tags:e.data.competency_tags,options:(x=e.data.options)==null?void 0:x.map(C=>({text:C.option_text,is_correct:C.is_correct,sort:C.sort})),enable_follow_up:e.data.enable_follow_up,maxAnswers:e.data.maxAnswers,weight:e.data.weight,question_image_url:e.data.question_image_url,blank_answer_template:e.data.blank_answer_template||[],tags:e.data.tags,category_name:e.data.category_name,tag_ids:e.data.tag_ids};Object.assign(_,E)}});else{const e=Pe.value[a];console.log(e),Object.assign(_,e),console.log(Pe)}Ge.value=!0,kl()},Yi=a=>{ha.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Pe.value.splice(a,1),A.success("删除成功")})},qn=()=>{window.location.reload()},or=()=>{so.value?(_o(()=>{Object.assign(j,so.value)}),console.log(j)):(_o(()=>{Object.assign(j,JSON.parse(JSON.stringify(aa)))}),console.log("使用默认配置")),so.value=null,ta.value=!0,it.value=!1,qn()},Pn=G([]),ir=async()=>{const a=await wi({page:1,limit:100,job_id:s.query.id});a.data&&a.data.items&&(Pn.value=a.data.items),console.log(Pn.value)};is(()=>{Ot(),ea(),il(),zt(),ar(),ir()}),as(()=>{oa()});const ar=async()=>{try{const a=s.query.id;if(a){const e=await wn(a);e&&e.data&&(e.data.enable_psychological_test!==void 0&&(xt.enableScoreQuestions=e.data.enable_psychological_test),e.data.enable_color_blind_test!==void 0&&(xt.enableColorBlindQuestions=e.data.enable_color_blind_test),Ve.positionDetection=e.data.enable_emotion_analysis,p[3].visible=e.data.question_form_switches.enable_open_questions,p[4].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,p[5].visible=e.data.question_form_switches.enable_scoring_questions,p[6].visible=e.data.enable_posture_check,p[7].visible=e.data.question_form_switches.enable_candidate_questions,p[1].visible=e.data.require_resume_upload,p[0].visible=e.data.enable_video_presentation,console.log("recruitmentProcess",p))}}catch(a){console.error("初始化配置状态失败:",a)}},Yn=G(!1),at=et({title:"代码笔试",autoJudge:!0,selectedPaper:null}),rr=()=>{Yn.value=!0},Xi=()=>{Yn.value=!1,Object.assign(at,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},lr=()=>{if(!at.selectedPaper){A.warning("请添加考试试卷");return}const a={id:Date.now(),name:at.title,description:`${at.selectedPaper.title}`,active:!0,type:"code_test",config:{...at}};p.splice(le.value,0,a),Yn.value=!1,A.success("代码笔试步骤已添加"),Xi()},sr=()=>{at.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},dr=()=>{A.info("查看试卷功能开发中")},ur=()=>{A.info("更换试卷功能开发中")},cr=()=>{at.selectedPaper=null},Xn=G(!1),nt=et({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),Zi=()=>{Xn.value=!1,Object.assign(nt,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},fr=()=>{const a={id:Date.now(),name:nt.title,description:`打字测试 ${nt.duration}分钟`,active:!0,type:"typing_test",config:{...nt}};p.splice(le.value,0,a),Xn.value=!1,A.success("打字测试步骤已添加"),Zi()},No=G(!1),Rn=G(""),vr=()=>{Rn.value=v.title,No.value=!0},pr=()=>{No.value=!1},mr=async()=>{if(!Rn.value.trim()){A.warning("职位名称不能为空");return}try{const a=s.query.id;await bt({id:a,title:Rn.value.trim()}),v.title=Rn.value.trim(),No.value=!1,A.success("职位名称已更新")}catch(a){console.error("更新职位名称失败:",a),A.error("更新职位名称失败")}},Bo=G(!1),Vn=G(""),gr=()=>{Vn.value=v.detailed_address,Bo.value=!0},hr=()=>{Bo.value=!1},yr=async()=>{if(!Vn.value.trim()){A.warning("详细地址不能为空");return}try{const a=s.query.id;await bt({id:a,detailed_address:Vn.value.trim()}),v.detailed_address=Vn.value.trim(),Bo.value=!1,A.success("详细地址已更新")}catch(a){console.error("更新详细地址失败:",a),A.error("更新详细地址失败")}},Fo=G(!1),Zt=G(""),br=()=>{if(!v.location)Zt.value="";else if(Array.isArray(v.location))Zt.value=v.location;else if(typeof v.location=="string")try{const e=v.location.replace(/[\[\]']/g,"").split(",").map(N=>N.trim()),x=V.find(N=>N.name===e[0]);let E,C;x&&x.children&&(E=x.children.find(N=>N.name===e[1]),E&&E.children&&(C=E.children.find(N=>N.name===e[2]))),Zt.value=[x==null?void 0:x.code,E==null?void 0:E.code,C==null?void 0:C.code].filter(Boolean)}catch(a){console.error("解析地址失败:",a),Zt.value=""}Fo.value=!0},Sr=()=>{Fo.value=!1},Er=async()=>{try{const a=s.query.id,e=[];if(Zt.value&&Array.isArray(Zt.value)){const[x,E,C]=Zt.value,N=V.find(me=>me.code===x);let J,Q;N&&(e.push(N.name),N.children&&(J=N.children.find(me=>me.code===E),J&&(e.push(J.name),J.children&&(Q=J.children.find(me=>me.code===C),Q&&e.push(Q.name)))))}await bt({id:a,location:e}),v.location=e,Fo.value=!1,A.success("工作地点已更新")}catch(a){console.error("更新工作地点失败:",a),A.error("更新工作地点失败")}},Lo=G(!1),Zn=G("月薪"),Bt=G(0),Ft=G(0),xr=()=>{if(v.salary_range){const a=v.salary_range.split(" ");if(a.length>=2){Zn.value=a[0];const e=a[1].split("-");e.length===2&&(Bt.value=parseInt(e[0])||0,Ft.value=parseInt(e[1])||0)}}else Zn.value="月薪",Bt.value=0,Ft.value=0;Lo.value=!0},Ir=()=>{Lo.value=!1},jo=(a=!1)=>{if(Bt.value&&Ft.value){const e=Number(Bt.value),x=Number(Ft.value);e>x&&(Ft.value=Bt.value,a?A.warning("起始薪资不能高于最高薪资,已自动调整为相同值"):A.warning("起始薪资不能高于最高薪资,已自动调整"))}},_i=()=>{if(Bt.value&&Ft.value){const a=Number(Bt.value),e=Number(Ft.value);a>e&&(Ft.value=Bt.value,A.warning("起始薪资不能高于最高薪资,已自动调整为相同值"))}jo(!0)},wr=async()=>{try{const a=s.query.id,e=`${Zn.value} ${Bt.value}-${Ft.value}`;await bt({id:a,salary_range:e}),v.salary_range=e,Lo.value=!1,A.success("职位薪资已更新")}catch(a){console.error("更新职位薪资失败:",a),A.error("更新职位薪资失败")}},Qo=G(!1),_n=G(""),Cr=()=>{_n.value=v.work_experience_required||"",Qo.value=!0},Ar=()=>{Qo.value=!1},Or=async()=>{try{const a=s.query.id;await bt({id:a,work_experience_required:_n.value}),v.work_experience_required=_n.value,Qo.value=!1,A.success("工作经验已更新")}catch(a){console.error("更新工作经验失败:",a),A.error("更新工作经验失败")}},Go=G(!1),eo=G(""),Tr=()=>{eo.value=v.education_required||"",Go.value=!0},Dr=()=>{Go.value=!1},Pr=async()=>{try{const a=s.query.id;await bt({id:a,education_required:eo.value}),v.education_required=eo.value,Go.value=!1,A.success("学历要求已更新")}catch(a){console.error("更新学历要求失败:",a),A.error("更新学历要求失败")}},zo=G(!1),to=G(""),Rr=()=>{to.value=v.department||"",zo.value=!0},Vr=()=>{zo.value=!1},Ur=async()=>{try{const a=s.query.id;await bt({id:a,department:to.value.trim()}),v.department=to.value.trim(),zo.value=!1,A.success("所属部门已更新")}catch(a){console.error("更新所属部门失败:",a),A.error("更新所属部门失败")}},$o=G(!1),no=G(""),kr=()=>{no.value=v.end_date||"",$o.value=!0},Kr=()=>{$o.value=!1},Mr=async()=>{try{const a=s.query.id;await bt({id:a,end_date:no.value}),v.end_date=no.value,$o.value=!1,A.success("截止日期已更新")}catch(a){console.error("更新截止日期失败:",a),A.error("更新截止日期失败")}},oo=G(!1),io=G(""),Nr=()=>{io.value=v.requirements||"",oo.value=!0},Br=()=>{oo.value=!1},Fr=async()=>{try{const a=s.query.id;await bt({id:a,requirements:io.value}),v.requirements=io.value,oo.value=!1,A.success("职位要求已更新")}catch(a){console.error("更新职位要求失败:",a),A.error("更新职位要求失败")}},ao=G(!1),ro=G(""),Lr=()=>{ro.value=v.description||"",ao.value=!0},jr=()=>{ao.value=!1},Qr=async()=>{try{const a=s.query.id;await bt({id:a,description:ro.value}),v.description=ro.value,ao.value=!1,A.success("职位描述已更新")}catch(a){console.error("更新职位描述失败:",a),A.error("更新职位描述失败")}},Un=G(!1),lo=G(0),Gr=()=>{lo.value=v.job_type||0,Un.value=!0},zr=()=>{Un.value=!1},$r=async()=>{try{const a=s.query.id;await bt({id:a,job_type:lo.value}),v.job_type=lo.value,Un.value=!1,A.success("职位性质已更新")}catch(a){console.error("更新职位性质失败:",a),A.error("更新职位性质失败")}},kt=G([]),Jo=G(!1),kn=G([]),ea=async()=>{try{const a=await Ss({page:1,pageSize:1e3});a&&a.data&&(Re.value=a.data.items.map(e=>({id:e.id,name:e.name,selected:!1})))}catch(a){console.error("获取能力标签列表失败:",a),A.error("获取能力标签列表失败")}},Jr=async()=>{var a;await ea(),kn.value=((a=v.competency_tags)==null?void 0:a.map(e=>e.id))||[],Re.value.forEach(e=>{e.selected=kn.value.includes(e.id)}),Jo.value=!0},Wr=()=>{Jo.value=!1},Hr=async()=>{try{const a=s.query.id;await bt({id:a,competency_tags:kn.value}),v.competency_tags=Re.value.filter(e=>kn.value.includes(e.id)).map(e=>({id:e.id,name:e.name})),Jo.value=!1,A.success("能力标签已更新")}catch(a){console.error("更新能力标签失败:",a),A.error("更新能力标签失败")}},qr=G(null),Ce=G(0),so=G(null),ta=G(!1),Wo=async a=>{if(a.name==="资料收集"){const e=await wn(s.query.id);e&&e.data&&(Ce.value=e.data.id,so.value=JSON.parse(JSON.stringify(j)),console.log(so.value),Fa(j,e.data.profile_fields_config),it.value=!0,F.value=!1);return}if(a.name==="AI考察"){if(a.action==="delete"){await Kl();return}const e=await wn(s.query.id);En.value=!0,qr.value=a,de.value=!0,q.value=1;try{const x=await Ea({job_id:s.query.id,page:1,limit:20});let E=!1;if(x&&x.data&&x.data.dataList&&x.data.dataList.length>0&&(Pe.value=x.data.dataList.map(J=>(J.content=J.question,J.title=J.question,J.competency_tags=J.competency_tag_info,J.source="position_questions",J)),E=!0),E){const J=await xa({position_id:s.query.id,page:1,limit:20});J&&J.data&&J.data.dataList&&(Pe.value=J.data.dataList.map(Q=>(Q.content=Q.question,Q.title=Q.question,Q.competency_tags=Q.competency_tag_info,Q.source="ai_generated",Q)))}const C=await wi({job_id:s.query.id,page:1,limit:50});if(C&&C.data){const J=C.data.items.filter(xe=>xe.question_form!==4&&xe.question_form!==5).map(xe=>(xe.content=xe.question,xe.title=xe.question,xe.source="selected_application",xe.id=xe.question_id,xe)),Q=new Set(Pe.value.map(xe=>xe.content)),me=J.filter(xe=>!Q.has(xe.content));Pe.value=[...Pe.value,...me],console.log("chatQuestions",Pe.value)}const N=await Ts({position_id:s.query.id,page:1,limit:50});if(console.log("existingTags",N),N&&N.data&&N.data.items.length>0)N.data.items.forEach(J=>{J.importance=1,J.selected=!1,v.latest_competency_snapshot&&Array.isArray(v.latest_competency_snapshot)&&(J.selected=v.latest_competency_snapshot.some(Q=>Q.id===J.id))}),kt.value=N.data.items;else{const J=await ya({position_id:s.query.id});if(J&&J.data){J.data.forEach(Q=>{Q.selected=!1}),kt.value=J.data;try{await Ds({position_id:s.query.id,tags:kt.value}),A.success("胜任力标签保存成功")}catch(Q){console.error("保存胜任力标签失败:",Q),A.error("胜任力标签保存失败")}}}e&&e.data&&(Ce.value=e.data.id)}catch(x){console.error("获取或生成能力标签失败:",x),A.error("获取或生成能力标签失败")}finally{En.value=!1}Object.keys(X).forEach(x=>{X[x]=!1})}a.name==="综合素质考察"&&nn({page:1,limit:20,question_form:"1,2,3,4,6"}).then(e=>{e.data&&(lt.value=e.data.items,vt.page=e.data.page,vt.pageSize=e.data.limit,Jt.value=e.data.total,Gl(),I.value=!0)}),a.name==="心理测试"&&nn({page:1,limit:30,question_form:4}).then(e=>{e.data&&(st.question_form=4,lt.value=e.data.items,vt.page=e.data.page,vt.pageSize=e.data.limit,Jt.value=e.data.total,Jl(),Mn.value=!0)})},ln=G(""),Kn=G(""),Yr=G(!1),Xr=async()=>{if(!ln.value.trim()){A.warning("请输入维度名称");return}if(kt.value.find(e=>e.name===ln.value.trim())){A.warning("该维度名称已存在,请重新输入");return}try{const e=await ws({name:ln.value.trim(),description:Kn.value.trim(),importance:1,weight:0});if(!e.data)throw new Error("创建标签失败");const x=e.data.id;await Cs({tag_ids:[x],position_ids:[t.value]});const E={id:x,name:ln.value.trim(),description:Kn.value.trim(),selected:!1,importance:1,weight:0,isCustom:!0};kt.value.push(E),Yr.value,ln.value="",Kn.value="",console.log("添加新维度成功:",E),console.log("当前备选维度列表:",kt.value)}catch(e){console.error("添加自定义维度失败:",e),A.error("添加自定义维度失败,请重试")}},rt=et({keepVideo:!0,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),yi=G([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),ht=G(yi.value[0]),Ho=G(""),Zr=a=>{ht.value=a,console.log("选中的面试官信息:",{id:a.id,name:a.name,avatar_url:a.avatar_url||a.image}),Ho.value=a.avatar_url,A.success(`已选择面试官:${a.name}`)},_r=async()=>{const a=Pe.value.filter(x=>x.source==="ai_generated"),e=Pe.value.filter(x=>x.source==="custom_selected");if(console.log("AI生成的题目:",a),console.log("自定义选择的题目:",e),a.length>0&&(await As({draft_ids:a.map(x=>x.id)}),console.log("AI生成的题目已保存到草稿")),e.length>0){const x={position_id:s.query.id,question_id:{question_id:e},duration:60,tenant_id:Kt.get("tenant_id")};console.log("自定义选择的题目需要调用专门的接口处理");const E=await Ii(x);E&&E.code===2e3?A.success("自定义选择的题目已保存"):A.error("自定义选择的题目保存失败")}},bi=()=>{const a={keepVideo:rt.keepVideo,interruptionMode:rt.interruptionMode,followUpStyle:rt.followUpStyle,smartFollowUp:rt.smartFollowUp};return console.log("当前面试设置:",a),a},uo=(a,e)=>{switch(console.log(`面试设置 ${a} 已更改为:`,e),a){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}},el=()=>{const a=bi(),e={isValid:!0,messages:[]};return a.interruptionMode===""&&(e.isValid=!1,e.messages.push("请选择中断后作答限制模式")),e},tl=a=>{d.value=!0,console.log("开始拖拽题目:",a)},nl=a=>{d.value=!1,console.log("拖拽结束:",a),console.log("当前题目顺序:",Pe.value),A.success("题目顺序已更新")},ol=()=>({interviewer:{id:ht.value.id,name:ht.value.name,avatar_url:ht.value.avatar_url||ht.value.image},settings:bi(),questionSettings:{enableScoreQuestions:xt.enableScoreQuestions,enableColorBlindQuestions:xt.enableColorBlindQuestions},abilities:be.value,questions:Pe.value,currentStep:q.value}),il=async()=>{const a=await Es({page:1,pageSize:1e3});a&&a.data&&(yi.value=a.data)},na=(a,e)=>{e?co.value.push({name:a.name,description:a.description||"暂无描述"}):co.value=co.value.filter(x=>x.name!==a.name)},al=a=>{ha.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=be.value[a];be.value.splice(a,1),co.value=co.value.filter(E=>E.name!==e.label);const x=kt.value.find(E=>E.name===e.label);x&&(x.selected=!1),A.success("胜任力标签已删除")}).catch(()=>{})},co=G([]),rl=a=>new Promise(e=>setTimeout(e,a));let _t=null;const ll=async(a,e=300,x=2e3)=>{let E=0;_t={cancelled:!1};const C=_t;return new Promise((N,J)=>{const Q=async()=>{try{if(C.cancelled){console.log("轮询已被取消"),N(null);return}E++,console.log(`第${E}次轮询获取草稿列表...`);const me=await xa(a);if(C.cancelled){console.log("轮询已被取消"),N(null);return}if(me&&me.data&&me.data.dataList&&me.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),_t=null,N(me);return}if(E>=e){console.log("轮询达到最大次数,停止轮询"),_t=null,N(me);return}setTimeout(Q,x)}catch(me){if(console.error(`第${E}次轮询失败:`,me),C.cancelled){console.log("轮询已被取消"),N(null);return}E<e?setTimeout(Q,x):(_t=null,J(me))}};Q()})},oa=()=>{_t&&(_t.cancelled=!0,_t=null,console.log("轮询已被手动取消"))},sl=()=>{oa(),At.value=!1,A.info("已取消AI自动组题")},Mn=G(!1),fo=G(""),lt=G([]),Lt=G([]),vo=G(!1),qo=G({}),ia=G(!1);G(0);const Jt=G(0),st=et({page:1,pageSize:10,keyword:"",question_form:null}),vt=et({page:1,limit:20,keyword:"",question_form:null}),dl=async()=>{try{const a={...st,keyword:fo.value,...st.question_form!==null&&{question_form:st.question_form}},e=await nn(a);e&&e.data&&(console.log(e.data),lt.value=e.data.items,Jt.value=e.data.total)}catch(a){console.error("获取题目列表失败:",a),A.error("获取题目列表失败")}},Yo=()=>{st.page=1,dl()},ul=a=>{Lt.value=a},cl=()=>{Mn.value=!1,Lt.value=[],fo.value=""},fl=async()=>{if(Lt.value.length===0){A.warning("请至少选择一个题目");return}try{const a=Lt.value.map(x=>x.id);if(a.length==0)return;await Ii({position_id:s.query.id,question_id:a,duration:60,tenant_id:Kt.get("tenant_id")});const e=Lt.value.map(x=>({id:x.id,title:x.question||x.title,ability:x.ability||"未设置",content:x.content||x.question,target:x.target||"未设置",competency_tags:x.competency_tags||[],question_form_name:x.question_form_name,scoring_reference:x.scoring_reference,question_form:x.question_form,is_required_correct:x.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:x.options||[],source:"custom_selected"}));Pe.value.push(...e),Mn.value=!1,Lt.value=[],fo.value="",A.success("题目添加成功"),qn()}catch(a){console.error("添加题目失败:",a),Mn.value=!1,a.code===4e3?A.warning("该题目已绑定,请选择其他题目"):A.error("添加题目失败,请重试")}},aa={name:{visible:!0,label:"姓名",required:!0},gender:{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:{visible:!0,label:"工作单位/家庭地址",required:!1},position:{visible:!0,label:"职务",required:!1},phone:{visible:!0,label:"联系电话",required:!0},family_contact_person:{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:!1,label:"专业技能",required:!0},training_fields_config:{visible:!1,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},company_size:{visible:!0,label:"单位人数",required:!0},department:{visible:!0,label:"任职部门",required:!0},position:{visible:!0,label:"担任职务",required:!0},monthly_salary:{visible:!0,label:"月总收入",required:!0},direct_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}},j=et(()=>{const a=i(s.query.id);return a?(console.log("从缓存加载字段配置"),a):(console.log("使用默认字段配置"),JSON.parse(JSON.stringify(aa)))})(),vl=async()=>{try{const a={position_id:s.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:j.name.required,visible:j.name.visible},phone:{required:j.phone.required,visible:j.phone.visible},id_card:{required:j.id_card.required,visible:j.id_card.visible},gender:{required:j.gender.required,visible:j.gender.visible},birth_date:{required:!1,visible:!0},ethnicity:{required:j.ethnicity.required,visible:j.ethnicity.visible},height:{required:j.height.required,visible:j.height.visible},weight:{required:j.weight.required,visible:j.weight.visible},marital_status:{required:j.marital_status.required,visible:j.marital_status.visible},expected_salary:{required:j.expected_salary.required,visible:j.expected_salary.visible},current_address:{required:j.current_address.required,visible:j.current_address.visible},household_location:{required:j.household_location.required,visible:j.household_location.visible}},require_education_info:j.education.visible,education_fields_config:{school_name:{required:j.education.fields.school_name.required,visible:j.education.fields.school_name.visible},major:{required:j.education.fields.major.required,visible:j.education.fields.major.visible},degree:{required:j.education.fields.degree.required,visible:j.education.fields.degree.visible},start_date:{required:j.education.fields.start_time.required,visible:j.education.fields.start_time.visible},end_date:{required:j.education.fields.end_time.required,visible:j.education.fields.end_time.visible}},require_work_experience:j.work_experience.visible,work_experience_fields_config:{company_name:{required:j.work_experience.fields.company_name.required,visible:j.work_experience.fields.company_name.visible},position:{required:j.work_experience.fields.position.required,visible:j.work_experience.fields.position.visible},department:{required:j.work_experience.fields.department.required,visible:j.work_experience.fields.department.visible},start_date:{required:j.work_experience.fields.start_time.required,visible:j.work_experience.fields.start_time.visible},end_date:{required:j.work_experience.fields.end_time.required,visible:j.work_experience.fields.end_time.visible},job_description:{required:!0,visible:!0},achievements:{required:!1,visible:!0},resignation_reason:{required:!1,visible:!0},company_size:{required:j.work_experience.fields.company_size.required,visible:j.work_experience.fields.company_size.visible},monthly_salary:{required:j.work_experience.fields.monthly_salary.required,visible:j.work_experience.fields.monthly_salary.visible},direct_supervisor:{required:j.work_experience.fields.direct_supervisor.required,visible:j.work_experience.fields.direct_supervisor.visible},supervisor_phone:{required:j.work_experience.fields.supervisor_phone.required,visible:j.work_experience.fields.supervisor_phone.visible}},require_family_info:j.family_member.visible,family_fields_config:{relation:{required:j.family_member.fields.relation.required,visible:j.family_member.fields.relation.visible},name:{required:j.family_member.fields.name.required,visible:j.family_member.fields.name.visible},workplace:{required:j.family_member.fields.workplace.required,visible:j.family_member.fields.workplace.visible},position:{required:j.family_member.fields.position.required,visible:j.family_member.fields.position.visible},phone:{required:j.family_member.fields.phone.required,visible:j.family_member.fields.phone.visible},family_contact_person:{required:j.family_member.fields.family_contact_person.required,visible:j.family_member.fields.family_contact_person.visible}},require_training_info:j.training_fields_config.visible,require_professional_skills:j.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};Ce.value==0||(a.id=Ce.value),Ce.value==0?(await xo(a)).code==2e3?(A.success("配置保存成功"),o(j,s.query.id),it.value=!1,F.value=!1):A.error("配置保存失败"):(await tt(a)).code==2e3?(A.success("配置保存成功"),o(j,s.query.id),it.value=!1,F.value=!1):A.error("配置保存失败")}catch(a){console.error("保存配置失败:",a),A.error("配置保存失败")}},pl=()=>({name:j.name,id_card:j.id_card,phone:j.phone,gender:j.gender,ethnicity:j.ethnicity,height:j.height,weight:j.weight,current_address:j.current_address,household_location:j.household_location,marital_status:j.marital_status,expected_salary:j.expected_salary}),ml=()=>({skills:j.require_professional_skills,training:j.training_fields_config}),Nn=G(!1),Ve=et({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),Bn=G(!1),gl=G(!1),po=G(!1),sn=G("");G("");const Fn=G(""),hl=()=>{dn.value&&Object.keys(dn.value).length>0&&(Object.assign(Ve,dn.value),console.log("已恢复原始配置:",dn.value)),Nn.value=!1,Bn.value=!1,gl.value=!1,po.value=!1,dn.value={},qn()},yl=async()=>{let a;a=await tt({id:Ce.value,enable_emotion_analysis:Ve.positionDetection}),a.code==2e3||A.error("配置保存失败")},bl=()=>{yl(),A.success("面试设置已保存");const a=s.query.id,e=`reviewInterview_${a}`;sessionStorage.setItem(e,String(Ve.reviewInterview)),console.log(`职位 ${a} 的 reviewInterview 已保存:`,Ve.reviewInterview),Nn.value=!1,dn.value={},qn()},dn=G({}),Sl=async()=>{var a;try{const e=await wn(s.query.id);if(e&&e.data)_o(()=>{dn.value={...Ve};const x=s.query.id,E=`reviewInterview_${x}`,C=sessionStorage.getItem(E);Ve.reviewInterview=C==="true",console.log(`职位 ${x} 的 reviewInterview 配置:`,C,"转换后:",Ve.reviewInterview)}),Nn.value=!0,Ce.value=e.data.id,Ve.beforeStartText=e.data.digital_human_opening_speech;else if(e&&e.code===2e3&&e.message==="该职位暂无配置")try{const x=await xo({position_id:s.query.id,enable_psychological_test:!1,enable_color_blind_test:!1,digital_human_id:null,digital_human_opening_speech:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。"});x&&x.code===2e3?(Ce.value=((a=x.data)==null?void 0:a.id)||x.data,A.success("已自动创建职位配置"),_o(()=>{dn.value={...Ve};const E=s.query.id,C=`reviewInterview_${E}`,N=sessionStorage.getItem(C);Ve.reviewInterview=N==="true",console.log(`职位 ${E} 的 reviewInterview 配置:`,N,"转换后:",Ve.reviewInterview)}),Nn.value=!0,Ve.beforeStartText="你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。"):A.warning("自动创建配置失败,请手动创建")}catch(x){console.error("自动创建配置失败:",x),A.warning("自动创建配置失败,请手动创建")}}catch(e){console.error("获取配置失败:",e),A.error("获取配置失败")}},El=()=>{sn.value=Ve.beforeStartText,Bn.value=!0},xl=()=>{Bn.value=!1,sn.value=""},Il=async()=>{var a;if(!sn.value.trim()){A.warning("开始前提示内容不能为空");return}Ve.beforeStartText=sn.value.trim(),await bt({id:s.query.id,status:!1});try{let e;if(console.log(Ce.value),Ce.value==0)e=await xo({position_id:s.query.id,digital_human_opening_speech:sn.value.trim()}),e.code===2e3?(Ce.value=((a=e.data)==null?void 0:a.id)||e.data,A.success("开场词提示内容已创建"),Bn.value=!1):A.error("开场词提示内容创建失败");else if(e=await tt({id:Ce.value,digital_human_opening_speech:sn.value.trim()}),e.code===2e3){A.success("开场词提示内容已更新"),Bn.value=!1;try{const x={config_id:Ce.value};await Ci(x),console.log("开场词生成成功")}catch(x){console.error("获取开场词失败:",x),A.warning("开场词生成中,请稍后")}}else A.error("开场词提示内容更新失败")}catch(e){console.error("保存开场词提示内容失败:",e),A.error("保存失败,请重试")}},wl=()=>{Fn.value=Ve.disclaimerText,po.value=!0},Cl=()=>{po.value=!1,Fn.value="",qn()},Al=()=>{if(!Fn.value.trim()){A.warning("内容不能为空");return}Ve.disclaimerText=Fn.value.trim(),po.value=!1,A.success("内容已更新")},Sn=et({openQuestionsCount:5,choiceQuestionsCount:10}),ra=()=>{console.log("题目数量已更新:",Sn)},la=async()=>{try{At.value=!0;const a=be.value.map(E=>E.id);if(a.length===0){A.warning("请先选择能力标签");return}const e={position_id:s.query.id,competency_tag_ids:a,open_questions_count:Sn.openQuestionsCount,choice_questions_count:Sn.choiceQuestionsCount,auto_save:!0,tenant_id:Kt.get("tenant_id")},x=await Os(e);if(x&&x.data){const E=await ll({tenant_id:Kt.get("tenant_id"),page:1,limit:30,position_id:s.query.id});if(console.log(E),E===null){console.log("轮询被取消,停止处理");return}if(E&&E.data&&E.data.dataList){const C=E.data.dataList.map(N=>({id:N.id||Date.now(),title:N.question||N.title,ability:N.ability||"未设置",content:N.content||N.question,target:N.target||"未设置",competency_tags:N.competency_tag_info||[],question_form_name:N.question_form_name,scoring_reference:N.scoring_reference,question_form:N.question_form,is_required_correct:N.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:N.options||[],source:"ai_generated"}));Pe.value=C,A.success(`已成功生成${C.length}个面试题目`)}else A.warning("AI生成题目中,请稍后再试")}}catch(a){console.error("AI自动组题失败:",a),A.error("AI自动组题失败,请重试")}finally{At.value=!1}},Ol=a=>{if(_.competency_tags=[],a.length>0){const e=Math.floor(100/a.length),x=100%a.length;_.competency_tags=a.map((E,C)=>{const N=Re.value.find(J=>J.id===E);return{id:E,name:N?N.name:`标签${E}`,weight:e+(C<x?1:0)}})}},Tl=a=>{switch(_.type=a,a){case"open":_.suggestedDuration=120;break;case"single":case"multiple":_.suggestedDuration=60;break;case"fill":_.suggestedDuration=30;break;case"self":_.suggestedDuration=180;break;default:_.suggestedDuration=60}},En=G(!1),mo=G(!1),go=G(-1),Ne=et({title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}),Dl=(a,e)=>{go.value=e,a.config?Object.assign(Ne,a.config):(Ne.title=a.name,Ne.description=a.description||"候选人可以向面试官提问关于公司、职位或团队的问题",Ne.duration=5,Ne.maxQuestions=3,Ne.isRequired=a.active,Ne.allowSkip=!1,Ne.guidelines=["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]),mo.value=!0},Pl=(a,e)=>{switch(a.type){case"ai_video":Wo(a);break;case"video_presentation":Vl(a,e);break;case"candidate_questions":Dl(a,e);break;case"data_collection":Wo(a);break;case"resume_collection":Wo(a);break;default:Wo(a);break}},xn=G(-1),Rl=Eo(()=>xn.value>=0?"修改视频宣讲":"新增视频宣讲"),Vl=async(a,e)=>{var x,E,C,N,J,Q,me,xe,dt;xn.value=e;try{const pt=await wn(s.query.id);if(pt&&pt.data){const Tt=pt.data;re.title=a.name||"视频宣讲",re.description=Tt.video_presentation_description||((x=a==null?void 0:a.config)==null?void 0:x.description)||"",re.broadcastType=((E=a==null?void 0:a.config)==null?void 0:E.broadcastType)||"required",re.video_url=Tt.video_presentation_url||((C=a==null?void 0:a.config)==null?void 0:C.video_url)||"",console.log("视频宣讲配置数据:",{title:re.title,description:re.description,video_url:re.video_url,broadcastType:re.broadcastType})}else re.title=a.name||"视频宣讲",re.description=((N=a==null?void 0:a.config)==null?void 0:N.description)||"",re.broadcastType=((J=a==null?void 0:a.config)==null?void 0:J.broadcastType)||"required",re.video_url=((Q=a==null?void 0:a.config)==null?void 0:Q.video_url)||""}catch(pt){console.error("获取视频宣讲配置失败:",pt),re.title=a.name||"视频宣讲",re.description=((me=a==null?void 0:a.config)==null?void 0:me.description)||"",re.broadcastType=((xe=a==null?void 0:a.config)==null?void 0:xe.broadcastType)||"required",re.video_url=((dt=a==null?void 0:a.config)==null?void 0:dt.video_url)||""}Fe.value=!0},Ul=(a,e)=>{(e===null||e<0)&&(e=0),e>100&&(e=100);const x=_.competency_tags;x[a].weight;const E=Math.round(e);if(x[a].weight=E,x.length===1){x[0].weight=100;return}const C=x.filter((J,Q)=>Q!==a),N=C.reduce((J,Q)=>J+Q.weight,0);if(N===0){const J=100-E,Q=Math.floor(J/C.length),me=J%C.length;C.forEach((xe,dt)=>{const pt=x.findIndex(Tt=>Tt.id===xe.id);x[pt].weight=Q+(dt<me?1:0)})}else{const J=100-E;if(J>0){C.forEach(me=>{const xe=x.findIndex(pt=>pt.id===me.id),dt=me.weight/N;x[xe].weight=Math.round(J*dt)});const Q=Si();if(Q!==100){const me=100-Q,xe=C.reduce((pt,Tt)=>Tt.weight>pt.weight?Tt:pt),dt=x.findIndex(pt=>pt.id===xe.id);x[dt].weight+=me}}else C.forEach(Q=>{const me=x.findIndex(xe=>xe.id===Q.id);x[me].weight=0})}},Si=()=>_.competency_tags.reduce((e,x)=>e+(x.weight||0),0),kl=()=>{const a=_.competency_tags;if(a.length===0)return;const e=Math.floor(100/a.length),x=100%a.length;a.forEach((E,C)=>{E.weight=e+(C<x?1:0)})},sa=Eo({get:()=>Me(_.competency_tags),set:a=>{_.competency_tags=a,Ol(a)}}),Kl=async()=>{try{const a=await Ea({position_id:s.query.id,tenant_id:Kt.get("tenant_id"),is_ai_generated:!0});a&&a.data&&a.data.length>0&&(await Ps({position_id:s.query.id,question_id:a.data.map(e=>e.id),tenant_id:Kt.get("tenant_id")}),Ce.value>0&&await tt({id:Ce.value,enable_ai_questions:!1}),A.success("AI考察问题已删除"))}catch(a){console.error("删除AI考察问题失败:",a),A.error("删除AI考察问题失败")}};va(()=>j.question_form_switches.enable_open_questions,a=>{a?p.forEach(e=>{e.type==="ai_interview"&&(e.visible=!0)}):p.forEach(e=>{e.type==="ai_interview"&&(e.visible=!1)})},{immediate:!0}),va(j,a=>{ta.value&&(u.value&&clearTimeout(u.value),u.value=setTimeout(()=>{o(a,s.query.id),console.log("字段配置已自动保存到本地缓存")},1e3))},{deep:!0}),G(!1),G(!1);const Ml=G(!1),Xo=G(!1),un=G({duration:5,detectionItems:["face","pose"],promptText:"请按照提示完成相应的动作,系统将自动进行检测。"}),Nl=()=>{Xo.value=!1},Bl=async()=>{try{await saveProcessConfig({position_id:s.params.id,process_type:"posture_check",config:un.value}),A.success("配置保存成功"),Xo.value=!1}catch(a){console.error("保存肢体检测配置失败:",a),A.error("配置保存失败")}},ho=G(!1),da=G([]),Fl=G(),Ll=a=>{console.log(a);const{firstLevel:e,secondLevel:x,currentNode:E}=a;x?nn({page:1,limit:20,question_tags:x.id.replace("tag_",""),question_form:st.question_form}).then(C=>{C.data&&(lt.value=C.data.items,vt.page=C.data.page,vt.pageSize=C.data.limit,Jt.value=C.data.total)}):e&&nn({page:1,limit:20,question_category:e.id.replace("category_",""),question_form:st.question_form}).then(C=>{C.data&&(lt.value=C.data.items,vt.page=C.data.page,vt.pageSize=C.data.limit,Jt.value=C.data.total)})},jl=a=>{console.log(a)},Ql=a=>{console.log(a)},Gl=()=>{ho.value=!0,Ia({page:1,limit:100}).then(a=>{console.log("ret",a),a.data,wa({page:1,limit:100}).then(e=>{console.log("res",e);const x=e.data.items.filter(E=>!["技术能力","服务意识","职业素质","基本常识","色盲检测","内容铺垫","心理测试1","心理测试"].includes(E.name));Ca({}).then(E=>{console.log("res",E);const C=E.data.items,N=[...x.map(J=>({id:`category_${J.id}`,title:J.name,children:C.filter(Q=>Q.category_id===J.id).map(Q=>({id:`tag_${Q.id}`,title:Q.name,chinese_explanation:Q.chinese_explanation||""}))}))];da.value=N,ho.value=!1})})}).catch(()=>{ho.value=!1}).finally(()=>{ho.value=!1})},yo=G(!1),ua=G([]),zl={children:"children",label:"title"},$l=async a=>{try{if(a.id.startsWith("category_")){const e=a.id.replace("category_",""),x=await nn({page:1,limit:1e3,question_category:e,question_form:st.question_form});if(x&&x.data){lt.value=x.data.items,vt.page=x.data.page,vt.pageSize=x.data.limit,Jt.value=x.data.total;const E=document.querySelector(".el-table__header-wrapper");if(E){const C=E.querySelector(".el-checkbox");C&&C.__vueParentComponent.emit("change",!0)}Lt.value=x.data.items}}else if(a.id.startsWith("tag_")){const e=a.id.replace("tag_",""),x=await nn({page:1,limit:1e3,question_tags:e,question_form:st.question_form});if(x&&x.data){lt.value=x.data.items,vt.page=x.data.page,vt.pageSize=x.data.limit,Jt.value=x.data.total;const E=document.querySelector(".el-table__header-wrapper");if(E){const C=E.querySelector(".el-checkbox");C&&C.__vueParentComponent.emit("change",!0)}Lt.value=x.data.items}}}catch(e){console.error("获取题目列表失败:",e),A.error("获取题目列表失败")}},Jl=()=>{yo.value=!0,Ia({page:1,limit:100}).then(a=>{console.log("ret",a),a.data,wa({page:1,limit:100}).then(e=>{console.log("res",e);const x=e.data.items.filter(E=>["心理测试"].includes(E.name));Ca({}).then(E=>{console.log("res",E);const C=E.data.items,N=[...x.map(J=>({id:`category_${J.id}`,title:J.name,children:C.filter(Q=>Q.category_id===J.id).map(Q=>({id:`tag_${Q.id}`,title:Q.name,chinese_explanation:Q.chinese_explanation||""}))}))];ua.value=N,yo.value=!1})})}).catch(()=>{yo.value=!1}).finally(()=>{yo.value=!1})};return(a,e)=>{const x=Ue("page-header"),E=Ue("el-button"),C=Ue("el-icon"),N=Ue("el-input"),J=Ue("el-cascader"),Q=Ue("el-option"),me=Ue("el-select"),xe=Ue("el-input-number"),dt=Ue("el-tag"),pt=Ue("el-date-picker"),Tt=Ue("el-card"),yt=Ue("el-switch"),Dt=Ue("el-dialog"),en=Ue("el-checkbox"),Wl=Ue("Refresh"),bo=Ue("el-radio"),ca=Ue("el-upload"),Ln=Ue("el-tooltip"),Hl=Ue("Folder"),ql=Ue("el-tree"),Wt=Ue("el-col"),tn=Ue("el-row"),Yl=Ue("el-radio-group"),So=Ue("el-table-column"),fa=Ue("el-table"),Xl=Ue("el-pagination"),Ei=Ue("el-form-item"),Zl=Ue("el-checkbox-group"),_l=Ue("el-form"),Zo=rs("loading");return U(),$("div",xd,[l("div",Id,[m(x,{title:"测试",onBack:$t}),l("div",wd,[m(E,{type:"primary",onClick:rn},{default:y(()=>e[92]||(e[92]=[k("保存")])),_:1})])]),l("div",Cd,[m(Tt,{class:"detail-card"},{default:y(()=>[e[128]||(e[128]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位详情")],-1)),l("div",Ad,[e[95]||(e[95]=l("div",{class:"detail-label"},"职位名称",-1)),No.value?(U(),$("div",Td,[m(N,{modelValue:Rn.value,"onUpdate:modelValue":e[0]||(e[0]=g=>Rn.value=g),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),l("div",Dd,[m(E,{size:"small",onClick:pr},{default:y(()=>e[93]||(e[93]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:mr},{default:y(()=>e[94]||(e[94]=[k("保存")])),_:1})])])):(U(),$("div",Od,[k(se(v.title)+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:vr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",Pd,[e[98]||(e[98]=l("div",{class:"detail-label"},"工作地点",-1)),Fo.value?(U(),$("div",Vd,[m(J,{modelValue:Zt.value,"onUpdate:modelValue":e[1]||(e[1]=g=>Zt.value=g),options:fe(V),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:L},null,8,["modelValue","options"]),l("div",Ud,[m(E,{size:"small",onClick:Sr},{default:y(()=>e[96]||(e[96]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Er},{default:y(()=>e[97]||(e[97]=[k("保存")])),_:1})])])):(U(),$("div",Rd,[k(se((()=>{if(!v.location)return"暂无";if(Array.isArray(v.location))return v.location.join(",");if(typeof v.location=="string")try{return v.location.replace(/[\[\]']/g,"").split(",").map(ie=>ie.trim()).join(",")}catch{return v.location}return v.location})())+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:br},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",kd,[e[101]||(e[101]=l("div",{class:"detail-label"},"详细地址",-1)),Bo.value?(U(),$("div",Md,[m(N,{modelValue:Vn.value,"onUpdate:modelValue":e[2]||(e[2]=g=>Vn.value=g),placeholder:"请输入详细地址",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",Nd,[m(E,{size:"small",onClick:hr},{default:y(()=>e[99]||(e[99]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:yr},{default:y(()=>e[100]||(e[100]=[k("保存")])),_:1})])])):(U(),$("div",Kd,[k(se(v.detailed_address||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:gr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",Bd,[e[105]||(e[105]=l("div",{class:"detail-label"},"职位薪资",-1)),Lo.value?(U(),$("div",Ld,[l("div",jd,[m(me,{modelValue:Zn.value,"onUpdate:modelValue":e[3]||(e[3]=g=>Zn.value=g),placeholder:"薪资类型",class:"salary-type-select",onChange:jo},{default:y(()=>[m(Q,{label:"月薪",value:"月薪"}),m(Q,{label:"年薪",value:"年薪"}),m(Q,{label:"日薪",value:"日薪"}),m(Q,{label:"时薪",value:"时薪"})]),_:1},8,["modelValue"]),m(xe,{modelValue:Bt.value,"onUpdate:modelValue":e[4]||(e[4]=g=>Bt.value=g),placeholder:"起始薪资",class:"salary-input",type:"number","controls-position":"right",min:"0",onInput:jo,onBlur:_i},null,8,["modelValue"]),e[102]||(e[102]=l("span",{class:"salary-separator"},"-",-1)),m(xe,{modelValue:Ft.value,"onUpdate:modelValue":e[5]||(e[5]=g=>Ft.value=g),style:{"margin-left":"20px"},placeholder:"最高薪资",class:"salary-input","controls-position":"right",type:"number",min:"0",onInput:jo,onBlur:_i},null,8,["modelValue"])]),l("div",Qd,[m(E,{size:"small",onClick:Ir},{default:y(()=>e[103]||(e[103]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:wr},{default:y(()=>e[104]||(e[104]=[k("保存")])),_:1})])])):(U(),$("div",Fd,[k(se(v.salary_range||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:xr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",Gd,[e[108]||(e[108]=l("div",{class:"detail-label"},"工作经验",-1)),Qo.value?(U(),$("div",$d,[m(me,{modelValue:_n.value,"onUpdate:modelValue":e[6]||(e[6]=g=>_n.value=g),placeholder:"请选择工作经验",style:{width:"100%"}},{default:y(()=>[m(Q,{label:"不限",value:"不限"}),m(Q,{label:"应届毕业生",value:"应届毕业生"}),m(Q,{label:"1年以下",value:"1年以下"}),m(Q,{label:"1-3年",value:"1-3年"}),m(Q,{label:"3-5年",value:"3-5年"}),m(Q,{label:"5-10年",value:"5-10年"}),m(Q,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),l("div",Jd,[m(E,{size:"small",onClick:Ar},{default:y(()=>e[106]||(e[106]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Or},{default:y(()=>e[107]||(e[107]=[k("保存")])),_:1})])])):(U(),$("div",zd,[k(se(v.work_experience_required||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:Cr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",Wd,[e[111]||(e[111]=l("div",{class:"detail-label"},"学历要求",-1)),Go.value?(U(),$("div",qd,[m(me,{modelValue:eo.value,"onUpdate:modelValue":e[7]||(e[7]=g=>eo.value=g),placeholder:"请选择学历要求",style:{width:"100%"}},{default:y(()=>[m(Q,{label:"不限",value:"不限"}),m(Q,{label:"高中",value:"高中"}),m(Q,{label:"大专",value:"大专"}),m(Q,{label:"本科",value:"本科"}),m(Q,{label:"硕士",value:"硕士"}),m(Q,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),l("div",Yd,[m(E,{size:"small",onClick:Dr},{default:y(()=>e[109]||(e[109]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Pr},{default:y(()=>e[110]||(e[110]=[k("保存")])),_:1})])])):(U(),$("div",Hd,[k(se(v.education_required||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:Tr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",Xd,[e[114]||(e[114]=l("div",{class:"detail-label"},"所属部门",-1)),zo.value?(U(),$("div",_d,[m(N,{modelValue:to.value,"onUpdate:modelValue":e[8]||(e[8]=g=>to.value=g),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",eu,[m(E,{size:"small",onClick:Vr},{default:y(()=>e[112]||(e[112]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Ur},{default:y(()=>e[113]||(e[113]=[k("保存")])),_:1})])])):(U(),$("div",Zd,[k(se(v.department||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:Rr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",tu,[e[115]||(e[115]=l("div",{class:"detail-label"},"职位状态",-1)),l("div",nu,[m(dt,{type:T(v.status)},{default:y(()=>[k(se(bn(v.status)),1)]),_:1},8,["type"])])]),l("div",ou,[e[118]||(e[118]=l("div",{class:"detail-label"},"截止日期",-1)),$o.value?(U(),$("div",au,[m(pt,{modelValue:no.value,"onUpdate:modelValue":e[9]||(e[9]=g=>no.value=g),type:"datetime",placeholder:"请选择截止日期","value-format":"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"]),l("div",ru,[m(E,{size:"small",onClick:Kr},{default:y(()=>e[116]||(e[116]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Mr},{default:y(()=>e[117]||(e[117]=[k("保存")])),_:1})])])):(U(),$("div",iu,[k(se(v.end_date||"暂无")+" ",1),m(E,{type:"text",class:"edit-title-btn",onClick:kr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))]),l("div",lu,[e[121]||(e[121]=l("div",{class:"detail-label"},"职位要求",-1)),oo.value?De("",!0):(U(),$("div",{key:0,class:"detail-value html-content",innerHTML:v.requirements},null,8,su)),oo.value?(U(),$("div",du,[m(N,{modelValue:io.value,"onUpdate:modelValue":e[10]||(e[10]=g=>io.value=g),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",uu,[m(E,{size:"small",onClick:Br},{default:y(()=>e[119]||(e[119]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Fr},{default:y(()=>e[120]||(e[120]=[k("保存")])),_:1})])])):(U(),Ae(E,{key:1,type:"text",class:"edit-title-btn",onClick:Nr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1}))]),e[129]||(e[129]=l("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),l("div",cu,[e[124]||(e[124]=l("div",{class:"detail-label"},"职位描述",-1)),ao.value?De("",!0):(U(),$("div",{key:0,class:"detail-value html-content",innerHTML:v.description},null,8,fu)),ao.value?(U(),$("div",vu,[m(N,{modelValue:ro.value,"onUpdate:modelValue":e[11]||(e[11]=g=>ro.value=g),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",pu,[m(E,{size:"small",onClick:jr},{default:y(()=>e[122]||(e[122]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Qr},{default:y(()=>e[123]||(e[123]=[k("保存")])),_:1})])])):(U(),Ae(E,{key:1,type:"text",class:"edit-title-btn",onClick:Lr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1}))]),l("div",mu,[e[127]||(e[127]=l("div",{class:"detail-label"},"能力标签",-1)),Jo.value?(U(),$("div",hu,[m(me,{modelValue:kn.value,"onUpdate:modelValue":e[12]||(e[12]=g=>kn.value=g),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:y(()=>[(U(!0),$(We,null,qe(Re.value,g=>(U(),Ae(Q,{key:g.id,label:g.name,value:g.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",yu,[m(E,{size:"small",onClick:Wr},{default:y(()=>e[125]||(e[125]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Hr},{default:y(()=>e[126]||(e[126]=[k("保存")])),_:1})])])):(U(),$("div",gu,[(U(!0),$(We,null,qe(v.competency_tags,g=>(U(),Ae(dt,{key:g.id,effect:"plain",class:"competency-tag"},{default:y(()=>[k(se(g.name),1)]),_:2},1024))),128)),m(E,{type:"text",class:"edit-title-btn",onClick:Jr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))])]),_:1}),l("div",bu,[m(Tt,{class:"status-card"},{default:y(()=>[e[130]||(e[130]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位状态")],-1)),l("div",Su,[m(yt,{modelValue:r.value,"onUpdate:modelValue":e[13]||(e[13]=g=>r.value=g),"inactive-text":"",onChange:pn},null,8,["modelValue"]),l("span",Eu,se(r.value?"已启用":"待启用"),1)])]),_:1}),m(Tt,{class:"status-card"},{default:y(()=>[l("div",xu,[e[132]||(e[132]=l("div",{class:"section-line"},null,-1)),e[133]||(e[133]=l("span",null,"职位性质",-1)),Un.value?De("",!0):(U(),Ae(E,{key:0,type:"text",class:"edit-btn",onClick:Gr},{default:y(()=>e[131]||(e[131]=[k("编辑")])),_:1}))]),l("div",Iu,[Un.value?De("",!0):(U(),$("div",wu,se(O(v.job_type)),1)),Un.value?(U(),$("div",Cu,[m(me,{modelValue:lo.value,"onUpdate:modelValue":e[14]||(e[14]=g=>lo.value=g),placeholder:"请选择职位性质",style:{width:"100%"}},{default:y(()=>[m(Q,{label:"全职",value:0}),m(Q,{label:"兼职",value:1}),m(Q,{label:"实习",value:2}),m(Q,{label:"其他",value:3})]),_:1},8,["modelValue"]),l("div",Au,[m(E,{size:"small",onClick:zr},{default:y(()=>e[134]||(e[134]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:$r},{default:y(()=>e[135]||(e[135]=[k("保存")])),_:1})])])):De("",!0)])]),_:1}),m(Tt,{class:"status-card"},{default:y(()=>[l("div",Ou,[e[137]||(e[137]=l("div",{class:"section-line"},null,-1)),e[138]||(e[138]=l("span",null,"招聘流程",-1)),m(E,{type:"text",class:"edit-btn",onClick:mn},{default:y(()=>e[136]||(e[136]=[k("设置流程")])),_:1})]),l("div",Tu,[(U(!0),$(We,null,qe(p,(g,ie)=>jn((U(),$("div",{key:g.id,class:Pt(["process-step",{disabled:!g.active}])},[g.name!="已通过"&&g.name!="已淘汰"?(U(),$("div",Du,se(f(ie)),1)):De("",!0),l("div",Pu,[l("div",Ru,se(g.name),1)])],2)),[[pa,g.visible]])),128))])]),_:1}),m(Tt,{class:"status-card"},{default:y(()=>[l("div",Vu,[e[140]||(e[140]=l("div",{class:"section-line"},null,-1)),e[141]||(e[141]=l("span",null,"面试设置",-1)),m(E,{type:"text",class:"edit-btn",onClick:Sl},{default:y(()=>e[139]||(e[139]=[k("编辑")])),_:1})])]),_:1})])]),m(Dt,{title:"设置招聘流程",modelValue:h.value,"onUpdate:modelValue":e[17]||(e[17]=g=>h.value=g),width:"500px","close-on-click-modal":!1},{footer:y(()=>[l("span",Fu,[m(E,{onClick:hn},{default:y(()=>e[145]||(e[145]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:gn},{default:y(()=>e[146]||(e[146]=[k("确定")])),_:1})])]),default:y(()=>[l("div",Uu,[(U(!0),$(We,null,qe(p,(g,ie)=>jn((U(),$("div",{key:g.id},[ie<p.length-1?(U(),$("div",ku,[m(E,{type:"text",onClick:Te=>R(ie,Te)},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(In))]),_:1})]),_:2},1032,["onClick"])])):De("",!0),l("div",{class:Pt(["process-edit-item",{highlight:g.active}])},[g.name!="已通过"&&g.name!="已淘汰"?(U(),$("div",Ku,se(f(ie)),1)):De("",!0),l("div",Mu,[l("div",null,se(g.name),1)]),g.name!="已通过"&&g.name!="已淘汰"?(U(),$("div",Nu,[g.name!="简历收集"&&g.name!="肢体检测"?(U(),Ae(E,{key:0,type:"info",size:"small",plain:"",onClick:Te=>Pl(g,ie)},{default:y(()=>e[142]||(e[142]=[k(" 修改 ")])),_:2},1032,["onClick"])):De("",!0),g.name!="资料收集"&&g.name!="AI考察"?(U(),Ae(E,{key:1,type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Te=>yn(g,ie)},{default:y(()=>e[143]||(e[143]=[k(" 删除 ")])),_:2},1032,["onClick"])):De("",!0)])):De("",!0)],2)])),[[pa,g.visible]])),128)),e[144]||(e[144]=l("div",{class:"add-process-btn"},null,-1))]),F.value?(U(),$("div",{key:0,class:"process-options-menu",style:ss({top:W.top,left:W.left}),onClick:e[16]||(e[16]=ls(()=>{},["stop"]))},[l("div",{class:"close-btn",onClick:e[15]||(e[15]=g=>F.value=!1)},[m(C,null,{default:y(()=>[m(fe(hs))]),_:1})]),(U(),$(We,null,qe(b,g=>l("div",{key:g.value,class:"process-option-item",onClick:ie=>z(g.value,g.label)},se(g.label),9,Bu)),64))],4)):De("",!0)]),_:1},8,["modelValue"]),m(fe(xi),{title:"AI考察",modelValue:de.value,"onUpdate:modelValue":e[36]||(e[36]=g=>de.value=g),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",of,[q.value>1?(U(),Ae(E,{key:0,size:"small",onClick:ve},{default:y(()=>e[187]||(e[187]=[k("上一步")])),_:1})):De("",!0),m(E,{onClick:Oe,size:"small"},{default:y(()=>e[188]||(e[188]=[k("取消")])),_:1}),q.value<3?(U(),Ae(E,{key:1,type:"primary",loading:q.value==1?En.value:At.value,size:"small",onClick:te,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[189]||(e[189]=[k("下一步")])),_:1},8,["loading"])):(U(),Ae(E,{key:2,type:"success",onClick:ge,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[190]||(e[190]=[k("新增")])),_:1}))])]),default:y(()=>[l("div",Lu,[l("div",{class:Pt(["step-item",{active:q.value===1}]),onClick:e[18]||(e[18]=g=>je(1))},[e[147]||(e[147]=l("div",{class:"step-number"},"1",-1)),l("div",{class:Pt(["step-title",{"active-title":q.value===1}])},"考察能力",2)],2),l("div",{class:Pt(["step-line",{"active-line":q.value>=2}])},null,2),l("div",{class:Pt(["step-item",{active:q.value===2}]),onClick:e[19]||(e[19]=g=>je(2))},[e[148]||(e[148]=l("div",{class:"step-number"},"2",-1)),l("div",{class:Pt(["step-title",{"active-title":q.value===2}])},"面试题目",2)],2),l("div",{class:Pt(["step-line",{"active-line":q.value>=3}])},null,2),l("div",{class:Pt(["step-item",{active:q.value===3}]),onClick:e[20]||(e[20]=g=>je(3))},[e[149]||(e[149]=l("div",{class:"step-number"},"3",-1)),l("div",{class:Pt(["step-title",{"active-title":q.value===3}])},"系统设置",2)],2)]),q.value===1?jn((U(),$("div",ju,[l("div",Qu,[e[156]||(e[156]=l("div",{class:"ai-video-options-header"},[l("div",{class:"ai-video-options-header-title"},[l("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的胜任力考核维度加入到该职位的考察能力列表中。")])],-1)),l("div",Gu,[l("div",zu,[(U(!0),$(We,null,qe(kt.value.slice(0,10),g=>(U(),Ae(en,{key:g.id,modelValue:g.selected,"onUpdate:modelValue":ie=>g.selected=ie,onChange:ie=>na(g,ie),class:"custom-checkbox"},{default:y(()=>[l("div",$u,[l("span",null,se(g.name),1),e[150]||(e[150]=l("img",{src:Aa,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",Ju,[l("div",Wu,[e[152]||(e[152]=l("h3",{style:{color:"#808080"}},"备选考核维度",-1)),l("div",Hu,[m(E,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:B},{default:y(()=>e[151]||(e[151]=[k("重新生成")])),_:1})])]),l("div",qu,[(U(!0),$(We,null,qe(kt.value.slice(10,50),g=>(U(),Ae(en,{key:g.id,modelValue:g.selected,"onUpdate:modelValue":ie=>g.selected=ie,onChange:ie=>na(g,ie),class:"custom-checkbox"},{default:y(()=>[l("div",Yu,[l("span",null,se(g.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",Xu,[e[155]||(e[155]=l("h3",{style:{color:"#808080"}},"自定义维度",-1)),l("div",Zu,[l("div",_u,[l("div",ec,[m(N,{style:{width:"150px"},modelValue:ln.value,"onUpdate:modelValue":e[21]||(e[21]=g=>ln.value=g),placeholder:"请输入维度名称"},null,8,["modelValue"])]),l("div",tc,[e[153]||(e[153]=l("div",{class:"input-label"},"特征描述:",-1)),m(N,{modelValue:Kn.value,"onUpdate:modelValue":e[22]||(e[22]=g=>Kn.value=g),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),l("div",nc,[m(E,{type:"primary",onClick:Xr},{default:y(()=>e[154]||(e[154]=[k("添加")])),_:1})])])])])])),[[Zo,En.value]]):De("",!0),q.value===2?(U(),$("div",oc,[l("div",ic,[l("div",ac,[l("div",rc,[m(E,{plain:"",class:"custom-btn",onClick:Ji},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[157]||(e[157]=k(" 自定义题目 "))]),_:1}),m(E,{plain:"",class:"custom-btn"},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(ma))]),_:1}),e[158]||(e[158]=k(" 导入题目 "))]),_:1}),Pe.value.length>0?(U(),Ae(E,{key:0,type:"primary",plain:"",class:"custom-btn",loading:At.value,onClick:la},{default:y(()=>[m(C,null,{default:y(()=>[m(Wl)]),_:1}),e[159]||(e[159]=k(" 重新生成 "))]),_:1},8,["loading"])):De("",!0),l("div",lc,[l("div",sc,[e[160]||(e[160]=l("span",{class:"switch-label"},"开放题数量",-1)),m(xe,{modelValue:Sn.openQuestionsCount,"onUpdate:modelValue":e[23]||(e[23]=g=>Sn.openQuestionsCount=g),min:1,max:10,size:"small",onChange:ra},null,8,["modelValue"])]),l("div",dc,[e[161]||(e[161]=l("span",{class:"switch-label"},"选择题数量",-1)),m(xe,{modelValue:Sn.choiceQuestionsCount,"onUpdate:modelValue":e[24]||(e[24]=g=>Sn.choiceQuestionsCount=g),min:1,max:20,size:"small",onChange:ra},null,8,["modelValue"])])])]),l("div",uc,[e[162]||(e[162]=l("span",null,"预计面试时长: ",-1)),l("span",cc,se(er.value),1),e[163]||(e[163]=l("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序",-1))])]),l("div",fc,[jn((U(),$("div",vc,[Pe.value.length===0?(U(),$("div",pc,[e[166]||(e[166]=l("p",null,"暂无题目",-1)),e[167]||(e[167]=l("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),e[168]||(e[168]=l("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),m(E,{type:"success",class:"auto-generate-btn",loading:At.value,onClick:la},{default:y(()=>e[164]||(e[164]=[k(" AI自动组题 ")])),_:1},8,["loading"]),At.value&&fe(_t)?(U(),Ae(E,{key:0,type:"warning",plain:"",size:"small",onClick:sl,style:{"margin-left":"10px"}},{default:y(()=>e[165]||(e[165]=[k(" 取消生成 ")])),_:1})):De("",!0)])):(U(),$("div",mc,[m(fe(Ba),{modelValue:Pe.value,"onUpdate:modelValue":e[25]||(e[25]=g=>Pe.value=g),"item-key":"id",handle:".drag-handle",onStart:tl,onEnd:nl,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:y(({element:g})=>[l("div",gc,[e[172]||(e[172]=l("div",{class:"drag-handle"},[l("img",{src:Ns,alt:"",class:"dorp"})],-1)),l("div",hc,[l("div",yc,[l("div",bc,[l("div",Sc,[l("span",Ec,"题目"+se(Pe.value.indexOf(g)+1),1),l("span",null,[l("span",xc,se("「"+g.question_form_name+"」"),1),k(se(g.title),1)])]),l("div",Ic,[(U(!0),$(We,null,qe((g.competency_tag_info||g.competency_tags||[]).slice(0,2),(ie,Te)=>(U(),Ae(dt,{key:ie.id,effect:"plain",class:"competency-tag",size:"small"},{default:y(()=>[k(se(S(ie)),1)]),_:2},1024))),128)),(g.competency_tag_info||g.competency_tags||[]).length>2?(U(),$("span",wc," +"+se((g.competency_tag_info||g.competency_tags||[]).length-2),1)):De("",!0)])])]),l("div",Cc,[m(E,{type:"text",onClick:ie=>qi(Pe.value.indexOf(g))},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:2},1032,["onClick"]),m(E,{type:"text",onClick:ie=>Yi(Pe.value.indexOf(g))},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(ga))]),_:1})]),_:2},1032,["onClick"])])]),l("div",Ac,[l("div",Oc,[l("span",null,se(g.scoring_reference),1)])]),g.question_form==0?(U(),$("div",Tc,[l("div",Dc,[m(yt,{style:{"margin-top":"0px"},modelValue:g.enable_follow_up,"onUpdate:modelValue":ie=>g.enable_follow_up=ie,onChange:ke},null,8,["modelValue","onUpdate:modelValue"]),e[169]||(e[169]=l("span",{class:"answer-label"},"回答不充分追问",-1))]),l("div",Pc,[e[170]||(e[170]=l("span",{class:"answer-label"},"追问轮数",-1)),m(me,{modelValue:g.maxAnswers,"onUpdate:modelValue":ie=>g.maxAnswers=ie,size:"small",placeholder:"请选择"},{default:y(()=>[m(Q,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):De("",!0),g.question_form==1?(U(),$("div",Rc,[l("div",Vc,[e[171]||(e[171]=l("span",{class:"answer-label"},"是否为红线题:",-1)),m(me,{modelValue:g.is_required_correct,"onUpdate:modelValue":ie=>g.is_required_correct=ie,disabled:!0,onChange:ie=>ee(g.id,g.is_required_correct),size:"small",placeholder:"请选择"},{default:y(()=>[m(Q,{label:"是",value:!0}),m(Q,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):De("",!0)])]),_:1},8,["modelValue"])]))])),[[Zo,At.value]]),l("div",Uc,[e[175]||(e[175]=l("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),l("div",kc,[(U(!0),$(We,null,qe(be.value,(g,ie)=>(U(),$("div",{key:g.value,class:"dimension-item"},[l("div",Kc,[l("div",Mc,[l("span",Nc,se(g.label),1),e[173]||(e[173]=l("img",{src:Aa,alt:"",class:"sheng"},null,-1))])]),l("div",{class:"dimension-content",onClick:Te=>al(ie),title:"点击删除此胜任力标签"},e[174]||(e[174]=[l("div",{class:"ability-description"},se("—"),-1)]),8,Bc)]))),128))])])])])])):De("",!0),q.value===3?(U(),$("div",Fc,[l("div",Lc,[l("div",jc,[e[186]||(e[186]=l("div",{class:"section-header"},"请选择面试官形象",-1)),l("div",Qc,[l("div",Gc,[Ho.value?(U(),$("img",{key:0,src:Ho.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,zc)):De("",!0)]),l("div",null,[l("div",$c,[(U(!0),$(We,null,qe(yi.value,g=>(U(),$("div",{key:g.id,class:Pt(["avatar-item",{active:ht.value.id===g.id}]),onClick:ie=>Zr(g)},[l("div",Wc,[l("div",{class:Pt(["avatar-circle",{selected:ht.value.id===g.id}])},[l("img",{src:g.avatar_url||g.image,alt:g.name},null,8,Hc)],2),l("div",{class:"avatar-name",title:g.name},se(g.name),9,qc)])],10,Jc))),128))]),l("div",Yc,[e[176]||(e[176]=l("div",{class:"setting-label"},"「追问风格」",-1)),l("div",Xc,[m(me,{modelValue:rt.followUpStyle,"onUpdate:modelValue":e[26]||(e[26]=g=>rt.followUpStyle=g),placeholder:"请选择",onChange:e[27]||(e[27]=g=>uo("followUpStyle",rt.followUpStyle))},{default:y(()=>[m(Q,{label:"温和",value:"1"}),m(Q,{label:"严厉",value:"2"}),m(Q,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),e[177]||(e[177]=l("div",{class:"setting-desc"},null,-1))])])]),l("div",Zc,[l("div",_c,[e[178]||(e[178]=l("div",{class:"setting-label"},[l("p",null,"「回答视频保留」")],-1)),e[179]||(e[179]=l("div",{class:"setting-desc"},[l("p",null,"选取后,将在报告中展示候选人的回答视频")],-1)),m(yt,{modelValue:rt.keepVideo,"onUpdate:modelValue":e[28]||(e[28]=g=>rt.keepVideo=g),onChange:e[29]||(e[29]=g=>uo("keepVideo",g)),disabled:!0},null,8,["modelValue"])]),l("div",ef,[e[182]||(e[182]=l("div",{class:"setting-label"},[l("p",null,"「中断后作答限制」")],-1)),l("div",tf,[m(bo,{modelValue:rt.interruptionMode,"onUpdate:modelValue":e[30]||(e[30]=g=>rt.interruptionMode=g),label:"current",onChange:e[31]||(e[31]=g=>uo("interruptionMode",rt.interruptionMode))},{default:y(()=>e[180]||(e[180]=[k(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),m(bo,{modelValue:rt.interruptionMode,"onUpdate:modelValue":e[32]||(e[32]=g=>rt.interruptionMode=g),label:"previous",onChange:e[33]||(e[33]=g=>uo("interruptionMode",rt.interruptionMode))},{default:y(()=>e[181]||(e[181]=[k(" 从头作答 ")])),_:1},8,["modelValue"])]),e[183]||(e[183]=l("div",{class:"setting-desc",style:{width:"40px"}},null,-1))]),l("div",nf,[e[184]||(e[184]=l("div",{class:"setting-label"},[l("p",null,"「智慧追问」")],-1)),e[185]||(e[185]=l("div",{class:"setting-desc"},[l("p",null,"追问将结合候选人资料情况,综合分析发问")],-1)),m(yt,{modelValue:rt.smartFollowUp,"onUpdate:modelValue":e[34]||(e[34]=g=>rt.smartFollowUp=g),onChange:e[35]||(e[35]=g=>uo("smartFollowUp",g))},null,8,["modelValue"])])])])])])):De("",!0)]),_:1},8,["modelValue"]),m(Dt,{title:Rl.value,modelValue:Fe.value,"onUpdate:modelValue":e[38]||(e[38]=g=>Fe.value=g),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:y(()=>[l("span",uf,[m(E,{onClick:ce},{default:y(()=>e[194]||(e[194]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:oe},{default:y(()=>e[195]||(e[195]=[k("确认")])),_:1})])]),default:y(()=>[l("div",af,[l("div",rf,[e[192]||(e[192]=l("div",{class:"form-label"},"上传视频",-1)),m(ca,{class:"video-uploader",action:Qe,"auto-upload":!0,"show-file-list":!1,accept:"video/*",data:{tenant_id:fe(Kt).get("tenant_id")},headers:{Authorization:`JWT ${fe(Kt).get("token")}`},"before-upload":ue,"on-success":Ee,"on-error":we},{default:y(()=>[l("div",lf,[re.video_url?(U(),$("video",{key:0,src:re.video_url,style:{width:"100%",height:"180px","border-radius":"6px"},controls:""},null,8,sf)):(U(),$(We,{key:1},[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[191]||(e[191]=l("div",{class:"upload-text"},"上传文件大小不超过500M",-1))],64))])]),_:1},8,["data","headers"])]),l("div",df,[e[193]||(e[193]=l("div",{class:"form-label"},"视频简介",-1)),m(N,{modelValue:re.description,"onUpdate:modelValue":e[37]||(e[37]=g=>re.description=g),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["title","modelValue"]),m(fe(xi),{title:"AI实时对话",modelValue:Ke.value,"onUpdate:modelValue":e[40]||(e[40]=g=>Ke.value=g),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",Tf,[m(E,{onClick:Hn},{default:y(()=>e[206]||(e[206]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:ft},{default:y(()=>e[207]||(e[207]=[k("确认")])),_:1})])]),default:y(()=>[l("div",cf,[l("div",ff,[e[205]||(e[205]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"对话设置")],-1)),l("div",vf,[m(E,{type:"primary",plain:"",onClick:tr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[196]||(e[196]=k(" 添加问题 "))]),_:1}),m(E,{type:"success",plain:"",onClick:Ji},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(ma))]),_:1}),e[197]||(e[197]=k(" 导入问题 "))]),_:1})]),l("div",pf,[Pe.value.length===0?(U(),$("div",mf,e[198]||(e[198]=[l("p",null,"暂无问题",-1),l("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(U(),$("div",gf,[m(fe(Ba),{modelValue:Pe.value,"onUpdate:modelValue":e[39]||(e[39]=g=>Pe.value=g),"item-key":"id",handle:".drag-handle"},{item:y(({element:g,index:ie})=>[k(se(g)+" ",1),l("div",hf,[l("div",yf,[l("div",bf,[l("span",Sf,"题目"+se(ie+1),1),l("span",null,se(g.question),1)]),l("div",Ef,[l("div",xf,[e[200]||(e[200]=l("span",{class:"weight-label"},"权重占比:",-1)),m(xe,{modelValue:g.weight,"onUpdate:modelValue":Te=>g.weight=Te,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:y(()=>e[199]||(e[199]=[k("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),l("div",If,[e[201]||(e[201]=l("span",{class:"answer-label"},"最多回答次数",-1)),m(me,{modelValue:g.maxAnswers,"onUpdate:modelValue":Te=>g.maxAnswers=Te,size:"small",placeholder:"请选择"},{default:y(()=>[m(Q,{label:"1次",value:1}),m(Q,{label:"2次",value:2}),m(Q,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),m(E,{type:"text",onClick:Te=>qi(ie)},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:2},1032,["onClick"]),m(E,{type:"text",onClick:Te=>Yi(ie)},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(ga))]),_:1})]),_:2},1032,["onClick"])])]),l("div",wf,[l("div",Cf,[e[202]||(e[202]=l("span",{class:"info-label"},"考察能力:",-1)),l("span",null,se(g.ability),1)]),l("div",Af,[e[203]||(e[203]=l("span",{class:"info-label"},"面试内容:",-1)),l("span",null,se(g.content),1)]),l("div",Of,[e[204]||(e[204]=l("span",{class:"info-label"},"对话目标:",-1)),l("span",null,se(g.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),m(Dt,{title:"查看问题",modelValue:Ge.value,"onUpdate:modelValue":e[49]||(e[49]=g=>Ge.value=g),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:y(()=>[l("span",Wf,[m(E,{onClick:Yt},{default:y(()=>e[234]||(e[234]=[k("取消")])),_:1})])]),default:y(()=>[l("div",Df,[l("div",Pf,[e[208]||(e[208]=l("div",{class:"form-label"},[k(" 题目内容"),l("span",{class:"required"},"*")],-1)),m(N,{modelValue:_.content,"onUpdate:modelValue":e[41]||(e[41]=g=>_.content=g),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":"",disabled:!0},null,8,["modelValue"])]),l("div",Rf,[e[209]||(e[209]=l("div",{class:"form-label"},"胜任力标签",-1)),m(me,{modelValue:sa.value,"onUpdate:modelValue":e[42]||(e[42]=g=>sa.value=g),placeholder:"请选择胜任力标签",class:"full-width",multiple:"",disabled:!0},{default:y(()=>[(U(!0),$(We,null,qe(_.competency_tags,g=>(U(),Ae(Q,{key:g.id,label:g.name,value:g.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[210]||(e[210]=l("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),l("div",Vf,[e[216]||(e[216]=l("div",{class:"form-label"}," 胜任力配置 ",-1)),l("div",Uf,[e[212]||(e[212]=l("div",{class:"config-row"},[l("span",{class:"config-label"},"标签"),l("span",{class:"config-label"},"权重")],-1)),(U(!0),$(We,null,qe(_.competency_tags,(g,ie)=>(U(),$("div",{class:"config-row",key:g.id},[l("span",kf,se(g.name),1),m(xe,{modelValue:g.weight,"onUpdate:modelValue":Te=>g.weight=Te,min:0,max:100,step:1,disabled:!0,"controls-position":"right",onChange:Te=>Ul(ie,Te)},null,8,["modelValue","onUpdate:modelValue","onChange"]),e[211]||(e[211]=k(" % "))]))),128))]),l("div",Kf,[e[213]||(e[213]=k(" 配置各个胜任力标签的权重,总和需要100% ")),l("span",{class:Pt(["weight-sum",{"weight-error":Si()!==100}])}," (当前总计: "+se(Si())+"%) ",3),e[214]||(e[214]=l("br",null,null,-1)),m(C,{style:{color:"#409eff","margin-right":"4px","margin-top":"4px"}},{default:y(()=>[m(fe(ys))]),_:1}),e[215]||(e[215]=l("span",{style:{color:"#909399","font-size":"11px"}},' 修改任意权重时,其他权重会自动按比例调整以保持总和为100%。点击"平均分配"可快速平均分配所有权重。 ',-1))])]),l("div",Mf,[e[217]||(e[217]=l("div",{class:"form-label"},"题目形式",-1)),m(me,{modelValue:_.question_form,"onUpdate:modelValue":e[43]||(e[43]=g=>_.question_form=g),placeholder:"开放问题",class:"full-width",disabled:!0,onChange:Tl},{default:y(()=>[m(Q,{label:"开放问题",value:0}),m(Q,{label:"单选题",value:1}),m(Q,{label:"识图题",value:3}),m(Q,{label:"多选题",value:2}),m(Q,{label:"填空题",value:6}),m(Q,{label:"得分题",value:4}),m(Q,{label:"追加型开放问题",value:5})]),_:1},8,["modelValue"]),e[218]||(e[218]=l("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),l("div",Nf,[e[219]||(e[219]=l("div",{class:"form-label"},"适用职位",-1)),m(me,{modelValue:t.value,"onUpdate:modelValue":e[44]||(e[44]=g=>t.value=g),placeholder:"请选择适用职位类型",class:"full-width",disabled:!0},{default:y(()=>[(U(!0),$(We,null,qe(ct.value,g=>(U(),Ae(Q,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[220]||(e[220]=l("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),_.question_form===1||_.question_form===2||_.question_form===3?(U(),$("div",Bf,[e[222]||(e[222]=l("div",{class:"form-label"},"选项",-1)),l("div",null,[e[221]||(e[221]=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)),(U(!0),$(We,null,qe(_.options,(g,ie)=>(U(),$("div",{key:ie,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[m(N,{modelValue:g.text,"onUpdate:modelValue":Te=>g.text=Te,placeholder:"请输入选项内容",disabled:!0,style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),m(Ln,{content:"设置为正确答案",placement:"top",effect:"light",disabled:!0},{default:y(()=>[l("div",{onClick:()=>{_.question_form===1||_.question_form===3?_.options.forEach((Te,es)=>{Te.is_correct=es===ie}):g.is_correct=!g.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[_.question_form===1||_.question_form===3?(U(),Ae(bo,{key:0,disabled:!0,modelValue:g.is_correct,"onUpdate:modelValue":Te=>g.is_correct=Te,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(U(),Ae(en,{key:1,disabled:!0,modelValue:g.is_correct,"onUpdate:modelValue":Te=>g.is_correct=Te},null,8,["modelValue","onUpdate:modelValue"]))],8,Ff)]),_:2},1024)]))),128))]),e[223]||(e[223]=l("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):De("",!0),_.question_form==6?(U(),$("div",Lf,[e[224]||(e[224]=l("div",{class:"form-label"},"填空答案模板",-1)),m(Vs,{"model-value":_.blank_answer_template||[],question:_.content,readonly:!0},null,8,["model-value","question"])])):De("",!0),_.question_form===3?(U(),$("div",jf,[e[225]||(e[225]=l("div",{class:"form-label"},"题目图片",-1)),l("img",{src:_.question_image_url,alt:""},null,8,Qf)])):De("",!0),l("div",Gf,[e[226]||(e[226]=l("div",{class:"form-label"},"分类",-1)),m(N,{modelValue:_.category_name,"onUpdate:modelValue":e[45]||(e[45]=g=>_.category_name=g),disabled:!0,placeholder:"暂无分类"},null,8,["modelValue"]),e[227]||(e[227]=l("div",{class:"form-tip"},"选择题目所属分类",-1))]),l("div",zf,[e[228]||(e[228]=l("div",{class:"form-label"},"标签",-1)),m(me,{modelValue:_.tag_ids,"onUpdate:modelValue":e[46]||(e[46]=g=>_.tag_ids=g),placeholder:"暂无标签",class:"full-width",multiple:"",disabled:!0},{default:y(()=>[(U(!0),$(We,null,qe(_.tags,g=>(U(),Ae(Q,{key:g.value,label:g.name,value:g.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[229]||(e[229]=l("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),l("div",$f,[e[230]||(e[230]=l("div",{class:"form-label"},"建议时长(秒)",-1)),m(xe,{modelValue:_.suggestedDuration,"onUpdate:modelValue":e[47]||(e[47]=g=>_.suggestedDuration=g),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width",disabled:!0},null,8,["modelValue"]),e[231]||(e[231]=l("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),l("div",Jf,[e[232]||(e[232]=l("div",{class:"form-label"},"评价标准",-1)),m(N,{modelValue:_.scoring_reference,"onUpdate:modelValue":e[48]||(e[48]=g=>_.scoring_reference=g),type:"textarea",disabled:!0,rows:"4",placeholder:"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",class:"full-width"},null,8,["modelValue"]),e[233]||(e[233]=l("div",{class:"form-tip"},"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",-1))])])]),_:1},8,["modelValue"]),m(Dt,{title:"选择题目",modelValue:Mn.value,"onUpdate:modelValue":e[51]||(e[51]=g=>Mn.value=g),width:"30%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",Zf,[m(E,{onClick:e[50]||(e[50]=g=>Y("4"))},{default:y(()=>e[235]||(e[235]=[k("预览已选")])),_:1}),m(E,{onClick:cl},{default:y(()=>e[236]||(e[236]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:fl,disabled:Lt.value.length==0,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[237]||(e[237]=[k("确定")])),_:1},8,["disabled"])])]),default:y(()=>[l("div",Hf,[l("div",null,[jn((U(),Ae(ql,{ref:"treeRef",data:ua.value,"node-key":"id",props:zl,"default-expand-all":"","highlight-current":"",onNodeClick:$l},{default:y(({node:g,data:ie})=>[l("div",qf,[l("div",Yf,[m(C,null,{default:y(()=>[m(Hl)]),_:1}),l("span",Xf,se(ie.title),1)])])]),_:1},8,["data"])),[[Zo,yo.value]])])])]),_:1},8,["modelValue"]),m(Dt,{title:"创建自定义题目",modelValue:vo.value,"onUpdate:modelValue":e[53]||(e[53]=g=>vo.value=g),width:"40%","close-on-click-modal":!1,class:"question-bank-form-dialog","before-close":Wi},{default:y(()=>[m(xs,{modelValue:qo.value,"onUpdate:modelValue":e[52]||(e[52]=g=>qo.value=g),"is-edit":ia.value,onSubmit:nr,onCancel:Wi},null,8,["modelValue","is-edit"])]),_:1},8,["modelValue"]),m(Dt,{title:"资料收集",modelValue:it.value,"onUpdate:modelValue":e[54]||(e[54]=g=>it.value=g),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:y(()=>[l("span",yv,[m(E,{onClick:or},{default:y(()=>e[247]||(e[247]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:vl},{default:y(()=>e[248]||(e[248]=[k("确认")])),_:1})])]),default:y(()=>[l("div",_f,[l("div",ev,[e[246]||(e[246]=l("div",{class:"panel-header"},[l("h3",null,"字段显示配置")],-1)),l("div",tv,[e[241]||(e[241]=l("div",{class:"section-title"},"基本信息",-1)),m(tn,{gutter:20},{default:y(()=>[(U(!0),$(We,null,qe(pl(),(g,ie)=>(U(),Ae(Wt,{span:8,key:ie},{default:y(()=>[l("div",nv,[l("span",ov,se(g.label),1),m(Ln,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[m(yt,{modelValue:g.visible,"onUpdate:modelValue":Te=>g.visible=Te,disabled:g.label=="姓名"||g.label=="手机号"||g.label=="身份证号",class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[242]||(e[242]=l("div",{class:"section-title"},"家庭成员信息",-1)),m(tn,{gutter:20},{default:y(()=>[m(Wt,{span:24},{default:y(()=>[l("div",iv,[l("span",av,[k(se(fe(j).family_member.label)+" ",1),fe(j).family_member.visible?(U(),Ae(dt,{key:0,size:"small",type:"success"},{default:y(()=>e[238]||(e[238]=[k("已启用")])),_:1})):De("",!0)])])]),_:1})]),_:1}),fe(j).family_member.visible?(U(),Ae(tn,{key:0,gutter:20},{default:y(()=>[(U(!0),$(We,null,qe(fe(j).family_member.fields,(g,ie)=>(U(),Ae(Wt,{span:8,key:ie},{default:y(()=>[l("div",rv,[l("span",lv,se(g.label),1),m(Ln,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[m(yt,{modelValue:g.visible,"onUpdate:modelValue":Te=>g.visible=Te,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):De("",!0),e[243]||(e[243]=l("div",{class:"section-title"},"教育经历",-1)),m(tn,{gutter:20},{default:y(()=>[m(Wt,{span:24},{default:y(()=>[l("div",sv,[l("span",dv,[k(se(fe(j).education.label)+" ",1),fe(j).education.visible?(U(),Ae(dt,{key:0,size:"small",type:"success"},{default:y(()=>e[239]||(e[239]=[k("已启用")])),_:1})):De("",!0)])])]),_:1})]),_:1}),fe(j).education.visible?(U(),Ae(tn,{key:1,gutter:20},{default:y(()=>[(U(!0),$(We,null,qe(fe(j).education.fields,(g,ie)=>(U(),Ae(Wt,{span:8,key:ie},{default:y(()=>[l("div",uv,[l("span",cv,se(g.label),1),m(Ln,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[m(yt,{modelValue:g.visible,"onUpdate:modelValue":Te=>g.visible=Te,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):De("",!0),e[244]||(e[244]=l("div",{class:"section-title"},"专业技能",-1)),m(tn,{gutter:20},{default:y(()=>[(U(!0),$(We,null,qe(ml(),(g,ie)=>(U(),Ae(Wt,{span:8,key:ie},{default:y(()=>[l("div",fv,[l("span",vv,se(g.label),1),m(Ln,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[m(yt,{modelValue:g.visible,"onUpdate:modelValue":Te=>g.visible=Te,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[245]||(e[245]=l("div",{class:"section-title"},"工作经历",-1)),m(tn,{gutter:20},{default:y(()=>[m(Wt,{span:24},{default:y(()=>[l("div",pv,[l("span",mv,[k(se(fe(j).work_experience.label)+" ",1),fe(j).work_experience.visible?(U(),Ae(dt,{key:0,size:"small",type:"success"},{default:y(()=>e[240]||(e[240]=[k("已启用")])),_:1})):De("",!0)])])]),_:1})]),_:1}),fe(j).work_experience.visible?(U(),Ae(tn,{key:2,gutter:20},{default:y(()=>[(U(!0),$(We,null,qe(fe(j).work_experience.fields,(g,ie)=>(U(),Ae(Wt,{span:8,key:ie},{default:y(()=>[l("div",gv,[l("span",hv,se(g.label),1),m(Ln,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[m(yt,{modelValue:g.visible,"onUpdate:modelValue":Te=>g.visible=Te,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):De("",!0)])])])]),_:1},8,["modelValue"]),m(Dt,{title:"简历收集",modelValue:Je.value,"onUpdate:modelValue":e[56]||(e[56]=g=>Je.value=g),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:y(()=>[l("span",Ev,[m(E,{onClick:Ct},{default:y(()=>e[250]||(e[250]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:Ut},{default:y(()=>e[251]||(e[251]=[k("确认")])),_:1})])]),default:y(()=>[l("div",bv,[l("div",Sv,[e[249]||(e[249]=l("div",{class:"form-label"},"步骤名称",-1)),m(N,{modelValue:Le.title,"onUpdate:modelValue":e[55]||(e[55]=g=>Le.title=g),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":"",disabled:!0},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),m(Dt,{title:"添加代码笔试步骤",modelValue:Yn.value,"onUpdate:modelValue":e[59]||(e[59]=g=>Yn.value=g),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:y(()=>[l("span",kv,[m(E,{onClick:Xi},{default:y(()=>e[260]||(e[260]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:lr},{default:y(()=>e[261]||(e[261]=[k("确认")])),_:1})])]),default:y(()=>[l("div",xv,[l("div",Iv,[e[252]||(e[252]=l("div",{class:"form-label"},"步骤名称",-1)),m(N,{modelValue:at.title,"onUpdate:modelValue":e[57]||(e[57]=g=>at.title=g),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",wv,[e[253]||(e[253]=l("div",{class:"form-label"},"自动评判试卷",-1)),m(yt,{modelValue:at.autoJudge,"onUpdate:modelValue":e[58]||(e[58]=g=>at.autoJudge=g)},null,8,["modelValue"]),l("span",Cv,se(at.autoJudge?"开启":"关闭"),1)]),l("div",Av,[e[259]||(e[259]=l("div",{class:"form-label"},"添加考试试卷",-1)),l("div",Ov,[at.selectedPaper?(U(),$("div",Dv,[l("div",Pv,[l("div",Rv,se(at.selectedPaper.title),1),l("div",Vv,[l("span",null,se(at.selectedPaper.questionCount)+"道题",1),l("span",null,se(at.selectedPaper.duration)+"分钟",1),l("span",null,se(at.selectedPaper.difficulty),1)])]),l("div",Uv,[m(E,{type:"text",onClick:dr},{default:y(()=>e[256]||(e[256]=[k("查看")])),_:1}),m(E,{type:"text",onClick:ur},{default:y(()=>e[257]||(e[257]=[k("更换")])),_:1}),m(E,{type:"text",onClick:cr},{default:y(()=>e[258]||(e[258]=[k("删除")])),_:1})])])):(U(),$("div",Tv,[m(E,{type:"primary",plain:"",onClick:sr},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[254]||(e[254]=k(" 添加考卷 "))]),_:1}),e[255]||(e[255]=l("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),m(fe(xi),{title:"添加打字测试步骤",modelValue:Xn.value,"onUpdate:modelValue":e[67]||(e[67]=g=>Xn.value=g),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:y(()=>[l("span",Hv,[m(E,{onClick:Zi},{default:y(()=>e[278]||(e[278]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:fr},{default:y(()=>e[279]||(e[279]=[k("保存")])),_:1})])]),default:y(()=>[l("div",Kv,[l("div",Mv,[e[263]||(e[263]=l("div",{class:"form-label"},"选择文章",-1)),l("div",Nv,[m(E,{type:"primary",size:"small",class:"add-article-btn"},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[262]||(e[262]=k(" 添加文章 "))]),_:1})])]),l("div",Bv,[e[266]||(e[266]=l("div",{class:"form-label"},"候选人选择文章方式",-1)),m(Yl,{modelValue:nt.selectionMode,"onUpdate:modelValue":e[60]||(e[60]=g=>nt.selectionMode=g)},{default:y(()=>[m(bo,{label:"random"},{default:y(()=>e[264]||(e[264]=[k("随机抽取")])),_:1}),m(bo,{label:"self"},{default:y(()=>e[265]||(e[265]=[k("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),l("div",Fv,[e[268]||(e[268]=l("div",{class:"form-label"},"测试时间",-1)),l("div",Lv,[m(N,{modelValue:nt.duration,"onUpdate:modelValue":e[61]||(e[61]=g=>nt.duration=g),class:"time-input"},null,8,["modelValue"]),e[267]||(e[267]=l("span",{class:"time-unit"},"分钟",-1))])]),l("div",jv,[e[270]||(e[270]=l("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),m(ca,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:y(()=>[l("div",Qv,[m(C,null,{default:y(()=>[m(fe(In))]),_:1}),e[269]||(e[269]=l("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),l("div",Gv,[e[271]||(e[271]=l("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),m(N,{modelValue:nt.notes,"onUpdate:modelValue":e[62]||(e[62]=g=>nt.notes=g),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",zv,[e[272]||(e[272]=l("div",{class:"form-label"},"测试页面标题",-1)),m(N,{modelValue:nt.pageTitle,"onUpdate:modelValue":e[63]||(e[63]=g=>nt.pageTitle=g),placeholder:"测试页面标题"},null,8,["modelValue"])]),l("div",$v,[e[274]||(e[274]=l("div",{class:"form-label"},"视频监控",-1)),m(en,{modelValue:nt.videoMonitoring,"onUpdate:modelValue":e[64]||(e[64]=g=>nt.videoMonitoring=g)},{default:y(()=>e[273]||(e[273]=[k("视频监控")])),_:1},8,["modelValue"])]),l("div",Jv,[e[277]||(e[277]=l("div",{class:"form-label"},"通过标准",-1)),l("div",Wv,[m(en,{modelValue:nt.passCriteria.speed,"onUpdate:modelValue":e[65]||(e[65]=g=>nt.passCriteria.speed=g)},{default:y(()=>e[275]||(e[275]=[k("速度")])),_:1},8,["modelValue"]),m(en,{modelValue:nt.passCriteria.accuracy,"onUpdate:modelValue":e[66]||(e[66]=g=>nt.passCriteria.accuracy=g)},{default:y(()=>e[276]||(e[276]=[k("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),m(Dt,{title:"面试设置",modelValue:Nn.value,"onUpdate:modelValue":e[75]||(e[75]=g=>Nn.value=g),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:y(()=>[l("span",hp,[m(E,{onClick:hl},{default:y(()=>e[295]||(e[295]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:bl},{default:y(()=>e[296]||(e[296]=[k("完成")])),_:1})])]),default:y(()=>[l("div",qv,[l("div",Yv,[e[285]||(e[285]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"防作弊设置")],-1)),l("div",Xv,[e[280]||(e[280]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「人脸一致性检测」"),l("p",{class:"setting-desc"},"选取后,将会在候选人离开前置摄像头时进行提示,默认开启")],-1)),m(yt,{modelValue:Ve.faceConsistency,"onUpdate:modelValue":e[68]||(e[68]=g=>Ve.faceConsistency=g),disabled:!0},null,8,["modelValue"])]),l("div",Zv,[e[281]||(e[281]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),l("p",{class:"setting-desc"},"选取后,将会在候选人截屏或录屏时进行提示,为防止泄题,默认开启")],-1)),m(yt,{modelValue:Ve.preventScreenshot,"onUpdate:modelValue":e[69]||(e[69]=g=>Ve.preventScreenshot=g),disabled:!0},null,8,["modelValue"])]),l("div",_v,[e[283]||(e[283]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 切 屏 预 制 」"),l("p",{class:"setting-desc"},"选取后,将会在候选人切屏时进行提示,为防止作弊,默认开启")],-1)),m(yt,{modelValue:Ve.screenSwitchAlert,"onUpdate:modelValue":e[70]||(e[70]=g=>Ve.screenSwitchAlert=g),disabled:!0},{default:y(()=>e[282]||(e[282]=[l("span",{class:"switch-desc"},"切屏超过 2 次关闭,作废本关面试",-1)])),_:1},8,["modelValue"])]),l("div",ep,[e[284]||(e[284]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「情绪/眼动检测」"),l("p",{class:"setting-desc"},"选取后,将对候选人整场面试的情绪与压力表现进行分析,建议开启")],-1)),m(yt,{modelValue:Ve.positionDetection,"onUpdate:modelValue":e[71]||(e[71]=g=>Ve.positionDetection=g)},null,8,["modelValue"])])]),l("div",tp,[e[294]||(e[294]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"其他设置")],-1)),l("div",np,[l("div",op,[e[287]||(e[287]=l("span",{class:"setting-name"},"重复面试",-1)),l("div",ip,[e[286]||(e[286]=l("p",{class:"setting-desc",style:{}},"选取后,将允许面试者进行重复面试",-1)),m(yt,{modelValue:Ve.reviewInterview,"onUpdate:modelValue":e[72]||(e[72]=g=>Ve.reviewInterview=g)},null,8,["modelValue"])])])]),l("div",ap,[l("div",rp,[e[290]||(e[290]=l("span",{class:"setting-name"},"开场词",-1)),Bn.value?(U(),$("div",dp,[m(N,{modelValue:sn.value,"onUpdate:modelValue":e[73]||(e[73]=g=>sn.value=g),type:"textarea",rows:"5",maxlength:"150",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),l("div",up,[m(E,{size:"small",onClick:xl},{default:y(()=>e[288]||(e[288]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Il},{default:y(()=>e[289]||(e[289]=[k("保存")])),_:1})])])):(U(),$("div",lp,[l("p",sp,se(Ve.beforeStartText),1),m(E,{type:"text",class:"edit-desc-btn",onClick:El},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))])]),l("div",cp,[l("div",fp,[e[293]||(e[293]=l("span",{class:"setting-name"},"结束语",-1)),po.value?(U(),$("div",mp,[m(N,{modelValue:Fn.value,"onUpdate:modelValue":e[74]||(e[74]=g=>Fn.value=g),type:"textarea",rows:"5",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),l("div",gp,[m(E,{size:"small",onClick:Cl},{default:y(()=>e[291]||(e[291]=[k("取消")])),_:1}),m(E,{size:"small",type:"primary",onClick:Al},{default:y(()=>e[292]||(e[292]=[k("保存")])),_:1})])])):(U(),$("div",vp,[l("p",pp,se(Ve.disclaimerText),1),m(E,{type:"text",class:"edit-desc-btn",onClick:wl},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(St))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),m(Dt,{title:"选择题目",modelValue:I.value,"onUpdate:modelValue":e[81]||(e[81]=g=>I.value=g),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",wp,[m(E,{onClick:e[80]||(e[80]=g=>Y("1,2,3,6"))},{default:y(()=>e[297]||(e[297]=[k("预览已选")])),_:1}),m(E,{type:"primary",onClick:P,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[298]||(e[298]=[k("确定")])),_:1})])]),default:y(()=>[l("div",yp,[m(tn,{class:"document-el-row"},{default:y(()=>[m(Wt,{span:3},{default:y(()=>[jn((U(),$("div",bp,[m(Ks,{ref_key:"treeListRef",ref:Fl,treeData:da.value,onTreeClick:Ll,onUpdateDocument:jl,onDeleteDocument:Ql},null,8,["treeData"])])),[[Zo,ho.value]])]),_:1}),m(Wt,{span:21},{default:y(()=>[l("div",Sp,[l("div",Ep,[m(N,{modelValue:fo.value,"onUpdate:modelValue":e[76]||(e[76]=g=>fo.value=g),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Yo,onKeyup:ds(Yo,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:y(()=>[m(E,{onClick:Yo},{default:y(()=>[m(C,null,{default:y(()=>[m(fe(bs))]),_:1})]),_:1})]),_:1},8,["modelValue"]),m(me,{modelValue:st.question_form,"onUpdate:modelValue":e[77]||(e[77]=g=>st.question_form=g),placeholder:"题目类型",clearable:"",onChange:Yo,style:{width:"120px"}},{default:y(()=>[m(Q,{label:"开放问题",value:0}),m(Q,{label:"单选题",value:1}),m(Q,{label:"多选题",value:2}),m(Q,{label:"识图题",value:3}),m(Q,{label:"得分题",value:4}),m(Q,{label:"追加型开放问题",value:5}),m(Q,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),l("div",xp,[m(fa,{data:lt.value,style:{width:"100%"},onSelectionChange:ul},{default:y(()=>[m(So,{type:"selection",width:"55"}),m(So,{prop:"question",label:"题目标题"}),m(So,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),l("div",Ip,[m(Xl,{"current-page":st.page,"onUpdate:currentPage":e[78]||(e[78]=g=>st.page=g),"page-size":st.pageSize,"onUpdate:pageSize":e[79]||(e[79]=g=>st.pageSize=g),total:Jt.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:w,onCurrentChange:D},null,8,["current-page","page-size","total"])])])]),_:1})]),_:1})])]),_:1},8,["modelValue"]),m(Dt,{title:go.value>=0?"编辑候选人提问环节":"配置候选人提问环节",modelValue:mo.value,"onUpdate:modelValue":e[85]||(e[85]=g=>mo.value=g),width:"600px","close-on-click-modal":!1,class:"candidate-questions-dialog"},{footer:y(()=>[l("span",Dp,[m(E,{onClick:Dn},{default:y(()=>e[305]||(e[305]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:hi},{default:y(()=>e[306]||(e[306]=[k("确认")])),_:1})])]),default:y(()=>[l("div",Cp,[l("div",Ap,[e[299]||(e[299]=l("div",{class:"form-label"},[k(" 环节名称"),l("span",{class:"required"},"*")],-1)),m(N,{modelValue:Ne.title,"onUpdate:modelValue":e[82]||(e[82]=g=>Ne.title=g),placeholder:"请输入环节名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Op,[e[300]||(e[300]=l("div",{class:"form-label"},[k(" 提问时长"),l("span",{class:"required"},"*")],-1)),m(xe,{modelValue:Ne.duration,"onUpdate:modelValue":e[83]||(e[83]=g=>Ne.duration=g),min:1,max:30,step:1,"controls-position":"right",style:{width:"200px"}},null,8,["modelValue"]),e[301]||(e[301]=l("span",{class:"form-unit"},"分钟",-1)),e[302]||(e[302]=l("div",{class:"form-tip"},"候选人可用于提问的总时长",-1))]),l("div",Tp,[e[303]||(e[303]=l("div",{class:"form-label"},"环节描述",-1)),m(N,{modelValue:Ne.description,"onUpdate:modelValue":e[84]||(e[84]=g=>Ne.description=g),type:"textarea",rows:"3",placeholder:"请输入环节描述",maxlength:"200"},null,8,["modelValue"]),e[304]||(e[304]=l("div",{class:"form-tip"},"向候选人说明此环节的目的和意义",-1))])])]),_:1},8,["title","modelValue"]),m(Dt,{modelValue:Xo.value,"onUpdate:modelValue":e[89]||(e[89]=g=>Xo.value=g),title:"肢体检测配置",width:"600px","close-on-click-modal":!1},{footer:y(()=>[l("span",Pp,[m(E,{onClick:Nl,size:"small"},{default:y(()=>e[311]||(e[311]=[k("取消")])),_:1}),m(E,{type:"primary",onClick:Bl,size:"small"},{default:y(()=>e[312]||(e[312]=[k("确定")])),_:1})])]),default:y(()=>[m(_l,{model:un.value,"label-width":"120px"},{default:y(()=>[m(Ei,{label:"检测时长"},{default:y(()=>[m(xe,{modelValue:un.value.duration,"onUpdate:modelValue":e[86]||(e[86]=g=>un.value.duration=g),min:1,max:30,step:1,"controls-position":"right"},null,8,["modelValue"]),e[307]||(e[307]=k(" 分钟 "))]),_:1}),m(Ei,{label:"检测项目"},{default:y(()=>[m(Zl,{modelValue:un.value.detectionItems,"onUpdate:modelValue":e[87]||(e[87]=g=>un.value.detectionItems=g)},{default:y(()=>[m(en,{label:"face"},{default:y(()=>e[308]||(e[308]=[k("面部表情")])),_:1}),m(en,{label:"pose"},{default:y(()=>e[309]||(e[309]=[k("肢体姿态")])),_:1}),m(en,{label:"gesture"},{default:y(()=>e[310]||(e[310]=[k("手势动作")])),_:1})]),_:1},8,["modelValue"])]),_:1}),m(Ei,{label:"提示文本"},{default:y(()=>[m(N,{modelValue:un.value.promptText,"onUpdate:modelValue":e[88]||(e[88]=g=>un.value.promptText=g),type:"textarea",rows:3,placeholder:"请输入提示文本"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),m(Dt,{modelValue:K.value,"onUpdate:modelValue":e[91]||(e[91]=g=>K.value=g),title:"职位问题预览",width:"60%","close-on-click-modal":!1},{default:y(()=>[l("div",Rp,[l("div",Vp,"已绑定的问题("+se(Z.value.length)+"):",1),ne.value.length?(U(),$("div",Up,[e[313]||(e[313]=l("span",{style:{"margin-right":"8px",color:"#606266"}},"标签:",-1)),(U(!0),$(We,null,qe(ne.value,g=>(U(),Ae(dt,{key:g.id??g.name,effect:"plain",size:"small"},{default:y(()=>[k(se(g.name),1)]),_:2},1024))),128))])):(U(),$("div",kp,"暂无标签")),m(fa,{data:Z.value,style:{width:"100%"}},{default:y(()=>[m(So,{prop:"question",label:"问题内容","min-width":"300","show-overflow-tooltip":""}),m(So,{label:"标签","min-width":"220"},{default:y(g=>[(U(!0),$(We,null,qe(M(g.row),ie=>(U(),Ae(dt,{key:ie.id??ie.name,size:"small",effect:"plain",style:{margin:"0 6px 6px 0"}},{default:y(()=>[k(se(ie.name??ie.label??ie.text??ie.title),1)]),_:2},1024))),128)),M(g.row).length?De("",!0):(U(),$("span",Kp,"无"))]),_:1})]),_:1},8,["data"])]),l("div",Mp,[m(E,{type:"primary",onClick:e[90]||(e[90]=g=>K.value=!1)},{default:y(()=>e[314]||(e[314]=[k("关闭")])),_:1})])]),_:1},8,["modelValue"])])}}}),qp=Ms(Np,[["__scopeId","data-v-38ef119d"]]);export{qp as default};
|