@gkd-kit/docs 0.0.1706793382229 → 0.0.1706797831982

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/.vitepress/dist/404.html +4 -4
  2. package/.vitepress/dist/api/index.html +7 -7
  3. package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
  4. package/.vitepress/dist/api/type-aliases/RawApp.html +7 -7
  5. package/.vitepress/dist/api/type-aliases/RawAppGroup.html +7 -7
  6. package/.vitepress/dist/api/type-aliases/RawAppRule.html +7 -7
  7. package/.vitepress/dist/api/type-aliases/RawAppRuleProps.html +7 -7
  8. package/.vitepress/dist/api/type-aliases/RawCategory.html +7 -7
  9. package/.vitepress/dist/api/type-aliases/RawCommonProps.html +7 -7
  10. package/.vitepress/dist/api/type-aliases/RawGlobalApp.html +7 -7
  11. package/.vitepress/dist/api/type-aliases/RawGlobalGroup.html +7 -7
  12. package/.vitepress/dist/api/type-aliases/RawGlobalRule.html +7 -7
  13. package/.vitepress/dist/api/type-aliases/RawGlobalRuleProps.html +7 -7
  14. package/.vitepress/dist/api/type-aliases/RawGroupProps.html +7 -7
  15. package/.vitepress/dist/api/type-aliases/RawRuleProps.html +7 -7
  16. package/.vitepress/dist/api/type-aliases/RawSubscription.html +7 -7
  17. package/.vitepress/dist/assets/{app.9oAT0ECI.js → app.PQ0A195r.js} +1 -1
  18. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.iVdCxKlU.js +1 -0
  19. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.fr24u-bE.js → VPLocalSearchBox.FDdZoQsB.js} +2 -2
  20. package/.vitepress/dist/assets/chunks/{theme.d3wyEJOP.js → theme.iq9yOrxH.js} +1 -1
  21. package/.vitepress/dist/assets/faq_index.md.gIodzqUO.js +1 -0
  22. package/.vitepress/dist/assets/faq_index.md.gIodzqUO.lean.js +1 -0
  23. package/.vitepress/dist/assets/{guide_index.md.jOiNUfTl.js → guide_index.md.ilXSymgF.js} +6 -6
  24. package/.vitepress/dist/assets/{guide_index.md.jOiNUfTl.lean.js → guide_index.md.ilXSymgF.lean.js} +6 -6
  25. package/.vitepress/dist/assets/{index.md.7BPpZfI9.js → index.md.lcuGYBge.js} +1 -1
  26. package/.vitepress/dist/assets/{index.md.7BPpZfI9.lean.js → index.md.lcuGYBge.lean.js} +1 -1
  27. package/.vitepress/dist/assets/{scription_index.md.0Gc6Ip_R.js → scription_index.md.dI3UMTGy.js} +1 -1
  28. package/.vitepress/dist/assets/{scription_index.md.0Gc6Ip_R.lean.js → scription_index.md.dI3UMTGy.lean.js} +1 -1
  29. package/.vitepress/dist/assets/{selector_index.md.rJuuK2LZ.js → selector_index.md.xi15YGAM.js} +1 -1
  30. package/.vitepress/dist/assets/{selector_index.md.rJuuK2LZ.lean.js → selector_index.md.xi15YGAM.lean.js} +1 -1
  31. package/.vitepress/dist/assets/style.WoxoFVlf.css +1 -1
  32. package/.vitepress/dist/faq/index.html +8 -8
  33. package/.vitepress/dist/guide/index.html +8 -8
  34. package/.vitepress/dist/hashmap.json +1 -1
  35. package/.vitepress/dist/index.html +7 -7
  36. package/.vitepress/dist/scription/index.html +8 -8
  37. package/.vitepress/dist/selector/index.html +8 -8
  38. package/package.json +1 -1
  39. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.F62YiyzK.js +0 -1
  40. package/.vitepress/dist/assets/faq_index.md.JONwzblH.js +0 -1
  41. package/.vitepress/dist/assets/faq_index.md.JONwzblH.lean.js +0 -1
@@ -1,8 +1,8 @@
1
- import{H as Et,k as vt,z as zt,c as Vt,J as mt,w as wt,m as D,a as $,V as Ht,E as Kt,o as Ot,t as Jt,p as x}from"./chunks/framework.IfA2_2T5.js";var K={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},I={};let lt;const $t=[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];I.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};I.getSymbolTotalCodewords=function(t){return $t[t]};I.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};I.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};I.isKanjiModeEnabled=function(){return typeof lt<"u"};I.toSJIS=function(t){return lt(t)};var q={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.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: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(q);function At(){this.buffer=[],this.length=0}At.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 i=0;i<t;i++)this.putBit((e>>>t-i-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 jt=At;function O(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)}O.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=O,Tt={};(function(e){const t=I.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,u=[n-7];for(let a=1;a<r-1;a++)u[a]=u[a-1]-s;return u.push(6),u.reverse()},e.getPositions=function(o){const r=[],n=e.getRowColCoords(o),s=n.length;for(let u=0;u<s;u++)for(let a=0;a<s;a++)u===0&&a===0||u===0&&a===s-1||u===s-1&&a===0||r.push([n[u],n[a]]);return r}})(Tt);var It={};const qt=I.getSymbolSize,pt=7;It.getPositions=function(t){const i=qt(t);return[[0,0],[i-pt,0],[0,i-pt]]};var Nt={};(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(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,u=0,a=0,c=null,l=null;for(let E=0;E<n;E++){u=a=0,c=l=null;for(let m=0;m<n;m++){let f=r.get(E,m);f===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=f,u=1),f=r.get(m,E),f===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=f,a=1)}u>=5&&(s+=t.N1+(u-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let u=0;u<n-1;u++)for(let a=0;a<n-1;a++){const c=r.get(u,a)+r.get(u,a+1)+r.get(u+1,a)+r.get(u+1,a+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const n=r.size;let s=0,u=0,a=0;for(let c=0;c<n;c++){u=a=0;for(let l=0;l<n;l++)u=u<<1&2047|r.get(c,l),l>=10&&(u===1488||u===93)&&s++,a=a<<1&2047|r.get(l,c),l>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let a=0;a<s;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*t.N4};function i(o,r,n){switch(o){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,n){const s=n.size;for(let u=0;u<s;u++)for(let a=0;a<s;a++)n.isReserved(a,u)||n.xor(a,u,i(r,a,u))},e.getBestMask=function(r,n){const s=Object.keys(e.Patterns).length;let u=0,a=1/0;for(let c=0;c<s;c++){n(c),e.applyMask(c,r);const l=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(c,r),l<a&&(a=l,u=c)}return u}})(Nt);var Q={};const M=q,J=[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],Y=[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];Q.getBlocksCount=function(t,i){switch(i){case M.L:return J[(t-1)*4+0];case M.M:return J[(t-1)*4+1];case M.Q:return J[(t-1)*4+2];case M.H:return J[(t-1)*4+3];default:return}};Q.getTotalCodewordsCount=function(t,i){switch(i){case M.L:return Y[(t-1)*4+0];case M.M:return Y[(t-1)*4+1];case M.Q:return Y[(t-1)*4+2];case M.H:return Y[(t-1)*4+3];default:return}};var bt={},W={};const V=new Uint8Array(512),j=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)V[i]=t,j[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return j[t]};W.exp=function(t){return V[t]};W.mul=function(t,i){return t===0||i===0?0:V[j[t]+j[i]]};(function(e){const t=W;e.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let u=0;u<r.length;u++)n[s+u]^=t.mul(o[s],r[u]);return n},e.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let a=0;a<r.length;a++)n[a]^=t.mul(r[a],s);let u=0;for(;u<n.length&&n[u]===0;)u++;n=n.slice(u)}return n},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=e.mul(r,new Uint8Array([1,t.exp(n)]));return r}})(bt);const St=bt;function ft(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ft.prototype.initialize=function(t){this.degree=t,this.genPoly=St.generateECPolynomial(this.degree)};ft.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=St.mod(i,this.genPoly),r=this.degree-o.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=ft,Pt={},R={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const _t="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Zt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
2
- ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Zt,"g");S.NUMERIC=new RegExp(_t,"g");S.ALPHANUMERIC=new RegExp(Wt,"g");const Xt=new RegExp("^"+H+"$"),xt=new RegExp("^"+_t+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Xt.test(t)};S.testNumeric=function(t){return xt.test(t)};S.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=S;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(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(R);(function(e){const t=I,i=Q,o=q,r=R,n=dt,s=7973,u=t.getBCHDigit(s);function a(m,f,w){for(let p=1;p<=40;p++)if(f<=e.getCapacity(p,w,m))return p}function c(m,f){return r.getCharCountIndicator(m,f)+4}function l(m,f){let w=0;return m.forEach(function(p){const T=c(p.mode,f);w+=T+p.getBitsLength()}),w}function E(m,f){for(let w=1;w<=40;w++)if(l(m,w)<=e.getCapacity(w,f,r.MIXED))return w}e.from=function(f,w){return n.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,p){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const T=t.getSymbolTotalCodewords(f),h=i.getTotalCodewordsCount(f,w),y=(T-h)*8;if(p===r.MIXED)return y;const g=y-c(p,f);switch(p){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let p;const T=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,T);if(f.length===0)return 1;p=f[0]}else p=f;return a(p.mode,p.getLength(),T)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-u>=0;)w^=s<<t.getBCHDigit(w)-u;return f<<12|w}})(Pt);var Mt={};const it=I,Rt=1335,ee=21522,yt=it.getBCHDigit(Rt);Mt.getEncodedBits=function(t,i){const o=t.bit<<3|i;let r=o<<10;for(;it.getBCHDigit(r)-yt>=0;)r^=Rt<<it.getBCHDigit(r)-yt;return(o<<10|r)^ee};var Lt={};const ne=R;function U(e){this.mode=ne.NUMERIC,this.data=e.toString()}U.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i,o,r;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),r=parseInt(o,10),t.put(r,10);const n=this.data.length-i;n>0&&(o=this.data.substr(i),r=parseInt(o,10),t.put(r,n*3+1))};var re=U;const oe=R,tt=["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 k(e){this.mode=oe.ALPHANUMERIC,this.data=e}k.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=tt.indexOf(this.data[i])*45;o+=tt.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(tt.indexOf(this.data[i]),6)};var ie=k,se=function(t){for(var i=[],o=t.length,r=0;r<o;r++){var n=t.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const ae=se,ue=R;function F(e){this.mode=ue.BYTE,typeof e=="string"&&(e=ae(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var ce=F;const le=R,fe=I;function v(e){this.mode=le.KANJI,this.data=e}v.getBitsLength=function(t){return t*13};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=fe.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
- Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var de=v,Dt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var u=t.PriorityQueue.make();u.push(o,0);for(var a,c,l,E,m,f,w,p,T;!u.empty();){a=u.pop(),c=a.value,E=a.cost,m=i[c]||{};for(l in m)m.hasOwnProperty(l)&&(f=m[l],w=E+f,p=s[l],T=typeof s[l]>"u",(T||p>w)&&(s[l]=w,u.push(l,w),n[l]=c))}if(typeof r<"u"&&typeof s[r]>"u"){var h=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Dt);var ge=Dt.exports;(function(e){const t=R,i=re,o=ie,r=ce,n=de,s=S,u=I,a=ge;function c(h){return unescape(encodeURIComponent(h)).length}function l(h,y,g){const d=[];let C;for(;(C=h.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:y,length:C[0].length});return d}function E(h){const y=l(s.NUMERIC,t.NUMERIC,h),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let d,C;return u.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,h),C=l(s.KANJI,t.KANJI,h)):(d=l(s.BYTE_KANJI,t.BYTE,h),C=[]),y.concat(g,d,C).sort(function(A,N){return A.index-N.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(h,y){switch(y){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return n.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(y,g){const d=y.length-1>=0?y[y.length-1]:null;return d&&d.mode===g.mode?(y[y.length-1].data+=g.data,y):(y.push(g),y)},[])}function w(h){const y=[];for(let g=0;g<h.length;g++){const d=h[g];switch(d.mode){case t.NUMERIC:y.push([d,{data:d.data,mode:t.ALPHANUMERIC,length:d.length},{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.ALPHANUMERIC:y.push([d,{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.KANJI:y.push([d,{data:d.data,mode:t.BYTE,length:c(d.data)}]);break;case t.BYTE:y.push([{data:d.data,mode:t.BYTE,length:c(d.data)}])}}return y}function p(h,y){const g={},d={start:{}};let C=["start"];for(let B=0;B<h.length;B++){const A=h[B],N=[];for(let _=0;_<A.length;_++){const b=A[_],z=""+B+_;N.push(z),g[z]={node:b,lastCount:0},d[z]={};for(let X=0;X<C.length;X++){const P=C[X];g[P]&&g[P].node.mode===b.mode?(d[P][z]=m(g[P].lastCount+b.length,b.mode)-m(g[P].lastCount,b.mode),g[P].lastCount+=b.length):(g[P]&&(g[P].lastCount=b.length),d[P][z]=m(b.length,b.mode)+4+t.getCharCountIndicator(b.mode,y))}}C=N}for(let B=0;B<C.length;B++)d[C[B]].end=0;return{map:d,table:g}}function T(h,y){let g;const d=t.getBestModeForData(h);if(g=t.from(y,d),g!==t.BYTE&&g.bit<d.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(g)+`.
4
- Suggested mode is: `+t.toString(d));switch(g===t.KANJI&&!u.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new i(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new n(h);case t.BYTE:return new r(h)}}e.fromArray=function(y){return y.reduce(function(g,d){return typeof d=="string"?g.push(T(d,null)):d.data&&g.push(T(d.data,d.mode)),g},[])},e.fromString=function(y,g){const d=E(y,u.isKanjiModeEnabled()),C=w(d),B=p(C,g),A=a.find_path(B.map,"start","end"),N=[];for(let _=1;_<A.length-1;_++)N.push(B.table[A[_]].node);return e.fromArray(f(N))},e.rawSplit=function(y){return e.fromArray(E(y,u.isKanjiModeEnabled()))}})(Lt);const Z=I,et=q,he=jt,me=Gt,we=Tt,pe=It,st=Nt,at=Q,ye=Qt,G=Pt,Ce=Mt,Ee=R,nt=Lt;function Be(e,t){const i=e.size,o=pe.getPositions(t);for(let r=0;r<o.length;r++){const n=o[r][0],s=o[r][1];for(let u=-1;u<=7;u++)if(!(n+u<=-1||i<=n+u))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(u>=0&&u<=6&&(a===0||a===6)||a>=0&&a<=6&&(u===0||u===6)||u>=2&&u<=4&&a>=2&&a<=4?e.set(n+u,s+a,!0,!0):e.set(n+u,s+a,!1,!0))}}function Ae(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function Te(e,t){const i=we.getPositions(t);for(let o=0;o<i.length;o++){const r=i[o][0],n=i[o][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(r+s,n+u,!0,!0):e.set(r+s,n+u,!1,!0)}}function Ie(e,t){const i=e.size,o=G.getEncodedBits(t);let r,n,s;for(let u=0;u<18;u++)r=Math.floor(u/3),n=u%3+i-8-3,s=(o>>u&1)===1,e.set(r,n,s,!0),e.set(n,r,s,!0)}function rt(e,t,i){const o=e.size,r=Ce.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(o-15+n,8,s,!0),n<8?e.set(8,o-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,r=i-1,n=7,s=0;for(let u=i-1;u>0;u-=2)for(u===6&&u--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,u-a)){let c=!1;s<t.length&&(c=(t[s]>>>n&1)===1),e.set(r,u-a,c),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function be(e,t,i){const o=new he;i.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),Ee.getCharCountIndicator(a.mode,e)),a.write(o)});const r=Z.getSymbolTotalCodewords(e),n=at.getTotalCodewordsCount(e,t),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const u=(s-o.getLengthInBits())/8;for(let a=0;a<u;a++)o.put(a%2?17:236,8);return Se(o,e,t)}function Se(e,t,i){const o=Z.getSymbolTotalCodewords(t),r=at.getTotalCodewordsCount(t,i),n=o-r,s=at.getBlocksCount(t,i),u=o%s,a=s-u,c=Math.floor(o/s),l=Math.floor(n/s),E=l+1,m=c-l,f=new ye(m);let w=0;const p=new Array(s),T=new Array(s);let h=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const N=A<a?l:E;p[A]=y.slice(w,w+N),T[A]=f.encode(p[A]),w+=N,h=Math.max(h,N)}const g=new Uint8Array(o);let d=0,C,B;for(C=0;C<h;C++)for(B=0;B<s;B++)C<p[B].length&&(g[d++]=p[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)g[d++]=T[B][C];return g}function Pe(e,t,i,o){let r;if(Array.isArray(e))r=nt.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const l=nt.rawSplit(e);c=G.getBestVersionForData(l,i)}r=nt.fromString(e,c||40)}else throw new Error("Invalid data");const n=G.getBestVersionForData(r,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
1
+ import{H as Et,k as vt,z as zt,c as Vt,J as mt,w as wt,m as L,a as $,V as Ht,E as Kt,o as Jt,t as Ot,p as x}from"./chunks/framework.IfA2_2T5.js";var K={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},T={};let lt;const $t=[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];T.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};T.getSymbolTotalCodewords=function(t){return $t[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};T.isKanjiModeEnabled=function(){return typeof lt<"u"};T.toSJIS=function(t){return lt(t)};var q={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.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: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(q);function bt(){this.buffer=[],this.length=0}bt.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 i=0;i<t;i++)this.putBit((e>>>t-i-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 jt=bt;function J(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)}J.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};J.prototype.get=function(e,t){return this.data[e*this.size+t]};J.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};J.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=J,At={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,c=[n-7];for(let a=1;a<r-1;a++)c[a]=c[a-1]-s;return c.push(6),c.reverse()},e.getPositions=function(o){const r=[],n=e.getRowColCoords(o),s=n.length;for(let c=0;c<s;c++)for(let a=0;a<s;a++)c===0&&a===0||c===0&&a===s-1||c===s-1&&a===0||r.push([n[c],n[a]]);return r}})(At);var Tt={};const qt=T.getSymbolSize,pt=7;Tt.getPositions=function(t){const i=qt(t);return[[0,0],[i-pt,0],[0,i-pt]]};var Nt={};(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(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,c=0,a=0,u=null,l=null;for(let E=0;E<n;E++){c=a=0,u=l=null;for(let m=0;m<n;m++){let f=r.get(E,m);f===u?c++:(c>=5&&(s+=t.N1+(c-5)),u=f,c=1),f=r.get(m,E),f===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=f,a=1)}c>=5&&(s+=t.N1+(c-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let c=0;c<n-1;c++)for(let a=0;a<n-1;a++){const u=r.get(c,a)+r.get(c,a+1)+r.get(c+1,a)+r.get(c+1,a+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const n=r.size;let s=0,c=0,a=0;for(let u=0;u<n;u++){c=a=0;for(let l=0;l<n;l++)c=c<<1&2047|r.get(u,l),l>=10&&(c===1488||c===93)&&s++,a=a<<1&2047|r.get(l,u),l>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let a=0;a<s;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*t.N4};function i(o,r,n){switch(o){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,n){const s=n.size;for(let c=0;c<s;c++)for(let a=0;a<s;a++)n.isReserved(a,c)||n.xor(a,c,i(r,a,c))},e.getBestMask=function(r,n){const s=Object.keys(e.Patterns).length;let c=0,a=1/0;for(let u=0;u<s;u++){n(u),e.applyMask(u,r);const l=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(u,r),l<a&&(a=l,c=u)}return c}})(Nt);var Q={};const M=q,O=[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],Y=[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];Q.getBlocksCount=function(t,i){switch(i){case M.L:return O[(t-1)*4+0];case M.M:return O[(t-1)*4+1];case M.Q:return O[(t-1)*4+2];case M.H:return O[(t-1)*4+3];default:return}};Q.getTotalCodewordsCount=function(t,i){switch(i){case M.L:return Y[(t-1)*4+0];case M.M:return Y[(t-1)*4+1];case M.Q:return Y[(t-1)*4+2];case M.H:return Y[(t-1)*4+3];default:return}};var It={},W={};const V=new Uint8Array(512),j=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)V[i]=t,j[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return j[t]};W.exp=function(t){return V[t]};W.mul=function(t,i){return t===0||i===0?0:V[j[t]+j[i]]};(function(e){const t=W;e.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let c=0;c<r.length;c++)n[s+c]^=t.mul(o[s],r[c]);return n},e.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let a=0;a<r.length;a++)n[a]^=t.mul(r[a],s);let c=0;for(;c<n.length&&n[c]===0;)c++;n=n.slice(c)}return n},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=e.mul(r,new Uint8Array([1,t.exp(n)]));return r}})(It);const St=It;function ft(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ft.prototype.initialize=function(t){this.degree=t,this.genPoly=St.generateECPolynomial(this.degree)};ft.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=St.mod(i,this.genPoly),r=this.degree-o.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=ft,Pt={},R={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const _t="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Xt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
2
+ ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Xt,"g");S.NUMERIC=new RegExp(_t,"g");S.ALPHANUMERIC=new RegExp(Wt,"g");const Zt=new RegExp("^"+H+"$"),xt=new RegExp("^"+_t+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Zt.test(t)};S.testNumeric=function(t){return xt.test(t)};S.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=S;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(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(R);(function(e){const t=T,i=Q,o=q,r=R,n=dt,s=7973,c=t.getBCHDigit(s);function a(m,f,w){for(let p=1;p<=40;p++)if(f<=e.getCapacity(p,w,m))return p}function u(m,f){return r.getCharCountIndicator(m,f)+4}function l(m,f){let w=0;return m.forEach(function(p){const A=u(p.mode,f);w+=A+p.getBitsLength()}),w}function E(m,f){for(let w=1;w<=40;w++)if(l(m,w)<=e.getCapacity(w,f,r.MIXED))return w}e.from=function(f,w){return n.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,p){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const A=t.getSymbolTotalCodewords(f),h=i.getTotalCodewordsCount(f,w),y=(A-h)*8;if(p===r.MIXED)return y;const g=y-u(p,f);switch(p){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let p;const A=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,A);if(f.length===0)return 1;p=f[0]}else p=f;return a(p.mode,p.getLength(),A)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-c>=0;)w^=s<<t.getBCHDigit(w)-c;return f<<12|w}})(Pt);var Mt={};const it=T,Rt=1335,ee=21522,yt=it.getBCHDigit(Rt);Mt.getEncodedBits=function(t,i){const o=t.bit<<3|i;let r=o<<10;for(;it.getBCHDigit(r)-yt>=0;)r^=Rt<<it.getBCHDigit(r)-yt;return(o<<10|r)^ee};var kt={};const ne=R;function D(e){this.mode=ne.NUMERIC,this.data=e.toString()}D.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i,o,r;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),r=parseInt(o,10),t.put(r,10);const n=this.data.length-i;n>0&&(o=this.data.substr(i),r=parseInt(o,10),t.put(r,n*3+1))};var re=D;const oe=R,tt=["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 U(e){this.mode=oe.ALPHANUMERIC,this.data=e}U.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=tt.indexOf(this.data[i])*45;o+=tt.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(tt.indexOf(this.data[i]),6)};var ie=U,se=function(t){for(var i=[],o=t.length,r=0;r<o;r++){var n=t.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const ae=se,ce=R;function F(e){this.mode=ce.BYTE,typeof e=="string"&&(e=ae(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var ue=F;const le=R,fe=T;function v(e){this.mode=le.KANJI,this.data=e}v.getBitsLength=function(t){return t*13};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=fe.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
+ Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var de=v,Lt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var c=t.PriorityQueue.make();c.push(o,0);for(var a,u,l,E,m,f,w,p,A;!c.empty();){a=c.pop(),u=a.value,E=a.cost,m=i[u]||{};for(l in m)m.hasOwnProperty(l)&&(f=m[l],w=E+f,p=s[l],A=typeof s[l]>"u",(A||p>w)&&(s[l]=w,c.push(l,w),n[l]=u))}if(typeof r<"u"&&typeof s[r]>"u"){var h=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Lt);var ge=Lt.exports;(function(e){const t=R,i=re,o=ie,r=ue,n=de,s=S,c=T,a=ge;function u(h){return unescape(encodeURIComponent(h)).length}function l(h,y,g){const d=[];let C;for(;(C=h.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:y,length:C[0].length});return d}function E(h){const y=l(s.NUMERIC,t.NUMERIC,h),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let d,C;return c.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,h),C=l(s.KANJI,t.KANJI,h)):(d=l(s.BYTE_KANJI,t.BYTE,h),C=[]),y.concat(g,d,C).sort(function(b,N){return b.index-N.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function m(h,y){switch(y){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return n.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(y,g){const d=y.length-1>=0?y[y.length-1]:null;return d&&d.mode===g.mode?(y[y.length-1].data+=g.data,y):(y.push(g),y)},[])}function w(h){const y=[];for(let g=0;g<h.length;g++){const d=h[g];switch(d.mode){case t.NUMERIC:y.push([d,{data:d.data,mode:t.ALPHANUMERIC,length:d.length},{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.ALPHANUMERIC:y.push([d,{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.KANJI:y.push([d,{data:d.data,mode:t.BYTE,length:u(d.data)}]);break;case t.BYTE:y.push([{data:d.data,mode:t.BYTE,length:u(d.data)}])}}return y}function p(h,y){const g={},d={start:{}};let C=["start"];for(let B=0;B<h.length;B++){const b=h[B],N=[];for(let _=0;_<b.length;_++){const I=b[_],z=""+B+_;N.push(z),g[z]={node:I,lastCount:0},d[z]={};for(let Z=0;Z<C.length;Z++){const P=C[Z];g[P]&&g[P].node.mode===I.mode?(d[P][z]=m(g[P].lastCount+I.length,I.mode)-m(g[P].lastCount,I.mode),g[P].lastCount+=I.length):(g[P]&&(g[P].lastCount=I.length),d[P][z]=m(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,y))}}C=N}for(let B=0;B<C.length;B++)d[C[B]].end=0;return{map:d,table:g}}function A(h,y){let g;const d=t.getBestModeForData(h);if(g=t.from(y,d),g!==t.BYTE&&g.bit<d.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(g)+`.
4
+ Suggested mode is: `+t.toString(d));switch(g===t.KANJI&&!c.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new i(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new n(h);case t.BYTE:return new r(h)}}e.fromArray=function(y){return y.reduce(function(g,d){return typeof d=="string"?g.push(A(d,null)):d.data&&g.push(A(d.data,d.mode)),g},[])},e.fromString=function(y,g){const d=E(y,c.isKanjiModeEnabled()),C=w(d),B=p(C,g),b=a.find_path(B.map,"start","end"),N=[];for(let _=1;_<b.length-1;_++)N.push(B.table[b[_]].node);return e.fromArray(f(N))},e.rawSplit=function(y){return e.fromArray(E(y,c.isKanjiModeEnabled()))}})(kt);const X=T,et=q,he=jt,me=Gt,we=At,pe=Tt,st=Nt,at=Q,ye=Qt,G=Pt,Ce=Mt,Ee=R,nt=kt;function Be(e,t){const i=e.size,o=pe.getPositions(t);for(let r=0;r<o.length;r++){const n=o[r][0],s=o[r][1];for(let c=-1;c<=7;c++)if(!(n+c<=-1||i<=n+c))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(c>=0&&c<=6&&(a===0||a===6)||a>=0&&a<=6&&(c===0||c===6)||c>=2&&c<=4&&a>=2&&a<=4?e.set(n+c,s+a,!0,!0):e.set(n+c,s+a,!1,!0))}}function be(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function Ae(e,t){const i=we.getPositions(t);for(let o=0;o<i.length;o++){const r=i[o][0],n=i[o][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?e.set(r+s,n+c,!0,!0):e.set(r+s,n+c,!1,!0)}}function Te(e,t){const i=e.size,o=G.getEncodedBits(t);let r,n,s;for(let c=0;c<18;c++)r=Math.floor(c/3),n=c%3+i-8-3,s=(o>>c&1)===1,e.set(r,n,s,!0),e.set(n,r,s,!0)}function rt(e,t,i){const o=e.size,r=Ce.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(o-15+n,8,s,!0),n<8?e.set(8,o-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,r=i-1,n=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,c-a)){let u=!1;s<t.length&&(u=(t[s]>>>n&1)===1),e.set(r,c-a,u),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function Ie(e,t,i){const o=new he;i.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),Ee.getCharCountIndicator(a.mode,e)),a.write(o)});const r=X.getSymbolTotalCodewords(e),n=at.getTotalCodewordsCount(e,t),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let a=0;a<c;a++)o.put(a%2?17:236,8);return Se(o,e,t)}function Se(e,t,i){const o=X.getSymbolTotalCodewords(t),r=at.getTotalCodewordsCount(t,i),n=o-r,s=at.getBlocksCount(t,i),c=o%s,a=s-c,u=Math.floor(o/s),l=Math.floor(n/s),E=l+1,m=u-l,f=new ye(m);let w=0;const p=new Array(s),A=new Array(s);let h=0;const y=new Uint8Array(e.buffer);for(let b=0;b<s;b++){const N=b<a?l:E;p[b]=y.slice(w,w+N),A[b]=f.encode(p[b]),w+=N,h=Math.max(h,N)}const g=new Uint8Array(o);let d=0,C,B;for(C=0;C<h;C++)for(B=0;B<s;B++)C<p[B].length&&(g[d++]=p[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)g[d++]=A[B][C];return g}function Pe(e,t,i,o){let r;if(Array.isArray(e))r=nt.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){const l=nt.rawSplit(e);u=G.getBestVersionForData(l,i)}r=nt.fromString(e,u||40)}else throw new Error("Invalid data");const n=G.getBestVersionForData(r,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
5
5
  The chosen QR Code version cannot contain this amount of data.
6
6
  Minimum version required to store current data is: `+n+`.
7
- `);const s=be(t,i,r),u=Z.getSymbolSize(t),a=new me(u);return Be(a,t),Ae(a),Te(a,t),rt(a,i,0),t>=7&&Ie(a,t),Ne(a,s),isNaN(o)&&(o=st.getBestMask(a,rt.bind(null,a,i))),st.applyMask(o,a),rt(a,i,o),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:o,segments:r}}Bt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=et.M,r,n;return typeof i<"u"&&(o=et.from(i.errorCorrectionLevel,et.M),r=G.from(i.version),n=st.from(i.maskPattern),i.toSJISFunc&&Z.setToSJISFunction(i.toSJISFunc)),Pe(t,r,o,n)};var Ut={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(n){return[n,n]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,n=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:n,scale:n?4:s,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const n=e.getScale(o,r);return Math.floor((o+r.margin*2)*n)},e.qrToImageData=function(o,r,n){const s=r.modules.size,u=r.modules.data,a=e.getScale(s,n),c=Math.floor((s+n.margin*2)*a),l=n.margin*a,E=[n.color.light,n.color.dark];for(let m=0;m<c;m++)for(let f=0;f<c;f++){let w=(m*c+f)*4,p=n.color.light;if(m>=l&&f>=l&&m<c-l&&f<c-l){const T=Math.floor((m-l)/a),h=Math.floor((f-l)/a);p=E[u[T*s+h]?1:0]}o[w++]=p.r,o[w++]=p.g,o[w++]=p.b,o[w]=p.a}}})(gt);(function(e){const t=gt;function i(r,n,s){r.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,u){let a=u,c=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(c=o()),a=t.getOptions(a);const l=t.getImageWidth(n.modules.size,a),E=c.getContext("2d"),m=E.createImageData(l,l);return t.qrToImageData(m.data,n,a),i(E,c,l),E.putImageData(m,0,0),c},e.renderToDataURL=function(n,s,u){let a=u;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const c=e.render(n,s,a),l=a.type||"image/png",E=a.rendererOpts||{};return c.toDataURL(l,E.quality)}})(Ut);var kt={};const _e=gt;function Ct(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function ot(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Me(e,t,i){let o="",r=0,n=!1,s=0;for(let u=0;u<e.length;u++){const a=Math.floor(u%t),c=Math.floor(u/t);!a&&!n&&(n=!0),e[u]?(s++,u>0&&a>0&&e[u-1]||(o+=n?ot("M",a+i,.5+c+i):ot("m",r,0),r=0,n=!1),a+1<t&&e[u+1]||(o+=ot("h",s),s=0)):r++}return o}kt.render=function(t,i,o){const r=_e.getOptions(i),n=t.modules.size,s=t.modules.data,u=n+r.margin*2,a=r.color.light.a?"<path "+Ct(r.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+Ct(r.color.dark,"stroke")+' d="'+Me(s,n,r.margin)+'"/>',l='viewBox="0 0 '+u+" "+u+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+l+' shape-rendering="crispEdges">'+a+c+`</svg>
8
- `;return typeof o=="function"&&o(null,m),m};const Re=Yt,ut=Bt,Ft=Ut,Le=kt;function ht(e,t,i,o,r){const n=[].slice.call(arguments,1),s=n.length,u=typeof n[s-1]=="function";if(!u&&!Re())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof r>"u"?(r=o,o=void 0):(r=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(a,c){try{const l=ut.create(i,o);a(e(l,t,o))}catch(l){c(l)}})}try{const a=ut.create(i,o);r(null,e(a,t,o))}catch(a){r(a)}}K.create=ut.create;K.toCanvas=ht.bind(null,Ft.render);K.toDataURL=ht.bind(null,Ft.renderToDataURL);K.toString=ht.bind(null,function(e,t,i){return Le.render(e,i)});const L=Et(""),De=vt(()=>L.value.split("/").at(-1)||""),ct=Et("");zt(async()=>{if(!L.value){ct.value="";return}ct.value=await K.toDataURL(L.value,{width:256,margin:2})});L.value=localStorage.getItem("apkUrl")||"",fetch("https://registry.npmmirror.com/@gkd-kit/app/latest/files").then(async t=>{L.value=new URL((await t.json()).downloadUrl,t.url).href,localStorage.setItem("apkUrl",L.value)});const Ue=D("h1",{id:"开始使用",tabindex:"-1"},[$("开始使用 "),D("a",{class:"header-anchor",href:"#开始使用","aria-label":'Permalink to "开始使用"'},"​")],-1),ke=D("h2",{id:"下载安装",tabindex:"-1"},[$("下载安装 "),D("a",{class:"header-anchor",href:"#下载安装","aria-label":'Permalink to "下载安装"'},"​")],-1),Fe=["href"],ve=D("p",null,"或者扫描下方二维码即可下载最新版本",-1),ze=["src"],Ve=Ht('<p>请注意上面的链接/二维码为动态生成, 如需分享请复制地址栏链接</p><p>海外用户可前往源仓库 <a href="https://github.com/gkd-kit/gkd/releases/latest" target="_blank" rel="noreferrer">github-releases</a> 下载</p><p>下载完毕后, 在您的 Android 手机上安装并打开</p><h2 id="授权使用" tabindex="-1">授权使用 <a class="header-anchor" href="#授权使用" aria-label="Permalink to &quot;授权使用&quot;">​</a></h2><p>打开后您会看到如下界面</p><p>TODO</p><p>点击无障碍权限右侧的 <code>授权</code> 按钮即可前往设置的无障碍界面授权</p><p>以 MIUI14 为例, 下面为完整的授权流程截图</p><p>TODO</p><p>如果您的手机的无障碍界面无法授权 GKD 或者显示受限制的应用</p><p>这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限</p><p>您需要解除这个限制, 解除限制的方法在 <a href="/faq/">疑难解答</a></p><p>限制解除后, 重新按照上面的授权流程即可开启无障碍权限</p>',13),Oe=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1706793360000}'),He={name:"guide/index.md"},Je=Object.assign(He,{setup(e){return(t,i)=>{const o=Kt("ClientOnly");return Ot(),Vt("div",null,[Ue,ke,mt(o,null,{default:wt(()=>[$(" 大陆用户可点击 "),D("a",{rel:"noopener noreferrer",href:x(L)},Jt(x(De)),9,Fe),$(" 下载 ")]),_:1}),ve,mt(o,null,{default:wt(()=>[D("img",{src:x(ct),"data-zoomable":"",alt:""},null,8,ze)]),_:1}),Ve])}}});export{Oe as __pageData,Je as default};
7
+ `);const s=Ie(t,i,r),c=X.getSymbolSize(t),a=new me(c);return Be(a,t),be(a),Ae(a,t),rt(a,i,0),t>=7&&Te(a,t),Ne(a,s),isNaN(o)&&(o=st.getBestMask(a,rt.bind(null,a,i))),st.applyMask(o,a),rt(a,i,o),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:o,segments:r}}Bt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=et.M,r,n;return typeof i<"u"&&(o=et.from(i.errorCorrectionLevel,et.M),r=G.from(i.version),n=st.from(i.maskPattern),i.toSJISFunc&&X.setToSJISFunction(i.toSJISFunc)),Pe(t,r,o,n)};var Dt={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(n){return[n,n]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,n=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:n,scale:n?4:s,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const n=e.getScale(o,r);return Math.floor((o+r.margin*2)*n)},e.qrToImageData=function(o,r,n){const s=r.modules.size,c=r.modules.data,a=e.getScale(s,n),u=Math.floor((s+n.margin*2)*a),l=n.margin*a,E=[n.color.light,n.color.dark];for(let m=0;m<u;m++)for(let f=0;f<u;f++){let w=(m*u+f)*4,p=n.color.light;if(m>=l&&f>=l&&m<u-l&&f<u-l){const A=Math.floor((m-l)/a),h=Math.floor((f-l)/a);p=E[c[A*s+h]?1:0]}o[w++]=p.r,o[w++]=p.g,o[w++]=p.b,o[w]=p.a}}})(gt);(function(e){const t=gt;function i(r,n,s){r.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,c){let a=c,u=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(u=o()),a=t.getOptions(a);const l=t.getImageWidth(n.modules.size,a),E=u.getContext("2d"),m=E.createImageData(l,l);return t.qrToImageData(m.data,n,a),i(E,u,l),E.putImageData(m,0,0),u},e.renderToDataURL=function(n,s,c){let a=c;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const u=e.render(n,s,a),l=a.type||"image/png",E=a.rendererOpts||{};return u.toDataURL(l,E.quality)}})(Dt);var Ut={};const _e=gt;function Ct(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function ot(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Me(e,t,i){let o="",r=0,n=!1,s=0;for(let c=0;c<e.length;c++){const a=Math.floor(c%t),u=Math.floor(c/t);!a&&!n&&(n=!0),e[c]?(s++,c>0&&a>0&&e[c-1]||(o+=n?ot("M",a+i,.5+u+i):ot("m",r,0),r=0,n=!1),a+1<t&&e[c+1]||(o+=ot("h",s),s=0)):r++}return o}Ut.render=function(t,i,o){const r=_e.getOptions(i),n=t.modules.size,s=t.modules.data,c=n+r.margin*2,a=r.color.light.a?"<path "+Ct(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+Ct(r.color.dark,"stroke")+' d="'+Me(s,n,r.margin)+'"/>',l='viewBox="0 0 '+c+" "+c+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+l+' shape-rendering="crispEdges">'+a+u+`</svg>
8
+ `;return typeof o=="function"&&o(null,m),m};const Re=Yt,ct=Bt,Ft=Dt,ke=Ut;function ht(e,t,i,o,r){const n=[].slice.call(arguments,1),s=n.length,c=typeof n[s-1]=="function";if(!c&&!Re())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof r>"u"?(r=o,o=void 0):(r=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(a,u){try{const l=ct.create(i,o);a(e(l,t,o))}catch(l){u(l)}})}try{const a=ct.create(i,o);r(null,e(a,t,o))}catch(a){r(a)}}K.create=ct.create;K.toCanvas=ht.bind(null,Ft.render);K.toDataURL=ht.bind(null,Ft.renderToDataURL);K.toString=ht.bind(null,function(e,t,i){return ke.render(e,i)});const k=Et(""),Le=vt(()=>k.value.split("/").at(-1)||""),ut=Et("");zt(async()=>{if(!k.value){ut.value="";return}ut.value=await K.toDataURL(k.value,{width:256,margin:2})});k.value=localStorage.getItem("apkUrl")||"",fetch("https://registry.npmmirror.com/@gkd-kit/app/latest/files").then(async t=>{k.value=new URL((await t.json()).downloadUrl,t.url).href,localStorage.setItem("apkUrl",k.value)});const De=L("h1",{id:"开始使用",tabindex:"-1"},[$("开始使用 "),L("a",{class:"header-anchor",href:"#开始使用","aria-label":'Permalink to "开始使用"'},"​")],-1),Ue=L("h2",{id:"下载安装",tabindex:"-1"},[$("下载安装 "),L("a",{class:"header-anchor",href:"#下载安装","aria-label":'Permalink to "下载安装"'},"​")],-1),Fe=["href"],ve=L("p",null,"或者扫描下方二维码即可下载最新版本",-1),ze=["src"],Ve=Ht('<p>请注意上面的链接/二维码为动态生成, 如需分享请复制地址栏链接</p><p>海外用户可前往源仓库 <a href="https://github.com/gkd-kit/gkd/releases/latest" target="_blank" rel="noreferrer">github-releases</a> 下载</p><p>下载完毕后, 在您的 Android 手机上安装并打开</p><h2 id="授权使用" tabindex="-1">授权使用 <a class="header-anchor" href="#授权使用" aria-label="Permalink to &quot;授权使用&quot;">​</a></h2><p>打开后进入 GKD 的首页, 要想 GKD 正常工作需要授权无障碍权限</p><p>点击无障碍权限右侧的 <code>授权</code> 按钮即可前往设置的无障碍界面授权</p><p>以 XiaoMi HyperOS 为例, 下面为完整的授权流程截图</p><table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/67e95d38-cb49-49e8-8e18-dc202f4cf0cd" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/ca223f0f-b50c-402c-b9e3-6f65d0f1c124" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/31adea39-dc6a-432b-a2d6-d7b35d27c413" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/d2670ae0-c12c-4bc2-9d1c-e781bc48d086" alt="image"></td></tr><tr><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/36fdf384-d0bc-4e16-bcbd-83d6f7030061" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/74d6b3d8-e68f-4940-b12b-5641eaac496f" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/447ed454-f8ef-41d7-8d50-757e6d51ae4f" alt="image"></td><td><img src="https://github.com/gkd-kit/gkd/assets/38517192/ba03fd71-7ef9-4a7a-ab25-aac1838082c0" alt="image"></td></tr></tbody></table><p>如果您的手机的无障碍列表界面无法授权 GKD 或者显示 <code>受限制的设置(出于安全考虑,此设置目前不可用)</code></p><p>这是 Android13 的限制, 对于不在应用商店等可信任来源安装的应用不能直接开启无障碍权限</p><p>您需要解除这个限制, 解除限制的方法在 <a href="/faq/">疑难解答</a></p><p>限制解除后, 重新按照上面的授权流程即可开启无障碍权限</p>',12),Je=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1706797812000}'),He={name:"guide/index.md"},Oe=Object.assign(He,{setup(e){return(t,i)=>{const o=Kt("ClientOnly");return Jt(),Vt("div",null,[De,Ue,mt(o,null,{default:wt(()=>[$(" 大陆用户可点击 "),L("a",{rel:"noopener noreferrer",href:x(k)},Ot(x(Le)),9,Fe),$(" 下载 ")]),_:1}),ve,mt(o,null,{default:wt(()=>[L("img",{src:x(ut),"data-zoomable":"",alt:""},null,8,ze)]),_:1}),Ve])}}});export{Je as __pageData,Oe as default};
@@ -1,8 +1,8 @@
1
- import{H as Et,k as vt,z as zt,c as Vt,J as mt,w as wt,m as D,a as $,V as Ht,E as Kt,o as Ot,t as Jt,p as x}from"./chunks/framework.IfA2_2T5.js";var K={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},I={};let lt;const $t=[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];I.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};I.getSymbolTotalCodewords=function(t){return $t[t]};I.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};I.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};I.isKanjiModeEnabled=function(){return typeof lt<"u"};I.toSJIS=function(t){return lt(t)};var q={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.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: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(q);function At(){this.buffer=[],this.length=0}At.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 i=0;i<t;i++)this.putBit((e>>>t-i-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 jt=At;function O(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)}O.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=O,Tt={};(function(e){const t=I.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,u=[n-7];for(let a=1;a<r-1;a++)u[a]=u[a-1]-s;return u.push(6),u.reverse()},e.getPositions=function(o){const r=[],n=e.getRowColCoords(o),s=n.length;for(let u=0;u<s;u++)for(let a=0;a<s;a++)u===0&&a===0||u===0&&a===s-1||u===s-1&&a===0||r.push([n[u],n[a]]);return r}})(Tt);var It={};const qt=I.getSymbolSize,pt=7;It.getPositions=function(t){const i=qt(t);return[[0,0],[i-pt,0],[0,i-pt]]};var Nt={};(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(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,u=0,a=0,c=null,l=null;for(let E=0;E<n;E++){u=a=0,c=l=null;for(let m=0;m<n;m++){let f=r.get(E,m);f===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=f,u=1),f=r.get(m,E),f===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=f,a=1)}u>=5&&(s+=t.N1+(u-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let u=0;u<n-1;u++)for(let a=0;a<n-1;a++){const c=r.get(u,a)+r.get(u,a+1)+r.get(u+1,a)+r.get(u+1,a+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const n=r.size;let s=0,u=0,a=0;for(let c=0;c<n;c++){u=a=0;for(let l=0;l<n;l++)u=u<<1&2047|r.get(c,l),l>=10&&(u===1488||u===93)&&s++,a=a<<1&2047|r.get(l,c),l>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let a=0;a<s;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*t.N4};function i(o,r,n){switch(o){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,n){const s=n.size;for(let u=0;u<s;u++)for(let a=0;a<s;a++)n.isReserved(a,u)||n.xor(a,u,i(r,a,u))},e.getBestMask=function(r,n){const s=Object.keys(e.Patterns).length;let u=0,a=1/0;for(let c=0;c<s;c++){n(c),e.applyMask(c,r);const l=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(c,r),l<a&&(a=l,u=c)}return u}})(Nt);var Q={};const M=q,J=[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],Y=[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];Q.getBlocksCount=function(t,i){switch(i){case M.L:return J[(t-1)*4+0];case M.M:return J[(t-1)*4+1];case M.Q:return J[(t-1)*4+2];case M.H:return J[(t-1)*4+3];default:return}};Q.getTotalCodewordsCount=function(t,i){switch(i){case M.L:return Y[(t-1)*4+0];case M.M:return Y[(t-1)*4+1];case M.Q:return Y[(t-1)*4+2];case M.H:return Y[(t-1)*4+3];default:return}};var bt={},W={};const V=new Uint8Array(512),j=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)V[i]=t,j[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return j[t]};W.exp=function(t){return V[t]};W.mul=function(t,i){return t===0||i===0?0:V[j[t]+j[i]]};(function(e){const t=W;e.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let u=0;u<r.length;u++)n[s+u]^=t.mul(o[s],r[u]);return n},e.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let a=0;a<r.length;a++)n[a]^=t.mul(r[a],s);let u=0;for(;u<n.length&&n[u]===0;)u++;n=n.slice(u)}return n},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=e.mul(r,new Uint8Array([1,t.exp(n)]));return r}})(bt);const St=bt;function ft(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ft.prototype.initialize=function(t){this.degree=t,this.genPoly=St.generateECPolynomial(this.degree)};ft.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=St.mod(i,this.genPoly),r=this.degree-o.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=ft,Pt={},R={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const _t="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Zt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
2
- ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Zt,"g");S.NUMERIC=new RegExp(_t,"g");S.ALPHANUMERIC=new RegExp(Wt,"g");const Xt=new RegExp("^"+H+"$"),xt=new RegExp("^"+_t+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Xt.test(t)};S.testNumeric=function(t){return xt.test(t)};S.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=S;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(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(R);(function(e){const t=I,i=Q,o=q,r=R,n=dt,s=7973,u=t.getBCHDigit(s);function a(m,f,w){for(let p=1;p<=40;p++)if(f<=e.getCapacity(p,w,m))return p}function c(m,f){return r.getCharCountIndicator(m,f)+4}function l(m,f){let w=0;return m.forEach(function(p){const T=c(p.mode,f);w+=T+p.getBitsLength()}),w}function E(m,f){for(let w=1;w<=40;w++)if(l(m,w)<=e.getCapacity(w,f,r.MIXED))return w}e.from=function(f,w){return n.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,p){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const T=t.getSymbolTotalCodewords(f),h=i.getTotalCodewordsCount(f,w),y=(T-h)*8;if(p===r.MIXED)return y;const g=y-c(p,f);switch(p){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let p;const T=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,T);if(f.length===0)return 1;p=f[0]}else p=f;return a(p.mode,p.getLength(),T)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-u>=0;)w^=s<<t.getBCHDigit(w)-u;return f<<12|w}})(Pt);var Mt={};const it=I,Rt=1335,ee=21522,yt=it.getBCHDigit(Rt);Mt.getEncodedBits=function(t,i){const o=t.bit<<3|i;let r=o<<10;for(;it.getBCHDigit(r)-yt>=0;)r^=Rt<<it.getBCHDigit(r)-yt;return(o<<10|r)^ee};var Lt={};const ne=R;function U(e){this.mode=ne.NUMERIC,this.data=e.toString()}U.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i,o,r;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),r=parseInt(o,10),t.put(r,10);const n=this.data.length-i;n>0&&(o=this.data.substr(i),r=parseInt(o,10),t.put(r,n*3+1))};var re=U;const oe=R,tt=["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 k(e){this.mode=oe.ALPHANUMERIC,this.data=e}k.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=tt.indexOf(this.data[i])*45;o+=tt.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(tt.indexOf(this.data[i]),6)};var ie=k,se=function(t){for(var i=[],o=t.length,r=0;r<o;r++){var n=t.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const ae=se,ue=R;function F(e){this.mode=ue.BYTE,typeof e=="string"&&(e=ae(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var ce=F;const le=R,fe=I;function v(e){this.mode=le.KANJI,this.data=e}v.getBitsLength=function(t){return t*13};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=fe.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
- Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var de=v,Dt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var u=t.PriorityQueue.make();u.push(o,0);for(var a,c,l,E,m,f,w,p,T;!u.empty();){a=u.pop(),c=a.value,E=a.cost,m=i[c]||{};for(l in m)m.hasOwnProperty(l)&&(f=m[l],w=E+f,p=s[l],T=typeof s[l]>"u",(T||p>w)&&(s[l]=w,u.push(l,w),n[l]=c))}if(typeof r<"u"&&typeof s[r]>"u"){var h=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Dt);var ge=Dt.exports;(function(e){const t=R,i=re,o=ie,r=ce,n=de,s=S,u=I,a=ge;function c(h){return unescape(encodeURIComponent(h)).length}function l(h,y,g){const d=[];let C;for(;(C=h.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:y,length:C[0].length});return d}function E(h){const y=l(s.NUMERIC,t.NUMERIC,h),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let d,C;return u.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,h),C=l(s.KANJI,t.KANJI,h)):(d=l(s.BYTE_KANJI,t.BYTE,h),C=[]),y.concat(g,d,C).sort(function(A,N){return A.index-N.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(h,y){switch(y){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return n.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(y,g){const d=y.length-1>=0?y[y.length-1]:null;return d&&d.mode===g.mode?(y[y.length-1].data+=g.data,y):(y.push(g),y)},[])}function w(h){const y=[];for(let g=0;g<h.length;g++){const d=h[g];switch(d.mode){case t.NUMERIC:y.push([d,{data:d.data,mode:t.ALPHANUMERIC,length:d.length},{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.ALPHANUMERIC:y.push([d,{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.KANJI:y.push([d,{data:d.data,mode:t.BYTE,length:c(d.data)}]);break;case t.BYTE:y.push([{data:d.data,mode:t.BYTE,length:c(d.data)}])}}return y}function p(h,y){const g={},d={start:{}};let C=["start"];for(let B=0;B<h.length;B++){const A=h[B],N=[];for(let _=0;_<A.length;_++){const b=A[_],z=""+B+_;N.push(z),g[z]={node:b,lastCount:0},d[z]={};for(let X=0;X<C.length;X++){const P=C[X];g[P]&&g[P].node.mode===b.mode?(d[P][z]=m(g[P].lastCount+b.length,b.mode)-m(g[P].lastCount,b.mode),g[P].lastCount+=b.length):(g[P]&&(g[P].lastCount=b.length),d[P][z]=m(b.length,b.mode)+4+t.getCharCountIndicator(b.mode,y))}}C=N}for(let B=0;B<C.length;B++)d[C[B]].end=0;return{map:d,table:g}}function T(h,y){let g;const d=t.getBestModeForData(h);if(g=t.from(y,d),g!==t.BYTE&&g.bit<d.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(g)+`.
4
- Suggested mode is: `+t.toString(d));switch(g===t.KANJI&&!u.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new i(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new n(h);case t.BYTE:return new r(h)}}e.fromArray=function(y){return y.reduce(function(g,d){return typeof d=="string"?g.push(T(d,null)):d.data&&g.push(T(d.data,d.mode)),g},[])},e.fromString=function(y,g){const d=E(y,u.isKanjiModeEnabled()),C=w(d),B=p(C,g),A=a.find_path(B.map,"start","end"),N=[];for(let _=1;_<A.length-1;_++)N.push(B.table[A[_]].node);return e.fromArray(f(N))},e.rawSplit=function(y){return e.fromArray(E(y,u.isKanjiModeEnabled()))}})(Lt);const Z=I,et=q,he=jt,me=Gt,we=Tt,pe=It,st=Nt,at=Q,ye=Qt,G=Pt,Ce=Mt,Ee=R,nt=Lt;function Be(e,t){const i=e.size,o=pe.getPositions(t);for(let r=0;r<o.length;r++){const n=o[r][0],s=o[r][1];for(let u=-1;u<=7;u++)if(!(n+u<=-1||i<=n+u))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(u>=0&&u<=6&&(a===0||a===6)||a>=0&&a<=6&&(u===0||u===6)||u>=2&&u<=4&&a>=2&&a<=4?e.set(n+u,s+a,!0,!0):e.set(n+u,s+a,!1,!0))}}function Ae(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function Te(e,t){const i=we.getPositions(t);for(let o=0;o<i.length;o++){const r=i[o][0],n=i[o][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(r+s,n+u,!0,!0):e.set(r+s,n+u,!1,!0)}}function Ie(e,t){const i=e.size,o=G.getEncodedBits(t);let r,n,s;for(let u=0;u<18;u++)r=Math.floor(u/3),n=u%3+i-8-3,s=(o>>u&1)===1,e.set(r,n,s,!0),e.set(n,r,s,!0)}function rt(e,t,i){const o=e.size,r=Ce.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(o-15+n,8,s,!0),n<8?e.set(8,o-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,r=i-1,n=7,s=0;for(let u=i-1;u>0;u-=2)for(u===6&&u--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,u-a)){let c=!1;s<t.length&&(c=(t[s]>>>n&1)===1),e.set(r,u-a,c),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function be(e,t,i){const o=new he;i.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),Ee.getCharCountIndicator(a.mode,e)),a.write(o)});const r=Z.getSymbolTotalCodewords(e),n=at.getTotalCodewordsCount(e,t),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const u=(s-o.getLengthInBits())/8;for(let a=0;a<u;a++)o.put(a%2?17:236,8);return Se(o,e,t)}function Se(e,t,i){const o=Z.getSymbolTotalCodewords(t),r=at.getTotalCodewordsCount(t,i),n=o-r,s=at.getBlocksCount(t,i),u=o%s,a=s-u,c=Math.floor(o/s),l=Math.floor(n/s),E=l+1,m=c-l,f=new ye(m);let w=0;const p=new Array(s),T=new Array(s);let h=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const N=A<a?l:E;p[A]=y.slice(w,w+N),T[A]=f.encode(p[A]),w+=N,h=Math.max(h,N)}const g=new Uint8Array(o);let d=0,C,B;for(C=0;C<h;C++)for(B=0;B<s;B++)C<p[B].length&&(g[d++]=p[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)g[d++]=T[B][C];return g}function Pe(e,t,i,o){let r;if(Array.isArray(e))r=nt.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const l=nt.rawSplit(e);c=G.getBestVersionForData(l,i)}r=nt.fromString(e,c||40)}else throw new Error("Invalid data");const n=G.getBestVersionForData(r,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
1
+ import{H as Et,k as vt,z as zt,c as Vt,J as mt,w as wt,m as L,a as $,V as Ht,E as Kt,o as Jt,t as Ot,p as x}from"./chunks/framework.IfA2_2T5.js";var K={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},T={};let lt;const $t=[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];T.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};T.getSymbolTotalCodewords=function(t){return $t[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');lt=t};T.isKanjiModeEnabled=function(){return typeof lt<"u"};T.toSJIS=function(t){return lt(t)};var q={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.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: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(q);function bt(){this.buffer=[],this.length=0}bt.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 i=0;i<t;i++)this.putBit((e>>>t-i-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 jt=bt;function J(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)}J.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};J.prototype.get=function(e,t){return this.data[e*this.size+t]};J.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};J.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=J,At={};(function(e){const t=T.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,c=[n-7];for(let a=1;a<r-1;a++)c[a]=c[a-1]-s;return c.push(6),c.reverse()},e.getPositions=function(o){const r=[],n=e.getRowColCoords(o),s=n.length;for(let c=0;c<s;c++)for(let a=0;a<s;a++)c===0&&a===0||c===0&&a===s-1||c===s-1&&a===0||r.push([n[c],n[a]]);return r}})(At);var Tt={};const qt=T.getSymbolSize,pt=7;Tt.getPositions=function(t){const i=qt(t);return[[0,0],[i-pt,0],[0,i-pt]]};var Nt={};(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(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,c=0,a=0,u=null,l=null;for(let E=0;E<n;E++){c=a=0,u=l=null;for(let m=0;m<n;m++){let f=r.get(E,m);f===u?c++:(c>=5&&(s+=t.N1+(c-5)),u=f,c=1),f=r.get(m,E),f===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=f,a=1)}c>=5&&(s+=t.N1+(c-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let c=0;c<n-1;c++)for(let a=0;a<n-1;a++){const u=r.get(c,a)+r.get(c,a+1)+r.get(c+1,a)+r.get(c+1,a+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const n=r.size;let s=0,c=0,a=0;for(let u=0;u<n;u++){c=a=0;for(let l=0;l<n;l++)c=c<<1&2047|r.get(u,l),l>=10&&(c===1488||c===93)&&s++,a=a<<1&2047|r.get(l,u),l>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let a=0;a<s;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*t.N4};function i(o,r,n){switch(o){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,n){const s=n.size;for(let c=0;c<s;c++)for(let a=0;a<s;a++)n.isReserved(a,c)||n.xor(a,c,i(r,a,c))},e.getBestMask=function(r,n){const s=Object.keys(e.Patterns).length;let c=0,a=1/0;for(let u=0;u<s;u++){n(u),e.applyMask(u,r);const l=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(u,r),l<a&&(a=l,c=u)}return c}})(Nt);var Q={};const M=q,O=[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],Y=[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];Q.getBlocksCount=function(t,i){switch(i){case M.L:return O[(t-1)*4+0];case M.M:return O[(t-1)*4+1];case M.Q:return O[(t-1)*4+2];case M.H:return O[(t-1)*4+3];default:return}};Q.getTotalCodewordsCount=function(t,i){switch(i){case M.L:return Y[(t-1)*4+0];case M.M:return Y[(t-1)*4+1];case M.Q:return Y[(t-1)*4+2];case M.H:return Y[(t-1)*4+3];default:return}};var It={},W={};const V=new Uint8Array(512),j=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)V[i]=t,j[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return j[t]};W.exp=function(t){return V[t]};W.mul=function(t,i){return t===0||i===0?0:V[j[t]+j[i]]};(function(e){const t=W;e.mul=function(o,r){const n=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let c=0;c<r.length;c++)n[s+c]^=t.mul(o[s],r[c]);return n},e.mod=function(o,r){let n=new Uint8Array(o);for(;n.length-r.length>=0;){const s=n[0];for(let a=0;a<r.length;a++)n[a]^=t.mul(r[a],s);let c=0;for(;c<n.length&&n[c]===0;)c++;n=n.slice(c)}return n},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let n=0;n<o;n++)r=e.mul(r,new Uint8Array([1,t.exp(n)]));return r}})(It);const St=It;function ft(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ft.prototype.initialize=function(t){this.degree=t,this.genPoly=St.generateECPolynomial(this.degree)};ft.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=St.mod(i,this.genPoly),r=this.degree-o.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=ft,Pt={},R={},dt={};dt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const _t="[0-9]+",Wt="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const Xt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
2
+ ]))+`;S.KANJI=new RegExp(H,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Xt,"g");S.NUMERIC=new RegExp(_t,"g");S.ALPHANUMERIC=new RegExp(Wt,"g");const Zt=new RegExp("^"+H+"$"),xt=new RegExp("^"+_t+"$"),te=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Zt.test(t)};S.testNumeric=function(t){return xt.test(t)};S.testAlphanumeric=function(t){return te.test(t)};(function(e){const t=dt,i=S;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(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(R);(function(e){const t=T,i=Q,o=q,r=R,n=dt,s=7973,c=t.getBCHDigit(s);function a(m,f,w){for(let p=1;p<=40;p++)if(f<=e.getCapacity(p,w,m))return p}function u(m,f){return r.getCharCountIndicator(m,f)+4}function l(m,f){let w=0;return m.forEach(function(p){const A=u(p.mode,f);w+=A+p.getBitsLength()}),w}function E(m,f){for(let w=1;w<=40;w++)if(l(m,w)<=e.getCapacity(w,f,r.MIXED))return w}e.from=function(f,w){return n.isValid(f)?parseInt(f,10):w},e.getCapacity=function(f,w,p){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const A=t.getSymbolTotalCodewords(f),h=i.getTotalCodewordsCount(f,w),y=(A-h)*8;if(p===r.MIXED)return y;const g=y-u(p,f);switch(p){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,w){let p;const A=o.from(w,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,A);if(f.length===0)return 1;p=f[0]}else p=f;return a(p.mode,p.getLength(),A)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;t.getBCHDigit(w)-c>=0;)w^=s<<t.getBCHDigit(w)-c;return f<<12|w}})(Pt);var Mt={};const it=T,Rt=1335,ee=21522,yt=it.getBCHDigit(Rt);Mt.getEncodedBits=function(t,i){const o=t.bit<<3|i;let r=o<<10;for(;it.getBCHDigit(r)-yt>=0;)r^=Rt<<it.getBCHDigit(r)-yt;return(o<<10|r)^ee};var kt={};const ne=R;function D(e){this.mode=ne.NUMERIC,this.data=e.toString()}D.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i,o,r;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),r=parseInt(o,10),t.put(r,10);const n=this.data.length-i;n>0&&(o=this.data.substr(i),r=parseInt(o,10),t.put(r,n*3+1))};var re=D;const oe=R,tt=["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 U(e){this.mode=oe.ALPHANUMERIC,this.data=e}U.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=tt.indexOf(this.data[i])*45;o+=tt.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(tt.indexOf(this.data[i]),6)};var ie=U,se=function(t){for(var i=[],o=t.length,r=0;r<o;r++){var n=t.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const ae=se,ce=R;function F(e){this.mode=ce.BYTE,typeof e=="string"&&(e=ae(e)),this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var ue=F;const le=R,fe=T;function v(e){this.mode=le.KANJI,this.data=e}v.getBitsLength=function(t){return t*13};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=fe.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
+ Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var de=v,Lt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var c=t.PriorityQueue.make();c.push(o,0);for(var a,u,l,E,m,f,w,p,A;!c.empty();){a=c.pop(),u=a.value,E=a.cost,m=i[u]||{};for(l in m)m.hasOwnProperty(l)&&(f=m[l],w=E+f,p=s[l],A=typeof s[l]>"u",(A||p>w)&&(s[l]=w,c.push(l,w),n[l]=u))}if(typeof r<"u"&&typeof s[r]>"u"){var h=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Lt);var ge=Lt.exports;(function(e){const t=R,i=re,o=ie,r=ue,n=de,s=S,c=T,a=ge;function u(h){return unescape(encodeURIComponent(h)).length}function l(h,y,g){const d=[];let C;for(;(C=h.exec(g))!==null;)d.push({data:C[0],index:C.index,mode:y,length:C[0].length});return d}function E(h){const y=l(s.NUMERIC,t.NUMERIC,h),g=l(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let d,C;return c.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,h),C=l(s.KANJI,t.KANJI,h)):(d=l(s.BYTE_KANJI,t.BYTE,h),C=[]),y.concat(g,d,C).sort(function(b,N){return b.index-N.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function m(h,y){switch(y){case t.NUMERIC:return i.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return n.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(y,g){const d=y.length-1>=0?y[y.length-1]:null;return d&&d.mode===g.mode?(y[y.length-1].data+=g.data,y):(y.push(g),y)},[])}function w(h){const y=[];for(let g=0;g<h.length;g++){const d=h[g];switch(d.mode){case t.NUMERIC:y.push([d,{data:d.data,mode:t.ALPHANUMERIC,length:d.length},{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.ALPHANUMERIC:y.push([d,{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.KANJI:y.push([d,{data:d.data,mode:t.BYTE,length:u(d.data)}]);break;case t.BYTE:y.push([{data:d.data,mode:t.BYTE,length:u(d.data)}])}}return y}function p(h,y){const g={},d={start:{}};let C=["start"];for(let B=0;B<h.length;B++){const b=h[B],N=[];for(let _=0;_<b.length;_++){const I=b[_],z=""+B+_;N.push(z),g[z]={node:I,lastCount:0},d[z]={};for(let Z=0;Z<C.length;Z++){const P=C[Z];g[P]&&g[P].node.mode===I.mode?(d[P][z]=m(g[P].lastCount+I.length,I.mode)-m(g[P].lastCount,I.mode),g[P].lastCount+=I.length):(g[P]&&(g[P].lastCount=I.length),d[P][z]=m(I.length,I.mode)+4+t.getCharCountIndicator(I.mode,y))}}C=N}for(let B=0;B<C.length;B++)d[C[B]].end=0;return{map:d,table:g}}function A(h,y){let g;const d=t.getBestModeForData(h);if(g=t.from(y,d),g!==t.BYTE&&g.bit<d.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(g)+`.
4
+ Suggested mode is: `+t.toString(d));switch(g===t.KANJI&&!c.isKanjiModeEnabled()&&(g=t.BYTE),g){case t.NUMERIC:return new i(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new n(h);case t.BYTE:return new r(h)}}e.fromArray=function(y){return y.reduce(function(g,d){return typeof d=="string"?g.push(A(d,null)):d.data&&g.push(A(d.data,d.mode)),g},[])},e.fromString=function(y,g){const d=E(y,c.isKanjiModeEnabled()),C=w(d),B=p(C,g),b=a.find_path(B.map,"start","end"),N=[];for(let _=1;_<b.length-1;_++)N.push(B.table[b[_]].node);return e.fromArray(f(N))},e.rawSplit=function(y){return e.fromArray(E(y,c.isKanjiModeEnabled()))}})(kt);const X=T,et=q,he=jt,me=Gt,we=At,pe=Tt,st=Nt,at=Q,ye=Qt,G=Pt,Ce=Mt,Ee=R,nt=kt;function Be(e,t){const i=e.size,o=pe.getPositions(t);for(let r=0;r<o.length;r++){const n=o[r][0],s=o[r][1];for(let c=-1;c<=7;c++)if(!(n+c<=-1||i<=n+c))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(c>=0&&c<=6&&(a===0||a===6)||a>=0&&a<=6&&(c===0||c===6)||c>=2&&c<=4&&a>=2&&a<=4?e.set(n+c,s+a,!0,!0):e.set(n+c,s+a,!1,!0))}}function be(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function Ae(e,t){const i=we.getPositions(t);for(let o=0;o<i.length;o++){const r=i[o][0],n=i[o][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?e.set(r+s,n+c,!0,!0):e.set(r+s,n+c,!1,!0)}}function Te(e,t){const i=e.size,o=G.getEncodedBits(t);let r,n,s;for(let c=0;c<18;c++)r=Math.floor(c/3),n=c%3+i-8-3,s=(o>>c&1)===1,e.set(r,n,s,!0),e.set(n,r,s,!0)}function rt(e,t,i){const o=e.size,r=Ce.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(o-15+n,8,s,!0),n<8?e.set(8,o-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,r=i-1,n=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,c-a)){let u=!1;s<t.length&&(u=(t[s]>>>n&1)===1),e.set(r,c-a,u),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function Ie(e,t,i){const o=new he;i.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),Ee.getCharCountIndicator(a.mode,e)),a.write(o)});const r=X.getSymbolTotalCodewords(e),n=at.getTotalCodewordsCount(e,t),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let a=0;a<c;a++)o.put(a%2?17:236,8);return Se(o,e,t)}function Se(e,t,i){const o=X.getSymbolTotalCodewords(t),r=at.getTotalCodewordsCount(t,i),n=o-r,s=at.getBlocksCount(t,i),c=o%s,a=s-c,u=Math.floor(o/s),l=Math.floor(n/s),E=l+1,m=u-l,f=new ye(m);let w=0;const p=new Array(s),A=new Array(s);let h=0;const y=new Uint8Array(e.buffer);for(let b=0;b<s;b++){const N=b<a?l:E;p[b]=y.slice(w,w+N),A[b]=f.encode(p[b]),w+=N,h=Math.max(h,N)}const g=new Uint8Array(o);let d=0,C,B;for(C=0;C<h;C++)for(B=0;B<s;B++)C<p[B].length&&(g[d++]=p[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)g[d++]=A[B][C];return g}function Pe(e,t,i,o){let r;if(Array.isArray(e))r=nt.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){const l=nt.rawSplit(e);u=G.getBestVersionForData(l,i)}r=nt.fromString(e,u||40)}else throw new Error("Invalid data");const n=G.getBestVersionForData(r,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
5
5
  The chosen QR Code version cannot contain this amount of data.
6
6
  Minimum version required to store current data is: `+n+`.
7
- `);const s=be(t,i,r),u=Z.getSymbolSize(t),a=new me(u);return Be(a,t),Ae(a),Te(a,t),rt(a,i,0),t>=7&&Ie(a,t),Ne(a,s),isNaN(o)&&(o=st.getBestMask(a,rt.bind(null,a,i))),st.applyMask(o,a),rt(a,i,o),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:o,segments:r}}Bt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=et.M,r,n;return typeof i<"u"&&(o=et.from(i.errorCorrectionLevel,et.M),r=G.from(i.version),n=st.from(i.maskPattern),i.toSJISFunc&&Z.setToSJISFunction(i.toSJISFunc)),Pe(t,r,o,n)};var Ut={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(n){return[n,n]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,n=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:n,scale:n?4:s,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const n=e.getScale(o,r);return Math.floor((o+r.margin*2)*n)},e.qrToImageData=function(o,r,n){const s=r.modules.size,u=r.modules.data,a=e.getScale(s,n),c=Math.floor((s+n.margin*2)*a),l=n.margin*a,E=[n.color.light,n.color.dark];for(let m=0;m<c;m++)for(let f=0;f<c;f++){let w=(m*c+f)*4,p=n.color.light;if(m>=l&&f>=l&&m<c-l&&f<c-l){const T=Math.floor((m-l)/a),h=Math.floor((f-l)/a);p=E[u[T*s+h]?1:0]}o[w++]=p.r,o[w++]=p.g,o[w++]=p.b,o[w]=p.a}}})(gt);(function(e){const t=gt;function i(r,n,s){r.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,u){let a=u,c=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(c=o()),a=t.getOptions(a);const l=t.getImageWidth(n.modules.size,a),E=c.getContext("2d"),m=E.createImageData(l,l);return t.qrToImageData(m.data,n,a),i(E,c,l),E.putImageData(m,0,0),c},e.renderToDataURL=function(n,s,u){let a=u;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const c=e.render(n,s,a),l=a.type||"image/png",E=a.rendererOpts||{};return c.toDataURL(l,E.quality)}})(Ut);var kt={};const _e=gt;function Ct(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function ot(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Me(e,t,i){let o="",r=0,n=!1,s=0;for(let u=0;u<e.length;u++){const a=Math.floor(u%t),c=Math.floor(u/t);!a&&!n&&(n=!0),e[u]?(s++,u>0&&a>0&&e[u-1]||(o+=n?ot("M",a+i,.5+c+i):ot("m",r,0),r=0,n=!1),a+1<t&&e[u+1]||(o+=ot("h",s),s=0)):r++}return o}kt.render=function(t,i,o){const r=_e.getOptions(i),n=t.modules.size,s=t.modules.data,u=n+r.margin*2,a=r.color.light.a?"<path "+Ct(r.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+Ct(r.color.dark,"stroke")+' d="'+Me(s,n,r.margin)+'"/>',l='viewBox="0 0 '+u+" "+u+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+l+' shape-rendering="crispEdges">'+a+c+`</svg>
8
- `;return typeof o=="function"&&o(null,m),m};const Re=Yt,ut=Bt,Ft=Ut,Le=kt;function ht(e,t,i,o,r){const n=[].slice.call(arguments,1),s=n.length,u=typeof n[s-1]=="function";if(!u&&!Re())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof r>"u"?(r=o,o=void 0):(r=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(a,c){try{const l=ut.create(i,o);a(e(l,t,o))}catch(l){c(l)}})}try{const a=ut.create(i,o);r(null,e(a,t,o))}catch(a){r(a)}}K.create=ut.create;K.toCanvas=ht.bind(null,Ft.render);K.toDataURL=ht.bind(null,Ft.renderToDataURL);K.toString=ht.bind(null,function(e,t,i){return Le.render(e,i)});const L=Et(""),De=vt(()=>L.value.split("/").at(-1)||""),ct=Et("");zt(async()=>{if(!L.value){ct.value="";return}ct.value=await K.toDataURL(L.value,{width:256,margin:2})});L.value=localStorage.getItem("apkUrl")||"",fetch("https://registry.npmmirror.com/@gkd-kit/app/latest/files").then(async t=>{L.value=new URL((await t.json()).downloadUrl,t.url).href,localStorage.setItem("apkUrl",L.value)});const Ue=D("h1",{id:"开始使用",tabindex:"-1"},[$("开始使用 "),D("a",{class:"header-anchor",href:"#开始使用","aria-label":'Permalink to "开始使用"'},"​")],-1),ke=D("h2",{id:"下载安装",tabindex:"-1"},[$("下载安装 "),D("a",{class:"header-anchor",href:"#下载安装","aria-label":'Permalink to "下载安装"'},"​")],-1),Fe=["href"],ve=D("p",null,"或者扫描下方二维码即可下载最新版本",-1),ze=["src"],Ve=Ht("",13),Oe=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1706793360000}'),He={name:"guide/index.md"},Je=Object.assign(He,{setup(e){return(t,i)=>{const o=Kt("ClientOnly");return Ot(),Vt("div",null,[Ue,ke,mt(o,null,{default:wt(()=>[$(" 大陆用户可点击 "),D("a",{rel:"noopener noreferrer",href:x(L)},Jt(x(De)),9,Fe),$(" 下载 ")]),_:1}),ve,mt(o,null,{default:wt(()=>[D("img",{src:x(ct),"data-zoomable":"",alt:""},null,8,ze)]),_:1}),Ve])}}});export{Oe as __pageData,Je as default};
7
+ `);const s=Ie(t,i,r),c=X.getSymbolSize(t),a=new me(c);return Be(a,t),be(a),Ae(a,t),rt(a,i,0),t>=7&&Te(a,t),Ne(a,s),isNaN(o)&&(o=st.getBestMask(a,rt.bind(null,a,i))),st.applyMask(o,a),rt(a,i,o),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:o,segments:r}}Bt.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=et.M,r,n;return typeof i<"u"&&(o=et.from(i.errorCorrectionLevel,et.M),r=G.from(i.version),n=st.from(i.maskPattern),i.toSJISFunc&&X.setToSJISFunction(i.toSJISFunc)),Pe(t,r,o,n)};var Dt={},gt={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(n){return[n,n]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,n=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:n,scale:n?4:s,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const n=e.getScale(o,r);return Math.floor((o+r.margin*2)*n)},e.qrToImageData=function(o,r,n){const s=r.modules.size,c=r.modules.data,a=e.getScale(s,n),u=Math.floor((s+n.margin*2)*a),l=n.margin*a,E=[n.color.light,n.color.dark];for(let m=0;m<u;m++)for(let f=0;f<u;f++){let w=(m*u+f)*4,p=n.color.light;if(m>=l&&f>=l&&m<u-l&&f<u-l){const A=Math.floor((m-l)/a),h=Math.floor((f-l)/a);p=E[c[A*s+h]?1:0]}o[w++]=p.r,o[w++]=p.g,o[w++]=p.b,o[w]=p.a}}})(gt);(function(e){const t=gt;function i(r,n,s){r.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,c){let a=c,u=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(u=o()),a=t.getOptions(a);const l=t.getImageWidth(n.modules.size,a),E=u.getContext("2d"),m=E.createImageData(l,l);return t.qrToImageData(m.data,n,a),i(E,u,l),E.putImageData(m,0,0),u},e.renderToDataURL=function(n,s,c){let a=c;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const u=e.render(n,s,a),l=a.type||"image/png",E=a.rendererOpts||{};return u.toDataURL(l,E.quality)}})(Dt);var Ut={};const _e=gt;function Ct(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function ot(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function Me(e,t,i){let o="",r=0,n=!1,s=0;for(let c=0;c<e.length;c++){const a=Math.floor(c%t),u=Math.floor(c/t);!a&&!n&&(n=!0),e[c]?(s++,c>0&&a>0&&e[c-1]||(o+=n?ot("M",a+i,.5+u+i):ot("m",r,0),r=0,n=!1),a+1<t&&e[c+1]||(o+=ot("h",s),s=0)):r++}return o}Ut.render=function(t,i,o){const r=_e.getOptions(i),n=t.modules.size,s=t.modules.data,c=n+r.margin*2,a=r.color.light.a?"<path "+Ct(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+Ct(r.color.dark,"stroke")+' d="'+Me(s,n,r.margin)+'"/>',l='viewBox="0 0 '+c+" "+c+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+l+' shape-rendering="crispEdges">'+a+u+`</svg>
8
+ `;return typeof o=="function"&&o(null,m),m};const Re=Yt,ct=Bt,Ft=Dt,ke=Ut;function ht(e,t,i,o,r){const n=[].slice.call(arguments,1),s=n.length,c=typeof n[s-1]=="function";if(!c&&!Re())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof r>"u"?(r=o,o=void 0):(r=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(a,u){try{const l=ct.create(i,o);a(e(l,t,o))}catch(l){u(l)}})}try{const a=ct.create(i,o);r(null,e(a,t,o))}catch(a){r(a)}}K.create=ct.create;K.toCanvas=ht.bind(null,Ft.render);K.toDataURL=ht.bind(null,Ft.renderToDataURL);K.toString=ht.bind(null,function(e,t,i){return ke.render(e,i)});const k=Et(""),Le=vt(()=>k.value.split("/").at(-1)||""),ut=Et("");zt(async()=>{if(!k.value){ut.value="";return}ut.value=await K.toDataURL(k.value,{width:256,margin:2})});k.value=localStorage.getItem("apkUrl")||"",fetch("https://registry.npmmirror.com/@gkd-kit/app/latest/files").then(async t=>{k.value=new URL((await t.json()).downloadUrl,t.url).href,localStorage.setItem("apkUrl",k.value)});const De=L("h1",{id:"开始使用",tabindex:"-1"},[$("开始使用 "),L("a",{class:"header-anchor",href:"#开始使用","aria-label":'Permalink to "开始使用"'},"​")],-1),Ue=L("h2",{id:"下载安装",tabindex:"-1"},[$("下载安装 "),L("a",{class:"header-anchor",href:"#下载安装","aria-label":'Permalink to "下载安装"'},"​")],-1),Fe=["href"],ve=L("p",null,"或者扫描下方二维码即可下载最新版本",-1),ze=["src"],Ve=Ht("",12),Je=JSON.parse('{"title":"开始使用","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md","lastUpdated":1706797812000}'),He={name:"guide/index.md"},Oe=Object.assign(He,{setup(e){return(t,i)=>{const o=Kt("ClientOnly");return Jt(),Vt("div",null,[De,Ue,mt(o,null,{default:wt(()=>[$(" 大陆用户可点击 "),L("a",{rel:"noopener noreferrer",href:x(k)},Ot(x(Le)),9,Fe),$(" 下载 ")]),_:1}),ve,mt(o,null,{default:wt(()=>[L("img",{src:x(ut),"data-zoomable":"",alt:""},null,8,ze)]),_:1}),Ve])}}});export{Je as __pageData,Oe as default};
@@ -1 +1 @@
1
- import{_ as t,c as e,o as a}from"./chunks/framework.IfA2_2T5.js";const p=JSON.parse('{"title":"GKD","titleTemplate":"自定义屏幕点击应用","description":"","frontmatter":{"layout":"home","title":"GKD","titleTemplate":"自定义屏幕点击应用","hero":{"name":"GKD","text":"自定义屏幕点击应用","tagline":"基于无障碍+高级选择器+订阅规则","actions":[{"theme":"brand","text":"开始使用","link":"/guide/"},{"theme":"alt","text":"高级选择器","link":"/selector/"},{"theme":"alt","text":"订阅规则","link":"/scription/"},{"theme":"alt","text":"疑难解答","link":"/faq/"}]},"features":[{"title":"🐔 开放源代码","details":"任何人均可审查源代码, 确保安全性和质量"},{"title":"🐦 高级选择器","details":"一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点"},{"title":"🎤 订阅规则","details":"您可编写本地订阅满足自己需求, 远程订阅能让您直接使用大众维护的开源规则"},{"title":"🏀 快照审查","details":"捕获的快照可通过审查工具测试选择器帮助自定义规则, 也可直接分享快照寻求别人的帮助"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1706793360000}'),i={name:"index.md"};function l(n,s,o,r,d,c){return a(),e("div")}const x=t(i,[["render",l]]);export{p as __pageData,x as default};
1
+ import{_ as t,c as e,o as a}from"./chunks/framework.IfA2_2T5.js";const p=JSON.parse('{"title":"GKD","titleTemplate":"自定义屏幕点击应用","description":"","frontmatter":{"layout":"home","title":"GKD","titleTemplate":"自定义屏幕点击应用","hero":{"name":"GKD","text":"自定义屏幕点击应用","tagline":"基于无障碍+高级选择器+订阅规则","actions":[{"theme":"brand","text":"开始使用","link":"/guide/"},{"theme":"alt","text":"高级选择器","link":"/selector/"},{"theme":"alt","text":"订阅规则","link":"/scription/"},{"theme":"alt","text":"疑难解答","link":"/faq/"}]},"features":[{"title":"🐔 开放源代码","details":"任何人均可审查源代码, 确保安全性和质量"},{"title":"🐦 高级选择器","details":"一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点"},{"title":"🎤 订阅规则","details":"您可编写本地订阅满足自己需求, 远程订阅能让您直接使用大众维护的开源规则"},{"title":"🏀 快照审查","details":"捕获的快照可通过审查工具测试选择器帮助自定义规则, 也可直接分享快照寻求别人的帮助"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1706797812000}'),i={name:"index.md"};function l(n,s,o,r,d,c){return a(),e("div")}const x=t(i,[["render",l]]);export{p as __pageData,x as default};
@@ -1 +1 @@
1
- import{_ as t,c as e,o as a}from"./chunks/framework.IfA2_2T5.js";const p=JSON.parse('{"title":"GKD","titleTemplate":"自定义屏幕点击应用","description":"","frontmatter":{"layout":"home","title":"GKD","titleTemplate":"自定义屏幕点击应用","hero":{"name":"GKD","text":"自定义屏幕点击应用","tagline":"基于无障碍+高级选择器+订阅规则","actions":[{"theme":"brand","text":"开始使用","link":"/guide/"},{"theme":"alt","text":"高级选择器","link":"/selector/"},{"theme":"alt","text":"订阅规则","link":"/scription/"},{"theme":"alt","text":"疑难解答","link":"/faq/"}]},"features":[{"title":"🐔 开放源代码","details":"任何人均可审查源代码, 确保安全性和质量"},{"title":"🐦 高级选择器","details":"一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点"},{"title":"🎤 订阅规则","details":"您可编写本地订阅满足自己需求, 远程订阅能让您直接使用大众维护的开源规则"},{"title":"🏀 快照审查","details":"捕获的快照可通过审查工具测试选择器帮助自定义规则, 也可直接分享快照寻求别人的帮助"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1706793360000}'),i={name:"index.md"};function l(n,s,o,r,d,c){return a(),e("div")}const x=t(i,[["render",l]]);export{p as __pageData,x as default};
1
+ import{_ as t,c as e,o as a}from"./chunks/framework.IfA2_2T5.js";const p=JSON.parse('{"title":"GKD","titleTemplate":"自定义屏幕点击应用","description":"","frontmatter":{"layout":"home","title":"GKD","titleTemplate":"自定义屏幕点击应用","hero":{"name":"GKD","text":"自定义屏幕点击应用","tagline":"基于无障碍+高级选择器+订阅规则","actions":[{"theme":"brand","text":"开始使用","link":"/guide/"},{"theme":"alt","text":"高级选择器","link":"/selector/"},{"theme":"alt","text":"订阅规则","link":"/scription/"},{"theme":"alt","text":"疑难解答","link":"/faq/"}]},"features":[{"title":"🐔 开放源代码","details":"任何人均可审查源代码, 确保安全性和质量"},{"title":"🐦 高级选择器","details":"一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点"},{"title":"🎤 订阅规则","details":"您可编写本地订阅满足自己需求, 远程订阅能让您直接使用大众维护的开源规则"},{"title":"🏀 快照审查","details":"捕获的快照可通过审查工具测试选择器帮助自定义规则, 也可直接分享快照寻求别人的帮助"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1706797812000}'),i={name:"index.md"};function l(n,s,o,r,d,c){return a(),e("div")}const x=t(i,[["render",l]]);export{p as __pageData,x as default};
@@ -1 +1 @@
1
- import{_ as t,c as a,o as s,m as e,a as n}from"./chunks/framework.IfA2_2T5.js";const u=JSON.parse('{"title":"订阅规则","description":"","frontmatter":{},"headers":[],"relativePath":"scription/index.md","filePath":"scription/index.md","lastUpdated":1706793360000}'),o={name:"scription/index.md"},r=e("h1",{id:"订阅规则",tabindex:"-1"},[n("订阅规则 "),e("a",{class:"header-anchor",href:"#订阅规则","aria-label":'Permalink to "订阅规则"'},"​")],-1),i=e("p",null,"TODO",-1),c=[r,i];function d(_,l,p,h,m,f){return s(),a("div",null,c)}const $=t(o,[["render",d]]);export{u as __pageData,$ as default};
1
+ import{_ as t,c as a,o as s,m as e,a as n}from"./chunks/framework.IfA2_2T5.js";const u=JSON.parse('{"title":"订阅规则","description":"","frontmatter":{},"headers":[],"relativePath":"scription/index.md","filePath":"scription/index.md","lastUpdated":1706797812000}'),o={name:"scription/index.md"},r=e("h1",{id:"订阅规则",tabindex:"-1"},[n("订阅规则 "),e("a",{class:"header-anchor",href:"#订阅规则","aria-label":'Permalink to "订阅规则"'},"​")],-1),i=e("p",null,"TODO",-1),c=[r,i];function d(_,l,p,h,m,f){return s(),a("div",null,c)}const $=t(o,[["render",d]]);export{u as __pageData,$ as default};
@@ -1 +1 @@
1
- import{_ as t,c as a,o as s,m as e,a as n}from"./chunks/framework.IfA2_2T5.js";const u=JSON.parse('{"title":"订阅规则","description":"","frontmatter":{},"headers":[],"relativePath":"scription/index.md","filePath":"scription/index.md","lastUpdated":1706793360000}'),o={name:"scription/index.md"},r=e("h1",{id:"订阅规则",tabindex:"-1"},[n("订阅规则 "),e("a",{class:"header-anchor",href:"#订阅规则","aria-label":'Permalink to "订阅规则"'},"​")],-1),i=e("p",null,"TODO",-1),c=[r,i];function d(_,l,p,h,m,f){return s(),a("div",null,c)}const $=t(o,[["render",d]]);export{u as __pageData,$ as default};
1
+ import{_ as t,c as a,o as s,m as e,a as n}from"./chunks/framework.IfA2_2T5.js";const u=JSON.parse('{"title":"订阅规则","description":"","frontmatter":{},"headers":[],"relativePath":"scription/index.md","filePath":"scription/index.md","lastUpdated":1706797812000}'),o={name:"scription/index.md"},r=e("h1",{id:"订阅规则",tabindex:"-1"},[n("订阅规则 "),e("a",{class:"header-anchor",href:"#订阅规则","aria-label":'Permalink to "订阅规则"'},"​")],-1),i=e("p",null,"TODO",-1),c=[r,i];function d(_,l,p,h,m,f){return s(),a("div",null,c)}const $=t(o,[["render",d]]);export{u as __pageData,$ as default};
@@ -1 +1 @@
1
- import{_ as t,c as a,o as s,m as e,a as o}from"./chunks/framework.IfA2_2T5.js";const $=JSON.parse('{"title":"高级选择器","description":"","frontmatter":{},"headers":[],"relativePath":"selector/index.md","filePath":"selector/index.md","lastUpdated":1706793360000}'),n={name:"selector/index.md"},r=e("h1",{id:"高级选择器",tabindex:"-1"},[o("高级选择器 "),e("a",{class:"header-anchor",href:"#高级选择器","aria-label":'Permalink to "高级选择器"'},"​")],-1),c=e("p",null,"GKD 的核心功能, 一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点",-1),d=e("p",null,"TODO",-1),i=[r,c,d];function l(_,p,h,m,f,x){return s(),a("div",null,i)}const k=t(n,[["render",l]]);export{$ as __pageData,k as default};
1
+ import{_ as t,c as a,o as s,m as e,a as o}from"./chunks/framework.IfA2_2T5.js";const $=JSON.parse('{"title":"高级选择器","description":"","frontmatter":{},"headers":[],"relativePath":"selector/index.md","filePath":"selector/index.md","lastUpdated":1706797812000}'),n={name:"selector/index.md"},r=e("h1",{id:"高级选择器",tabindex:"-1"},[o("高级选择器 "),e("a",{class:"header-anchor",href:"#高级选择器","aria-label":'Permalink to "高级选择器"'},"​")],-1),c=e("p",null,"GKD 的核心功能, 一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点",-1),d=e("p",null,"TODO",-1),i=[r,c,d];function l(_,p,h,m,f,x){return s(),a("div",null,i)}const k=t(n,[["render",l]]);export{$ as __pageData,k as default};
@@ -1 +1 @@
1
- import{_ as t,c as a,o as s,m as e,a as o}from"./chunks/framework.IfA2_2T5.js";const $=JSON.parse('{"title":"高级选择器","description":"","frontmatter":{},"headers":[],"relativePath":"selector/index.md","filePath":"selector/index.md","lastUpdated":1706793360000}'),n={name:"selector/index.md"},r=e("h1",{id:"高级选择器",tabindex:"-1"},[o("高级选择器 "),e("a",{class:"header-anchor",href:"#高级选择器","aria-label":'Permalink to "高级选择器"'},"​")],-1),c=e("p",null,"GKD 的核心功能, 一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点",-1),d=e("p",null,"TODO",-1),i=[r,c,d];function l(_,p,h,m,f,x){return s(),a("div",null,i)}const k=t(n,[["render",l]]);export{$ as __pageData,k as default};
1
+ import{_ as t,c as a,o as s,m as e,a as o}from"./chunks/framework.IfA2_2T5.js";const $=JSON.parse('{"title":"高级选择器","description":"","frontmatter":{},"headers":[],"relativePath":"selector/index.md","filePath":"selector/index.md","lastUpdated":1706797812000}'),n={name:"selector/index.md"},r=e("h1",{id:"高级选择器",tabindex:"-1"},[o("高级选择器 "),e("a",{class:"header-anchor",href:"#高级选择器","aria-label":'Permalink to "高级选择器"'},"​")],-1),c=e("p",null,"GKD 的核心功能, 一种能联系节点上下文信息的的高级选择器, 更容易也更精确找到目标节点",-1),d=e("p",null,"TODO",-1),i=[r,c,d];function l(_,p,h,m,f,x){return s(),a("div",null,i)}const k=t(n,[["render",l]]);export{$ as __pageData,k as default};