@sc-guode/yzl-components 0.0.45 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.mjs +19 -10
  2. package/index.umd.js +3 -3
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -539,8 +539,8 @@ var jo = { exports: {} };
539
539
  });
540
540
  })(jo);
541
541
  class Tw {
542
- constructor(e, r) {
543
- this.vm = e, this.config = r;
542
+ constructor(e, r, n) {
543
+ this.vm = e, this.config = r, this.$t = n;
544
544
  }
545
545
  async execute(e, r) {
546
546
  try {
@@ -581,20 +581,20 @@ class Tw {
581
581
  let l;
582
582
  if (e.data instanceof Blob) {
583
583
  const u = e.data.type || "application/octet-stream", h = new Blob([e.data], { type: u });
584
- jo.exports.saveAs(URL.createObjectURL(h), n), l = typeof e.data == "string" ? e.data : "\u6587\u4EF6\u4E0B\u8F7D\u6210\u529F", this.vm.$message.success(l);
584
+ jo.exports.saveAs(URL.createObjectURL(h), n), l = typeof e.data == "string" ? e.data : this.$t("Table.downloadSuccess"), this.vm.$message.success(l);
585
585
  } else {
586
- l = "\u5BFC\u51FA\u4EFB\u52A1\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u81F3\u4E0B\u8F7D\u4E2D\u5FC3\u67E5\u770B\u3002", this.vm.$message.success(l);
586
+ l = this.$t("Table.exportSuccess"), this.vm.$message.success(l);
587
587
  const { pageX: u, pageY: h } = r;
588
588
  this.createBall(u, h);
589
589
  }
590
590
  } else
591
591
  this.handleError({
592
- message: (e == null ? void 0 : e.data) || "\u64CD\u4F5C\u5931\u8D25",
592
+ message: e == null ? void 0 : e.data,
593
593
  response: e
594
594
  });
595
595
  }
596
596
  handleError(e) {
597
- console.error("[ExportHelper]", e), this.vm.$message.error(e.message || "\u5BFC\u51FA\u5931\u8D25");
597
+ console.error("[ExportHelper]", e), this.vm.$message.error(e.message || this.$t("Table.exportFail"));
598
598
  }
599
599
  }
600
600
  /**!
@@ -1854,7 +1854,10 @@ const Kw = {
1854
1854
  showCcolumns: "\u663E\u793A\u5217",
1855
1855
  allColumns: "\u5168\u90E8\u5217",
1856
1856
  save: "\u4FDD\u5B58\u914D\u7F6E",
1857
- operation: "\u64CD\u4F5C"
1857
+ operation: "\u64CD\u4F5C",
1858
+ exportFail: "\u5BFC\u51FA\u5931\u8D25",
1859
+ exportSuccess: "\u5BFC\u51FA\u4EFB\u52A1\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u81F3\u4E0B\u8F7D\u4E2D\u5FC3\u67E5\u770B\u3002",
1860
+ downloadSuccess: "\u6587\u4EF6\u4E0B\u8F7D\u6210\u529F"
1858
1861
  },
1859
1862
  Pagelist: {
1860
1863
  search: "\u67E5\u8BE2",
@@ -1903,7 +1906,10 @@ const Kw = {
1903
1906
  showCcolumns: "Show Columns",
1904
1907
  allColumns: "All Columns",
1905
1908
  save: "Save Configuration",
1906
- operation: "Operation"
1909
+ operation: "Operation",
1910
+ exportFail: "Export failed",
1911
+ exportSuccess: "Export task created successfully. Please check the Download Center.",
1912
+ downloadSuccess: "File downloaded successfully"
1907
1913
  },
1908
1914
  Pagelist: {
1909
1915
  search: "Search",
@@ -1952,7 +1958,10 @@ const Kw = {
1952
1958
  showCcolumns: "C\u1ED9t hi\u1EC3n th\u1ECB",
1953
1959
  allColumns: "T\u1EA5t c\u1EA3 c\xE1c c\u1ED9t",
1954
1960
  save: "L\u01B0u c\u1EA5u h\xECnh",
1955
- operation: "Thao t\xE1c"
1961
+ operation: "Thao t\xE1c",
1962
+ exportFail: "Xu\u1EA5t th\u1EA5t b\u1EA1i",
1963
+ exportSuccess: "\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng nhi\u1EC7m v\u1EE5 xu\u1EA5t, vui l\xF2ng \u0111\u1EBFn trung t\xE2m t\u1EA3i xu\u1ED1ng \u0111\u1EC3 xem.",
1964
+ downloadSuccess: "T\u1EA3i t\u1EC7p th\xE0nh c\xF4ng"
1956
1965
  },
1957
1966
  Pagelist: {
1958
1967
  search: "T\xECm ki\u1EBFm",
@@ -17797,7 +17806,7 @@ const X3 = {
17797
17806
  else {
17798
17807
  const { api: e, tableId: r, fileName: n, onSearch: a, onPages: o, exportParams: l } = this.exports;
17799
17808
  try {
17800
- this.startLoading(), await new Tw(this, { api: e, fileName: n, onSearch: a, onPages: o }).execute({ tableId: r || this.tableId, ...l }, t);
17809
+ this.startLoading(), await new Tw(this, { api: e, fileName: n, onSearch: a, onPages: o }, this.$t).execute({ tableId: r || this.tableId, ...l }, t);
17801
17810
  } finally {
17802
17811
  this.stopLoading();
17803
17812
  }
package/index.umd.js CHANGED
@@ -4,12 +4,12 @@
4
4
  3. \u89E3\u51B3\u65B9\u6848\uFF1A\u4FDD\u7559\u4EFB\u610F\u4E00\u79CD\u6A21\u5F0F\u5373\u53EF`),new Error("\u68C0\u6D4B\u5230\u51B2\u7A81\u7684\u6E32\u67D3\u6A21\u5F0F\u914D\u7F6E");this.enableVirtualScroll&&(this.renderQueue=[...t],this.currentChunk=0,this.updateVisibleData())},immediate:!0},"pageInfo.page"(t){this.enableVirtualScroll&&(this.currentChunk=0,this.renderQueue=[...this.data],this.updateVisibleData())}},methods:{initVirtualScroll(){if(!this.enableVirtualScroll){console.warn("Virtual scroll is disabled");return}if(!this.enableVirtualScroll)return;const t=this.$refs.tableContainer;if(!t){console.error("Table container ref not found");return}const e=t==null?void 0:t.querySelector(".el-table__body-wrapper");e&&(setTimeout(()=>{this.scrollContainerHeight=e.clientHeight},0),e.addEventListener("scroll",this.handleVirtualScroll),this.$once("hook:beforeDestroy",()=>{e.removeEventListener("scroll",this.handleVirtualScroll)}))},handleVirtualScroll(t){var o;if(!this.firstRowHeight){const l=(o=this.$refs.tableContainer)==null?void 0:o.querySelector(".el-table__row");l&&(this.firstRowHeight=Math.round(l.getBoundingClientRect().height*10)/10)}const e=this.chunkSize*this.firstRowHeight,{scrollTop:r}=t.target,a=(this.currentChunk+1)*e-e*.5;r>a&&(this.currentChunk++,this.updateVisibleData())},async updateVisibleData(){const t=(this.currentChunk+1)*this.chunkSize;this.visibleData=this.renderQueue.slice(0,t),this.$nextTick(()=>{var e;(e=this.$refs.yzlTable)==null||e.doLayout()})}}},_p={props:{enableDeferRender:{type:Boolean,default:!1},deferChunkSize:{type:Number,default:50}},data(){return{chunkBuffer:[],renderedData:[]}},watch:{data:{handler(t){if(this.enableVirtualScroll&&this.enableDeferRender)throw console.error(`[YzlTable Error] \u6E32\u67D3\u6A21\u5F0F\u51B2\u7A81\uFF1A
5
5
  1. enableVirtualScroll \u548C enableDeferRender \u4E0D\u80FD\u540C\u65F6\u542F\u7528
6
6
  2. \u5F53\u524D\u503C\uFF1AenableVirtualScroll=${this.enableVirtualScroll}, enableDeferRender=${this.enableDeferRender}
7
- 3. \u89E3\u51B3\u65B9\u6848\uFF1A\u4FDD\u7559\u4EFB\u610F\u4E00\u79CD\u6A21\u5F0F\u5373\u53EF`),new Error("\u68C0\u6D4B\u5230\u51B2\u7A81\u7684\u6E32\u67D3\u6A21\u5F0F\u914D\u7F6E");this.enableDeferRender&&(this.chunkBuffer=[...t],this.renderedData=[],this.processChunk())},immediate:!0},"pageInfo.page"(t){this.enableDeferRender&&(this.chunkBuffer=[...this.data],this.renderedData=[],this.processChunk())}},methods:{processChunk(){const t=this.chunkBuffer.splice(0,this.deferChunkSize);this.renderedData.push(...t),this.chunkBuffer.length>0?requestAnimationFrame(this.processChunk):this.$nextTick(()=>{var e;(e=this.$refs.yzlTable)==null||e.doLayout()})}}};var Fs={exports:{}};(function(t,e){(function(r,n){n()})(Qr,function(){function r(c,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,p,g){var x=new XMLHttpRequest;x.open("GET",c),x.responseType="blob",x.onload=function(){h(x.response,p,g)},x.onerror=function(){console.error("could not download file")},x.send()}function a(c){var p=new XMLHttpRequest;p.open("HEAD",c,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Qr=="object"&&Qr.global===Qr?Qr:void 0,u=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(c,p,g){var x=l.URL||l.webkitURL,_=document.createElement("a");p=p||c.name||"download",_.download=p,_.rel="noopener",typeof c=="string"?(_.href=c,_.origin===location.origin?o(_):a(_.href)?n(c,p,g):o(_,_.target="_blank")):(_.href=x.createObjectURL(c),setTimeout(function(){x.revokeObjectURL(_.href)},4e4),setTimeout(function(){o(_)},0))}:"msSaveOrOpenBlob"in navigator?function(c,p,g){if(p=p||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,g),p);else if(a(c))n(c,p,g);else{var x=document.createElement("a");x.href=c,x.target="_blank",setTimeout(function(){o(x)})}}:function(c,p,g,x){if(x=x||open("","_blank"),x&&(x.document.title=x.document.body.innerText="downloading..."),typeof c=="string")return n(c,p,g);var _=c.type==="application/octet-stream",y=/constructor/i.test(l.HTMLElement)||l.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||_&&y||u)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var L=A.result;L=v?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=L:location=L,x=null},A.readAsDataURL(c)}else{var M=l.URL||l.webkitURL,B=M.createObjectURL(c);x?x.location=B:location.href=B,x=null,setTimeout(function(){M.revokeObjectURL(B)},4e4)}});l.saveAs=h.saveAs=h,t.exports=h})})(Fs);class wp{constructor(e,r){this.vm=e,this.config=r}async execute(e,r){try{const n=await this.handleRequest(e);return this.handleResponse(n,r),!0}catch(n){return this.handleError(n),!1}}async handleRequest(e){const{onSearch:r=!0,onPages:n=!1}=this.config,{model:a,pageInfo:o}=this.vm,l=r?Object.entries({...a}).filter(([c,p])=>p!=null&&p!==""&&!c.startsWith("_")&&c!=="pageInfo"&&c!=="data").reduce((c,[p,g])=>(c[p]=typeof g=="object"?JSON.parse(JSON.stringify(g)):g,c),{}):{},u=n&&o?{page:o.page,size:o.size}:{},h={...e,...l,...u};if(typeof this.config.api=="function")return this.config.api(h)}createBall(e,r){let n=document.createElement("div");n.style.position="absolute",n.style.left=e+"px",n.style.top=r+"px",n.style.width="20px",n.style.height="20px",n.style.borderRadius="50%",n.style.backgroundColor="#02b6fd",n.style.transition="left 1s linear, top 1s cubic-bezier(0.5, -0.5, 1, 1)",n.style.zIndex="9999",document.body.appendChild(n),setTimeout(()=>{let a=document.querySelector(".navbar .user-area .pointer:nth-of-type(2)")||document.querySelector(".head-right");n.style.left=a.offsetLeft+a.offsetWidth/2+"px",n.style.top=a.offsetTop+"px"},0),n.ontransitionend=function(){this.remove()}}handleResponse(e,r){var a,o;const n=this.config.fileName||`${((a=this.vm.$route)==null?void 0:a.name)||"export"}_${Q0().format("YYYYMMDD_HHmm")}`;if(((o=e==null?void 0:e.config)==null?void 0:o.responseType)==="arraybuffer"&&e.status===200){const l=new Blob([e.data]);Fs.exports.saveAs(l,`${n}.xlsx`)}else if(e!=null&&e.success){let l;if(e.data instanceof Blob){const u=e.data.type||"application/octet-stream",h=new Blob([e.data],{type:u});Fs.exports.saveAs(URL.createObjectURL(h),n),l=typeof e.data=="string"?e.data:"\u6587\u4EF6\u4E0B\u8F7D\u6210\u529F",this.vm.$message.success(l)}else{l="\u5BFC\u51FA\u4EFB\u52A1\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u81F3\u4E0B\u8F7D\u4E2D\u5FC3\u67E5\u770B\u3002",this.vm.$message.success(l);const{pageX:u,pageY:h}=r;this.createBall(u,h)}}else this.handleError({message:(e==null?void 0:e.data)||"\u64CD\u4F5C\u5931\u8D25",response:e})}handleError(e){console.error("[ExportHelper]",e),this.vm.$message.error(e.message||"\u5BFC\u51FA\u5931\u8D25")}}/**!
7
+ 3. \u89E3\u51B3\u65B9\u6848\uFF1A\u4FDD\u7559\u4EFB\u610F\u4E00\u79CD\u6A21\u5F0F\u5373\u53EF`),new Error("\u68C0\u6D4B\u5230\u51B2\u7A81\u7684\u6E32\u67D3\u6A21\u5F0F\u914D\u7F6E");this.enableDeferRender&&(this.chunkBuffer=[...t],this.renderedData=[],this.processChunk())},immediate:!0},"pageInfo.page"(t){this.enableDeferRender&&(this.chunkBuffer=[...this.data],this.renderedData=[],this.processChunk())}},methods:{processChunk(){const t=this.chunkBuffer.splice(0,this.deferChunkSize);this.renderedData.push(...t),this.chunkBuffer.length>0?requestAnimationFrame(this.processChunk):this.$nextTick(()=>{var e;(e=this.$refs.yzlTable)==null||e.doLayout()})}}};var Fs={exports:{}};(function(t,e){(function(r,n){n()})(Qr,function(){function r(c,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,p,g){var x=new XMLHttpRequest;x.open("GET",c),x.responseType="blob",x.onload=function(){h(x.response,p,g)},x.onerror=function(){console.error("could not download file")},x.send()}function a(c){var p=new XMLHttpRequest;p.open("HEAD",c,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Qr=="object"&&Qr.global===Qr?Qr:void 0,u=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(c,p,g){var x=l.URL||l.webkitURL,_=document.createElement("a");p=p||c.name||"download",_.download=p,_.rel="noopener",typeof c=="string"?(_.href=c,_.origin===location.origin?o(_):a(_.href)?n(c,p,g):o(_,_.target="_blank")):(_.href=x.createObjectURL(c),setTimeout(function(){x.revokeObjectURL(_.href)},4e4),setTimeout(function(){o(_)},0))}:"msSaveOrOpenBlob"in navigator?function(c,p,g){if(p=p||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,g),p);else if(a(c))n(c,p,g);else{var x=document.createElement("a");x.href=c,x.target="_blank",setTimeout(function(){o(x)})}}:function(c,p,g,x){if(x=x||open("","_blank"),x&&(x.document.title=x.document.body.innerText="downloading..."),typeof c=="string")return n(c,p,g);var _=c.type==="application/octet-stream",y=/constructor/i.test(l.HTMLElement)||l.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||_&&y||u)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var L=A.result;L=v?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=L:location=L,x=null},A.readAsDataURL(c)}else{var M=l.URL||l.webkitURL,B=M.createObjectURL(c);x?x.location=B:location.href=B,x=null,setTimeout(function(){M.revokeObjectURL(B)},4e4)}});l.saveAs=h.saveAs=h,t.exports=h})})(Fs);class wp{constructor(e,r,n){this.vm=e,this.config=r,this.$t=n}async execute(e,r){try{const n=await this.handleRequest(e);return this.handleResponse(n,r),!0}catch(n){return this.handleError(n),!1}}async handleRequest(e){const{onSearch:r=!0,onPages:n=!1}=this.config,{model:a,pageInfo:o}=this.vm,l=r?Object.entries({...a}).filter(([c,p])=>p!=null&&p!==""&&!c.startsWith("_")&&c!=="pageInfo"&&c!=="data").reduce((c,[p,g])=>(c[p]=typeof g=="object"?JSON.parse(JSON.stringify(g)):g,c),{}):{},u=n&&o?{page:o.page,size:o.size}:{},h={...e,...l,...u};if(typeof this.config.api=="function")return this.config.api(h)}createBall(e,r){let n=document.createElement("div");n.style.position="absolute",n.style.left=e+"px",n.style.top=r+"px",n.style.width="20px",n.style.height="20px",n.style.borderRadius="50%",n.style.backgroundColor="#02b6fd",n.style.transition="left 1s linear, top 1s cubic-bezier(0.5, -0.5, 1, 1)",n.style.zIndex="9999",document.body.appendChild(n),setTimeout(()=>{let a=document.querySelector(".navbar .user-area .pointer:nth-of-type(2)")||document.querySelector(".head-right");n.style.left=a.offsetLeft+a.offsetWidth/2+"px",n.style.top=a.offsetTop+"px"},0),n.ontransitionend=function(){this.remove()}}handleResponse(e,r){var a,o;const n=this.config.fileName||`${((a=this.vm.$route)==null?void 0:a.name)||"export"}_${Q0().format("YYYYMMDD_HHmm")}`;if(((o=e==null?void 0:e.config)==null?void 0:o.responseType)==="arraybuffer"&&e.status===200){const l=new Blob([e.data]);Fs.exports.saveAs(l,`${n}.xlsx`)}else if(e!=null&&e.success){let l;if(e.data instanceof Blob){const u=e.data.type||"application/octet-stream",h=new Blob([e.data],{type:u});Fs.exports.saveAs(URL.createObjectURL(h),n),l=typeof e.data=="string"?e.data:this.$t("Table.downloadSuccess"),this.vm.$message.success(l)}else{l=this.$t("Table.exportSuccess"),this.vm.$message.success(l);const{pageX:u,pageY:h}=r;this.createBall(u,h)}}else this.handleError({message:e==null?void 0:e.data,response:e})}handleError(e){console.error("[ExportHelper]",e),this.vm.$message.error(e.message||this.$t("Table.exportFail"))}}/**!
8
8
  * Sortable 1.15.6
9
9
  * @author RubaXa <trash@rubaxa.org>
10
10
  * @author owenm <owen23355@gmail.com>
11
11
  * @license MIT
12
- */function eu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function pn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eu(Object(r),!0).forEach(function(n){Tp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bs(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bs=function(e){return typeof e}:bs=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(t)}function Tp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yn(){return yn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yn.apply(this,arguments)}function Ep(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o<n.length;o++)a=n[o],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function yp(t,e){if(t==null)return{};var r=Ep(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}var Sp="1.15.6";function Sn(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var An=Sn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fa=Sn(/Edge/i),tu=Sn(/firefox/i),ba=Sn(/safari/i)&&!Sn(/chrome/i)&&!Sn(/android/i),Il=Sn(/iP(ad|od|hone)/i),ru=Sn(/chrome/i)&&Sn(/android/i),nu={capture:!1,passive:!1};function et(t,e,r){t.addEventListener(e,r,!An&&nu)}function Ze(t,e,r){t.removeEventListener(e,r,!An&&nu)}function Os(t,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function iu(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function en(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&Os(t,e):Os(t,e))||n&&t===r)return t;if(t===r)break}while(t=iu(t))}return null}var au=/\s+/g;function Ar(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(au," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(au," ")}}function Be(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function $i(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Be(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function su(t,e,r){if(t){var n=t.getElementsByTagName(e),a=0,o=n.length;if(r)for(;a<o;a++)r(n[a],a);return n}return[]}function gn(){var t=document.scrollingElement;return t||document.documentElement}function Dt(t,e,r,n,a){if(!(!t.getBoundingClientRect&&t!==window)){var o,l,u,h,c,p,g;if(t!==window&&t.parentNode&&t!==gn()?(o=t.getBoundingClientRect(),l=o.top,u=o.left,h=o.bottom,c=o.right,p=o.height,g=o.width):(l=0,u=0,h=window.innerHeight,c=window.innerWidth,p=window.innerHeight,g=window.innerWidth),(e||r)&&t!==window&&(a=a||t.parentNode,!An))do if(a&&a.getBoundingClientRect&&(Be(a,"transform")!=="none"||r&&Be(a,"position")!=="static")){var x=a.getBoundingClientRect();l-=x.top+parseInt(Be(a,"border-top-width")),u-=x.left+parseInt(Be(a,"border-left-width")),h=l+o.height,c=u+o.width;break}while(a=a.parentNode);if(n&&t!==window){var _=$i(a||t),y=_&&_.a,v=_&&_.d;_&&(l/=v,u/=y,g/=y,p/=v,h=l+p,c=u+g)}return{top:l,left:u,bottom:h,right:c,width:g,height:p}}}function ou(t,e,r){for(var n=zn(t,!0),a=Dt(t)[e];n;){var o=Dt(n)[r],l=void 0;if(r==="top"||r==="left"?l=a>=o:l=a<=o,!l)return n;if(n===gn())break;n=zn(n,!1)}return!1}function Ui(t,e,r,n){for(var a=0,o=0,l=t.children;o<l.length;){if(l[o].style.display!=="none"&&l[o]!==$e.ghost&&(n||l[o]!==$e.dragged)&&en(l[o],r.draggable,t,!1)){if(a===e)return l[o];a++}o++}return null}function Rl(t,e){for(var r=t.lastElementChild;r&&(r===$e.ghost||Be(r,"display")==="none"||e&&!Os(r,e));)r=r.previousElementSibling;return r||null}function Ur(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==$e.clone&&(!e||Os(t,e))&&r++;return r}function lu(t){var e=0,r=0,n=gn();if(t)do{var a=$i(t),o=a.a,l=a.d;e+=t.scrollLeft*o,r+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,r]}function Ap(t,e){for(var r in t)if(!!t.hasOwnProperty(r)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[r][n])return Number(r)}return-1}function zn(t,e){if(!t||!t.getBoundingClientRect)return gn();var r=t,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=Be(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return gn();if(n||e)return r;n=!0}}while(r=r.parentNode);return gn()}function Cp(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ll(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Oa;function fu(t,e){return function(){if(!Oa){var r=arguments,n=this;r.length===1?t.call(n,r[0]):t.apply(n,r),Oa=setTimeout(function(){Oa=void 0},e)}}}function Fp(){clearTimeout(Oa),Oa=void 0}function uu(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function cu(t){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function hu(t,e,r){var n={};return Array.from(t.children).forEach(function(a){var o,l,u,h;if(!(!en(a,e.draggable,t,!1)||a.animated||a===r)){var c=Dt(a);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,c.left),n.top=Math.min((l=n.top)!==null&&l!==void 0?l:1/0,c.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,c.right),n.bottom=Math.max((h=n.bottom)!==null&&h!==void 0?h:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pr="Sortable"+new Date().getTime();function bp(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(Be(a,"display")==="none"||a===$e.ghost)){t.push({target:a,rect:Dt(a)});var o=pn({},t[t.length-1].rect);if(a.thisAnimationDuration){var l=$i(a,!0);l&&(o.top-=l.f,o.left-=l.e)}a.fromRect=o}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice(Ap(t,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,l=0;t.forEach(function(u){var h=0,c=u.target,p=c.fromRect,g=Dt(c),x=c.prevFromRect,_=c.prevToRect,y=u.rect,v=$i(c,!0);v&&(g.top-=v.f,g.left-=v.e),c.toRect=g,c.thisAnimationDuration&&Ll(x,g)&&!Ll(p,g)&&(y.top-g.top)/(y.left-g.left)===(p.top-g.top)/(p.left-g.left)&&(h=Dp(y,x,_,a.options)),Ll(g,p)||(c.prevFromRect=p,c.prevToRect=g,h||(h=a.options.animation),a.animate(c,y,g,h)),h&&(o=!0,l=Math.max(l,h),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},h),c.thisAnimationDuration=h)}),clearTimeout(e),o?e=setTimeout(function(){typeof n=="function"&&n()},l):typeof n=="function"&&n(),t=[]},animate:function(n,a,o,l){if(l){Be(n,"transition",""),Be(n,"transform","");var u=$i(this.el),h=u&&u.a,c=u&&u.d,p=(a.left-o.left)/(h||1),g=(a.top-o.top)/(c||1);n.animatingX=!!p,n.animatingY=!!g,Be(n,"transform","translate3d("+p+"px,"+g+"px,0)"),this.forRepaintDummy=Op(n),Be(n,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Be(n,"transition",""),Be(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},l)}}}}function Op(t){return t.offsetWidth}function Dp(t,e,r,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*n.animation}var Wi=[],Nl={initializeByDefault:!0},Da={mount:function(e){for(var r in Nl)Nl.hasOwnProperty(r)&&!(r in e)&&(e[r]=Nl[r]);Wi.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Wi.push(e)},pluginEvent:function(e,r,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=e+"Global";Wi.forEach(function(l){!r[l.pluginName]||(r[l.pluginName][o]&&r[l.pluginName][o](pn({sortable:r},n)),r.options[l.pluginName]&&r[l.pluginName][e]&&r[l.pluginName][e](pn({sortable:r},n)))})},initializePlugins:function(e,r,n,a){Wi.forEach(function(u){var h=u.pluginName;if(!(!e.options[h]&&!u.initializeByDefault)){var c=new u(e,r,e.options);c.sortable=e,c.options=e.options,e[h]=c,yn(n,c.defaults)}});for(var o in e.options)if(!!e.options.hasOwnProperty(o)){var l=this.modifyOption(e,o,e.options[o]);typeof l<"u"&&(e.options[o]=l)}},getEventProperties:function(e,r){var n={};return Wi.forEach(function(a){typeof a.eventProperties=="function"&&yn(n,a.eventProperties.call(r[a.pluginName],e))}),n},modifyOption:function(e,r,n){var a;return Wi.forEach(function(o){!e[o.pluginName]||o.optionListeners&&typeof o.optionListeners[r]=="function"&&(a=o.optionListeners[r].call(e[o.pluginName],n))}),a}};function Ip(t){var e=t.sortable,r=t.rootEl,n=t.name,a=t.targetEl,o=t.cloneEl,l=t.toEl,u=t.fromEl,h=t.oldIndex,c=t.newIndex,p=t.oldDraggableIndex,g=t.newDraggableIndex,x=t.originalEvent,_=t.putSortable,y=t.extraEventProperties;if(e=e||r&&r[pr],!!e){var v,A=e.options,M="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!An&&!Fa?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=l||r,v.from=u||r,v.item=a||r,v.clone=o,v.oldIndex=h,v.newIndex=c,v.oldDraggableIndex=p,v.newDraggableIndex=g,v.originalEvent=x,v.pullMode=_?_.lastPutMode:void 0;var B=pn(pn({},y),Da.getEventProperties(n,e));for(var L in B)v[L]=B[L];r&&r.dispatchEvent(v),A[M]&&A[M].call(e,v)}}var Rp=["evt"],gr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,o=yp(n,Rp);Da.pluginEvent.bind($e)(e,r,pn({dragEl:Te,parentEl:St,ghostEl:We,rootEl:vt,nextEl:pi,lastDownEl:Ds,cloneEl:Tt,cloneHidden:Gn,dragStarted:Ra,putSortable:Gt,activeSortable:$e.active,originalEvent:a,oldIndex:Hi,oldDraggableIndex:Ia,newIndex:Cr,newDraggableIndex:Xn,hideGhostForTarget:_u,unhideGhostForTarget:wu,cloneNowHidden:function(){Gn=!0},cloneNowShown:function(){Gn=!1},dispatchSortableEvent:function(u){ar({sortable:r,name:u,originalEvent:a})}},o))};function ar(t){Ip(pn({putSortable:Gt,cloneEl:Tt,targetEl:Te,rootEl:vt,oldIndex:Hi,oldDraggableIndex:Ia,newIndex:Cr,newDraggableIndex:Xn},t))}var Te,St,We,vt,pi,Ds,Tt,Gn,Hi,Cr,Ia,Xn,Is,Gt,Vi=!1,Rs=!1,Ls=[],gi,tn,kl,Pl,du,pu,Ra,zi,La,Na=!1,Ns=!1,ks,er,Ml=[],Bl=!1,Ps=[],Ms=typeof document<"u",Bs=Il,gu=Fa||An?"cssFloat":"float",Lp=Ms&&!ru&&!Il&&"draggable"in document.createElement("div"),mu=function(){if(!!Ms){if(An)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),xu=function(e,r){var n=Be(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Ui(e,0,r),l=Ui(e,1,r),u=o&&Be(o),h=l&&Be(l),c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Dt(o).width,p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Dt(l).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return l&&(h.clear==="both"||h.clear===g)?"vertical":"horizontal"}return o&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||c>=a&&n[gu]==="none"||l&&n[gu]==="none"&&c+p>a)?"vertical":"horizontal"},Np=function(e,r,n){var a=n?e.left:e.top,o=n?e.right:e.bottom,l=n?e.width:e.height,u=n?r.left:r.top,h=n?r.right:r.bottom,c=n?r.width:r.height;return a===u||o===h||a+l/2===u+c/2},kp=function(e,r){var n;return Ls.some(function(a){var o=a[pr].options.emptyInsertThreshold;if(!(!o||Rl(a))){var l=Dt(a),u=e>=l.left-o&&e<=l.right+o,h=r>=l.top-o&&r<=l.bottom+o;if(u&&h)return n=a}}),n},vu=function(e){function r(o,l){return function(u,h,c,p){var g=u.options.group.name&&h.options.group.name&&u.options.group.name===h.options.group.name;if(o==null&&(l||g))return!0;if(o==null||o===!1)return!1;if(l&&o==="clone")return o;if(typeof o=="function")return r(o(u,h,c,p),l)(u,h,c,p);var x=(l?u:h).options.group.name;return o===!0||typeof o=="string"&&o===x||o.join&&o.indexOf(x)>-1}}var n={},a=e.group;(!a||bs(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=r(a.pull,!0),n.checkPut=r(a.put),n.revertClone=a.revertClone,e.group=n},_u=function(){!mu&&We&&Be(We,"display","none")},wu=function(){!mu&&We&&Be(We,"display","")};Ms&&!ru&&document.addEventListener("click",function(t){if(Rs)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Rs=!1,!1},!0);var mi=function(e){if(Te){e=e.touches?e.touches[0]:e;var r=kp(e.clientX,e.clientY);if(r){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[pr]._onDragOver(n)}}},Pp=function(e){Te&&Te.parentNode[pr]._isOutsideThisEl(e.target)};function $e(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=yn({},e),t[pr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return xu(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,u){l.setData("Text",u.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:$e.supportPointer!==!1&&"PointerEvent"in window&&(!ba||Il),emptyInsertThreshold:5};Da.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);vu(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:Lp,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?et(t,"pointerdown",this._onTapStart):(et(t,"mousedown",this._onTapStart),et(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(et(t,"dragover",this),et(t,"dragenter",this)),Ls.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),yn(this,bp())}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(zi=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Te):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var r=this,n=this.el,a=this.options,o=a.preventOnFilter,l=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,h=(u||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,p=a.filter;if(zp(n),!Te&&!(/mousedown|pointerdown/.test(l)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&ba&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=en(h,a.draggable,n,!1),!(h&&h.animated)&&Ds!==h)){if(Hi=Ur(h),Ia=Ur(h,a.draggable),typeof p=="function"){if(p.call(this,e,h,this)){ar({sortable:r,rootEl:c,name:"filter",targetEl:h,toEl:n,fromEl:n}),gr("filter",r,{evt:e}),o&&e.preventDefault();return}}else if(p&&(p=p.split(",").some(function(g){if(g=en(c,g.trim(),n,!1),g)return ar({sortable:r,rootEl:g,name:"filter",targetEl:h,fromEl:n,toEl:n}),gr("filter",r,{evt:e}),!0}),p)){o&&e.preventDefault();return}a.handle&&!en(c,a.handle,n,!1)||this._prepareDragStart(e,u,h)}}},_prepareDragStart:function(e,r,n){var a=this,o=a.el,l=a.options,u=o.ownerDocument,h;if(n&&!Te&&n.parentNode===o){var c=Dt(n);if(vt=o,Te=n,St=Te.parentNode,pi=Te.nextSibling,Ds=n,Is=l.group,$e.dragged=Te,gi={target:Te,clientX:(r||e).clientX,clientY:(r||e).clientY},du=gi.clientX-c.left,pu=gi.clientY-c.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Te.style["will-change"]="all",h=function(){if(gr("delayEnded",a,{evt:e}),$e.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!tu&&a.nativeDraggable&&(Te.draggable=!0),a._triggerDragStart(e,r),ar({sortable:a,name:"choose",originalEvent:e}),Ar(Te,l.chosenClass,!0)},l.ignore.split(",").forEach(function(p){su(Te,p.trim(),$l)}),et(u,"dragover",mi),et(u,"mousemove",mi),et(u,"touchmove",mi),l.supportPointer?(et(u,"pointerup",a._onDrop),!this.nativeDraggable&&et(u,"pointercancel",a._onDrop)):(et(u,"mouseup",a._onDrop),et(u,"touchend",a._onDrop),et(u,"touchcancel",a._onDrop)),tu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Te.draggable=!0),gr("delayStart",this,{evt:e}),l.delay&&(!l.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Fa||An))){if($e.eventCanceled){this._onDrop();return}l.supportPointer?(et(u,"pointerup",a._disableDelayedDrag),et(u,"pointercancel",a._disableDelayedDrag)):(et(u,"mouseup",a._disableDelayedDrag),et(u,"touchend",a._disableDelayedDrag),et(u,"touchcancel",a._disableDelayedDrag)),et(u,"mousemove",a._delayedDragTouchMoveHandler),et(u,"touchmove",a._delayedDragTouchMoveHandler),l.supportPointer&&et(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(h,l.delay)}else h()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Te&&$l(Te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._disableDelayedDrag),Ze(e,"touchend",this._disableDelayedDrag),Ze(e,"touchcancel",this._disableDelayedDrag),Ze(e,"pointerup",this._disableDelayedDrag),Ze(e,"pointercancel",this._disableDelayedDrag),Ze(e,"mousemove",this._delayedDragTouchMoveHandler),Ze(e,"touchmove",this._delayedDragTouchMoveHandler),Ze(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?et(document,"pointermove",this._onTouchMove):r?et(document,"touchmove",this._onTouchMove):et(document,"mousemove",this._onTouchMove):(et(Te,"dragend",this),et(vt,"dragstart",this._onDragStart));try{document.selection?Us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(Vi=!1,vt&&Te){gr("dragStarted",this,{evt:r}),this.nativeDraggable&&et(document,"dragover",Pp);var n=this.options;!e&&Ar(Te,n.dragClass,!1),Ar(Te,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),ar({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(tn){this._lastX=tn.clientX,this._lastY=tn.clientY,_u();for(var e=document.elementFromPoint(tn.clientX,tn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(tn.clientX,tn.clientY),e!==r);)r=e;if(Te.parentNode[pr]._isOutsideThisEl(e),r)do{if(r[pr]){var n=void 0;if(n=r[pr]._onDragOver({clientX:tn.clientX,clientY:tn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=iu(r));wu()}},_onTouchMove:function(e){if(gi){var r=this.options,n=r.fallbackTolerance,a=r.fallbackOffset,o=e.touches?e.touches[0]:e,l=We&&$i(We,!0),u=We&&l&&l.a,h=We&&l&&l.d,c=Bs&&er&&lu(er),p=(o.clientX-gi.clientX+a.x)/(u||1)+(c?c[0]-Ml[0]:0)/(u||1),g=(o.clientY-gi.clientY+a.y)/(h||1)+(c?c[1]-Ml[1]:0)/(h||1);if(!$e.active&&!Vi){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(We){l?(l.e+=p-(kl||0),l.f+=g-(Pl||0)):l={a:1,b:0,c:0,d:1,e:p,f:g};var x="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");Be(We,"webkitTransform",x),Be(We,"mozTransform",x),Be(We,"msTransform",x),Be(We,"transform",x),kl=p,Pl=g,tn=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!We){var e=this.options.fallbackOnBody?document.body:vt,r=Dt(Te,!0,Bs,!0,e),n=this.options;if(Bs){for(er=e;Be(er,"position")==="static"&&Be(er,"transform")==="none"&&er!==document;)er=er.parentNode;er!==document.body&&er!==document.documentElement?(er===document&&(er=gn()),r.top+=er.scrollTop,r.left+=er.scrollLeft):er=gn(),Ml=lu(er)}We=Te.cloneNode(!0),Ar(We,n.ghostClass,!1),Ar(We,n.fallbackClass,!0),Ar(We,n.dragClass,!0),Be(We,"transition",""),Be(We,"transform",""),Be(We,"box-sizing","border-box"),Be(We,"margin",0),Be(We,"top",r.top),Be(We,"left",r.left),Be(We,"width",r.width),Be(We,"height",r.height),Be(We,"opacity","0.8"),Be(We,"position",Bs?"absolute":"fixed"),Be(We,"zIndex","100000"),Be(We,"pointerEvents","none"),$e.ghost=We,e.appendChild(We),Be(We,"transform-origin",du/parseInt(We.style.width)*100+"% "+pu/parseInt(We.style.height)*100+"%")}},_onDragStart:function(e,r){var n=this,a=e.dataTransfer,o=n.options;if(gr("dragStart",this,{evt:e}),$e.eventCanceled){this._onDrop();return}gr("setupClone",this),$e.eventCanceled||(Tt=cu(Te),Tt.removeAttribute("id"),Tt.draggable=!1,Tt.style["will-change"]="",this._hideClone(),Ar(Tt,this.options.chosenClass,!1),$e.clone=Tt),n.cloneId=Us(function(){gr("clone",n),!$e.eventCanceled&&(n.options.removeCloneOnHide||vt.insertBefore(Tt,Te),n._hideClone(),ar({sortable:n,name:"clone"}))}),!r&&Ar(Te,o.dragClass,!0),r?(Rs=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ze(document,"mouseup",n._onDrop),Ze(document,"touchend",n._onDrop),Ze(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,Te)),et(document,"drop",n),Be(Te,"transform","translateZ(0)")),Vi=!0,n._dragStartId=Us(n._dragStarted.bind(n,r,e)),et(document,"selectstart",n),Ra=!0,window.getSelection().removeAllRanges(),ba&&Be(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,n=e.target,a,o,l,u=this.options,h=u.group,c=$e.active,p=Is===h,g=u.sort,x=Gt||c,_,y=this,v=!1;if(Bl)return;function A(de,Ie){gr(de,y,pn({evt:e,isOwner:p,axis:_?"vertical":"horizontal",revert:l,dragRect:a,targetRect:o,canSort:g,fromSortable:x,target:n,completed:B,onMove:function(Ne,I){return $s(vt,r,Te,a,Ne,Dt(Ne),e,I)},changed:L},Ie))}function M(){A("dragOverAnimationCapture"),y.captureAnimationState(),y!==x&&x.captureAnimationState()}function B(de){return A("dragOverCompleted",{insertion:de}),de&&(p?c._hideClone():c._showClone(y),y!==x&&(Ar(Te,Gt?Gt.options.ghostClass:c.options.ghostClass,!1),Ar(Te,u.ghostClass,!0)),Gt!==y&&y!==$e.active?Gt=y:y===$e.active&&Gt&&(Gt=null),x===y&&(y._ignoreWhileAnimating=n),y.animateAll(function(){A("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==x&&(x.animateAll(),x._ignoreWhileAnimating=null)),(n===Te&&!Te.animated||n===r&&!n.animated)&&(zi=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(Te.parentNode[pr]._isOutsideThisEl(e.target),!de&&mi(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function L(){Cr=Ur(Te),Xn=Ur(Te,u.draggable),ar({sortable:y,name:"change",toEl:r,newIndex:Cr,newDraggableIndex:Xn,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=en(n,u.draggable,r,!0),A("dragOver"),$e.eventCanceled)return v;if(Te.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||y._ignoreWhileAnimating===n)return B(!1);if(Rs=!1,c&&!u.disabled&&(p?g||(l=St!==vt):Gt===this||(this.lastPutMode=Is.checkPull(this,c,Te,e))&&h.checkPut(this,c,Te,e))){if(_=this._getDirection(e,n)==="vertical",a=Dt(Te),A("dragOverValid"),$e.eventCanceled)return v;if(l)return St=vt,M(),this._hideClone(),A("revert"),$e.eventCanceled||(pi?vt.insertBefore(Te,pi):vt.appendChild(Te)),B(!0);var X=Rl(r,u.draggable);if(!X||Up(e,_,this)&&!X.animated){if(X===Te)return B(!1);if(X&&r===e.target&&(n=X),n&&(o=Dt(n)),$s(vt,r,Te,a,n,o,e,!!n)!==!1)return M(),X&&X.nextSibling?r.insertBefore(Te,X.nextSibling):r.appendChild(Te),St=r,L(),B(!0)}else if(X&&$p(e,_,this)){var se=Ui(r,0,u,!0);if(se===Te)return B(!1);if(n=se,o=Dt(n),$s(vt,r,Te,a,n,o,e,!1)!==!1)return M(),r.insertBefore(Te,se),St=r,L(),B(!0)}else if(n.parentNode===r){o=Dt(n);var ce=0,U,te=Te.parentNode!==r,H=!Np(Te.animated&&Te.toRect||a,n.animated&&n.toRect||o,_),Z=_?"top":"left",q=ou(n,"top","top")||ou(Te,"top","top"),le=q?q.scrollTop:void 0;zi!==n&&(U=o[Z],Na=!1,Ns=!H&&u.invertSwap||te),ce=Wp(e,n,o,_,H?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,Ns,zi===n);var _e;if(ce!==0){var we=Ur(Te);do we-=ce,_e=St.children[we];while(_e&&(Be(_e,"display")==="none"||_e===We))}if(ce===0||_e===n)return B(!1);zi=n,La=ce;var ne=n.nextElementSibling,ue=!1;ue=ce===1;var me=$s(vt,r,Te,a,n,o,e,ue);if(me!==!1)return(me===1||me===-1)&&(ue=me===1),Bl=!0,setTimeout(Bp,30),M(),ue&&!ne?r.appendChild(Te):n.parentNode.insertBefore(Te,ue?ne:n),q&&uu(q,0,le-q.scrollTop),St=Te.parentNode,U!==void 0&&!Ns&&(ks=Math.abs(U-Dt(n)[Z])),L(),B(!0)}if(r.contains(Te))return B(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ze(document,"mousemove",this._onTouchMove),Ze(document,"touchmove",this._onTouchMove),Ze(document,"pointermove",this._onTouchMove),Ze(document,"dragover",mi),Ze(document,"mousemove",mi),Ze(document,"touchmove",mi)},_offUpEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._onDrop),Ze(e,"touchend",this._onDrop),Ze(e,"pointerup",this._onDrop),Ze(e,"pointercancel",this._onDrop),Ze(e,"touchcancel",this._onDrop),Ze(document,"selectstart",this)},_onDrop:function(e){var r=this.el,n=this.options;if(Cr=Ur(Te),Xn=Ur(Te,n.draggable),gr("drop",this,{evt:e}),St=Te&&Te.parentNode,Cr=Ur(Te),Xn=Ur(Te,n.draggable),$e.eventCanceled){this._nulling();return}Vi=!1,Ns=!1,Na=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ul(this.cloneId),Ul(this._dragStartId),this.nativeDraggable&&(Ze(document,"drop",this),Ze(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ba&&Be(document.body,"user-select",""),Be(Te,"transform",""),e&&(Ra&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),We&&We.parentNode&&We.parentNode.removeChild(We),(vt===St||Gt&&Gt.lastPutMode!=="clone")&&Tt&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Te&&(this.nativeDraggable&&Ze(Te,"dragend",this),$l(Te),Te.style["will-change"]="",Ra&&!Vi&&Ar(Te,Gt?Gt.options.ghostClass:this.options.ghostClass,!1),Ar(Te,this.options.chosenClass,!1),ar({sortable:this,name:"unchoose",toEl:St,newIndex:null,newDraggableIndex:null,originalEvent:e}),vt!==St?(Cr>=0&&(ar({rootEl:St,name:"add",toEl:St,fromEl:vt,originalEvent:e}),ar({sortable:this,name:"remove",toEl:St,originalEvent:e}),ar({rootEl:St,name:"sort",toEl:St,fromEl:vt,originalEvent:e}),ar({sortable:this,name:"sort",toEl:St,originalEvent:e})),Gt&&Gt.save()):Cr!==Hi&&Cr>=0&&(ar({sortable:this,name:"update",toEl:St,originalEvent:e}),ar({sortable:this,name:"sort",toEl:St,originalEvent:e})),$e.active&&((Cr==null||Cr===-1)&&(Cr=Hi,Xn=Ia),ar({sortable:this,name:"end",toEl:St,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){gr("nulling",this),vt=Te=St=We=pi=Tt=Ds=Gn=gi=tn=Ra=Cr=Xn=Hi=Ia=zi=La=Gt=Is=$e.dragged=$e.ghost=$e.clone=$e.active=null,Ps.forEach(function(e){e.checked=!0}),Ps.length=kl=Pl=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Te&&(this._onDragOver(e),Mp(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],r,n=this.el.children,a=0,o=n.length,l=this.options;a<o;a++)r=n[a],en(r,l.draggable,this.el,!1)&&e.push(r.getAttribute(l.dataIdAttr)||Vp(r));return e},sort:function(e,r){var n={},a=this.el;this.toArray().forEach(function(o,l){var u=a.children[l];en(u,this.options.draggable,a,!1)&&(n[o]=u)},this),r&&this.captureAnimationState(),e.forEach(function(o){n[o]&&(a.removeChild(n[o]),a.appendChild(n[o]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return en(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var n=this.options;if(r===void 0)return n[e];var a=Da.modifyOption(this,e,r);typeof a<"u"?n[e]=a:n[e]=r,e==="group"&&vu(n)},destroy:function(){gr("destroy",this);var e=this.el;e[pr]=null,Ze(e,"mousedown",this._onTapStart),Ze(e,"touchstart",this._onTapStart),Ze(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ze(e,"dragover",this),Ze(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ls.splice(Ls.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Gn){if(gr("hideClone",this),$e.eventCanceled)return;Be(Tt,"display","none"),this.options.removeCloneOnHide&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Gn=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Gn){if(gr("showClone",this),$e.eventCanceled)return;Te.parentNode==vt&&!this.options.group.revertClone?vt.insertBefore(Tt,Te):pi?vt.insertBefore(Tt,pi):vt.appendChild(Tt),this.options.group.revertClone&&this.animate(Te,Tt),Be(Tt,"display",""),Gn=!1}}};function Mp(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $s(t,e,r,n,a,o,l,u){var h,c=t[pr],p=c.options.onMove,g;return window.CustomEvent&&!An&&!Fa?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=e,h.from=t,h.dragged=r,h.draggedRect=n,h.related=a||e,h.relatedRect=o||Dt(e),h.willInsertAfter=u,h.originalEvent=l,t.dispatchEvent(h),p&&(g=p.call(c,h,l)),g}function $l(t){t.draggable=!1}function Bp(){Bl=!1}function $p(t,e,r){var n=Dt(Ui(r.el,0,r.options,!0)),a=hu(r.el,r.options,We),o=10;return e?t.clientX<a.left-o||t.clientY<n.top&&t.clientX<n.right:t.clientY<a.top-o||t.clientY<n.bottom&&t.clientX<n.left}function Up(t,e,r){var n=Dt(Rl(r.el,r.options.draggable)),a=hu(r.el,r.options,We),o=10;return e?t.clientX>a.right+o||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>a.bottom+o||t.clientX>n.right&&t.clientY>n.top}function Wp(t,e,r,n,a,o,l,u){var h=n?t.clientY:t.clientX,c=n?r.height:r.width,p=n?r.top:r.left,g=n?r.bottom:r.right,x=!1;if(!l){if(u&&ks<c*a){if(!Na&&(La===1?h>p+c*o/2:h<g-c*o/2)&&(Na=!0),Na)x=!0;else if(La===1?h<p+ks:h>g-ks)return-La}else if(h>p+c*(1-a)/2&&h<g-c*(1-a)/2)return Hp(e)}return x=x||l,x&&(h<p+c*o/2||h>g-c*o/2)?h>p+c/2?1:-1:0}function Hp(t){return Ur(Te)<Ur(t)?1:-1}function Vp(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,r=e.length,n=0;r--;)n+=e.charCodeAt(r);return n.toString(36)}function zp(t){Ps.length=0;for(var e=t.getElementsByTagName("input"),r=e.length;r--;){var n=e[r];n.checked&&Ps.push(n)}}function Us(t){return setTimeout(t,0)}function Ul(t){return clearTimeout(t)}Ms&&et(document,"touchmove",function(t){($e.active||Vi)&&t.cancelable&&t.preventDefault()}),$e.utils={on:et,off:Ze,css:Be,find:su,is:function(e,r){return!!en(e,r,e,!1)},extend:Cp,throttle:fu,closest:en,toggleClass:Ar,clone:cu,index:Ur,nextTick:Us,cancelNextTick:Ul,detectDirection:xu,getChild:Ui,expando:pr},$e.get=function(t){return t[pr]},$e.mount=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&($e.utils=pn(pn({},$e.utils),n.utils)),Da.mount(n)})},$e.create=function(t,e){return new $e(t,e)},$e.version=Sp;var It=[],ka,Wl,Hl=!1,Vl,zl,Ws,Pa;function Gp(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):this.options.supportPointer?et(document,"pointermove",this._handleFallbackAutoScroll):n.touches?et(document,"touchmove",this._handleFallbackAutoScroll):et(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Ze(document,"dragover",this._handleAutoScroll):(Ze(document,"pointermove",this._handleFallbackAutoScroll),Ze(document,"touchmove",this._handleFallbackAutoScroll),Ze(document,"mousemove",this._handleFallbackAutoScroll)),Tu(),Hs(),Fp()},nulling:function(){Ws=Wl=ka=Hl=Pa=Vl=zl=null,It.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var a=this,o=(r.touches?r.touches[0]:r).clientX,l=(r.touches?r.touches[0]:r).clientY,u=document.elementFromPoint(o,l);if(Ws=r,n||this.options.forceAutoScrollFallback||Fa||An||ba){Gl(r,this.options,u,n);var h=zn(u,!0);Hl&&(!Pa||o!==Vl||l!==zl)&&(Pa&&Tu(),Pa=setInterval(function(){var c=zn(document.elementFromPoint(o,l),!0);c!==h&&(h=c,Hs()),Gl(r,a.options,c,n)},10),Vl=o,zl=l)}else{if(!this.options.bubbleScroll||zn(u,!0)===gn()){Hs();return}Gl(r,this.options,zn(u,!1),!1)}}},yn(t,{pluginName:"scroll",initializeByDefault:!0})}function Hs(){It.forEach(function(t){clearInterval(t.pid)}),It=[]}function Tu(){clearInterval(Pa)}var Gl=fu(function(t,e,r,n){if(!!e.scroll){var a=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,u=e.scrollSpeed,h=gn(),c=!1,p;Wl!==r&&(Wl=r,Hs(),ka=e.scroll,p=e.scrollFn,ka===!0&&(ka=zn(r,!0)));var g=0,x=ka;do{var _=x,y=Dt(_),v=y.top,A=y.bottom,M=y.left,B=y.right,L=y.width,X=y.height,se=void 0,ce=void 0,U=_.scrollWidth,te=_.scrollHeight,H=Be(_),Z=_.scrollLeft,q=_.scrollTop;_===h?(se=L<U&&(H.overflowX==="auto"||H.overflowX==="scroll"||H.overflowX==="visible"),ce=X<te&&(H.overflowY==="auto"||H.overflowY==="scroll"||H.overflowY==="visible")):(se=L<U&&(H.overflowX==="auto"||H.overflowX==="scroll"),ce=X<te&&(H.overflowY==="auto"||H.overflowY==="scroll"));var le=se&&(Math.abs(B-a)<=l&&Z+L<U)-(Math.abs(M-a)<=l&&!!Z),_e=ce&&(Math.abs(A-o)<=l&&q+X<te)-(Math.abs(v-o)<=l&&!!q);if(!It[g])for(var we=0;we<=g;we++)It[we]||(It[we]={});(It[g].vx!=le||It[g].vy!=_e||It[g].el!==_)&&(It[g].el=_,It[g].vx=le,It[g].vy=_e,clearInterval(It[g].pid),(le!=0||_e!=0)&&(c=!0,It[g].pid=setInterval(function(){n&&this.layer===0&&$e.active._onTouchMove(Ws);var ne=It[this.layer].vy?It[this.layer].vy*u:0,ue=It[this.layer].vx?It[this.layer].vx*u:0;typeof p=="function"&&p.call($e.dragged.parentNode[pr],ue,ne,t,Ws,It[this.layer].el)!=="continue"||uu(It[this.layer].el,ue,ne)}.bind({layer:g}),24))),g++}while(e.bubbleScroll&&x!==h&&(x=zn(x,!1)));Hl=c}},30),Eu=function(e){var r=e.originalEvent,n=e.putSortable,a=e.dragEl,o=e.activeSortable,l=e.dispatchSortableEvent,u=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(!!r){var c=n||o;u();var p=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,g=document.elementFromPoint(p.clientX,p.clientY);h(),c&&!c.el.contains(g)&&(l("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function Xl(){}Xl.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Ui(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(r,a):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:Eu},yn(Xl,{pluginName:"revertOnSpill"});function Kl(){}Kl.prototype={onSpill:function(e){var r=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),a.animateAll()},drop:Eu},yn(Kl,{pluginName:"removeOnSpill"}),$e.mount(new Gp),$e.mount(Kl,Xl);const Yl={zh:{common:{selectAll:"\u5168\u9009",start:"\u5F00\u59CB",end:"\u7ED3\u675F"},Form:{input:"\u8BF7\u8F93\u5165",select:"\u8BF7\u9009\u62E9"},Dialog:{cancel:"\u53D6\u6D88",confirm:"\u786E\u5B9A"},Table:{export:"\u6570\u636E\u5BFC\u51FA",config:"\u8868\u5934\u8BBE\u7F6E",showCcolumns:"\u663E\u793A\u5217",allColumns:"\u5168\u90E8\u5217",save:"\u4FDD\u5B58\u914D\u7F6E",operation:"\u64CD\u4F5C"},Pagelist:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},Pagination:{total:"\u5171 {0} \u6761",selected:"\u9009\u4E2D {0} \u6761"},DatePicker:{start:"\u5F00\u59CB\u65F6\u95F4",end:"\u7ED3\u675F\u65F6\u95F4",aWeek:"\u6700\u8FD1\u4E00\u5468",aMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",threeMonth:"\u6700\u8FD1\u4E09\u4E2A\u6708"},Upload:{noText:"\u6682\u65E0",uploadButtonText:"\u4E0A\u4F20",uploadFail:"\u4E0A\u4F20\u5931\u8D25: ",uploadRule:"\u6700\u591A\u4E0A\u4F20{0}\u4E2A\u6587\u4EF6\uFF0C\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7{1}M"},Range:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C"}},en:{common:{selectAll:"Select All",start:" Start",end:" End"},Form:{input:"Please enter ",select:"Please select "},Dialog:{cancel:"Cancel",confirm:"Confirm"},Table:{export:"Export Data",config:"Column Configuration",showCcolumns:"Show Columns",allColumns:"All Columns",save:"Save Configuration",operation:"Operation"},Pagelist:{search:"Search",reset:"Reset",collapse:"Fold",expand:"Expand"},Pagination:{total:"Total {0}",selected:"Selected {0}"},DatePicker:{start:"Start Time",end:"End Time",aWeek:"Last Week",aMonth:"Last Month",threeMonth:"Last Three Months"},Upload:{noText:"None",uploadButtonText:"Upload",uploadFail:"Upload failed: ",uploadRule:"Upload up to {0} files, each file no larger than {1} MB"},Range:{min:"Minimum",max:"Maximum"}},vi:{common:{selectAll:"Ch\u1ECDn t\u1EA5t c\u1EA3",start:" B\u1EAFt \u0111\u1EA7u",end:" K\u1EBFt th\xFAc"},Form:{input:"Vui l\xF2ng nh\u1EADp ",select:"Vui l\xF2ng ch\u1ECDn "},Dialog:{cancel:"H\u1EE7y",confirm:"X\xE1c nh\u1EADn"},Table:{export:"Xu\u1EA5t d\u1EEF li\u1EC7u",config:"C\xE0i \u0111\u1EB7t ti\xEAu \u0111\u1EC1 b\u1EA3ng",showCcolumns:"C\u1ED9t hi\u1EC3n th\u1ECB",allColumns:"T\u1EA5t c\u1EA3 c\xE1c c\u1ED9t",save:"L\u01B0u c\u1EA5u h\xECnh",operation:"Thao t\xE1c"},Pagelist:{search:"T\xECm ki\u1EBFm",reset:"\u0110\u1EB7t l\u1EA1i",collapse:"Thu g\u1ECDn",expand:"M\u1EDF r\u1ED9ng"},Pagination:{total:"T\u1ED5ng {0} m\u1EE5c",selected:"\u0110\xE3 ch\u1ECDn {0} m\u1EE5c"},DatePicker:{start:"Th\u1EDDi gian b\u1EAFt \u0111\u1EA7u",end:"Th\u1EDDi gian k\u1EBFt th\xFAc",aWeek:"Tu\u1EA7n g\u1EA7n \u0111\xE2y",aMonth:"Th\xE1ng g\u1EA7n \u0111\xE2y",threeMonth:"Ba th\xE1ng g\u1EA7n \u0111\xE2y"},Upload:{noText:"Ch\u01B0a c\xF3",uploadButtonText:"T\u1EA3i l\xEAn",uploadFail:"T\u1EA3i l\xEAn th\u1EA5t b\u1EA1i: ",uploadRule:"T\u1ED1i \u0111a t\u1EA3i l\xEAn {0} t\u1EC7p, m\u1ED7i t\u1EC7p kh\xF4ng qu\xE1 {1} MB"},Range:{min:"T\u1ED1i thi\u1EC3u",max:"T\u1ED1i \u0111a"}}};let jl,yu="zh";function Xp(t,e){if(jl)return jl(t,e);const r=t.split(".").reduce((n,a)=>n[a],Yl[yu]);return r!=null?r:t}function Kp(t,e){yu=e,typeof t=="function"&&(jl=t)}const ql={computed:{$t(){return(t,e)=>Xp(t,e)}},methods:{translate(t,e){return this.$t?this.$t(t,e):t}}},pb="";function $t(t,e,r,n,a,o,l,u){var h=typeof t=="function"?t.options:t;e&&(h.render=e,h.staticRenderFns=r,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o);var c;if(l?(c=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__<"u"&&(x=__VUE_SSR_CONTEXT__),a&&a.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(l)},h._ssrRegister=c):a&&(c=u?function(){a.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(_,y){return c.call(y),p(_,y)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,c):[c]}return{exports:t,options:h}}const Yp={name:"TableColumnsManager",mixins:[ql],props:{visible:{type:Boolean,required:!1},tableId:{type:String,required:!0},serverColumns:{type:Array,default:()=>[]},localColumns:{type:Array,default:()=>[]}},data:()=>({isAllSelected:!1,selectedColumnLabels:[],isIndeterminate:!0,visibleColumns:[],appendToBody:!0}),computed:{blacklistColumns(){return this.localColumns.filter(t=>t.fixed==="right"||t.label===this.$t("Table.operation"))},operableColumns(){return this.localColumns.filter(t=>!this.blacklistColumns.includes(t))},localVisible:{get(){return this.visible&&(this.selectedColumnLabels=this.serverColumns.filter(t=>{var e;return((e=this.localColumns)==null?void 0:e.some(r=>r.label===t.label))&&t.label!==this.$t("Table.operation")}).map(t=>t.label)),this.visible},set(t){this.$emit("update:visible",t)}},size(){return this.globalSize||"mini"}},watch:{localVisible:{handler(t){t&&this.$nextTick(()=>{this.initSortable()})},immediate:!0},selectedColumnLabels:{handler(t){console.log("selectedColumnLabels changed:",t),this.visibleColumns=t.filter(Boolean).map(n=>this.operableColumns.find(a=>a.label===n)).filter(Boolean);const e=this.operableColumns.length,r=t.length;this.isAllSelected=r===e&&e!==0,this.isIndeterminate=r>0&&r<e},immediate:!0}},created(){this.appendToBody=!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.appendToBody=!document.fullscreenElement})},methods:{handleTagClose(t){this.selectedColumnLabels=this.selectedColumnLabels.filter(e=>e!==t.label)},handleCheckAllChange(t){this.selectedColumnLabels=t?this.operableColumns.map(e=>e.label):[],this.isIndeterminate=!1},closeDialog(){this.localVisible=!1},saveColumns(){const t=[...this.visibleColumns,...this.blacklistColumns];this.$emit("columns-updated",t),this.closeDialog()},initSortable(){const t=this.$refs.tagsContainer;this.sortable=$e.create(t,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:({oldIndex:e,newIndex:r})=>{const n=[...this.visibleColumns],[a]=n.splice(e,1);n.splice(r,0,a),this.selectedColumnLabels=n.map(o=>o.label)}})}}};var jp=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"table-columns-manager",attrs:{visible:e.localVisible,title:e.$t("Table.config"),width:"60%","append-to-body":e.appendToBody,"modal-append-to-body":!1,"destroy-on-close":""},on:{"update:visible":function(n){e.localVisible=n}}},[r("div",{staticClass:"column-title"},[e._v(e._s(e.$t("Table.showCcolumns")))]),r("div",{ref:"tagsContainer",staticClass:"tags-wrapper"},[e._l(e.visibleColumns,function(n){return[n.label?r("el-tag",{key:n.label,staticClass:"draggable-tag",attrs:{closable:""},on:{close:function(a){return e.handleTagClose(n)}}},[e._v(" "+e._s(n.label)+" ")]):e._e()]})],2),r("div",{staticClass:"column-title"},[e._v(e._s(e.$t("Table.allColumns")))]),r("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.isAllSelected,callback:function(n){e.isAllSelected=n},expression:"isAllSelected"}},[e._v(e._s(e.$t("common.selectAll")))]),r("el-checkbox-group",{model:{value:e.selectedColumnLabels,callback:function(n){e.selectedColumnLabels=n},expression:"selectedColumnLabels"}},[e._l(e.operableColumns,function(n,a){return[n.label?r("el-checkbox",{key:n.label,attrs:{label:n.label}},[e._v(e._s(n.label))]):e._e()]})],2),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"footer-button",attrs:{size:e.size,type:"primary"},on:{click:e.saveColumns}},[e._v(e._s(e.$t("Table.save")))]),r("el-button",{staticClass:"footer-button",attrs:{size:e.size},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Dialog.cancel")))])],1)],1)},qp=[],Jp=$t(Yp,jp,qp,!1,null,null,null,null);const Zp=Jp.exports;var Ma={exports:{}};/**
12
+ */function eu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function pn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eu(Object(r),!0).forEach(function(n){Tp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bs(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bs=function(e){return typeof e}:bs=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(t)}function Tp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yn(){return yn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yn.apply(this,arguments)}function Ep(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o<n.length;o++)a=n[o],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function yp(t,e){if(t==null)return{};var r=Ep(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}var Sp="1.15.6";function Sn(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var An=Sn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fa=Sn(/Edge/i),tu=Sn(/firefox/i),ba=Sn(/safari/i)&&!Sn(/chrome/i)&&!Sn(/android/i),Il=Sn(/iP(ad|od|hone)/i),ru=Sn(/chrome/i)&&Sn(/android/i),nu={capture:!1,passive:!1};function et(t,e,r){t.addEventListener(e,r,!An&&nu)}function Ze(t,e,r){t.removeEventListener(e,r,!An&&nu)}function Os(t,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function iu(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function en(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&Os(t,e):Os(t,e))||n&&t===r)return t;if(t===r)break}while(t=iu(t))}return null}var au=/\s+/g;function Ar(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(au," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(au," ")}}function Be(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function $i(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Be(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function su(t,e,r){if(t){var n=t.getElementsByTagName(e),a=0,o=n.length;if(r)for(;a<o;a++)r(n[a],a);return n}return[]}function gn(){var t=document.scrollingElement;return t||document.documentElement}function Dt(t,e,r,n,a){if(!(!t.getBoundingClientRect&&t!==window)){var o,l,u,h,c,p,g;if(t!==window&&t.parentNode&&t!==gn()?(o=t.getBoundingClientRect(),l=o.top,u=o.left,h=o.bottom,c=o.right,p=o.height,g=o.width):(l=0,u=0,h=window.innerHeight,c=window.innerWidth,p=window.innerHeight,g=window.innerWidth),(e||r)&&t!==window&&(a=a||t.parentNode,!An))do if(a&&a.getBoundingClientRect&&(Be(a,"transform")!=="none"||r&&Be(a,"position")!=="static")){var x=a.getBoundingClientRect();l-=x.top+parseInt(Be(a,"border-top-width")),u-=x.left+parseInt(Be(a,"border-left-width")),h=l+o.height,c=u+o.width;break}while(a=a.parentNode);if(n&&t!==window){var _=$i(a||t),y=_&&_.a,v=_&&_.d;_&&(l/=v,u/=y,g/=y,p/=v,h=l+p,c=u+g)}return{top:l,left:u,bottom:h,right:c,width:g,height:p}}}function ou(t,e,r){for(var n=zn(t,!0),a=Dt(t)[e];n;){var o=Dt(n)[r],l=void 0;if(r==="top"||r==="left"?l=a>=o:l=a<=o,!l)return n;if(n===gn())break;n=zn(n,!1)}return!1}function Ui(t,e,r,n){for(var a=0,o=0,l=t.children;o<l.length;){if(l[o].style.display!=="none"&&l[o]!==$e.ghost&&(n||l[o]!==$e.dragged)&&en(l[o],r.draggable,t,!1)){if(a===e)return l[o];a++}o++}return null}function Rl(t,e){for(var r=t.lastElementChild;r&&(r===$e.ghost||Be(r,"display")==="none"||e&&!Os(r,e));)r=r.previousElementSibling;return r||null}function Ur(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==$e.clone&&(!e||Os(t,e))&&r++;return r}function lu(t){var e=0,r=0,n=gn();if(t)do{var a=$i(t),o=a.a,l=a.d;e+=t.scrollLeft*o,r+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,r]}function Ap(t,e){for(var r in t)if(!!t.hasOwnProperty(r)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[r][n])return Number(r)}return-1}function zn(t,e){if(!t||!t.getBoundingClientRect)return gn();var r=t,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=Be(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return gn();if(n||e)return r;n=!0}}while(r=r.parentNode);return gn()}function Cp(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ll(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Oa;function fu(t,e){return function(){if(!Oa){var r=arguments,n=this;r.length===1?t.call(n,r[0]):t.apply(n,r),Oa=setTimeout(function(){Oa=void 0},e)}}}function Fp(){clearTimeout(Oa),Oa=void 0}function uu(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function cu(t){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function hu(t,e,r){var n={};return Array.from(t.children).forEach(function(a){var o,l,u,h;if(!(!en(a,e.draggable,t,!1)||a.animated||a===r)){var c=Dt(a);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,c.left),n.top=Math.min((l=n.top)!==null&&l!==void 0?l:1/0,c.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,c.right),n.bottom=Math.max((h=n.bottom)!==null&&h!==void 0?h:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pr="Sortable"+new Date().getTime();function bp(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(Be(a,"display")==="none"||a===$e.ghost)){t.push({target:a,rect:Dt(a)});var o=pn({},t[t.length-1].rect);if(a.thisAnimationDuration){var l=$i(a,!0);l&&(o.top-=l.f,o.left-=l.e)}a.fromRect=o}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice(Ap(t,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,l=0;t.forEach(function(u){var h=0,c=u.target,p=c.fromRect,g=Dt(c),x=c.prevFromRect,_=c.prevToRect,y=u.rect,v=$i(c,!0);v&&(g.top-=v.f,g.left-=v.e),c.toRect=g,c.thisAnimationDuration&&Ll(x,g)&&!Ll(p,g)&&(y.top-g.top)/(y.left-g.left)===(p.top-g.top)/(p.left-g.left)&&(h=Dp(y,x,_,a.options)),Ll(g,p)||(c.prevFromRect=p,c.prevToRect=g,h||(h=a.options.animation),a.animate(c,y,g,h)),h&&(o=!0,l=Math.max(l,h),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},h),c.thisAnimationDuration=h)}),clearTimeout(e),o?e=setTimeout(function(){typeof n=="function"&&n()},l):typeof n=="function"&&n(),t=[]},animate:function(n,a,o,l){if(l){Be(n,"transition",""),Be(n,"transform","");var u=$i(this.el),h=u&&u.a,c=u&&u.d,p=(a.left-o.left)/(h||1),g=(a.top-o.top)/(c||1);n.animatingX=!!p,n.animatingY=!!g,Be(n,"transform","translate3d("+p+"px,"+g+"px,0)"),this.forRepaintDummy=Op(n),Be(n,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Be(n,"transition",""),Be(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},l)}}}}function Op(t){return t.offsetWidth}function Dp(t,e,r,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*n.animation}var Wi=[],Nl={initializeByDefault:!0},Da={mount:function(e){for(var r in Nl)Nl.hasOwnProperty(r)&&!(r in e)&&(e[r]=Nl[r]);Wi.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Wi.push(e)},pluginEvent:function(e,r,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=e+"Global";Wi.forEach(function(l){!r[l.pluginName]||(r[l.pluginName][o]&&r[l.pluginName][o](pn({sortable:r},n)),r.options[l.pluginName]&&r[l.pluginName][e]&&r[l.pluginName][e](pn({sortable:r},n)))})},initializePlugins:function(e,r,n,a){Wi.forEach(function(u){var h=u.pluginName;if(!(!e.options[h]&&!u.initializeByDefault)){var c=new u(e,r,e.options);c.sortable=e,c.options=e.options,e[h]=c,yn(n,c.defaults)}});for(var o in e.options)if(!!e.options.hasOwnProperty(o)){var l=this.modifyOption(e,o,e.options[o]);typeof l<"u"&&(e.options[o]=l)}},getEventProperties:function(e,r){var n={};return Wi.forEach(function(a){typeof a.eventProperties=="function"&&yn(n,a.eventProperties.call(r[a.pluginName],e))}),n},modifyOption:function(e,r,n){var a;return Wi.forEach(function(o){!e[o.pluginName]||o.optionListeners&&typeof o.optionListeners[r]=="function"&&(a=o.optionListeners[r].call(e[o.pluginName],n))}),a}};function Ip(t){var e=t.sortable,r=t.rootEl,n=t.name,a=t.targetEl,o=t.cloneEl,l=t.toEl,u=t.fromEl,h=t.oldIndex,c=t.newIndex,p=t.oldDraggableIndex,g=t.newDraggableIndex,x=t.originalEvent,_=t.putSortable,y=t.extraEventProperties;if(e=e||r&&r[pr],!!e){var v,A=e.options,M="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!An&&!Fa?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=l||r,v.from=u||r,v.item=a||r,v.clone=o,v.oldIndex=h,v.newIndex=c,v.oldDraggableIndex=p,v.newDraggableIndex=g,v.originalEvent=x,v.pullMode=_?_.lastPutMode:void 0;var B=pn(pn({},y),Da.getEventProperties(n,e));for(var L in B)v[L]=B[L];r&&r.dispatchEvent(v),A[M]&&A[M].call(e,v)}}var Rp=["evt"],gr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,o=yp(n,Rp);Da.pluginEvent.bind($e)(e,r,pn({dragEl:Te,parentEl:St,ghostEl:We,rootEl:vt,nextEl:pi,lastDownEl:Ds,cloneEl:Tt,cloneHidden:Gn,dragStarted:Ra,putSortable:Gt,activeSortable:$e.active,originalEvent:a,oldIndex:Hi,oldDraggableIndex:Ia,newIndex:Cr,newDraggableIndex:Xn,hideGhostForTarget:_u,unhideGhostForTarget:wu,cloneNowHidden:function(){Gn=!0},cloneNowShown:function(){Gn=!1},dispatchSortableEvent:function(u){ar({sortable:r,name:u,originalEvent:a})}},o))};function ar(t){Ip(pn({putSortable:Gt,cloneEl:Tt,targetEl:Te,rootEl:vt,oldIndex:Hi,oldDraggableIndex:Ia,newIndex:Cr,newDraggableIndex:Xn},t))}var Te,St,We,vt,pi,Ds,Tt,Gn,Hi,Cr,Ia,Xn,Is,Gt,Vi=!1,Rs=!1,Ls=[],gi,tn,kl,Pl,du,pu,Ra,zi,La,Na=!1,Ns=!1,ks,er,Ml=[],Bl=!1,Ps=[],Ms=typeof document<"u",Bs=Il,gu=Fa||An?"cssFloat":"float",Lp=Ms&&!ru&&!Il&&"draggable"in document.createElement("div"),mu=function(){if(!!Ms){if(An)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),xu=function(e,r){var n=Be(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Ui(e,0,r),l=Ui(e,1,r),u=o&&Be(o),h=l&&Be(l),c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Dt(o).width,p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Dt(l).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return l&&(h.clear==="both"||h.clear===g)?"vertical":"horizontal"}return o&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||c>=a&&n[gu]==="none"||l&&n[gu]==="none"&&c+p>a)?"vertical":"horizontal"},Np=function(e,r,n){var a=n?e.left:e.top,o=n?e.right:e.bottom,l=n?e.width:e.height,u=n?r.left:r.top,h=n?r.right:r.bottom,c=n?r.width:r.height;return a===u||o===h||a+l/2===u+c/2},kp=function(e,r){var n;return Ls.some(function(a){var o=a[pr].options.emptyInsertThreshold;if(!(!o||Rl(a))){var l=Dt(a),u=e>=l.left-o&&e<=l.right+o,h=r>=l.top-o&&r<=l.bottom+o;if(u&&h)return n=a}}),n},vu=function(e){function r(o,l){return function(u,h,c,p){var g=u.options.group.name&&h.options.group.name&&u.options.group.name===h.options.group.name;if(o==null&&(l||g))return!0;if(o==null||o===!1)return!1;if(l&&o==="clone")return o;if(typeof o=="function")return r(o(u,h,c,p),l)(u,h,c,p);var x=(l?u:h).options.group.name;return o===!0||typeof o=="string"&&o===x||o.join&&o.indexOf(x)>-1}}var n={},a=e.group;(!a||bs(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=r(a.pull,!0),n.checkPut=r(a.put),n.revertClone=a.revertClone,e.group=n},_u=function(){!mu&&We&&Be(We,"display","none")},wu=function(){!mu&&We&&Be(We,"display","")};Ms&&!ru&&document.addEventListener("click",function(t){if(Rs)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Rs=!1,!1},!0);var mi=function(e){if(Te){e=e.touches?e.touches[0]:e;var r=kp(e.clientX,e.clientY);if(r){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[pr]._onDragOver(n)}}},Pp=function(e){Te&&Te.parentNode[pr]._isOutsideThisEl(e.target)};function $e(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=yn({},e),t[pr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return xu(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,u){l.setData("Text",u.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:$e.supportPointer!==!1&&"PointerEvent"in window&&(!ba||Il),emptyInsertThreshold:5};Da.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);vu(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:Lp,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?et(t,"pointerdown",this._onTapStart):(et(t,"mousedown",this._onTapStart),et(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(et(t,"dragover",this),et(t,"dragenter",this)),Ls.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),yn(this,bp())}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(zi=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Te):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var r=this,n=this.el,a=this.options,o=a.preventOnFilter,l=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,h=(u||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,p=a.filter;if(zp(n),!Te&&!(/mousedown|pointerdown/.test(l)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&ba&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=en(h,a.draggable,n,!1),!(h&&h.animated)&&Ds!==h)){if(Hi=Ur(h),Ia=Ur(h,a.draggable),typeof p=="function"){if(p.call(this,e,h,this)){ar({sortable:r,rootEl:c,name:"filter",targetEl:h,toEl:n,fromEl:n}),gr("filter",r,{evt:e}),o&&e.preventDefault();return}}else if(p&&(p=p.split(",").some(function(g){if(g=en(c,g.trim(),n,!1),g)return ar({sortable:r,rootEl:g,name:"filter",targetEl:h,fromEl:n,toEl:n}),gr("filter",r,{evt:e}),!0}),p)){o&&e.preventDefault();return}a.handle&&!en(c,a.handle,n,!1)||this._prepareDragStart(e,u,h)}}},_prepareDragStart:function(e,r,n){var a=this,o=a.el,l=a.options,u=o.ownerDocument,h;if(n&&!Te&&n.parentNode===o){var c=Dt(n);if(vt=o,Te=n,St=Te.parentNode,pi=Te.nextSibling,Ds=n,Is=l.group,$e.dragged=Te,gi={target:Te,clientX:(r||e).clientX,clientY:(r||e).clientY},du=gi.clientX-c.left,pu=gi.clientY-c.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Te.style["will-change"]="all",h=function(){if(gr("delayEnded",a,{evt:e}),$e.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!tu&&a.nativeDraggable&&(Te.draggable=!0),a._triggerDragStart(e,r),ar({sortable:a,name:"choose",originalEvent:e}),Ar(Te,l.chosenClass,!0)},l.ignore.split(",").forEach(function(p){su(Te,p.trim(),$l)}),et(u,"dragover",mi),et(u,"mousemove",mi),et(u,"touchmove",mi),l.supportPointer?(et(u,"pointerup",a._onDrop),!this.nativeDraggable&&et(u,"pointercancel",a._onDrop)):(et(u,"mouseup",a._onDrop),et(u,"touchend",a._onDrop),et(u,"touchcancel",a._onDrop)),tu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Te.draggable=!0),gr("delayStart",this,{evt:e}),l.delay&&(!l.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Fa||An))){if($e.eventCanceled){this._onDrop();return}l.supportPointer?(et(u,"pointerup",a._disableDelayedDrag),et(u,"pointercancel",a._disableDelayedDrag)):(et(u,"mouseup",a._disableDelayedDrag),et(u,"touchend",a._disableDelayedDrag),et(u,"touchcancel",a._disableDelayedDrag)),et(u,"mousemove",a._delayedDragTouchMoveHandler),et(u,"touchmove",a._delayedDragTouchMoveHandler),l.supportPointer&&et(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(h,l.delay)}else h()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Te&&$l(Te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._disableDelayedDrag),Ze(e,"touchend",this._disableDelayedDrag),Ze(e,"touchcancel",this._disableDelayedDrag),Ze(e,"pointerup",this._disableDelayedDrag),Ze(e,"pointercancel",this._disableDelayedDrag),Ze(e,"mousemove",this._delayedDragTouchMoveHandler),Ze(e,"touchmove",this._delayedDragTouchMoveHandler),Ze(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?et(document,"pointermove",this._onTouchMove):r?et(document,"touchmove",this._onTouchMove):et(document,"mousemove",this._onTouchMove):(et(Te,"dragend",this),et(vt,"dragstart",this._onDragStart));try{document.selection?Us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(Vi=!1,vt&&Te){gr("dragStarted",this,{evt:r}),this.nativeDraggable&&et(document,"dragover",Pp);var n=this.options;!e&&Ar(Te,n.dragClass,!1),Ar(Te,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),ar({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(tn){this._lastX=tn.clientX,this._lastY=tn.clientY,_u();for(var e=document.elementFromPoint(tn.clientX,tn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(tn.clientX,tn.clientY),e!==r);)r=e;if(Te.parentNode[pr]._isOutsideThisEl(e),r)do{if(r[pr]){var n=void 0;if(n=r[pr]._onDragOver({clientX:tn.clientX,clientY:tn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=iu(r));wu()}},_onTouchMove:function(e){if(gi){var r=this.options,n=r.fallbackTolerance,a=r.fallbackOffset,o=e.touches?e.touches[0]:e,l=We&&$i(We,!0),u=We&&l&&l.a,h=We&&l&&l.d,c=Bs&&er&&lu(er),p=(o.clientX-gi.clientX+a.x)/(u||1)+(c?c[0]-Ml[0]:0)/(u||1),g=(o.clientY-gi.clientY+a.y)/(h||1)+(c?c[1]-Ml[1]:0)/(h||1);if(!$e.active&&!Vi){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(We){l?(l.e+=p-(kl||0),l.f+=g-(Pl||0)):l={a:1,b:0,c:0,d:1,e:p,f:g};var x="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");Be(We,"webkitTransform",x),Be(We,"mozTransform",x),Be(We,"msTransform",x),Be(We,"transform",x),kl=p,Pl=g,tn=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!We){var e=this.options.fallbackOnBody?document.body:vt,r=Dt(Te,!0,Bs,!0,e),n=this.options;if(Bs){for(er=e;Be(er,"position")==="static"&&Be(er,"transform")==="none"&&er!==document;)er=er.parentNode;er!==document.body&&er!==document.documentElement?(er===document&&(er=gn()),r.top+=er.scrollTop,r.left+=er.scrollLeft):er=gn(),Ml=lu(er)}We=Te.cloneNode(!0),Ar(We,n.ghostClass,!1),Ar(We,n.fallbackClass,!0),Ar(We,n.dragClass,!0),Be(We,"transition",""),Be(We,"transform",""),Be(We,"box-sizing","border-box"),Be(We,"margin",0),Be(We,"top",r.top),Be(We,"left",r.left),Be(We,"width",r.width),Be(We,"height",r.height),Be(We,"opacity","0.8"),Be(We,"position",Bs?"absolute":"fixed"),Be(We,"zIndex","100000"),Be(We,"pointerEvents","none"),$e.ghost=We,e.appendChild(We),Be(We,"transform-origin",du/parseInt(We.style.width)*100+"% "+pu/parseInt(We.style.height)*100+"%")}},_onDragStart:function(e,r){var n=this,a=e.dataTransfer,o=n.options;if(gr("dragStart",this,{evt:e}),$e.eventCanceled){this._onDrop();return}gr("setupClone",this),$e.eventCanceled||(Tt=cu(Te),Tt.removeAttribute("id"),Tt.draggable=!1,Tt.style["will-change"]="",this._hideClone(),Ar(Tt,this.options.chosenClass,!1),$e.clone=Tt),n.cloneId=Us(function(){gr("clone",n),!$e.eventCanceled&&(n.options.removeCloneOnHide||vt.insertBefore(Tt,Te),n._hideClone(),ar({sortable:n,name:"clone"}))}),!r&&Ar(Te,o.dragClass,!0),r?(Rs=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ze(document,"mouseup",n._onDrop),Ze(document,"touchend",n._onDrop),Ze(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,Te)),et(document,"drop",n),Be(Te,"transform","translateZ(0)")),Vi=!0,n._dragStartId=Us(n._dragStarted.bind(n,r,e)),et(document,"selectstart",n),Ra=!0,window.getSelection().removeAllRanges(),ba&&Be(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,n=e.target,a,o,l,u=this.options,h=u.group,c=$e.active,p=Is===h,g=u.sort,x=Gt||c,_,y=this,v=!1;if(Bl)return;function A(de,Ie){gr(de,y,pn({evt:e,isOwner:p,axis:_?"vertical":"horizontal",revert:l,dragRect:a,targetRect:o,canSort:g,fromSortable:x,target:n,completed:B,onMove:function(Ne,I){return $s(vt,r,Te,a,Ne,Dt(Ne),e,I)},changed:L},Ie))}function M(){A("dragOverAnimationCapture"),y.captureAnimationState(),y!==x&&x.captureAnimationState()}function B(de){return A("dragOverCompleted",{insertion:de}),de&&(p?c._hideClone():c._showClone(y),y!==x&&(Ar(Te,Gt?Gt.options.ghostClass:c.options.ghostClass,!1),Ar(Te,u.ghostClass,!0)),Gt!==y&&y!==$e.active?Gt=y:y===$e.active&&Gt&&(Gt=null),x===y&&(y._ignoreWhileAnimating=n),y.animateAll(function(){A("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==x&&(x.animateAll(),x._ignoreWhileAnimating=null)),(n===Te&&!Te.animated||n===r&&!n.animated)&&(zi=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(Te.parentNode[pr]._isOutsideThisEl(e.target),!de&&mi(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function L(){Cr=Ur(Te),Xn=Ur(Te,u.draggable),ar({sortable:y,name:"change",toEl:r,newIndex:Cr,newDraggableIndex:Xn,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=en(n,u.draggable,r,!0),A("dragOver"),$e.eventCanceled)return v;if(Te.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||y._ignoreWhileAnimating===n)return B(!1);if(Rs=!1,c&&!u.disabled&&(p?g||(l=St!==vt):Gt===this||(this.lastPutMode=Is.checkPull(this,c,Te,e))&&h.checkPut(this,c,Te,e))){if(_=this._getDirection(e,n)==="vertical",a=Dt(Te),A("dragOverValid"),$e.eventCanceled)return v;if(l)return St=vt,M(),this._hideClone(),A("revert"),$e.eventCanceled||(pi?vt.insertBefore(Te,pi):vt.appendChild(Te)),B(!0);var X=Rl(r,u.draggable);if(!X||Up(e,_,this)&&!X.animated){if(X===Te)return B(!1);if(X&&r===e.target&&(n=X),n&&(o=Dt(n)),$s(vt,r,Te,a,n,o,e,!!n)!==!1)return M(),X&&X.nextSibling?r.insertBefore(Te,X.nextSibling):r.appendChild(Te),St=r,L(),B(!0)}else if(X&&$p(e,_,this)){var se=Ui(r,0,u,!0);if(se===Te)return B(!1);if(n=se,o=Dt(n),$s(vt,r,Te,a,n,o,e,!1)!==!1)return M(),r.insertBefore(Te,se),St=r,L(),B(!0)}else if(n.parentNode===r){o=Dt(n);var ce=0,U,te=Te.parentNode!==r,H=!Np(Te.animated&&Te.toRect||a,n.animated&&n.toRect||o,_),Z=_?"top":"left",q=ou(n,"top","top")||ou(Te,"top","top"),le=q?q.scrollTop:void 0;zi!==n&&(U=o[Z],Na=!1,Ns=!H&&u.invertSwap||te),ce=Wp(e,n,o,_,H?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,Ns,zi===n);var _e;if(ce!==0){var we=Ur(Te);do we-=ce,_e=St.children[we];while(_e&&(Be(_e,"display")==="none"||_e===We))}if(ce===0||_e===n)return B(!1);zi=n,La=ce;var ne=n.nextElementSibling,ue=!1;ue=ce===1;var me=$s(vt,r,Te,a,n,o,e,ue);if(me!==!1)return(me===1||me===-1)&&(ue=me===1),Bl=!0,setTimeout(Bp,30),M(),ue&&!ne?r.appendChild(Te):n.parentNode.insertBefore(Te,ue?ne:n),q&&uu(q,0,le-q.scrollTop),St=Te.parentNode,U!==void 0&&!Ns&&(ks=Math.abs(U-Dt(n)[Z])),L(),B(!0)}if(r.contains(Te))return B(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ze(document,"mousemove",this._onTouchMove),Ze(document,"touchmove",this._onTouchMove),Ze(document,"pointermove",this._onTouchMove),Ze(document,"dragover",mi),Ze(document,"mousemove",mi),Ze(document,"touchmove",mi)},_offUpEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._onDrop),Ze(e,"touchend",this._onDrop),Ze(e,"pointerup",this._onDrop),Ze(e,"pointercancel",this._onDrop),Ze(e,"touchcancel",this._onDrop),Ze(document,"selectstart",this)},_onDrop:function(e){var r=this.el,n=this.options;if(Cr=Ur(Te),Xn=Ur(Te,n.draggable),gr("drop",this,{evt:e}),St=Te&&Te.parentNode,Cr=Ur(Te),Xn=Ur(Te,n.draggable),$e.eventCanceled){this._nulling();return}Vi=!1,Ns=!1,Na=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ul(this.cloneId),Ul(this._dragStartId),this.nativeDraggable&&(Ze(document,"drop",this),Ze(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ba&&Be(document.body,"user-select",""),Be(Te,"transform",""),e&&(Ra&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),We&&We.parentNode&&We.parentNode.removeChild(We),(vt===St||Gt&&Gt.lastPutMode!=="clone")&&Tt&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Te&&(this.nativeDraggable&&Ze(Te,"dragend",this),$l(Te),Te.style["will-change"]="",Ra&&!Vi&&Ar(Te,Gt?Gt.options.ghostClass:this.options.ghostClass,!1),Ar(Te,this.options.chosenClass,!1),ar({sortable:this,name:"unchoose",toEl:St,newIndex:null,newDraggableIndex:null,originalEvent:e}),vt!==St?(Cr>=0&&(ar({rootEl:St,name:"add",toEl:St,fromEl:vt,originalEvent:e}),ar({sortable:this,name:"remove",toEl:St,originalEvent:e}),ar({rootEl:St,name:"sort",toEl:St,fromEl:vt,originalEvent:e}),ar({sortable:this,name:"sort",toEl:St,originalEvent:e})),Gt&&Gt.save()):Cr!==Hi&&Cr>=0&&(ar({sortable:this,name:"update",toEl:St,originalEvent:e}),ar({sortable:this,name:"sort",toEl:St,originalEvent:e})),$e.active&&((Cr==null||Cr===-1)&&(Cr=Hi,Xn=Ia),ar({sortable:this,name:"end",toEl:St,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){gr("nulling",this),vt=Te=St=We=pi=Tt=Ds=Gn=gi=tn=Ra=Cr=Xn=Hi=Ia=zi=La=Gt=Is=$e.dragged=$e.ghost=$e.clone=$e.active=null,Ps.forEach(function(e){e.checked=!0}),Ps.length=kl=Pl=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Te&&(this._onDragOver(e),Mp(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],r,n=this.el.children,a=0,o=n.length,l=this.options;a<o;a++)r=n[a],en(r,l.draggable,this.el,!1)&&e.push(r.getAttribute(l.dataIdAttr)||Vp(r));return e},sort:function(e,r){var n={},a=this.el;this.toArray().forEach(function(o,l){var u=a.children[l];en(u,this.options.draggable,a,!1)&&(n[o]=u)},this),r&&this.captureAnimationState(),e.forEach(function(o){n[o]&&(a.removeChild(n[o]),a.appendChild(n[o]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return en(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var n=this.options;if(r===void 0)return n[e];var a=Da.modifyOption(this,e,r);typeof a<"u"?n[e]=a:n[e]=r,e==="group"&&vu(n)},destroy:function(){gr("destroy",this);var e=this.el;e[pr]=null,Ze(e,"mousedown",this._onTapStart),Ze(e,"touchstart",this._onTapStart),Ze(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ze(e,"dragover",this),Ze(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ls.splice(Ls.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Gn){if(gr("hideClone",this),$e.eventCanceled)return;Be(Tt,"display","none"),this.options.removeCloneOnHide&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Gn=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Gn){if(gr("showClone",this),$e.eventCanceled)return;Te.parentNode==vt&&!this.options.group.revertClone?vt.insertBefore(Tt,Te):pi?vt.insertBefore(Tt,pi):vt.appendChild(Tt),this.options.group.revertClone&&this.animate(Te,Tt),Be(Tt,"display",""),Gn=!1}}};function Mp(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $s(t,e,r,n,a,o,l,u){var h,c=t[pr],p=c.options.onMove,g;return window.CustomEvent&&!An&&!Fa?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=e,h.from=t,h.dragged=r,h.draggedRect=n,h.related=a||e,h.relatedRect=o||Dt(e),h.willInsertAfter=u,h.originalEvent=l,t.dispatchEvent(h),p&&(g=p.call(c,h,l)),g}function $l(t){t.draggable=!1}function Bp(){Bl=!1}function $p(t,e,r){var n=Dt(Ui(r.el,0,r.options,!0)),a=hu(r.el,r.options,We),o=10;return e?t.clientX<a.left-o||t.clientY<n.top&&t.clientX<n.right:t.clientY<a.top-o||t.clientY<n.bottom&&t.clientX<n.left}function Up(t,e,r){var n=Dt(Rl(r.el,r.options.draggable)),a=hu(r.el,r.options,We),o=10;return e?t.clientX>a.right+o||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>a.bottom+o||t.clientX>n.right&&t.clientY>n.top}function Wp(t,e,r,n,a,o,l,u){var h=n?t.clientY:t.clientX,c=n?r.height:r.width,p=n?r.top:r.left,g=n?r.bottom:r.right,x=!1;if(!l){if(u&&ks<c*a){if(!Na&&(La===1?h>p+c*o/2:h<g-c*o/2)&&(Na=!0),Na)x=!0;else if(La===1?h<p+ks:h>g-ks)return-La}else if(h>p+c*(1-a)/2&&h<g-c*(1-a)/2)return Hp(e)}return x=x||l,x&&(h<p+c*o/2||h>g-c*o/2)?h>p+c/2?1:-1:0}function Hp(t){return Ur(Te)<Ur(t)?1:-1}function Vp(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,r=e.length,n=0;r--;)n+=e.charCodeAt(r);return n.toString(36)}function zp(t){Ps.length=0;for(var e=t.getElementsByTagName("input"),r=e.length;r--;){var n=e[r];n.checked&&Ps.push(n)}}function Us(t){return setTimeout(t,0)}function Ul(t){return clearTimeout(t)}Ms&&et(document,"touchmove",function(t){($e.active||Vi)&&t.cancelable&&t.preventDefault()}),$e.utils={on:et,off:Ze,css:Be,find:su,is:function(e,r){return!!en(e,r,e,!1)},extend:Cp,throttle:fu,closest:en,toggleClass:Ar,clone:cu,index:Ur,nextTick:Us,cancelNextTick:Ul,detectDirection:xu,getChild:Ui,expando:pr},$e.get=function(t){return t[pr]},$e.mount=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&($e.utils=pn(pn({},$e.utils),n.utils)),Da.mount(n)})},$e.create=function(t,e){return new $e(t,e)},$e.version=Sp;var It=[],ka,Wl,Hl=!1,Vl,zl,Ws,Pa;function Gp(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):this.options.supportPointer?et(document,"pointermove",this._handleFallbackAutoScroll):n.touches?et(document,"touchmove",this._handleFallbackAutoScroll):et(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Ze(document,"dragover",this._handleAutoScroll):(Ze(document,"pointermove",this._handleFallbackAutoScroll),Ze(document,"touchmove",this._handleFallbackAutoScroll),Ze(document,"mousemove",this._handleFallbackAutoScroll)),Tu(),Hs(),Fp()},nulling:function(){Ws=Wl=ka=Hl=Pa=Vl=zl=null,It.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var a=this,o=(r.touches?r.touches[0]:r).clientX,l=(r.touches?r.touches[0]:r).clientY,u=document.elementFromPoint(o,l);if(Ws=r,n||this.options.forceAutoScrollFallback||Fa||An||ba){Gl(r,this.options,u,n);var h=zn(u,!0);Hl&&(!Pa||o!==Vl||l!==zl)&&(Pa&&Tu(),Pa=setInterval(function(){var c=zn(document.elementFromPoint(o,l),!0);c!==h&&(h=c,Hs()),Gl(r,a.options,c,n)},10),Vl=o,zl=l)}else{if(!this.options.bubbleScroll||zn(u,!0)===gn()){Hs();return}Gl(r,this.options,zn(u,!1),!1)}}},yn(t,{pluginName:"scroll",initializeByDefault:!0})}function Hs(){It.forEach(function(t){clearInterval(t.pid)}),It=[]}function Tu(){clearInterval(Pa)}var Gl=fu(function(t,e,r,n){if(!!e.scroll){var a=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,u=e.scrollSpeed,h=gn(),c=!1,p;Wl!==r&&(Wl=r,Hs(),ka=e.scroll,p=e.scrollFn,ka===!0&&(ka=zn(r,!0)));var g=0,x=ka;do{var _=x,y=Dt(_),v=y.top,A=y.bottom,M=y.left,B=y.right,L=y.width,X=y.height,se=void 0,ce=void 0,U=_.scrollWidth,te=_.scrollHeight,H=Be(_),Z=_.scrollLeft,q=_.scrollTop;_===h?(se=L<U&&(H.overflowX==="auto"||H.overflowX==="scroll"||H.overflowX==="visible"),ce=X<te&&(H.overflowY==="auto"||H.overflowY==="scroll"||H.overflowY==="visible")):(se=L<U&&(H.overflowX==="auto"||H.overflowX==="scroll"),ce=X<te&&(H.overflowY==="auto"||H.overflowY==="scroll"));var le=se&&(Math.abs(B-a)<=l&&Z+L<U)-(Math.abs(M-a)<=l&&!!Z),_e=ce&&(Math.abs(A-o)<=l&&q+X<te)-(Math.abs(v-o)<=l&&!!q);if(!It[g])for(var we=0;we<=g;we++)It[we]||(It[we]={});(It[g].vx!=le||It[g].vy!=_e||It[g].el!==_)&&(It[g].el=_,It[g].vx=le,It[g].vy=_e,clearInterval(It[g].pid),(le!=0||_e!=0)&&(c=!0,It[g].pid=setInterval(function(){n&&this.layer===0&&$e.active._onTouchMove(Ws);var ne=It[this.layer].vy?It[this.layer].vy*u:0,ue=It[this.layer].vx?It[this.layer].vx*u:0;typeof p=="function"&&p.call($e.dragged.parentNode[pr],ue,ne,t,Ws,It[this.layer].el)!=="continue"||uu(It[this.layer].el,ue,ne)}.bind({layer:g}),24))),g++}while(e.bubbleScroll&&x!==h&&(x=zn(x,!1)));Hl=c}},30),Eu=function(e){var r=e.originalEvent,n=e.putSortable,a=e.dragEl,o=e.activeSortable,l=e.dispatchSortableEvent,u=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(!!r){var c=n||o;u();var p=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,g=document.elementFromPoint(p.clientX,p.clientY);h(),c&&!c.el.contains(g)&&(l("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function Xl(){}Xl.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Ui(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(r,a):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:Eu},yn(Xl,{pluginName:"revertOnSpill"});function Kl(){}Kl.prototype={onSpill:function(e){var r=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),a.animateAll()},drop:Eu},yn(Kl,{pluginName:"removeOnSpill"}),$e.mount(new Gp),$e.mount(Kl,Xl);const Yl={zh:{common:{selectAll:"\u5168\u9009",start:"\u5F00\u59CB",end:"\u7ED3\u675F"},Form:{input:"\u8BF7\u8F93\u5165",select:"\u8BF7\u9009\u62E9"},Dialog:{cancel:"\u53D6\u6D88",confirm:"\u786E\u5B9A"},Table:{export:"\u6570\u636E\u5BFC\u51FA",config:"\u8868\u5934\u8BBE\u7F6E",showCcolumns:"\u663E\u793A\u5217",allColumns:"\u5168\u90E8\u5217",save:"\u4FDD\u5B58\u914D\u7F6E",operation:"\u64CD\u4F5C",exportFail:"\u5BFC\u51FA\u5931\u8D25",exportSuccess:"\u5BFC\u51FA\u4EFB\u52A1\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u81F3\u4E0B\u8F7D\u4E2D\u5FC3\u67E5\u770B\u3002",downloadSuccess:"\u6587\u4EF6\u4E0B\u8F7D\u6210\u529F"},Pagelist:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},Pagination:{total:"\u5171 {0} \u6761",selected:"\u9009\u4E2D {0} \u6761"},DatePicker:{start:"\u5F00\u59CB\u65F6\u95F4",end:"\u7ED3\u675F\u65F6\u95F4",aWeek:"\u6700\u8FD1\u4E00\u5468",aMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",threeMonth:"\u6700\u8FD1\u4E09\u4E2A\u6708"},Upload:{noText:"\u6682\u65E0",uploadButtonText:"\u4E0A\u4F20",uploadFail:"\u4E0A\u4F20\u5931\u8D25: ",uploadRule:"\u6700\u591A\u4E0A\u4F20{0}\u4E2A\u6587\u4EF6\uFF0C\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7{1}M"},Range:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C"}},en:{common:{selectAll:"Select All",start:" Start",end:" End"},Form:{input:"Please enter ",select:"Please select "},Dialog:{cancel:"Cancel",confirm:"Confirm"},Table:{export:"Export Data",config:"Column Configuration",showCcolumns:"Show Columns",allColumns:"All Columns",save:"Save Configuration",operation:"Operation",exportFail:"Export failed",exportSuccess:"Export task created successfully. Please check the Download Center.",downloadSuccess:"File downloaded successfully"},Pagelist:{search:"Search",reset:"Reset",collapse:"Fold",expand:"Expand"},Pagination:{total:"Total {0}",selected:"Selected {0}"},DatePicker:{start:"Start Time",end:"End Time",aWeek:"Last Week",aMonth:"Last Month",threeMonth:"Last Three Months"},Upload:{noText:"None",uploadButtonText:"Upload",uploadFail:"Upload failed: ",uploadRule:"Upload up to {0} files, each file no larger than {1} MB"},Range:{min:"Minimum",max:"Maximum"}},vi:{common:{selectAll:"Ch\u1ECDn t\u1EA5t c\u1EA3",start:" B\u1EAFt \u0111\u1EA7u",end:" K\u1EBFt th\xFAc"},Form:{input:"Vui l\xF2ng nh\u1EADp ",select:"Vui l\xF2ng ch\u1ECDn "},Dialog:{cancel:"H\u1EE7y",confirm:"X\xE1c nh\u1EADn"},Table:{export:"Xu\u1EA5t d\u1EEF li\u1EC7u",config:"C\xE0i \u0111\u1EB7t ti\xEAu \u0111\u1EC1 b\u1EA3ng",showCcolumns:"C\u1ED9t hi\u1EC3n th\u1ECB",allColumns:"T\u1EA5t c\u1EA3 c\xE1c c\u1ED9t",save:"L\u01B0u c\u1EA5u h\xECnh",operation:"Thao t\xE1c",exportFail:"Xu\u1EA5t th\u1EA5t b\u1EA1i",exportSuccess:"\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng nhi\u1EC7m v\u1EE5 xu\u1EA5t, vui l\xF2ng \u0111\u1EBFn trung t\xE2m t\u1EA3i xu\u1ED1ng \u0111\u1EC3 xem.",downloadSuccess:"T\u1EA3i t\u1EC7p th\xE0nh c\xF4ng"},Pagelist:{search:"T\xECm ki\u1EBFm",reset:"\u0110\u1EB7t l\u1EA1i",collapse:"Thu g\u1ECDn",expand:"M\u1EDF r\u1ED9ng"},Pagination:{total:"T\u1ED5ng {0} m\u1EE5c",selected:"\u0110\xE3 ch\u1ECDn {0} m\u1EE5c"},DatePicker:{start:"Th\u1EDDi gian b\u1EAFt \u0111\u1EA7u",end:"Th\u1EDDi gian k\u1EBFt th\xFAc",aWeek:"Tu\u1EA7n g\u1EA7n \u0111\xE2y",aMonth:"Th\xE1ng g\u1EA7n \u0111\xE2y",threeMonth:"Ba th\xE1ng g\u1EA7n \u0111\xE2y"},Upload:{noText:"Ch\u01B0a c\xF3",uploadButtonText:"T\u1EA3i l\xEAn",uploadFail:"T\u1EA3i l\xEAn th\u1EA5t b\u1EA1i: ",uploadRule:"T\u1ED1i \u0111a t\u1EA3i l\xEAn {0} t\u1EC7p, m\u1ED7i t\u1EC7p kh\xF4ng qu\xE1 {1} MB"},Range:{min:"T\u1ED1i thi\u1EC3u",max:"T\u1ED1i \u0111a"}}};let jl,yu="zh";function Xp(t,e){if(jl)return jl(t,e);const r=t.split(".").reduce((n,a)=>n[a],Yl[yu]);return r!=null?r:t}function Kp(t,e){yu=e,typeof t=="function"&&(jl=t)}const ql={computed:{$t(){return(t,e)=>Xp(t,e)}},methods:{translate(t,e){return this.$t?this.$t(t,e):t}}},pb="";function $t(t,e,r,n,a,o,l,u){var h=typeof t=="function"?t.options:t;e&&(h.render=e,h.staticRenderFns=r,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o);var c;if(l?(c=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__<"u"&&(x=__VUE_SSR_CONTEXT__),a&&a.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(l)},h._ssrRegister=c):a&&(c=u?function(){a.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(_,y){return c.call(y),p(_,y)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,c):[c]}return{exports:t,options:h}}const Yp={name:"TableColumnsManager",mixins:[ql],props:{visible:{type:Boolean,required:!1},tableId:{type:String,required:!0},serverColumns:{type:Array,default:()=>[]},localColumns:{type:Array,default:()=>[]}},data:()=>({isAllSelected:!1,selectedColumnLabels:[],isIndeterminate:!0,visibleColumns:[],appendToBody:!0}),computed:{blacklistColumns(){return this.localColumns.filter(t=>t.fixed==="right"||t.label===this.$t("Table.operation"))},operableColumns(){return this.localColumns.filter(t=>!this.blacklistColumns.includes(t))},localVisible:{get(){return this.visible&&(this.selectedColumnLabels=this.serverColumns.filter(t=>{var e;return((e=this.localColumns)==null?void 0:e.some(r=>r.label===t.label))&&t.label!==this.$t("Table.operation")}).map(t=>t.label)),this.visible},set(t){this.$emit("update:visible",t)}},size(){return this.globalSize||"mini"}},watch:{localVisible:{handler(t){t&&this.$nextTick(()=>{this.initSortable()})},immediate:!0},selectedColumnLabels:{handler(t){console.log("selectedColumnLabels changed:",t),this.visibleColumns=t.filter(Boolean).map(n=>this.operableColumns.find(a=>a.label===n)).filter(Boolean);const e=this.operableColumns.length,r=t.length;this.isAllSelected=r===e&&e!==0,this.isIndeterminate=r>0&&r<e},immediate:!0}},created(){this.appendToBody=!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.appendToBody=!document.fullscreenElement})},methods:{handleTagClose(t){this.selectedColumnLabels=this.selectedColumnLabels.filter(e=>e!==t.label)},handleCheckAllChange(t){this.selectedColumnLabels=t?this.operableColumns.map(e=>e.label):[],this.isIndeterminate=!1},closeDialog(){this.localVisible=!1},saveColumns(){const t=[...this.visibleColumns,...this.blacklistColumns];this.$emit("columns-updated",t),this.closeDialog()},initSortable(){const t=this.$refs.tagsContainer;this.sortable=$e.create(t,{animation:150,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",onEnd:({oldIndex:e,newIndex:r})=>{const n=[...this.visibleColumns],[a]=n.splice(e,1);n.splice(r,0,a),this.selectedColumnLabels=n.map(o=>o.label)}})}}};var jp=function(){var e=this,r=e._self._c;return r("el-dialog",{staticClass:"table-columns-manager",attrs:{visible:e.localVisible,title:e.$t("Table.config"),width:"60%","append-to-body":e.appendToBody,"modal-append-to-body":!1,"destroy-on-close":""},on:{"update:visible":function(n){e.localVisible=n}}},[r("div",{staticClass:"column-title"},[e._v(e._s(e.$t("Table.showCcolumns")))]),r("div",{ref:"tagsContainer",staticClass:"tags-wrapper"},[e._l(e.visibleColumns,function(n){return[n.label?r("el-tag",{key:n.label,staticClass:"draggable-tag",attrs:{closable:""},on:{close:function(a){return e.handleTagClose(n)}}},[e._v(" "+e._s(n.label)+" ")]):e._e()]})],2),r("div",{staticClass:"column-title"},[e._v(e._s(e.$t("Table.allColumns")))]),r("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.isAllSelected,callback:function(n){e.isAllSelected=n},expression:"isAllSelected"}},[e._v(e._s(e.$t("common.selectAll")))]),r("el-checkbox-group",{model:{value:e.selectedColumnLabels,callback:function(n){e.selectedColumnLabels=n},expression:"selectedColumnLabels"}},[e._l(e.operableColumns,function(n,a){return[n.label?r("el-checkbox",{key:n.label,attrs:{label:n.label}},[e._v(e._s(n.label))]):e._e()]})],2),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"footer-button",attrs:{size:e.size,type:"primary"},on:{click:e.saveColumns}},[e._v(e._s(e.$t("Table.save")))]),r("el-button",{staticClass:"footer-button",attrs:{size:e.size},on:{click:e.closeDialog}},[e._v(e._s(e.$t("Dialog.cancel")))])],1)],1)},qp=[],Jp=$t(Yp,jp,qp,!1,null,null,null,null);const Zp=Jp.exports;var Ma={exports:{}};/**
13
13
  * @license
14
14
  * Lodash <https://lodash.com/>
15
15
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -129,4 +129,4 @@ function print() { __p += __j.call(arguments, '') }
129
129
  `),h.push(` </office:body>
130
130
  `),u.bookType=="fods"?h.push("</office:document>"):h.push("</office:document-content>"),h.join("")}}();function Mh(t,e){if(e.bookType=="fods")return Ph(t,e);var r=rf(),n="",a=[],o=[];return n="mimetype",Ye(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Ye(r,n,Ph(t,e)),a.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Ye(r,n,pT(t,e)),a.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Ye(r,n,Rt+Mc()),a.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Ye(r,n,Cm(o)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Ye(r,n,Sm(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function xo(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function gT(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):rn(Dn(t))}function mT(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Zn(t){var e=t.reduce(function(a,o){return a+o.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(a){r.set(a,n),n+=a.length}),r}function xT(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var o=0;a>=1;++o,a/=256)t[e+o]=a&255;t[e+15]|=r>=0?0:128}function rs(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function ft(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function ra(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function kt(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],a=rs(t,r),o=a&7;a=Math.floor(a/8);var l=0,u;if(a==0)break;switch(o){case 0:{for(var h=r[0];t[r[0]++]>=128;);u=t.slice(h,r[0])}break;case 5:l=4,u=t.slice(r[0],r[0]+l),r[0]+=l;break;case 1:l=8,u=t.slice(r[0],r[0]+l),r[0]+=l;break;case 2:l=rs(t,r),u=t.slice(r[0],r[0]+l),r[0]+=l;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(n))}var c={data:u,type:o};e[a]==null?e[a]=[c]:e[a].push(c)}return e}function Jt(t){var e=[];return t.forEach(function(r,n){r.forEach(function(a){!a.data||(e.push(ft(n*8+a.type)),a.type==2&&e.push(ft(a.data.length)),e.push(a.data))})}),Zn(e)}function sn(t){for(var e,r=[],n=[0];n[0]<t.length;){var a=rs(t,n),o=kt(t.slice(n[0],n[0]+a));n[0]+=a;var l={id:ra(o[1][0].data),messages:[]};o[2].forEach(function(u){var h=kt(u.data),c=ra(h[3][0].data);l.messages.push({meta:h,data:t.slice(n[0],n[0]+c)}),n[0]+=c}),(e=o[3])!=null&&e[0]&&(l.merge=ra(o[3][0].data)>>>0>0),r.push(l)}return r}function na(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:ft(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ft(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(l){a.push(l.data),l.meta[3]=[{type:0,data:ft(l.data.length)}],n[2].push({data:Jt(l.meta),type:2})});var o=Jt(n);e.push(ft(o.length)),e.push(o),a.forEach(function(l){return e.push(l)})}),Zn(e)}function vT(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=rs(e,r),a=[];r[0]<e.length;){var o=e[r[0]]&3;if(o==0){var l=e[r[0]++]>>2;if(l<60)++l;else{var u=l-59;l=e[r[0]],u>1&&(l|=e[r[0]+1]<<8),u>2&&(l|=e[r[0]+2]<<16),u>3&&(l|=e[r[0]+3]<<24),l>>>=0,l++,r[0]+=u}a.push(e.slice(r[0],r[0]+l)),r[0]+=l;continue}else{var h=0,c=0;if(o==1?(c=(e[r[0]]>>2&7)+4,h=(e[r[0]++]&224)<<3,h|=e[r[0]++]):(c=(e[r[0]++]>>2)+1,o==2?(h=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(h=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Zn(a)],h==0)throw new Error("Invalid offset 0");if(h>a[0].length)throw new Error("Invalid offset beyond length");if(c>=h)for(a.push(a[0].slice(-h)),c-=h;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-h,-h+c))}}var p=Zn(a);if(p.length!=n)throw new Error("Unexpected length: ".concat(p.length," != ").concat(n));return p}function on(t){for(var e=[],r=0;r<t.length;){var n=t[r++],a=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(vT(n,t.slice(r,r+a))),r+=a}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Zn(e)}function ia(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),a=new Uint8Array(4);e.push(a);var o=ft(n),l=o.length;e.push(o),n<=60?(l++,e.push(new Uint8Array([n-1<<2]))):n<=256?(l+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(l+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(l+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(l+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),l+=n,a[0]=0,a[1]=l&255,a[2]=l>>8&255,a[3]=l>>16&255,r+=n}return Zn(e)}function Ff(t,e){var r=new Uint8Array(32),n=xo(r),a=12,o=0;switch(r[0]=5,t.t){case"n":r[1]=2,xT(r,a,t.v),o|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,t.v?1:0,!0),o|=2,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(a,e.indexOf(t.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),r.slice(0,a)}function bf(t,e){var r=new Uint8Array(32),n=xo(r),a=12,o=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(a,t.v,!0),o|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,t.v?1:0,!0),o|=32,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(a,e.indexOf(t.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,o,!0),r.slice(0,a)}function Qn(t){var e=kt(t);return rs(e[1][0].data)}function _T(t,e,r){var n,a,o,l;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var u=((l=(o=t[8])==null?void 0:o[0])==null?void 0:l.data)&&ra(t[8][0].data)>0||!1;if(u)throw"Math only works with normal offsets";for(var h=0,c=xo(t[7][0].data),p=0,g=[],x=xo(t[4][0].data),_=0,y=[],v=0;v<e.length;++v){if(e[v]==null){c.setUint16(v*2,65535,!0),x.setUint16(v*2,65535);continue}c.setUint16(v*2,p,!0),x.setUint16(v*2,_,!0);var A,M;switch(typeof e[v]){case"string":A=Ff({t:"s",v:e[v]},r),M=bf({t:"s",v:e[v]},r);break;case"number":A=Ff({t:"n",v:e[v]},r),M=bf({t:"n",v:e[v]},r);break;case"boolean":A=Ff({t:"b",v:e[v]},r),M=bf({t:"b",v:e[v]},r);break;default:throw new Error("Unsupported value "+e[v])}g.push(A),p+=A.length,y.push(M),_+=M.length,++h}for(t[2][0].data=ft(h);v<t[7][0].data.length/2;++v)c.setUint16(v*2,65535,!0),x.setUint16(v*2,65535,!0);return t[6][0].data=Zn(g),t[3][0].data=Zn(y),h}function wT(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Dr(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Lt(n)));var o=_o(r,{range:n,header:1}),l=["~Sh33tJ5~"];o.forEach(function(V){return V.forEach(function(k){typeof k=="string"&&l.push(k)})});var u={},h=[],c=ct.read(e.numbers,{type:"base64"});c.FileIndex.map(function(V,k){return[V,c.FullPaths[k]]}).forEach(function(V){var k=V[0],N=V[1];if(k.type==2&&!!k.name.match(/\.iwa/)){var re=k.content,be=on(re),Oe=sn(be);Oe.forEach(function(Se){h.push(Se.id),u[Se.id]={deps:[],location:N,type:ra(Se.messages[0].meta[1][0].data)}})}}),h.sort(function(V,k){return V-k});var p=h.filter(function(V){return V>1}).map(function(V){return[V,ft(V)]});c.FileIndex.map(function(V,k){return[V,c.FullPaths[k]]}).forEach(function(V){var k=V[0];if(V[1],!!k.name.match(/\.iwa/)){var N=sn(on(k.content));N.forEach(function(re){re.messages.forEach(function(be){p.forEach(function(Oe){re.messages.some(function(Se){return ra(Se.meta[1][0].data)!=11006&&mT(Se.data,Oe[1])})&&u[Oe[0]].deps.push(re.id)})})})}});for(var g=ct.find(c,u[1].location),x=sn(on(g.content)),_,y=0;y<x.length;++y){var v=x[y];v.id==1&&(_=v)}var A=Qn(kt(_.messages[0].data)[1][0].data);for(g=ct.find(c,u[A].location),x=sn(on(g.content)),y=0;y<x.length;++y)v=x[y],v.id==A&&(_=v);for(A=Qn(kt(_.messages[0].data)[2][0].data),g=ct.find(c,u[A].location),x=sn(on(g.content)),y=0;y<x.length;++y)v=x[y],v.id==A&&(_=v);for(A=Qn(kt(_.messages[0].data)[2][0].data),g=ct.find(c,u[A].location),x=sn(on(g.content)),y=0;y<x.length;++y)v=x[y],v.id==A&&(_=v);var M=kt(_.messages[0].data);{M[6][0].data=ft(n.e.r+1),M[7][0].data=ft(n.e.c+1);var B=Qn(M[46][0].data),L=ct.find(c,u[B].location),X=sn(on(L.content));{for(var se=0;se<X.length&&X[se].id!=B;++se);if(X[se].id!=B)throw"Bad ColumnRowUIDMapArchive";var ce=kt(X[se].messages[0].data);ce[1]=[],ce[2]=[],ce[3]=[];for(var U=0;U<=n.e.c;++U){var te=[];te[1]=te[2]=[{type:0,data:ft(U+420690)}],ce[1].push({type:2,data:Jt(te)}),ce[2].push({type:0,data:ft(U)}),ce[3].push({type:0,data:ft(U)})}ce[4]=[],ce[5]=[],ce[6]=[];for(var H=0;H<=n.e.r;++H)te=[],te[1]=te[2]=[{type:0,data:ft(H+726270)}],ce[4].push({type:2,data:Jt(te)}),ce[5].push({type:0,data:ft(H)}),ce[6].push({type:0,data:ft(H)});X[se].messages[0].data=Jt(ce)}L.content=ia(na(X)),L.size=L.content.length,delete M[46];var Z=kt(M[4][0].data);{Z[7][0].data=ft(n.e.r+1);var q=kt(Z[1][0].data),le=Qn(q[2][0].data);L=ct.find(c,u[le].location),X=sn(on(L.content));{if(X[0].id!=le)throw"Bad HeaderStorageBucket";var _e=kt(X[0].messages[0].data);for(H=0;H<o.length;++H){var we=kt(_e[2][0].data);we[1][0].data=ft(H),we[4][0].data=ft(o[H].length),_e[2][H]={type:_e[2][0].type,data:Jt(we)}}X[0].messages[0].data=Jt(_e)}L.content=ia(na(X)),L.size=L.content.length;var ne=Qn(Z[2][0].data);L=ct.find(c,u[ne].location),X=sn(on(L.content));{if(X[0].id!=ne)throw"Bad HeaderStorageBucket";for(_e=kt(X[0].messages[0].data),U=0;U<=n.e.c;++U)we=kt(_e[2][0].data),we[1][0].data=ft(U),we[4][0].data=ft(n.e.r+1),_e[2][U]={type:_e[2][0].type,data:Jt(we)};X[0].messages[0].data=Jt(_e)}L.content=ia(na(X)),L.size=L.content.length;var ue=Qn(Z[4][0].data);(function(){for(var V=ct.find(c,u[ue].location),k=sn(on(V.content)),N,re=0;re<k.length;++re){var be=k[re];be.id==ue&&(N=be)}var Oe=kt(N.messages[0].data);{Oe[3]=[];var Se=[];l.forEach(function(He,Et){Se[1]=[{type:0,data:ft(Et)}],Se[2]=[{type:0,data:ft(1)}],Se[3]=[{type:2,data:gT(He)}],Oe[3].push({type:2,data:Jt(Se)})})}N.messages[0].data=Jt(Oe);var pe=na(k),Xe=ia(pe);V.content=Xe,V.size=V.content.length})();var me=kt(Z[3][0].data);{var de=me[1][0];delete me[2];var Ie=kt(de.data);{var Re=Qn(Ie[2][0].data);(function(){for(var V=ct.find(c,u[Re].location),k=sn(on(V.content)),N,re=0;re<k.length;++re){var be=k[re];be.id==Re&&(N=be)}var Oe=kt(N.messages[0].data);{delete Oe[6],delete me[7];var Se=new Uint8Array(Oe[5][0].data);Oe[5]=[];for(var pe=0,Xe=0;Xe<=n.e.r;++Xe){var He=kt(Se);pe+=_T(He,o[Xe],l),He[1][0].data=ft(Xe),Oe[5].push({data:Jt(He),type:2})}Oe[1]=[{type:0,data:ft(n.e.c+1)}],Oe[2]=[{type:0,data:ft(n.e.r+1)}],Oe[3]=[{type:0,data:ft(pe)}],Oe[4]=[{type:0,data:ft(n.e.r+1)}]}N.messages[0].data=Jt(Oe);var Et=na(k),Ge=ia(Et);V.content=Ge,V.size=V.content.length})()}de.data=Jt(Ie)}Z[3][0].data=Jt(me)}M[4][0].data=Jt(Z)}_.messages[0].data=Jt(M);var Ne=na(x),I=ia(Ne);return g.content=I,g.size=g.content.length,c}function TT(t){return function(r){for(var n=0;n!=t.length;++n){var a=t[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Of(t){TT([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function ET(t,e){return e.bookType=="ods"?Mh(t,e):e.bookType=="numbers"?wT(t,e):e.bookType=="xlsb"?yT(t,e):ST(t,e)}function yT(t,e){ea=1024,t&&!t.SSF&&(t.SSF=xr(At)),t&&t.SSF&&(Zs(),Js(t.SSF),e.revssf=Qs(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,es?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=ph.indexOf(e.bookType)>-1,a=Lc();Of(e=e||{});var o=rf(),l="",u=0;if(e.cellXfs=[],Jn(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),l="docProps/core.xml",Ye(o,l,Bc(t.Props,e)),a.coreprops.push(l),lt(e.rels,2,l,rt.CORE_PROPS),l="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var h=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&h.push(t.SheetNames[c]);t.Props.SheetNames=h}for(t.Props.Worksheets=t.Props.SheetNames.length,Ye(o,l,Uc(t.Props)),a.extprops.push(l),lt(e.rels,3,l,rt.EXT_PROPS),t.Custprops!==t.Props&&Kt(t.Custprops||{}).length>0&&(l="docProps/custom.xml",Ye(o,l,Wc(t.Custprops)),a.custprops.push(l),lt(e.rels,4,l,rt.CUST_PROPS)),u=1;u<=t.SheetNames.length;++u){var p={"!id":{}},g=t.Sheets[t.SheetNames[u-1]],x=(g||{})["!type"]||"sheet";switch(x){case"chart":default:l="xl/worksheets/sheet"+u+"."+r,Ye(o,l,Cw(u-1,l,e,t,p)),a.sheets.push(l),lt(e.wbrels,-1,"worksheets/sheet"+u+"."+r,rt.WS[0])}if(g){var _=g["!comments"],y=!1,v="";_&&_.length>0&&(v="xl/comments"+u+"."+r,Ye(o,v,Ow(_,v)),a.comments.push(v),lt(p,-1,"../comments"+u+"."+r,rt.CMNT),y=!0),g["!legacy"]&&y&&Ye(o,"xl/drawings/vmlDrawing"+u+".vml",hh(u,g["!comments"])),delete g["!comments"],delete g["!legacy"]}p["!id"].rId1&&Ye(o,kc(l),Zi(p))}return e.Strings!=null&&e.Strings.length>0&&(l="xl/sharedStrings."+r,Ye(o,l,bw(e.Strings,l,e)),a.strs.push(l),lt(e.wbrels,-1,"sharedStrings."+r,rt.SST)),l="xl/workbook."+r,Ye(o,l,Aw(t,l)),a.workbooks.push(l),lt(e.rels,1,l,rt.WB),l="xl/theme/theme1.xml",Ye(o,l,uh(t.Themes,e)),a.themes.push(l),lt(e.wbrels,-1,"theme/theme1.xml",rt.THEME),l="xl/styles."+r,Ye(o,l,Fw(t,l,e)),a.styles.push(l),lt(e.wbrels,-1,"styles."+r,rt.STY),t.vbaraw&&n&&(l="xl/vbaProject.bin",Ye(o,l,t.vbaraw),a.vba.push(l),lt(e.wbrels,-1,"vbaProject.bin",rt.VBA)),l="xl/metadata."+r,Ye(o,l,Dw(l)),a.metadata.push(l),lt(e.wbrels,-1,"metadata."+r,rt.XLMETA),Ye(o,"[Content_Types].xml",Nc(a,e)),Ye(o,"_rels/.rels",Zi(e.rels)),Ye(o,"xl/_rels/workbook."+r+".rels",Zi(e.wbrels)),delete e.revssf,delete e.ssf,o}function ST(t,e){ea=1024,t&&!t.SSF&&(t.SSF=xr(At)),t&&t.SSF&&(Zs(),Js(t.SSF),e.revssf=Qs(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,es?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=ph.indexOf(e.bookType)>-1,a=Lc();Of(e=e||{});var o=rf(),l="",u=0;if(e.cellXfs=[],Jn(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),l="docProps/core.xml",Ye(o,l,Bc(t.Props,e)),a.coreprops.push(l),lt(e.rels,2,l,rt.CORE_PROPS),l="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var h=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&h.push(t.SheetNames[c]);t.Props.SheetNames=h}t.Props.Worksheets=t.Props.SheetNames.length,Ye(o,l,Uc(t.Props)),a.extprops.push(l),lt(e.rels,3,l,rt.EXT_PROPS),t.Custprops!==t.Props&&Kt(t.Custprops||{}).length>0&&(l="docProps/custom.xml",Ye(o,l,Wc(t.Custprops)),a.custprops.push(l),lt(e.rels,4,l,rt.CUST_PROPS));var p=["SheetJ5"];for(e.tcid=0,u=1;u<=t.SheetNames.length;++u){var g={"!id":{}},x=t.Sheets[t.SheetNames[u-1]],_=(x||{})["!type"]||"sheet";switch(_){case"chart":default:l="xl/worksheets/sheet"+u+"."+r,Ye(o,l,Ch(u-1,e,t,g)),a.sheets.push(l),lt(e.wbrels,-1,"worksheets/sheet"+u+"."+r,rt.WS[0])}if(x){var y=x["!comments"],v=!1,A="";if(y&&y.length>0){var M=!1;y.forEach(function(B){B[1].forEach(function(L){L.T==!0&&(M=!0)})}),M&&(A="xl/threadedComments/threadedComment"+u+"."+r,Ye(o,A,tv(y,p,e)),a.threadedcomments.push(A),lt(g,-1,"../threadedComments/threadedComment"+u+"."+r,rt.TCMNT)),A="xl/comments"+u+"."+r,Ye(o,A,dh(y)),a.comments.push(A),lt(g,-1,"../comments"+u+"."+r,rt.CMNT),v=!0}x["!legacy"]&&v&&Ye(o,"xl/drawings/vmlDrawing"+u+".vml",hh(u,x["!comments"])),delete x["!comments"],delete x["!legacy"]}g["!id"].rId1&&Ye(o,kc(l),Zi(g))}return e.Strings!=null&&e.Strings.length>0&&(l="xl/sharedStrings."+r,Ye(o,l,rh(e.Strings,e)),a.strs.push(l),lt(e.wbrels,-1,"sharedStrings."+r,rt.SST)),l="xl/workbook."+r,Ye(o,l,Oh(t)),a.workbooks.push(l),lt(e.rels,1,l,rt.WB),l="xl/theme/theme1.xml",Ye(o,l,uh(t.Themes,e)),a.themes.push(l),lt(e.wbrels,-1,"theme/theme1.xml",rt.THEME),l="xl/styles."+r,Ye(o,l,oh(t,e)),a.styles.push(l),lt(e.wbrels,-1,"styles."+r,rt.STY),t.vbaraw&&n&&(l="xl/vbaProject.bin",Ye(o,l,t.vbaraw),a.vba.push(l),lt(e.wbrels,-1,"vbaProject.bin",rt.VBA)),l="xl/metadata."+r,Ye(o,l,ch()),a.metadata.push(l),lt(e.wbrels,-1,"metadata."+r,rt.XLMETA),p.length>1&&(l="xl/persons/person.xml",Ye(o,l,rv(p)),a.people.push(l),lt(e.wbrels,-1,"persons/person.xml",rt.PEOPLE)),Ye(o,"[Content_Types].xml",Nc(a,e)),Ye(o,"_rels/.rels",Zi(e.rels)),Ye(o,"xl/_rels/workbook."+r+".rels",Zi(e.wbrels)),delete e.revssf,delete e.ssf,o}function AT(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=Cn(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Bh(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return Ha(e.file,ct.write(t,{type:nt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return ct.write(t,e)}function CT(t,e){var r=xr(e||{}),n=ET(t,r);return FT(n,r)}function FT(t,e){var r={},n=nt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var a=t.FullPaths?ct.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(e.type=="binary"||e.type=="base64")return a;a=new Uint8Array(Gs(a))}return e.password&&typeof encrypt_agile<"u"?Bh(encrypt_agile(a,e.password),e):e.type==="file"?Ha(e.file,a):e.type=="string"?za(a):a}function bT(t,e){var r=e||{},n=zw(t,r);return Bh(n,r)}function vn(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return $a(Dn(n));case"binary":return Dn(n);case"string":return t;case"file":return Ha(e.file,n,"utf8");case"buffer":return nt?Fn(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):vn(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function OT(t,e){switch(e.type){case"base64":return $a(t);case"binary":return t;case"string":return t;case"file":return Ha(e.file,t,"binary");case"buffer":return nt?Fn(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function vo(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?$a(r):e.type=="string"?za(r):r;case"file":return Ha(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function $h(t,e){rg(),pw(t);var r=xr(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=$h(t,r);return r.type="array",Gs(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=t.SheetNames.indexOf(r.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return vn(Hw(t,r),r);case"slk":case"sylk":return vn(cx.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"htm":case"html":return vn(Rh(t.Sheets[t.SheetNames[a]],r),r);case"txt":return OT(Wh(t.Sheets[t.SheetNames[a]],r),r);case"csv":return vn(Df(t.Sheets[t.SheetNames[a]],r),r,"\uFEFF");case"dif":return vn(hx.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"dbf":return vo(ux.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"prn":return vn(dx.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"rtf":return vn(wx.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"eth":return vn(eh.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"fods":return vn(Mh(t,r),r);case"wk1":return vo(th.sheet_to_wk1(t.Sheets[t.SheetNames[a]],r),r);case"wk3":return vo(th.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),vo(Ih(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),bT(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return CT(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function DT(t,e,r,n,a,o,l,u){var h=jt(r),c=u.defval,p=u.raw||!Object.prototype.hasOwnProperty.call(u,"raw"),g=!0,x=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!l||t[r])for(var _=e.s.c;_<=e.e.c;++_){var y=l?t[r][_]:t[n[_]+h];if(y===void 0||y.t===void 0){if(c===void 0)continue;o[_]!=null&&(x[o[_]]=c);continue}var v=y.v;switch(y.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(o[_]!=null){if(v==null)if(y.t=="e"&&v===null)x[o[_]]=null;else if(c!==void 0)x[o[_]]=c;else if(p&&v===null)x[o[_]]=null;else continue;else x[o[_]]=p&&(y.t!=="n"||y.t==="n"&&u.rawNumbers!==!1)?v:In(y,v,u);v!=null&&(g=!1)}}return{row:x,isempty:g}}function _o(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,o=[],l=0,u="",h={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},p=c.range!=null?c.range:t["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof p){case"string":h=pt(p);break;case"number":h=pt(t["!ref"]),h.s.r=p;break;default:h=p}n>0&&(a=0);var g=jt(h.s.r),x=[],_=[],y=0,v=0,A=Array.isArray(t),M=h.s.r,B=0,L={};A&&!t[M]&&(t[M]=[]);var X=c.skipHidden&&t["!cols"]||[],se=c.skipHidden&&t["!rows"]||[];for(B=h.s.c;B<=h.e.c;++B)if(!(X[B]||{}).hidden)switch(x[B]=tr(B),r=A?t[M][B]:t[x[B]+g],n){case 1:o[B]=B-h.s.c;break;case 2:o[B]=x[B];break;case 3:o[B]=c.header[B-h.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),u=l=In(r,null,c),v=L[l]||0,!v)L[l]=1;else{do u=l+"_"+v++;while(L[u]);L[l]=v,L[u]=1}o[B]=u}for(M=h.s.r+a;M<=h.e.r;++M)if(!(se[M]||{}).hidden){var ce=DT(t,h,M,x,n,o,A,c);(ce.isempty===!1||(n===1?c.blankrows!==!1:!!c.blankrows))&&(_[y++]=ce.row)}return _.length=y,_}var Uh=/"/g;function IT(t,e,r,n,a,o,l,u){for(var h=!0,c=[],p="",g=jt(r),x=e.s.c;x<=e.e.c;++x)if(!!n[x]){var _=u.dense?(t[r]||[])[x]:t[n[x]+g];if(_==null)p="";else if(_.v!=null){h=!1,p=""+(u.rawNumbers&&_.t=="n"?_.v:In(_,null,u));for(var y=0,v=0;y!==p.length;++y)if((v=p.charCodeAt(y))===a||v===o||v===34||u.forceQuotes){p='"'+p.replace(Uh,'""')+'"';break}p=="ID"&&(p='"ID"')}else _.f!=null&&!_.F?(h=!1,p="="+_.f,p.indexOf(",")>=0&&(p='"'+p.replace(Uh,'""')+'"')):p="";c.push(p)}return u.blankrows===!1&&h?null:c.join(l)}function Df(t,e){var r=[],n=e==null?{}:e;if(t==null||t["!ref"]==null)return"";var a=pt(t["!ref"]),o=n.FS!==void 0?n.FS:",",l=o.charCodeAt(0),u=n.RS!==void 0?n.RS:`
131
131
  `,h=u.charCodeAt(0),c=new RegExp((o=="|"?"\\|":o)+"+$"),p="",g=[];n.dense=Array.isArray(t);for(var x=n.skipHidden&&t["!cols"]||[],_=n.skipHidden&&t["!rows"]||[],y=a.s.c;y<=a.e.c;++y)(x[y]||{}).hidden||(g[y]=tr(y));for(var v=0,A=a.s.r;A<=a.e.r;++A)(_[A]||{}).hidden||(p=IT(t,a,A,g,l,h,o,n),p!=null&&(n.strip&&(p=p.replace(c,"")),(p||n.blankrows!==!1)&&r.push((v++?u:"")+p)));return delete n.dense,r.join("")}function Wh(t,e){e||(e={}),e.FS=" ",e.RS=`
132
- `;var r=Df(t,e);return r}function RT(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=pt(t["!ref"]),o="",l=[],u,h=[],c=Array.isArray(t);for(u=a.s.c;u<=a.e.c;++u)l[u]=tr(u);for(var p=a.s.r;p<=a.e.r;++p)for(o=jt(p),u=a.s.c;u<=a.e.c;++u)if(e=l[u]+o,r=c?(t[p]||[])[u]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}h[h.length]=e+"="+n}return h}function Hh(t,e,r){var n=r||{},a=+!n.skipHeader,o=t||{},l=0,u=0;if(o&&n.origin!=null)if(typeof n.origin=="number")l=n.origin;else{var h=typeof n.origin=="string"?Wt(n.origin):n.origin;l=h.r,u=h.c}var c,p={s:{c:0,r:0},e:{c:u,r:l+e.length-1+a}};if(o["!ref"]){var g=pt(o["!ref"]);p.e.c=Math.max(p.e.c,g.e.c),p.e.r=Math.max(p.e.r,g.e.r),l==-1&&(l=g.e.r+1,p.e.r=l+e.length-1+a)}else l==-1&&(l=0,p.e.r=e.length-1+a);var x=n.header||[],_=0;e.forEach(function(v,A){Kt(v).forEach(function(M){(_=x.indexOf(M))==-1&&(x[_=x.length]=M);var B=v[M],L="z",X="",se=ot({c:u+_,r:l+A+a});c=ns(o,se),B&&typeof B=="object"&&!(B instanceof Date)?o[se]=B:(typeof B=="number"?L="n":typeof B=="boolean"?L="b":typeof B=="string"?L="s":B instanceof Date?(L="d",n.cellDates||(L="n",B=mr(B)),X=n.dateNF||At[14]):B===null&&n.nullError&&(L="e",B=0),c?(c.t=L,c.v=B,delete c.w,delete c.R,X&&(c.z=X)):o[se]=c={t:L,v:B},X&&(c.z=X))})}),p.e.c=Math.max(p.e.c,u+x.length-1);var y=jt(l);if(a)for(_=0;_<x.length;++_)o[tr(_+u)+y]={t:"s",v:x[_]};return o["!ref"]=Lt(p),o}function LT(t,e){return Hh(null,t,e)}function ns(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=Wt(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?ns(t,ot(e)):ns(t,ot({r:e,c:r||0}))}function NT(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function kT(){return{SheetNames:[],Sheets:{}}}function PT(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var o=r.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var l=o&&o[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=l+a)!=-1;++a);}if(bh(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function MT(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=NT(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function BT(t,e){return t.z=e,t}function Vh(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function $T(t,e,r){return Vh(t,"#"+e,r)}function UT(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function WT(t,e,r,n){for(var a=typeof e!="string"?e:pt(e),o=typeof e=="string"?e:Lt(e),l=a.s.r;l<=a.e.r;++l)for(var u=a.s.c;u<=a.e.c;++u){var h=ns(t,l,u);h.t="n",h.F=o,delete h.v,l==a.s.r&&u==a.s.c&&(h.f=r,n&&(h.D=!0))}return t}var If={encode_col:tr,encode_row:jt,encode_cell:ot,encode_range:Lt,decode_col:hf,decode_row:cf,split_cell:nm,decode_cell:Wt,decode_range:Dr,format_cell:In,sheet_add_aoa:Ac,sheet_add_json:Hh,sheet_add_dom:Lh,aoa_to_sheet:ji,json_to_sheet:LT,table_to_sheet:Nh,table_to_book:hT,sheet_to_csv:Df,sheet_to_txt:Wh,sheet_to_json:_o,sheet_to_html:Rh,sheet_to_formulae:RT,sheet_to_row_object_array:_o,sheet_get_cell:ns,book_new:kT,book_append_sheet:PT,book_set_sheet_visibility:MT,cell_set_number_format:BT,cell_set_hyperlink:Vh,cell_set_internal_link:$T,cell_add_comment:UT,sheet_set_array_formula:WT,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const gb="",HT={name:"yzlTable",components:{TableColumnsManager:Zp},mixins:[vp,_p,Dl],props:{data:{type:Array},columns:Array,pageInfo:{type:Object},loadingDelay:{type:Number,default:200},columnDefault:{type:Object},globalConfig:{type:Object},exports:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})},tableId:{type:String,default:""},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{localColumns:[],initialColumns:[],serverColumns:[],dynamicColumns:[],columnsReady:!1,tableColumnsVisiable:!1,finallyColumns:[],selection:null,isFullscreen:!1}},watch:{columns:{handler(t){this.initialColumns=this.processColumns([...t]),this.localColumns=this.processColumns([...t])},immediate:!0},tableId:{handler(t,e){if(t!==e)if(t){if(this.loadingLock)return;this.loadingLock=!0,this.serverColumns=[],this.columnsReady=!1,this.fetchServerColumns().finally(()=>this.loadingLock=!1)}else this.columnsReady=!0},immediate:!0}},computed:{comp_columns(){if(!this.columnsReady)return[];let t=this.serverColumns.length>0?this.handleServerColumns([...this.serverColumns]):[...this.localColumns];const e=this.insertDynamicColumns(t);this.finallyColumns=[...e];const r=this.finallyColumns.findIndex(n=>n.type==="selection");return r!==-1&&(this.selection=this.finallyColumns.splice(r,1)[0]||null),this.finallyColumns.length?this.finallyColumns:[]},attrs(){const{"row-class-name":t,...e}=this.$attrs;return Object.assign({},this.globalConfig.table,e)},mergedListeners(){const t={...this.$listeners},e=r=>(...n)=>{var h;r==null||r(...n);const[a,o,l]=n,u=this.finallyColumns.findIndex(c=>c.prop===l.property);if(u>=0){if(u===this.finallyColumns.length-1){this.finallyColumns[u].width="",this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())});return}this.finallyColumns[u].width=a,(h=this.$bus)==null||h.$emit("table-columns-resized",{tableId:this.tableId,columns:this.finallyColumns.filter(c=>!c.isDynamic)})}this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())})};return t["header-dragend"]=e(t["header-dragend"]),t},mergedLocalColumns(){return this.mergedEnableDynamic?[...this.localColumns,...this.dynamicColumns]:this.localColumns},mergedEnableDynamic(){var e;return this.enableDynamicInSetting?this.enableDynamicInSetting:(e=this.globalConfig)==null?void 0:e.enableDynamicInSetting}},created(){this.isFullscreen=!!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.isFullscreen=!!document.fullscreenElement})},mounted(){this.initVirtualScroll()},methods:{getRowKey(t){var r;const e=this.rowKey||((r=this.model)==null?void 0:r.rowKey);return e&&t[e]!==void 0?t[e]:(this.selection&&!e&&console.warn("[yzlTable] \u5F53\u4F7F\u7528\u884C\u9009\u62E9\u529F\u80FD\u65F6\uFF0C\u5EFA\u8BAE\u914D\u7F6E\u6709\u6548\u7684 rowKey\uFF08\u8BF7\u5728\u8868\u683C\u4E2D\u914D\u7F6E :row-key \u6216 model.rowKey\uFF09,\u5F53\u524D\u6570\u636E\u884C\u7684\u53EF\u7528\u952E\uFF1A",Object.keys(t)),Symbol("fallbackRowKey"))},handleServerColumns(t){const e=[...this.localColumns];if(!t.some(r=>r.type==="selection")){const r=this.localColumns.find(n=>n.type==="selection");r&&t.unshift({...r})}return t.forEach(r=>{const n=e.find(a=>a.label===r.label);n&&Object.assign(r,{align:n.align||r.align,headerAlign:n.headerAlign||r.headerAlign,label:n.label||r.label,...r.label===this.$t("Table.operation")?n:Qp.omit(n,["width","minWidth"])})}),t},insertDynamicColumns(t){const e=[...t];return this.mergedEnableDynamic||this.dynamicColumns.forEach(r=>{const n=r.position===-1?e.length:Math.min(r.position,e.length);e.splice(n,0,r)}),e},async fetchServerColumns(){var t,e;if(((e=(t=this.globalConfig)==null?void 0:t.api)==null?void 0:e.getTableColumnAPI)&&this.tableId)try{const r=this.globalConfig.api.getTableColumnAPI.replace(/\{table_id\}/g,this.tableId),n=await this.$http.get(r);if(n.fieldJson){const a=JSON.parse(n.fieldJson);this.serverColumns=a.map(o=>typeof o=="string"?JSON.parse(o):o)}else this.handleColumnsUpdate(this.processColumns([...this.initialColumns]))}catch(r){console.error("\u5217\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25:",r),this.localColumns=this.processColumns([...this.initialColumns])}finally{this.columnsReady=!0}else this.columnsReady=!0},processColumns(t){return t.map(r=>{var a,o;const n={...(a=this.globalConfig)==null?void 0:a.tableColumn,...this.columnDefault,...r,...Ol.handleFormatter(r)};if(n.width)n.minWidth=void 0;else if(!n.minWidth){const l=((o=n.label)==null?void 0:o.length)||0;n.minWidth=[90,110,130,150,170][l-4]||90}return n})},openTableHeadDialog(){this.tableColumnsVisiable=!0},handleColumnsUpdate(t){var e;this.serverColumns=[...t],this.columnsReady=!1,this.$nextTick(()=>{this.columnsReady=!0,this.$nextTick(()=>{this.$refs.yzlTable&&(this.$refs.yzlTable.doLayout(),this.$refs.yzlTable.store.scheduleLayout(!0))})});try{(e=this.$bus)==null||e.$emit("table-columns-resized",{tableId:this.tableId,columns:t})}catch(r){console.error("\u4E8B\u4EF6\u89E6\u53D1\u5931\u8D25:",r)}},exportExcel(){const t=If.book_new(),e=this.data.reduce((l,u)=>{const h={};return this.columns.forEach(c=>{h[c.label]=u[c.prop]}),l.push(h),l},[]),r=If.json_to_sheet(e);If.book_append_sheet(t,r,"Sheet1");const n=$h(t,{bookType:"xlsx",type:"array"}),a=new Blob([n],{type:"application/octet-stream"}),o=new Date().toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/[\/\s:]/g,"").slice(0,12);Fs.exports.saveAs(a,`${o}${this.tableId?`_${this.tableId}`:""}.xlsx`)},async handleExport(t){if(this.exportsLocal)this.exportExcel();else{const{api:e,tableId:r,fileName:n,onSearch:a,onPages:o,exportParams:l}=this.exports;try{this.startLoading(),await new wp(this,{api:e,fileName:n,onSearch:a,onPages:o}).execute({tableId:r||this.tableId,...l},t)}finally{this.stopLoading()}}},tableRowClassName({row:t,rowIndex:e}){const r=this.$attrs["row-class-name"];return[typeof r=="function"?r({row:t,rowIndex:e}):typeof r=="string"?r:"",e%2===0?"single-row":"double-row"].filter(a=>a).join(" ")},addColumn(t,e=-1){const r=[].concat(t).map(n=>({...n,position:e,isDynamic:!0}));this.dynamicColumns.push(...r),this.$nextTick(()=>this.doLayout())},resetColumns(){this.dynamicColumns=[],this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.yzlTable?this.doLayout():(console.warn("\u8868\u683C\u5B9E\u4F8B\u672A\u5C31\u7EEA\uFF0C\u5EF6\u8FDF\u91CD\u8BD5\u5E03\u5C40"),setTimeout(()=>{var t,e;return(e=(t=this.$refs.yzlTable)==null?void 0:t.doLayout)==null?void 0:e.call(t)},100))})})},toggleRowSelection(){this.$refs.yzlTable.toggleRowSelection.apply(this,Array.from(arguments))},clearSelection(){var t,e;(e=(t=this.$refs.yzlTable)==null?void 0:t.clearSelection)==null||e.apply(this,Array.from(arguments))},setCurrentRow(t){this.$refs.yzlTable.setCurrentRow.apply(this,[t])},toggleAllSelection(){var t;(t=this.$refs.yzlTable)==null||t.toggleAllSelection()},doLayout(){this.$refs.yzlTable.doLayout()}}};var VT=function(){var e=this,r=e._self._c;return r("div",{ref:"tableContainer",staticClass:"yzl-table-wrapper"},[e.columnsReady?r("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.mergedLoading,expression:"mergedLoading"}],ref:"yzlTable",attrs:{"data-table-id":e.tableId,height:"100%","row-key":e.getRowKey,"header-row-class-name":"yzl-table-header",data:e.enableDeferRender?e.renderedData:e.tableData,pageInfo:e.pageInfo,"element-loading-delay":e.loadingDelay,"row-class-name":e.tableRowClassName},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"el-table",e.attrs,!1),e.mergedListeners),[e.selection?r("el-table-column",e._b({attrs:{type:"selection",width:e.selection.width||55}},"el-table-column",e.selection,!1)):e._e(),e.showIndex?r("el-table-column",{attrs:{type:"index",label:"\u5E8F\u53F7",width:"50",align:"center"},scopedSlots:e._u([{key:"header",fn:function(n){var a,o,l,u;return[e.tableId||((a=e.exports)==null?void 0:a.api)||e.exportsLocal?r("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:!e.isFullscreen,expression:"!isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[((o=e.exports)==null?void 0:o.api)||e.exportsLocal?r("el-dropdown-item",{nativeOn:{click:function(h){return e.handleExport.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.export")))]):e._e(),e.tableId?r("el-dropdown-item",{nativeOn:{click:function(h){return e.openTableHeadDialog.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.config")))]):e._e()],1)],1):e._e(),e.tableId||((l=e.exports)==null?void 0:l.api)||e.exportsLocal?r("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:e.isFullscreen,expression:"isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{staticStyle:{"font-weight":"normal"},attrs:{slot:"dropdown","append-to-body":!1},slot:"dropdown"},[((u=e.exports)==null?void 0:u.api)||e.exportsLocal?r("el-dropdown-item",{nativeOn:{click:function(h){return e.handleExport.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.export")))]):e._e(),e.tableId?r("el-dropdown-item",{nativeOn:{click:function(h){return e.openTableHeadDialog.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.config")))]):e._e()],1)],1):r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})])]}},{key:"default",fn:function(n){return[e._v(" "+e._s(e.pageInfo?(e.pageInfo.page-1)*e.pageInfo.size+n.$index+1:n.$index+1)+" ")]}}],null,!1,3326427281)}):e._e(),e._l(e.comp_columns,function(n,a){return r("el-table-column",e._b({key:n.prop||n.key||a,attrs:{prop:n.prop||n.key},scopedSlots:e._u([n.slotName?{key:"default",fn:function(o){return[e._t(n.slotName,null,{row:o.row,index:o.$index,column:n})]}}:null],null,!0)},"el-table-column",n,!1),[n.children?e._l(n.children,function(o,l){return r("el-table-column",e._b({key:o.prop||o.key||l,attrs:{prop:o.prop||o.key},scopedSlots:e._u([o.slotName?{key:"default",fn:function(u){return[e._t(o.slotName,null,{row:u.row,index:u.$index,column:o})]}}:null],null,!0)},"el-table-column",o,!1))}):e._e()],2)})],2):e._e(),r("TableColumnsManager",{attrs:{visible:e.tableColumnsVisiable,"table-id":e.tableId,serverColumns:e.serverColumns,localColumns:e.mergedLocalColumns},on:{"update:visible":function(n){e.tableColumnsVisiable=n},"columns-updated":e.handleColumnsUpdate}})],1)},zT=[],GT=$t(HT,VT,zT,!1,null,null,null,null);const wo=GT.exports;wo.install=function(t){t.component(wo.name,wo)};const mb="",XT={name:"yzlPagination",props:{pageInfo:{type:Object,default:()=>({total:0,size:50,page:1,hasMore:!1})},pageSizes:{type:Array,default:()=>[10,20,30,50,100,200,500,1e3]},layout:{type:String,default:"sizes, prev, pager, next, jumper"},align:{type:String,default:"right"},globalConfig:{type:Object},paginationTotalCount:{type:Number,default:null}},computed:{computedLayout(){return this.paginationTotalCount?this.layout.replace("total,",""):this.layout}},methods:{handleSizeChange(t){this.pageInfo.page=1,this.pageInfo.size=t,this.$emit("updateTable",t)},handleCurrentChange(t){this.pageInfo.page=t,this.$emit("updateTable",t)}}};var KT=function(){var e=this,r=e._self._c;return r("div",{class:["yzl-pagination-wrapper",e.align]},[r("el-pagination",e._b({attrs:{"current-page":e.pageInfo.page,"page-sizes":e.pageSizes,"page-size":e.pageInfo.size,layout:e.computedLayout,total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(n){return e.$set(e.pageInfo,"page",n)},"update:current-page":function(n){return e.$set(e.pageInfo,"page",n)},"update:pageSize":function(n){return e.$set(e.pageInfo,"size",n)},"update:page-size":function(n){return e.$set(e.pageInfo,"size",n)}}},"el-pagination",e.$attrs,!1)),e.paginationTotalCount?r("div",{staticClass:"el-pagination is-background"},[r("div",{staticClass:"el-pagination__total",staticStyle:{"line-height":"28px"}},[e._v(" "+e._s(e.$t("Pagination.total",[e.pageInfo.total||0]))+"\uFF0C"+e._s(e.$t("Pagination.selected",[e.paginationTotalCount]))+" ")])]):e._e()],1)},YT=[],jT=$t(XT,KT,YT,!1,null,null,null,null);const To=jT.exports;To.install=function(t){t.component(To.name,To)};const xb="",qT={name:"yzlForm",props:{schema:{type:[Object,Array],required:!0},value:{required:!0},rules:{type:Object},searchMore:{type:Boolean,default:!1},globalConfig:{type:Object}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},normalizedSchema(){const t=(r,n)=>{var o,l;const a={clearable:(l=(o=this.globalConfig)==null?void 0:o.tableColumn)==null?void 0:l.clearable,...typeof r=="object"?r:{},key:(r==null?void 0:r.key)||n};if(!a.placeholder){const u=a.component;/^el-input/.test(u)?a.placeholder=this.$t("Form.input")+(a.label||""):/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/i.test(u)&&(a.placeholder=this.$t("Form.select")+(a.label||""))}return Array.isArray(a.rules)&&a.rules.forEach(u=>{!u.message&&!u.validator&&(u.message=a.placeholder)}),a};return Array.isArray(this.schema)?this.schema.map(r=>t(r,r.key)):Object.entries(this.schema).map(([r,n])=>t(n,r))},mergeRules(){return Array.isArray(this.schema)?{...this.schema.reduce((e,r)=>(r.rules&&(e[r.key]=r.rules),e),{}),...this.rules}:{...this.schema.rules,...this.rules}}},data(){return{isInDialog:!1}},mounted(){this.isInDialog=this.checkAncestorWithClass(this.$refs.yzlForm.$el,"el-dialog")},methods:{validate(t){return this.$refs.yzlForm.validate(t)},clearValidate(){return this.$refs.yzlForm.clearValidate()},resetFields(){return this.$refs.yzlForm.resetFields()},checkAncestorWithClass(t,e){if(t.classList&&t.classList.contains(e))return!0;let r=t.parentElement;for(;r;){if(r.classList&&r.classList.contains(e))return!0;r=r.parentElement}return!1}}};var JT=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-form-wrapper"},[r("el-row",{staticClass:"yzl-form-grid"},[r("el-form",e._g(e._b({ref:"yzlForm",attrs:{model:e.inValue,rules:e.mergeRules}},"el-form",e.$attrs,!1),e.$listeners),[e._l(e.normalizedSchema,function(n,a){return[n&&(e.searchMore||(typeof(n==null?void 0:n.hidden)=="function"?!(n!=null&&n.hidden()):!(n!=null&&n.hidden)))?r("yzlFormItem",{key:n==null?void 0:n.key,attrs:{"data-k":n==null?void 0:n.key,model:e.inValue,schema:n,isInDialog:e.isInDialog,name:n==null?void 0:n.key},on:{"update:model":function(o){e.inValue=o}},scopedSlots:e._u([n!=null&&n.hasOwnProperty("slotName")?{key:n.slotName,fn:function(o){return[e._t(n.slotName,null,null,o)]}}:null,e._l(e.$scopedSlots,function(o,l){return{key:l,fn:function(u){return[e._t(l,null,null,u)]}}})],null,!0),model:{value:e.inValue[n==null?void 0:n.key],callback:function(o){e.$set(e.inValue,n==null?void 0:n.key,o)},expression:"inValue[item?.key]"}}):e._e()]})],2)],1)],1)},ZT=[],QT=$t(qT,JT,ZT,!1,null,null,null,null);const Eo=QT.exports;Eo.install=function(t){t.component(Eo.name,Eo)};const Rf=(t,e)=>(...r)=>{t(...r,e)},eE=(t,e)=>Object.entries(t).reduce((r,[n,a])=>(typeof a=="function"&&(r[n]=Rf(a,e)),r),{}),tE=(t,e)=>t.reduce((r,n)=>(n.handler&&typeof n.handler=="function"?r[n.name]=Rf(n.handler,e):n.eventName&&typeof n.event=="function"&&(r[n.eventName]=Rf(n.event,e)),r),{});function bi(t,e={}){return t!=null&&t.events?typeof t.events=="object"&&!Array.isArray(t.events)?eE(t.events,e):tE(t.events,e):{}}const yo=(t={})=>{const e=[],r={chinese:{condition:o=>"chineseOnly"in o?o.chineseOnly:!1,handler:o=>o.replace(/[^\u4e00-\u9fa5\s]/g,"")},space:{condition:o=>"noSpace"in o?o.noSpace:!0,handler:o=>o.replace(/\s/g,"")},specialSymbol:{condition:o=>"noSpecialSymbol"in o?o.noSpecialSymbol:!1,handler:o=>o.replace(/[^a-zA-Z0-9]/g,"")}},n=(...o)=>(o.forEach(l=>{r[l]&&e.push(r[l])}),a),a=(o,l)=>e.reduce((u,{condition:h,handler:c})=>h(l)?c(u):u,String(o));return a.extend=(o,l)=>(r[o]=l,a),{use:n,processor:a}},rE={name:"yzlDynamicFormItem",props:{schema:{type:Object,required:!0},name:{type:String,required:!0},value:{required:!0},model:{type:Object}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},componentName(){return this.schema.component},formItemAttrs(){const{label:t,required:e,rules:r,labelWidth:n}=this.schema;return{label:t,required:e,rules:r,labelWidth:n}},componentsAttrs(){const{label:t,col:e,rules:r,component:n,...a}=this.schema;return a},mergedListeners(){const t={...this.$listeners,...bi(this.schema,{content:this})};if(this.componentName==="el-input"){const e=t.input;let r=!1;const n=yo().use("chinese","space","specialSymbol");this.schema.hasOwnProperty("noSpace")&&typeof this.schema.noSpace!="boolean"&&console.error("[yzlDynamicFormItem] noSpace \u53EA\u652F\u6301 boolean \u7C7B\u578B\uFF0C\u5F53\u524D\u503C\uFF1A",this.schema.noSpace);const a=o=>{var l;if(!r){let u=n(o,this.schema);if((l=this.schema.events)!=null&&l.input){const h=this.schema.events.input(u,{content:this});u=h!==void 0?h:u}e==null||e(u),this.$emit("input",u)}};t.input=a,t.compositionstart=()=>r=!0,t.compositionend=o=>{r=!1;const l=n(o.target.value,this.schema);a(l)}}return t},mergedStyle(){const t={width:this.schema.width||"100%"};if(typeof this.schema.style=="string"){const e=this.schema.style.split(";").reduce((r,n)=>{const[a,o]=n.split(":").map(l=>l.trim());return a&&o&&(r[a]=o),r},{});return{...t,...e}}return{...t,...this.schema.style}}}};var nE=function(){var e=this,r=e._self._c;return r("el-form-item",e._b({attrs:{prop:e.name}},"el-form-item",e.formItemAttrs,!1),[e.componentName?r(e.componentName,e._g(e._b({ref:e.name,tag:"component",style:e.mergedStyle,attrs:{model:e.model,name:e.name,schema:e.schema},on:{"update:model":function(n){e.model=n}},scopedSlots:e._u([e.schema.slotName?{key:e.schema.slotName,fn:function(n){return[e._t(e.schema.slotName,null,null,{...n,item:e.schema,data:e.inValue,fmRef:e.$refs[`${e.name}Ref`]})]}}:null,e._l(e.$scopedSlots,function(n,a){return{key:a,fn:function(o){return[e._t(a,null,null,o)]}}})],null,!0),model:{value:e.inValue,callback:function(n){e.inValue=n},expression:"inValue"}},"component",e.componentsAttrs,!1),e.mergedListeners)):e._t(e.schema.slotName,null,{item:e.schema,data:e.inValue,fmRef:e.$refs[`${e.name}Ref`]})],2)},iE=[],aE=$t(rE,nE,iE,!1,null,null,null,null);const sE={name:"yzlFormItem",components:{YzlDynamicFormItem:aE.exports},props:{value:{required:!0},model:{type:Object},schema:{type:Object,required:!0},name:String,globalConfig:{type:Object},isInDialog:{type:Boolean}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},col(){var e;let t;if(this.schema.hasOwnProperty("col")&&JSON.stringify(this.schema.col)!=="{}")t=Object.assign({},this.schema.col);else if(this.schema.hasOwnProperty("span"))t=Object.assign({},{span:this.schema.span});else{const r=(((e=this.globalConfig)==null?void 0:e.searchForm)||{})[this.isInDialog?"dialogCol":"col"]||{};t=Object.assign({},r)}return t},colComponent(){var r,n;const t=this.schema.hasOwnProperty("col")||this.schema.hasOwnProperty("span"),e=!!((n=(r=this.globalConfig)==null?void 0:r.searchForm)!=null&&n[this.isInDialog?"dialogCol":"col"]);return t||e?"el-col":"div"},shouldShow(){var t;return typeof((t=this.schema)==null?void 0:t.visible)=="function"?this.schema.visible(this.model,this.schema):!0}}};var oE=function(){var e=this,r=e._self._c;return e.shouldShow?r(e.colComponent,e._b({tag:"component"},"component",e.col,!1),[r("yzlDynamicFormItem",e._g(e._b({attrs:{model:e.model,schema:e.schema,name:e.name},on:{"update:model":function(n){e.model=n}},scopedSlots:e._u([e.schema.hasOwnProperty("slotName")?{key:e.schema.slotName,fn:function(n){return[e._t(e.schema.slotName,null,{vBind:n})]}}:null,e._l(e.$scopedSlots,function(n,a){return{key:a,fn:function(o){return[e._t(a,null,null,o)]}}})],null,!0),model:{value:e.inValue,callback:function(n){e.inValue=n},expression:"inValue"}},"yzlDynamicFormItem",e.$attrs,!1),e.$listeners))],1):e._e()},lE=[],fE=$t(sE,oE,lE,!1,null,null,null,null);const So=fE.exports;So.install=function(t){t.component(So.name,So)};class aa{static register(e,r){this.strategies.set(e,r)}static create(e,r,n){return(this.strategies.get(e)||this.strategies.get("default")).create(r,n)}}xp(aa,"strategies",new Map),aa.register("default",{create:(t,{form:e,excludeKeys:r})=>{const a=["el-select","yzlRangeInput","yzlRange","yzlDatePicker"].includes(t==null?void 0:t.component)?[]:"";if(r.has(t.key))return a;t.key in e||(e[t.key]=a)}}),aa.register("yzlCompositeSelect",{create:(t,{form:e,excludeKeys:r})=>{const n=Object.keys(t.children||{});if(n.length===0)return"";const a=t.key;return e[a]||(e[a]=n[0]),n.forEach(o=>{const l=t.children[o];l.key=o,l!=null&&l.alias?l.alias.forEach(u=>{u in e||(e[u]="")}):(l==null?void 0:l.component)&&!r.has(o)&&aa.create(l.component,l,{form:e,excludeKeys:r,parentKey:a})}),e[a]}}),aa.register("yzlRangeInput",{create:()=>[]});function Ao(t,e={},r={deep:!1}){const n={...e},a=new Set(r.exclude||[]);return Object.entries(t).forEach(([o,l])=>{a.has(o)||aa.create(l.component,{...l,key:o},{form:n,excludeKeys:a})}),n}const _b="",uE={name:"yzlPagelist",mixins:[Dl],props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})},searchs:{type:Object,default:null},columns:{type:Array,default:null},exports:{type:Object,default:null},isPagination:{type:Boolean,default:!0},hideSearch:{type:Boolean,default:!1},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},globalConfig:{type:Object},api:{type:Function},enableVirtualScroll:{type:Boolean,default:!1},enableEnterSearch:{type:Boolean,default:!0},tableId:{type:String,default:void 0},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},paginationTotalCount:{type:Number,default:null},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.mergedSearchs).length>0},mergedSearchs(){return this.searchs||this.config.searchs||{}},mergedExports(){return this.exports||this.config.exports||{}},mergedColumns(){return this.columns||this.config.columns||[]},mergedAutoReload(){var e,r;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(r=(e=this.globalConfig)==null?void 0:e.autoReloadOnReset)!=null?r:!1},localData(){const t=this.data||{},{pageInfo:e,data:r,...n}=this.data;if(this.mergedSearchs){const a=Ao(this.mergedSearchs,n,{exclude:["_slotSearchButtons"]});Object.keys(a).forEach(o=>{o in t||this.$set(t,o,a[o])})}return this.data.pageInfo||this.$set(this.data,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),t},searchSlots(){const t=this.mergedSearchs||{};return Object.keys(t).reduce((e,r)=>(t[r].slotName&&(e[r]=t[r]),e),{})},isHideSearchMore(){return!(Object.keys(this.mergedSearchs).findIndex(e=>{const r=this.mergedSearchs[e].hidden;return typeof r=="function"?r():r})>=0)},paginationAttrs(){var a,o;const{paginationLayout:t,paginationSmall:e,pageInfo:r}=this.$attrs,n={...this.globalConfig.pagination};return n.layout=t||((o=(a=this.globalConfig)==null?void 0:a.pagination)==null?void 0:o.layout),e&&(n.small=e),n},handleReset(){this.$emit("reset")},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const t=Object.values(this.mergedSearchs);return t.length===0?"auto":Math.max(...t.map(r=>(r.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},mounted(){var t;!this.mergedSearchs||this.api&&!((t=this.localData.data)!=null&&t.length)&&this.loadTableData()},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.mergedSearchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=Ao(this.mergedSearchs,this.data,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(t){if(this.enableEnterSearch)this.reloadTableData();else return console.log("\u975E\u56DE\u8F66\u641C\u7D22"),!1},async loadTableData(t=null){let e;if(this.api)try{this.startLoading(),await this.$nextTick(),e=await this.api(this.localData)}finally{this.$nextTick(()=>this.stopLoading()),this.$refs.inpRef.doLayout()}this.$emit("search",e,this.localData,t)},handleSearchReset(){Object.entries(this.resetForm).forEach(([t,e])=>{t!=="data"&&(this.localData[t]=e)}),this.$emit("reset",this.localData),this.mergedAutoReload&&!this.$listeners.reset&&this.reloadTableData()},reloadTableData(){this.data.pageInfo&&(this.data.pageInfo.page=1),this.loadTableData()},handleSearchMoreClick(){this.searchMore=!this.searchMore,this.searchMore&&this._setSearchHeight()},addColumn(...t){var e;(e=this.$refs.inpRef)==null||e.addColumn(...t)},resetColumns(...t){var e;(e=this.$refs.inpRef)==null||e.resetColumns(...t)},toggleRowSelection(t,e){var r;(r=this.$refs.inpRef)==null||r.toggleRowSelection(t,e)},clearSelection(){var t;(t=this.$refs.inpRef)==null||t.clearSelection()},toggleAllSelection(){var t;(t=this.$refs.inpRef)==null||t.toggleAllSelection()},setCurrentRow(t){var e;(e=this.$refs.inpRef)==null||e.setCurrentRow(t)},_setSearchHeight(){this.$nextTick(()=>{const t=this.$refs.PageListRef.$el.scrollHeight;this.$refs.PageListRef.$el.style.setProperty("--row-height",`${t}px`)})}}};var cE=function(){var n,a;var e=this,r=e._self._c;return r("div",{staticClass:"yzl-pagelist-wrapper"},[!e.hideSearch&&e.hasSearchForm?r("yzlForm",{ref:"PageListRef",staticClass:"yzl-search-wrapper",class:{"search-more":e.searchMore},attrs:{"label-width":e.computedLabelWidth,schema:e.mergedSearchs,searchMore:e.searchMore,value:e.localData,size:e.$attrs.size||((a=(n=e.globalConfig)==null?void 0:n.global)==null?void 0:a.size)||"mini","v-bind":e.$attrs,enableEnterSearch:e.enableEnterSearch},nativeOn:{submit:function(o){return o.preventDefault(),e.handleSubmit.apply(null,arguments)}},scopedSlots:e._u([e._l(e.searchSlots,function(o,l){return{key:o.slotName,fn:function(u){return[r("div",{key:l,staticStyle:{display:"flex","align-items":"center",width:"100%"}},[e._t(o.slotName,null,{row:u.row,searchItem:o,index:l})],2)]}}}),{key:"searchButtons",fn:function(){return[e.hideSearchButton?e._e():r("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":e.enableEnterSearch?"submit":"button",loading:e.mergedLoading},on:{click:function(o){e.enableEnterSearch||e.reloadTableData()}}},[e._v(e._s(e.$t("Pagelist.search")))]),e.hideSearchReset?e._e():r("el-button",{staticClass:"search-button",on:{click:e.handleSearchReset}},[e._v(e._s(e.$t("Pagelist.reset")))]),e._t("searchExpandButton"),!e.isHideSearchMore&&!e.hideSearchMore?r("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:e.handleSearchMoreClick}},[e._v(e._s(e.searchMore?e.$t("Pagelist.collapse"):e.$t("Pagelist.expand"))),r("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!e.searchMore}]})]):e._e()]},proxy:!0}],null,!0)}):e._e(),e.$slots.tableTop&&e.$slots.tableTop.length>0?r("div",{staticClass:"buttons-box"},[e._t("tableTop")],2):e._e(),e._t("noTable",function(){return[r("yzlTable",e._g(e._b({ref:"inpRef",staticClass:"flex-auto-full",attrs:{data:e.data.data,pageInfo:e.data.pageInfo,columns:e.mergedColumns,exports:e.mergedExports,loading:e.mergedLoading,useLoading:e.useLoading,model:e.localData,enableVirtualScroll:e.enableVirtualScroll,tableId:e.tableId||e.config.tableId||"",exportsLocal:e.exportsLocal,enableDynamicInSetting:e.enableDynamicInSetting,rowKey:e.rowKey,showIndex:e.showIndex},on:{"update:loading":o=>e.isLoading=o,search:e.loadTableData},scopedSlots:e._u([e._l(e.$scopedSlots,function(o,l){return{key:l,fn:function(u){return[e._t(l,null,null,u)]}}}),{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"yzlTable",e.$attrs,!1),e.$listeners))]}),e.isPagination?r("yzlPagination",e._g(e._b({staticClass:"pagination-style",attrs:{background:"",pageInfo:e.data.pageInfo,paginationTotalCount:e.paginationTotalCount},on:{updateTable:function(o){return e.loadTableData(!0)}}},"yzlPagination",e.paginationAttrs,!1),e.$listeners)):e._e()],2)},hE=[],dE=$t(uE,cE,hE,!1,null,"3e7f58fb",null,null);const Co=dE.exports;Co.install=function(t){t.component(Co.name,Co)};const wb="",pE={name:"yzlTree",props:{treeProps:{type:Object},hideSearchSwitch:{type:Boolean,default:!1},title:{type:String,default:""},flexible:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},globalConfig:{type:Object},isEdit:{type:Boolean,default:!0},placeholder:{type:String,default:""},hideSearchInput:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},nodeIcons:{type:Object,default:()=>({1:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-takeaway-box"},2:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-folder"},3:{type:"img",expand:"/images/expanded.png",collapse:"/images/collapsed.png"}})},hideExpandButton:{type:Boolean,default:!0}},data(){return{isExpand:!0,filterText:""}},computed:{isEditLocal:{get(){return this.isEdit},set(t){this.$emit("update:isEdit",t)}}},watch:{filterText(t){this.$refs.yzlTree.filter(t)}},methods:{handleNodeClick(t,e,r){this.resetParentNodesStyle(),this.setParentsStyle(r.$el)},setParentsStyle(t){let e=t.parentNode.parentNode;t.parentNode.classList.contains("el-tree")||e&&(e.firstChild.classList.add("highlight-parent"),this.setParentsStyle(e))},resetParentNodesStyle(){this.$refs.yzlTree.$el.querySelectorAll(".highlight-parent").forEach(e=>{e.classList.remove("highlight-parent")})},handleChangeExpand(){this.isExpand=!this.isExpand},handleItemClick(t,e,r){this.$emit("operate-click",t,e,r)},setCurrentKey(t){this.$refs.yzlTree.setCurrentKey(t)},setCurrentNode(t){this.$refs.yzlTree.setCurrentNode(t)},setCheckedKeys(t){this.$refs.yzlTree.setCheckedKeys(t)},setChecked(t,e,r){this.$refs.yzlTree.setChecked(t,e,r)}}};var gE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-tree-wrapper"},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isExpand,expression:"isExpand"}],staticClass:"content"},[e.title||!e.hideSearchSwitch?r("div",{staticClass:"buttons"},[r("span",{staticClass:"name"},[e._v(e._s(e.title))]),e.hideSearchSwitch?e._e():r("el-switch",{staticClass:"edit",attrs:{size:e.$attrs.size||e.globalConfig.global.size||"mini"},model:{value:e.isEditLocal,callback:function(n){e.isEditLocal=n},expression:"isEditLocal"}})],1):e._e(),e._t("search-top"),e.hideSearchInput?e._e():r("div",{staticClass:"search"},[r("el-input",{staticClass:"search-input",attrs:{placeholder:e.placeholder||e.$t("Form.input"),"suffix-icon":"el-icon-search",size:e.$attrs.size||e.globalConfig.global.size||"mini"},model:{value:e.filterText,callback:function(n){e.filterText=n},expression:"filterText"}})],1),r("el-tree",e._g(e._b({ref:"yzlTree",attrs:{"highlight-current":"",indent:8},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:n,data:a}){return r("span",{staticClass:"custom-tree-node"},[e._t("treeItem",function(){return[r("span",{staticClass:"left-align ellipsis"},[e.showIcon?[n.isCurrent&&e.nodeIcons[n.level].selected?[e.nodeIcons[n.level].type==="icon"?r("i",{class:e.nodeIcons[n.level].selected}):r("img",{staticClass:"icon-img",attrs:{src:e.nodeIcons[n.level].selected}})]:[e.nodeIcons[n.level].type==="icon"?r("i",{class:n.expanded?e.nodeIcons[n.level].expand:e.nodeIcons[n.level].collapse}):r("img",{staticClass:"icon-img",attrs:{src:n.expanded?e.nodeIcons[n.level].expand:e.nodeIcons[n.level].collapse}})]]:e._e(),e._v(" "+e._s(n.label)+" ")],2)]},null,{node:n,data:a})],2)}}],null,!0)},"el-tree",e.$attrs,!1),e.$listeners))],2),e.hideExpandButton?e._e():r("div",{class:["onoff",{"is-expand":!e.isExpand}],on:{click:function(n){return e.handleChangeExpand()}}},[r("i",{class:["el-icon-d-arrow-left",{"is-expand":!e.isExpand}]})])])},mE=[],xE=$t(pE,gE,mE,!1,null,"4eac368b",null,null);const Fo=xE.exports;Fo.install=function(t){t.component(Fo.name,Fo)};const Tb="",Lf={name:"guodeDialog",mixins:[ql],props:{width:{type:String,default:"500px"},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:.8},title:String,confirmText:String,draggable:Boolean,appendToBody:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},customFooter:{type:Boolean,default:!1},isCancelBtn:{type:Boolean,default:!0},isConfirmBtn:{type:Boolean,default:!0},customClass:{type:String,default:""},dialogTemplate:{type:[Object,Function],required:!0},events:{type:Object,default:()=>({})},onConfirm:{type:Function,default:()=>{}},onCancel:{type:Function,default:()=>{}}},data(){return{visible:!0,viewportHeight:window.innerHeight,confirmLoading:!1}},computed:{inVisible:{get(){return this.visible},set(t){this.$emit("update:visible",t)}},normalizedHeight(){return this.height?typeof this.height=="number"?this.height<1?`${this.height*this.viewportHeight}px`:`${this.height}px`:String(this.height).includes("%")?`${parseFloat(this.height)/100*this.viewportHeight}px`:this.height:null},normalizedMaxHeight(){return typeof this.maxHeight=="number"?this.maxHeight<1?`${this.maxHeight*this.viewportHeight}px`:`${this.maxHeight}px`:String(this.maxHeight).includes("%")?`${parseFloat(this.maxHeight)/100*this.viewportHeight}px`:this.maxHeight},normalizedWidth(){return typeof this.width=="number"?this.width<1?`${this.width*100}%`:`${this.width}px`:String(this.width).match(/(px|%)$/)?this.width:`${this.width}px`},size(){return this.$attrs.size||this.globalSize||"mini"}},mounted(){if(!this.appendToBody){const t=document.fullscreenElement;t&&(console.log(this.$refs.dialogEl.$el),this.$nextTick(()=>{const{previousElementSibling:e}=this.$refs.dialogEl.$el;!this.modalAppendToBody&&e.classList.contains("v-modal")&&t.appendChild(e),t.appendChild(this.$refs.dialogEl.$el)}))}window.addEventListener("keydown",t=>{(t.key==="Enter"||t.code==="Enter")&&this.handleConfirm()},!1)},methods:{close(){this.visible=!1,this.confirmLoading=!1,this.$nextTick(()=>{this.$destroy()})},handleCancel(){this.$emit("close"),this.close(),this.onCancel({el:this.$refs.dialogInComponent,close:this.close})},setLoading(t){this.confirmLoading=t},handleConfirm:Ma.exports.debounce(async function(){try{this.confirmLoading=!0,await this.onConfirm({el:this.$refs.dialogInComponent,close:this.close,setLoading:this.setLoading})}catch(t){console.error("Confirm error:",t)}},500,{leading:!0,trailing:!1})}},zh=()=>{Sr.useCssVars((t,e)=>({"30fc9fe8":t.normalizedHeight,"51be7ab4":t.normalizedMaxHeight}))},Gh=Lf.setup;Lf.setup=Gh?(t,e)=>(zh(),Gh(t,e)):zh;const vE=Lf;var _E=function(){var e=this,r=e._self._c;return r("el-dialog",e._g(e._b({directives:[{name:"dialogDrag",rawName:"v-dialogDrag",value:e.draggable,expression:"draggable"}],ref:"dialogEl",attrs:{title:e.title,visible:e.visible,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,"close-on-press-escape":e.closeOnPressEscape,"close-on-click-modal":e.closeOnClickModal,width:e.normalizedWidth,"custom-class":e.customClass},on:{"update:visible":function(n){e.visible=n},close:e.handleCancel}},"el-dialog",e.$attrs,!1),e.$listeners),[r(e.dialogTemplate,e._g(e._b({ref:"dialogInComponent",tag:"component",on:{close:e.close}},"component",e.$attrs,!1),e.events)),r("div",{attrs:{slot:"footer"},slot:"footer"},[e.customFooter?e._e():[e.isConfirmBtn?r("el-button",{staticClass:"footer-button",attrs:{size:e.size,type:"primary",loading:e.confirmLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmText||e.$t("Dialog.confirm"))+" ")]):e._e(),e.isCancelBtn?r("el-button",{staticClass:"footer-button",attrs:{size:e.size},on:{click:()=>{this.visible=!1}}},[e._v(e._s(e.$t("Dialog.cancel")))]):e._e()],e.customFooter?e._t("footer"):e._e()],2)],1)},wE=[],TE=$t(vE,_E,wE,!1,null,"53d51626",null,null);const EE=TE.exports;function yE(t){let e=di.default.extend({name:t.name,data(){return{visible:!0}},render(n){let a=Ma.exports.isPlainObject(t)?{...t}:{};return n(EE,{ref:"dialogRef",props:{draggable:!0,appendToBody:a.appendToBody,modalAppendToBody:a.modalAppendToBody,closeOnClickModal:!1,maxHeight:a.maxHeight,onConfirm:o=>{var l;(l=a.onConfirm)==null||l.call(a,o)},onCancel:o=>{var l;(l=a.onCancel)==null||l.call(a,o)}},attrs:{...a}})}}),r;return r=new e().$mount(),document.body.appendChild(r.$el),r.visible=!0,r.close=()=>{r.$refs.dialogRef.close()},r.setLoading=n=>{r.$refs.dialogRef.setLoading(n)},r}const SE={install(t){t.prototype.$dialog=yE}},Eb="",AE={name:"yzlSearch",mixins:[Dl],props:{searchs:{type:[Object,Array],required:!0,default:()=>({})},form:{type:Object,required:!0},globalConfig:{type:Object},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},searchButttonText:{type:String,default:""},searchResetText:{type:String,default:""},enableEnterSearch:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.searchs).length>0},computedSearchButtonText(){var t,e;return this.searchButttonText||((e=(t=this.globalConfig)==null?void 0:t.searchForm)==null?void 0:e.searchButtonText)||this.$t("Pagelist.search")},computedSearchResetText(){var t,e;return this.searchResetText||((e=(t=this.globalConfig)==null?void 0:t.searchForm)==null?void 0:e.searchResetText)||this.$t("Pagelist.reset")},searchSlots(){return Object.keys(this.searchs).reduce((t,e)=>{const r=this.searchs[e];return r&&typeof r=="object"&&r.slotName&&(t[e]=r),t},{})},mergedAutoReload(){var t,e;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(e=(t=this.globalConfig)==null?void 0:t.autoReloadOnReset)!=null?e:!1},isHideSearchMore(){return!(Object.keys(this.searchs).findIndex(e=>{const r=this.searchs[e].hidden;return typeof r=="function"?r():r})>=0)},localData(){const t=this.form||{};if(this.searchs){const e=Ao(this.searchs,this.form,{exclude:["_slotSearchButtons"]});Object.keys(e).forEach(r=>{r in t||this.$set(t,r,e[r])})}return t.pageInfo||this.$set(t,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),t},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const t=Object.values(this.searchs);return t.length===0?"auto":Math.max(...t.map(r=>(r.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.searchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=Ao(this.searchs,this.form,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(t){if(this.enableEnterSearch)this.reloadTableData();else return!1},handleSearchReset(){var t;Object.entries(this.resetForm).forEach(([e,r])=>{e!=="data"&&(this.form[e]=r)}),this.$emit("reset",this.form),this.mergedAutoReload&&!((t=this.$listeners)!=null&&t.reset)&&this.reloadTableData()},getFormRef(){return this.$refs.formRef},async reloadTableData(){this.startLoading();try{this.form.pageInfo&&(this.form.pageInfo.page=1),await this.loadTableData()}finally{this.stopLoading()}},async loadTableData(){try{this.$emit("search")}catch(t){console.error("Search error:",t)}}}};var CE=function(){var e=this,r=e._self._c;return r("yzlForm",e._b({ref:"formRef",staticClass:"yzl-search-wrapper",class:{"search-more":e.searchMore},attrs:{"label-width":e.computedLabelWidth,schema:e.searchs,searchMore:e.searchMore,value:e.localData},nativeOn:{submit:function(n){return n.preventDefault(),e.handleSubmit.apply(null,arguments)}},scopedSlots:e._u([e._l(e.searchSlots,function(n,a){return{key:n.slotName,fn:function(o){return[e._t(n.slotName,null,{row:o.row,searchItem:n,index:a})]}}}),{key:"searchButtons",fn:function(){return[e._t("searchButtons",function(){return[e.hideSearchButton?e._e():r("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":e.enableEnterSearch?"submit":"button",loading:e.mergedLoading},on:{click:function(n){!e.enableEnterSearch&&e.reloadTableData}}},[e._v(e._s(e.computedSearchButtonText))]),e.hideSearchReset?e._e():r("el-button",{staticClass:"search-button",on:{click:e.handleSearchReset}},[e._v(e._s(e.computedSearchResetText))])]}),e._t("searchExpandButton"),!e.isHideSearchMore&&!e.hideSearchMore?r("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:function(n){e.searchMore=!e.searchMore}}},[e._v(" "+e._s(e.searchMore?e.$t("Pagelist.collapse"):e.$t("Pagelist.expand"))),r("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!e.searchMore}]})]):e._e()]},proxy:!0}],null,!0)},"yzlForm",e.$attrs,!1))},FE=[],bE=$t(AE,CE,FE,!1,null,"646e8c31",null,null);const bo=bE.exports;bo.install=function(t){t.component(bo.name,bo)};const yb="",OE={name:"yzlDrawer",model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"},title:{type:String,default:""},showHeader:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},maxWidth:{type:Number,default:500},draggable:{type:Boolean,default:!0},width:{type:Number,default:300},minCloseWidth:{type:Number,default:100}},watch:{visible:{handler(t){if(!t){requestAnimationFrame(()=>{this.drawerWidth=0});return}try{const e=Number(localStorage.getItem(this.storageKey));this.drawerWidth=e>0?Math.min(e,this.maxWidth):this.width}catch(e){console.warn("LocalStorage access failed:",e),this.drawerWidth=this.width}},immediate:!0}},computed:{storageKey(){return`drawer_width_${this.$route.name}`}},data(){return{drawerWidth:0,startX:0,startWidth:0,isDragging:!1}},beforeDestroy(){["mousemove","mouseup"].forEach(t=>{document.removeEventListener(t,this.doDrag),document.removeEventListener(t,this.stopDrag)})},methods:{toggleDrawer(){this.$emit("change",!this.visible),this.$emit("toggle",!this.visible)},handleClose(){this.$emit("change",!1),this.$emit("close")},doDrag(t){requestAnimationFrame(()=>{const e=Math.min(Math.max(this.startWidth+(this.startX-t.clientX),100),this.maxWidth);this.drawerWidth=e})},stopDrag(t){document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),this.$refs.drawer.classList.remove("dragging"),this.drawerWidth>this.minCloseWidth?this.persistWidth():(this.drawerWidth=0,this.$emit("change",!1))},startDrag(t){this.$refs.drawer.classList.add("dragging"),this.startX=t.clientX,this.startWidth=this.drawerWidth,document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),document.addEventListener("mousemove",this.doDrag,{passive:!0}),document.addEventListener("mouseup",this.stopDrag,{passive:!0}),window.addEventListener("blur",this.stopDrag)},persistWidth(){localStorage.setItem(this.storageKey,this.drawerWidth)}}};var DE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-drawer-wrapper"},[r("div",{staticClass:"left"},[e._t("default")],2),r("div",{ref:"drawer",staticClass:"right",style:{width:e.drawerWidth+"px"}},[e.showHeader?r("div",{staticClass:"drawer-header"},[e._t("titleSlot",function(){return[r("span",{staticClass:"title"},[e._v(e._s(e.title))])]}),e.showClose?r("el-button",{staticClass:"close-btn",attrs:{type:"text"},on:{click:e.handleClose}},[r("i",{staticClass:"el-icon-close"})]):e._e()],2):e._e(),r("div",{staticClass:"drawer-content"},[e._t("drawer")],2),e.draggable?r("div",{staticClass:"dragger",on:{mousedown:e.startDrag}}):e._e()])])},IE=[],RE=$t(OE,DE,IE,!1,null,"29881cc3",null,null);const Oo=RE.exports;Oo.install=function(t){t.component(Oo.name,Oo)};const LE={name:"yzlSelect",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(t){this.$emit("input",t)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},mergedListeners(){return{...this.$listeners,...bi(this.schema,{context:this}),change:this.handleSelectionChange}}},methods:{handleSelectionChange(t,...e){const r={selectedItem:this.schema.options.find(n=>n[this.fieldNames.value]===t),context:this};this.$emit("change",t,...e,r)}}};var NE=function(){var e=this,r=e._self._c;return r("el-select",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-select",e.schema,!1),e.mergedListeners),e._l(e.schema.options,function(n,a){return r("el-option",{key:a,attrs:{label:n[e.fieldNames.label],value:n[e.fieldNames.value],disabled:n.disabled}},[e._t(e.schema.slotName,function(){return[e._v(" "+e._s(n[e.fieldNames.label])+" ")]},null,{optionItem:n,labelKey:e.fieldNames.label,valueKey:e.fieldNames.value})],2)}),1)},kE=[],PE=$t(LE,NE,kE,!1,null,null,null,null);const Do=PE.exports;Do.install=function(t){t.component(Do.name,Do)};const ME={name:"yzlRadio",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(t){this.$emit("input",t)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},radioGroupAttrs(){const{size:t,disabled:e,textColor:r,fill:n}=this.schema;return{size:t,disabled:e,textColor:r,fill:n}},radioAttrs(){const{label:t,border:e,size:r,name:n,value:a}=this.schema;return{label:t,border:e,size:r,name:n,value:a}},radioButtonAttrs(){const{label:t,disabled:e,name:r}=this.schema;return{label:t,disabled:e,name:r}}}};var BE=function(){var e=this,r=e._self._c;return r("el-radio-group",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-radio-group",e.radioGroupAttrs,!1),e.$listeners),[e._l(e.schema.options,function(n,a){return[n.type!=="button"?r("el-radio",e._b({key:"radio_"+a,attrs:{label:n[e.fieldNames.value]}},"el-radio",e.radioAttrs,!1),[e._v(" "+e._s(n[e.fieldNames.label])+" ")]):r("el-radio-button",e._b({key:"radio_button_"+a,attrs:{label:n[e.fieldNames.value]}},"el-radio-button",e.radioButtonAttrs,!1),[e._v(" "+e._s(n[e.fieldNames.label])+" ")])]})],2)},$E=[],UE=$t(ME,BE,$E,!1,null,null,null,null);const Io=UE.exports;Io.install=function(t){t.component(Io.name,Io)};const WE={props:{model:{type:Object,default:()=>({})},schema:{type:Object,required:!0},value:{required:!0},name:{type:String}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias:[]},hasAlias(){return!!this.schema.alias}},methods:{getAliasValue(t=0){var e;return this.hasAlias?this.model[this.aliasKeys[t]]:((e=this.value)==null?void 0:e[t])||""},updateModelValue(t,e=0){if(this.hasAlias){const r=this.aliasKeys[e];this.name&&this.model.hasOwnProperty(this.name)&&delete this.model[this.name],this.$set(this.model,r,t)}else this.$emit("input",[...this.value||[],t].slice(0,2))},valueProxy(t){return{get:()=>this.getAliasValue(t),set:e=>{const r=e===null?"":e;this.hasAlias?this.updateModelValue(r,t):this.updateModelValue(r,t)}}}}},Sb="",HE={name:"yzlDatePicker",mixins:[WE],props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.hasAlias?[this.getAliasValue(0)||"",this.getAliasValue(1)||""]:this.value===null?this.schema.type.includes("range")?[]:"":this.value},set(t){if(this.hasAlias){const[e="",r=""]=Array.isArray(t)?t:t!==null?[t,""]:["",""];this.updateModelValue(e,0),this.updateModelValue(r,1)}else this.$emit("input",t===null?this.schema.type.includes("range")?[]:null:t)}},mergedAttrs(){const t={rangeSeparator:"-"},e={shortcuts:[{text:this.$t("DatePicker.aWeek"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),n.$emit("pick",[o,a])}},{text:this.$t("DatePicker.aMonth"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),n.$emit("pick",[o,a])}},{text:this.$t("DatePicker.threeMonth"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),n.$emit("pick",[o,a])}}]};return["daterange","datetimerange","monthrange"].includes(this.schema.type)&&(t.startPlaceholder=this.$t("DatePicker.start"),t.endPlaceholder=this.$t("DatePicker.end")),this.schema.shortcuts&&(t["picker-options"]=e),{...t,...this.schema}},mergedListeners(){const{input:t,...e}=this.$listeners;return this.hasAlias?{...e,...bi(this.schema,{context:this})}:{...this.$listeners,...bi(this.schema,{context:this})}}}};var VE=function(){var e=this,r=e._self._c;return r("el-date-picker",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-date-picker",e.mergedAttrs,!1),e.mergedListeners))},zE=[],GE=$t(HE,VE,zE,!1,null,null,null,null);const Ro=GE.exports;Ro.install=function(t){t.component(Ro.name,Ro)};const Ab="",XE={name:"yzlCompositeSelect",props:{value:{required:!0},schema:{type:Object,required:!0},model:{type:Object},name:{type:String},globalConfig:{type:Object}},data(){return{selectedKey:this.getDefaultSelectKey(),initialValues:{}}},computed:{localValue:{get(){return this.value},set(t){this.$emit("input",t)}},mergedStyle(){const t={width:this.schema.selectWidth||"84px"};if(typeof this.schema.style=="string"){const e=this.schema.style.split(";").reduce((r,n)=>{const[a,o]=n.split(":").map(l=>l.trim());return a&&o&&(r[a]=o),r},{});return{...t,...e}}return{...t,...this.schema.style}},selectedChild(){return this.schema.children[this.localValue]||{}},childOptions(){return Object.keys(this.schema.children).map(t=>({label:this.schema.children[t].label,value:t}))},mergedListeners(){return{...this.$listeners,...bi(this.schema,{context:this,selectedKey:this.localValue}),change:this.handleChange}}},watch:{"schema.children":{handler(){this.selectedKey=this.getDefaultSelectKey()},deep:!0}},mounted(){Object.entries(this.schema.children).forEach(([t,e])=>{var n,a;const r=Object.assign(typeof e=="object"?e:{},{clearable:(a=(n=this.globalConfig)==null?void 0:n.tableColumn)==null?void 0:a.clearable,key:(e==null?void 0:e.key)||t});if(!r.placeholder){const o=r.component;/^el-input/.test(o)?r.placeholder=this.$t("Form.input")+(r.label||""):/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/i.test(o)&&(r.placeholder=this.$t("Form.select")+(r.label||""))}Array.isArray(r.rules)&&r.rules.forEach(o=>{!o.message&&!o.validator&&(o.message=r.placeholder)})})},methods:{getDefaultSelectKey(){if(this.value)return this.value;const t=Object.keys(this.schema.children);return t.length>0?t[0]:""},getChildListeners(t,e){var n,a;const r={...this.$listeners,change:o=>{var l,u;(u=(l=e.events)==null?void 0:l.change)==null||u.call(l,o,{context:this,selectedKey:this.localValue})},blur:o=>{var l,u;(u=(l=e.events)==null?void 0:l.blur)==null||u.call(l,o,{context:this,selectedKey:this.localValue})}};if((((n=e.minConfig)==null?void 0:n.rules)||((a=e.maxConfig)==null?void 0:a.rules))&&(r["update:rules"]=o=>{e.minConfig&&(e.minConfig.rules=o),e.maxConfig&&(e.maxConfig.rules=o)}),!e.alias){const o=yo().use("chinese","space","specialSymbol");r.input=l=>{var h,c;const u=o(l,this.selectedChild);(c=(h=e.events)==null?void 0:h.input)==null||c.call(h,u),this.model[t]?this.model[t]=u:this.$set(this.model,t,u)}}return r},handleChange(t){Object.keys(this.schema.children).forEach(e=>{if(e!==t){const r=this.schema.children[e];r.alias?r.alias.forEach(n=>{this.$set(this.model,n,"")}):this.$set(this.model,e,["yzlRangeInput","yzlRange"].includes(r.component)?[]:"")}}),this.$emit("input",t),this.$emit("change",{key:this.name,value:t,childSchema:this.schema.children[t]})}}};var KE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"composite-wrapper"},[r("el-select",e._g(e._b({staticClass:"main-select",style:e.mergedStyle,attrs:{clearable:!1},model:{value:e.localValue,callback:function(n){e.localValue=n},expression:"localValue"}},"el-select",e.$attrs,!1),e.mergedListeners),e._l(e.childOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value}})}),1),r("div",{staticClass:"children-container"},[e.localValue?r(e.selectedChild.component,e._g(e._b({key:e.localValue,tag:"component",attrs:{value:e.model[e.localValue],fieldName:e.localValue,name:e.localValue,model:e.model,schema:e.selectedChild}},"component",e.selectedChild,!1),e.getChildListeners(e.localValue,e.selectedChild))):e._e()],1)],1)},YE=[],jE=$t(XE,KE,YE,!1,null,null,null,null);const Lo=jE.exports;Lo.install=function(t){t.component(Lo.name,Lo)};const Cb="",qE={name:"yzlUpload",props:{defaultValue:{type:Array,default:()=>[]},schema:{type:Object,required:!0},action:String,returnOssId:Boolean,uploadButtonText:String,maxSize:{type:Number,default:10*1024*1024}},computed:{mergedProps(){return{...this.$attrs,...this.schema,"show-file-list":!1,action:this.$attrs.action||"#"}}},watch:{defaultValue:{immediate:!0,handler(t){const e=this.localFileList.map(r=>r.url);JSON.stringify(e)!==JSON.stringify(t)&&(this.localFileList=t.map(r=>({url:r,name:r.split("/").pop(),raw:new File([],r.split("/").pop())})))}}},data(){return{isMouseIn:!1,localFileList:[]}},methods:{isImage(t){const e=["jpg","jpeg","png","gif","bmp","webp","svg"],r=t.split("."),n=r[r.length-1].toLowerCase();return e.includes(n)},handleAvatarSuccess(t,e){this.schema.onSuccess(t,e)},async handleHttpRequest({file:t,onSuccess:e,onError:r}){this.schema.httpRequest({file:t,onSuccess:n=>this.handleUploadSuccess(n,t,e),onError:n=>this.handleUploadError(n,r),setFunc:n=>{n.func=()=>this.localFileList=[]}})},handleUploadSuccess(t,e,r){var n;r(t,e),this.localFileList.push({...t.data,raw:e,name:e.name,url:((n=t.data)==null?void 0:n.url)||URL.createObjectURL(e)}),this.updateModel()},handleUploadError(t,e){e(t),this.$message.error(this.$t("Upload.uploadFail")+t.message)},handleOnRemove(t){this.localFileList.splice(t,1),this.updateModel()},handleMouseMove(t){this.isMouseIn=t},updateModel(){const t=this.localFileList.map(r=>r.url),e=this.localFileList.map(r=>r.ossId);this.$emit("input",this.returnOssId?e:t)}}};var JE=function(){var n,a;var e=this,r=e._self._c;return r("el-upload",e._g(e._b({ref:"uploader",attrs:{"file-list":e.localFileList,"on-success":e.handleAvatarSuccess,"http-request":e.handleHttpRequest}},"el-upload",e.mergedProps,!1),e.$listeners),[r("el-button",{attrs:{slot:"trigger",disabled:e.$attrs.disabled||((n=e.localFileList)==null?void 0:n.length)>=e.$attrs.limit,size:e.$attrs.size,type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.uploadButtonText||e.$t("Upload.uploadButtonText"))+" ")]),(a=e.localFileList)!=null&&a.length?r("div",{staticClass:"upload-list"},e._l(e.localFileList,function(o,l){return r("div",{key:l,staticClass:"upload-img",on:{mouseenter:function(u){return e.handleMouseMove(!0)},mouseleave:function(u){return e.handleMouseMove(!1)}}},[e.isImage(o.url)?r("el-image",{staticClass:"img-item",attrs:{"preview-src-list":[o.url],src:o.url}}):r("div",{staticClass:"file-doc"},[r("i",{staticClass:"el-icon-document"})]),r("p",{staticClass:"img-name"},[e._v(e._s(o.name||e.$t("Upload.noText")))]),r("div",{staticClass:"triangle"},[e.isMouseIn&&!e.$attrs.disabled?r("i",{staticClass:"el-icon-close img-check",on:{click:function(u){return e.handleOnRemove(l)}}}):r("i",{staticClass:"el-icon-check img-check"})])],1)}),0):e._e(),r("div",{staticClass:"el-upload__tip"},[e._v(e._s(e.$t("Upload.uploadRule",[e.$attrs.limit||10,e.maxSize/1024/1024])))])],1)},ZE=[],QE=$t(qE,JE,ZE,!1,null,"608744b1",null,null);const No=QE.exports;No.install=function(t){t.component(No.name,No)};const Fb="",ey={name:"YzlRangeInput",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""},globalConfig:{type:Object}},data(){return{currentValues:["",""],minConfig:{},maxConfig:{}}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minValue:Xh(0),maxValue:Xh(1),mergedMinListeners(){const t=yo().use("chinese","space","specialSymbol");let e=!1;const r=bi(this.minConfig,{context:this});return{...r,input:n=>{var a;if(!e){const o=t(n,this.minConfig);this.minValue=o}(a=r.input)==null||a.call(r,n)},compositionstart:()=>{var n;e=!0,(n=r.compositionstart)==null||n.call(r)},compositionend:n=>{var o;e=!1;const a=t(n.target.value,this.minConfig);this.minValue=a,(o=r.compositionend)==null||o.call(r,n)},change:n=>{var a;this.handleChange(0),(a=r.change)==null||a.call(r,{value:this.minValue,fullValue:[...this.currentValues]},n)}}},mergedMaxListeners(){const t=yo().use("chinese","space","specialSymbol");let e=!1;const r=bi(this.maxConfig,{context:this});return{...r,input:n=>{var a;if(!e){const o=t(n,this.maxConfig);this.maxValue=o,(a=r.input)==null||a.call(r,n)}},compositionstart:()=>{var n;e=!0,(n=r.compositionstart)==null||n.call(r)},compositionend:n=>{var o;e=!1;const a=t(n.target.value,this.maxConfig);this.maxValue=a,(o=r.compositionend)==null||o.call(r,n)},change:n=>{var a;this.handleChange(1),(a=r.change)==null||a.call(r,{value:this.maxValue,fullValue:[...this.currentValues]},n)}}}},watch:{value:{immediate:!0,handler(t){this.hasAlias||this.syncValues(t)}},model:{deep:!0,handler(){this.hasAlias&&this.syncValues([this.model[this.aliasKeys[0]]||"",this.model[this.aliasKeys[1]]||""])}}},mounted(){var t,e,r,n;this.minConfig=Object.assign({placeholder:(this.schema.label||"")+this.$t("common.start"),clearable:(e=(t=this.globalConfig)==null?void 0:t.tableColumn)==null?void 0:e.clearable},this.schema.minConfig),this.maxConfig=Object.assign({placeholder:(this.schema.label||"")+this.$t("common.end"),clearable:(n=(r=this.globalConfig)==null?void 0:r.tableColumn)==null?void 0:n.clearable},this.schema.maxConfig)},methods:{syncValues([t="",e=""]=[]){const r=typeof t=="string"?t:String(t),n=typeof e=="string"?e:String(e);this.currentValues=[r,n],this.minValue!==r&&(this.minValue=r),this.maxValue!==n&&(this.maxValue=n)},handleChange(t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const e={value:t===0?this.minValue:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",{min:this.minValue,max:this.maxValue,fullValue:e.fullValue})},300)}}};function Xh(t){return{get(){return this.hasAlias?this.model[this.aliasKeys[t]]||"":this.currentValues[t]},set(e){var a;let r=e;t===0&&((a=this.minConfig)==null?void 0:a.chineseOnly)&&(r=r.replace(/[^\u4e00-\u9fa5]/g,""));const n=r===null?"":r;n!==this.currentValues[t]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[t],n)):(this.aliasKeys.forEach(o=>this.$delete(this.model,o)),this.$set(this.model,this.fieldName,n)),this.currentValues.splice(t,1,n))}}}var ty=function(){var e=this,r=e._self._c;return r("div",{staticClass:"range-input-wrapper"},[r("el-input",e._g(e._b({staticClass:"range-input__min",attrs:{placeholder:e.minConfig.placeholder},scopedSlots:e._u([e.$slots["prepend-min"]?{key:"prepend",fn:function(){return[e._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:e.minValue,callback:function(n){e.minValue=n},expression:"minValue"}},"el-input",e.minConfig,!1),e.mergedMinListeners)),r("div",{staticClass:"range-input__separator"},[e._v("-")]),r("el-input",e._g(e._b({staticClass:"range-input__max",attrs:{placeholder:e.maxConfig.placeholder},scopedSlots:e._u([e.$slots["prepend-max"]?{key:"prepend",fn:function(){return[e._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:e.maxValue,callback:function(n){e.maxValue=n},expression:"maxValue"}},"el-input",e.maxConfig,!1),e.mergedMaxListeners))],1)},ry=[],ny=$t(ey,ty,ry,!1,null,null,null,null);const ko=ny.exports;ko.install=function(t){t.component(ko.name,ko)};const bb="",iy={name:"YzlRange",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{minComponent(){var t;return((t=this.schema.minConfig)==null?void 0:t.component)||"el-input"},maxComponent(){var t;return((t=this.schema.maxConfig)==null?void 0:t.component)||"el-input"},minOptions(){var t;return((t=this.schema.minConfig)==null?void 0:t.options)||[]},maxOptions(){var t;return((t=this.schema.maxConfig)==null?void 0:t.options)||[]},aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return{placeholder:this.$t("Range.min"),...typeof this.schema.minConfig=="object"?this.schema.minConfig:{}}},maxConfig(){return{placeholder:this.$t("Range.max"),...typeof this.schema.maxConfig=="object"?this.schema.maxConfig:{}}},minValue:Kh(0),maxValue:Kh(1)},watch:{value:{immediate:!0,handler(t){this.hasAlias||this.syncValues(t)}}},methods:{syncValues([t="",e=""]=[]){const r=typeof t=="string"?t:String(t),n=typeof e=="string"?e:String(e);this.currentValues=[r,n],this.minValue!==r&&(this.minValue=r),this.maxValue!==n&&(this.maxValue=n)},handleChange(t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const e={min:this.minValue,max:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",e)},300)}}};function Kh(t){return{get(){return this.hasAlias?this.model[this.aliasKeys[t]]||"":this.currentValues[t]},set(e){const r=e===null?"":e;this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[t],r)):(this.aliasKeys.forEach(n=>this.$delete(this.model,n)),this.$set(this.model,this.fieldName,r)),this.currentValues.splice(t,1,r)}}}var ay=function(){var e=this,r=e._self._c;return r("div",{staticClass:"range-input-wrapper"},[r(e.minComponent,e._b({tag:"component",staticClass:"range-input__min",attrs:{schema:e.minConfig},on:{input:function(n){return e.handleChange(0)}},scopedSlots:e._u([e.$slots["prepend-min"]?{key:"prepend",fn:function(){return[e._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:e.minValue,callback:function(n){e.minValue=n},expression:"minValue"}},"component",e.minConfig,!1),[["el-select"].includes(e.maxComponent)?e._l(e.minOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value,disabled:n.disabled}})}):e._e()],2),r("div",{staticClass:"range-input__separator"},[e._v("-")]),r(e.maxComponent,e._b({tag:"component",staticClass:"range-input__max",attrs:{schema:e.maxConfig},on:{input:function(n){return e.handleChange(1)}},scopedSlots:e._u([e.$slots["prepend-max"]?{key:"prepend",fn:function(){return[e._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:e.maxValue,callback:function(n){e.maxValue=n},expression:"maxValue"}},"component",e.maxConfig,!1),[["el-select"].includes(e.maxComponent)?e._l(e.maxOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value,disabled:n.disabled,"data-dis":n.disabled}})}):e._e()],2)],1)},sy=[],oy=$t(iy,ay,sy,!1,null,null,null,null);const Po=oy.exports;Po.install=function(t){t.component(Po.name,Po)};const ly={install(t,e){const r="medium";t.mixin({data(){return{globalSize:this.getSizeFromOptions(e,r)}},created(){},methods:{getSizeFromOptions(n,a){return n&&n.size?n.size:a}}}),t.prototype.$setGlobalSize=function(n){this.$root.globalSize=n},t.prototype.$globalSize=function(){return this.$root.globalSize}}},Yh=function(t,e={}){var r,n;((r=e.i18n)==null?void 0:r.mergeLocaleMessage)&&((n=e.i18n)==null?void 0:n.t)&&(Object.keys(Yl).forEach(a=>{e.i18n.mergeLocaleMessage(a,Yl[a])}),Kp((a,o)=>e.i18n.t(a,o),e.lang)),[wo,To,Eo,So,Co,Fo,bo,Oo,Do,Io,Ro,Lo,ko,Po,No].forEach(a=>{t.use(SE),t.use(ly,{size:e.globalSize}),t.component(a.name,{extends:a,mixins:[ql],props:{globalConfig:{type:Object,default:()=>e}}})})};return typeof window<"u"&&window.Vue&&Yh(window.Vue),{version:"0.0.1",install:Yh}});
132
+ `;var r=Df(t,e);return r}function RT(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=pt(t["!ref"]),o="",l=[],u,h=[],c=Array.isArray(t);for(u=a.s.c;u<=a.e.c;++u)l[u]=tr(u);for(var p=a.s.r;p<=a.e.r;++p)for(o=jt(p),u=a.s.c;u<=a.e.c;++u)if(e=l[u]+o,r=c?(t[p]||[])[u]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}h[h.length]=e+"="+n}return h}function Hh(t,e,r){var n=r||{},a=+!n.skipHeader,o=t||{},l=0,u=0;if(o&&n.origin!=null)if(typeof n.origin=="number")l=n.origin;else{var h=typeof n.origin=="string"?Wt(n.origin):n.origin;l=h.r,u=h.c}var c,p={s:{c:0,r:0},e:{c:u,r:l+e.length-1+a}};if(o["!ref"]){var g=pt(o["!ref"]);p.e.c=Math.max(p.e.c,g.e.c),p.e.r=Math.max(p.e.r,g.e.r),l==-1&&(l=g.e.r+1,p.e.r=l+e.length-1+a)}else l==-1&&(l=0,p.e.r=e.length-1+a);var x=n.header||[],_=0;e.forEach(function(v,A){Kt(v).forEach(function(M){(_=x.indexOf(M))==-1&&(x[_=x.length]=M);var B=v[M],L="z",X="",se=ot({c:u+_,r:l+A+a});c=ns(o,se),B&&typeof B=="object"&&!(B instanceof Date)?o[se]=B:(typeof B=="number"?L="n":typeof B=="boolean"?L="b":typeof B=="string"?L="s":B instanceof Date?(L="d",n.cellDates||(L="n",B=mr(B)),X=n.dateNF||At[14]):B===null&&n.nullError&&(L="e",B=0),c?(c.t=L,c.v=B,delete c.w,delete c.R,X&&(c.z=X)):o[se]=c={t:L,v:B},X&&(c.z=X))})}),p.e.c=Math.max(p.e.c,u+x.length-1);var y=jt(l);if(a)for(_=0;_<x.length;++_)o[tr(_+u)+y]={t:"s",v:x[_]};return o["!ref"]=Lt(p),o}function LT(t,e){return Hh(null,t,e)}function ns(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=Wt(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?ns(t,ot(e)):ns(t,ot({r:e,c:r||0}))}function NT(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function kT(){return{SheetNames:[],Sheets:{}}}function PT(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var o=r.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var l=o&&o[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=l+a)!=-1;++a);}if(bh(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function MT(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=NT(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function BT(t,e){return t.z=e,t}function Vh(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function $T(t,e,r){return Vh(t,"#"+e,r)}function UT(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function WT(t,e,r,n){for(var a=typeof e!="string"?e:pt(e),o=typeof e=="string"?e:Lt(e),l=a.s.r;l<=a.e.r;++l)for(var u=a.s.c;u<=a.e.c;++u){var h=ns(t,l,u);h.t="n",h.F=o,delete h.v,l==a.s.r&&u==a.s.c&&(h.f=r,n&&(h.D=!0))}return t}var If={encode_col:tr,encode_row:jt,encode_cell:ot,encode_range:Lt,decode_col:hf,decode_row:cf,split_cell:nm,decode_cell:Wt,decode_range:Dr,format_cell:In,sheet_add_aoa:Ac,sheet_add_json:Hh,sheet_add_dom:Lh,aoa_to_sheet:ji,json_to_sheet:LT,table_to_sheet:Nh,table_to_book:hT,sheet_to_csv:Df,sheet_to_txt:Wh,sheet_to_json:_o,sheet_to_html:Rh,sheet_to_formulae:RT,sheet_to_row_object_array:_o,sheet_get_cell:ns,book_new:kT,book_append_sheet:PT,book_set_sheet_visibility:MT,cell_set_number_format:BT,cell_set_hyperlink:Vh,cell_set_internal_link:$T,cell_add_comment:UT,sheet_set_array_formula:WT,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const gb="",HT={name:"yzlTable",components:{TableColumnsManager:Zp},mixins:[vp,_p,Dl],props:{data:{type:Array},columns:Array,pageInfo:{type:Object},loadingDelay:{type:Number,default:200},columnDefault:{type:Object},globalConfig:{type:Object},exports:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})},tableId:{type:String,default:""},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{localColumns:[],initialColumns:[],serverColumns:[],dynamicColumns:[],columnsReady:!1,tableColumnsVisiable:!1,finallyColumns:[],selection:null,isFullscreen:!1}},watch:{columns:{handler(t){this.initialColumns=this.processColumns([...t]),this.localColumns=this.processColumns([...t])},immediate:!0},tableId:{handler(t,e){if(t!==e)if(t){if(this.loadingLock)return;this.loadingLock=!0,this.serverColumns=[],this.columnsReady=!1,this.fetchServerColumns().finally(()=>this.loadingLock=!1)}else this.columnsReady=!0},immediate:!0}},computed:{comp_columns(){if(!this.columnsReady)return[];let t=this.serverColumns.length>0?this.handleServerColumns([...this.serverColumns]):[...this.localColumns];const e=this.insertDynamicColumns(t);this.finallyColumns=[...e];const r=this.finallyColumns.findIndex(n=>n.type==="selection");return r!==-1&&(this.selection=this.finallyColumns.splice(r,1)[0]||null),this.finallyColumns.length?this.finallyColumns:[]},attrs(){const{"row-class-name":t,...e}=this.$attrs;return Object.assign({},this.globalConfig.table,e)},mergedListeners(){const t={...this.$listeners},e=r=>(...n)=>{var h;r==null||r(...n);const[a,o,l]=n,u=this.finallyColumns.findIndex(c=>c.prop===l.property);if(u>=0){if(u===this.finallyColumns.length-1){this.finallyColumns[u].width="",this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())});return}this.finallyColumns[u].width=a,(h=this.$bus)==null||h.$emit("table-columns-resized",{tableId:this.tableId,columns:this.finallyColumns.filter(c=>!c.isDynamic)})}this.$nextTick(()=>{this.$nextTick(()=>this.doLayout())})};return t["header-dragend"]=e(t["header-dragend"]),t},mergedLocalColumns(){return this.mergedEnableDynamic?[...this.localColumns,...this.dynamicColumns]:this.localColumns},mergedEnableDynamic(){var e;return this.enableDynamicInSetting?this.enableDynamicInSetting:(e=this.globalConfig)==null?void 0:e.enableDynamicInSetting}},created(){this.isFullscreen=!!document.fullscreenElement,document.addEventListener("fullscreenchange",()=>{this.isFullscreen=!!document.fullscreenElement})},mounted(){this.initVirtualScroll()},methods:{getRowKey(t){var r;const e=this.rowKey||((r=this.model)==null?void 0:r.rowKey);return e&&t[e]!==void 0?t[e]:(this.selection&&!e&&console.warn("[yzlTable] \u5F53\u4F7F\u7528\u884C\u9009\u62E9\u529F\u80FD\u65F6\uFF0C\u5EFA\u8BAE\u914D\u7F6E\u6709\u6548\u7684 rowKey\uFF08\u8BF7\u5728\u8868\u683C\u4E2D\u914D\u7F6E :row-key \u6216 model.rowKey\uFF09,\u5F53\u524D\u6570\u636E\u884C\u7684\u53EF\u7528\u952E\uFF1A",Object.keys(t)),Symbol("fallbackRowKey"))},handleServerColumns(t){const e=[...this.localColumns];if(!t.some(r=>r.type==="selection")){const r=this.localColumns.find(n=>n.type==="selection");r&&t.unshift({...r})}return t.forEach(r=>{const n=e.find(a=>a.label===r.label);n&&Object.assign(r,{align:n.align||r.align,headerAlign:n.headerAlign||r.headerAlign,label:n.label||r.label,...r.label===this.$t("Table.operation")?n:Qp.omit(n,["width","minWidth"])})}),t},insertDynamicColumns(t){const e=[...t];return this.mergedEnableDynamic||this.dynamicColumns.forEach(r=>{const n=r.position===-1?e.length:Math.min(r.position,e.length);e.splice(n,0,r)}),e},async fetchServerColumns(){var t,e;if(((e=(t=this.globalConfig)==null?void 0:t.api)==null?void 0:e.getTableColumnAPI)&&this.tableId)try{const r=this.globalConfig.api.getTableColumnAPI.replace(/\{table_id\}/g,this.tableId),n=await this.$http.get(r);if(n.fieldJson){const a=JSON.parse(n.fieldJson);this.serverColumns=a.map(o=>typeof o=="string"?JSON.parse(o):o)}else this.handleColumnsUpdate(this.processColumns([...this.initialColumns]))}catch(r){console.error("\u5217\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25:",r),this.localColumns=this.processColumns([...this.initialColumns])}finally{this.columnsReady=!0}else this.columnsReady=!0},processColumns(t){return t.map(r=>{var a,o;const n={...(a=this.globalConfig)==null?void 0:a.tableColumn,...this.columnDefault,...r,...Ol.handleFormatter(r)};if(n.width)n.minWidth=void 0;else if(!n.minWidth){const l=((o=n.label)==null?void 0:o.length)||0;n.minWidth=[90,110,130,150,170][l-4]||90}return n})},openTableHeadDialog(){this.tableColumnsVisiable=!0},handleColumnsUpdate(t){var e;this.serverColumns=[...t],this.columnsReady=!1,this.$nextTick(()=>{this.columnsReady=!0,this.$nextTick(()=>{this.$refs.yzlTable&&(this.$refs.yzlTable.doLayout(),this.$refs.yzlTable.store.scheduleLayout(!0))})});try{(e=this.$bus)==null||e.$emit("table-columns-resized",{tableId:this.tableId,columns:t})}catch(r){console.error("\u4E8B\u4EF6\u89E6\u53D1\u5931\u8D25:",r)}},exportExcel(){const t=If.book_new(),e=this.data.reduce((l,u)=>{const h={};return this.columns.forEach(c=>{h[c.label]=u[c.prop]}),l.push(h),l},[]),r=If.json_to_sheet(e);If.book_append_sheet(t,r,"Sheet1");const n=$h(t,{bookType:"xlsx",type:"array"}),a=new Blob([n],{type:"application/octet-stream"}),o=new Date().toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/[\/\s:]/g,"").slice(0,12);Fs.exports.saveAs(a,`${o}${this.tableId?`_${this.tableId}`:""}.xlsx`)},async handleExport(t){if(this.exportsLocal)this.exportExcel();else{const{api:e,tableId:r,fileName:n,onSearch:a,onPages:o,exportParams:l}=this.exports;try{this.startLoading(),await new wp(this,{api:e,fileName:n,onSearch:a,onPages:o},this.$t).execute({tableId:r||this.tableId,...l},t)}finally{this.stopLoading()}}},tableRowClassName({row:t,rowIndex:e}){const r=this.$attrs["row-class-name"];return[typeof r=="function"?r({row:t,rowIndex:e}):typeof r=="string"?r:"",e%2===0?"single-row":"double-row"].filter(a=>a).join(" ")},addColumn(t,e=-1){const r=[].concat(t).map(n=>({...n,position:e,isDynamic:!0}));this.dynamicColumns.push(...r),this.$nextTick(()=>this.doLayout())},resetColumns(){this.dynamicColumns=[],this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.yzlTable?this.doLayout():(console.warn("\u8868\u683C\u5B9E\u4F8B\u672A\u5C31\u7EEA\uFF0C\u5EF6\u8FDF\u91CD\u8BD5\u5E03\u5C40"),setTimeout(()=>{var t,e;return(e=(t=this.$refs.yzlTable)==null?void 0:t.doLayout)==null?void 0:e.call(t)},100))})})},toggleRowSelection(){this.$refs.yzlTable.toggleRowSelection.apply(this,Array.from(arguments))},clearSelection(){var t,e;(e=(t=this.$refs.yzlTable)==null?void 0:t.clearSelection)==null||e.apply(this,Array.from(arguments))},setCurrentRow(t){this.$refs.yzlTable.setCurrentRow.apply(this,[t])},toggleAllSelection(){var t;(t=this.$refs.yzlTable)==null||t.toggleAllSelection()},doLayout(){this.$refs.yzlTable.doLayout()}}};var VT=function(){var e=this,r=e._self._c;return r("div",{ref:"tableContainer",staticClass:"yzl-table-wrapper"},[e.columnsReady?r("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.mergedLoading,expression:"mergedLoading"}],ref:"yzlTable",attrs:{"data-table-id":e.tableId,height:"100%","row-key":e.getRowKey,"header-row-class-name":"yzl-table-header",data:e.enableDeferRender?e.renderedData:e.tableData,pageInfo:e.pageInfo,"element-loading-delay":e.loadingDelay,"row-class-name":e.tableRowClassName},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"el-table",e.attrs,!1),e.mergedListeners),[e.selection?r("el-table-column",e._b({attrs:{type:"selection",width:e.selection.width||55}},"el-table-column",e.selection,!1)):e._e(),e.showIndex?r("el-table-column",{attrs:{type:"index",label:"\u5E8F\u53F7",width:"50",align:"center"},scopedSlots:e._u([{key:"header",fn:function(n){var a,o,l,u;return[e.tableId||((a=e.exports)==null?void 0:a.api)||e.exportsLocal?r("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:!e.isFullscreen,expression:"!isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[((o=e.exports)==null?void 0:o.api)||e.exportsLocal?r("el-dropdown-item",{nativeOn:{click:function(h){return e.handleExport.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.export")))]):e._e(),e.tableId?r("el-dropdown-item",{nativeOn:{click:function(h){return e.openTableHeadDialog.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.config")))]):e._e()],1)],1):e._e(),e.tableId||((l=e.exports)==null?void 0:l.api)||e.exportsLocal?r("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:e.isFullscreen,expression:"isFullscreen"}],staticStyle:{cursor:"pointer"},attrs:{placement:"bottom"}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{staticStyle:{"font-weight":"normal"},attrs:{slot:"dropdown","append-to-body":!1},slot:"dropdown"},[((u=e.exports)==null?void 0:u.api)||e.exportsLocal?r("el-dropdown-item",{nativeOn:{click:function(h){return e.handleExport.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.export")))]):e._e(),e.tableId?r("el-dropdown-item",{nativeOn:{click:function(h){return e.openTableHeadDialog.apply(null,arguments)}}},[e._v(e._s(e.$t("Table.config")))]):e._e()],1)],1):r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-s-tools"})])]}},{key:"default",fn:function(n){return[e._v(" "+e._s(e.pageInfo?(e.pageInfo.page-1)*e.pageInfo.size+n.$index+1:n.$index+1)+" ")]}}],null,!1,3326427281)}):e._e(),e._l(e.comp_columns,function(n,a){return r("el-table-column",e._b({key:n.prop||n.key||a,attrs:{prop:n.prop||n.key},scopedSlots:e._u([n.slotName?{key:"default",fn:function(o){return[e._t(n.slotName,null,{row:o.row,index:o.$index,column:n})]}}:null],null,!0)},"el-table-column",n,!1),[n.children?e._l(n.children,function(o,l){return r("el-table-column",e._b({key:o.prop||o.key||l,attrs:{prop:o.prop||o.key},scopedSlots:e._u([o.slotName?{key:"default",fn:function(u){return[e._t(o.slotName,null,{row:u.row,index:u.$index,column:o})]}}:null],null,!0)},"el-table-column",o,!1))}):e._e()],2)})],2):e._e(),r("TableColumnsManager",{attrs:{visible:e.tableColumnsVisiable,"table-id":e.tableId,serverColumns:e.serverColumns,localColumns:e.mergedLocalColumns},on:{"update:visible":function(n){e.tableColumnsVisiable=n},"columns-updated":e.handleColumnsUpdate}})],1)},zT=[],GT=$t(HT,VT,zT,!1,null,null,null,null);const wo=GT.exports;wo.install=function(t){t.component(wo.name,wo)};const mb="",XT={name:"yzlPagination",props:{pageInfo:{type:Object,default:()=>({total:0,size:50,page:1,hasMore:!1})},pageSizes:{type:Array,default:()=>[10,20,30,50,100,200,500,1e3]},layout:{type:String,default:"sizes, prev, pager, next, jumper"},align:{type:String,default:"right"},globalConfig:{type:Object},paginationTotalCount:{type:Number,default:null}},computed:{computedLayout(){return this.paginationTotalCount?this.layout.replace("total,",""):this.layout}},methods:{handleSizeChange(t){this.pageInfo.page=1,this.pageInfo.size=t,this.$emit("updateTable",t)},handleCurrentChange(t){this.pageInfo.page=t,this.$emit("updateTable",t)}}};var KT=function(){var e=this,r=e._self._c;return r("div",{class:["yzl-pagination-wrapper",e.align]},[r("el-pagination",e._b({attrs:{"current-page":e.pageInfo.page,"page-sizes":e.pageSizes,"page-size":e.pageInfo.size,layout:e.computedLayout,total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(n){return e.$set(e.pageInfo,"page",n)},"update:current-page":function(n){return e.$set(e.pageInfo,"page",n)},"update:pageSize":function(n){return e.$set(e.pageInfo,"size",n)},"update:page-size":function(n){return e.$set(e.pageInfo,"size",n)}}},"el-pagination",e.$attrs,!1)),e.paginationTotalCount?r("div",{staticClass:"el-pagination is-background"},[r("div",{staticClass:"el-pagination__total",staticStyle:{"line-height":"28px"}},[e._v(" "+e._s(e.$t("Pagination.total",[e.pageInfo.total||0]))+"\uFF0C"+e._s(e.$t("Pagination.selected",[e.paginationTotalCount]))+" ")])]):e._e()],1)},YT=[],jT=$t(XT,KT,YT,!1,null,null,null,null);const To=jT.exports;To.install=function(t){t.component(To.name,To)};const xb="",qT={name:"yzlForm",props:{schema:{type:[Object,Array],required:!0},value:{required:!0},rules:{type:Object},searchMore:{type:Boolean,default:!1},globalConfig:{type:Object}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},normalizedSchema(){const t=(r,n)=>{var o,l;const a={clearable:(l=(o=this.globalConfig)==null?void 0:o.tableColumn)==null?void 0:l.clearable,...typeof r=="object"?r:{},key:(r==null?void 0:r.key)||n};if(!a.placeholder){const u=a.component;/^el-input/.test(u)?a.placeholder=this.$t("Form.input")+(a.label||""):/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/i.test(u)&&(a.placeholder=this.$t("Form.select")+(a.label||""))}return Array.isArray(a.rules)&&a.rules.forEach(u=>{!u.message&&!u.validator&&(u.message=a.placeholder)}),a};return Array.isArray(this.schema)?this.schema.map(r=>t(r,r.key)):Object.entries(this.schema).map(([r,n])=>t(n,r))},mergeRules(){return Array.isArray(this.schema)?{...this.schema.reduce((e,r)=>(r.rules&&(e[r.key]=r.rules),e),{}),...this.rules}:{...this.schema.rules,...this.rules}}},data(){return{isInDialog:!1}},mounted(){this.isInDialog=this.checkAncestorWithClass(this.$refs.yzlForm.$el,"el-dialog")},methods:{validate(t){return this.$refs.yzlForm.validate(t)},clearValidate(){return this.$refs.yzlForm.clearValidate()},resetFields(){return this.$refs.yzlForm.resetFields()},checkAncestorWithClass(t,e){if(t.classList&&t.classList.contains(e))return!0;let r=t.parentElement;for(;r;){if(r.classList&&r.classList.contains(e))return!0;r=r.parentElement}return!1}}};var JT=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-form-wrapper"},[r("el-row",{staticClass:"yzl-form-grid"},[r("el-form",e._g(e._b({ref:"yzlForm",attrs:{model:e.inValue,rules:e.mergeRules}},"el-form",e.$attrs,!1),e.$listeners),[e._l(e.normalizedSchema,function(n,a){return[n&&(e.searchMore||(typeof(n==null?void 0:n.hidden)=="function"?!(n!=null&&n.hidden()):!(n!=null&&n.hidden)))?r("yzlFormItem",{key:n==null?void 0:n.key,attrs:{"data-k":n==null?void 0:n.key,model:e.inValue,schema:n,isInDialog:e.isInDialog,name:n==null?void 0:n.key},on:{"update:model":function(o){e.inValue=o}},scopedSlots:e._u([n!=null&&n.hasOwnProperty("slotName")?{key:n.slotName,fn:function(o){return[e._t(n.slotName,null,null,o)]}}:null,e._l(e.$scopedSlots,function(o,l){return{key:l,fn:function(u){return[e._t(l,null,null,u)]}}})],null,!0),model:{value:e.inValue[n==null?void 0:n.key],callback:function(o){e.$set(e.inValue,n==null?void 0:n.key,o)},expression:"inValue[item?.key]"}}):e._e()]})],2)],1)],1)},ZT=[],QT=$t(qT,JT,ZT,!1,null,null,null,null);const Eo=QT.exports;Eo.install=function(t){t.component(Eo.name,Eo)};const Rf=(t,e)=>(...r)=>{t(...r,e)},eE=(t,e)=>Object.entries(t).reduce((r,[n,a])=>(typeof a=="function"&&(r[n]=Rf(a,e)),r),{}),tE=(t,e)=>t.reduce((r,n)=>(n.handler&&typeof n.handler=="function"?r[n.name]=Rf(n.handler,e):n.eventName&&typeof n.event=="function"&&(r[n.eventName]=Rf(n.event,e)),r),{});function bi(t,e={}){return t!=null&&t.events?typeof t.events=="object"&&!Array.isArray(t.events)?eE(t.events,e):tE(t.events,e):{}}const yo=(t={})=>{const e=[],r={chinese:{condition:o=>"chineseOnly"in o?o.chineseOnly:!1,handler:o=>o.replace(/[^\u4e00-\u9fa5\s]/g,"")},space:{condition:o=>"noSpace"in o?o.noSpace:!0,handler:o=>o.replace(/\s/g,"")},specialSymbol:{condition:o=>"noSpecialSymbol"in o?o.noSpecialSymbol:!1,handler:o=>o.replace(/[^a-zA-Z0-9]/g,"")}},n=(...o)=>(o.forEach(l=>{r[l]&&e.push(r[l])}),a),a=(o,l)=>e.reduce((u,{condition:h,handler:c})=>h(l)?c(u):u,String(o));return a.extend=(o,l)=>(r[o]=l,a),{use:n,processor:a}},rE={name:"yzlDynamicFormItem",props:{schema:{type:Object,required:!0},name:{type:String,required:!0},value:{required:!0},model:{type:Object}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},componentName(){return this.schema.component},formItemAttrs(){const{label:t,required:e,rules:r,labelWidth:n}=this.schema;return{label:t,required:e,rules:r,labelWidth:n}},componentsAttrs(){const{label:t,col:e,rules:r,component:n,...a}=this.schema;return a},mergedListeners(){const t={...this.$listeners,...bi(this.schema,{content:this})};if(this.componentName==="el-input"){const e=t.input;let r=!1;const n=yo().use("chinese","space","specialSymbol");this.schema.hasOwnProperty("noSpace")&&typeof this.schema.noSpace!="boolean"&&console.error("[yzlDynamicFormItem] noSpace \u53EA\u652F\u6301 boolean \u7C7B\u578B\uFF0C\u5F53\u524D\u503C\uFF1A",this.schema.noSpace);const a=o=>{var l;if(!r){let u=n(o,this.schema);if((l=this.schema.events)!=null&&l.input){const h=this.schema.events.input(u,{content:this});u=h!==void 0?h:u}e==null||e(u),this.$emit("input",u)}};t.input=a,t.compositionstart=()=>r=!0,t.compositionend=o=>{r=!1;const l=n(o.target.value,this.schema);a(l)}}return t},mergedStyle(){const t={width:this.schema.width||"100%"};if(typeof this.schema.style=="string"){const e=this.schema.style.split(";").reduce((r,n)=>{const[a,o]=n.split(":").map(l=>l.trim());return a&&o&&(r[a]=o),r},{});return{...t,...e}}return{...t,...this.schema.style}}}};var nE=function(){var e=this,r=e._self._c;return r("el-form-item",e._b({attrs:{prop:e.name}},"el-form-item",e.formItemAttrs,!1),[e.componentName?r(e.componentName,e._g(e._b({ref:e.name,tag:"component",style:e.mergedStyle,attrs:{model:e.model,name:e.name,schema:e.schema},on:{"update:model":function(n){e.model=n}},scopedSlots:e._u([e.schema.slotName?{key:e.schema.slotName,fn:function(n){return[e._t(e.schema.slotName,null,null,{...n,item:e.schema,data:e.inValue,fmRef:e.$refs[`${e.name}Ref`]})]}}:null,e._l(e.$scopedSlots,function(n,a){return{key:a,fn:function(o){return[e._t(a,null,null,o)]}}})],null,!0),model:{value:e.inValue,callback:function(n){e.inValue=n},expression:"inValue"}},"component",e.componentsAttrs,!1),e.mergedListeners)):e._t(e.schema.slotName,null,{item:e.schema,data:e.inValue,fmRef:e.$refs[`${e.name}Ref`]})],2)},iE=[],aE=$t(rE,nE,iE,!1,null,null,null,null);const sE={name:"yzlFormItem",components:{YzlDynamicFormItem:aE.exports},props:{value:{required:!0},model:{type:Object},schema:{type:Object,required:!0},name:String,globalConfig:{type:Object},isInDialog:{type:Boolean}},computed:{inValue:{get(){return this.value},set(t){this.$emit("input",t)}},col(){var e;let t;if(this.schema.hasOwnProperty("col")&&JSON.stringify(this.schema.col)!=="{}")t=Object.assign({},this.schema.col);else if(this.schema.hasOwnProperty("span"))t=Object.assign({},{span:this.schema.span});else{const r=(((e=this.globalConfig)==null?void 0:e.searchForm)||{})[this.isInDialog?"dialogCol":"col"]||{};t=Object.assign({},r)}return t},colComponent(){var r,n;const t=this.schema.hasOwnProperty("col")||this.schema.hasOwnProperty("span"),e=!!((n=(r=this.globalConfig)==null?void 0:r.searchForm)!=null&&n[this.isInDialog?"dialogCol":"col"]);return t||e?"el-col":"div"},shouldShow(){var t;return typeof((t=this.schema)==null?void 0:t.visible)=="function"?this.schema.visible(this.model,this.schema):!0}}};var oE=function(){var e=this,r=e._self._c;return e.shouldShow?r(e.colComponent,e._b({tag:"component"},"component",e.col,!1),[r("yzlDynamicFormItem",e._g(e._b({attrs:{model:e.model,schema:e.schema,name:e.name},on:{"update:model":function(n){e.model=n}},scopedSlots:e._u([e.schema.hasOwnProperty("slotName")?{key:e.schema.slotName,fn:function(n){return[e._t(e.schema.slotName,null,{vBind:n})]}}:null,e._l(e.$scopedSlots,function(n,a){return{key:a,fn:function(o){return[e._t(a,null,null,o)]}}})],null,!0),model:{value:e.inValue,callback:function(n){e.inValue=n},expression:"inValue"}},"yzlDynamicFormItem",e.$attrs,!1),e.$listeners))],1):e._e()},lE=[],fE=$t(sE,oE,lE,!1,null,null,null,null);const So=fE.exports;So.install=function(t){t.component(So.name,So)};class aa{static register(e,r){this.strategies.set(e,r)}static create(e,r,n){return(this.strategies.get(e)||this.strategies.get("default")).create(r,n)}}xp(aa,"strategies",new Map),aa.register("default",{create:(t,{form:e,excludeKeys:r})=>{const a=["el-select","yzlRangeInput","yzlRange","yzlDatePicker"].includes(t==null?void 0:t.component)?[]:"";if(r.has(t.key))return a;t.key in e||(e[t.key]=a)}}),aa.register("yzlCompositeSelect",{create:(t,{form:e,excludeKeys:r})=>{const n=Object.keys(t.children||{});if(n.length===0)return"";const a=t.key;return e[a]||(e[a]=n[0]),n.forEach(o=>{const l=t.children[o];l.key=o,l!=null&&l.alias?l.alias.forEach(u=>{u in e||(e[u]="")}):(l==null?void 0:l.component)&&!r.has(o)&&aa.create(l.component,l,{form:e,excludeKeys:r,parentKey:a})}),e[a]}}),aa.register("yzlRangeInput",{create:()=>[]});function Ao(t,e={},r={deep:!1}){const n={...e},a=new Set(r.exclude||[]);return Object.entries(t).forEach(([o,l])=>{a.has(o)||aa.create(l.component,{...l,key:o},{form:n,excludeKeys:a})}),n}const _b="",uE={name:"yzlPagelist",mixins:[Dl],props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})},searchs:{type:Object,default:null},columns:{type:Array,default:null},exports:{type:Object,default:null},isPagination:{type:Boolean,default:!0},hideSearch:{type:Boolean,default:!1},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},globalConfig:{type:Object},api:{type:Function},enableVirtualScroll:{type:Boolean,default:!1},enableEnterSearch:{type:Boolean,default:!0},tableId:{type:String,default:void 0},exportsLocal:{type:Boolean,default:!1},enableDynamicInSetting:{type:Boolean,default:!1},paginationTotalCount:{type:Number,default:null},rowKey:{type:[String,Function],default:void 0},showIndex:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.mergedSearchs).length>0},mergedSearchs(){return this.searchs||this.config.searchs||{}},mergedExports(){return this.exports||this.config.exports||{}},mergedColumns(){return this.columns||this.config.columns||[]},mergedAutoReload(){var e,r;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(r=(e=this.globalConfig)==null?void 0:e.autoReloadOnReset)!=null?r:!1},localData(){const t=this.data||{},{pageInfo:e,data:r,...n}=this.data;if(this.mergedSearchs){const a=Ao(this.mergedSearchs,n,{exclude:["_slotSearchButtons"]});Object.keys(a).forEach(o=>{o in t||this.$set(t,o,a[o])})}return this.data.pageInfo||this.$set(this.data,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),t},searchSlots(){const t=this.mergedSearchs||{};return Object.keys(t).reduce((e,r)=>(t[r].slotName&&(e[r]=t[r]),e),{})},isHideSearchMore(){return!(Object.keys(this.mergedSearchs).findIndex(e=>{const r=this.mergedSearchs[e].hidden;return typeof r=="function"?r():r})>=0)},paginationAttrs(){var a,o;const{paginationLayout:t,paginationSmall:e,pageInfo:r}=this.$attrs,n={...this.globalConfig.pagination};return n.layout=t||((o=(a=this.globalConfig)==null?void 0:a.pagination)==null?void 0:o.layout),e&&(n.small=e),n},handleReset(){this.$emit("reset")},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const t=Object.values(this.mergedSearchs);return t.length===0?"auto":Math.max(...t.map(r=>(r.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},mounted(){var t;!this.mergedSearchs||this.api&&!((t=this.localData.data)!=null&&t.length)&&this.loadTableData()},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.mergedSearchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=Ao(this.mergedSearchs,this.data,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(t){if(this.enableEnterSearch)this.reloadTableData();else return console.log("\u975E\u56DE\u8F66\u641C\u7D22"),!1},async loadTableData(t=null){let e;if(this.api)try{this.startLoading(),await this.$nextTick(),e=await this.api(this.localData)}finally{this.$nextTick(()=>this.stopLoading()),this.$refs.inpRef.doLayout()}this.$emit("search",e,this.localData,t)},handleSearchReset(){Object.entries(this.resetForm).forEach(([t,e])=>{t!=="data"&&(this.localData[t]=e)}),this.$emit("reset",this.localData),this.mergedAutoReload&&!this.$listeners.reset&&this.reloadTableData()},reloadTableData(){this.data.pageInfo&&(this.data.pageInfo.page=1),this.loadTableData()},handleSearchMoreClick(){this.searchMore=!this.searchMore,this.searchMore&&this._setSearchHeight()},addColumn(...t){var e;(e=this.$refs.inpRef)==null||e.addColumn(...t)},resetColumns(...t){var e;(e=this.$refs.inpRef)==null||e.resetColumns(...t)},toggleRowSelection(t,e){var r;(r=this.$refs.inpRef)==null||r.toggleRowSelection(t,e)},clearSelection(){var t;(t=this.$refs.inpRef)==null||t.clearSelection()},toggleAllSelection(){var t;(t=this.$refs.inpRef)==null||t.toggleAllSelection()},setCurrentRow(t){var e;(e=this.$refs.inpRef)==null||e.setCurrentRow(t)},_setSearchHeight(){this.$nextTick(()=>{const t=this.$refs.PageListRef.$el.scrollHeight;this.$refs.PageListRef.$el.style.setProperty("--row-height",`${t}px`)})}}};var cE=function(){var n,a;var e=this,r=e._self._c;return r("div",{staticClass:"yzl-pagelist-wrapper"},[!e.hideSearch&&e.hasSearchForm?r("yzlForm",{ref:"PageListRef",staticClass:"yzl-search-wrapper",class:{"search-more":e.searchMore},attrs:{"label-width":e.computedLabelWidth,schema:e.mergedSearchs,searchMore:e.searchMore,value:e.localData,size:e.$attrs.size||((a=(n=e.globalConfig)==null?void 0:n.global)==null?void 0:a.size)||"mini","v-bind":e.$attrs,enableEnterSearch:e.enableEnterSearch},nativeOn:{submit:function(o){return o.preventDefault(),e.handleSubmit.apply(null,arguments)}},scopedSlots:e._u([e._l(e.searchSlots,function(o,l){return{key:o.slotName,fn:function(u){return[r("div",{key:l,staticStyle:{display:"flex","align-items":"center",width:"100%"}},[e._t(o.slotName,null,{row:u.row,searchItem:o,index:l})],2)]}}}),{key:"searchButtons",fn:function(){return[e.hideSearchButton?e._e():r("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":e.enableEnterSearch?"submit":"button",loading:e.mergedLoading},on:{click:function(o){e.enableEnterSearch||e.reloadTableData()}}},[e._v(e._s(e.$t("Pagelist.search")))]),e.hideSearchReset?e._e():r("el-button",{staticClass:"search-button",on:{click:e.handleSearchReset}},[e._v(e._s(e.$t("Pagelist.reset")))]),e._t("searchExpandButton"),!e.isHideSearchMore&&!e.hideSearchMore?r("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:e.handleSearchMoreClick}},[e._v(e._s(e.searchMore?e.$t("Pagelist.collapse"):e.$t("Pagelist.expand"))),r("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!e.searchMore}]})]):e._e()]},proxy:!0}],null,!0)}):e._e(),e.$slots.tableTop&&e.$slots.tableTop.length>0?r("div",{staticClass:"buttons-box"},[e._t("tableTop")],2):e._e(),e._t("noTable",function(){return[r("yzlTable",e._g(e._b({ref:"inpRef",staticClass:"flex-auto-full",attrs:{data:e.data.data,pageInfo:e.data.pageInfo,columns:e.mergedColumns,exports:e.mergedExports,loading:e.mergedLoading,useLoading:e.useLoading,model:e.localData,enableVirtualScroll:e.enableVirtualScroll,tableId:e.tableId||e.config.tableId||"",exportsLocal:e.exportsLocal,enableDynamicInSetting:e.enableDynamicInSetting,rowKey:e.rowKey,showIndex:e.showIndex},on:{"update:loading":o=>e.isLoading=o,search:e.loadTableData},scopedSlots:e._u([e._l(e.$scopedSlots,function(o,l){return{key:l,fn:function(u){return[e._t(l,null,null,u)]}}}),{key:"append",fn:function(){return[e._t("append")]},proxy:!0}],null,!0)},"yzlTable",e.$attrs,!1),e.$listeners))]}),e.isPagination?r("yzlPagination",e._g(e._b({staticClass:"pagination-style",attrs:{background:"",pageInfo:e.data.pageInfo,paginationTotalCount:e.paginationTotalCount},on:{updateTable:function(o){return e.loadTableData(!0)}}},"yzlPagination",e.paginationAttrs,!1),e.$listeners)):e._e()],2)},hE=[],dE=$t(uE,cE,hE,!1,null,"3e7f58fb",null,null);const Co=dE.exports;Co.install=function(t){t.component(Co.name,Co)};const wb="",pE={name:"yzlTree",props:{treeProps:{type:Object},hideSearchSwitch:{type:Boolean,default:!1},title:{type:String,default:""},flexible:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},globalConfig:{type:Object},isEdit:{type:Boolean,default:!0},placeholder:{type:String,default:""},hideSearchInput:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},nodeIcons:{type:Object,default:()=>({1:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-takeaway-box"},2:{type:"icon",expand:"el-icon-folder-opened",collapse:"el-icon-folder"},3:{type:"img",expand:"/images/expanded.png",collapse:"/images/collapsed.png"}})},hideExpandButton:{type:Boolean,default:!0}},data(){return{isExpand:!0,filterText:""}},computed:{isEditLocal:{get(){return this.isEdit},set(t){this.$emit("update:isEdit",t)}}},watch:{filterText(t){this.$refs.yzlTree.filter(t)}},methods:{handleNodeClick(t,e,r){this.resetParentNodesStyle(),this.setParentsStyle(r.$el)},setParentsStyle(t){let e=t.parentNode.parentNode;t.parentNode.classList.contains("el-tree")||e&&(e.firstChild.classList.add("highlight-parent"),this.setParentsStyle(e))},resetParentNodesStyle(){this.$refs.yzlTree.$el.querySelectorAll(".highlight-parent").forEach(e=>{e.classList.remove("highlight-parent")})},handleChangeExpand(){this.isExpand=!this.isExpand},handleItemClick(t,e,r){this.$emit("operate-click",t,e,r)},setCurrentKey(t){this.$refs.yzlTree.setCurrentKey(t)},setCurrentNode(t){this.$refs.yzlTree.setCurrentNode(t)},setCheckedKeys(t){this.$refs.yzlTree.setCheckedKeys(t)},setChecked(t,e,r){this.$refs.yzlTree.setChecked(t,e,r)}}};var gE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-tree-wrapper"},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isExpand,expression:"isExpand"}],staticClass:"content"},[e.title||!e.hideSearchSwitch?r("div",{staticClass:"buttons"},[r("span",{staticClass:"name"},[e._v(e._s(e.title))]),e.hideSearchSwitch?e._e():r("el-switch",{staticClass:"edit",attrs:{size:e.$attrs.size||e.globalConfig.global.size||"mini"},model:{value:e.isEditLocal,callback:function(n){e.isEditLocal=n},expression:"isEditLocal"}})],1):e._e(),e._t("search-top"),e.hideSearchInput?e._e():r("div",{staticClass:"search"},[r("el-input",{staticClass:"search-input",attrs:{placeholder:e.placeholder||e.$t("Form.input"),"suffix-icon":"el-icon-search",size:e.$attrs.size||e.globalConfig.global.size||"mini"},model:{value:e.filterText,callback:function(n){e.filterText=n},expression:"filterText"}})],1),r("el-tree",e._g(e._b({ref:"yzlTree",attrs:{"highlight-current":"",indent:8},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:n,data:a}){return r("span",{staticClass:"custom-tree-node"},[e._t("treeItem",function(){return[r("span",{staticClass:"left-align ellipsis"},[e.showIcon?[n.isCurrent&&e.nodeIcons[n.level].selected?[e.nodeIcons[n.level].type==="icon"?r("i",{class:e.nodeIcons[n.level].selected}):r("img",{staticClass:"icon-img",attrs:{src:e.nodeIcons[n.level].selected}})]:[e.nodeIcons[n.level].type==="icon"?r("i",{class:n.expanded?e.nodeIcons[n.level].expand:e.nodeIcons[n.level].collapse}):r("img",{staticClass:"icon-img",attrs:{src:n.expanded?e.nodeIcons[n.level].expand:e.nodeIcons[n.level].collapse}})]]:e._e(),e._v(" "+e._s(n.label)+" ")],2)]},null,{node:n,data:a})],2)}}],null,!0)},"el-tree",e.$attrs,!1),e.$listeners))],2),e.hideExpandButton?e._e():r("div",{class:["onoff",{"is-expand":!e.isExpand}],on:{click:function(n){return e.handleChangeExpand()}}},[r("i",{class:["el-icon-d-arrow-left",{"is-expand":!e.isExpand}]})])])},mE=[],xE=$t(pE,gE,mE,!1,null,"4eac368b",null,null);const Fo=xE.exports;Fo.install=function(t){t.component(Fo.name,Fo)};const Tb="",Lf={name:"guodeDialog",mixins:[ql],props:{width:{type:String,default:"500px"},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:.8},title:String,confirmText:String,draggable:Boolean,appendToBody:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},customFooter:{type:Boolean,default:!1},isCancelBtn:{type:Boolean,default:!0},isConfirmBtn:{type:Boolean,default:!0},customClass:{type:String,default:""},dialogTemplate:{type:[Object,Function],required:!0},events:{type:Object,default:()=>({})},onConfirm:{type:Function,default:()=>{}},onCancel:{type:Function,default:()=>{}}},data(){return{visible:!0,viewportHeight:window.innerHeight,confirmLoading:!1}},computed:{inVisible:{get(){return this.visible},set(t){this.$emit("update:visible",t)}},normalizedHeight(){return this.height?typeof this.height=="number"?this.height<1?`${this.height*this.viewportHeight}px`:`${this.height}px`:String(this.height).includes("%")?`${parseFloat(this.height)/100*this.viewportHeight}px`:this.height:null},normalizedMaxHeight(){return typeof this.maxHeight=="number"?this.maxHeight<1?`${this.maxHeight*this.viewportHeight}px`:`${this.maxHeight}px`:String(this.maxHeight).includes("%")?`${parseFloat(this.maxHeight)/100*this.viewportHeight}px`:this.maxHeight},normalizedWidth(){return typeof this.width=="number"?this.width<1?`${this.width*100}%`:`${this.width}px`:String(this.width).match(/(px|%)$/)?this.width:`${this.width}px`},size(){return this.$attrs.size||this.globalSize||"mini"}},mounted(){if(!this.appendToBody){const t=document.fullscreenElement;t&&(console.log(this.$refs.dialogEl.$el),this.$nextTick(()=>{const{previousElementSibling:e}=this.$refs.dialogEl.$el;!this.modalAppendToBody&&e.classList.contains("v-modal")&&t.appendChild(e),t.appendChild(this.$refs.dialogEl.$el)}))}window.addEventListener("keydown",t=>{(t.key==="Enter"||t.code==="Enter")&&this.handleConfirm()},!1)},methods:{close(){this.visible=!1,this.confirmLoading=!1,this.$nextTick(()=>{this.$destroy()})},handleCancel(){this.$emit("close"),this.close(),this.onCancel({el:this.$refs.dialogInComponent,close:this.close})},setLoading(t){this.confirmLoading=t},handleConfirm:Ma.exports.debounce(async function(){try{this.confirmLoading=!0,await this.onConfirm({el:this.$refs.dialogInComponent,close:this.close,setLoading:this.setLoading})}catch(t){console.error("Confirm error:",t)}},500,{leading:!0,trailing:!1})}},zh=()=>{Sr.useCssVars((t,e)=>({"30fc9fe8":t.normalizedHeight,"51be7ab4":t.normalizedMaxHeight}))},Gh=Lf.setup;Lf.setup=Gh?(t,e)=>(zh(),Gh(t,e)):zh;const vE=Lf;var _E=function(){var e=this,r=e._self._c;return r("el-dialog",e._g(e._b({directives:[{name:"dialogDrag",rawName:"v-dialogDrag",value:e.draggable,expression:"draggable"}],ref:"dialogEl",attrs:{title:e.title,visible:e.visible,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,"close-on-press-escape":e.closeOnPressEscape,"close-on-click-modal":e.closeOnClickModal,width:e.normalizedWidth,"custom-class":e.customClass},on:{"update:visible":function(n){e.visible=n},close:e.handleCancel}},"el-dialog",e.$attrs,!1),e.$listeners),[r(e.dialogTemplate,e._g(e._b({ref:"dialogInComponent",tag:"component",on:{close:e.close}},"component",e.$attrs,!1),e.events)),r("div",{attrs:{slot:"footer"},slot:"footer"},[e.customFooter?e._e():[e.isConfirmBtn?r("el-button",{staticClass:"footer-button",attrs:{size:e.size,type:"primary",loading:e.confirmLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmText||e.$t("Dialog.confirm"))+" ")]):e._e(),e.isCancelBtn?r("el-button",{staticClass:"footer-button",attrs:{size:e.size},on:{click:()=>{this.visible=!1}}},[e._v(e._s(e.$t("Dialog.cancel")))]):e._e()],e.customFooter?e._t("footer"):e._e()],2)],1)},wE=[],TE=$t(vE,_E,wE,!1,null,"53d51626",null,null);const EE=TE.exports;function yE(t){let e=di.default.extend({name:t.name,data(){return{visible:!0}},render(n){let a=Ma.exports.isPlainObject(t)?{...t}:{};return n(EE,{ref:"dialogRef",props:{draggable:!0,appendToBody:a.appendToBody,modalAppendToBody:a.modalAppendToBody,closeOnClickModal:!1,maxHeight:a.maxHeight,onConfirm:o=>{var l;(l=a.onConfirm)==null||l.call(a,o)},onCancel:o=>{var l;(l=a.onCancel)==null||l.call(a,o)}},attrs:{...a}})}}),r;return r=new e().$mount(),document.body.appendChild(r.$el),r.visible=!0,r.close=()=>{r.$refs.dialogRef.close()},r.setLoading=n=>{r.$refs.dialogRef.setLoading(n)},r}const SE={install(t){t.prototype.$dialog=yE}},Eb="",AE={name:"yzlSearch",mixins:[Dl],props:{searchs:{type:[Object,Array],required:!0,default:()=>({})},form:{type:Object,required:!0},globalConfig:{type:Object},hideSearchButton:{type:Boolean,default:!1},hideSearchReset:{type:Boolean,default:!1},hideSearchMore:{type:Boolean,default:!1},autoReloadOnReset:{type:Boolean,default:void 0},searchButttonText:{type:String,default:""},searchResetText:{type:String,default:""},enableEnterSearch:{type:Boolean,default:!0}},data(){return{searchMore:!1}},computed:{hasSearchForm(){return Object.keys(this.searchs).length>0},computedSearchButtonText(){var t,e;return this.searchButttonText||((e=(t=this.globalConfig)==null?void 0:t.searchForm)==null?void 0:e.searchButtonText)||this.$t("Pagelist.search")},computedSearchResetText(){var t,e;return this.searchResetText||((e=(t=this.globalConfig)==null?void 0:t.searchForm)==null?void 0:e.searchResetText)||this.$t("Pagelist.reset")},searchSlots(){return Object.keys(this.searchs).reduce((t,e)=>{const r=this.searchs[e];return r&&typeof r=="object"&&r.slotName&&(t[e]=r),t},{})},mergedAutoReload(){var t,e;return typeof this.autoReloadOnReset<"u"?this.autoReloadOnReset:(e=(t=this.globalConfig)==null?void 0:t.autoReloadOnReset)!=null?e:!1},isHideSearchMore(){return!(Object.keys(this.searchs).findIndex(e=>{const r=this.searchs[e].hidden;return typeof r=="function"?r():r})>=0)},localData(){const t=this.form||{};if(this.searchs){const e=Ao(this.searchs,this.form,{exclude:["_slotSearchButtons"]});Object.keys(e).forEach(r=>{r in t||this.$set(t,r,e[r])})}return t.pageInfo||this.$set(t,"pageInfo",JSON.parse(JSON.stringify(this.globalConfig.pageInfo||{page:1,size:50}))),t},computedLabelWidth(){if(this.$attrs.labelWidth)return this.$attrs.labelWidth;const t=Object.values(this.searchs);return t.length===0?"auto":Math.max(...t.map(r=>(r.label||"").replace(/[^\\u4e00-\\u9fa5]/g,"").length))>6?"104px":"auto"}},created(){!this.hideSearchButton&&this.hasSearchForm&&(this.searchs._slotSearchButtons={slotName:"searchButtons"}),this.resetForm=Ao(this.searchs,this.form,{exclude:["_slotSearchButtons"]})},methods:{handleSubmit(t){if(this.enableEnterSearch)this.reloadTableData();else return!1},handleSearchReset(){var t;Object.entries(this.resetForm).forEach(([e,r])=>{e!=="data"&&(this.form[e]=r)}),this.$emit("reset",this.form),this.mergedAutoReload&&!((t=this.$listeners)!=null&&t.reset)&&this.reloadTableData()},getFormRef(){return this.$refs.formRef},async reloadTableData(){this.startLoading();try{this.form.pageInfo&&(this.form.pageInfo.page=1),await this.loadTableData()}finally{this.stopLoading()}},async loadTableData(){try{this.$emit("search")}catch(t){console.error("Search error:",t)}}}};var CE=function(){var e=this,r=e._self._c;return r("yzlForm",e._b({ref:"formRef",staticClass:"yzl-search-wrapper",class:{"search-more":e.searchMore},attrs:{"label-width":e.computedLabelWidth,schema:e.searchs,searchMore:e.searchMore,value:e.localData},nativeOn:{submit:function(n){return n.preventDefault(),e.handleSubmit.apply(null,arguments)}},scopedSlots:e._u([e._l(e.searchSlots,function(n,a){return{key:n.slotName,fn:function(o){return[e._t(n.slotName,null,{row:o.row,searchItem:n,index:a})]}}}),{key:"searchButtons",fn:function(){return[e._t("searchButtons",function(){return[e.hideSearchButton?e._e():r("el-button",{staticClass:"search-button",attrs:{icon:"el-icon-search",type:"primary","native-type":e.enableEnterSearch?"submit":"button",loading:e.mergedLoading},on:{click:function(n){!e.enableEnterSearch&&e.reloadTableData}}},[e._v(e._s(e.computedSearchButtonText))]),e.hideSearchReset?e._e():r("el-button",{staticClass:"search-button",on:{click:e.handleSearchReset}},[e._v(e._s(e.computedSearchResetText))])]}),e._t("searchExpandButton"),!e.isHideSearchMore&&!e.hideSearchMore?r("el-link",{staticClass:"search-more",attrs:{type:"primary",underline:!1},on:{click:function(n){e.searchMore=!e.searchMore}}},[e._v(" "+e._s(e.searchMore?e.$t("Pagelist.collapse"):e.$t("Pagelist.expand"))),r("i",{class:["el-icon-view","el-icon-arrow-up",{isUp:!e.searchMore}]})]):e._e()]},proxy:!0}],null,!0)},"yzlForm",e.$attrs,!1))},FE=[],bE=$t(AE,CE,FE,!1,null,"646e8c31",null,null);const bo=bE.exports;bo.install=function(t){t.component(bo.name,bo)};const yb="",OE={name:"yzlDrawer",model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"},title:{type:String,default:""},showHeader:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},maxWidth:{type:Number,default:500},draggable:{type:Boolean,default:!0},width:{type:Number,default:300},minCloseWidth:{type:Number,default:100}},watch:{visible:{handler(t){if(!t){requestAnimationFrame(()=>{this.drawerWidth=0});return}try{const e=Number(localStorage.getItem(this.storageKey));this.drawerWidth=e>0?Math.min(e,this.maxWidth):this.width}catch(e){console.warn("LocalStorage access failed:",e),this.drawerWidth=this.width}},immediate:!0}},computed:{storageKey(){return`drawer_width_${this.$route.name}`}},data(){return{drawerWidth:0,startX:0,startWidth:0,isDragging:!1}},beforeDestroy(){["mousemove","mouseup"].forEach(t=>{document.removeEventListener(t,this.doDrag),document.removeEventListener(t,this.stopDrag)})},methods:{toggleDrawer(){this.$emit("change",!this.visible),this.$emit("toggle",!this.visible)},handleClose(){this.$emit("change",!1),this.$emit("close")},doDrag(t){requestAnimationFrame(()=>{const e=Math.min(Math.max(this.startWidth+(this.startX-t.clientX),100),this.maxWidth);this.drawerWidth=e})},stopDrag(t){document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),this.$refs.drawer.classList.remove("dragging"),this.drawerWidth>this.minCloseWidth?this.persistWidth():(this.drawerWidth=0,this.$emit("change",!1))},startDrag(t){this.$refs.drawer.classList.add("dragging"),this.startX=t.clientX,this.startWidth=this.drawerWidth,document.removeEventListener("mousemove",this.doDrag),document.removeEventListener("mouseup",this.stopDrag),window.removeEventListener("blur",this.stopDrag),document.addEventListener("mousemove",this.doDrag,{passive:!0}),document.addEventListener("mouseup",this.stopDrag,{passive:!0}),window.addEventListener("blur",this.stopDrag)},persistWidth(){localStorage.setItem(this.storageKey,this.drawerWidth)}}};var DE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yzl-drawer-wrapper"},[r("div",{staticClass:"left"},[e._t("default")],2),r("div",{ref:"drawer",staticClass:"right",style:{width:e.drawerWidth+"px"}},[e.showHeader?r("div",{staticClass:"drawer-header"},[e._t("titleSlot",function(){return[r("span",{staticClass:"title"},[e._v(e._s(e.title))])]}),e.showClose?r("el-button",{staticClass:"close-btn",attrs:{type:"text"},on:{click:e.handleClose}},[r("i",{staticClass:"el-icon-close"})]):e._e()],2):e._e(),r("div",{staticClass:"drawer-content"},[e._t("drawer")],2),e.draggable?r("div",{staticClass:"dragger",on:{mousedown:e.startDrag}}):e._e()])])},IE=[],RE=$t(OE,DE,IE,!1,null,"29881cc3",null,null);const Oo=RE.exports;Oo.install=function(t){t.component(Oo.name,Oo)};const LE={name:"yzlSelect",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(t){this.$emit("input",t)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},mergedListeners(){return{...this.$listeners,...bi(this.schema,{context:this}),change:this.handleSelectionChange}}},methods:{handleSelectionChange(t,...e){const r={selectedItem:this.schema.options.find(n=>n[this.fieldNames.value]===t),context:this};this.$emit("change",t,...e,r)}}};var NE=function(){var e=this,r=e._self._c;return r("el-select",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-select",e.schema,!1),e.mergedListeners),e._l(e.schema.options,function(n,a){return r("el-option",{key:a,attrs:{label:n[e.fieldNames.label],value:n[e.fieldNames.value],disabled:n.disabled}},[e._t(e.schema.slotName,function(){return[e._v(" "+e._s(n[e.fieldNames.label])+" ")]},null,{optionItem:n,labelKey:e.fieldNames.label,valueKey:e.fieldNames.value})],2)}),1)},kE=[],PE=$t(LE,NE,kE,!1,null,null,null,null);const Do=PE.exports;Do.install=function(t){t.component(Do.name,Do)};const ME={name:"yzlRadio",props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.value},set(t){this.$emit("input",t)}},fieldNames(){return{label:this.schema.optionLabel||"label",value:this.schema.optionValue||"value"}},radioGroupAttrs(){const{size:t,disabled:e,textColor:r,fill:n}=this.schema;return{size:t,disabled:e,textColor:r,fill:n}},radioAttrs(){const{label:t,border:e,size:r,name:n,value:a}=this.schema;return{label:t,border:e,size:r,name:n,value:a}},radioButtonAttrs(){const{label:t,disabled:e,name:r}=this.schema;return{label:t,disabled:e,name:r}}}};var BE=function(){var e=this,r=e._self._c;return r("el-radio-group",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-radio-group",e.radioGroupAttrs,!1),e.$listeners),[e._l(e.schema.options,function(n,a){return[n.type!=="button"?r("el-radio",e._b({key:"radio_"+a,attrs:{label:n[e.fieldNames.value]}},"el-radio",e.radioAttrs,!1),[e._v(" "+e._s(n[e.fieldNames.label])+" ")]):r("el-radio-button",e._b({key:"radio_button_"+a,attrs:{label:n[e.fieldNames.value]}},"el-radio-button",e.radioButtonAttrs,!1),[e._v(" "+e._s(n[e.fieldNames.label])+" ")])]})],2)},$E=[],UE=$t(ME,BE,$E,!1,null,null,null,null);const Io=UE.exports;Io.install=function(t){t.component(Io.name,Io)};const WE={props:{model:{type:Object,default:()=>({})},schema:{type:Object,required:!0},value:{required:!0},name:{type:String}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias:[]},hasAlias(){return!!this.schema.alias}},methods:{getAliasValue(t=0){var e;return this.hasAlias?this.model[this.aliasKeys[t]]:((e=this.value)==null?void 0:e[t])||""},updateModelValue(t,e=0){if(this.hasAlias){const r=this.aliasKeys[e];this.name&&this.model.hasOwnProperty(this.name)&&delete this.model[this.name],this.$set(this.model,r,t)}else this.$emit("input",[...this.value||[],t].slice(0,2))},valueProxy(t){return{get:()=>this.getAliasValue(t),set:e=>{const r=e===null?"":e;this.hasAlias?this.updateModelValue(r,t):this.updateModelValue(r,t)}}}}},Sb="",HE={name:"yzlDatePicker",mixins:[WE],props:{value:{required:!0},schema:{type:Object,required:!0}},computed:{modelValue:{get(){return this.hasAlias?[this.getAliasValue(0)||"",this.getAliasValue(1)||""]:this.value===null?this.schema.type.includes("range")?[]:"":this.value},set(t){if(this.hasAlias){const[e="",r=""]=Array.isArray(t)?t:t!==null?[t,""]:["",""];this.updateModelValue(e,0),this.updateModelValue(r,1)}else this.$emit("input",t===null?this.schema.type.includes("range")?[]:null:t)}},mergedAttrs(){const t={rangeSeparator:"-"},e={shortcuts:[{text:this.$t("DatePicker.aWeek"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),n.$emit("pick",[o,a])}},{text:this.$t("DatePicker.aMonth"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),n.$emit("pick",[o,a])}},{text:this.$t("DatePicker.threeMonth"),onClick(n){const a=new Date,o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),n.$emit("pick",[o,a])}}]};return["daterange","datetimerange","monthrange"].includes(this.schema.type)&&(t.startPlaceholder=this.$t("DatePicker.start"),t.endPlaceholder=this.$t("DatePicker.end")),this.schema.shortcuts&&(t["picker-options"]=e),{...t,...this.schema}},mergedListeners(){const{input:t,...e}=this.$listeners;return this.hasAlias?{...e,...bi(this.schema,{context:this})}:{...this.$listeners,...bi(this.schema,{context:this})}}}};var VE=function(){var e=this,r=e._self._c;return r("el-date-picker",e._g(e._b({model:{value:e.modelValue,callback:function(n){e.modelValue=n},expression:"modelValue"}},"el-date-picker",e.mergedAttrs,!1),e.mergedListeners))},zE=[],GE=$t(HE,VE,zE,!1,null,null,null,null);const Ro=GE.exports;Ro.install=function(t){t.component(Ro.name,Ro)};const Ab="",XE={name:"yzlCompositeSelect",props:{value:{required:!0},schema:{type:Object,required:!0},model:{type:Object},name:{type:String},globalConfig:{type:Object}},data(){return{selectedKey:this.getDefaultSelectKey(),initialValues:{}}},computed:{localValue:{get(){return this.value},set(t){this.$emit("input",t)}},mergedStyle(){const t={width:this.schema.selectWidth||"84px"};if(typeof this.schema.style=="string"){const e=this.schema.style.split(";").reduce((r,n)=>{const[a,o]=n.split(":").map(l=>l.trim());return a&&o&&(r[a]=o),r},{});return{...t,...e}}return{...t,...this.schema.style}},selectedChild(){return this.schema.children[this.localValue]||{}},childOptions(){return Object.keys(this.schema.children).map(t=>({label:this.schema.children[t].label,value:t}))},mergedListeners(){return{...this.$listeners,...bi(this.schema,{context:this,selectedKey:this.localValue}),change:this.handleChange}}},watch:{"schema.children":{handler(){this.selectedKey=this.getDefaultSelectKey()},deep:!0}},mounted(){Object.entries(this.schema.children).forEach(([t,e])=>{var n,a;const r=Object.assign(typeof e=="object"?e:{},{clearable:(a=(n=this.globalConfig)==null?void 0:n.tableColumn)==null?void 0:a.clearable,key:(e==null?void 0:e.key)||t});if(!r.placeholder){const o=r.component;/^el-input/.test(o)?r.placeholder=this.$t("Form.input")+(r.label||""):/^(el|yzl|guode)-?(select|DatePicker|date(-picker)?|time(-picker)?)/i.test(o)&&(r.placeholder=this.$t("Form.select")+(r.label||""))}Array.isArray(r.rules)&&r.rules.forEach(o=>{!o.message&&!o.validator&&(o.message=r.placeholder)})})},methods:{getDefaultSelectKey(){if(this.value)return this.value;const t=Object.keys(this.schema.children);return t.length>0?t[0]:""},getChildListeners(t,e){var n,a;const r={...this.$listeners,change:o=>{var l,u;(u=(l=e.events)==null?void 0:l.change)==null||u.call(l,o,{context:this,selectedKey:this.localValue})},blur:o=>{var l,u;(u=(l=e.events)==null?void 0:l.blur)==null||u.call(l,o,{context:this,selectedKey:this.localValue})}};if((((n=e.minConfig)==null?void 0:n.rules)||((a=e.maxConfig)==null?void 0:a.rules))&&(r["update:rules"]=o=>{e.minConfig&&(e.minConfig.rules=o),e.maxConfig&&(e.maxConfig.rules=o)}),!e.alias){const o=yo().use("chinese","space","specialSymbol");r.input=l=>{var h,c;const u=o(l,this.selectedChild);(c=(h=e.events)==null?void 0:h.input)==null||c.call(h,u),this.model[t]?this.model[t]=u:this.$set(this.model,t,u)}}return r},handleChange(t){Object.keys(this.schema.children).forEach(e=>{if(e!==t){const r=this.schema.children[e];r.alias?r.alias.forEach(n=>{this.$set(this.model,n,"")}):this.$set(this.model,e,["yzlRangeInput","yzlRange"].includes(r.component)?[]:"")}}),this.$emit("input",t),this.$emit("change",{key:this.name,value:t,childSchema:this.schema.children[t]})}}};var KE=function(){var e=this,r=e._self._c;return r("div",{staticClass:"composite-wrapper"},[r("el-select",e._g(e._b({staticClass:"main-select",style:e.mergedStyle,attrs:{clearable:!1},model:{value:e.localValue,callback:function(n){e.localValue=n},expression:"localValue"}},"el-select",e.$attrs,!1),e.mergedListeners),e._l(e.childOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value}})}),1),r("div",{staticClass:"children-container"},[e.localValue?r(e.selectedChild.component,e._g(e._b({key:e.localValue,tag:"component",attrs:{value:e.model[e.localValue],fieldName:e.localValue,name:e.localValue,model:e.model,schema:e.selectedChild}},"component",e.selectedChild,!1),e.getChildListeners(e.localValue,e.selectedChild))):e._e()],1)],1)},YE=[],jE=$t(XE,KE,YE,!1,null,null,null,null);const Lo=jE.exports;Lo.install=function(t){t.component(Lo.name,Lo)};const Cb="",qE={name:"yzlUpload",props:{defaultValue:{type:Array,default:()=>[]},schema:{type:Object,required:!0},action:String,returnOssId:Boolean,uploadButtonText:String,maxSize:{type:Number,default:10*1024*1024}},computed:{mergedProps(){return{...this.$attrs,...this.schema,"show-file-list":!1,action:this.$attrs.action||"#"}}},watch:{defaultValue:{immediate:!0,handler(t){const e=this.localFileList.map(r=>r.url);JSON.stringify(e)!==JSON.stringify(t)&&(this.localFileList=t.map(r=>({url:r,name:r.split("/").pop(),raw:new File([],r.split("/").pop())})))}}},data(){return{isMouseIn:!1,localFileList:[]}},methods:{isImage(t){const e=["jpg","jpeg","png","gif","bmp","webp","svg"],r=t.split("."),n=r[r.length-1].toLowerCase();return e.includes(n)},handleAvatarSuccess(t,e){this.schema.onSuccess(t,e)},async handleHttpRequest({file:t,onSuccess:e,onError:r}){this.schema.httpRequest({file:t,onSuccess:n=>this.handleUploadSuccess(n,t,e),onError:n=>this.handleUploadError(n,r),setFunc:n=>{n.func=()=>this.localFileList=[]}})},handleUploadSuccess(t,e,r){var n;r(t,e),this.localFileList.push({...t.data,raw:e,name:e.name,url:((n=t.data)==null?void 0:n.url)||URL.createObjectURL(e)}),this.updateModel()},handleUploadError(t,e){e(t),this.$message.error(this.$t("Upload.uploadFail")+t.message)},handleOnRemove(t){this.localFileList.splice(t,1),this.updateModel()},handleMouseMove(t){this.isMouseIn=t},updateModel(){const t=this.localFileList.map(r=>r.url),e=this.localFileList.map(r=>r.ossId);this.$emit("input",this.returnOssId?e:t)}}};var JE=function(){var n,a;var e=this,r=e._self._c;return r("el-upload",e._g(e._b({ref:"uploader",attrs:{"file-list":e.localFileList,"on-success":e.handleAvatarSuccess,"http-request":e.handleHttpRequest}},"el-upload",e.mergedProps,!1),e.$listeners),[r("el-button",{attrs:{slot:"trigger",disabled:e.$attrs.disabled||((n=e.localFileList)==null?void 0:n.length)>=e.$attrs.limit,size:e.$attrs.size,type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.uploadButtonText||e.$t("Upload.uploadButtonText"))+" ")]),(a=e.localFileList)!=null&&a.length?r("div",{staticClass:"upload-list"},e._l(e.localFileList,function(o,l){return r("div",{key:l,staticClass:"upload-img",on:{mouseenter:function(u){return e.handleMouseMove(!0)},mouseleave:function(u){return e.handleMouseMove(!1)}}},[e.isImage(o.url)?r("el-image",{staticClass:"img-item",attrs:{"preview-src-list":[o.url],src:o.url}}):r("div",{staticClass:"file-doc"},[r("i",{staticClass:"el-icon-document"})]),r("p",{staticClass:"img-name"},[e._v(e._s(o.name||e.$t("Upload.noText")))]),r("div",{staticClass:"triangle"},[e.isMouseIn&&!e.$attrs.disabled?r("i",{staticClass:"el-icon-close img-check",on:{click:function(u){return e.handleOnRemove(l)}}}):r("i",{staticClass:"el-icon-check img-check"})])],1)}),0):e._e(),r("div",{staticClass:"el-upload__tip"},[e._v(e._s(e.$t("Upload.uploadRule",[e.$attrs.limit||10,e.maxSize/1024/1024])))])],1)},ZE=[],QE=$t(qE,JE,ZE,!1,null,"608744b1",null,null);const No=QE.exports;No.install=function(t){t.component(No.name,No)};const Fb="",ey={name:"YzlRangeInput",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""},globalConfig:{type:Object}},data(){return{currentValues:["",""],minConfig:{},maxConfig:{}}},computed:{aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minValue:Xh(0),maxValue:Xh(1),mergedMinListeners(){const t=yo().use("chinese","space","specialSymbol");let e=!1;const r=bi(this.minConfig,{context:this});return{...r,input:n=>{var a;if(!e){const o=t(n,this.minConfig);this.minValue=o}(a=r.input)==null||a.call(r,n)},compositionstart:()=>{var n;e=!0,(n=r.compositionstart)==null||n.call(r)},compositionend:n=>{var o;e=!1;const a=t(n.target.value,this.minConfig);this.minValue=a,(o=r.compositionend)==null||o.call(r,n)},change:n=>{var a;this.handleChange(0),(a=r.change)==null||a.call(r,{value:this.minValue,fullValue:[...this.currentValues]},n)}}},mergedMaxListeners(){const t=yo().use("chinese","space","specialSymbol");let e=!1;const r=bi(this.maxConfig,{context:this});return{...r,input:n=>{var a;if(!e){const o=t(n,this.maxConfig);this.maxValue=o,(a=r.input)==null||a.call(r,n)}},compositionstart:()=>{var n;e=!0,(n=r.compositionstart)==null||n.call(r)},compositionend:n=>{var o;e=!1;const a=t(n.target.value,this.maxConfig);this.maxValue=a,(o=r.compositionend)==null||o.call(r,n)},change:n=>{var a;this.handleChange(1),(a=r.change)==null||a.call(r,{value:this.maxValue,fullValue:[...this.currentValues]},n)}}}},watch:{value:{immediate:!0,handler(t){this.hasAlias||this.syncValues(t)}},model:{deep:!0,handler(){this.hasAlias&&this.syncValues([this.model[this.aliasKeys[0]]||"",this.model[this.aliasKeys[1]]||""])}}},mounted(){var t,e,r,n;this.minConfig=Object.assign({placeholder:(this.schema.label||"")+this.$t("common.start"),clearable:(e=(t=this.globalConfig)==null?void 0:t.tableColumn)==null?void 0:e.clearable},this.schema.minConfig),this.maxConfig=Object.assign({placeholder:(this.schema.label||"")+this.$t("common.end"),clearable:(n=(r=this.globalConfig)==null?void 0:r.tableColumn)==null?void 0:n.clearable},this.schema.maxConfig)},methods:{syncValues([t="",e=""]=[]){const r=typeof t=="string"?t:String(t),n=typeof e=="string"?e:String(e);this.currentValues=[r,n],this.minValue!==r&&(this.minValue=r),this.maxValue!==n&&(this.maxValue=n)},handleChange(t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const e={value:t===0?this.minValue:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",{min:this.minValue,max:this.maxValue,fullValue:e.fullValue})},300)}}};function Xh(t){return{get(){return this.hasAlias?this.model[this.aliasKeys[t]]||"":this.currentValues[t]},set(e){var a;let r=e;t===0&&((a=this.minConfig)==null?void 0:a.chineseOnly)&&(r=r.replace(/[^\u4e00-\u9fa5]/g,""));const n=r===null?"":r;n!==this.currentValues[t]&&(this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[t],n)):(this.aliasKeys.forEach(o=>this.$delete(this.model,o)),this.$set(this.model,this.fieldName,n)),this.currentValues.splice(t,1,n))}}}var ty=function(){var e=this,r=e._self._c;return r("div",{staticClass:"range-input-wrapper"},[r("el-input",e._g(e._b({staticClass:"range-input__min",attrs:{placeholder:e.minConfig.placeholder},scopedSlots:e._u([e.$slots["prepend-min"]?{key:"prepend",fn:function(){return[e._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:e.minValue,callback:function(n){e.minValue=n},expression:"minValue"}},"el-input",e.minConfig,!1),e.mergedMinListeners)),r("div",{staticClass:"range-input__separator"},[e._v("-")]),r("el-input",e._g(e._b({staticClass:"range-input__max",attrs:{placeholder:e.maxConfig.placeholder},scopedSlots:e._u([e.$slots["prepend-max"]?{key:"prepend",fn:function(){return[e._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:e.maxValue,callback:function(n){e.maxValue=n},expression:"maxValue"}},"el-input",e.maxConfig,!1),e.mergedMaxListeners))],1)},ry=[],ny=$t(ey,ty,ry,!1,null,null,null,null);const ko=ny.exports;ko.install=function(t){t.component(ko.name,ko)};const bb="",iy={name:"YzlRange",props:{value:{type:Array,default:()=>["",""]},schema:{type:Object,default:()=>({alias:[],minConfig:{},maxConfig:{}})},model:{type:Object,default:()=>({})},fieldName:{type:String,default:""}},data(){return{currentValues:["",""]}},computed:{minComponent(){var t;return((t=this.schema.minConfig)==null?void 0:t.component)||"el-input"},maxComponent(){var t;return((t=this.schema.maxConfig)==null?void 0:t.component)||"el-input"},minOptions(){var t;return((t=this.schema.minConfig)==null?void 0:t.options)||[]},maxOptions(){var t;return((t=this.schema.maxConfig)==null?void 0:t.options)||[]},aliasKeys(){return Array.isArray(this.schema.alias)?this.schema.alias.slice(0,2):[]},hasAlias(){return this.aliasKeys.length===2},minConfig(){return{placeholder:this.$t("Range.min"),...typeof this.schema.minConfig=="object"?this.schema.minConfig:{}}},maxConfig(){return{placeholder:this.$t("Range.max"),...typeof this.schema.maxConfig=="object"?this.schema.maxConfig:{}}},minValue:Kh(0),maxValue:Kh(1)},watch:{value:{immediate:!0,handler(t){this.hasAlias||this.syncValues(t)}}},methods:{syncValues([t="",e=""]=[]){const r=typeof t=="string"?t:String(t),n=typeof e=="string"?e:String(e);this.currentValues=[r,n],this.minValue!==r&&(this.minValue=r),this.maxValue!==n&&(this.maxValue=n)},handleChange(t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{const e={min:this.minValue,max:this.maxValue,fullValue:[...this.currentValues]};this.$emit("change",e)},300)}}};function Kh(t){return{get(){return this.hasAlias?this.model[this.aliasKeys[t]]||"":this.currentValues[t]},set(e){const r=e===null?"":e;this.hasAlias?(this.$delete(this.model,this.fieldName),this.$set(this.model,this.aliasKeys[t],r)):(this.aliasKeys.forEach(n=>this.$delete(this.model,n)),this.$set(this.model,this.fieldName,r)),this.currentValues.splice(t,1,r)}}}var ay=function(){var e=this,r=e._self._c;return r("div",{staticClass:"range-input-wrapper"},[r(e.minComponent,e._b({tag:"component",staticClass:"range-input__min",attrs:{schema:e.minConfig},on:{input:function(n){return e.handleChange(0)}},scopedSlots:e._u([e.$slots["prepend-min"]?{key:"prepend",fn:function(){return[e._t("prepend-min")]},proxy:!0}:null],null,!0),model:{value:e.minValue,callback:function(n){e.minValue=n},expression:"minValue"}},"component",e.minConfig,!1),[["el-select"].includes(e.maxComponent)?e._l(e.minOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value,disabled:n.disabled}})}):e._e()],2),r("div",{staticClass:"range-input__separator"},[e._v("-")]),r(e.maxComponent,e._b({tag:"component",staticClass:"range-input__max",attrs:{schema:e.maxConfig},on:{input:function(n){return e.handleChange(1)}},scopedSlots:e._u([e.$slots["prepend-max"]?{key:"prepend",fn:function(){return[e._t("prepend-max")]},proxy:!0}:null],null,!0),model:{value:e.maxValue,callback:function(n){e.maxValue=n},expression:"maxValue"}},"component",e.maxConfig,!1),[["el-select"].includes(e.maxComponent)?e._l(e.maxOptions,function(n,a){return r("el-option",{key:a,attrs:{label:n.label,value:n.value,disabled:n.disabled,"data-dis":n.disabled}})}):e._e()],2)],1)},sy=[],oy=$t(iy,ay,sy,!1,null,null,null,null);const Po=oy.exports;Po.install=function(t){t.component(Po.name,Po)};const ly={install(t,e){const r="medium";t.mixin({data(){return{globalSize:this.getSizeFromOptions(e,r)}},created(){},methods:{getSizeFromOptions(n,a){return n&&n.size?n.size:a}}}),t.prototype.$setGlobalSize=function(n){this.$root.globalSize=n},t.prototype.$globalSize=function(){return this.$root.globalSize}}},Yh=function(t,e={}){var r,n;((r=e.i18n)==null?void 0:r.mergeLocaleMessage)&&((n=e.i18n)==null?void 0:n.t)&&(Object.keys(Yl).forEach(a=>{e.i18n.mergeLocaleMessage(a,Yl[a])}),Kp((a,o)=>e.i18n.t(a,o),e.lang)),[wo,To,Eo,So,Co,Fo,bo,Oo,Do,Io,Ro,Lo,ko,Po,No].forEach(a=>{t.use(SE),t.use(ly,{size:e.globalSize}),t.component(a.name,{extends:a,mixins:[ql],props:{globalConfig:{type:Object,default:()=>e}}})})};return typeof window<"u"&&window.Vue&&Yh(window.Vue),{version:"0.0.1",install:Yh}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-guode/yzl-components",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "基于vue,vite搭建的三川国德云智联组件库",
5
5
  "main": "index.umd.js",
6
6
  "module": "index.mjs",