general-basic-form 2.0.64 → 2.1.1

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.
@@ -1 +1,87 @@
1
- (function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P.Index={},P.Vue))})(this,function(P,e){"use strict";const U={placeholder:"请输入",style:"width: 200px",clearable:!0},ce={style:"width: 227px","start-placeholder":"开始日期","end-placeholder":"结束日期",type:"daterange"},v={placeholder:"请选择",filterable:!0,clearable:!0,style:"width: 200px"},pe=e.defineComponent({components:{InputArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){const t=e.inject("queryParams",{}),o=e.inject("getList"),n=e.inject("size","default");return{queryParams:t,getList:o,size:n}},data(){return{inputSetting:{...U,...this.item.inputSetting,...this.item.setting}}},methods:{currentInputComponent(){return"input-archive"}}}),q=(t,o)=>{const n=t.__vccOpts||t;for(const[r,a]of o)n[r]=a;return n};function me(t,o,n,r,a,c){const i=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(i,e.mergeProps({onKeydown:e.withKeys(t.getList,["enter"]),modelValue:t.queryParams[t.item.prop],"onUpdate:modelValue":o[0]||(o[0]=l=>t.queryParams[t.item.prop]=l),size:t.size},t.inputSetting),e.createSlots({_:2},[e.renderList(t.item.template,(l,s)=>({name:s,fn:e.withCtx(()=>[l?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:l},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040,["onKeydown","modelValue","size"])}const K=q(pe,[["render",me]]),de=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...U,...t.item.inputSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=l=>e.unref(o)[a.item.prop]=l),size:e.unref(n)},r.value),null,16,["modelValue","size"])}}}),fe=e.defineComponent({components:{InputArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){const t=e.inject("queryParams",{}),o=e.inject("getList",()=>{}),n=e.inject("size","default"),a=e.inject("Form").useInjectFormItemContext();return{queryParams:t,getList:o,size:n,formItemContext:a}},data(){return{inputSetting:{...U,...this.item.inputSetting,...this.item.setting}}},methods:{currentInputComponent(){return"input-archive"},onInputChange(t){this.queryParams[this.item.prop]=t.target.value,this.formItemContext.onFieldChange()}}});function ue(t,o,n,r,a,c){const i=e.resolveComponent("a-input");return e.openBlock(),e.createBlock(i,e.mergeProps({onKeydown:e.withKeys(t.getList,["enter"]),onChange:t.onInputChange,value:t.queryParams[t.item.prop],size:t.size},t.inputSetting),e.createSlots({_:2},[e.renderList(t.item.template,(l,s)=>({name:s,fn:e.withCtx(()=>[l?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:l},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040,["onKeydown","onChange","value","size"])}const ee=q(fe,[["render",ue]]),te=Symbol(),ye=e.defineComponent({__name:"index",props:{imgSrc:{}},setup(t){const o=e.ref();return e.onMounted(()=>{const n=new Image,r=[],a=8,c=8;let i=0,l=0;const s=300,m=o.value,d=m.getContext("2d");n.onload=function(){m.width=n.width,m.height=n.height,l=Math.floor(n.width/a),i=Math.floor(n.height/c),f(),u()},n.src=t.imgSrc;const f=()=>{for(let y=0;y<c;y++)for(let h=0;h<a;h++)r.push({x:l*h,y:i*y,offsetX:(Math.random()-.5)*s,offsetY:(Math.random()-.5)*s})},u=()=>{d.clearRect(0,0,m.width,m.height);let y=!0;r.forEach((h,g)=>{d.drawImage(n,h.x,h.y,l,i,h.x+h.offsetX,h.y+h.offsetY,l,i),Math.abs(h.offsetX)>.5&&(y=!1,h.offsetX*=.95),Math.abs(h.offsetY)>.5&&(h.offsetY*=.95,y=!1)}),y?setTimeout(()=>{f(),u()},300):requestAnimationFrame(u)}}),(n,r)=>(e.openBlock(),e.createElementBlock("canvas",{ref_key:"loadingCanvas",ref:o},null,512))}}),he={class:"input-graphic-verification"},ge=["src","alt"],ke=e.defineComponent({__name:"index",props:{item:{},componentType:{default:"Element Plus"},loading:{type:Boolean,default:!1}},setup(t){const{graphicSrc:o="",graphicAlt:n="",getGraphic:r=()=>{},key:a}=t.item,{formLoading:c}=e.inject(te,!1),i=e.computed(()=>(c==null?void 0:c.value)||t.loading),l=async()=>{r&&!(i!=null&&i.value)&&await r()},s=e.shallowRef(K);switch(t.componentType){case"Element Plus":s.value=K;break;case"Ant Design Vue":s.value=ee;break}return(m,d)=>(e.openBlock(),e.createElementBlock("div",he,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{item:m.item,class:"input"},null,8,["item"])),i.value?(e.openBlock(),e.createBlock(ye,{key:0,class:"graphic",imgSrc:e.unref(o)},null,8,["imgSrc"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"graphic",onClick:l,src:e.unref(o),alt:e.unref(n)||`${e.unref(a)}`},null,8,ge))]))}}),at="",ne=q(ke,[["__scopeId","data-v-fb7aa300"]]),F="获取验证码",Be=60,_e=e.defineComponent({__name:"verification-button",props:{getSmscode:{type:Function},componentType:{default:"Element Plus"},item:{}},setup(t,{expose:o}){const n=e.ref(F),r=e.ref(null),a=e.computed(()=>n.value===F),c=e.shallowRef("el-button");switch(t.componentType){case"Element Plus":c.value="el-button";break;case"Ant Design Vue":c.value="a-button";break}const i=()=>{r&&(clearInterval(r.value),r.value=null,n.value=F)},l=async()=>{if(n.value===F)if(n.value=Be,r.value=setInterval(()=>{if(Number(n.value)<=0||!n.value){i();return}else n.value=Number(n.value)-1},1e3),t.getSmscode)await t.getSmscode()===!1&&i();else return};e.onBeforeUnmount(()=>{i()});const s={...t.item.buttonSetting};return o({buttonClick:l,reset:i}),(m,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({class:"verifiaction-button",style:{color:a.value?"var(--color-primary, #409EFF)":"var(--text-color-placeholder, #A8ABB2)",cursor:a.value?"pointer":"default"},onClick:l},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value?F:n.value+"s"),1)]),_:1},16,["style"]))}}),st="",oe=q(_e,[["__scopeId","data-v-aa89c1b7"]]),re=e.defineComponent({__name:"index",props:{item:{},componentType:{default:"Element Plus"}},setup(t,{expose:o}){const n=t.item,r=e.shallowRef(K),a=e.ref();switch(t.componentType){case"Element Plus":r.value=K,n.template={append:()=>e.h(oe,{getSmscode:n.getSmscode,item:t.item,ref:a})};break;case"Ant Design Vue":r.value=ee,n.template={suffix:()=>e.h(oe,{getSmscode:n.getSmscode,item:t.item,ref:a})};break}return o({VerificationButtonRef:a}),(c,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{item:e.unref(n),class:"input"},null,8,["item"]))}}),be=e.defineComponent({components:{slotArchive:t=>{const{templateEle:o}=t;return o()}},props:{item:null},setup(){},data(){return{dividerSetting:{...this.item.dividerSetting,...this.item.setting}}},methods:{currentInputComponent(){return"slot-archive"}}});function Ce(t,o,n,r,a,c){const i=e.resolveComponent("el-divider");return e.openBlock(),e.createBlock(i,e.normalizeProps(e.guardReactiveProps(t.dividerSetting)),e.createSlots({_:2},[e.renderList(t.item.template,(l,s)=>({name:s,fn:e.withCtx(()=>[l?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.currentInputComponent()),{key:s,templateEle:l},null,8,["templateEle"])):e.createCommentVNode("",!0)])}))]),1040)}const Pe=q(be,[["render",Ce]]),we=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...t.item.radioGroupSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-radio"),l=e.resolveComponent("el-radio-group");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(i,e.mergeProps({size:e.unref(n),key:s.value,ref_for:!0},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1040,["size"]))),128))]),_:1},16,["modelValue","size"])}}}),De=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...t.item.checkboxGroupSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-checkbox"),l=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(i,e.mergeProps({size:e.unref(n),key:s.value,ref_for:!0},s),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1040,["size"]))),128))]),_:1},16,["modelValue","size"])}}}),Se=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...ce,...t.item.datePackerSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=l=>e.unref(o)[a.item.prop]=l),size:e.unref(n)},r.value),null,16,["modelValue","size"])}}}),Ie=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...v,...t.item.selectSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-option"),l=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(l,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(o)[a.item.prop]=s),size:e.unref(n)},r.value),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.item.option||[],s=>(e.openBlock(),e.createBlock(i,e.mergeProps({key:s.value,ref_for:!0},s),null,16))),128))]),_:1},16,["modelValue","size"])}}}),Ve=e.defineComponent({__name:"index",props:{item:{}},setup(t){const o=e.inject("queryParams",{}),n=e.inject("size"),r=e.ref({...v,...t.item.selectSetting,...t.item.setting});return(a,c)=>{const i=e.resolveComponent("el-cascader");return e.openBlock(),e.createBlock(i,e.mergeProps({modelValue:e.unref(o)[a.item.prop],"onUpdate:modelValue":c[0]||(c[0]=l=>e.unref(o)[a.item.prop]=l),size:e.unref(n),options:a.item.options||[]},r.value),null,16,["modelValue","size","options"])}}}),xe=(t={})=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const n=t[o];Object.prototype.toString.call(n)==="[object Object]"&&(t[o]=JSON.stringify(n))}return t},Ne=(t={})=>{for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const n=t[o];try{/[{]+/g.test(n)&&/[}]+/g.test(n)&&(t[o]=JSON.parse(n))}catch{}}return t},J={paramsToQuery:xe,queryToData:Ne},V=T;(function(t,o){const n=T,r=t();for(;;)try{if(parseInt(n(561))/1+-parseInt(n(558))/2+parseInt(n(521))/3*(parseInt(n(527))/4)+-parseInt(n(506))/5*(parseInt(n(510))/6)+-parseInt(n(550))/7*(parseInt(n(503))/8)+parseInt(n(540))/9+-parseInt(n(546))/10*(-parseInt(n(562))/11)===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(j,819524);const b={};let z=null;const ae=async(t,o)=>{const n=T;!window[n(543)]&&window[n(498)]("您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.");const{DBName:r="",DBVersion:a=1}=t;let c,i=!1;try{const l=window[n(543)][n(519)](r,a);await new Promise((s,m)=>{const d=n;l[d(551)]=async function(f){const u=d,y=f.target.result,{stores:h=[]}=t;await Promise.all(h[u(509)](async g=>{const k=u,{DBStoreName:B="",properties:w={}}=g;try{const D={};D[k(536)]=t[k(557)];const p=f[k(541)][k(520)][k(554)](B,D);if(Object[k(548)](w)[k(500)]===0){console[k(559)](B+"没有设置默认值");return}for(const _ in w)if(w[k(556)][k(515)](w,_)){const S=w[_],N={...S.createIndex};p[k(504)](_,_,N)}}catch(D){console[k(559)](D)}})),c=y,i=!0},l[d(535)]=async function(f){const u=d;if(c=this[u(520)],i){const{stores:y=[]}=t;await Promise[u(528)](y[u(509)](async h=>{const g=u,{DBStoreName:k=""}=h,B=c[g(552)]([k],g(547)),w=B[g(496)](k),D={};D[t[g(557)]]=o,w[g(502)](D);try{await new Promise((p,_)=>{const S=g;B[S(525)]=function(N){const $=S;console[$(513)]($(512),N),_()},B[S(544)]=function(N){p()},B[S(529)]=function(N){const $=S;console[$(513)]($(534),N),_()}})}catch(p){console.warn(g(511),p)}}))}s()},l.onerror=function(f){m(f)}})}catch(l){console[n(513)](l,n(526))}return c};function j(){const t=["transaction","DBName","createObjectStore","close","hasOwnProperty","primaryKey","208156ZfrAJr","warn","delete","1575928bFmnZg","154LBDnQZ","objectStore","数据更新失败","alert","store不存在,请更新schema和DBVersion并重启前端服务","length","openCursor","add","15752fkogxb","createIndex","deleteDB","299045NkkBTh","请传入主键","mapDB","map","102uEoUGM","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","主键插入中止","error","数据库删除失败","call","continue","update","deleteStore","open","result","66891DVCnfv","get","getDataByKey","数据删除失败","onabort","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","52JGzdMb","all","onerror","put","数据更新失败没有request","Database connection closed, reconnecting...","target","主键插入失败","onsuccess","keyPath","数据更新成功","主键查询结果:","传入结构化克隆算法不支持的数据类型可能导致报错","4779333CtWPbr","currentTarget","获取Database缺乏用户信息,请先传入对primaryKey的赋值","indexedDB","oncomplete","事务失败","634540WpNScH","readwrite","keys","getDB","4781SEkDBZ","onupgradeneeded"];return j=function(){return t},j()}function T(t,o){const n=j();return T=function(r,a){return r=r-496,n[r]},T(t,o)}let R=!1;b[V(549)]=async(t,o)=>{const n=V,{mapDB:r,primaryKey:a}=t;return r?a?(R&&await new Promise(async(c,i)=>{const l=()=>{R?setTimeout(()=>{l()},200):c()};l()}),!z&&(R=!0,z=await ae(r,a),z==null||z.addEventListener(n(555),async()=>{console.info(n(532)),z=await ae(r,a)}),R=!1),o&&o(z),z):(console[n(559)](n(542)),!1):(console[n(559)]("必须传入数据库配置信息"),!1)},b[V(523)]=async(t,o)=>{const n=V,{mapDB:r,tableName:a,primaryKey:c}=t,i={};i[n(508)]=r,i[n(557)]=c;const l=await b.getDB(i);if(!l)return;const s=l.transaction([a]),m=s[n(496)](a),d=m[n(522)](c);return new Promise((f,u)=>{const y=n;d.onsuccess=function(h){const g=T;o&&o(a+g(538)+d[g(520)]),f(d[g(520)])},d[y(529)]=function(h){console.error(a+y(545)+h),u()}})},b.updateStore=async(t,o)=>{var n;const r=V,{mapDB:a,tableName:c,updateData:i}=t;!i[a==null?void 0:a[r(557)]]&&console[r(559)](r(507)+a[r(557)]);const l={};l.mapDB=a,l[r(557)]=i[a==null?void 0:a[r(557)]];const s=await b[r(549)](l);if(!s)return;let m=null;try{m=s[r(552)]([c],r(547)).objectStore(c)}catch(y){console[r(513)](r(499),y)}let d=null,f=null;const u=await new Promise((y,h)=>{const g=r,k=m[g(501)](i[a==null?void 0:a[g(557)]]);k[g(535)]=B=>{y(B)},k.onerror=B=>{h(B)}});f=(n=u==null?void 0:u[r(533)])==null?void 0:n[r(520)];try{f&&(f==null?void 0:f.primaryKey)===i[a==null?void 0:a.primaryKey]?d=f[r(517)](i):d=m[r(530)](i)}catch(y){console[r(513)](r(539),y,i)}new Promise((y,h)=>{const g=r;!d&&(console[g(513)](c+g(531)),h()),d[g(535)]=function(k){o&&o(c+g(537)),y()},d[g(529)]=function(k){const B=g;console[B(513)](c+B(497),k),h()}}),f&&f[r(516)]()},b[V(518)]=async(t,o)=>{const n=V,{mapDB:r,tableName:a,primaryKey:c}=t,i={};i[n(508)]=r,i[n(557)]=c;const l=await b.getDB(i);if(!l)return;const s=l[n(552)]([a],n(547))[n(496)](a)[n(560)](c);return new Promise((m,d)=>{const f=n;s[f(535)]=function(u){o&&o(a+"数据删除成功"),m()},s.onerror=function(u){const y=f;console[y(513)](a+y(524)+u),d()}})},b[V(505)]=async(t,o)=>{const{mapDB:n}=t,r=window.indexedDB.deleteDatabase(n.DBName);return new Promise((a,c)=>{const i=T;r[i(535)]=l=>{o&&o(n[i(553)]+"数据库已删除"),a()},r[i(529)]=l=>{const s=i;console[s(513)](n[s(553)]+s(514)+l),c()}})};function x(t,o){const n=Q();return x=function(r,a){return r=r-125,n[r]},x(t,o)}function Q(){const t=["updateData","error","getDataByKey","531aQoQZo","primaryKey","handleData","2kSsgxs","777jFjQPc","1271805RJVSFy","546pnZEJw","3522904vvFeGW","4wGSwDA","tableName","780ChApSf","deleteStore","655364nEjUrb","3705144rIEFqv","updateStore","getData","clearData","mapDB","3003845nIJAzp"];return Q=function(){return t},Q()}const A=x;(function(t,o){const n=x,r=t();for(;;)try{if(-parseInt(n(140))/1*(-parseInt(n(127))/2)+parseInt(n(142))/3*(parseInt(n(145))/4)+-parseInt(n(133))/5+-parseInt(n(143))/6*(parseInt(n(141))/7)+-parseInt(n(128))/8+parseInt(n(137))/9*(parseInt(n(125))/10)+parseInt(n(144))/11===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(Q,330152);async function $e(t,o){const n=x,{tableName:r,propertiesKey:a,parameter:c,primaryKey:i,mapDB:l}=t;let s=null,m={[l[n(138)]]:i};const d={};d[n(132)]=l,d.tableName=r,d[n(138)]=i;const f=await b[n(136)](d);f&&(m={...f,[l.primaryKey]:i}),m[a]=c;const u={};return u[n(132)]=l,u.tableName=r,u[n(134)]=m,await b[n(129)](u),c&&(s=c),o&&o(s),s}async function qe(t,o){const n=x,{tableName:r,propertiesKey:a,primaryKey:c,mapDB:i}=t;let l=null;const s={};s[n(132)]=i,s[n(146)]=r,s.primaryKey=c;const m=await b[n(136)](s);return m&&(l=m[a]),o&&o(l),l}async function ze(t,o){const n=x,{tableName:r,propertiesKey:a,parameter:c,primaryKey:i,mapDB:l}=t;let s={};const m={};m.mapDB=l,m[n(146)]=r,m[n(138)]=i;const d=await b[n(136)](m);try{if(d){s={...d[a],...c};const f={[l[n(138)]]:i},u=f;u[a]=s;const y={};y[n(132)]=l,y[n(146)]=r,y[n(134)]=u,await b.updateStore(y)}else console.warn(r+"为空,请先调用handleData")}catch(f){console[n(135)](f)}return o&&o(s),s}async function Te(t,o){const n=x,{tableName:r,primaryKey:a,mapDB:c}=t;let i=null;try{const l={};l.mapDB=c,l[n(146)]=r,l[n(138)]=a,await b[n(126)](l)}catch(l){console.error(l)}return o&&o(i),i}const E={};E[A(139)]=$e,E[A(130)]=qe,E[A(134)]=ze,E[A(131)]=Te;var C=G;(function(t,o){for(var n=G,r=t();;)try{var a=-parseInt(n(385))/1+parseInt(n(387))/2+-parseInt(n(389))/3+-parseInt(n(398))/4*(parseInt(n(394))/5)+-parseInt(n(402))/6+-parseInt(n(399))/7+-parseInt(n(386))/8*(-parseInt(n(400))/9);if(a===o)break;r.push(r.shift())}catch{r.push(r.shift())}})(O,363872);var se={};se[C(397)]=!1;var W={};W[C(384)]=se,W[C(392)]={};var ie={};function O(){var t=["default","mapDB-indexeddb-form-schema","663915ecCGKl","primaryKey","stores","unique","12QKZOdu","2103521TxMjSC","1212714qgZAmF","formParams","3534618LLAImJ","DBName","properties","createIndex","464644FTRsMp","128qSoFyx","33606razpoB","DBVersion","168804drPGaG","queryParams","DBStoreName"];return O=function(){return t},O()}ie[C(390)]=W;function G(t,o){var n=O();return G=function(r,a){r=r-382;var c=n[r];return c},G(t,o)}var Z={};Z[C(391)]=C(401),Z[C(383)]=ie;var L={};L[C(395)]="userId",L[C(382)]=C(393),L[C(388)]=1,L[C(396)]=[Z];const Ke={formSchema:L},Fe=E,{handleData:Ee,getData:le}=Fe,{formSchema:Y}=Ke,X=async(t,o)=>{var n;return o.parametersType==="url"&&(t={...J.queryToData((n=o.$route)==null?void 0:n.query),...t}),o.parametersType==="indexDB"&&(t={...await le({tableName:"formParams",propertiesKey:o.$route.path||"defQueryParams",primaryKey:o.DBPrimaryKey||"default",mapDB:Y}),...t}),t},H=async(t,o)=>{o.parametersType==="url"&&await o.$router.push({query:J.paramsToQuery({...t})}),o.parametersType==="indexDB"&&await Ee({tableName:"formParams",propertiesKey:o.$route.path||"defQueryParams",parameter:{...t},primaryKey:o.DBPrimaryKey||"default",mapDB:Y})},Le=async({queryParameter:t={},vm:o={}})=>{t.defaultPageFirst??(t.defaultPageFirst=!0);const n={[o.currentPageKey]:o.defCurrentPage};let r={...n,...o.queryParams};r=await X(r,o),t.defaultPageFirst&&(r={...r,...n}),await H(r,o),o.getList({...r})},je=async({vm:t={}})=>{t.$refs.queryFormRef.resetFields();const o=await X({},t),n={[t.currentPageKey]:t.defCurrentPage,[t.pageSizeKey]:(o==null?void 0:o[t.pageSizeKey])||t.defPageSize};await H(n,t),t.queryParams={...n},t.afterReset(),t.handleQuery()},Re=({vm:t={}})=>{var o;let n={[t.pageSizeKey]:t.defPageSize};return t.parametersType==="url"&&(n={...n,...J.queryToData((o=t.$route)==null?void 0:o.query)}),t.parametersType==="indexDB"&&le({tableName:"formParams",propertiesKey:t.$route.path||"defQueryParams",primaryKey:t.DBPrimaryKey||"default",mapDB:Y},r=>{r&&(t.queryParams={...n,...r}),t.queryWhenReady&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})})}),t.queryWhenReady&&t.parametersType!=="indexDB"&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})}),n},Qe=({item:t={},vm:o={}})=>{const{type:n,rules:r=[]}=t,a=[...r];return o.noInputBlank&&n==="input"&&a.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),a},Ae={makeParamsByType:X,saveParamsByType:H,handleQuery:Le,resetQuery:je,initQueryParams:Re,getItemRules:Qe},M=Ae,Oe=e.defineComponent({name:"GeneralBasicForm",components:{Input:K,InputNumber:de,InputGraphicVerification:ne,InputMobileVerification:re,Divider:Pe,Radio:we,Checkbox:De,DatePicker:Se,Select:Ie,Cascader:Ve},props:{showSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},formOnly:{type:Boolean,default:!1},getList:{type:Function,default:()=>{}},afterReset:{type:Function,default:()=>{}},formItem:{type:Array,default:()=>[]},size:{type:String,default:"default"},labelWidth:{type:String,default:"90px"},parametersType:{type:String,default:"url"},DBPrimaryKey:{type:[String,Number],required:!1},formData:{type:Object,default:()=>{}},noInputBlank:{type:Boolean,default:()=>!1},currentPageKey:{type:String,default:"page"},pageSizeKey:{type:String,default:"limit"},defCurrentPage:{type:Number,default:1},defPageSize:{type:Number,default:10},queryWhenReady:{type:Boolean,default:()=>!1}},data(){return{formLoading:this.loading||!1,queryParams:M.initQueryParams({vm:this})}},provide(){return{[te]:{formLoading:e.computed(()=>this.formLoading),updateFormLoading:t=>{this.formLoading=t}},queryParams:e.computed(()=>this.queryParams)}},setup(t){const{size:o,getList:n}=t;e.provide("size",o),e.provide("getList",n)},watch:{formData:{handler(t,o){JSON.stringify(t)!==JSON.stringify(this.queryParams)&&(this.queryParams={...this.queryParams,...t})},immediate:!0,deep:!0},queryParams:{handler(t){this.$emit("update:formData",{...t})},deep:!0},loading(t){this.formLoading!==t&&(this.formLoading=t)},formLoading(t){this.loading!==t&&this.$emit("update:loading",t)}},methods:{handleQuery(t={}){M.handleQuery({queryParameter:t,vm:this})},resetQuery(){M.resetQuery({vm:this})},getItemRules(t){return M.getItemRules({item:t,vm:this})}}});function Ge(t,o,n,r,a,c){const i=e.resolveComponent("Input"),l=e.resolveComponent("Radio"),s=e.resolveComponent("Select"),m=e.resolveComponent("Divider"),d=e.resolveComponent("Cascader"),f=e.resolveComponent("Checkbox"),u=e.resolveComponent("DatePicker"),y=e.resolveComponent("InputNumber"),h=e.resolveComponent("InputMobileVerification"),g=e.resolveComponent("InputGraphicVerification"),k=e.resolveComponent("el-form-item"),B=e.resolveComponent("el-button"),w=e.resolveComponent("el-form"),D=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(w,e.mergeProps({model:t.queryParams,ref:"queryFormRef",inline:"","label-position":"left","label-width":t.labelWidth},t.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formItem,p=>(e.openBlock(),e.createBlock(k,{label:p.label,prop:p.prop,key:p.prop,rules:t.getItemRules(p)},{default:e.withCtx(()=>[/^input$/i.test(p.type)?(e.openBlock(),e.createBlock(i,{key:0,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^radio$/i.test(p.type)?(e.openBlock(),e.createBlock(l,{key:1,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^select$/i.test(p.type)?(e.openBlock(),e.createBlock(s,{key:2,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^divider$/i.test(p.type)?(e.openBlock(),e.createBlock(m,{key:3,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^cascader$/i.test(p.type)?(e.openBlock(),e.createBlock(d,{key:4,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^checkbox$/i.test(p.type)?(e.openBlock(),e.createBlock(f,{key:5,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^date-picker$/i.test(p.type)?(e.openBlock(),e.createBlock(u,{key:6,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^input-number$/i.test(p.type)?(e.openBlock(),e.createBlock(y,{key:7,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^form-item-slot$/i.test(p.type)?e.renderSlot(t.$slots,p.name,{key:8}):e.createCommentVNode("",!0),/^input-mobile-verification$/i.test(p.type)?(e.openBlock(),e.createBlock(h,{key:9,item:p},null,8,["item"])):e.createCommentVNode("",!0),/^input-graphic-verification$/i.test(p.type)?(e.openBlock(),e.createBlock(g,{item:p,key:p.key},null,8,["item"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","rules"]))),128)),e.renderSlot(t.$slots,"default"),t.formOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(k,{key:0},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(B,{type:"primary",size:t.size,onClick:t.handleQuery},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("查询")])),_:1},8,["size","onClick"])),[[D,t.formLoading]]),e.createVNode(B,{size:t.size,onClick:t.resetQuery},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("重置")])),_:1},8,["size","onClick"])]),_:1})),e.renderSlot(t.$slots,"behind-the-button")]),_:3},16,["model","label-width"])),[[e.vShow,t.showSearch]])}const Me=q(Oe,[["render",Ge]]),Ue=["infinite-scroll-disabled"],Je=["infinite-scroll-disabled"],We={class:"checkbox"},Ze=e.defineComponent({__name:"InfiniteScrollList",props:{search:{type:Function,required:!0},checkbox:{type:Boolean,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},extra:{type:null,required:!1},defaultSelection:{type:Array,required:!1},height:{type:String,required:!1,default:"272px"}},setup(t,{expose:o}){const n=t,{search:r,id:a,name:c,extra:i,height:l}=n,s=e.ref([]),m=e.ref(1),d=e.ref(!1),f=e.ref([]),u=e.ref(!1),y=(p,_)=>{const{i:S}=p;return i&&i!=="false"?i(S):""},h=p=>{f.value=p.map(_=>typeof _=="object"?_[a]:_)};e.watch(()=>n.defaultSelection,(p=[],_=[])=>{h(p)},{immediate:!0});const g=()=>{k(),f.value=[]},k=()=>{m.value=1,s.value=[],d.value=!1},B=async()=>{if(u.value||d.value)return;u.value=!0;const p=await r(m.value);p&&p.length>0?(s.value=[...s.value,...p],m.value+=1):d.value=!0,u.value=!1},w=async()=>{k(),await B()},D=e.computed(()=>s.value.filter(p=>f.value.includes(p[a])))||{};return o({reset:g,lowReset:k,loadList:B,selectInfo:D,list:s,ifbottom:d,refreshList:w,loading:u}),(p,_)=>{const S=e.resolveComponent("el-checkbox"),N=e.resolveComponent("el-checkbox-group"),$=e.resolveDirective("infinite-scroll"),rt=e.resolveDirective("loading");return n.checkbox?e.withDirectives((e.openBlock(),e.createBlock(N,e.mergeProps({key:0,modelValue:f.value,"onUpdate:modelValue":_[0]||(_[0]=I=>f.value=I)},n),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("ul",{class:"list","infinite-scroll-disabled":d.value,style:e.normalizeStyle({height:e.unref(l)})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,I=>(e.openBlock(),e.createElementBlock("li",{key:I[e.unref(a)],class:"list-item"},[e.createVNode(S,{value:I[e.unref(a)],class:"checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I[e.unref(c)])+" ",1),n.extra?(e.openBlock(),e.createBlock(y,{key:0,i:I},null,8,["i"])):e.createCommentVNode("",!0)]),_:2},1032,["value"])]))),128))],12,Ue)),[[$,B]])]),_:1},16,["modelValue"])),[[rt,u.value]]):e.withDirectives((e.openBlock(),e.createElementBlock("ul",e.mergeProps({key:1,class:"list","infinite-scroll-disabled":d.value,style:{height:e.unref(l)}},n),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,I=>(e.openBlock(),e.createElementBlock("li",{key:I[e.unref(a)],class:"list-item"},[e.createElementVNode("div",We,[e.createTextVNode(e.toDisplayString(I[e.unref(c)])+" ",1),n.extra?(e.openBlock(),e.createBlock(y,{key:0,i:I},null,8,["i"])):e.createCommentVNode("",!0)])]))),128))],16,Je)),[[$,B]])}}}),it="",Ye=q(Ze,[["__scopeId","data-v-3ff9d47e"]]),Xe={key:1},He=e.defineComponent({__name:"Descriptions",props:{formData:{type:Object,required:!0},formItem:{type:Array,required:!0},componentType:{type:String,default:"Element Plus"},strict:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref([]);e.watch(()=>[o.formData,o.formItem],([i={},l=[]])=>{let s=l;if(o.strict)for(const m in i)Object.prototype.hasOwnProperty.call(i,m)&&(i[m]||(s=s.filter(f=>f.prop!==m||f.render)));n.value=s},{immediate:!0});const r=e.shallowRef("el-descriptions"),a=e.shallowRef("el-descriptions-item");switch(o.componentType){case"Element Plus":r.value="el-descriptions",a.value="el-descriptions-item";break;case"Ant Design Vue":r.value="a-descriptions",a.value="a-descriptions-item";break}const c=(i,l)=>{const{i:s,render:m,formData:d}=i;return m({row:d,$index:s})};return(i,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),e.mergeProps({column:1,border:"",class:"form-width"},i.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),e.mergeProps({key:s.prop,label:s.label,ref_for:!0},s.descriptionsItemProps),{default:e.withCtx(()=>[s.render?(e.openBlock(),e.createBlock(c,{key:0,i:m,render:s.render,formData:t.formData},null,8,["i","render","formData"])):(e.openBlock(),e.createElementBlock("span",Xe,e.toDisplayString(t.formData[s.prop]),1))]),_:2},1040,["label"]))),128))]),_:1},16))}}),ve=Me,et=Ye,tt=He,nt=ne,ot=re;P.VDescriptions=tt,P.VGeneralBasicForm=ve,P.VInfiniteScrollList=et,P.VInputGraphicVerification=nt,P.VInputMobilecVerification=ot,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
1
+ (function(re,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(re=typeof globalThis<"u"?globalThis:re||self,T(re.Index={},re.react))})(this,(function(re,T){"use strict";function Lr(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const M=Lr(T);var Se={exports:{}},pe={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Qe;function Br(){if(Qe)return pe;Qe=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:r,type:n,key:c,ref:o!==void 0?o:null,props:a}}return pe.Fragment=e,pe.jsx=t,pe.jsxs=t,pe}var ge={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Je;function Vr(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&(function(){function r(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===J?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case w:return"Fragment";case B:return"Profiler";case N:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList";case ae:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case v:return"Portal";case V:return f.displayName||"Context";case D:return(f._context.displayName||"Context")+".Consumer";case I:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case b:return k=f.displayName||null,k!==null?k:r(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return r(f(k))}catch{}}return null}function e(f){return""+f}function t(f){try{e(f);var k=!1}catch{k=!0}if(k){k=console;var S=k.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),e(f)}}function n(f){if(f===w)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=r(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=U.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(G.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function u(f,k){function S(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function l(){var f=r(this.type);return q[f]||(q[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function i(f,k,S,E,Z,fe){var R=S.ref;return f={$$typeof:x,type:f,key:k,props:S,_owner:E},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:l}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function m(f,k,S,E,Z,fe){var R=k.children;if(R!==void 0)if(E)if(X(R)){for(E=0;E<R.length;E++)d(R[E]);Object.freeze&&Object.freeze(R)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(R);if(G.call(k,"key")){R=r(f);var ee=Object.keys(k).filter(function(me){return me!=="key"});E=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",_e[R+E]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,E,R,ee,R),_e[R+E]=!0)}if(R=null,S!==void 0&&(t(S),R=""+S),c(k)&&(t(k.key),R=""+k.key),"key"in k){S={};for(var se in k)se!=="key"&&(S[se]=k[se])}else S=k;return R&&u(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),i(f,R,S,o(),Z,fe)}function d(f){s(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===C&&(f._payload.status==="fulfilled"?s(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function s(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var p=T,x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),V=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),U=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,X=Array.isArray,K=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(f){return f()}};var $,q={},h=p.react_stack_bottom_frame.bind(p,a)(),ke=K(n(a)),_e={};ge.Fragment=w,ge.jsx=function(f,k,S){var E=1e4>U.recentlyCreatedOwnerStacks++;return m(f,k,S,!1,E?Error("react-stack-top-frame"):h,E?K(n(f)):ke)},ge.jsxs=function(f,k,S){var E=1e4>U.recentlyCreatedOwnerStacks++;return m(f,k,S,!0,E?Error("react-stack-top-frame"):h,E?K(n(f)):ke)}})()),ge}var Xe;function Fr(){return Xe||(Xe=1,process.env.NODE_ENV==="production"?Se.exports=Br():Se.exports=Vr()),Se.exports}var P=Fr(),Re={exports:{}},je={};/**
23
+ * @license React
24
+ * react-compiler-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Ze;function Gr(){if(Ze)return je;Ze=1;var r=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return je.c=function(e){return r.H.useMemoCache(e)},je}var Me={};/**
31
+ * @license React
32
+ * react-compiler-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var er;function $r(){return er||(er=1,process.env.NODE_ENV!=="production"&&(function(){var r=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Me.c=function(e){var t=r.H;return t===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
39
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
40
+ 2. You might be breaking the Rules of Hooks
41
+ 3. You might have more than one copy of React in the same app
42
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t.useMemoCache(e)}})()),Me}var rr;function qr(){return rr||(rr=1,process.env.NODE_ENV==="production"?Re.exports=Gr():Re.exports=$r()),Re.exports}var Y=qr();const Ur=r=>{const{item:e,id:t=T.useId(),coms:{Input:n}}=r,{dispatchQueryParams:o,queryParams:a,message:c,formLoading:u}=T.useContext(jr);return P.jsx(n,{id:t,name:e.prop,value:a[e.prop]||"",disabled:u,onChange:l=>o({data:{[e.prop]:l.target.value}}),"aria-invalid":c?.[e.prop]&&c?.[e.prop].length>0,...e.setting})};/**
43
+ * @license lucide-react v0.547.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const Kr=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wr=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),tr=r=>{const e=Wr(r);return e.charAt(0).toUpperCase()+e.slice(1)},nr=(...r)=>r.filter((e,t,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===t).join(" ").trim(),Yr=r=>{for(const e in r)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
48
+ * @license lucide-react v0.547.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */var Hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
53
+ * @license lucide-react v0.547.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const Qr=T.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...u},l)=>T.createElement("svg",{ref:l,...Hr,width:e,height:e,stroke:r,strokeWidth:n?Number(t)*24/Number(e):t,className:nr("lucide",o),...!a&&!Yr(u)&&{"aria-hidden":"true"},...u},[...c.map(([i,m])=>T.createElement(i,m)),...Array.isArray(a)?a:[a]]));/**
58
+ * @license lucide-react v0.547.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const Jr=(r,e)=>{const t=T.forwardRef(({className:n,...o},a)=>T.createElement(Qr,{ref:a,iconNode:e,className:nr(`lucide-${Kr(tr(r))}`,`lucide-${r}`,n),...o}));return t.displayName=tr(r),t};/**
63
+ * @license lucide-react v0.547.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const Xr=Jr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function or(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(e=0;e<o;e++)r[e]&&(t=or(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function ar(){for(var r,e,t=0,n="",o=arguments.length;t<o;t++)(r=arguments[t])&&(e=or(r))&&(n&&(n+=" "),n+=e);return n}const ze="-",Zr=r=>{const e=rt(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:c=>{const u=c.split(ze);return u[0]===""&&u.length!==1&&u.shift(),sr(u,e)||et(c)},getConflictingClassGroupIds:(c,u)=>{const l=t[c]||[];return u&&n[c]?[...l,...n[c]]:l}}},sr=(r,e)=>{if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),o=n?sr(r.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=r.join(ze);return e.validators.find(({validator:c})=>c(a))?.classGroupId},ir=/^\[(.+)\]$/,et=r=>{if(ir.test(r)){const e=ir.exec(r)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},rt=r=>{const{theme:e,classGroups:t}=r,n={nextPart:new Map,validators:[]};for(const o in t)Le(t[o],n,o,e);return n},Le=(r,e,t,n)=>{r.forEach(o=>{if(typeof o=="string"){const a=o===""?e:lr(e,o);a.classGroupId=t;return}if(typeof o=="function"){if(tt(o)){Le(o(n),e,t,n);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([a,c])=>{Le(c,lr(e,a),t,n)})})},lr=(r,e)=>{let t=r;return e.split(ze).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},tt=r=>r.isThemeGetter,nt=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const o=(a,c)=>{t.set(a,c),e++,e>r&&(e=0,n=t,t=new Map)};return{get(a){let c=t.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){t.has(a)?t.set(a,c):o(a,c)}}},Be="!",Ve=":",ot=Ve.length,at=r=>{const{prefix:e,experimentalParseClassName:t}=r;let n=o=>{const a=[];let c=0,u=0,l=0,i;for(let x=0;x<o.length;x++){let v=o[x];if(c===0&&u===0){if(v===Ve){a.push(o.slice(l,x)),l=x+ot;continue}if(v==="/"){i=x;continue}}v==="["?c++:v==="]"?c--:v==="("?u++:v===")"&&u--}const m=a.length===0?o:o.substring(l),d=st(m),s=d!==m,p=i&&i>l?i-l:void 0;return{modifiers:a,hasImportantModifier:s,baseClassName:d,maybePostfixModifierPosition:p}};if(e){const o=e+Ve,a=n;n=c=>c.startsWith(o)?a(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(t){const o=n;n=a=>t({className:a,parseClassName:o})}return n},st=r=>r.endsWith(Be)?r.substring(0,r.length-1):r.startsWith(Be)?r.substring(1):r,it=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(c=>{c[0]==="["||e[c]?(o.push(...a.sort(),c),a=[]):a.push(c)}),o.push(...a.sort()),o}},lt=r=>({cache:nt(r.cacheSize),parseClassName:at(r),sortModifiers:it(r),...Zr(r)}),ct=/\s+/,dt=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=e,c=[],u=r.trim().split(ct);let l="";for(let i=u.length-1;i>=0;i-=1){const m=u[i],{isExternal:d,modifiers:s,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:v}=t(m);if(d){l=m+(l.length>0?" "+l:l);continue}let w=!!v,N=n(w?x.substring(0,v):x);if(!N){if(!w){l=m+(l.length>0?" "+l:l);continue}if(N=n(x),!N){l=m+(l.length>0?" "+l:l);continue}w=!1}const B=a(s).join(":"),D=p?B+Be:B,V=D+N;if(c.includes(V))continue;c.push(V);const I=o(N,w);for(let O=0;O<I.length;++O){const j=I[O];c.push(D+j)}l=m+(l.length>0?" "+l:l)}return l};function ut(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=cr(e))&&(n&&(n+=" "),n+=t);return n}const cr=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=cr(r[n]))&&(t&&(t+=" "),t+=e);return t};function ft(r,...e){let t,n,o,a=c;function c(l){const i=e.reduce((m,d)=>d(m),r());return t=lt(i),n=t.cache.get,o=t.cache.set,a=u,u(l)}function u(l){const i=n(l);if(i)return i;const m=dt(l,t);return o(l,m),m}return function(){return a(ut.apply(null,arguments))}}const A=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},dr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ur=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mt=/^\d+\/\d+$/,pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=r=>mt.test(r),_=r=>!!r&&!Number.isNaN(Number(r)),te=r=>!!r&&Number.isInteger(Number(r)),Fe=r=>r.endsWith("%")&&_(r.slice(0,-1)),H=r=>pt.test(r),vt=()=>!0,wt=r=>gt.test(r)&&!yt.test(r),fr=()=>!1,xt=r=>bt.test(r),kt=r=>ht.test(r),_t=r=>!g(r)&&!y(r),St=r=>de(r,br,fr),g=r=>dr.test(r),ie=r=>de(r,hr,wt),Ge=r=>de(r,Pt,_),mr=r=>de(r,gr,fr),Rt=r=>de(r,yr,kt),Ee=r=>de(r,vr,xt),y=r=>ur.test(r),ye=r=>ue(r,hr),Et=r=>ue(r,Nt),pr=r=>ue(r,gr),Ot=r=>ue(r,br),Tt=r=>ue(r,yr),Oe=r=>ue(r,vr,!0),de=(r,e,t)=>{const n=dr.exec(r);return n?n[1]?e(n[1]):t(n[2]):!1},ue=(r,e,t=!1)=>{const n=ur.exec(r);return n?n[1]?e(n[1]):t:!1},gr=r=>r==="position"||r==="percentage",yr=r=>r==="image"||r==="url",br=r=>r==="length"||r==="size"||r==="bg-size",hr=r=>r==="length",Pt=r=>r==="number",Nt=r=>r==="family-name",vr=r=>r==="shadow",Ct=ft(()=>{const r=A("color"),e=A("font"),t=A("text"),n=A("font-weight"),o=A("tracking"),a=A("leading"),c=A("breakpoint"),u=A("container"),l=A("spacing"),i=A("radius"),m=A("shadow"),d=A("inset-shadow"),s=A("text-shadow"),p=A("drop-shadow"),x=A("blur"),v=A("perspective"),w=A("aspect"),N=A("ease"),B=A("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...V(),y,g],O=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],b=()=>[y,g,l],C=()=>[ce,"full","auto",...b()],ae=()=>[te,"none","subgrid",y,g],J=()=>["auto",{span:["full",te,y,g]},te,y,g],U=()=>[te,"auto",y,g],G=()=>["auto","min","max","fr",y,g],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...b()],q=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],h=()=>[r,y,g],ke=()=>[...V(),pr,mr,{position:[y,g]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",Ot,St,{size:[y,g]}],k=()=>[Fe,ye,ie],S=()=>["","none","full",i,y,g],E=()=>["",_,ye,ie],Z=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[_,Fe,pr,mr],ee=()=>["","none",x,y,g],se=()=>["none",_,y,g],me=()=>["none",_,y,g],He=()=>[_,y,g],Ie=()=>[ce,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[vt],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[_t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",_],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,g,y,w]}],container:["container"],columns:[{columns:[_,g,y,u]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",y,g]}],basis:[{basis:[ce,"full","auto",u,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,ce,"auto","initial","none",g]}],grow:[{grow:["",_,y,g]}],shrink:[{shrink:["",_,y,g]}],order:[{order:[te,"first","last","none",y,g]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",t,ye,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,y,Ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fe,g]}],"font-family":[{font:[Et,g,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,y,g]}],"line-clamp":[{"line-clamp":[_,"none",y,Ge]}],leading:[{leading:[a,...b()]}],"list-image":[{"list-image":["none",y,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",y,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",y,ie]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[_,"auto",y,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y,g]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,y,g],radial:["",y,g],conic:[te,y,g]},Tt,Rt]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,y,g]}],"outline-w":[{outline:["",_,ye,ie]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",m,Oe,Ee]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",d,Oe,Ee]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[_,ie]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",s,Oe,Ee]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[_,y,g]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[y,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",y,g]}],filter:[{filter:["","none",y,g]}],blur:[{blur:ee()}],brightness:[{brightness:[_,y,g]}],contrast:[{contrast:[_,y,g]}],"drop-shadow":[{"drop-shadow":["","none",p,Oe,Ee]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",_,y,g]}],"hue-rotate":[{"hue-rotate":[_,y,g]}],invert:[{invert:["",_,y,g]}],saturate:[{saturate:[_,y,g]}],sepia:[{sepia:["",_,y,g]}],"backdrop-filter":[{"backdrop-filter":["","none",y,g]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[_,y,g]}],"backdrop-contrast":[{"backdrop-contrast":[_,y,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,y,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,y,g]}],"backdrop-invert":[{"backdrop-invert":["",_,y,g]}],"backdrop-opacity":[{"backdrop-opacity":[_,y,g]}],"backdrop-saturate":[{"backdrop-saturate":[_,y,g]}],"backdrop-sepia":[{"backdrop-sepia":["",_,y,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",y,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",y,g]}],ease:[{ease:["linear","initial",N,y,g]}],delay:[{delay:[_,y,g]}],animate:[{animate:["none",B,y,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,y,g]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[y,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y,g]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y,g]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[_,ye,ie,Ge]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ne(...r){return Ct(ar(r))}function Dt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("size-4 animate-spin",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Xr,{role:"status","aria-label":"Loading",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const wr=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,xr=ar,kr=(r,e)=>t=>{var n;if(e?.variants==null)return xr(r,t?.class,t?.className);const{variants:o,defaultVariants:a}=e,c=Object.keys(o).map(i=>{const m=t?.[i],d=a?.[i];if(m===null)return null;const s=wr(m)||wr(d);return o[i][s]}),u=t&&Object.entries(t).reduce((i,m)=>{let[d,s]=m;return s===void 0||(i[d]=s),i},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((i,m)=>{let{class:d,className:s,...p}=m;return Object.entries(p).every(x=>{let[v,w]=x;return Array.isArray(w)?w.includes({...a,...u}[v]):{...a,...u}[v]===w})?[...i,d,s]:i},[]);return xr(r,c,l,t?.class,t?.className)};var Te={exports:{}},z={};/**
68
+ * @license React
69
+ * react-dom.production.js
70
+ *
71
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
72
+ *
73
+ * This source code is licensed under the MIT license found in the
74
+ * LICENSE file in the root directory of this source tree.
75
+ */var _r;function At(){if(_r)return z;_r=1;var r=T;function e(l){var i="https://react.dev/errors/"+l;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)i+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,i,m){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:l,containerInfo:i,implementation:m}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(l,i){if(l==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,z.createPortal=function(l,i){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(e(299));return a(l,i,null,m)},z.flushSync=function(l){var i=c.T,m=n.p;try{if(c.T=null,n.p=2,l)return l()}finally{c.T=i,n.p=m,n.d.f()}},z.preconnect=function(l,i){typeof l=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(l,i))},z.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},z.preinit=function(l,i){if(typeof l=="string"&&i&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin),s=typeof i.integrity=="string"?i.integrity:void 0,p=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;m==="style"?n.d.S(l,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:d,integrity:s,fetchPriority:p}):m==="script"&&n.d.X(l,{crossOrigin:d,integrity:s,fetchPriority:p,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},z.preinitModule=function(l,i){if(typeof l=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var m=u(i.as,i.crossOrigin);n.d.M(l,{crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(l)},z.preload=function(l,i){if(typeof l=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin);n.d.L(l,m,{crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},z.preloadModule=function(l,i){if(typeof l=="string")if(i){var m=u(i.as,i.crossOrigin);n.d.m(l,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(l)},z.requestFormReset=function(l){n.d.r(l)},z.unstable_batchedUpdates=function(l,i){return l(i)},z.useFormState=function(l,i,m){return c.H.useFormState(l,i,m)},z.useFormStatus=function(){return c.H.useHostTransitionStatus()},z.version="19.2.0",z}var L={};/**
76
+ * @license React
77
+ * react-dom.development.js
78
+ *
79
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
80
+ *
81
+ * This source code is licensed under the MIT license found in the
82
+ * LICENSE file in the root directory of this source tree.
83
+ */var Sr;function It(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&(function(){function r(){}function e(d){return""+d}function t(d,s,p){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(x);var v=!1}catch{v=!0}return v&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object"),e(x)),{$$typeof:i,key:x==null?null:""+x,children:d,containerInfo:s,implementation:p}}function n(d,s){if(d==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function a(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function c(){var d=m.H;return d===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
84
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
85
+ 2. You might be breaking the Rules of Hooks
86
+ 3. You might have more than one copy of React in the same app
87
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=T,l={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),m=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),L.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,L.createPortal=function(d,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return t(d,s,null,p)},L.flushSync=function(d){var s=m.T,p=l.p;try{if(m.T=null,l.p=2,d)return d()}finally{m.T=s,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},L.preconnect=function(d,s){typeof d=="string"&&d?s!=null&&typeof s!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(s)):s!=null&&typeof s.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,l.d.C(d,s))},L.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(s)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(s))}typeof d=="string"&&l.d.D(d)},L.preinit=function(d,s){if(typeof d=="string"&&d?s==null||typeof s!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(s)):s.as!=="style"&&s.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&s&&typeof s.as=="string"){var p=s.as,x=n(p,s.crossOrigin),v=typeof s.integrity=="string"?s.integrity:void 0,w=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;p==="style"?l.d.S(d,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:x,integrity:v,fetchPriority:w}):p==="script"&&l.d.X(d,{crossOrigin:x,integrity:v,fetchPriority:w,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},L.preinitModule=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&s.as!=="script"&&(p+=" The `as` option encountered was "+a(s.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=s&&typeof s.as=="string"?s.as:"script",p){case"script":break;default:p=a(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,d)}typeof d=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(p=n(s.as,s.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&l.d.M(d))},L.preload=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s==null||typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":typeof s.as=="string"&&s.as||(p+=" The `as` option encountered was "+o(s.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof d=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){p=s.as;var x=n(p,s.crossOrigin);l.d.L(d,p,{crossOrigin:x,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},L.preloadModule=function(d,s){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&typeof s.as!="string"&&(p+=" The `as` option encountered was "+o(s.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof d=="string"&&(s?(p=n(s.as,s.crossOrigin),l.d.m(d,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0})):l.d.m(d))},L.requestFormReset=function(d){l.d.r(d)},L.unstable_batchedUpdates=function(d,s){return d(s)},L.useFormState=function(d,s,p){return c().useFormState(d,s,p)},L.useFormStatus=function(){return c().useHostTransitionStatus()},L.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),L}var Rr;function jt(){if(Rr)return Te.exports;Rr=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(r(),Te.exports=At()):Te.exports=It(),Te.exports}jt();function Er(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function Mt(...r){return e=>{let t=!1;const n=r.map(o=>{const a=Er(o,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Er(r[o],null)}}}}function Or(r){const e=Lt(r),t=M.forwardRef((n,o)=>{const{children:a,...c}=n,u=M.Children.toArray(a),l=u.find(Vt);if(l){const i=l.props.children,m=u.map(d=>d===l?M.Children.count(i)>1?M.Children.only(null):M.isValidElement(i)?i.props.children:null:d);return P.jsx(e,{...c,ref:o,children:M.isValidElement(i)?M.cloneElement(i,void 0,m):null})}return P.jsx(e,{...c,ref:o,children:a})});return t.displayName=`${r}.Slot`,t}var zt=Or("Slot");function Lt(r){const e=M.forwardRef((t,n)=>{const{children:o,...a}=t;if(M.isValidElement(o)){const c=Gt(o),u=Ft(a,o.props);return o.type!==M.Fragment&&(u.ref=n?Mt(n,c):c),M.cloneElement(o,u)}return M.Children.count(o)>1?M.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Bt=Symbol("radix.slottable");function Vt(r){return M.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Bt}function Ft(r,e){const t={...e};for(const n in e){const o=r[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?t[n]=(...u)=>{const l=a(...u);return o(...u),l}:o&&(t[n]=o):n==="style"?t[n]={...o,...a}:n==="className"&&(t[n]=[o,a].filter(Boolean).join(" "))}return{...r,...t}}function Gt(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var $t=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=$t.reduce((r,e)=>{const t=Or(`Primitive.${e}`),n=M.forwardRef((o,a)=>{const{asChild:c,...u}=o,l=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(l,{...u,ref:a})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Ut="Label",Tr=M.forwardRef((r,e)=>P.jsx(qt.label,{...r,ref:e,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(r.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Tr.displayName=Ut;var Kt=Tr;function Wt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Kt,{"data-slot":"label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function Yt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx("div",{"data-slot":"field-group",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const Ht=kr("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Pr(r){const e=Y.c(11);let t,n,o;e[0]!==r?({className:t,orientation:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);const a=o===void 0?"vertical":o;let c;e[4]!==t||e[5]!==a?(c=ne(Ht({orientation:a}),t),e[4]=t,e[5]=a,e[6]=c):c=e[6];let u;return e[7]!==a||e[8]!==n||e[9]!==c?(u=P.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=u):u=e[10],u}function Qt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Wt,{"data-slot":"field-label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function Jt(r){const e=Y.c(15);let t,n,o,a;e[0]!==r?({className:n,children:t,errors:o,...a}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a):(t=e[1],n=e[2],o=e[3],a=e[4]);let c;e:{if(t){c=t;break e}if(!o?.length){c=null;break e}let m;e[5]!==o?(m=[...new Map(o.map(Zt)).values()],e[5]=o,e[6]=m):m=e[6];const d=m;if(d?.length==1){c=d[0]?.message;break e}let s;e[7]!==d?(s=P.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:d.map(Xt)}),e[7]=d,e[8]=s):s=e[8],c=s}const u=c;if(!u)return null;let l;e[9]!==n?(l=ne("text-destructive text-sm font-normal",n),e[9]=n,e[10]=l):l=e[10];let i;return e[11]!==u||e[12]!==a||e[13]!==l?(i=P.jsx("div",{role:"alert","data-slot":"field-error",className:l,...a,children:u}),e[11]=u,e[12]=a,e[13]=l,e[14]=i):i=e[14],i}function Xt(r,e){return r?.message&&P.jsx("li",{children:r.message},e)}function Zt(r){return[r?.message,r]}const en=(r={})=>{if(Array.isArray(r)&&r.length>0)return JSON.stringify(r);for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];Object.prototype.toString.call(t)==="[object Object]"&&(r[e]=JSON.stringify(t))}return r},rn=(r={})=>{for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];try{/[{]+/g.test(t)&&/[}]+/g.test(t)&&(r[e]=JSON.parse(t))}catch{}}return r},tn=(r={decode:!1})=>{const{decode:e}=r,t=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=l=>decodeURIComponent(l.replace(t," ")),a=window.location.search.substring(1),c={},u=()=>{const l=n.exec(a);return l&&(e?c[o(l[1])]=o(l[2]):c[l[1]]=l[2],u()),c};return u(),c},be={paramsToQuery:en,queryToData:rn,getURLParameter:tn},Q=he;function he(r,e){const t=Pe();return he=function(n,o){return n=n-157,t[n]},he(r,e)}(function(r,e){const t=he,n=r();for(;;)try{if(-parseInt(t(216))/1+parseInt(t(215))/2+-parseInt(t(183))/3+-parseInt(t(175))/4*(-parseInt(t(193))/5)+-parseInt(t(162))/6+-parseInt(t(165))/7+-parseInt(t(198))/8*(-parseInt(t(205))/9)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Pe,144666);const F={};function Pe(){const r=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return Pe=function(){return r},Pe()}let le=null;const Nr=async(r,e)=>{const t=he;!window[t(161)]&&window[t(212)](t(170));const{DBName:n="",DBVersion:o=1}=r;let a,c=!1;try{const u=window[t(161)].open(n,o);await new Promise((l,i)=>{const m=t;u[m(187)]=async function(d){const s=m,p=d.target[s(203)],{stores:x=[]}=r;await Promise.all(x[s(188)](async v=>{const w=s,{DBStoreName:N="",properties:B={}}=v;try{const D={};D[w(213)]=r[w(192)];const V=d[w(186)][w(203)][w(176)](N,D);if(Object[w(174)](B)[w(197)]===0){console[w(158)](N+w(172));return}for(const I in B)if(B[w(209)][w(194)](B,I)){const O=B[I],j={...O[w(185)]};V[w(185)](I,I,j)}}catch(D){console[w(158)](D)}})),a=p,c=!0},u.onsuccess=async function(d){const s=m;if(a=this[s(203)],c){const{stores:p=[]}=r;await Promise.all(p.map(async x=>{const v=s,{DBStoreName:w=""}=x,N=a[v(189)]([w],v(211)),B=N[v(166)](w),D={};D[r[v(192)]]=e,B.add(D);try{await new Promise((V,I)=>{const O=v;N[O(164)]=function(j){const b=O;console[b(196)](b(173),j),I()},N.oncomplete=function(j){V()},N.onerror=function(j){console.error(O(218),j),I()}})}catch(V){console[v(158)](v(178),V)}}))}l()},u[m(214)]=function(d){i(d)}})}catch(u){console.error(u,t(202))}return a};let Ne=!1;F[Q(157)]=async(r,e)=>{const t=Q,{mapDB:n,primaryKey:o}=r;return n?o?(Ne&&await new Promise(async(a,c)=>{const u=()=>{Ne?setTimeout(()=>{u()},200):a()};u()}),!le&&(Ne=!0,le=await Nr(n,o),le?.[t(207)]("close",async()=>{const a=t;console[a(217)](a(195)),le=await Nr(n,o)}),Ne=!1),e&&e(le),le):(console[t(158)](t(169)),!1):(console[t(158)]("必须传入数据库配置信息"),!1)},F[Q(180)]=async(r,e)=>{const t=Q,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c.primaryKey=a;const u=await F[t(157)](c);if(!u)return;const l=u[t(189)]([o]),i=l[t(166)](o),m=i[t(159)](a);return new Promise((d,s)=>{const p=t;m[p(160)]=function(x){const v=p;e&&e(o+v(177)+m[v(203)]),d(m[v(203)])},m[p(214)]=function(x){console[p(196)](o+"事务失败"+x),s()}})},F.updateStore=async(r,e)=>{var t;const n=Q,{mapDB:o,tableName:a,updateData:c}=r;!c[o?.[n(192)]]&&console.warn("请传入主键"+o[n(192)]);const u={};u[n(182)]=o,u[n(192)]=c[o?.[n(192)]];const l=await F[n(157)](u);if(!l)return;let i=null;try{i=l[n(189)]([a],n(211)).objectStore(a)}catch(p){console[n(196)](n(208),p)}let m=null,d=null;const s=await new Promise((p,x)=>{const v=n,w=i[v(184)](c[o?.primaryKey]);w[v(160)]=N=>{p(N)},w.onerror=N=>{x(N)}});d=(t=s?.[n(219)])==null?void 0:t.result;try{d&&d?.[n(192)]===c[o?.primaryKey]?m=d[n(204)](c):m=i[n(206)](c)}catch(p){console[n(196)](n(181),p,c)}new Promise((p,x)=>{const v=n;!m&&(console[v(196)](a+v(191)),x()),m[v(160)]=function(w){e&&e(a+v(163)),p()},m.onerror=function(w){console.error(a+v(171),w),x()}}),d&&d[n(190)]()},F[Q(179)]=async(r,e)=>{const t=Q,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c[t(192)]=a;const u=await F.getDB(c);if(!u)return;const l=u[t(189)]([o],t(211))[t(166)](o)[t(167)](a);return new Promise((i,m)=>{const d=t;l[d(160)]=function(s){e&&e(o+d(200)),i()},l[d(214)]=function(s){console[d(196)](o+"数据删除失败"+s),m()}})},F[Q(210)]=async(r,e)=>{const t=Q,{mapDB:n}=r,o=window[t(161)].deleteDatabase(n[t(199)]);return new Promise((a,c)=>{const u=t;o[u(160)]=l=>{const i=u;e&&e(n[i(199)]+i(168)),a()},o.onerror=l=>{const i=u;console[i(196)](n[i(199)]+i(201)+l),c()}})};function oe(r,e){const t=Ce();return oe=function(n,o){return n=n-479,t[n]},oe(r,e)}function Ce(){const r=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return Ce=function(){return r},Ce()}const $e=oe;(function(r,e){const t=oe,n=r();for(;;)try{if(-parseInt(t(485))/1*(-parseInt(t(486))/2)+-parseInt(t(490))/3+parseInt(t(499))/4+parseInt(t(491))/5*(-parseInt(t(497))/6)+-parseInt(t(488))/7+parseInt(t(492))/8*(parseInt(t(494))/9)+parseInt(t(496))/10*(parseInt(t(481))/11)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Ce,801934);async function nn(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l=null,i={[u.primaryKey]:c};const m={};m.mapDB=u,m[t(501)]=n,m[t(495)]=c;const d=await F.getDataByKey(m);d&&(i={...d,[u[t(495)]]:c}),i[o]=a;const s={};return s[t(500)]=u,s[t(501)]=n,s.updateData=i,await F.updateStore(s),a&&(l=a),e&&e(l),l}async function on(r,e){const t=oe,{tableName:n,propertiesKey:o,primaryKey:a,mapDB:c}=r;let u=null;const l={};l[t(500)]=c,l.tableName=n,l[t(495)]=a;const i=await F[t(480)](l);return i&&(u=i[o]),e&&e(u),u}async function an(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l={};const i={};i[t(500)]=u,i[t(501)]=n,i[t(495)]=c;const m=await F.getDataByKey(i);try{if(m){l={...m[o],...a};const d={[u[t(495)]]:c},s=d;s[o]=l;const p={};p.mapDB=u,p[t(501)]=n,p[t(487)]=s,await F[t(479)](p)}else console[t(482)](n+t(483))}catch(d){console.error(d)}return e&&e(l),l}async function sn(r,e){const t=oe,{tableName:n,primaryKey:o,mapDB:a}=r;let c=null;try{const u={};u[t(500)]=a,u[t(501)]=n,u[t(495)]=o,await F[t(493)](u)}catch(u){console[t(489)](u)}return e&&e(c),c}const ve={};ve[$e(498)]=nn,ve[$e(484)]=on,ve[$e(487)]=an,ve.clearData=sn;var W=Ae;(function(r,e){for(var t=Ae,n=r();;)try{var o=parseInt(t(471))/1*(-parseInt(t(463))/2)+parseInt(t(478))/3+parseInt(t(459))/4*(-parseInt(t(477))/5)+parseInt(t(473))/6*(-parseInt(t(466))/7)+parseInt(t(458))/8*(parseInt(t(474))/9)+-parseInt(t(460))/10+-parseInt(t(461))/11*(-parseInt(t(472))/12);if(o===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(De,810026);var Cr={};Cr[W(465)]=!1;var qe={};qe.createIndex=Cr,qe.default={};var Dr={};function De(){var r=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return De=function(){return r},De()}Dr[W(468)]=qe;var Ue={};Ue[W(476)]=W(462),Ue[W(470)]=Dr;var we={};function Ae(r,e){var t=De();return Ae=function(n,o){n=n-458;var a=t[n];return a},Ae(r,e)}we[W(469)]=W(467),we[W(475)]=W(464),we[W(479)]=1,we[W(480)]=[Ue];const ln={formSchema:we},cn=ve,{handleData:dn,getData:Ar}=cn,{formSchema:Ke}=ln,We=async(r,e)=>(e.parametersType==="url"&&(r={...be.queryToData(be.getURLParameter({decode:!0})),...r}),e.parametersType==="indexDB"&&(r={...await Ar({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:Ke}),...r}),r),Ye=async(r,e)=>{if(e.parametersType==="url"){const t=be.paramsToQuery({...r});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(t)}`}e.parametersType==="indexDB"&&await dn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...r},primaryKey:e.DBPrimaryKey||"default",mapDB:Ke})},Ir=async({queryParameter:r={},vm:e={},queryParams:t={}})=>{r.defaultPageFirst??(r.defaultPageFirst=!0);const n={[e.currentPageKey]:e.defCurrentPage};let o={...n,...t,...e.queryParams};o=await We(o,e),r.defaultPageFirst&&(o={...o,...n}),await Ye(o,e),e.getList({...o})},un=async({vm:r={},dispatchQueryParams:e})=>{var t,n;(n=(t=r?.$refs)==null?void 0:t.queryFormRef)==null||n.resetFields();const o=await We({},r),a={[r.currentPageKey]:r.defCurrentPage,[r.pageSizeKey]:o?.[r.pageSizeKey]||r.defPageSize};if(await Ye(a,r),e&&e({data:{...a}}),r.queryParams&&(r.queryParams={...a}),r.afterReset(),r.handleQuery)r.handleQuery();else{if(r.parametersType==="url")return;Ir({vm:r})}},fn=({vm:r={},dispatchQueryParams:e})=>{let t={[r.pageSizeKey]:r.defPageSize};return r.parametersType==="url"&&(t={...t,...be.queryToData(be.getURLParameter({decode:!0}))}),r.parametersType==="indexDB"&&Ar({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:r.DBPrimaryKey||"default",mapDB:Ke},n=>{n&&(t={...t,...n},e&&e({data:{...t}}),r.queryParams&&(r.queryParams={...t})),r.queryWhenReady&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})})}),r.queryWhenReady&&r.parametersType!=="indexDB"&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})}),t},mn=({item:r={},vm:e={}})=>{const{type:t,rules:n=[]}=r,o=[...n];return e.noInputBlank&&t==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},pn={makeParamsByType:We,saveParamsByType:Ye,handleQuery:Ir,resetQuery:un,initQueryParams:fn,getItemRules:mn},xe=pn,gn={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},jr=T.createContext(gn);T.createContext(null);const yn=(r,e)=>{const{data:t}=e;return console.log(t,e),{...t}},Mr={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},zr=r=>{const t={...Mr,...r,handleQuery:O=>{xe.handleQuery({queryParameter:O,vm:{...Mr,...r}})}},{formItem:n=[],children:o,coms:a,formData:c={},loading:u=!1,queryWhenReady:l=!1}=t,{Button:i}=a,[m,d]=T.useState(!1),[s,p]=T.useState(!1),x=O=>{const j={...O};let b={};return n.forEach(C=>{C.prop&&(b[C.prop]=j[C.prop]||"")}),p(!0),b},[v,w]=T.useReducer(yn,c,x);T.useMemo(()=>{const O=xe.initQueryParams({vm:t,dispatchQueryParams:w});console.log(O),w({data:O})},[s]);const N=async(O,j)=>{let b={};for(const[C,ae]of j.entries()){const J=n.find(U=>U.prop===C);if(J.rules){const U=xe.getItemRules({item:J,vm:t});for(const G of U)try{if(G.required&&!ae)throw new Error(G.message||`${J.label}不能为空`);if(G.pattern&&!G.pattern.test(ae))throw new Error(G.message||`${J.label}格式不正确`);G.validator&&await new Promise((X,K)=>{const $=q=>{if(q){K(q);return}X()};G.validator(G,ae,$)})}catch(X){b[C]||(b[C]=[]),b[C].push({message:X.message||"校验失败"})}}}return Object.keys(b).length==0&&xe.handleQuery({queryParameter:{defaultPageFirst:!l},vm:{...t},queryParams:v}),{...b}},B=()=>{xe.resetQuery({vm:{...t,handleQuery:null},dispatchQueryParams:w})},[D,V,I]=T.useActionState(N,null);return T.useEffect(()=>{d(I)},[I]),T.useEffect(()=>{d(u)},[u]),T.useEffect(()=>{w({data:{...v,...c}})},[c]),P.jsx(jr,{value:{...t,dispatchQueryParams:w,queryParams:v,message:D,formLoading:m},children:P.jsx("form",{action:V,children:P.jsxs(Yt,{children:[n.map((O,j)=>{const b=T.useId();return P.jsxs(Pr,{"data-invalid":D?.[O.prop]&&D?.[O.prop].length>0,children:[P.jsx(Qt,{htmlFor:b,children:O.label}),/^input$/i.test(O.type)&&P.jsx(Ur,{id:b,coms:a,item:O}),P.jsx(Jt,{errors:D?.[O.prop]||[]})]},O.prop)}),o,P.jsxs(Pr,{orientation:"horizontal",children:[P.jsxs(i,{disabled:m,type:"submit",children:[m?P.jsx(Dt,{}):[],"提交"]}),P.jsx(i,{disabled:m,variant:"outline",type:"button",onClick:B,children:"重置"})]})]})})})};function bn(r){const e=Y.c(10);let t,n,o;e[0]!==r?({className:t,type:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);let a;e[4]!==t?(a=ne("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),e[4]=t,e[5]=a):a=e[5];let c;return e[6]!==n||e[7]!==a||e[8]!==o?(c=P.jsx("input",{type:o,"data-slot":"input",className:a,...n}),e[6]=n,e[7]=a,e[8]=o,e[9]=c):c=e[9],c}const hn=kr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function vn(r){const e=Y.c(14);let t,n,o,a,c;e[0]!==r?({className:t,variant:c,size:o,asChild:a,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a,e[5]=c):(t=e[1],n=e[2],o=e[3],a=e[4],c=e[5]);const l=(a===void 0?!1:a)?zt:"button";let i;e[6]!==t||e[7]!==o||e[8]!==c?(i=ne(hn({variant:c,size:o,className:t})),e[6]=t,e[7]=o,e[8]=c,e[9]=i):i=e[9];let m;return e[10]!==l||e[11]!==n||e[12]!==i?(m=P.jsx(l,{"data-slot":"button",className:i,...n}),e[10]=l,e[11]=n,e[12]=i,e[13]=m):m=e[13],m}const wn=r=>{const e=Y.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={Input:bn,Button:vn},e[0]=t):t=e[0];let n;return e[1]!==r?(n=P.jsx(zr,{...r,coms:t}),e[1]=r,e[2]=n):n=e[2],n},xn=zr;re.RBasicForm=xn,re.RGeneralBasicForm=wn,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "general-basic-form",
3
- "version": "2.0.64",
3
+ "version": "2.1.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "build": "cross-env CURRENT_ENV=prod run-p type-check build-only",
8
+ "build": "cross-env CURRENT_ENV=prod run-p type-check && run-p build-only",
9
9
  "test:e2e": "playwright test",
10
10
  "build-only": "vite build",
11
11
  "type-check": "tsc --noEmit -p tsconfig.json --composite false",
12
- "link": "tsx script/link.ts && yarn link",
13
- "unlink": "tsx script/unlink.ts && yarn unlink && run-p build",
12
+ "link": "tsx script/link.ts && yarn link && pnpm link",
13
+ "unlink": "tsx script/unlinkModule.ts && yarn unlink && pnpm unlink && run-p build",
14
+ "linkNode": "tsx script/linkNode.ts && yarn link && pnpm link && run-p dev",
15
+ "unlinkNode": "tsx script/unlinkNode.ts && yarn unlink && pnpm unlink && run-p buildts",
16
+ "dev": "tsc -w -p .",
17
+ "buildts": "rimraf dist && tsc -p .",
14
18
  "unlinkSetting": "tsx script/unlink.ts"
15
19
  },
16
20
  "keywords": [
@@ -21,6 +25,7 @@
21
25
  "vue3",
22
26
  "element-plus",
23
27
  "element-ui",
28
+ "react",
24
29
  "Ant Design Vue"
25
30
  ],
26
31
  "author": "chendeli419287484@qq.com",
@@ -30,35 +35,51 @@
30
35
  "url": "git+https://github.com/Alan1034/GeneralBasicForm.git"
31
36
  },
32
37
  "devDependencies": {
33
- "@playwright/test": "^1.36.1",
34
- "@types/node": "^20.8.10",
35
- "@vitejs/plugin-legacy": "^4.1.1",
36
- "@vitejs/plugin-vue": "^4.2.3",
37
- "@vitejs/plugin-vue-jsx": "^3.0.1",
38
- "chalk": "^2.4.2",
39
- "cross-env": "^7.0.3",
40
- "less": "^4.2.0",
38
+ "@playwright/test": "^1.56.0",
39
+ "@types/node": "^24.7.2",
40
+ "@types/react": "^19.2.2",
41
+ "@vitejs/plugin-legacy": "^7.2.1",
42
+ "@vitejs/plugin-react": "^5.0.4",
43
+ "babel-plugin-react-compiler": "^1.0.0",
44
+ "chalk": "^5.6.2",
45
+ "cross-env": "^10.1.0",
46
+ "less": "^4.4.2",
41
47
  "npm-run-all": "^4.1.5",
42
- "tsx": "^4.0.0",
43
- "typescript": "^5.2.2",
44
- "vite-plugin-image-optimizer": "^1.1.6"
48
+ "rimraf": "^6.0.1",
49
+ "sass-embedded": "^1.93.2",
50
+ "svgo": "^4.0.0",
51
+ "tsx": "^4.20.6",
52
+ "tw-animate-css": "^1.4.0",
53
+ "typescript": "^5.9.3",
54
+ "vite": "^7.1.9",
55
+ "vite-plugin-image-optimizer": "^2.0.2",
56
+ "vite-plugin-javascript-obfuscator": "^3.1.0"
45
57
  },
46
58
  "peerDependencies": {
47
- "element-plus": ">=2.6.0",
48
- "vue": ">=3.3.4",
49
- "vue-router": ">=4.2.4"
59
+ "react": ">=19.0.0"
50
60
  },
51
61
  "typings": "./dist/index.d.ts",
52
62
  "dependencies": {
53
- "network-spanner": "^1.2.14"
63
+ "@element-plus/icons-vue": "^2.3.1",
64
+ "@radix-ui/react-label": "^2.1.7",
65
+ "@radix-ui/react-separator": "^1.1.7",
66
+ "@radix-ui/react-slot": "^1.2.3",
67
+ "@tailwindcss/vite": "^4.1.16",
68
+ "class-variance-authority": "^0.7.1",
69
+ "clsx": "^2.1.1",
70
+ "lucide-react": "^0.547.0",
71
+ "network-spanner": "1.2.22",
72
+ "tailwind-merge": "^3.3.1",
73
+ "tailwindcss": "^4.1.16"
54
74
  },
55
75
  "module": "./dist/index.js",
56
76
  "exports": {
57
77
  ".": {
78
+ "types": "./dist/index.d.ts",
58
79
  "import": "./dist/index.js",
59
80
  "require": "./dist/index.umd.cjs"
60
81
  },
61
- "./style": "./dist/style.css"
82
+ "./style": "./dist/index.css"
62
83
  },
63
84
  "files": [
64
85
  "/dist"
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .input-graphic-verification[data-v-fb7aa300]{display:flex;gap:12px;width:100%}.input-graphic-verification .input[data-v-fb7aa300]{flex:auto}.input-graphic-verification .graphic[data-v-fb7aa300]{width:108px;height:43px;object-fit:fill;flex:none}.verifiaction-button[data-v-aa89c1b7]{width:109px}.list[data-v-3ff9d47e]{overflow:auto;padding:0;margin:0}.list .checkbox[data-v-3ff9d47e]{width:calc(100% - 32px);padding:0 16px}