@zyzgroup/core-vue 0.0.40 → 0.0.41

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,18 +1,2 @@
1
- (function(y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("vuex")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuex"],a):(y=typeof globalThis<"u"?globalThis:y||self,a(y.ZYZGroupCoreVue={},y.vue,y["vue-router"],y.vuex))})(this,function(y,a,me,O){"use strict";function dt(){return a.getCurrentInstance()}function ye(e,t){return a.createVNode(e,t)}function ht(e){const t=ye(e.component,e.props);e.appContext&&(t.appContext=e.appContext),a.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function pt(e){let t;a.onMounted(()=>{t=e()}),a.onUnmounted(()=>{t?.()})}function gt(e){const t=me.createRouter({history:me.createWebHistory("/"),routes:e,scrollBehavior:(n,r,o)=>o||{left:0,top:0}});return t.beforeEach((n,r,o)=>{o()}),{router:t,push:async n=>{await t.push(n)},to:function(n){this.push({path:n})},addRoute:(n,r)=>t.addRoute(n,r),removeRoute:n=>{t.removeRoute(n)},hasRoute:n=>t.hasRoute(n),getRoutes:()=>t.getRoutes(),getCurrentRoute:()=>({params:t.currentRoute.value.params,query:t.currentRoute.value.query})}}const mt="increment",yt="decrement",bt="incrementAction";function wt(){return{store:O.useStore()}}function _t(e,t){let n=O.mapState;return typeof e=="string"&&e.length>0?n=O.createNamespacedHelpers(e).mapState:t=e,be(t,n)}function St(e,t){let n=O.mapGetters;return typeof e=="string"&&e.length>0?n=O.createNamespacedHelpers(e).mapGetters:t=e,be(t,n)}function vt(e,t){let n=O.mapMutations;return typeof e=="string"&&e.length>0?n=O.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function Ct(e,t){let n=O.mapActions;return typeof e=="string"&&e.length>0?n=O.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function be(e,t){const n=O.useStore(),r={},o=t(e);return Object.keys(o).forEach(s=>{const i=o[s].bind({$store:n});r[s]=a.computed(i)}),r}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,D=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const l=o.pop(),c=o.pop(),f={provider:o.length>0?o[0]:r,prefix:c,name:l};return t&&!G(f)?null:f}const s=o[0],i=s.split("-");if(i.length>1){const l={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!G(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:s};return t&&!G(l,n)?null:l}return null},G=(e,t)=>e?!!((e.provider===""||e.provider.match(N))&&(t&&e.prefix===""||e.prefix.match(N))&&e.name.match(N)):!1,we=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...we,...U}),ee=Object.freeze({...H,body:"",hidden:!1});function xt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function _e(e,t){const n=xt(e,t);for(const r in ee)r in U?r in e&&!(r in n)&&(n[r]=U[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function It(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const l=r[i]&&r[i].parent,c=l&&s(l);c&&(o[i]=[l].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function Et(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(l){s=_e(r[l]||o[l],s)}return i(t),n.forEach(i),_e(e,s)}function Se(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=It(e);for(const o in r){const s=r[o];s&&(t(o,Et(e,o,s)),n.push(o))}return n}const kt={provider:"",aliases:{},not_found:{},...we};function te(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ve(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!te(e,kt))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(N)||typeof s.body!="string"||!te(s,ee))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(N)||typeof i!="string"||!n[i]&&!r[i]||!te(s,ee))return null}return t}const Ce=Object.create(null);function Ot(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function T(e,t){const n=Ce[e]||(Ce[e]=Object.create(null));return n[t]||(n[t]=Ot(e,t))}function ne(e,t){return ve(t)?Se(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Pt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let j=!1;function xe(e){return typeof e=="boolean"&&(j=e),j}function Mt(e){const t=typeof e=="string"?D(e,!0,j):e;if(t){const n=T(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function At(e,t){const n=D(e,!0,j);if(!n)return!1;const r=T(n.provider,n.prefix);return Pt(r,n.name,t)}function Tt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),j&&!t&&!e.prefix){let o=!1;return ve(e)&&(e.prefix="",Se(e,(s,i)=>{i&&At(s,i)&&(o=!0)})),o}const n=e.prefix;if(!G({provider:t,prefix:n,name:"a"}))return!1;const r=T(t,n);return!!ne(r,e)}const Ie=Object.freeze({width:null,height:null}),Ee=Object.freeze({...Ie,...U}),Vt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Lt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Vt);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Lt.test(s);for(;;){if(i){const l=parseFloat(s);isNaN(l)?o.push(s):o.push(Math.ceil(l*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function Ft(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function Rt(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Nt(e,t,n){const r=Ft(e);return Rt(r.defs,t+r.content+n)}const jt=e=>e==="unset"||e==="undefined"||e==="none";function zt(e,t){const n={...H,...e},r={...Ee,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(_=>{const d=[],E=_.hFlip,A=_.vFlip;let C=_.rotate;E?A?C+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):A&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let b;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:b=o.height/2+o.top,d.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,d.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}C%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),d.length&&(s=Nt(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,c=o.width,f=o.height;let u,g;i===null?(g=l===null?"1em":l==="auto"?f:l,u=ke(g,c/f)):(u=i==="auto"?c:i,g=l===null?ke(u,f/c):l==="auto"?f:l);const w={},v=(_,d)=>{jt(d)||(w[_]=d.toString())};v("width",u),v("height",g);const x=[o.left,o.top,c,f];return w.viewBox=x.join(" "),{attributes:w,viewBox:x,body:s}}const Bt=/\sid="(\S+)"/g,$t="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Dt=0;function Gt(e,t=$t){const n=[];let r;for(;r=Bt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(Dt++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const oe=Object.create(null);function Ut(e,t){oe[e]=t}function re(e){return oe[e]||oe[""]}function se(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ie=Object.create(null),z=["https://api.simplesvg.com","https://api.unisvg.com"],q=[];for(;z.length>0;)z.length===1||Math.random()>.5?q.push(z.shift()):q.push(z.pop());ie[""]=se({resources:["https://api.iconify.design"].concat(q)});function Ht(e,t){const n=se(t);return n===null?!1:(ie[e]=n,!0)}function ce(e){return ie[e]}let Oe=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function qt(e,t){const n=ce(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Wt(e){return e===404}const Qt=(e,t,n)=>{const r=[],o=qt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},l=0;return n.forEach((c,f)=>{l+=c.length+1,l>=o&&f>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},l=c.length),i.icons.push(c)}),r.push(i),r};function Kt(e){if(typeof e=="string"){const t=ce(e);if(t)return t.path}return"/"}const Yt={prepare:Qt,send:(e,t,n)=>{if(!Oe){n("abort",424);return}let r=Kt(t.provider);switch(t.type){case"icons":{const s=t.prefix,l=t.icons.join(","),c=new URLSearchParams({icons:l});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Oe(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Wt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})}};function Zt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,l=o.name,c=n[s]||(n[s]=Object.create(null)),f=c[i]||(c[i]=T(s,i));let u;l in f.icons?u=t.loaded:i===""||f.missing.has(l)?u=t.missing:u=t.pending;const g={provider:s,prefix:i,name:l};u.push(g)}),t}function Pe(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Jt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,l=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const f=c.name;if(e.icons[f])i.loaded.push({provider:r,prefix:o,name:f});else if(e.missing.has(f))i.missing.push({provider:r,prefix:o,name:f});else return n=!0,!0;return!1}),i.pending.length!==l&&(n||Pe([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Xt=0;function en(e,t,n){const r=Xt++,o=Pe.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function tn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?D(o,t,n):o;s&&r.push(s)}),r}var nn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function on(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const l=Date.now();let c="pending",f=0,u,g=null,w=[],v=[];typeof r=="function"&&v.push(r);function x(){g&&(clearTimeout(g),g=null)}function _(){c==="pending"&&(c="aborted"),x(),w.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),w=[]}function d(m,k){k&&(v=[]),typeof m=="function"&&v.push(m)}function E(){return{startTime:l,payload:t,status:c,queriesSent:f,queriesPending:w.length,subscribe:d,abort:_}}function A(){c="failed",v.forEach(m=>{m(void 0,u)})}function C(){w.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),w=[]}function b(m,k,$){const X=k!=="success";switch(w=w.filter(V=>V!==m),c){case"pending":break;case"failed":if(X||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=$,A();return}if(X){u=$,w.length||(i.length?R():A());return}if(x(),C(),!e.random){const V=e.resources.indexOf(m.resource);V!==-1&&V!==e.index&&(e.index=V)}c="completed",v.forEach(V=>{V($)})}function R(){if(c!=="pending")return;x();const m=i.shift();if(m===void 0){if(w.length){g=setTimeout(()=>{x(),c==="pending"&&(C(),A())},e.timeout);return}A();return}const k={status:"pending",resource:m,callback:($,X)=>{b(k,$,X)}};w.push(k),f++,g=setTimeout(R,e.rotate),n(m,t,k.callback)}return setTimeout(R),E}function Me(e){const t={...nn,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function o(l,c,f){const u=on(t,l,c,(g,w)=>{r(),f&&f(g,w)});return n.push(u),u}function s(l){return n.find(c=>l(c))||null}return{query:o,find:s,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function Ae(){}const ae=Object.create(null);function rn(e){if(!ae[e]){const t=ce(e);if(!t)return;const n=Me(t),r={config:t,redundancy:n};ae[e]=r}return ae[e]}function sn(e,t,n){let r,o;if(typeof e=="string"){const s=re(e);if(!s)return n(void 0,424),Ae;o=s.send;const i=rn(e);i&&(r=i.redundancy)}else{const s=se(e);if(s){r=Me(s);const i=e.resources?e.resources[0]:"",l=re(i);l&&(o=l.send)}}return!r||!o?(n(void 0,424),Ae):r.query(t,o,n)().abort}const Te="iconify2",B="iconify",Ve=B+"-count",Le=B+"-version",Fe=36e5,cn=168,an=50;function le(e,t){try{return e.getItem(t)}catch{}}function fe(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function ue(e,t){return fe(e,Ve,t.toString())}function de(e){return parseInt(le(e,Ve))||0}const W={local:!0,session:!0},Ne={local:new Set,session:new Set};let he=!1;function ln(e){he=e}let Q=typeof window>"u"?{}:window;function je(e){const t=e+"Storage";try{if(Q&&Q[t]&&typeof Q[t].length=="number")return Q[t]}catch{}W[e]=!1}function ze(e,t){const n=je(e);if(!n)return;const r=le(n,Le);if(r!==Te){if(r){const l=de(n);for(let c=0;c<l;c++)Re(n,B+c.toString())}fe(n,Le,Te),ue(n,0);return}const o=Math.floor(Date.now()/Fe)-cn,s=l=>{const c=B+l.toString(),f=le(n,c);if(typeof f=="string"){try{const u=JSON.parse(f);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}Re(n,c)}};let i=de(n);for(let l=i-1;l>=0;l--)s(l)||(l===i-1?(i--,ue(n,i)):Ne[e].add(l))}function Be(){if(!he){ln(!0);for(const e in W)ze(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=T(r,o);if(!ne(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in W)ze(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function un(e,t){he||Be();function n(r){let o;if(!W[r]||!(o=je(r)))return;const s=Ne[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=de(o),i>=an||!ue(o,i+1))return;const l={cached:Math.floor(Date.now()/Fe),provider:e.provider,data:t};return fe(o,B+i.toString(),JSON.stringify(l))}t.lastModified&&!fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function $e(){}function dn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Jt(e)}))}function hn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=re(n)))return;s.prepare(n,r,o).forEach(l=>{sn(n,l,c=>{if(typeof c!="object")l.icons.forEach(f=>{e.missing.add(f)});else try{const f=ne(e,c);if(!f.length)return;const u=e.pendingIcons;u&&f.forEach(g=>{u.delete(g)}),un(e,c)}catch(f){console.error(f)}dn(e)})})}))}const pn=(e,t)=>{const n=tn(e,!0,xe()),r=Zt(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,$e)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,l;return r.pending.forEach(c=>{const{provider:f,prefix:u}=c;if(u===l&&f===i)return;i=f,l=u,s.push(T(f,u));const g=o[f]||(o[f]=Object.create(null));g[u]||(g[u]=[])}),r.pending.forEach(c=>{const{provider:f,prefix:u,name:g}=c,w=T(f,u),v=w.pendingIcons||(w.pendingIcons=new Set);v.has(g)||(v.add(g),o[f][u].push(g))}),s.forEach(c=>{const{provider:f,prefix:u}=c;o[f][u].length&&hn(c,o[f][u])}),t?en(t,r,s):$e};function gn(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ie?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const mn=/[\s,]+/;function yn(e,t){t.split(mn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function bn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}function wn(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function _n(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Sn(e){return"data:image/svg+xml,"+_n(e)}function vn(e){return'url("'+Sn(e)+'")'}const De={...Ee,inline:!1},Cn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xn={display:"inline-block"},pe={backgroundColor:"currentColor"},Ge={backgroundColor:"transparent"},Ue={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},He={webkitMask:pe,mask:pe,background:Ge};for(const e in He){const t=He[e];for(const n in Ue)t[e+n]=Ue[n]}const K={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";K[e+"-flip"]=t,K[e.slice(0,1)+"-flip"]=t,K[e+"Flip"]=t});function qe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const We=(e,t)=>{const n=gn(De,t),r={...Cn},o=t.mode||"svg",s={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let _ in t){const d=t[_];if(d!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[_]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&yn(n,d);break;case"color":s.color=d;break;case"rotate":typeof d=="string"?n[_]=bn(d):typeof d=="number"&&(n[_]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete r["aria-hidden"];break;default:{const E=K[_];E?(d===!0||d==="true"||d===1)&&(n[E]=!0):De[_]===void 0&&(r[_]=d)}}}const c=zt(e,n),f=c.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...l},Object.assign(r,f);let _=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),r.innerHTML=Gt(c.body,d?()=>d+"ID"+_++:"iconifyVue"),a.h("svg",r)}const{body:u,width:g,height:w}=e,v=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),x=wn(u,{...f,width:g+"",height:w+""});return r.style={...s,"--svg":vn(x),width:qe(f.width),height:qe(f.height),...xn,...v?pe:Ge,...l},a.h("span",r)};if(xe(!0),Ut("",Yt),typeof document<"u"&&typeof window<"u"){Be();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Tt(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Ht(n,o)||console.error(r)}catch{console.error(r)}}}}const In={...H,body:""},En=a.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=D(e,!1,!0))===null)return this.abortLoading(),null;const r=Mt(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:pn([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return We(In,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),We({...H,...t.data},n)}});function Qe(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}let Ke;try{Ke=Map}catch{Ke=function(){}}let Ye;try{Ye=Set}catch{Ye=function(){}}function kn(e,t){if(e=parseFloat(e),isNaN(e)){if(typeof t=="number")return t;throw new Error(`parseNumber(${e}) isNaN!`)}return e}const S=(e,t,n)=>e<t?t:e>n?n:e;function On(e,t=12){return kn(e).toFixed(t)}function Pn(e,t=12){return+On(e,t)}Mn();function Mn(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),o=new Uint32Array(512);for(let c=0;c<256;++c){const f=c-127;f<-27?(r[c]=0,r[c|256]=32768,o[c]=24,o[c|256]=24):f<-14?(r[c]=1024>>-f-14,r[c|256]=1024>>-f-14|32768,o[c]=-f-1,o[c|256]=-f-1):f<=15?(r[c]=f+15<<10,r[c|256]=f+15<<10|32768,o[c]=13,o[c|256]=13):f<128?(r[c]=31744,r[c|256]=64512,o[c]=24,o[c|256]=24):(r[c]=31744,r[c|256]=64512,o[c]=13,o[c|256]=13)}const s=new Uint32Array(2048),i=new Uint32Array(64),l=new Uint32Array(64);for(let c=1;c<1024;++c){let f=c<<13,u=0;for(;!(f&8388608);)f<<=1,u-=8388608;f&=-8388609,u+=947912704,s[c]=f|u}for(let c=1024;c<2048;++c)s[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)i[c]=c<<23;i[31]=1199570944,i[32]=2147483648;for(let c=33;c<63;++c)i[c]=2147483648+(c-32<<23);i[63]=3347054592;for(let c=1;c<64;++c)c!==32&&(l[c]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:o,mantissaTable:s,exponentTable:i,offsetTable:l}}function An(e,t){let n=!0;return function(...r){n&&(n=!1,e.apply(this,r),setTimeout(()=>{n=!0},t))}}class Tn{events;constructor(){this.events={}}on(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),this}addListener(t,n){return this.on(t,n),this}prependListener(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(n),this}removeListener(t,n){if(this.events[t])return this.events[t]=this.events[t].filter(r=>r!==n),this}off(t,n){return this.removeListener(t,n),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...n){return this.events[t]&&this.events[t].forEach(r=>{r(...n)}),this}once(t,n){const o=(()=>{let s=!1;return(...i)=>{s||(s=!0,n(...i),this.off(t,o))}})();return this.on(t,o),this}}function Vn(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}Array.prototype.ap=function(e){return this.reduce((t,n)=>t.concat(e.map(n)),[])};class Ln{subscribers=new Set;add(){}notify(){this.subscribers.forEach(t=>t())}}const Ze=new WeakMap;function Y(e,t){let n=Ze.get(e);n||(n=new Map,Ze.set(e,n));let r=n.get(t);return r||(r=new Ln,n.set(t,r)),r}function Fn(e,t=!1){return Object.keys(e).forEach(n=>{let r=e[n];if(t&&typeof r=="object"&&r!==null)e[n]=Je(r,t);else{const o=Y(e,n);Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){return o.add(),r},set(s){r!=s&&(r=s,o.notify())}})}}),e}function Z(e,t=!1){return Fn({value:e},t)}function Je(e,t=!1){const n={get(o,s,i){const l=Reflect.get(o,s,i);if(t&&typeof l=="object"&&l!==null&&!("isYZReactiveProxy"in l)){const f=Je(l,t);f.YZReactiveProxyParentTarget=o,f.YZReactiveProxyParentKey=s,Reflect.set(i,s,f)}return Y(o,s).add(),Reflect.get(o,s,i)},set(o,s,i,l){const c=Reflect.get(o,s,l),f=Reflect.set(o,s,i,l);return Array.isArray(o)?Y(o.YZReactiveProxyParentTarget,o.YZReactiveProxyParentKey).notify():c!=i&&Y(o,s).notify(),f},has(o,s){return s==="isYZReactiveProxy"||s in o}};return new Proxy(e,n)}let Xe;try{Xe=Promise}catch{Xe=function(){}}const M=(e,t,n)=>{const r=async o=>{await n(o)};return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}};function Rn(){const e=new Tn;return{on:(t,n)=>{e.on(t,n)},off:(t,n)=>{e.off(t,n)},emit:(t,...n)=>{e.emit(t,...n)}}}const p=Rn();let et="";new MutationObserver((e,t)=>{location.href!==et&&(et=location.href,p.emit("urlchange",location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0}),M(window,"hashchange",()=>{p.emit("hashchange",location.hash)}),M(window,"popstate",e=>{p.emit("popstate",e.state)}),M(window,"orientationchange"in window?"orientationchange":"resize",e=>{const t=e.target.innerWidth,n=e.target.innerHeight;p.emit("windowresize",t,n)});let tt=!1;M(window,"load",()=>{p.emit("load"),tt=!0}),M(window,"beforeunload",e=>{p.emit("beforeunload",e)}),M(window,"pagehide",e=>{p.emit("pagehide",e)}),M(window,"focus",e=>{p.emit("focus",e)}),M(window,"blur",e=>{p.emit("blur",e)}),M(window,"visibilitychange",e=>{document.hidden?p.emit("windowhidden",e):p.emit("windowvisible",e)});const Nn={getSelectedText:()=>window.getSelection()?.toString()||"",isTabInView:()=>!document.hidden,onurlchange:e=>(p.on("urlchange",e),()=>{p.off("urlchange",e)}),onhashchange:e=>(p.on("hashchange",e),()=>{p.off("hashchange",e)}),onpopstate:e=>(p.on("popstate",e),()=>{p.off("popstate",e)}),pushstate:(e,t=null)=>{history.pushState(t,"",e)},replacestate:(e,t=null)=>{history.replaceState(t,"",e)},onwindowresize:e=>(p.on("windowresize",e),()=>{p.off("windowresize",e)}),onload:e=>{const t=Vn(e);return p.on("load",t),tt&&t(),()=>{p.off("load",t)}},onbeforeunload:e=>(p.on("beforeunload",e),()=>{p.off("beforeunload",e)}),onpagehide:e=>(p.on("pagehide",e),()=>{p.off("pagehide",e)}),onfocus:e=>(p.on("focus",e),()=>{p.off("focus",e)}),onblur:e=>(p.on("blur",e),()=>{p.off("blur",e)}),onwindowvisible:e=>(p.on("windowvisible",e),()=>{p.off("windowvisible",e)}),onwindowhidden:e=>(p.on("windowhidden",e),()=>{p.off("windowhidden",e)})},jn=()=>{const e=navigator.userAgent.toLowerCase();let t="Unknown";return/iphone|ipad|ipod/i.test(e)?t="iOS":/android/i.test(e)?t="Android":/BlackBerry/i.test(e)?t="BlackBerry":/mac/i.test(e)?t="macOS":/win/i.test(e)?t="Windows":/linux/i.test(e)?t="Linux":/bsd/i.test(e)&&(t="BSD"),t.toLowerCase()};function zn(e=navigator.userAgent){let t="Unknown";if(/iPhone|iPad|iPod/i.test(e)){const n=e.match(/OS (\d+_\d+)/i);n&&(t=n[1].replace("_","."))}else if(/Android/i.test(e)){const n=e.match(/Android (\d+\.\d+)/i);n&&(t=n[1])}else if(/Mac OS X/i.test(e)){const n=e.match(/Mac OS X (\d+_\d+)/i);n&&(t=n[1].replace("_","."))}else if(/Windows NT/i.test(e)){const n=e.match(/Windows NT (\d+\.\d+)/i);n&&(t=n[1])}return t.toLowerCase()}function Bn(e,t){const n=e.split("."),r=t.split(".");for(let o=0,s=n.length;o<s;o++){if(r.length==o)return 1;if(n[o]!=r[o])return n[o]>r[o]?1:-1}return n.length!=r.length?-1:0}function $n(){return jn()==="ios"}function Dn(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}const r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}Dn(),(()=>{const e=Qe();return!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL)})(),function(){if(!Qe().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),n=t.getContext("2d");n.fillRect(0,0,1,1);const r=t.transferToImageBitmap();try{n.createPattern(r,"no-repeat")}catch{return!1}return!0}();function nt(e,t){let n;if(typeof t=="string"){const o=document.querySelector(t)?.shadowRoot;o?n=o:n=document.querySelector(t)}else n=t||document.getElementsByTagName("head")[0];const r=document.createElement("style");if(r.innerHTML=e,n)return n.appendChild(r),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(r)};{const o=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(o)}}}$n()&&Bn(zn(),"11.2")<0?nt(`
2
- :root {
3
- /* iOS < 11.2 */
4
- --sat: constant(safe-area-inset-top);
5
- --sar: constant(safe-area-inset-right);
6
- --sab: constant(safe-area-inset-bottom);
7
- --sal: constant(safe-area-inset-left);
8
- }
9
- `):nt(`
10
- :root {
11
- /* iOS > 11.2 */
12
- --sat: env(safe-area-inset-top);
13
- --sar: env(safe-area-inset-right);
14
- --sab: env(safe-area-inset-bottom);
15
- --sal: env(safe-area-inset-left);
16
- }
17
- `);const ot=Z("0px"),rt=Z("0px"),st=Z("0px"),it=Z("0px");Nn.onload(()=>{const e=getComputedStyle(document.documentElement);ot.value=e.getPropertyValue("--sat"),rt.value=e.getPropertyValue("--sar"),st.value=e.getPropertyValue("--sab"),it.value=e.getPropertyValue("--sal")});const Gn={top:()=>ot.value,right:()=>rt.value,bottom:()=>st.value,left:()=>it.value},Un=getComputedStyle(document.documentElement);function h(e){return Un.getPropertyValue(e)}const P={colorPrimary:h("--color-primary")||"#5A82F0",colorRed:h("--color-red")||"#ff5050",colorOrange:h("--color-orange")||"#fa8c00",colorYellow:h("--color-yellow")||"#fadc32",colorGreen:h("--color-green")||"#00c878",colorBlue:h("--color-blue")||"#00b4fa",colorPurple:h("--color-purple")||"#6464fa",colorBlack:h("--color-black")||"#001428",colorGray00:h("--color-gray-00")||"#000000",colorGray33:h("--color-gray-33")||"#333333",colorGray66:h("--color-gray-66")||"#666666",colorGray99:h("--color-gray-99")||"#999999",colorGrayCC:h("--color-gray-cc")||"#cccccc",colorGrayDD:h("--color-gray-dd")||"#dddddd",colorGrayE6:h("--color-gray-e6")||"#e6e6e6",colorGrayEE:h("--color-gray-ee")||"#eeeeee",colorGrayEF:h("--color-gray-ef")||"#efefef",colorGrayF5:h("--color-gray-f5")||"#f5f5f5",colorGrayFF:h("--color-gray-ff")||"#ffffff",fontLineHeight:h("--font-line-height")||"1.4",fontSize32:h("--font-size-32")||"32px",fontSize24:h("--font-size-24")||"24px",fontSize22:h("--font-size-22")||"22px",fontSize20:h("--font-size-20")||"20px",fontSize18:h("--font-size-18")||"18px",fontSize16:h("--font-size-16")||"16px",fontSize14:h("--font-size-14")||"14px",fontSize12:h("--font-size-12")||"12px",fontSize10:h("--font-size-10")||"10px",d4:h("--distance-4")||"4px",d8:h("--distance-8")||"8px",d12:h("--distance-12")||"12px",d16:h("--distance-16")||"16px",d20:h("--distance-20")||"20px",d32:h("--distance-32")||"32px",d40:h("--distance-40")||"40px",d44:h("--distance-44")||"44px"};class I{__color={r:0,g:0,b:0,a:1};constructor(t,n){t&&this.setColor(t),typeof n=="number"&&this.setAlpha(n)}get color(){return this.__color}set color(t){this.__color=ge(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=S(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=S(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=S(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=S(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,n,r){return this.r=t,this.g=n,this.b=r,this}setRGBA(t,n,r,o){return this.r=t,this.g=n,this.b=r,this.a=o,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${Pn(this.a,6)})`}clone(){return new I(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,n="#000000",r="#ffffff"){if(t)return new I(this.r*.299+this.g*.587+this.b*.114>186?n:r);{const o=this.clone();return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,o}}lighten(t){t=S(Math.abs(t),0,1);let{r:n,g:r,b:o}=this.color;return n+=(255-n)*t,r+=(255-r)*t,o+=(255-o)*t,new I().setRGBA(n,r,o,this.color.a)}darken(t){t=S(Math.abs(t),0,1);let{r:n,g:r,b:o}=this.color;return n=n*(1-t),r=r*(1-t),o=o*(1-t),new I().setRGBA(n,r,o,this.color.a)}static gradient(t,n,r){try{const o=ge(t),s=ge(n);return new I().setRGB((s.r-o.r)*r+o.r,(s.g-o.g)*r+o.g,(s.b-o.b)*r+o.b)}catch{return new I(n)}}static random(){return new I(Math.random()*16777215)}get hsv(){const{r:t,g:n,b:r,a:o}=this.color,s=Math.max(t,n,r),i=Math.min(t,n,r),l=s-i;let c;return t===s?c=(n-r)/l:n===s?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c<0&&(c+=1),{h:l==0?0:c*360,s:s===0?0:l/s,v:s/255,a:o}}set h(t){const n=this.hsv;n.h=S(t,0,360),this.setColor(n)}get h(){return this.hsv.h}set s(t){const n=this.hsv;n.s=S(t,0,1),this.setColor(n)}get s(){return this.hsv.s}set v(t){const n=this.hsv;n.v=S(t,0,1),this.setColor(n)}get v(){return this.hsv.v}}function J(e,t){return new I(e,t)}function ge(e){const t=Object.prototype.hasOwnProperty.call(e,"a")?S(e.a,0,1):1;if(Object.prototype.hasOwnProperty.call(e,"r")&&Object.prototype.hasOwnProperty.call(e,"g")&&Object.prototype.hasOwnProperty.call(e,"b"))return e.r=S(Math.round(e.r),0,255),e.g=S(Math.round(e.g),0,255),e.b=S(Math.round(e.b),0,255),e.a=t,e;if(Object.prototype.hasOwnProperty.call(e,"h")&&Object.prototype.hasOwnProperty.call(e,"s")&&Object.prototype.hasOwnProperty.call(e,"v")){const r=S(e.h,0,360),o=S(e.s,0,1),s=S(e.v,0,1),i=Math.floor(r/60)%6,l=r/60-Math.floor(r/60),c=s*(1-o),f=s*(1-l*o),u=s*(1-(1-l)*o),g=[[s,u,c],[f,s,c],[c,s,u],[c,f,s],[u,c,s],[s,c,f]][i];return{r:Math.round(g[0]*255),g:Math.round(g[1]*255),b:Math.round(g[2]*255),a:t}}const n={r:0,g:0,b:0,a:t};if(typeof e=="number")e<Math.pow(2,24)?(n.r=e>>16&255,n.g=e>>8&255,n.b=e&255):(n.r=e>>24&255,n.g=e>>16&255,n.b=e>>8&255,n.a=(e&255)/255);else if(typeof e=="string"){const r=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(e);if(r)n.r=parseInt(r[1]),n.g=parseInt(r[2]),n.b=parseInt(r[3]),r[4]&&(n.a=parseFloat(r[4]));else{let o=e.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);o?(n.r=parseInt(`${o[1]}${o[1]}`,16),n.g=parseInt(`${o[2]}${o[2]}`,16),n.b=parseInt(`${o[3]}${o[3]}`,16)):(o=e.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),o?(n.r=parseInt(o[1],16),n.g=parseInt(o[2],16),n.b=parseInt(o[3],16)):(o=e.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),o?(n.r=parseInt(o[1],16),n.g=parseInt(o[2],16),n.b=parseInt(o[3],16),n.a=parseInt(o[4],16)/255):e==="none"&&(n.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+e);return n.r=S(n.r,0,255),n.g=S(n.g,0,255),n.b=S(n.b,0,255),n.a=S(n.a,0,1),n}const L={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};L.buttonColor=new I(L.saveRowColor).darken(.1).toString(),L.borderColor=new I(L.backgroundColor).lighten(.07).toString(),L.inputColor=new I(L.backgroundColor).lighten(.085).toString();function Hn(e){const t=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=n;let r=100;const o=function(){const s=Math.min(t.clientWidth,e);t.dataset.width=s,t.dataset.rem=r=Math.round(100*(s/e)),t.style.fontSize=r+"px"};o(),window.rem2px=function(s){return s=parseFloat(s),s*r},window.px2rem=function(s){return s=parseFloat(s),s/r},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",o,!1)}const qn=a.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:P.colorPrimary}},setup(e){const t=e;return(n,r)=>(a.openBlock(),a.createElementBlock("span",{class:"icon",style:a.normalizeStyle(["color: "+n.color])},[a.createVNode(a.unref(En),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),yo="",F=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ct=F(qn,[["__scopeId","data-v-3f9d90d2"]]),Wn={class:"loading-11",ref:"loading11"},Qn={class:"container container-1"},Kn={class:"container container-2"},Yn={class:"container container-3"},Zn=a.defineComponent({__name:"Loading11",props:{color:{default:P.colorPrimary},width:{default:"0.8em"}},setup(e){const t=e;return(n,r)=>(a.openBlock(),a.createElementBlock("div",Wn,[a.createElementVNode("div",{class:"loading-11-inner",style:a.normalizeStyle({width:t.width,height:t.width})},[a.createElementVNode("div",Qn,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)]),a.createElementVNode("div",Kn,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)]),a.createElementVNode("div",Yn,[a.createElementVNode("div",{class:"dot dot-1",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-2",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-3",style:a.normalizeStyle({backgroundColor:t.color})},null,4),a.createElementVNode("div",{class:"dot dot-4",style:a.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),bo="",at=F(Zn,[["__scopeId","data-v-f95fac77"]]),Jn={key:0,class:"loading"},Xn=a.defineComponent({customOptions:{Loading11:at},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(e,{expose:t,emit:n}){const r=e,o=n,s=a.ref(),i=a.ref(r.borderColor),l=a.ref(r.bgColor),c=a.ref(r.fontColor),f=a.ref(r.borderColor),u=a.ref(r.bgColor);function g(b){switch(b){case"outline":i.value=r.borderColor??P.colorPrimary,l.value=r.bgColor??P.colorGrayFF,c.value=r.fontColor??P.colorPrimary,f.value=i.value,u.value=l.value;break;case"fullfilled":default:i.value=r.borderColor??P.colorPrimary,l.value=r.bgColor??P.colorPrimary,c.value=r.fontColor??P.colorGrayFF,f.value=i.value,u.value=l.value;break}}a.watch(()=>r.stylePattern,()=>{g(r.stylePattern)},{immediate:!0});const w=a.ref(r.disabled?"0.6":"1"),v=a.ref(r.disabled?"not-allowed":"pointer");let x=!1;const _=()=>{r.disabled||(x=!0,i.value=J(f.value).lighten(.05).toString(),l.value=J(u.value).lighten(.05).toString())},d=()=>{r.disabled||(x=!1,i.value=f.value,l.value=u.value)},E=a.ref(!1),C=An(()=>{r.disabled||E.value||(i.value=J(f.value).darken(.05).toString(),l.value=J(u.value).darken(.05).toString(),setTimeout(()=>{x?_():d()},150),o("yz-click"),o("click"),r.asyncClick&&(E.value=!0,r.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return t({el:s}),(b,R)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"el",ref:s,class:"button",style:a.normalizeStyle([`opacity: ${w.value}`,`border: 1px solid ${i.value}`,`background-color: ${l.value}`,`color: ${c.value}`,`border-radius: ${r.borderRadius}`,`width: ${r.width}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${v.value}`,"user-select: none"]),onMouseover:_,onMouseleave:d,onClick:R[0]||(R[0]=(...m)=>a.unref(C)&&a.unref(C)(...m))},[a.createElementVNode("label",{class:"label truncate",style:a.normalizeStyle({padding:"0 "+b.padding,cursor:v.value})},[E.value?(a.openBlock(),a.createElementBlock("div",Jn,[a.createVNode(at,{color:c.value},null,8,["color"])])):a.createCommentVNode("",!0),a.renderSlot(b.$slots,"default",{},()=>[b.icon&&b.iconPosition==="left"?(a.openBlock(),a.createBlock(ct,{key:0,icon:b.icon,color:c.value,style:a.normalizeStyle({marginRight:a.unref(P).d4,cursor:v.value})},null,8,["icon","color","style"])):a.createCommentVNode("",!0),a.createElementVNode("span",{style:a.normalizeStyle({cursor:v.value})},a.toDisplayString(b.label),5),b.icon&&b.iconPosition==="right"?(a.openBlock(),a.createBlock(ct,{key:1,icon:b.icon,color:c.value,style:a.normalizeStyle({marginLeft:a.unref(P).d4,cursor:v.value})},null,8,["icon","color","style"])):a.createCommentVNode("",!0)],!0)],4)],36))}}),wo="",lt=F(Xn,[["__scopeId","data-v-999537e3"]]),eo=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"})),_o="",to={class:"page"},no={class:"header"},oo={class:"main"},ro={class:"main-scroll"},so={class:"footer"},io=a.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(e,{expose:t,emit:n}){return Hn(e.designWidth),t({}),(o,s)=>(a.openBlock(),a.createElementBlock("div",to,[a.createElementVNode("header",no,[a.renderSlot(o.$slots,"header",{},void 0,!0)]),a.createElementVNode("div",oo,[a.createElementVNode("div",ro,[a.renderSlot(o.$slots,"default",{},void 0,!0)])]),a.createElementVNode("footer",so,[a.renderSlot(o.$slots,"footer",{},void 0,!0)])]))}}),So="",ft=F(io,[["__scopeId","data-v-8b6ffbe1"]]),co=Object.freeze(Object.defineProperty({__proto__:null,default:ft},Symbol.toStringTag,{value:"Module"})),ao={class:"xg-footer-inner"},lo=a.defineComponent({__name:"Footer",setup(e){const t=a.ref("0px");return a.onMounted(()=>{t.value=Gn.bottom()}),(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:"xg-footer",style:a.normalizeStyle({paddingBottom:t.value})},[a.createElementVNode("div",ao,[a.createVNode(lt,{label:"去支付",width:"100%"})])],4))}}),vo="",ut=F(lo,[["__scopeId","data-v-b845cb28"]]),fo=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"})),uo=a.defineComponent({__name:"Lot",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(ft,{class:"xg"},{footer:a.withCtx(()=>[a.createVNode(ut)]),_:1}))}}),Co="",ho=Object.freeze(Object.defineProperty({__proto__:null,default:F(uo,[["__scopeId","data-v-79c30c04"]])},Symbol.toStringTag,{value:"Module"}));y.Button=eo,y.DECREMENT=yt,y.Footer=fo,y.INCREMENT=mt,y.INCREMENTACTION=bt,y.LayoutMobile=co,y.Lot=ho,y.getInstance=dt,y.getVNode=ye,y.renderComponent=ht,y.useVueEffect=pt,y.useVueRouter=gt,y.useVuex=wt,y.useVuexActions=Ct,y.useVuexGetters=St,y.useVuexMutations=vt,y.useVuexStates=_t,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
1
+ (function(r,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("vue-router"),require("vuex")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuex"],u):(r=typeof globalThis<"u"?globalThis:r||self,u(r.ZYZGroupCoreVue={},r.vue,r["vue-router"],r.vuex))})(this,function(r,u,i,o){"use strict";function d(){return u.getCurrentInstance()}function f(e,t){return u.createVNode(e,t)}function C(e){const t=f(e.component,e.props);e.appContext&&(t.appContext=e.appContext),u.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function R(e){let t;u.onMounted(()=>{t=e()}),u.onUnmounted(()=>{t?.()})}function V(e){const t=i.createRouter({history:i.createWebHistory("/"),routes:e,scrollBehavior:(n,c,s)=>s||{left:0,top:0}});return t.beforeEach((n,c,s)=>{s()}),{router:t,push:async n=>{await t.push(n)},to:function(n){this.push({path:n})},addRoute:(n,c)=>t.addRoute(n,c),removeRoute:n=>{t.removeRoute(n)},hasRoute:n=>t.hasRoute(n),getRoutes:()=>t.getRoutes(),getCurrentRoute:()=>({params:t.currentRoute.value.params,query:t.currentRoute.value.query})}}const h="increment",E="decrement",g="incrementAction";function l(){return{store:o.useStore()}}function m(e,t){let n=o.mapState;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapState:t=e,a(t,n)}function A(e,t){let n=o.mapGetters;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapGetters:t=e,a(t,n)}function T(e,t){let n=o.mapMutations;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),n(t)}function y(e,t){let n=o.mapActions;return typeof e=="string"&&e.length>0?n=o.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),n(t)}function a(e,t){const n=o.useStore(),c={},s=t(e);return Object.keys(s).forEach(p=>{const N=s[p].bind({$store:n});c[p]=u.computed(N)}),c}r.DECREMENT=E,r.INCREMENT=h,r.INCREMENTACTION=g,r.getInstance=d,r.getVNode=f,r.renderComponent=C,r.useVueEffect=R,r.useVueRouter=V,r.useVuex=l,r.useVuexActions=y,r.useVuexGetters=A,r.useVuexMutations=T,r.useVuexStates=m,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
18
2
  //# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map