@gkd-kit/inspect 0.0.1711546385152 → 0.0.1711614525000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-DonzIU37.js → ActionCard.vue_vue_type_script_setup_true_lang-L5rIMTR7.js} +3 -3
  2. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-DonzIU37.js.map → ActionCard.vue_vue_type_script_setup_true_lang-L5rIMTR7.js.map} +1 -1
  3. package/dist/assets/{DevicePage-CZVuiEez.js → DevicePage-D4VgPgMr.js} +2 -2
  4. package/dist/assets/{DevicePage-CZVuiEez.js.map → DevicePage-D4VgPgMr.js.map} +1 -1
  5. package/dist/assets/HomePage-oOQvULNz.js +118 -0
  6. package/dist/assets/{HomePage-dSVFbY_c.js.map → HomePage-oOQvULNz.js.map} +1 -1
  7. package/dist/assets/{ImportPage-D5KkVRD8.js → ImportPage-DX3riFXL.js} +2 -2
  8. package/dist/assets/{ImportPage-D5KkVRD8.js.map → ImportPage-DX3riFXL.js.map} +1 -1
  9. package/dist/assets/{PreviewSharePage-CVtlU9Wc.js → PreviewSharePage-Bo6pKeQm.js} +2 -2
  10. package/dist/assets/{PreviewSharePage-CVtlU9Wc.js.map → PreviewSharePage-Bo6pKeQm.js.map} +1 -1
  11. package/dist/assets/{SnapshotPage-BMAVnFQS.js → SnapshotPage-C-uUbrVt.js} +4 -4
  12. package/dist/assets/{SnapshotPage-BMAVnFQS.js.map → SnapshotPage-C-uUbrVt.js.map} +1 -1
  13. package/dist/assets/{TrackGraph-_T47tWwr.js → TrackGraph-BT5UWrhu.js} +2 -2
  14. package/dist/assets/{TrackGraph-_T47tWwr.js.map → TrackGraph-BT5UWrhu.js.map} +1 -1
  15. package/dist/assets/{_404Page-UfB1g-vp.js → _404Page-CWcVFgRr.js} +2 -2
  16. package/dist/assets/{_404Page-UfB1g-vp.js.map → _404Page-CWcVFgRr.js.map} +1 -1
  17. package/dist/assets/{fetch-BNVhYZ3y.js → fetch-C5HFvsYq.js} +7 -7
  18. package/dist/assets/{fetch-BNVhYZ3y.js.map → fetch-C5HFvsYq.js.map} +1 -1
  19. package/dist/assets/{import-CATfG0QD.js → import-Nf8_BS4j.js} +2 -2
  20. package/dist/assets/{import-CATfG0QD.js.map → import-Nf8_BS4j.js.map} +1 -1
  21. package/dist/assets/{index-CDitUEio.js → index-BnihXC7v.js} +2 -2
  22. package/dist/assets/{index-CDitUEio.js.map → index-BnihXC7v.js.map} +1 -1
  23. package/dist/assets/{index-C-6jXpav.js → index-Bv8H-Jee.js} +2 -2
  24. package/dist/assets/{index-C-6jXpav.js.map → index-Bv8H-Jee.js.map} +1 -1
  25. package/dist/assets/{index-BDrWWBpm.js → index-DSQ97X9r.js} +5 -5
  26. package/dist/assets/{index-BDrWWBpm.js.map → index-DSQ97X9r.js.map} +1 -1
  27. package/dist/assets/{jszip.min-DXkaXekE.js → jszip.min-Dbl4uSLp.js} +2 -2
  28. package/dist/assets/{jszip.min-DXkaXekE.js.map → jszip.min-Dbl4uSLp.js.map} +1 -1
  29. package/dist/assets/{node-ycUqmAzD.js → node-ChmrmGjj.js} +2 -2
  30. package/dist/assets/{node-ycUqmAzD.js.map → node-ChmrmGjj.js.map} +1 -1
  31. package/dist/assets/{selector-O1Ptygd7.js → selector-Czt9dG3s.js} +3 -3
  32. package/dist/assets/{selector-O1Ptygd7.js.map → selector-Czt9dG3s.js.map} +1 -1
  33. package/dist/assets/{table-D_bgCJ_7.js → table-ohurftRC.js} +2 -2
  34. package/dist/assets/{table-D_bgCJ_7.js.map → table-ohurftRC.js.map} +1 -1
  35. package/dist/index.html +3 -3
  36. package/package.json +1 -1
  37. package/dist/.nojekyll +0 -0
  38. package/dist/.spa +0 -0
  39. package/dist/CNAME +0 -1
  40. package/dist/assets/HomePage-dSVFbY_c.js +0 -118
  41. package/dist/favicon.svg +0 -5
package/dist/index.html CHANGED
@@ -1,15 +1,15 @@
1
1
  <!doctype html>
2
2
  <html lang="zh">
3
3
  <head>
4
- <script type="module" crossorigin src="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711546385152/files/dist/assets/polyfills-DAArZRyQ.js"></script>
4
+ <script type="module" crossorigin src="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711614525000/files/dist/assets/polyfills-DAArZRyQ.js"></script>
5
5
 
6
6
  <meta charset="UTF-8" />
7
7
  <link rel="icon" type="image/svg+xml" href="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711546385152/files/dist/favicon.svg" />
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
9
9
  <meta name="referrer" content="no-referrer" />
10
10
  <title>GKD</title>
11
- <script type="module" crossorigin src="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711546385152/files/dist/assets/index-BDrWWBpm.js"></script>
12
- <link rel="stylesheet" crossorigin href="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711546385152/files/dist/assets/index-BMcbNRUk.css">
11
+ <script type="module" crossorigin src="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711614525000/files/dist/assets/index-DSQ97X9r.js"></script>
12
+ <link rel="stylesheet" crossorigin href="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1711614525000/files/dist/assets/index-BMcbNRUk.css">
13
13
  </head>
14
14
 
15
15
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkd-kit/inspect",
3
- "version": "0.0.1711546385152",
3
+ "version": "0.0.1711614525000",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
package/dist/.nojekyll DELETED
File without changes
package/dist/.spa DELETED
File without changes
package/dist/CNAME DELETED
@@ -1 +0,0 @@
1
- i.gkd.li
@@ -1,118 +0,0 @@
1
- import{c as Ut,a as Dt,b as Xe,d as M,i as et,e as Te,f as O,g as tt,h as je,u as zt,j as dt,k as Ft,r as Me,t as Vt,l as $t,m as ue,n as Kt,o as Ae,p as D,q as G,s as q,v as Ie,w as J,N as Ht,x as Ot,y as Re,z as Jt,A as $,B as ce,C as me,D as y,E as k,F as c,G as $e,H as ft,I as ve,J as ye,K as A,L,M as V,O as ht,P as gt,Q as Wt,R as nt,S as jt,T as Yt,U as Qt,V as Gt,W as ot,X as qt,Y as Zt,Z as it,_ as X}from"./index-BDrWWBpm.js";import{u as Xt,_ as en,b as tn,a as nn,w as rt,c as on,s as at,d as rn}from"./ActionCard.vue_vue_type_script_setup_true_lang-DonzIU37.js";import{c as an,d as ln,g as lt}from"./fetch-BNVhYZ3y.js";import{u as j,N as sn,a as Pe,b as le}from"./node-ycUqmAzD.js";import{l as Le,N as Ke,u as un,a as ee}from"./index-C-6jXpav.js";import{i as cn,a as dn}from"./import-CATfG0QD.js";import{u as fn,N as hn,r as gn}from"./table-D_bgCJ_7.js";import"./jszip.min-DXkaXekE.js";import"./index-RwQljgyW.js";const wn={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},pn=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:i,textColor3:n}=e;return Object.assign(Object.assign({},wn),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:i,railBorderRadiusMedium:i,railBorderRadiusLarge:i,buttonBorderRadiusSmall:i,buttonBorderRadiusMedium:i,buttonBorderRadiusLarge:i,boxShadowFocus:`0 0 0 2px ${Dt(t,{alpha:.2})}`})},mn={name:"Switch",common:Ut,self:pn},vn=mn,yn=Xe("switch",`
2
- height: var(--n-height);
3
- min-width: var(--n-width);
4
- vertical-align: middle;
5
- user-select: none;
6
- -webkit-user-select: none;
7
- display: inline-flex;
8
- outline: none;
9
- justify-content: center;
10
- align-items: center;
11
- `,[M("children-placeholder",`
12
- height: var(--n-rail-height);
13
- display: flex;
14
- flex-direction: column;
15
- overflow: hidden;
16
- pointer-events: none;
17
- visibility: hidden;
18
- `),M("rail-placeholder",`
19
- display: flex;
20
- flex-wrap: none;
21
- `),M("button-placeholder",`
22
- width: calc(1.75 * var(--n-rail-height));
23
- height: var(--n-rail-height);
24
- `),Xe("base-loading",`
25
- position: absolute;
26
- top: 50%;
27
- left: 50%;
28
- transform: translateX(-50%) translateY(-50%);
29
- font-size: calc(var(--n-button-width) - 4px);
30
- color: var(--n-loading-color);
31
- transition: color .3s var(--n-bezier);
32
- `,[et({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",`
33
- transition: color .3s var(--n-bezier);
34
- color: var(--n-text-color);
35
- box-sizing: border-box;
36
- position: absolute;
37
- white-space: nowrap;
38
- top: 0;
39
- bottom: 0;
40
- display: flex;
41
- align-items: center;
42
- line-height: 1;
43
- `),M("checked",`
44
- right: 0;
45
- padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
46
- `),M("unchecked",`
47
- left: 0;
48
- justify-content: flex-end;
49
- padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
50
- `),Te("&:focus",[M("rail",`
51
- box-shadow: var(--n-box-shadow-focus);
52
- `)]),O("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),tt("disabled",[tt("icon",[O("rubber-band",[O("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[Te("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),O("active",[O("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[Te("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),O("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",`
53
- overflow: hidden;
54
- height: var(--n-rail-height);
55
- min-width: var(--n-rail-width);
56
- border-radius: var(--n-rail-border-radius);
57
- cursor: pointer;
58
- position: relative;
59
- transition:
60
- opacity .3s var(--n-bezier),
61
- background .3s var(--n-bezier),
62
- box-shadow .3s var(--n-bezier);
63
- background-color: var(--n-rail-color);
64
- `,[M("button-icon",`
65
- color: var(--n-icon-color);
66
- transition: color .3s var(--n-bezier);
67
- font-size: calc(var(--n-button-height) - 4px);
68
- position: absolute;
69
- left: 0;
70
- right: 0;
71
- top: 0;
72
- bottom: 0;
73
- display: flex;
74
- justify-content: center;
75
- align-items: center;
76
- line-height: 1;
77
- `,[et()]),M("button",`
78
- align-items: center;
79
- top: var(--n-offset);
80
- left: var(--n-offset);
81
- height: var(--n-button-height);
82
- width: var(--n-button-width-pressed);
83
- max-width: var(--n-button-width);
84
- border-radius: var(--n-button-border-radius);
85
- background-color: var(--n-button-color);
86
- box-shadow: var(--n-button-box-shadow);
87
- box-sizing: border-box;
88
- cursor: inherit;
89
- content: "";
90
- position: absolute;
91
- transition:
92
- background-color .3s var(--n-bezier),
93
- left .3s var(--n-bezier),
94
- opacity .3s var(--n-bezier),
95
- max-width .3s var(--n-bezier),
96
- box-shadow .3s var(--n-bezier);
97
- `)]),O("active",[M("rail","background-color: var(--n-rail-color-active);")]),O("loading",[M("rail",`
98
- cursor: wait;
99
- `)]),O("disabled",[M("rail",`
100
- cursor: not-allowed;
101
- opacity: .5;
102
- `)])]),bn=Object.assign(Object.assign({},dt.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let se;const Cn=je({name:"Switch",props:bn,setup(e){se===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?se=CSS.supports("width","max(1px)"):se=!1:se=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=zt(e),i=dt("Switch","-switch",yn,vn,e,t),n=Ft(e),{mergedSizeRef:o,mergedDisabledRef:a}=n,l=Me(e.defaultValue),s=Vt(e,"value"),g=$t(s,l),f=ue(()=>g.value===e.checkedValue),S=Me(!1),u=Me(!1),d=ue(()=>{const{railStyle:C}=e;if(C)return C({focused:u.value,checked:f.value})});function p(C){const{"onUpdate:value":U,onChange:R,onUpdateValue:z}=e,{nTriggerFormInput:K,nTriggerFormChange:P}=n;U&&Re(U,C),z&&Re(z,C),R&&Re(R,C),l.value=C,K(),P()}function B(){const{nTriggerFormFocus:C}=n;C()}function I(){const{nTriggerFormBlur:C}=n;C()}function v(){e.loading||a.value||(g.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function b(){u.value=!0,B()}function m(){u.value=!1,I(),S.value=!1}function w(C){e.loading||a.value||C.key===" "&&(g.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),S.value=!1)}function _(C){e.loading||a.value||C.key===" "&&(C.preventDefault(),S.value=!0)}const T=ue(()=>{const{value:C}=o,{self:{opacityDisabled:U,railColor:R,railColorActive:z,buttonBoxShadow:K,buttonColor:P,boxShadowFocus:re,loadingColor:Z,textColor:N,iconColor:h,[q("buttonHeight",C)]:E,[q("buttonWidth",C)]:At,[q("buttonWidthPressed",C)]:It,[q("railHeight",C)]:W,[q("railWidth",C)]:ae,[q("railBorderRadius",C)]:Rt,[q("buttonBorderRadius",C)]:Pt},common:{cubicBezierEaseInOut:Lt}}=i.value;let Ne,xe,_e;return se?(Ne=`calc((${W} - ${E}) / 2)`,xe=`max(${W}, ${E})`,_e=`max(${ae}, calc(${ae} + ${E} - ${W}))`):(Ne=Ie((J(W)-J(E))/2),xe=Ie(Math.max(J(W),J(E))),_e=J(W)>J(E)?ae:Ie(J(ae)+J(E)-J(W))),{"--n-bezier":Lt,"--n-button-border-radius":Pt,"--n-button-box-shadow":K,"--n-button-color":P,"--n-button-width":At,"--n-button-width-pressed":It,"--n-button-height":E,"--n-height":xe,"--n-offset":Ne,"--n-opacity-disabled":U,"--n-rail-border-radius":Rt,"--n-rail-color":R,"--n-rail-color-active":z,"--n-rail-height":W,"--n-rail-width":ae,"--n-width":_e,"--n-box-shadow-focus":re,"--n-loading-color":Z,"--n-text-color":N,"--n-icon-color":h}}),x=r?Kt("switch",ue(()=>o.value[0]),T,e):void 0;return{handleClick:v,handleBlur:m,handleFocus:b,handleKeyup:w,handleKeydown:_,mergedRailStyle:d,pressed:S,mergedClsPrefix:t,mergedValue:g,checked:f,mergedDisabled:a,cssVars:r?void 0:T,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:r,mergedRailStyle:i,onRender:n,$slots:o}=this;n==null||n();const{checked:a,unchecked:l,icon:s,"checked-icon":g,"unchecked-icon":f}=o,S=!(Ae(s)&&Ae(g)&&Ae(f));return D("div",{role:"switch","aria-checked":r,class:[`${e}-switch`,this.themeClass,S&&`${e}-switch--icon`,r&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},D("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:i},G(a,u=>G(l,d=>u||d?D("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},D("div",{class:`${e}-switch__rail-placeholder`},D("div",{class:`${e}-switch__button-placeholder`}),u),D("div",{class:`${e}-switch__rail-placeholder`},D("div",{class:`${e}-switch__button-placeholder`}),d)):null)),D("div",{class:`${e}-switch__button`},G(s,u=>G(g,d=>G(f,p=>D(Ht,null,{default:()=>this.loading?D(Ot,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(d||u)?D("div",{class:`${e}-switch__button-icon`,key:d?"checked-icon":"icon"},d||u):!this.checked&&(p||u)?D("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||u):null})))),G(a,u=>u&&D("div",{key:"checked",class:`${e}-switch__checked`},u)),G(l,u=>u&&D("div",{key:"unchecked",class:`${e}-switch__unchecked`},u)))))}});var he={},kn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},wt={},F={};let Ye;const Bn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];F.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};F.getSymbolTotalCodewords=function(t){return Bn[t]};F.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};F.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ye=t};F.isKanjiModeEnabled=function(){return typeof Ye<"u"};F.toSJIS=function(t){return Ye(t)};var ke={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},e.from=function(i,n){if(e.isValid(i))return i;try{return t(i)}catch{return n}}})(ke);function pt(){this.buffer=[],this.length=0}pt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var En=pt;function ge(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ge.prototype.set=function(e,t,r,i){const n=e*this.size+t;this.data[n]=r,i&&(this.reservedBit[n]=!0)};ge.prototype.get=function(e,t){return this.data[e*this.size+t]};ge.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ge.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Sn=ge,mt={};(function(e){const t=F.getSymbolSize;e.getRowColCoords=function(i){if(i===1)return[];const n=Math.floor(i/7)+2,o=t(i),a=o===145?26:Math.ceil((o-13)/(2*n-2))*2,l=[o-7];for(let s=1;s<n-1;s++)l[s]=l[s-1]-a;return l.push(6),l.reverse()},e.getPositions=function(i){const n=[],o=e.getRowColCoords(i),a=o.length;for(let l=0;l<a;l++)for(let s=0;s<a;s++)l===0&&s===0||l===0&&s===a-1||l===a-1&&s===0||n.push([o[l],o[s]]);return n}})(mt);var vt={};const Nn=F.getSymbolSize,st=7;vt.getPositions=function(t){const r=Nn(t);return[[0,0],[r-st,0],[0,r-st]]};var yt={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const o=n.size;let a=0,l=0,s=0,g=null,f=null;for(let S=0;S<o;S++){l=s=0,g=f=null;for(let u=0;u<o;u++){let d=n.get(S,u);d===g?l++:(l>=5&&(a+=t.N1+(l-5)),g=d,l=1),d=n.get(u,S),d===f?s++:(s>=5&&(a+=t.N1+(s-5)),f=d,s=1)}l>=5&&(a+=t.N1+(l-5)),s>=5&&(a+=t.N1+(s-5))}return a},e.getPenaltyN2=function(n){const o=n.size;let a=0;for(let l=0;l<o-1;l++)for(let s=0;s<o-1;s++){const g=n.get(l,s)+n.get(l,s+1)+n.get(l+1,s)+n.get(l+1,s+1);(g===4||g===0)&&a++}return a*t.N2},e.getPenaltyN3=function(n){const o=n.size;let a=0,l=0,s=0;for(let g=0;g<o;g++){l=s=0;for(let f=0;f<o;f++)l=l<<1&2047|n.get(g,f),f>=10&&(l===1488||l===93)&&a++,s=s<<1&2047|n.get(f,g),f>=10&&(s===1488||s===93)&&a++}return a*t.N3},e.getPenaltyN4=function(n){let o=0;const a=n.data.length;for(let s=0;s<a;s++)o+=n.data[s];return Math.abs(Math.ceil(o*100/a/5)-10)*t.N4};function r(i,n,o){switch(i){case e.Patterns.PATTERN000:return(n+o)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(n+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return n*o%2+n*o%3===0;case e.Patterns.PATTERN110:return(n*o%2+n*o%3)%2===0;case e.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}e.applyMask=function(n,o){const a=o.size;for(let l=0;l<a;l++)for(let s=0;s<a;s++)o.isReserved(s,l)||o.xor(s,l,r(n,s,l))},e.getBestMask=function(n,o){const a=Object.keys(e.Patterns).length;let l=0,s=1/0;for(let g=0;g<a;g++){o(g),e.applyMask(g,n);const f=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(g,n),f<s&&(s=f,l=g)}return l}})(yt);var Be={};const Y=ke,we=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],pe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Be.getBlocksCount=function(t,r){switch(r){case Y.L:return we[(t-1)*4+0];case Y.M:return we[(t-1)*4+1];case Y.Q:return we[(t-1)*4+2];case Y.H:return we[(t-1)*4+3];default:return}};Be.getTotalCodewordsCount=function(t,r){switch(r){case Y.L:return pe[(t-1)*4+0];case Y.M:return pe[(t-1)*4+1];case Y.Q:return pe[(t-1)*4+2];case Y.H:return pe[(t-1)*4+3];default:return}};var bt={},Ee={};const de=new Uint8Array(512),be=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)de[r]=t,be[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)de[r]=de[r-255]})();Ee.log=function(t){if(t<1)throw new Error("log("+t+")");return be[t]};Ee.exp=function(t){return de[t]};Ee.mul=function(t,r){return t===0||r===0?0:de[be[t]+be[r]]};(function(e){const t=Ee;e.mul=function(i,n){const o=new Uint8Array(i.length+n.length-1);for(let a=0;a<i.length;a++)for(let l=0;l<n.length;l++)o[a+l]^=t.mul(i[a],n[l]);return o},e.mod=function(i,n){let o=new Uint8Array(i);for(;o.length-n.length>=0;){const a=o[0];for(let s=0;s<n.length;s++)o[s]^=t.mul(n[s],a);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},e.generateECPolynomial=function(i){let n=new Uint8Array([1]);for(let o=0;o<i;o++)n=e.mul(n,new Uint8Array([1,t.exp(o)]));return n}})(bt);const Ct=bt;function Qe(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Qe.prototype.initialize=function(t){this.degree=t,this.genPoly=Ct.generateECPolynomial(this.degree)};Qe.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const i=Ct.mod(r,this.genPoly),n=this.degree-i.length;if(n>0){const o=new Uint8Array(this.degree);return o.set(i,n),o}return i};var xn=Qe,kt={},Q={},Ge={};Ge.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var H={};const Bt="[0-9]+",_n="[A-Z $%*+\\-./:]+";let fe="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";fe=fe.replace(/u/g,"\\u");const Tn="(?:(?![A-Z0-9 $%*+\\-./:]|"+fe+`)(?:.|[\r
103
- ]))+`;H.KANJI=new RegExp(fe,"g");H.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");H.BYTE=new RegExp(Tn,"g");H.NUMERIC=new RegExp(Bt,"g");H.ALPHANUMERIC=new RegExp(_n,"g");const Mn=new RegExp("^"+fe+"$"),An=new RegExp("^"+Bt+"$"),In=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");H.testKanji=function(t){return Mn.test(t)};H.testNumeric=function(t){return An.test(t)};H.testAlphanumeric=function(t){return In.test(t)};(function(e){const t=Ge,r=H;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,a){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?o.ccBits[0]:a<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return r.testNumeric(o)?e.NUMERIC:r.testAlphanumeric(o)?e.ALPHANUMERIC:r.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(o,a){if(e.isValid(o))return o;try{return i(o)}catch{return a}}})(Q);(function(e){const t=F,r=Be,i=ke,n=Q,o=Ge,a=7973,l=t.getBCHDigit(a);function s(u,d,p){for(let B=1;B<=40;B++)if(d<=e.getCapacity(B,p,u))return B}function g(u,d){return n.getCharCountIndicator(u,d)+4}function f(u,d){let p=0;return u.forEach(function(B){const I=g(B.mode,d);p+=I+B.getBitsLength()}),p}function S(u,d){for(let p=1;p<=40;p++)if(f(u,p)<=e.getCapacity(p,d,n.MIXED))return p}e.from=function(d,p){return o.isValid(d)?parseInt(d,10):p},e.getCapacity=function(d,p,B){if(!o.isValid(d))throw new Error("Invalid QR Code version");typeof B>"u"&&(B=n.BYTE);const I=t.getSymbolTotalCodewords(d),v=r.getTotalCodewordsCount(d,p),b=(I-v)*8;if(B===n.MIXED)return b;const m=b-g(B,d);switch(B){case n.NUMERIC:return Math.floor(m/10*3);case n.ALPHANUMERIC:return Math.floor(m/11*2);case n.KANJI:return Math.floor(m/13);case n.BYTE:default:return Math.floor(m/8)}},e.getBestVersionForData=function(d,p){let B;const I=i.from(p,i.M);if(Array.isArray(d)){if(d.length>1)return S(d,I);if(d.length===0)return 1;B=d[0]}else B=d;return s(B.mode,B.getLength(),I)},e.getEncodedBits=function(d){if(!o.isValid(d)||d<7)throw new Error("Invalid QR Code version");let p=d<<12;for(;t.getBCHDigit(p)-l>=0;)p^=a<<t.getBCHDigit(p)-l;return d<<12|p}})(kt);var Et={};const He=F,St=1335,Rn=21522,ut=He.getBCHDigit(St);Et.getEncodedBits=function(t,r){const i=t.bit<<3|r;let n=i<<10;for(;He.getBCHDigit(n)-ut>=0;)n^=St<<He.getBCHDigit(n)-ut;return(i<<10|n)^Rn};var Nt={};const Pn=Q;function te(e){this.mode=Pn.NUMERIC,this.data=e.toString()}te.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};te.prototype.getLength=function(){return this.data.length};te.prototype.getBitsLength=function(){return te.getBitsLength(this.data.length)};te.prototype.write=function(t){let r,i,n;for(r=0;r+3<=this.data.length;r+=3)i=this.data.substr(r,3),n=parseInt(i,10),t.put(n,10);const o=this.data.length-r;o>0&&(i=this.data.substr(r),n=parseInt(i,10),t.put(n,o*3+1))};var Ln=te;const Un=Q,Ue=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ne(e){this.mode=Un.ALPHANUMERIC,this.data=e}ne.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ne.prototype.getLength=function(){return this.data.length};ne.prototype.getBitsLength=function(){return ne.getBitsLength(this.data.length)};ne.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let i=Ue.indexOf(this.data[r])*45;i+=Ue.indexOf(this.data[r+1]),t.put(i,11)}this.data.length%2&&t.put(Ue.indexOf(this.data[r]),6)};var Dn=ne,zn=function(t){for(var r=[],i=t.length,n=0;n<i;n++){var o=t.charCodeAt(n);if(o>=55296&&o<=56319&&i>n+1){var a=t.charCodeAt(n+1);a>=56320&&a<=57343&&(o=(o-55296)*1024+a-56320+65536,n+=1)}if(o<128){r.push(o);continue}if(o<2048){r.push(o>>6|192),r.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128);continue}if(o>=65536&&o<=1114111){r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const Fn=zn,Vn=Q;function oe(e){this.mode=Vn.BYTE,typeof e=="string"&&(e=Fn(e)),this.data=new Uint8Array(e)}oe.getBitsLength=function(t){return t*8};oe.prototype.getLength=function(){return this.data.length};oe.prototype.getBitsLength=function(){return oe.getBitsLength(this.data.length)};oe.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var $n=oe;const Kn=Q,Hn=F;function ie(e){this.mode=Kn.KANJI,this.data=e}ie.getBitsLength=function(t){return t*13};ie.prototype.getLength=function(){return this.data.length};ie.prototype.getBitsLength=function(){return ie.getBitsLength(this.data.length)};ie.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=Hn.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
104
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var On=ie,xt={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,i,n){var o={},a={};a[i]=0;var l=t.PriorityQueue.make();l.push(i,0);for(var s,g,f,S,u,d,p,B,I;!l.empty();){s=l.pop(),g=s.value,S=s.cost,u=r[g]||{};for(f in u)u.hasOwnProperty(f)&&(d=u[f],p=S+d,B=a[f],I=typeof a[f]>"u",(I||B>p)&&(a[f]=p,l.push(f,p),o[f]=g))}if(typeof n<"u"&&typeof a[n]>"u"){var v=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(v)}return o},extract_shortest_path_from_predecessor_list:function(r,i){for(var n=[],o=i;o;)n.push(o),r[o],o=r[o];return n.reverse(),n},find_path:function(r,i,n){var o=t.single_source_shortest_paths(r,i,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(r){var i=t.PriorityQueue,n={},o;r=r||{};for(o in i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.queue=[],n.sorter=r.sorter||i.default_sorter,n},default_sorter:function(r,i){return r.cost-i.cost},push:function(r,i){var n={value:r,cost:i};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(xt);var Jn=xt.exports;(function(e){const t=Q,r=Ln,i=Dn,n=$n,o=On,a=H,l=F,s=Jn;function g(v){return unescape(encodeURIComponent(v)).length}function f(v,b,m){const w=[];let _;for(;(_=v.exec(m))!==null;)w.push({data:_[0],index:_.index,mode:b,length:_[0].length});return w}function S(v){const b=f(a.NUMERIC,t.NUMERIC,v),m=f(a.ALPHANUMERIC,t.ALPHANUMERIC,v);let w,_;return l.isKanjiModeEnabled()?(w=f(a.BYTE,t.BYTE,v),_=f(a.KANJI,t.KANJI,v)):(w=f(a.BYTE_KANJI,t.BYTE,v),_=[]),b.concat(m,w,_).sort(function(x,C){return x.index-C.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function u(v,b){switch(b){case t.NUMERIC:return r.getBitsLength(v);case t.ALPHANUMERIC:return i.getBitsLength(v);case t.KANJI:return o.getBitsLength(v);case t.BYTE:return n.getBitsLength(v)}}function d(v){return v.reduce(function(b,m){const w=b.length-1>=0?b[b.length-1]:null;return w&&w.mode===m.mode?(b[b.length-1].data+=m.data,b):(b.push(m),b)},[])}function p(v){const b=[];for(let m=0;m<v.length;m++){const w=v[m];switch(w.mode){case t.NUMERIC:b.push([w,{data:w.data,mode:t.ALPHANUMERIC,length:w.length},{data:w.data,mode:t.BYTE,length:w.length}]);break;case t.ALPHANUMERIC:b.push([w,{data:w.data,mode:t.BYTE,length:w.length}]);break;case t.KANJI:b.push([w,{data:w.data,mode:t.BYTE,length:g(w.data)}]);break;case t.BYTE:b.push([{data:w.data,mode:t.BYTE,length:g(w.data)}])}}return b}function B(v,b){const m={},w={start:{}};let _=["start"];for(let T=0;T<v.length;T++){const x=v[T],C=[];for(let U=0;U<x.length;U++){const R=x[U],z=""+T+U;C.push(z),m[z]={node:R,lastCount:0},w[z]={};for(let K=0;K<_.length;K++){const P=_[K];m[P]&&m[P].node.mode===R.mode?(w[P][z]=u(m[P].lastCount+R.length,R.mode)-u(m[P].lastCount,R.mode),m[P].lastCount+=R.length):(m[P]&&(m[P].lastCount=R.length),w[P][z]=u(R.length,R.mode)+4+t.getCharCountIndicator(R.mode,b))}}_=C}for(let T=0;T<_.length;T++)w[_[T]].end=0;return{map:w,table:m}}function I(v,b){let m;const w=t.getBestModeForData(v);if(m=t.from(b,w),m!==t.BYTE&&m.bit<w.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(m)+`.
105
- Suggested mode is: `+t.toString(w));switch(m===t.KANJI&&!l.isKanjiModeEnabled()&&(m=t.BYTE),m){case t.NUMERIC:return new r(v);case t.ALPHANUMERIC:return new i(v);case t.KANJI:return new o(v);case t.BYTE:return new n(v)}}e.fromArray=function(b){return b.reduce(function(m,w){return typeof w=="string"?m.push(I(w,null)):w.data&&m.push(I(w.data,w.mode)),m},[])},e.fromString=function(b,m){const w=S(b,l.isKanjiModeEnabled()),_=p(w),T=B(_,m),x=s.find_path(T.map,"start","end"),C=[];for(let U=1;U<x.length-1;U++)C.push(T.table[x[U]].node);return e.fromArray(d(C))},e.rawSplit=function(b){return e.fromArray(S(b,l.isKanjiModeEnabled()))}})(Nt);const Se=F,De=ke,Wn=En,jn=Sn,Yn=mt,Qn=vt,Oe=yt,Je=Be,Gn=xn,Ce=kt,qn=Et,Zn=Q,ze=Nt;function Xn(e,t){const r=e.size,i=Qn.getPositions(t);for(let n=0;n<i.length;n++){const o=i[n][0],a=i[n][1];for(let l=-1;l<=7;l++)if(!(o+l<=-1||r<=o+l))for(let s=-1;s<=7;s++)a+s<=-1||r<=a+s||(l>=0&&l<=6&&(s===0||s===6)||s>=0&&s<=6&&(l===0||l===6)||l>=2&&l<=4&&s>=2&&s<=4?e.set(o+l,a+s,!0,!0):e.set(o+l,a+s,!1,!0))}}function eo(e){const t=e.size;for(let r=8;r<t-8;r++){const i=r%2===0;e.set(r,6,i,!0),e.set(6,r,i,!0)}}function to(e,t){const r=Yn.getPositions(t);for(let i=0;i<r.length;i++){const n=r[i][0],o=r[i][1];for(let a=-2;a<=2;a++)for(let l=-2;l<=2;l++)a===-2||a===2||l===-2||l===2||a===0&&l===0?e.set(n+a,o+l,!0,!0):e.set(n+a,o+l,!1,!0)}}function no(e,t){const r=e.size,i=Ce.getEncodedBits(t);let n,o,a;for(let l=0;l<18;l++)n=Math.floor(l/3),o=l%3+r-8-3,a=(i>>l&1)===1,e.set(n,o,a,!0),e.set(o,n,a,!0)}function Fe(e,t,r){const i=e.size,n=qn.getEncodedBits(t,r);let o,a;for(o=0;o<15;o++)a=(n>>o&1)===1,o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(i-15+o,8,a,!0),o<8?e.set(8,i-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(i-8,8,1,!0)}function oo(e,t){const r=e.size;let i=-1,n=r-1,o=7,a=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let s=0;s<2;s++)if(!e.isReserved(n,l-s)){let g=!1;a<t.length&&(g=(t[a]>>>o&1)===1),e.set(n,l-s,g),o--,o===-1&&(a++,o=7)}if(n+=i,n<0||r<=n){n-=i,i=-i;break}}}function io(e,t,r){const i=new Wn;r.forEach(function(s){i.put(s.mode.bit,4),i.put(s.getLength(),Zn.getCharCountIndicator(s.mode,e)),s.write(i)});const n=Se.getSymbolTotalCodewords(e),o=Je.getTotalCodewordsCount(e,t),a=(n-o)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const l=(a-i.getLengthInBits())/8;for(let s=0;s<l;s++)i.put(s%2?17:236,8);return ro(i,e,t)}function ro(e,t,r){const i=Se.getSymbolTotalCodewords(t),n=Je.getTotalCodewordsCount(t,r),o=i-n,a=Je.getBlocksCount(t,r),l=i%a,s=a-l,g=Math.floor(i/a),f=Math.floor(o/a),S=f+1,u=g-f,d=new Gn(u);let p=0;const B=new Array(a),I=new Array(a);let v=0;const b=new Uint8Array(e.buffer);for(let x=0;x<a;x++){const C=x<s?f:S;B[x]=b.slice(p,p+C),I[x]=d.encode(B[x]),p+=C,v=Math.max(v,C)}const m=new Uint8Array(i);let w=0,_,T;for(_=0;_<v;_++)for(T=0;T<a;T++)_<B[T].length&&(m[w++]=B[T][_]);for(_=0;_<u;_++)for(T=0;T<a;T++)m[w++]=I[T][_];return m}function ao(e,t,r,i){let n;if(Array.isArray(e))n=ze.fromArray(e);else if(typeof e=="string"){let g=t;if(!g){const f=ze.rawSplit(e);g=Ce.getBestVersionForData(f,r)}n=ze.fromString(e,g||40)}else throw new Error("Invalid data");const o=Ce.getBestVersionForData(n,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
106
- The chosen QR Code version cannot contain this amount of data.
107
- Minimum version required to store current data is: `+o+`.
108
- `);const a=io(t,r,n),l=Se.getSymbolSize(t),s=new jn(l);return Xn(s,t),eo(s),to(s,t),Fe(s,r,0),t>=7&&no(s,t),oo(s,a),isNaN(i)&&(i=Oe.getBestMask(s,Fe.bind(null,s,r))),Oe.applyMask(i,s),Fe(s,r,i),{modules:s,version:t,errorCorrectionLevel:r,maskPattern:i,segments:n}}wt.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let i=De.M,n,o;return typeof r<"u"&&(i=De.from(r.errorCorrectionLevel,De.M),n=Ce.from(r.version),o=Oe.from(r.maskPattern),r.toSJISFunc&&Se.setToSJISFunction(r.toSJISFunc)),ao(t,n,i,o)};var _t={},qe={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let i=r.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+r);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(o){return[o,o]}))),i.length===6&&i.push("F","F");const n=parseInt(i.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+i.slice(0,6).join("")}}e.getOptions=function(i){i||(i={}),i.color||(i.color={});const n=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,o=i.width&&i.width>=21?i.width:void 0,a=i.scale||4;return{width:o,scale:o?4:a,margin:n,color:{dark:t(i.color.dark||"#000000ff"),light:t(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},e.getScale=function(i,n){return n.width&&n.width>=i+n.margin*2?n.width/(i+n.margin*2):n.scale},e.getImageWidth=function(i,n){const o=e.getScale(i,n);return Math.floor((i+n.margin*2)*o)},e.qrToImageData=function(i,n,o){const a=n.modules.size,l=n.modules.data,s=e.getScale(a,o),g=Math.floor((a+o.margin*2)*s),f=o.margin*s,S=[o.color.light,o.color.dark];for(let u=0;u<g;u++)for(let d=0;d<g;d++){let p=(u*g+d)*4,B=o.color.light;if(u>=f&&d>=f&&u<g-f&&d<g-f){const I=Math.floor((u-f)/s),v=Math.floor((d-f)/s);B=S[l[I*a+v]?1:0]}i[p++]=B.r,i[p++]=B.g,i[p++]=B.b,i[p]=B.a}}})(qe);(function(e){const t=qe;function r(n,o,a){n.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=a,o.width=a,o.style.height=a+"px",o.style.width=a+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,a,l){let s=l,g=a;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(g=i()),s=t.getOptions(s);const f=t.getImageWidth(o.modules.size,s),S=g.getContext("2d"),u=S.createImageData(f,f);return t.qrToImageData(u.data,o,s),r(S,g,f),S.putImageData(u,0,0),g},e.renderToDataURL=function(o,a,l){let s=l;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const g=e.render(o,a,s),f=s.type||"image/png",S=s.rendererOpts||{};return g.toDataURL(f,S.quality)}})(_t);var Tt={};const lo=qe;function ct(e,t){const r=e.a/255,i=t+'="'+e.hex+'"';return r<1?i+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function Ve(e,t,r){let i=e+t;return typeof r<"u"&&(i+=" "+r),i}function so(e,t,r){let i="",n=0,o=!1,a=0;for(let l=0;l<e.length;l++){const s=Math.floor(l%t),g=Math.floor(l/t);!s&&!o&&(o=!0),e[l]?(a++,l>0&&s>0&&e[l-1]||(i+=o?Ve("M",s+r,.5+g+r):Ve("m",n,0),n=0,o=!1),s+1<t&&e[l+1]||(i+=Ve("h",a),a=0)):n++}return i}Tt.render=function(t,r,i){const n=lo.getOptions(r),o=t.modules.size,a=t.modules.data,l=o+n.margin*2,s=n.color.light.a?"<path "+ct(n.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",g="<path "+ct(n.color.dark,"stroke")+' d="'+so(a,o,n.margin)+'"/>',f='viewBox="0 0 '+l+" "+l+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+f+' shape-rendering="crispEdges">'+s+g+`</svg>
109
- `;return typeof i=="function"&&i(null,u),u};const uo=kn,We=wt,Mt=_t,co=Tt;function Ze(e,t,r,i,n){const o=[].slice.call(arguments,1),a=o.length,l=typeof o[a-1]=="function";if(!l&&!uo())throw new Error("Callback required as last argument");if(l){if(a<2)throw new Error("Too few arguments provided");a===2?(n=r,r=t,t=i=void 0):a===3&&(t.getContext&&typeof n>"u"?(n=i,i=void 0):(n=i,i=r,r=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(r=t,t=i=void 0):a===2&&!t.getContext&&(i=r,r=t,t=void 0),new Promise(function(s,g){try{const f=We.create(r,i);s(e(f,t,i))}catch(f){g(f)}})}try{const s=We.create(r,i);n(null,e(s,t,i))}catch(s){n(s)}}he.create=We.create;he.toCanvas=Ze.bind(null,Mt.render);he.toDataURL=Ze.bind(null,Mt.renderToDataURL);he.toString=Ze.bind(null,function(e,t,r){return co.render(e,r)});const fo=["src"],ho=je({__name:"BuildShareDlg",props:{show:{default:!1},showModifiers:{}},emits:["update:show"],setup(e){const t=ft(),r=Jt(e,"show"),i=$(""),n=$(!1),o=un(()=>{try{Le.parse(i.value),n.value=!1}catch{n.value=!0}},500);ce(()=>{i.value.trim()?o():n.value=!0});const a=$(!1),l=$(""),s=$("");ce(()=>{l.value?he.toDataURL(l.value,{width:256,margin:2}).then(S=>{s.value=S}):s.value=""});const g=()=>{an(l.value),a.value=!1},f=j(async()=>{const S=Le.parse(i.value),u=await Xt(new TextEncoder().encode(Le.stringify({data:S,ctime:Date.now(),type:"share"})),"file.txt","text/plain"),d=location.origin+t.resolve(`/s/${u.id}`).href;l.value=d,a.value=!0});return(S,u)=>(ve(),me($e,null,[y(c(ye),{show:r.value,"onUpdate:show":u[1]||(u[1]=d=>r.value=d),preset:"dialog",title:"分享规则",positiveText:c(f).loading?"分享中...":"分享",onPositiveClick:c(f).invoke,loading:c(f).loading,positiveButtonProps:{disabled:n.value},style:{width:"800px"},onAfterLeave:u[2]||(u[2]=d=>i.value="")},{default:k(()=>[y(c(Ke),{class:"gkd_code h-[calc(var(--gkd-height)*0.6)]",type:"textarea","show-count":"",value:i.value,"onUpdate:value":u[0]||(u[0]=d=>{c(f).loading||(i.value=d)}),placeholder:"请输入需要分享的规则"},null,8,["value"])]),_:1},8,["show","positiveText","onPositiveClick","loading","positiveButtonProps"]),y(c(ye),{show:a.value,"onUpdate:show":u[3]||(u[3]=d=>a.value=d),preset:"dialog",title:"分享成功",positiveText:"复制并关闭",negativeText:"重新分享",onPositiveClick:g,onNegativeClick:u[4]||(u[4]=d=>{a.value=!1,i.value="",r.value=!0}),onAfterLeave:u[5]||(u[5]=d=>l.value=""),maskClosable:!1},{default:k(()=>[A("div",null,[y(c(L),{text:"",tag:"a",href:l.value,target:"_blank",type:"primary"},{default:k(()=>[V(ht(l.value),1)]),_:1},8,["href"]),s.value?(ve(),me("img",{key:0,src:s.value,"size-200px":"",block:""},null,8,fo)):gt("",!0)])]),_:1},8,["show"])],64))}}),go={flex:"","flex-col":"","p-10px":"","gap-10px":"","h-full":""},wo={flex:""},po=A("svg",{viewBox:"0 0 32 32"},[A("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1),mo={"h-full":"",flex:"","flex-items-center":""},vo=A("div",{"flex-1":""},null,-1),yo=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1),bo=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[A("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"}),A("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"})],-1),Co=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},[A("path",{d:"M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4c-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8c-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6c-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z",fill:"currentColor"})],-1),ko=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1),Bo={href:"https://github.com/gkd-kit/inspect",target:"_blank",rel:"noopener noreferrer"},Eo=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 496 512"},[A("path",{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6c-3.3.3-5.6-1.3-5.6-3.6c0-2 2.3-3.6 5.2-3.6c3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9c2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9c.3 2 2.9 3.3 5.9 2.6c2.9-.7 4.9-2.6 4.6-4.6c-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2c12.8 2.3 17.3-5.6 17.3-12.1c0-6.2-.3-40.4-.3-61.4c0 0-70 15-84.7-29.8c0 0-11.4-29.1-27.8-36.6c0 0-22.9-15.7 1.6-15.4c0 0 24.9 2 38.6 25.8c21.9 38.6 58.6 27.5 72.9 20.9c2.3-16 8.8-27.1 16-33.7c-55.9-6.2-112.3-14.3-112.3-110.5c0-27.5 7.6-41.3 23.6-58.9c-2.6-6.5-11.1-33.3 2.6-67.9c20.9-6.5 69 27 69 27c20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27c13.7 34.7 5.2 61.4 2.6 67.9c16 17.7 25.8 31.5 25.8 58.9c0 96.5-58.9 104.2-114.8 110.5c9.2 7.9 17 22.9 17 46.4c0 33.7-.3 75.4-.3 83.6c0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2c1.6 1.6 3.9 2.3 5.2 1c1.3-1 1-3.3-.7-5.2c-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9c1.6 1 3.6.7 4.3-.7c.7-1.3-.3-2.9-2.3-3.9c-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2c2.3 2.3 5.2 2.6 6.5 1c1.3-1.3.7-4.3-1.3-6.2c-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9c1.6 2.3 4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2c-1.4-2.3-4-3.3-5.6-2z",fill:"currentColor"})],-1),So=A("div",{"h-1px":"","my-10px":"",bg:"#eee"},null,-1),No=A("div",{"h-1px":"","my-10px":"",bg:"#eee"},null,-1),xo={flex:"","gap-10px":""},_o=A("div",null,"打开快照页面自动生成分享链接(请确保不含隐私)",-1),zo=je({__name:"HomePage",setup(e){const t=ft(),r=$([]),i=$(!0),n=async()=>{i.value=!0,r.value=(await Qt.getAllItems()).reverse(),x.value=[],i.value=!1};Wt(n);const o=nt({query:"",actualQuery:"",updateQuery:()=>{o.actualQuery=o.query.trim(),x.value=[]}}),a=ue(()=>{const N=o.actualQuery;return N?r.value.filter(h=>(h.appName||"").includes(N)||(h.appId||"").includes(N)||(h.activityId||"").includes(N)):r.value}),l=j(async()=>{await cn(),await n()}),{activityIdCol:s,appIdCol:g,appNameCol:f,ctimeCol:S,mtimeCol:u,deviceCol:d,appVersionCodeCol:p,appVersionNameCol:B,resetColWidth:I}=fn();ce(()=>{const N=a.value.reduce((h,E)=>(h.add(gn(E)),h),new Set);if(N.size<=1){d.filterOptions=void 0;return}d.filterOptions=[...N.values()].map(h=>({value:h,label:h}))}),ce(()=>{const N=a.value.reduce((h,E)=>(h.add(E.appName),h),new Set);if(N.size<=1){f.filterOptions=void 0;return}f.filterOptions=[...N.values()].map(h=>({value:h,label:h}))}),ce(()=>{const N=a.value.reduce((h,E)=>(h.add(E.activityId),h),new Set);if(N.size<=1){s.filterOptions=void 0;return}s.filterOptions=[...N.values()].map(h=>({value:h,label:h}))});const v=jt([{type:"selection"},S,u,d,f,g,p,B,s,{key:"actions",title:"操作",fixed:"right",width:"255px",render(N){return y(en,{snapshot:N,onDelete:n},null)}}]),b=nt({page:1,pageSize:50,showSizePicker:!0,pageSizes:[50,100],onChange:N=>{b.page=N},onUpdatePageSize:N=>{b.pageSize=N,b.page=1}});Yt(b,I);const m=N=>{[S,u].forEach(h=>{N.columnKey!=h.key?h.sortOrder=void 0:h.sortOrder=N.order})};u.sortOrder="descend";const w=$(!1),_=$(""),T=j(async()=>{const N=_.value.trim().split(`
110
- `).map(h=>h.trim()).filter(h=>Gt(h));N.length!=0&&(await dn(N),await n(),_.value="")}),x=$([]),C=()=>Promise.all(x.value.map(N=>ot.getItem(N))),U=j(async()=>{await new Promise((N,h)=>{ln.warning({title:"删除",content:`是否批量删除 ${x.value.length} 个快照`,negativeText:"取消",positiveText:"确认",onClose:h,onEsc:h,onMaskClick:h,onNegativeClick:h,onPositiveClick:N})}),await Promise.all(x.value.map(N=>ot.removeItem(N))),await n()}),R=j(async()=>{await tn(await C())}),z=j(async()=>{await nn(await C())}),K=j(async()=>{await rt();const N=await on(await C());at({content:N.map(h=>lt(t,h)).join(`
111
- `)+`
112
- `})}),P=j(async()=>{await rt();const N=await rn(await C());at({content:N.map(h=>lt(t,h)).join(`
113
- `)+`
114
- `})}),re=$(!1),Z=$(!1);return(N,h)=>(ve(),me($e,null,[A("div",go,[A("div",wo,[y(c(le),null,{default:k(()=>[y(c(sn),null,{default:k(()=>[y(c(Ke),{placeholder:"请输入应用名称/应用ID/界面ID",clearable:"",class:"min-w-320px",value:c(o).query,"onUpdate:value":h[0]||(h[0]=E=>c(o).query=E),onKeyup:qt(c(o).updateQuery,["enter"]),onChange:c(o).updateQuery},null,8,["value","onKeyup","onChange"]),y(c(L),{onClick:c(o).updateQuery},{icon:k(()=>[y(c(ee),null,{default:k(()=>[po]),_:1})]),_:1},8,["onClick"])]),_:1}),x.value.length?(ve(),me($e,{key:0},[y(c(Pe),null,{trigger:k(()=>[y(c(L),null,{default:k(()=>[V(" 批量下载 ")]),_:1})]),default:k(()=>[y(c(le),{vertical:""},{default:k(()=>[y(c(L),{onClick:c(z).invoke,loading:c(z).loading},{default:k(()=>[V(" 批量下载-快照 ")]),_:1},8,["onClick","loading"]),y(c(L),{onClick:c(R).invoke,loading:c(R).loading},{default:k(()=>[V(" 批量下载-图片 ")]),_:1},8,["onClick","loading"])]),_:1})]),_:1}),y(c(Pe),null,{trigger:k(()=>[y(c(L),null,{default:k(()=>[V(" 批量分享 ")]),_:1})]),default:k(()=>[y(c(le),{vertical:""},{default:k(()=>[y(c(L),{onClick:c(P).invoke,loading:c(P).loading},{default:k(()=>[V(" 批量生成链接-快照 ")]),_:1},8,["onClick","loading"]),y(c(L),{onClick:c(K).invoke,loading:c(K).loading},{default:k(()=>[V(" 批量生成链接-图片 ")]),_:1},8,["onClick","loading"])]),_:1})]),_:1}),y(c(L),{onClick:c(U).invoke},{default:k(()=>[V(" 批量删除 ")]),_:1},8,["onClick"]),A("div",mo,ht(`已选中 ${x.value.length} 个快照`),1)],64)):gt("",!0)]),_:1}),vo,y(c(le),null,{default:k(()=>[y(c(L),{title:"设置",onClick:h[1]||(h[1]=E=>Z.value=!0)},{icon:k(()=>[y(c(ee),null,{default:k(()=>[yo]),_:1})]),_:1}),y(c(Pe),null,{trigger:k(()=>[y(c(L),null,{icon:k(()=>[y(c(ee),null,{default:k(()=>[bo]),_:1})]),_:1})]),default:k(()=>[y(c(le),{vertical:""},{default:k(()=>[y(c(L),{onClick:c(l).invoke,loading:c(l).loading},{default:k(()=>[V(" 导入本地文件 ")]),_:1},8,["onClick","loading"]),y(c(L),{onClick:h[2]||(h[2]=E=>w.value=!0),loading:c(T).loading},{default:k(()=>[V(" 导入网络文件 ")]),_:1},8,["loading"])]),_:1})]),_:1}),y(c(Zt),{to:"/device",title:"连接设备"},{default:k(()=>[y(c(L),null,{icon:k(()=>[y(c(ee),null,{default:k(()=>[Co]),_:1})]),_:1})]),_:1}),y(c(L),{title:"创建分享",onClick:h[3]||(h[3]=E=>re.value=!0)},{icon:k(()=>[y(c(ee),null,{default:k(()=>[ko]),_:1})]),_:1}),A("a",Bo,[y(c(L),null,{icon:k(()=>[y(c(ee),null,{default:k(()=>[Eo]),_:1})]),_:1})])]),_:1})]),y(c(hn),{striped:"",data:a.value,columns:v,scrollX:1800,pagination:c(b),checkedRowKeys:x.value,"onUpdate:checkedRowKeys":h[4]||(h[4]=E=>x.value=E),rowKey:E=>E.id,"onUpdate:sorter":m,size:"small",class:"flex-1",flexHeight:"",loading:i.value},null,8,["data","columns","pagination","checkedRowKeys","rowKey","loading"])]),y(c(ye),{show:w.value,"onUpdate:show":h[6]||(h[6]=E=>w.value=E),preset:"dialog",title:"导入网络文件",showIcon:!1,positiveText:"确认",negativeText:"取消",style:{width:"800px"},onPositiveClick:c(T).invoke,loading:c(T).loading,onAfterLeave:h[7]||(h[7]=E=>_.value="")},{default:k(()=>[y(c(Ke),{value:_.value,"onUpdate:value":h[5]||(h[5]=E=>{c(T).loading||(_.value=E)}),type:"textarea",placeholder:`仅支持ZIP文件链接
115
- 每行一个
116
- 空白行自动忽略
117
- 非法链接行自动忽略`,autosize:{minRows:8,maxRows:16},inputProps:{style:"white-space: nowrap;"}},null,8,["value"])]),_:1},8,["show","onPositiveClick","loading"]),y(ho,{show:re.value,"onUpdate:show":h[8]||(h[8]=E=>re.value=E)},null,8,["show"]),y(c(ye),{show:Z.value,"onUpdate:show":h[12]||(h[12]=E=>Z.value=E),preset:"dialog",title:"设置",showIcon:!1,positiveText:"关闭",style:{width:"600px"},onPositiveClick:h[13]||(h[13]=E=>Z.value=!1)},{default:k(()=>[y(c(it),{checked:c(X).ignoreUploadWarn,"onUpdate:checked":h[9]||(h[9]=E=>c(X).ignoreUploadWarn=E)},{default:k(()=>[V(" 关闭生成分享链接弹窗提醒 ")]),_:1},8,["checked"]),So,y(c(it),{checked:c(X).ignoreWasmWarn,"onUpdate:checked":h[10]||(h[10]=E=>c(X).ignoreWasmWarn=E)},{default:k(()=>[V(" 关闭浏览器版本正则表达式 WASM(GC) 提醒 ")]),_:1},8,["checked"]),No,A("div",xo,[y(c(Cn),{value:c(X).autoUploadImport,"onUpdate:value":h[11]||(h[11]=E=>c(X).autoUploadImport=E)},null,8,["value"]),_o])]),_:1},8,["show"])],64))}});export{zo as default};
118
- //# sourceMappingURL=HomePage-dSVFbY_c.js.map
package/dist/favicon.svg DELETED
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
2
- <path
3
- d="M29.83 20l.34-2l-5.17-.85V13v-.23l5.06-1.36l-.51-1.93l-4.83 1.29A9 9 0 0 0 20 5V2h-2v2.23a8.81 8.81 0 0 0-4 0V2h-2v3a9 9 0 0 0-4.71 5.82L2.46 9.48L2 11.41l5 1.36V17.15L1.84 18l.32 2L7 19.18a8.9 8.9 0 0 0 .82 3.57l-4.53 4.54l1.42 1.42l4.19-4.2a9 9 0 0 0 14.2 0l4.19 4.2l1.42-1.42l-4.54-4.54a8.9 8.9 0 0 0 .83-3.57zM15 25.92A7 7 0 0 1 9 19v-6h6zM9.29 11a7 7 0 0 1 13.42 0zM23 19a7 7 0 0 1-6 6.92V13h6z"
4
- fill="currentColor"></path>
5
- </svg>