UNPKG

z-crud-table

Version:

A powerful and flexible CRUD table component for Vue 3 and Element Plus.

6 lines 70.8 kB
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.header-cell-content[data-v-d23c8660]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crud-table-container[data-v-7671be98]{display:flex;flex-direction:column;height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}.search-section-wrapper[data-v-7671be98]{flex-shrink:0}.table-content-wrapper[data-v-7671be98]{flex:1;min-height:0;overflow:hidden}.pagination-wrapper[data-v-7671be98]{flex-shrink:0;padding-top:1rem;display:flex;justify-content:flex-end}[data-v-7671be98]::-webkit-scrollbar{width:8px;height:8px}[data-v-7671be98]::-webkit-scrollbar-track{background:transparent}[data-v-7671be98]::-webkit-scrollbar-thumb{background:#c0c4cc;border-radius:4px}[data-v-7671be98]::-webkit-scrollbar-thumb:hover{background:#909399}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.\\!mr-0{margin-right:0!important}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.crud-container{transition:box-shadow .3s ease-in-out}.crud-container:hover{box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.query-form .el-form-item{margin-bottom:0!important}.el-table__expanded-cell{padding:1rem 3.5rem!important;background-color:#f8fafc}.action-buttons>*+*{margin-left:.75rem}.el-dialog__header{border-bottom:none;padding:24px 24px 10px}.el-dialog__title{font-size:1.25rem;font-weight:600}.el-dialog__footer{border-top:none;padding:10px 24px 24px}.el-dialog__body{padding:10px 24px}:root{--large-screen-border-color: rgba(120, 153, 199, 1);--large-screen-text-color: rgba(227, 246, 255, 1);--large-screen-search-bg: rgba(210, 224, 243, .1);--large-screen-button-bg: rgba(38, 120, 255, 1);--large-screen-action-link-color: rgba(39, 233, 255, 1);--large-screen-dialog-bg: #1e293b;--large-screen-hover-bg: rgba(120, 153, 199, .15)}.theme-large-screen{color:var(--large-screen-text-color)}.el-modal-dialog,.el-overlay-dialog{position:absolute!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
(function(fe,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","axios"],e):(fe=typeof globalThis<"u"?globalThis:fe||self,e(fe.ZCrudTable={},fe.Vue,fe.ElementPlus,fe.axios))})(this,(function(fe,e,me,Kt){"use strict";/*! Element Plus Icons Vue v2.3.2 */var Jt=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(n){return(s,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),Yt=Jt;const Vr=e.defineComponent({__name:"DynamicForm",props:{modelValue:{},formConfig:{},rules:{}},setup(n,{expose:s}){const d=e.ref(null);return s({validate:()=>{var c;return(c=d.value)==null?void 0:c.validate()}}),(c,i)=>{const B=e.resolveComponent("el-input"),x=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),k=e.resolveComponent("el-date-picker"),A=e.resolveComponent("el-time-picker"),y=e.resolveComponent("el-radio"),v=e.resolveComponent("el-radio-group"),w=e.resolveComponent("el-form-item"),u=e.resolveComponent("el-col"),m=e.resolveComponent("el-row"),p=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(p,e.mergeProps({model:c.modelValue,rules:c.rules,ref_key:"formRef",ref:d},c.$attrs),{default:e.withCtx(()=>[e.createVNode(m,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.formConfig,r=>(e.openBlock(),e.createBlock(u,{key:r.prop,span:r.span||24},{default:e.withCtx(()=>[e.createVNode(w,{label:r.label,prop:r.prop},{default:e.withCtx(()=>[r.type==="input"?(e.openBlock(),e.createBlock(B,e.mergeProps({key:0,modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="textarea"?(e.openBlock(),e.createBlock(B,e.mergeProps({key:1,type:"textarea",modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="select"?(e.openBlock(),e.createBlock(S,e.mergeProps({key:2,modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps,{style:{width:"100%"}}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,(a,f)=>{var b,h,C,_,O,R;return e.openBlock(),e.createBlock(x,{key:a[((h=(b=r.componentProps)==null?void 0:b.props)==null?void 0:h.value)||"value"],label:a[((_=(C=r.componentProps)==null?void 0:C.props)==null?void 0:_.label)||"label"],value:a[((R=(O=r.componentProps)==null?void 0:O.props)==null?void 0:R.value)||"value"]},null,8,["label","value"])}),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="date-picker"?(e.openBlock(),e.createBlock(k,e.mergeProps({key:3,modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps,{style:{width:"100%"}}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="time-picker"?(e.openBlock(),e.createBlock(A,e.mergeProps({key:4,modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps,{style:{width:"100%"}}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="radio-group"?(e.openBlock(),e.createBlock(v,e.mergeProps({key:5,modelValue:c.modelValue[r.prop],"onUpdate:modelValue":a=>c.modelValue[r.prop]=a},{ref_for:!0},r.componentProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,a=>(e.openBlock(),e.createBlock(y,{key:a.value,label:a.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),_:2},1032,["label"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),r.type==="input-disabled"?(e.openBlock(),e.createBlock(B,e.mergeProps({key:6,"model-value":c.modelValue[r.prop],disabled:""},{ref_for:!0},r.componentProps),null,16,["model-value"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop"])]),_:2},1032,["span"]))),128))]),_:1})]),_:1},16,["model","rules"])}}});var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Xt(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var s=n.default;if(typeof s=="function"){var d=function c(){return this instanceof c?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};d.prototype=s.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(n).forEach(function(c){var i=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(d,c,i.get?i:{enumerable:!0,get:function(){return n[c]}})}),d}var Fe,$r;function ve(){return $r||($r=1,Fe=TypeError),Fe}const en=Xt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ne,Ir;function Be(){if(Ir)return Ne;Ir=1;var n=typeof Map=="function"&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,d=n&&s&&typeof s.get=="function"?s.get:null,c=n&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,B=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,x=i&&B&&typeof B.get=="function"?B.get:null,S=i&&Set.prototype.forEach,k=typeof WeakMap=="function"&&WeakMap.prototype,A=k?WeakMap.prototype.has:null,y=typeof WeakSet=="function"&&WeakSet.prototype,v=y?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,u=w?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,p=Object.prototype.toString,r=Function.prototype.toString,a=String.prototype.match,f=String.prototype.slice,b=String.prototype.replace,h=String.prototype.toUpperCase,C=String.prototype.toLowerCase,_=RegExp.prototype.test,O=Array.prototype.concat,R=Array.prototype.join,q=Array.prototype.slice,F=Math.floor,T=typeof BigInt=="function"?BigInt.prototype.valueOf:null,l=Object.getOwnPropertySymbols,g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,E=typeof Symbol=="function"&&typeof Symbol.iterator=="object",V=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E||!0)?Symbol.toStringTag:null,z=Object.prototype.propertyIsEnumerable,j=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function N(t,o){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||_.call(/e/,o))return o;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var U=t<0?-F(-t):F(t);if(U!==t){var L=String(U),D=f.call(o,L.length+1);return b.call(L,I,"$&_")+"."+b.call(b.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(o,I,"$&_")}var Y=en,te=Y.custom,ce=K(te)?te:null,ne={__proto__:null,double:'"',single:"'"},ie={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ne=function t(o,I,U,L){var D=I||{};if(Z(D,"quoteStyle")&&!Z(ne,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var de=Z(D,"customInspect")?D.customInspect:!0;if(typeof de!="boolean"&&de!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(D,"indent")&&D.indent!==null&&D.indent!=="	"&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var he=D.numericSeparator;if(typeof o>"u")return"undefined";if(o===null)return"null";if(typeof o=="boolean")return o?"true":"false";if(typeof o=="string")return Tt(o,D);if(typeof o=="number"){if(o===0)return 1/0/o>0?"0":"-0";var X=String(o);return he?N(o,X):X}if(typeof o=="bigint"){var ye=String(o)+"n";return he?N(o,ye):ye}var kr=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=kr&&kr>0&&typeof o=="object")return ue(o)?"[Array]":"[Object]";var Ee=co(D,U);if(typeof L>"u")L=[];else if(pe(L,o)>=0)return"[Circular]";function ae(_e,Re,so){if(Re&&(L=q.call(L),L.push(Re)),so){var Qt={depth:D.depth};return Z(D,"quoteStyle")&&(Qt.quoteStyle=D.quoteStyle),t(_e,Qt,U+1,L)}return t(_e,D,U+1,L)}if(typeof o=="function"&&!Q(o)){var Ut=we(o),Lt=Pe(o,ae);return"[Function"+(Ut?": "+Ut:" (anonymous)")+"]"+(Lt.length>0?" { "+R.call(Lt,", ")+" }":"")}if(K(o)){var Wt=E?b.call(String(o),/^(Symbol\(.*\))_[^)]*$/,"$1"):g.call(o);return typeof o=="object"&&!E?Ce(Wt):Wt}if(io(o)){for(var Oe="<"+C.call(String(o.nodeName)),Pr=o.attributes||[],xe=0;xe<Pr.length;xe++)Oe+=" "+Pr[xe].name+"="+le(P(Pr[xe].value),"double",D);return Oe+=">",o.childNodes&&o.childNodes.length&&(Oe+="..."),Oe+="</"+C.call(String(o.nodeName))+">",Oe}if(ue(o)){if(o.length===0)return"[]";var xr=Pe(o,ae);return Ee&&!fo(xr)?"["+Br(xr,Ee)+"]":"[ "+R.call(xr,", ")+" ]"}if($(o)){var Rr=Pe(o,ae);return!("cause"in Error.prototype)&&"cause"in o&&!z.call(o,"cause")?"{ ["+String(o)+"] "+R.call(O.call("[cause]: "+ae(o.cause),Rr),", ")+" }":Rr.length===0?"["+String(o)+"]":"{ ["+String(o)+"] "+R.call(Rr,", ")+" }"}if(typeof o=="object"&&de){if(ce&&typeof o[ce]=="function"&&Y)return Y(o,{depth:kr-U});if(de!=="symbol"&&typeof o.inspect=="function")return o.inspect()}if(oe(o)){var zt=[];return c&&c.call(o,function(_e,Re){zt.push(ae(Re,o,!0)+" => "+ae(_e,o))}),Mt("Map",d.call(o),zt,Ee)}if(Ae(o)){var Gt=[];return S&&S.call(o,function(_e){Gt.push(ae(_e,o))}),Mt("Set",x.call(o),Gt,Ee)}if(Se(o))return Or("WeakMap");if(ao(o))return Or("WeakSet");if(be(o))return Or("WeakRef");if(M(o))return Ce(ae(Number(o)));if(ee(o))return Ce(ae(T.call(o)));if(G(o))return Ce(m.call(o));if(W(o))return Ce(ae(String(o)));if(typeof window<"u"&&o===window)return"{ [object Window] }";if(typeof globalThis<"u"&&o===globalThis||typeof qr<"u"&&o===qr)return"{ [object globalThis] }";if(!se(o)&&!Q(o)){var Fr=Pe(o,ae),jt=j?j(o)===Object.prototype:o instanceof Object||o.constructor===Object,Nr=o instanceof Object?"":"null prototype",Ht=!jt&&V&&Object(o)===o&&V in o?f.call(re(o),8,-1):Nr?"Object":"",uo=jt||typeof o.constructor!="function"?"":o.constructor.name?o.constructor.name+" ":"",Dr=uo+(Ht||Nr?"["+R.call(O.call([],Ht||[],Nr||[]),": ")+"] ":"");return Fr.length===0?Dr+"{}":Ee?Dr+"{"+Br(Fr,Ee)+"}":Dr+"{ "+R.call(Fr,", ")+" }"}return String(o)};function le(t,o,I){var U=I.quoteStyle||o,L=ne[U];return L+t+L}function P(t){return b.call(String(t),/"/g,"&quot;")}function H(t){return!V||!(typeof t=="object"&&(V in t||typeof t[V]<"u"))}function ue(t){return re(t)==="[object Array]"&&H(t)}function se(t){return re(t)==="[object Date]"&&H(t)}function Q(t){return re(t)==="[object RegExp]"&&H(t)}function $(t){return re(t)==="[object Error]"&&H(t)}function W(t){return re(t)==="[object String]"&&H(t)}function M(t){return re(t)==="[object Number]"&&H(t)}function G(t){return re(t)==="[object Boolean]"&&H(t)}function K(t){if(E)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!g)return!1;try{return g.call(t),!0}catch{}return!1}function ee(t){if(!t||typeof t!="object"||!T)return!1;try{return T.call(t),!0}catch{}return!1}var J=Object.prototype.hasOwnProperty||function(t){return t in this};function Z(t,o){return J.call(t,o)}function re(t){return p.call(t)}function we(t){if(t.name)return t.name;var o=a.call(r.call(t),/^function\s*([\w$]+)/);return o?o[1]:null}function pe(t,o){if(t.indexOf)return t.indexOf(o);for(var I=0,U=t.length;I<U;I++)if(t[I]===o)return I;return-1}function oe(t){if(!d||!t||typeof t!="object")return!1;try{d.call(t);try{x.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Se(t){if(!A||!t||typeof t!="object")return!1;try{A.call(t,A);try{v.call(t,v)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function be(t){if(!u||!t||typeof t!="object")return!1;try{return u.call(t),!0}catch{}return!1}function Ae(t){if(!x||!t||typeof t!="object")return!1;try{x.call(t);try{d.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function ao(t){if(!v||!t||typeof t!="object")return!1;try{v.call(t,v);try{A.call(t,A)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function io(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Tt(t,o){if(t.length>o.maxStringLength){var I=t.length-o.maxStringLength,U="... "+I+" more character"+(I>1?"s":"");return Tt(f.call(t,0,o.maxStringLength),o)+U}var L=ie[o.quoteStyle||"single"];L.lastIndex=0;var D=b.call(b.call(t,L,"\\$1"),/[\x00-\x1f]/g,lo);return le(D,"single",o)}function lo(t){var o=t.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[o];return I?"\\"+I:"\\x"+(o<16?"0":"")+h.call(o.toString(16))}function Ce(t){return"Object("+t+")"}function Or(t){return t+" { ? }"}function Mt(t,o,I,U){var L=U?Br(I,U):R.call(I,", ");return t+" ("+o+") {"+L+"}"}function fo(t){for(var o=0;o<t.length;o++)if(pe(t[o],`
`)>=0)return!1;return!0}function co(t,o){var I;if(t.indent==="	")I="	";else if(typeof t.indent=="number"&&t.indent>0)I=R.call(Array(t.indent+1)," ");else return null;return{base:I,prev:R.call(Array(o+1),I)}}function Br(t,o){if(t.length===0)return"";var I=`
`+o.prev+o.base;return I+R.call(t,","+I)+`
`+o.prev}function Pe(t,o){var I=ue(t),U=[];if(I){U.length=t.length;for(var L=0;L<t.length;L++)U[L]=Z(t,L)?o(t[L],t):""}var D=typeof l=="function"?l(t):[],de;if(E){de={};for(var he=0;he<D.length;he++)de["$"+D[he]]=D[he]}for(var X in t)Z(t,X)&&(I&&String(Number(X))===X&&X<t.length||E&&de["$"+X]instanceof Symbol||(_.call(/[^\w$]/,X)?U.push(o(X,t)+": "+o(t[X],t)):U.push(X+": "+o(t[X],t))));if(typeof l=="function")for(var ye=0;ye<D.length;ye++)z.call(t,D[ye])&&U.push("["+o(D[ye])+"]: "+o(t[D[ye]],t));return U}return Ne}var De,Tr;function rn(){if(Tr)return De;Tr=1;var n=Be(),s=ve(),d=function(S,k,A){for(var y=S,v;(v=y.next)!=null;y=v)if(v.key===k)return y.next=v.next,A||(v.next=S.next,S.next=v),v},c=function(S,k){if(S){var A=d(S,k);return A&&A.value}},i=function(S,k,A){var y=d(S,k);y?y.value=A:S.next={key:k,next:S.next,value:A}},B=function(S,k){return S?!!d(S,k):!1},x=function(S,k){if(S)return d(S,k,!0)};return De=function(){var k,A={assert:function(y){if(!A.has(y))throw new s("Side channel does not contain "+n(y))},delete:function(y){var v=k&&k.next,w=x(k,y);return w&&v&&v===w&&(k=void 0),!!w},get:function(y){return c(k,y)},has:function(y){return B(k,y)},set:function(y,v){k||(k={next:void 0}),i(k,y,v)}};return A},De}var Ve,Mr;function Ur(){return Mr||(Mr=1,Ve=Object),Ve}var qe,Lr;function tn(){return Lr||(Lr=1,qe=Error),qe}var $e,Wr;function nn(){return Wr||(Wr=1,$e=EvalError),$e}var Ie,zr;function on(){return zr||(zr=1,Ie=RangeError),Ie}var Te,Gr;function an(){return Gr||(Gr=1,Te=ReferenceError),Te}var Me,jr;function ln(){return jr||(jr=1,Me=SyntaxError),Me}var Ue,Hr;function fn(){return Hr||(Hr=1,Ue=URIError),Ue}var Le,Qr;function cn(){return Qr||(Qr=1,Le=Math.abs),Le}var We,Kr;function un(){return Kr||(Kr=1,We=Math.floor),We}var ze,Jr;function sn(){return Jr||(Jr=1,ze=Math.max),ze}var Ge,Yr;function pn(){return Yr||(Yr=1,Ge=Math.min),Ge}var je,Zr;function dn(){return Zr||(Zr=1,je=Math.pow),je}var He,Xr;function yn(){return Xr||(Xr=1,He=Math.round),He}var Qe,et;function mn(){return et||(et=1,Qe=Number.isNaN||function(s){return s!==s}),Qe}var Ke,rt;function gn(){if(rt)return Ke;rt=1;var n=mn();return Ke=function(d){return n(d)||d===0?d:d<0?-1:1},Ke}var Je,tt;function hn(){return tt||(tt=1,Je=Object.getOwnPropertyDescriptor),Je}var Ye,nt;function ot(){if(nt)return Ye;nt=1;var n=hn();if(n)try{n([],"length")}catch{n=null}return Ye=n,Ye}var Ze,at;function vn(){if(at)return Ze;at=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Ze=n,Ze}var Xe,it;function wn(){return it||(it=1,Xe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},d=Symbol("test"),c=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var i=42;s[d]=i;for(var B in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var x=Object.getOwnPropertySymbols(s);if(x.length!==1||x[0]!==d||!Object.prototype.propertyIsEnumerable.call(s,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(s,d);if(S.value!==i||S.enumerable!==!0)return!1}return!0}),Xe}var er,lt;function Sn(){if(lt)return er;lt=1;var n=typeof Symbol<"u"&&Symbol,s=wn();return er=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},er}var rr,ft;function ct(){return ft||(ft=1,rr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rr}var tr,ut;function st(){if(ut)return tr;ut=1;var n=Ur();return tr=n.getPrototypeOf||null,tr}var nr,pt;function bn(){if(pt)return nr;pt=1;var n="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,d=Math.max,c="[object Function]",i=function(k,A){for(var y=[],v=0;v<k.length;v+=1)y[v]=k[v];for(var w=0;w<A.length;w+=1)y[w+k.length]=A[w];return y},B=function(k,A){for(var y=[],v=A,w=0;v<k.length;v+=1,w+=1)y[w]=k[v];return y},x=function(S,k){for(var A="",y=0;y<S.length;y+=1)A+=S[y],y+1<S.length&&(A+=k);return A};return nr=function(k){var A=this;if(typeof A!="function"||s.apply(A)!==c)throw new TypeError(n+A);for(var y=B(arguments,1),v,w=function(){if(this instanceof v){var a=A.apply(this,i(y,arguments));return Object(a)===a?a:this}return A.apply(k,i(y,arguments))},u=d(0,A.length-y.length),m=[],p=0;p<u;p++)m[p]="$"+p;if(v=Function("binder","return function ("+x(m,",")+"){ return binder.apply(this,arguments); }")(w),A.prototype){var r=function(){};r.prototype=A.prototype,v.prototype=new r,r.prototype=null}return v},nr}var or,dt;function ke(){if(dt)return or;dt=1;var n=bn();return or=Function.prototype.bind||n,or}var ar,yt;function ir(){return yt||(yt=1,ar=Function.prototype.call),ar}var lr,mt;function gt(){return mt||(mt=1,lr=Function.prototype.apply),lr}var fr,ht;function An(){return ht||(ht=1,fr=typeof Reflect<"u"&&Reflect&&Reflect.apply),fr}var cr,vt;function En(){if(vt)return cr;vt=1;var n=ke(),s=gt(),d=ir(),c=An();return cr=c||n.call(d,s),cr}var ur,wt;function St(){if(wt)return ur;wt=1;var n=ke(),s=ve(),d=ir(),c=En();return ur=function(B){if(B.length<1||typeof B[0]!="function")throw new s("a function is required");return c(n,d,B)},ur}var sr,bt;function _n(){if(bt)return sr;bt=1;var n=St(),s=ot(),d;try{d=[].__proto__===Array.prototype}catch(x){if(!x||typeof x!="object"||!("code"in x)||x.code!=="ERR_PROTO_ACCESS")throw x}var c=!!d&&s&&s(Object.prototype,"__proto__"),i=Object,B=i.getPrototypeOf;return sr=c&&typeof c.get=="function"?n([c.get]):typeof B=="function"?function(S){return B(S==null?S:i(S))}:!1,sr}var pr,At;function Cn(){if(At)return pr;At=1;var n=ct(),s=st(),d=_n();return pr=n?function(i){return n(i)}:s?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return s(i)}:d?function(i){return d(i)}:null,pr}var dr,Et;function On(){if(Et)return dr;Et=1;var n=Function.prototype.call,s=Object.prototype.hasOwnProperty,d=ke();return dr=d.call(n,s),dr}var yr,_t;function mr(){if(_t)return yr;_t=1;var n,s=Ur(),d=tn(),c=nn(),i=on(),B=an(),x=ln(),S=ve(),k=fn(),A=cn(),y=un(),v=sn(),w=pn(),u=dn(),m=yn(),p=gn(),r=Function,a=function(Q){try{return r('"use strict"; return ('+Q+").constructor;")()}catch{}},f=ot(),b=vn(),h=function(){throw new S},C=f?(function(){try{return arguments.callee,h}catch{try{return f(arguments,"callee").get}catch{return h}}})():h,_=Sn()(),O=Cn(),R=st(),q=ct(),F=gt(),T=ir(),l={},g=typeof Uint8Array>"u"||!O?n:O(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":d,"%eval%":eval,"%EvalError%":c,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&O?O(O([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!O?n:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":f,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":B,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!O?n:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&O?O(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":x,"%ThrowTypeError%":C,"%TypedArray%":g,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":k,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":F,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":R,"%Math.abs%":A,"%Math.floor%":y,"%Math.max%":v,"%Math.min%":w,"%Math.pow%":u,"%Math.round%":m,"%Math.sign%":p,"%Reflect.getPrototypeOf%":q};if(O)try{null.error}catch(Q){var V=O(O(Q));E["%Error.prototype%"]=V}var z=function Q($){var W;if($==="%AsyncFunction%")W=a("async function () {}");else if($==="%GeneratorFunction%")W=a("function* () {}");else if($==="%AsyncGeneratorFunction%")W=a("async function* () {}");else if($==="%AsyncGenerator%"){var M=Q("%AsyncGeneratorFunction%");M&&(W=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var G=Q("%AsyncGenerator%");G&&O&&(W=O(G.prototype))}return E[$]=W,W},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=ke(),Y=On(),te=N.call(T,Array.prototype.concat),ce=N.call(F,Array.prototype.splice),ne=N.call(T,String.prototype.replace),ie=N.call(T,String.prototype.slice),le=N.call(T,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,ue=function($){var W=ie($,0,1),M=ie($,-1);if(W==="%"&&M!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&W!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var G=[];return ne($,P,function(K,ee,J,Z){G[G.length]=J?ne(Z,H,"$1"):ee||K}),G},se=function($,W){var M=$,G;if(Y(j,M)&&(G=j[M],M="%"+G[0]+"%"),Y(E,M)){var K=E[M];if(K===l&&(K=z(M)),typeof K>"u"&&!W)throw new S("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:G,name:M,value:K}}throw new x("intrinsic "+$+" does not exist!")};return yr=function($,W){if(typeof $!="string"||$.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new S('"allowMissing" argument must be a boolean');if(le(/^%?[^%]*%?$/,$)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=ue($),G=M.length>0?M[0]:"",K=se("%"+G+"%",W),ee=K.name,J=K.value,Z=!1,re=K.alias;re&&(G=re[0],ce(M,te([0,1],re)));for(var we=1,pe=!0;we<M.length;we+=1){var oe=M[we],Se=ie(oe,0,1),be=ie(oe,-1);if((Se==='"'||Se==="'"||Se==="`"||be==='"'||be==="'"||be==="`")&&Se!==be)throw new x("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(Z=!0),G+="."+oe,ee="%"+G+"%",Y(E,ee))J=E[ee];else if(J!=null){if(!(oe in J)){if(!W)throw new S("base intrinsic for "+$+" exists, but the property is not available.");return}if(f&&we+1>=M.length){var Ae=f(J,oe);pe=!!Ae,pe&&"get"in Ae&&!("originalValue"in Ae.get)?J=Ae.get:J=J[oe]}else pe=Y(J,oe),J=J[oe];pe&&!Z&&(E[ee]=J)}}return J},yr}var gr,Ct;function Ot(){if(Ct)return gr;Ct=1;var n=mr(),s=St(),d=s([n("%String.prototype.indexOf%")]);return gr=function(i,B){var x=n(i,!!B);return typeof x=="function"&&d(i,".prototype.")>-1?s([x]):x},gr}var hr,Bt;function kt(){if(Bt)return hr;Bt=1;var n=mr(),s=Ot(),d=Be(),c=ve(),i=n("%Map%",!0),B=s("Map.prototype.get",!0),x=s("Map.prototype.set",!0),S=s("Map.prototype.has",!0),k=s("Map.prototype.delete",!0),A=s("Map.prototype.size",!0);return hr=!!i&&function(){var v,w={assert:function(u){if(!w.has(u))throw new c("Side channel does not contain "+d(u))},delete:function(u){if(v){var m=k(v,u);return A(v)===0&&(v=void 0),m}return!1},get:function(u){if(v)return B(v,u)},has:function(u){return v?S(v,u):!1},set:function(u,m){v||(v=new i),x(v,u,m)}};return w},hr}var vr,Pt;function Bn(){if(Pt)return vr;Pt=1;var n=mr(),s=Ot(),d=Be(),c=kt(),i=ve(),B=n("%WeakMap%",!0),x=s("WeakMap.prototype.get",!0),S=s("WeakMap.prototype.set",!0),k=s("WeakMap.prototype.has",!0),A=s("WeakMap.prototype.delete",!0);return vr=B?function(){var v,w,u={assert:function(m){if(!u.has(m))throw new i("Side channel does not contain "+d(m))},delete:function(m){if(B&&m&&(typeof m=="object"||typeof m=="function")){if(v)return A(v,m)}else if(c&&w)return w.delete(m);return!1},get:function(m){return B&&m&&(typeof m=="object"||typeof m=="function")&&v?x(v,m):w&&w.get(m)},has:function(m){return B&&m&&(typeof m=="object"||typeof m=="function")&&v?k(v,m):!!w&&w.has(m)},set:function(m,p){B&&m&&(typeof m=="object"||typeof m=="function")?(v||(v=new B),S(v,m,p)):c&&(w||(w=c()),w.set(m,p))}};return u}:c,vr}var wr,xt;function kn(){if(xt)return wr;xt=1;var n=ve(),s=Be(),d=rn(),c=kt(),i=Bn(),B=i||c||d;return wr=function(){var S,k={assert:function(A){if(!k.has(A))throw new n("Side channel does not contain "+s(A))},delete:function(A){return!!S&&S.delete(A)},get:function(A){return S&&S.get(A)},has:function(A){return!!S&&S.has(A)},set:function(A,y){S||(S=B()),S.set(A,y)}};return k},wr}var Sr,Rt;function br(){if(Rt)return Sr;Rt=1;var n=String.prototype.replace,s=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Sr={default:d.RFC3986,formatters:{RFC1738:function(c){return n.call(c,s,"+")},RFC3986:function(c){return String(c)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986},Sr}var Ar,Ft;function Nt(){if(Ft)return Ar;Ft=1;var n=br(),s=Object.prototype.hasOwnProperty,d=Array.isArray,c=(function(){for(var r=[],a=0;a<256;++a)r.push("%"+((a<16?"0":"")+a.toString(16)).toUpperCase());return r})(),i=function(a){for(;a.length>1;){var f=a.pop(),b=f.obj[f.prop];if(d(b)){for(var h=[],C=0;C<b.length;++C)typeof b[C]<"u"&&h.push(b[C]);f.obj[f.prop]=h}}},B=function(a,f){for(var b=f&&f.plainObjects?{__proto__:null}:{},h=0;h<a.length;++h)typeof a[h]<"u"&&(b[h]=a[h]);return b},x=function r(a,f,b){if(!f)return a;if(typeof f!="object"&&typeof f!="function"){if(d(a))a.push(f);else if(a&&typeof a=="object")(b&&(b.plainObjects||b.allowPrototypes)||!s.call(Object.prototype,f))&&(a[f]=!0);else return[a,f];return a}if(!a||typeof a!="object")return[a].concat(f);var h=a;return d(a)&&!d(f)&&(h=B(a,b)),d(a)&&d(f)?(f.forEach(function(C,_){if(s.call(a,_)){var O=a[_];O&&typeof O=="object"&&C&&typeof C=="object"?a[_]=r(O,C,b):a.push(C)}else a[_]=C}),a):Object.keys(f).reduce(function(C,_){var O=f[_];return s.call(C,_)?C[_]=r(C[_],O,b):C[_]=O,C},h)},S=function(a,f){return Object.keys(f).reduce(function(b,h){return b[h]=f[h],b},a)},k=function(r,a,f){var b=r.replace(/\+/g," ");if(f==="iso-8859-1")return b.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(b)}catch{return b}},A=1024,y=function(a,f,b,h,C){if(a.length===0)return a;var _=a;if(typeof a=="symbol"?_=Symbol.prototype.toString.call(a):typeof a!="string"&&(_=String(a)),b==="iso-8859-1")return escape(_).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var O="",R=0;R<_.length;R+=A){for(var q=_.length>=A?_.slice(R,R+A):_,F=[],T=0;T<q.length;++T){var l=q.charCodeAt(T);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||C===n.RFC1738&&(l===40||l===41)){F[F.length]=q.charAt(T);continue}if(l<128){F[F.length]=c[l];continue}if(l<2048){F[F.length]=c[192|l>>6]+c[128|l&63];continue}if(l<55296||l>=57344){F[F.length]=c[224|l>>12]+c[128|l>>6&63]+c[128|l&63];continue}T+=1,l=65536+((l&1023)<<10|q.charCodeAt(T)&1023),F[F.length]=c[240|l>>18]+c[128|l>>12&63]+c[128|l>>6&63]+c[128|l&63]}O+=F.join("")}return O},v=function(a){for(var f=[{obj:{o:a},prop:"o"}],b=[],h=0;h<f.length;++h)for(var C=f[h],_=C.obj[C.prop],O=Object.keys(_),R=0;R<O.length;++R){var q=O[R],F=_[q];typeof F=="object"&&F!==null&&b.indexOf(F)===-1&&(f.push({obj:_,prop:q}),b.push(F))}return i(f),a},w=function(a){return Object.prototype.toString.call(a)==="[object RegExp]"},u=function(a){return!a||typeof a!="object"?!1:!!(a.constructor&&a.constructor.isBuffer&&a.constructor.isBuffer(a))},m=function(a,f){return[].concat(a,f)},p=function(a,f){if(d(a)){for(var b=[],h=0;h<a.length;h+=1)b.push(f(a[h]));return b}return f(a)};return Ar={arrayToObject:B,assign:S,combine:m,compact:v,decode:k,encode:y,isBuffer:u,isRegExp:w,maybeMap:p,merge:x},Ar}var Er,Dt;function Pn(){if(Dt)return Er;Dt=1;var n=kn(),s=Nt(),d=br(),c=Object.prototype.hasOwnProperty,i={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,a){return r+"["+a+"]"},repeat:function(r){return r}},B=Array.isArray,x=Array.prototype.push,S=function(p,r){x.apply(p,B(r)?r:[r])},k=Date.prototype.toISOString,A=d.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,filter:void 0,format:A,formatter:d.formatters[A],indices:!1,serializeDate:function(r){return k.call(r)},skipNulls:!1,strictNullHandling:!1},v=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},w={},u=function p(r,a,f,b,h,C,_,O,R,q,F,T,l,g,E,V,z,j){for(var N=r,Y=j,te=0,ce=!1;(Y=Y.get(w))!==void 0&&!ce;){var ne=Y.get(r);if(te+=1,typeof ne<"u"){if(ne===te)throw new RangeError("Cyclic object value");ce=!0}typeof Y.get(w)>"u"&&(te=0)}if(typeof q=="function"?N=q(a,N):N instanceof Date?N=l(N):f==="comma"&&B(N)&&(N=s.maybeMap(N,function(ee){return ee instanceof Date?l(ee):ee})),N===null){if(C)return R&&!V?R(a,y.encoder,z,"key",g):a;N=""}if(v(N)||s.isBuffer(N)){if(R){var ie=V?a:R(a,y.encoder,z,"key",g);return[E(ie)+"="+E(R(N,y.encoder,z,"value",g))]}return[E(a)+"="+E(String(N))]}var le=[];if(typeof N>"u")return le;var P;if(f==="comma"&&B(N))V&&R&&(N=s.maybeMap(N,R)),P=[{value:N.length>0?N.join(",")||null:void 0}];else if(B(q))P=q;else{var H=Object.keys(N);P=F?H.sort(F):H}var ue=O?String(a).replace(/\./g,"%2E"):String(a),se=b&&B(N)&&N.length===1?ue+"[]":ue;if(h&&B(N)&&N.length===0)return se+"[]";for(var Q=0;Q<P.length;++Q){var $=P[Q],W=typeof $=="object"&&$&&typeof $.value<"u"?$.value:N[$];if(!(_&&W===null)){var M=T&&O?String($).replace(/\./g,"%2E"):String($),G=B(N)?typeof f=="function"?f(se,M):se:se+(T?"."+M:"["+M+"]");j.set(r,te);var K=n();K.set(w,j),S(le,p(W,G,f,b,h,C,_,O,f==="comma"&&V&&B(N)?null:R,q,F,T,l,g,E,V,z,K))}}return le},m=function(r){if(!r)return y;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.encodeDotInKeys<"u"&&typeof r.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(r.encoder!==null&&typeof r.encoder<"u"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=r.charset||y.charset;if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=d.default;if(typeof r.format<"u"){if(!c.call(d.formatters,r.format))throw new TypeError("Unknown format option provided.");f=r.format}var b=d.formatters[f],h=y.filter;(typeof r.filter=="function"||B(r.filter))&&(h=r.filter);var C;if(r.arrayFormat in i?C=r.arrayFormat:"indices"in r?C=r.indices?"indices":"repeat":C=y.arrayFormat,"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var _=typeof r.allowDots>"u"?r.encodeDotInKeys===!0?!0:y.allowDots:!!r.allowDots;return{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:y.addQueryPrefix,allowDots:_,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:C,charset:a,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!r.commaRoundTrip,delimiter:typeof r.delimiter>"u"?y.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:y.encode,encodeDotInKeys:typeof r.encodeDotInKeys=="boolean"?r.encodeDotInKeys:y.encodeDotInKeys,encoder:typeof r.encoder=="function"?r.encoder:y.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:y.encodeValuesOnly,filter:h,format:f,formatter:b,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:y.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:y.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:y.strictNullHandling}};return Er=function(p,r){var a=p,f=m(r),b,h;typeof f.filter=="function"?(h=f.filter,a=h("",a)):B(f.filter)&&(h=f.filter,b=h);var C=[];if(typeof a!="object"||a===null)return"";var _=i[f.arrayFormat],O=_==="comma"&&f.commaRoundTrip;b||(b=Object.keys(a)),f.sort&&b.sort(f.sort);for(var R=n(),q=0;q<b.length;++q){var F=b[q],T=a[F];f.skipNulls&&T===null||S(C,u(T,F,_,O,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,R))}var l=C.join(f.delimiter),g=f.addQueryPrefix===!0?"?":"";return f.charsetSentinel&&(f.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),l.length>0?g+l:""},Er}var _r,Vt;function xn(){if(Vt)return _r;Vt=1;var n=Nt(),s=Object.prototype.hasOwnProperty,d=Array.isArray,c={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(u,m){return String.fromCharCode(parseInt(m,10))})},B=function(w,u,m){if(w&&typeof w=="string"&&u.comma&&w.indexOf(",")>-1)return w.split(",");if(u.throwOnLimitExceeded&&m>=u.arrayLimit)throw new RangeError("Array limit exceeded. Only "+u.arrayLimit+" element"+(u.arrayLimit===1?"":"s")+" allowed in an array.");return w},x="utf8=%26%2310003%3B",S="utf8=%E2%9C%93",k=function(u,m){var p={__proto__:null},r=m.ignoreQueryPrefix?u.replace(/^\?/,""):u;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=m.parameterLimit===1/0?void 0:m.parameterLimit,f=r.split(m.delimiter,m.throwOnLimitExceeded?a+1:a);if(m.throwOnLimitExceeded&&f.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var b=-1,h,C=m.charset;if(m.charsetSentinel)for(h=0;h<f.length;++h)f[h].indexOf("utf8=")===0&&(f[h]===S?C="utf-8":f[h]===x&&(C="iso-8859-1"),b=h,h=f.length);for(h=0;h<f.length;++h)if(h!==b){var _=f[h],O=_.indexOf("]="),R=O===-1?_.indexOf("="):O+1,q,F;R===-1?(q=m.decoder(_,c.decoder,C,"key"),F=m.strictNullHandling?null:""):(q=m.decoder(_.slice(0,R),c.decoder,C,"key"),F=n.maybeMap(B(_.slice(R+1),m,d(p[q])?p[q].length:0),function(l){return m.decoder(l,c.decoder,C,"value")})),F&&m.interpretNumericEntities&&C==="iso-8859-1"&&(F=i(String(F))),_.indexOf("[]=")>-1&&(F=d(F)?[F]:F);var T=s.call(p,q);T&&m.duplicates==="combine"?p[q]=n.combine(p[q],F):(!T||m.duplicates==="last")&&(p[q]=F)}return p},A=function(w,u,m,p){var r=0;if(w.length>0&&w[w.length-1]==="[]"){var a=w.slice(0,-1).join("");r=Array.isArray(u)&&u[a]?u[a].length:0}for(var f=p?u:B(u,m,r),b=w.length-1;b>=0;--b){var h,C=w[b];if(C==="[]"&&m.parseArrays)h=m.allowEmptyArrays&&(f===""||m.strictNullHandling&&f===null)?[]:n.combine([],f);else{h=m.plainObjects?{__proto__:null}:{};var _=C.charAt(0)==="["&&C.charAt(C.length-1)==="]"?C.slice(1,-1):C,O=m.decodeDotInKeys?_.replace(/%2E/g,"."):_,R=parseInt(O,10);!m.parseArrays&&O===""?h={0:f}:!isNaN(R)&&C!==O&&String(R)===O&&R>=0&&m.parseArrays&&R<=m.arrayLimit?(h=[],h[R]=f):O!=="__proto__"&&(h[O]=f)}f=h}return f},y=function(u,m,p,r){if(u){var a=p.allowDots?u.replace(/\.([^.[]+)/g,"[$1]"):u,f=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,h=p.depth>0&&f.exec(a),C=h?a.slice(0,h.index):a,_=[];if(C){if(!p.plainObjects&&s.call(Object.prototype,C)&&!p.allowPrototypes)return;_.push(C)}for(var O=0;p.depth>0&&(h=b.exec(a))!==null&&O<p.depth;){if(O+=1,!p.plainObjects&&s.call(Object.prototype,h[1].slice(1,-1))&&!p.allowPrototypes)return;_.push(h[1])}if(h){if(p.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+p.depth+" and strictDepth is true");_.push("["+a.slice(h.index)+"]")}return A(_,m,p,r)}},v=function(u){if(!u)return c;if(typeof u.allowEmptyArrays<"u"&&typeof u.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof u.decodeDotInKeys<"u"&&typeof u.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(u.decoder!==null&&typeof u.decoder<"u"&&typeof u.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof u.charset<"u"&&u.charset!=="utf-8"&&u.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof u.throwOnLimitExceeded<"u"&&typeof u.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var m=typeof u.charset>"u"?c.charset:u.charset,p=typeof u.duplicates>"u"?c.duplicates:u.duplicates;if(p!=="combine"&&p!=="first"&&p!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof u.allowDots>"u"?u.decodeDotInKeys===!0?!0:c.allowDots:!!u.allowDots;return{allowDots:r,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:c.allowEmptyArrays,allowPrototypes:typeof u.allowPrototypes=="boolean"?u.allowPrototypes:c.allowPrototypes,allowSparse:typeof u.allowSparse=="boolean"?u.allowSparse:c.allowSparse,arrayLimit:typeof u.arrayLimit=="number"?u.arrayLimit:c.arrayLimit,charset:m,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:c.charsetSentinel,comma:typeof u.comma=="boolean"?u.comma:c.comma,decodeDotInKeys:typeof u.decodeDotInKeys=="boolean"?u.decodeDotInKeys:c.decodeDotInKeys,decoder:typeof u.decoder=="function"?u.decoder:c.decoder,delimiter:typeof u.delimiter=="string"||n.isRegExp(u.delimiter)?u.delimiter:c.delimiter,depth:typeof u.depth=="number"||u.depth===!1?+u.depth:c.depth,duplicates:p,ignoreQueryPrefix:u.ignoreQueryPrefix===!0,interpretNumericEntities:typeof u.interpretNumericEntities=="boolean"?u.interpretNumericEntities:c.interpretNumericEntities,parameterLimit:typeof u.parameterLimit=="number"?u.parameterLimit:c.parameterLimit,parseArrays:u.parseArrays!==!1,plainObjects:typeof u.plainObjects=="boolean"?u.plainObjects:c.plainObjects,strictDepth:typeof u.strictDepth=="boolean"?!!u.strictDepth:c.strictDepth,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:c.strictNullHandling,throwOnLimitExceeded:typeof u.throwOnLimitExceeded=="boolean"?u.throwOnLimitExceeded:!1}};return _r=function(w,u){var m=v(u);if(w===""||w===null||typeof w>"u")return m.plainObjects?{__proto__:null}:{};for(var p=typeof w=="string"?k(w,m):w,r=m.plainObjects?{__proto__:null}:{},a=Object.keys(p),f=0;f<a.length;++f){var b=a[f],h=y(b,p[b],m,typeof w=="string");r=n.merge(r,h,m)}return m.allowSparse===!0?r:n.compact(r)},_r}var Cr,qt;function Rn(){if(qt)return Cr;qt=1;var n=Pn(),s=xn(),d=br();return Cr={formats:d,parse:s,stringify:n},Cr}var Fn=Rn();const Nn=Zt(Fn),ge=Kt.create({baseURL:"",timeout:1e4,paramsSerializer:{serialize:n=>Nn.stringify(n,{arrayFormat:"repeat"})}});ge.interceptors.request.use(n=>{const s=localStorage.getItem("token");return s&&(n.headers.Authorization="Bearer "+s),n},n=>(console.log(n),Promise.reject(n))),ge.interceptors.response.use(n=>{const s=n.data;return s.code!==200?(me.ElMessage({message:s.msg||"Error",type:"error",duration:5*1e3}),(s.code===401||s.code===403)&&me.ElMessageBox.confirm("您的登录状态已失效,请重新登录","确认登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(()=>{localStorage.removeItem("token"),location.reload()}),Promise.reject(new Error(s.msg||"Error"))):s},n=>(console.log("HTTP Error: "+n),me.ElMessage({message:"网络错误,请检查您的网络连接或联系管理员",type:"error",duration:5*1e3}),Promise.reject(n)));function Dn(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}const Vn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qn=Vn?window:void 0;function $t(n){var s;const d=e.toValue(n);return(s=d==null?void 0:d.$el)!=null?s:d}function $n(){const n=e.shallowRef(!1),s=e.getCurrentInstance();return s&&e.onMounted(()=>{n.value=!0},s),n}function In(n){const s=$n();return e.computed(()=>(s.value,!!n()))}function Tn(n,s,d={}){const{window:c=qn,...i}=d;let B;const x=In(()=>c&&"ResizeObserver"in c),S=()=>{B&&(B.disconnect(),B=void 0)},k=e.computed(()=>{const v=e.toValue(n);return Array.isArray(v)?v.map(w=>$t(w)):[$t(v)]}),A=e.watch(k,v=>{if(S(),x.value&&c){B=new ResizeObserver(s);for(const w of v)w&&B.observe(w,i)}},{immediate:!0,flush:"post"}),y=()=>{S(),A()};return Dn(y),{isSupported:x,stop:y}}const Mn=e.defineComponent({__name:"TableHeaderWithTooltip",props:{label:{},placement:{}},setup(n){const s=e.ref(null),d=e.ref(!1),c=()=>{s.value&&(d.value=s.value.scrollWidth>s.value.clientWidth)};return e.onMounted(()=>{c()}),Tn(s,()=>{c()}),(i,B)=>{const x=e.resolveComponent("el-tooltip");return d.value?(e.openBlock(),e.createBlock(x,{key:1,content:i.label,placement:i.placement||"top"},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(i.label),513)]),_:1},8,["content","placement"])):(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(i.label),513))}}}),It=(n,s)=>{const d=n.__vccOpts||n;for(const[c,i]of s)d[c]=i;return d},Un=It(Mn,[["__scopeId","data-v-d23c8660"]]),Ln={key:0,class:"search-section-wrapper"},Wn={class:"flex flex-wrap items-center justify-between gap-4"},zn={class:"flex items-center gap-x-2"},Gn={class:"flex items-center gap-x-3 action-buttons flex-shrink-0"},jn={class:"table-content-wrapper"},Hn={key:1},Qn={key:0,class:"flex items-center gap-x-2"},Kn={key:1,class:"pagination-wrapper flex justify-end mt-2"},Jn={style:{"overflow-y":"auto",flex:"1"}},Yn={key:2,style:{"max-width":"700px",width:"100%",margin:"0 auto"}},Zn={style:{"max-width":"700px",width:"100%",margin:"0 auto",display:"flex","justify-content":"flex-end",gap:"12px"}},Xn={class:"flex items-center"},eo={class:"el-dialog__title"},ro={style:{"overflow-y":"auto",flex:"1"}},to={key:1,style:{width:"700px",margin:"0 auto"}},no={style:{"max-width":"700px",width:"100%",margin:"0 auto",display:"flex","justify-content":"flex-end",gap:"12px"}},oo=It(e.defineComponent({__name:"CrudTable",props:{theme:{type:String,default:"default"},customClass:{type:String,default:""},apiUrlQuery:{type:String,required:!0},apiUrlDetail:{type:String,required:!0},apiUrlCreate:{type:String,required:!0},apiUrlUpdate:{type:String,required:!0},apiUrlDelete:{type:String,required:!0},loadingText:{type:String,default:"加载中…"},loadingBackground:{type:String,default:"rgba(0, 0, 0, 0.3)"},showSearchSection:{type:Boolean,default:!0},showSearchActionButtons:{type:Boolean,default:!0},showSearchButton:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showNewBtn:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},onBeforeQuery:{type:Function},onAfterQuery:{type:Function},onBeforeOpenDialog:{type:Function},onAfterOpenDialog:{type:Function},onBeforeSubmit:{type:Function},onAfterSubmit:{type:Function},onBeforeDelete:{type:Function},onAfterDelete:{type:Function},showSelectionColumn:{type:Boolean,default:!0},showIndexColumn:{type:Boolean,default:!0},showActionsColumn:{type:Boolean,default:!0},showEditButton:{type:Boolean,default:!0},showDeleteButton:{type:Boolean,default:!0},showViewButton:{type:Boolean,default:!1},actionsColumnWidth:{type:[String,Number],default:120},dialogWidth:{type:String,default:"50%"},initialSearchForm:{type:Object,default:()=>({pageNum:1,pageSize:10})},showPagination:{type:Boolean,default:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},paginationLayout:{type:String,default:"total, sizes, prev, pager, next, jumper"},paginationBackground:{type:Boolean,default:!0},paginationSmall:{type:Boolean,default:!1},paginationHideOnSinglePage:{type:Boolean,default:!1},dialogFormConfig:{type:Array,default:()=>[]},dialogFormRules:{type:Object,default:()=>({})},dialogFormLabelWidth:{type:String,default:"120"},submitAsFormData:{type:Boolean,default:!1},dialogFullscreen:{type:Boolean,default:!1},addDialogTitle:{type:String,default:"新增"},editDialogTitle:{type:String,default:"编辑"}},emits:["open-dialog","submit","delete","update:initialSearchForm"],setup(n,{expose:s,emit:d}){const c=d,i=n,B=e.computed(()=>["crud-table-wrapper",`theme-${i.theme}`,i.customClass]),x=e.computed(()=>i.theme==="large-screen"?"large-screen-dialog":""),S=(l,g)=>l?!0:(me.ElMessage.error(`${g} prop is required.`),!1),k=(l,g,E)=>E?l&&Array.isArray(l.permissions)?l.permissions.includes(g):!0:!1,A=async(l,g)=>{if(l==="view")return Promise.resolve();try{let E={...g};i.onBeforeSubmit&&(E=await i.onBeforeSubmit(E,l));let V=E;if(i.submitAsFormData){const z=new FormData;for(const j in E)if(Object.prototype.hasOwnProperty.call(E,j)){const N=E[j];z.append(j,N??"")}V=z}if(p.submitting=!0,l==="add"){if(!S(i.apiUrlCreate,"apiUrlCreate"))throw new Error("apiUrlCreate is not configured.");await ge.post(i.apiUrlCreate,V),me.ElMessage.success("新增成功")}else{if(!S(i.apiUrlUpdate,"apiUrlUpdate"))throw new Error("apiUrlUpdate is not configured.");await ge.put(i.apiUrlUpdate,V),me.ElMessage.success("更新成功")}return i.onAfterSubmit&&i.onAfterSubmit(l,E),c("submit",{mode:l,data:E}),p.visible&&(p.visible=!1),f(),Promise.resolve()}catch(E){return console.error("Submit failed:",E),Promise.reject(E)}finally{p.submitting=!1}},y=e.reactive({pageNum:1,pageSize:10,...i.initialSearchForm}),v=e.ref([]),w=e.ref(0),u=e.ref(!1),m=e.ref([]),p=e.reactive({visible:!1,loading:!1,submitting:!1,mode:"add",data:{},formRef:null}),r=e.computed(()=>p.mode==="add"?i.addDialogTitle:i.editDialogTitle),a=e.computed(()=>p.mode==="add"?i.dialogFormConfig.filter(g=>g.prop!=="id"):[...i.dialogFormConfig.filter(g=>g.prop!=="id")]),f=async()=>{if(S(i.apiUrlQuery,"apiUrlQuery")){u.value=!0;try{let l={...y};i.onBeforeQuery&&(l=await i.onBeforeQuery(l));const g=await ge.get(i.apiUrlQuery,{params:l});let E=[],V=0,z=!1;g!=null&&g.data&&Array.isArray(g.data.rows)?(E=g.data.rows,V=typeof g.data.total=="number"?g.data.total:E.length,z=!0):Array.isArray(g==null?void 0:g.data)?(E=g.data,V=g.data.length,z=!0):Array.isArray(g)&&(E=g,V=g.length,z=!0),z?(i.onAfterQuery&&(E=await i.onAfterQuery(E,l)),v.value=E,w.value=V):(console.warn("未识别的 API 响应格式,请检查 fetchData 中的兼容逻辑。",g),v.value=[],w.value=0)}catch(l){console.error("Fetch data failed:",l),v.value=[],w.value=0}finally{u.value=!1}}},b=l=>{l?Object.assign(y,l):Object.assign(y,i.initialSearchForm),y.pageNum=1,f()},h=()=>{const{pageNum:l,pageSize:g,...E}=i.initialSearchForm;Object.keys(y).forEach(V=>{V!=="pageNum"&&V!=="pageSize"&&delete y[V]}),Object.assign(y,E),b()},C=l=>{m.value=l},_=async(l,g)=>{debugger;let E;if(l==="add"?E=g?{...g}:{role:"user"}:E={...g},i.onBeforeOpenDialog){const V=await i.onBeforeOpenDialog(l,E);V&&(E=V)}if(p.mode=l,p.visible=!0,l==="edit"||l==="view"){if(!S(i.apiUrlDetail,"apiUrlDetail"))return;p.loading=!0;try{const V=await ge.get(i.apiUrlDetail+"/"+E.id.toString());p.data=V.data}finally{p.loading=!1,i.onAfterOpenDialog&&i.onAfterOpenDialog(l,p.data),c("open-dialog",{mode:l,data:p.data})}}else p.data=E,i.onAfterOpenDialog&&i.onAfterOpenDialog(l,p.data),c("open-dialog",{mode:l,data:p.data})},O=async()=>{if(p.mode!=="view")try{p.formRef?await p.formRef.validate():console.warn("Dialog form ref is not available for validation."),await A(p.mode,p.data)}catch(l){console.log("Validation or submit error:",l)}},R=async l=>{if(S(i.apiUrlDelete,"apiUrlDelete"))try{const g=v.value.filter(V=>l.includes(V.id));if(i.onBeforeDelete&&await i.onBeforeDelete(l,g)===!1)return;const E=l.join(",");await ge.delete(i.apiUrlDelete+"/"+E.toString()),me.ElMessage.success("删除成功"),i.onAfterDelete&&i.onAfterDelete(l,g),c("delete",l),v.value.length===l.length&&y.pageNum>1&&y.pageNum--,f()}catch(g){console.error("Delete failed",g)}},q=l=>{y.pageSize=l,b()},F=l=>{y.pageNum=l,f()};e.onMounted(f);const T=()=>{p.visible=!1};return e.watch(y,l=>{c("update:initialSearchForm",{...e.toRaw(l)})},{deep:!0}),e.watch(()=>i.initialSearchForm,l=>{Object.assign(y,l)},{deep:!0}),s({refresh:f,search:b,handleDelete:R,openDialog:_,submit:A,closeDialog:T}),(l,g)=>{const E=e.resolveComponent("el-button"),V=e.resolveComponent("el-form-item"),z=e.resolveComponent("el-form"),j=e.resolveComponent("el-table-column"),N=e.resolveComponent("el-popconfirm"),Y=e.resolveComponent("el-table"),te=e.resolveComponent("el-pagination"),ce=e.resolveComponent("el-skeleton"),ne=e.resolveComponent("el-dialog"),ie=e.resolveComponent("el-icon"),le=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([B.value,"crud-table-container"])},[i.showSearchSection?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(l.$slots,"header",{},void 0,!0),e.createElementVNode("div",Wn,[e.createVNode(z,{model:y,class:"query-form flex flex-nowrap items-center gap-x-4",style:{"overflow-x":"auto","padding-bottom":"8px"}},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"query-conditions",{searchForm:y},void 0,!0),e.createVNode(V,{class:"!mr-0 flex-shrink-0"},{default:e.withCtx(()=>[e.createElementVNode("div",zn,[e.renderSlot(l.$slots,"query-left",{searchForm:y},void 0,!0),i.showSearchActionButtons?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.showSearchButton?(e.openBlock(),e.createBlock(E,{key:0,color:"#336FFF",onClick:b,loading:u.value},{default:e.withCtx(()=>[...g[8]||(g[8]=[e.createTextVNode("搜索",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0),i.showClearButton?(e.openBlock(),e.createBlock(E,{key:1,color:"#336FFF",plain:"",onClick:h},{default:e.withCtx(()=>[...g[9]||(g[9]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"query-right",{searchForm:y},void 0,!0)])]),_:3})]),_:3},8,["model"]),e.createElementVNode("div",Gn,[e.renderSlot(l.$slots,"action-left",{selections:m.value},void 0,!0),e.renderSlot(l.$slots,"add-button-content",{selections:m.value},()=>[i.showNewBtn?(e.openBlock(),e.createBlock(E,{key:0,color:"#336FFF",onClick:g[0]||(g[0]=P=>_("add"))},{default:e.withCtx(()=>[...g[10]||(g[10]=[e.createTextVNode("新增",-1)])]),_:1})):e.createCommentVNode("",!0)],!0),e.renderSlot(l.$slots,"action-right",{selections:m.value},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",jn,[e.withDirectives((e.openBlock(),e.createBlock(Y,e.mergeProps({data:v.value,"element-loading-text":i.loadingText,"element-loading-background":i.loadingBackground,onSelectionChange:C},l.$attrs,{height:"100%",style:{width:"100%"}}),{default:e.withCtx(()=>[i.showSelectionColumn?(e.openBlock(),e.createBlock(j,{key:0,type:"selection",width:"55",fixed:""})):e.createCommentVNode("",!0),i.showIndexColumn?(e.openBlock(),e.createBlock(j,{key:1,type:"index",label:"序号",width:"70",fixed:""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.columns,P=>(e.openBlock(),e.createBlock(j,e.mergeProps({key:P.prop,prop:P.prop,label:P.label,width:P.width,sortable:P.sortable||!1},{ref_for:!0},P.attrs),e.createSlots({header:e.withCtx(()=>[P.headerTooltip?(e.openBlock(),e.createBlock(Un,{key:0,label:P.label,placement:P.placement},null,8,["label","placement"])):(e.openBlock(),e.createElementBlock("span",Hn,e.toDisplayString(P.label),1))]),_:2},[P.slot?{name:"default",fn:e.withCtx(H=>[e.renderSlot(l.$slots,P.slot,{row:H.row},void 0,!0)]),key:"0"}:void 0]),1040,["prop","label","width","sortable"]))),128)),i.showActionsColumn?(e.openBlock(),e.createBlock(j,{key:2,label:"操作",width:n.actionsColumnWidth},{default:e.withCtx(P=>[P.row?(e.openBlock(),e.createElementBlock("div",Qn,[l.$slots.actions?e.renderSlot(l.$slots,"actions",{key:0,row:P.row},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(l.$slots,"action-before-edit",{row:P.row},void 0,!0),k(P.row,"view",i.showViewButton)?(e.openBlock(),e.createBlock(E,{key:0,size:"small",type:"success",link:"",onClick:H=>_("view",P.row)},{default:e.withCtx(()=>[...g[11]||(g[11]=[e.createTextVNode("查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),k(P.row,"edit",i.showEditButton)?(e.openBlock(),e.createBlock(E,{key:1,size:"small",type:"primary",link:"",onClick:H=>_("edit",P.row)},{default:e.withCtx(()=>[...g[12]||(g[12]=[e.createTextVNode("编辑 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),k(P.row,"delete",i.showDeleteButton)?(e.openBlock(),e.createBlock(N,{key:2,title:"确定要删除这条数据吗?",onConfirm:H=>R([P.row.id]),"confirm-button-text":"确定","cancel-button-text":"取消",width:"200"},{reference:e.withCtx(()=>[e.createVNode(E,{size:"small",type:"danger",link:""},{default:e.withCtx(()=>[...g[13]||(g[13]=[e.createTextVNode("删除",-1)])]),_:1})]),_:1},8,["onConfirm"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"action-after-delete",{row:P.row},void 0,!0)],64))])):e.createCommentVNode("",!0)]),_:3},8,["width"])):e.createCommentVNode("",!0)]),_:3},16,["data","element-loading-text","element-loading-background"])),[[le,u.value]])]),i.showPagination&&w.value>0?(e.openBlock(),e.createElementBlock("div",Kn,[e.createVNode(te,{"current-page":y.pageNum,"onUpdate:currentPage":g[1]||(g[1]=P=>y.pageNum=P),"page-size":y.pageSize,"onUpdate:pageSize":g[2]||(g[2]=P=>y.pageSize=P),"page-sizes":i.pageSizes,layout:i.paginationLayout,total:w.value,background:i.paginationBackground,small:i.paginationSmall,"hide-on-single-page":i.paginationHideOnSinglePage,onSizeChange:q,onCurrentChange:F},null,8,["current-page","page-size","page-sizes","layout","total","background","small","hide-on-single-page"])])):e.createCommentVNode("",!0),i.dialogFullscreen?(e.openBlock(),e.createBlock(ne,{key:3,modelValue:p.visible,"onUpdate:modelValue":g[7]||(g[7]=P=>p.visible=P),fullscreen:!0,width:i.dialogWidth,"destroy-on-close":!0,modal:!i.dialogFullscreen,"custom-class":x.value,"show-close":!1,style:{display:"flex","flex-direction":"column","max-height":"100vh"}},{header:e.withCtx(()=>[e.createElementVNode("div",Xn,[e.createVNode(E,{type:"info",text:"",onClick:g[5]||(g[5]=P=>p.visible=!1),style:{"margin-right":"12px"}},{default:e.withCtx(()=>[e.createVNode(ie,{size:"20"},{default:e.withCtx(()=>[e.createVNode(e.unref(Yt))]),_:1})]),_:1}),e.createElementVNode("span",eo,e.toDisplayString(r.value),1)])]),footer:e.withCtx(()=>[e.renderSlot(l.$slots,"dialog-footer",{dialog:p,submit:O,cancel:()=>p.visible=!1},()=>[e.createElementVNode("div",no,[e.createVNode(E,{color:"#336FFF",plain:"",onClick:g[6]||(g[6]=P=>p.visible=!1)},{default:e.withCtx(()=>[...g[16]||(g[16]=[e.createTextVNode("取消",-1)])]),_:1}),p.mode!=="view"?(e.openBlock(),e.createBlock(E,{key:0,color:"#336FFF",onClick:O,loading:p.submitting},{default:e.withCtx(()=>[...g[17]||(g[17]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0)])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ro,[l.$slots["dialog-form"]?e.renderSlot(l.$slots,"dialog-form",{key:0,formData:p.data,mode:p.mode,formRef:P=>{p.formRef=P}},void 0,!0):p.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",to,[e.createVNode(Vr,{ref:P=>{p.formRef=P},"model-value":p.data,"form-config":a.value,rules:i.dialogFormRules,"label-width":i.dialogFormLabelWidth,disabled:p.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"])]))])]),_:3},8,["modelValue","width","modal","custom-class"])):(e.openBlock(),e.createBlock(ne,{key:2,modelValue:p.visible,"onUpdate:modelValue":g[4]||(g[4]=P=>p.visible=P),title:r.value,width:i.dialogWidth,"destroy-on-close":!0,"custom-class":x.value,style:{display:"flex","flex-direction":"column","max-height":"80vh"}},{footer:e.withCtx(()=>[e.renderSlot(l.$slots,"dialog-footer",{dialog:p,submit:O,cancel:()=>p.visible=!1},()=>[e.createElementVNode("div",Zn,[e.createVNode(E,{color:"#336FFF",onClick:g[3]||(g[3]=P=>p.visible=!1)},{default:e.withCtx(()=>[...g[14]||(g[14]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(E,{color:"#336FFF",onClick:O,loading:p.submitting},{default:e.withCtx(()=>[...g[15]||(g[15]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",Jn,[l.$slots["dialog-form"]?e.renderSlot(l.$slots,"dialog-form",{key:0,formData:p.data,mode:p.mode,formRef:P=>{p.formRef=P}},void 0,!0):p.loading?(e.openBlock(),e.createBlock(ce,{key:1,rows:5,animated:""})):p.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Yn,[e.createVNode(Vr,{ref:P=>{p.formRef=P},"model-value":p.data,"form-config":a.value,rules:i.dialogFormRules,"label-width":i.dialogFormLabelWidth,disabled:p.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"])]))])]),_:3},8,["modelValue","title","width","custom-class"]))],2)}}}),[["__scopeId","data-v-7671be98"]]);fe.CrudTable=oo,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})}));