vendor: 23,365 bytes, lines 1-7
1import{g as On,a as g,j as l}from"./query-vendor-BB0JUlq_.js";import{c as Ne,V as Vn,h as ee,b as qn,B as he}from"./index-CVuSjWCq.js";import{C as je,a as Me,b as Be,d as Ae,c as ke}from"./card-COxgaMnN.js";import{C as $t,B as ht,I as _e}from"./input-C0u5xVbq.js";import{u as Hn,L as ye}from"./label-CuOi8NYy.js";import{r as Qt}from"./react-vendor-BIjsaQ6L.js";import{t as zn,a as gt,z as Kn,y as dt,u as G,h as te,P as q,j as Gt,e as $n,A as Qn,c as V,g as Gn,f as Wn,d as Yn,E as Jn,F as Zn,G as Xn,H as er,D as tr,J as nr,C as rr,l as or}from"./ui-vendor-CwH6wFZJ.js";import{C as Wt}from"./chevron-down-O6I9_XNE.js";import{C as ir}from"./chevron-up-DCM66HMb.js";const sr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ar=Ne("copy",sr);const cr=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],pt=Ne("download",cr);const lr=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],xe=Ne("qr-code",lr);const dr=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],mt=Ne("users",dr);var ge={},Le,wt;function ur(){return wt||(wt=1,Le=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Le}var De={},X={},yt;function de(){if(yt)return X;yt=1;let r;const i=[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];return X.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},X.getSymbolTotalCodewords=function(t){return i[t]},X.getBCHDigit=function(o){let t=0;for(;o!==0;)t++,o>>>=1;return t},X.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');r=t},X.isKanjiModeEnabled=function(){return typeof r<"u"},X.toSJIS=function(t){return r(t)},X}var Ue={},xt;function ut(){return xt||(xt=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+o)}}r.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},r.from=function(t,e){if(r.isValid(t))return t;try{return i(t)}catch{return e}}})(Ue)),Ue}var Fe,vt;function fr(){if(vt)return Fe;vt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(i){const o=Math.floor(i/8);return(this.buffer[o]>>>7-i%8&1)===1},put:function(i,o){for(let t=0;t<o;t++)this.putBit((i>>>o-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(i){const o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),i&&(this.buffer[o]|=128>>>this.length%8),this.length++}},Fe=r,Fe}var Oe,Ct;function hr(){if(Ct)return Oe;Ct=1;function r(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}return r.prototype.set=function(i,o,t,e){const n=i*this.size+o;this.data[n]=t,e&&(this.reservedBit[n]=!0)},r.prototype.get=function(i,o){return this.data[i*this.size+o]},r.prototype.xor=function(i,o,t){this.data[i*this.size+o]^=t},r.prototype.isReserved=function(i,o){return this.reservedBit[i*this.size+o]},Oe=r,Oe}var Ve={},St;function gr(){return St||(St=1,(function(r){const i=de().getSymbolSize;r.getRowColCoords=function(t){if(t===1)return[];const e=Math.floor(t/7)+2,n=i(t),s=n===145?26:Math.ceil((n-13)/(2*e-2))*2,a=[n-7];for(let c=1;c<e-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},r.getPositions=function(t){const e=[],n=r.getRowColCoords(t),s=n.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||e.push([n[a],n[c]]);return e}})(Ve)),Ve}var qe={},Nt;function pr(){if(Nt)return qe;Nt=1;const r=de().getSymbolSize,i=7;return qe.getPositions=function(t){const e=r(t);return[[0,0],[e-i,0],[0,e-i]]},qe}var He={},bt;function mr(){return bt||(bt=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};r.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},r.from=function(e){return r.isValid(e)?parseInt(e,10):void 0},r.getPenaltyN1=function(e){const n=e.size;let s=0,a=0,c=0,d=null,h=null;for(let w=0;w<n;w++){a=c=0,d=h=null;for(let y=0;y<n;y++){let p=e.get(w,y);p===d?a++:(a>=5&&(s+=i.N1+(a-5)),d=p,a=1),p=e.get(y,w),p===h?c++:(c>=5&&(s+=i.N1+(c-5)),h=p,c=1)}a>=5&&(s+=i.N1+(a-5)),c>=5&&(s+=i.N1+(c-5))}return s},r.getPenaltyN2=function(e){const n=e.size;let s=0;for(let a=0;a<n-1;a++)for(let c=0;c<n-1;c++){const d=e.get(a,c)+e.get(a,c+1)+e.get(a+1,c)+e.get(a+1,c+1);(d===4||d===0)&&s++}return s*i.N2},r.getPenaltyN3=function(e){const n=e.size;let s=0,a=0,c=0;for(let d=0;d<n;d++){a=c=0;for(let h=0;h<n;h++)a=a<<1&2047|e.get(d,h),h>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|e.get(h,d),h>=10&&(c===1488||c===93)&&s++}return s*i.N3},r.getPenaltyN4=function(e){let n=0;const s=e.data.length;for(let c=0;c<s;c++)n+=e.data[c];return Math.abs(Math.ceil(n*100/s/5)-10)*i.N4};function o(t,e,n){switch(t){case r.Patterns.PATTERN000:return(e+n)%2===0;case r.Patterns.PATTERN001:return e%2===0;case r.Patterns.PATTERN010:return n%3===0;case r.Patterns.PATTERN011:return(e+n)%3===0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2===0;case r.Patterns.PATTERN101:return e*n%2+e*n%3===0;case r.Patterns.PATTERN110:return(e*n%2+e*n%3)%2===0;case r.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}r.applyMask=function(e,n){const s=n.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)n.isReserved(c,a)||n.xor(c,a,o(e,c,a))},r.getBestMask=function(e,n){const s=Object.keys(r.Patterns).length;let a=0,c=1/0;for(let d=0;d<s;d++){n(d),r.applyMask(d,e);const h=r.getPenaltyN1(e)+r.getPenaltyN2(e)+r.getPenaltyN3(e)+r.getPenaltyN4(e);r.applyMask(d,e),h<c&&(c=h,a=d)}return a}})(He)),He}var ve={},Et;function Yt(){if(Et)return ve;Et=1;const r=ut(),i=[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],o=[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];return ve.getBlocksCount=function(e,n){switch(n){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}},ve.getTotalCodewordsCount=function(e,n){switch(n){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},ve}var ze={},me={},Tt;function wr(){if(Tt)return me;Tt=1;const r=new Uint8Array(512),i=new Uint8Array(256);return(function(){let t=1;for(let e=0;e<255;e++)r[e]=t,i[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)r[e]=r[e-255]})(),me.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},me.exp=function(t){return r[t]},me.mul=function(t,e){return t===0||e===0?0:r[i[t]+i[e]]},me}var It;function yr(){return It||(It=1,(function(r){const i=wr();r.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let s=0;s<t.length;s++)for(let a=0;a<e.length;a++)n[s+a]^=i.mul(t[s],e[a]);return n},r.mod=function(t,e){let n=new Uint8Array(t);for(;n.length-e.length>=0;){const s=n[0];for(let c=0;c<e.length;c++)n[c]^=i.mul(e[c],s);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n},r.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let n=0;n<t;n++)e=r.mul(e,new Uint8Array([1,i.exp(n)]));return e}})(ze)),ze}var Ke,Rt;function xr(){if(Rt)return Ke;Rt=1;const r=yr();function i(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}return i.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=r.mod(e,this.genPoly),s=this.degree-n.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(n,s),a}return n},Ke=i,Ke}var $e={},Qe={},Ge={},Pt;function Jt(){return Pt||(Pt=1,Ge.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}),Ge}var Q={},jt;function Zt(){if(jt)return Q;jt=1;const r="[0-9]+",i="[A-Z $%*+\\-./:]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const t="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+`)(?:.|[\r 2]))+`;Q.KANJI=new RegExp(o,"g"),Q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Q.BYTE=new RegExp(t,"g"),Q.NUMERIC=new RegExp(r,"g"),Q.ALPHANUMERIC=new RegExp(i,"g");const e=new RegExp("^"+o+"$"),n=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Q.testKanji=function(c){return e.test(c)},Q.testNumeric=function(c){return n.test(c)},Q.testAlphanumeric=function(c){return s.test(c)},Q}var Mt;function ue(){return Mt||(Mt=1,(function(r){const i=Jt(),o=Zt();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!i.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},r.getBestModeForData=function(n){return o.testNumeric(n)?r.NUMERIC:o.testAlphanumeric(n)?r.ALPHANUMERIC:o.testKanji(n)?r.KANJI:r.BYTE},r.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},r.isValid=function(n){return n&&n.bit&&n.ccBits};function t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+e)}}r.from=function(n,s){if(r.isValid(n))return n;try{return t(n)}catch{return s}}})(Qe)),Qe}var Bt;function vr(){return Bt||(Bt=1,(function(r){const i=de(),o=Yt(),t=ut(),e=ue(),n=Jt(),s=7973,a=i.getBCHDigit(s);function c(y,p,C){for(let f=1;f<=40;f++)if(p<=r.getCapacity(f,C,y))return f}function d(y,p){return e.getCharCountIndicator(y,p)+4}function h(y,p){let C=0;return y.forEach(function(f){const R=d(f.mode,p);C+=R+f.getBitsLength()}),C}function w(y,p){for(let C=1;C<=40;C++)if(h(y,C)<=r.getCapacity(C,p,e.MIXED))return C}r.from=function(p,C){return n.isValid(p)?parseInt(p,10):C},r.getCapacity=function(p,C,f){if(!n.isValid(p))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=e.BYTE);const R=i.getSymbolTotalCodewords(p),x=o.getTotalCodewordsCount(p,C),u=(R-x)*8;if(f===e.MIXED)return u;const m=u-d(f,p);switch(f){case e.NUMERIC:return Math.floor(m/10*3);case e.ALPHANUMERIC:return Math.floor(m/11*2);case e.KANJI:return Math.floor(m/13);case e.BYTE:default:return Math.floor(m/8)}},r.getBestVersionForData=function(p,C){let f;const R=t.from(C,t.M);if(Array.isArray(p)){if(p.length>1)return w(p,R);if(p.length===0)return 1;f=p[0]}else f=p;return c(f.mode,f.getLength(),R)},r.getEncodedBits=function(p){if(!n.isValid(p)||p<7)throw new Error("Invalid QR Code version");let C=p<<12;for(;i.getBCHDigit(C)-a>=0;)C^=s<<i.getBCHDigit(C)-a;return p<<12|C}})($e)),$e}var We={},At;function Cr(){if(At)return We;At=1;const r=de(),i=1335,o=21522,t=r.getBCHDigit(i);return We.getEncodedBits=function(n,s){const a=n.bit<<3|s;let c=a<<10;for(;r.getBCHDigit(c)-t>=0;)c^=i<<r.getBCHDigit(c)-t;return(a<<10|c)^o},We}var Ye={},Je,kt;function Sr(){if(kt)return Je;kt=1;const r=ue();function i(o){this.mode=r.NUMERIC,this.data=o.toString()}return i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,n,s;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),s=parseInt(n,10),t.put(s,10);const a=this.data.length-e;a>0&&(n=this.data.substr(e),s=parseInt(n,10),t.put(s,a*3+1))},Je=i,Je}var Ze,_t;function Nr(){if(_t)return Ze;_t=1;const r=ue(),i=["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 o(t){this.mode=r.ALPHANUMERIC,this.data=t}return o.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let s=i.indexOf(this.data[n])*45;s+=i.indexOf(this.data[n+1]),e.put(s,11)}this.data.length%2&&e.put(i.indexOf(this.data[n]),6)},Ze=o,Ze}var Xe,Lt;function br(){if(Lt)return Xe;Lt=1;const r=ue();function i(o){this.mode=r.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}return i.getBitsLength=function(t){return t*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(o){for(let t=0,e=this.data.length;t<e;t++)o.put(this.data[t],8)},Xe=i,Xe}var et,Dt;function Er(){if(Dt)return et;Dt=1;const r=ue(),i=de();function o(t){this.mode=r.KANJI,this.data=t}return o.getBitsLength=function(e){return e*13},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=i.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` 3Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),t.put(n,13)}},et=o,et}var tt={exports:{}},Ut;function Tr(){return Ut||(Ut=1,(function(r){var i={single_source_shortest_paths:function(o,t,e){var n={},s={};s[t]=0;var a=i.PriorityQueue.make();a.push(t,0);for(var c,d,h,w,y,p,C,f,R;!a.empty();){c=a.pop(),d=c.value,w=c.cost,y=o[d]||{};for(h in y)y.hasOwnProperty(h)&&(p=y[h],C=w+p,f=s[h],R=typeof s[h]>"u",(R||f>C)&&(s[h]=C,a.push(h,C),n[h]=d))}if(typeof e<"u"&&typeof s[e]>"u"){var x=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(x)}return n},extract_shortest_path_from_predecessor_list:function(o,t){for(var e=[],n=t;n;)e.push(n),o[n],n=o[n];return e.reverse(),e},find_path:function(o,t,e){var n=i.single_source_shortest_paths(o,t,e);return i.extract_shortest_path_from_predecessor_list(n,e)},PriorityQueue:{make:function(o){var t=i.PriorityQueue,e={},n;o=o||{};for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e.queue=[],e.sorter=o.sorter||t.default_sorter,e},default_sorter:function(o,t){return o.cost-t.cost},push:function(o,t){var e={value:o,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=i})(tt)),tt.exports}var Ft;function Ir(){return Ft||(Ft=1,(function(r){const i=ue(),o=Sr(),t=Nr(),e=br(),n=Er(),s=Zt(),a=de(),c=Tr();function d(x){return unescape(encodeURIComponent(x)).length}function h(x,u,m){const P=[];let A;for(;(A=x.exec(m))!==null;)P.push({data:A[0],index:A.index,mode:u,length:A[0].length});return P}function w(x){const u=h(s.NUMERIC,i.NUMERIC,x),m=h(s.ALPHANUMERIC,i.ALPHANUMERIC,x);let P,A;return a.isKanjiModeEnabled()?(P=h(s.BYTE,i.BYTE,x),A=h(s.KANJI,i.KANJI,x)):(P=h(s.BYTE_KANJI,i.BYTE,x),A=[]),u.concat(m,P,A).sort(function(S,b){return S.index-b.index}).map(function(S){return{data:S.data,mode:S.mode,length:S.length}})}function y(x,u){switch(u){case i.NUMERIC:return o.getBitsLength(x);case i.ALPHANUMERIC:return t.getBitsLength(x);case i.KANJI:return n.getBitsLength(x);case i.BYTE:return e.getBitsLength(x)}}function p(x){return x.reduce(function(u,m){const P=u.length-1>=0?u[u.length-1]:null;return P&&P.mode===m.mode?(u[u.length-1].data+=m.data,u):(u.push(m),u)},[])}function C(x){const u=[];for(let m=0;m<x.length;m++){const P=x[m];switch(P.mode){case i.NUMERIC:u.push([P,{data:P.data,mode:i.ALPHANUMERIC,length:P.length},{data:P.data,mode:i.BYTE,length:P.length}]);break;case i.ALPHANUMERIC:u.push([P,{data:P.data,mode:i.BYTE,length:P.length}]);break;case i.KANJI:u.push([P,{data:P.data,mode:i.BYTE,length:d(P.data)}]);break;case i.BYTE:u.push([{data:P.data,mode:i.BYTE,length:d(P.data)}])}}return u}function f(x,u){const m={},P={start:{}};let A=["start"];for(let N=0;N<x.length;N++){const S=x[N],b=[];for(let v=0;v<S.length;v++){const j=S[v],E=""+N+v;b.push(E),m[E]={node:j,lastCount:0},P[E]={};for(let I=0;I<A.length;I++){const T=A[I];m[T]&&m[T].node.mode===j.mode?(P[T][E]=y(m[T].lastCount+j.length,j.mode)-y(m[T].lastCount,j.mode),m[T].lastCount+=j.length):(m[T]&&(m[T].lastCount=j.length),P[T][E]=y(j.length,j.mode)+4+i.getCharCountIndicator(j.mode,u))}}A=b}for(let N=0;N<A.length;N++)P[A[N]].end=0;return{map:P,table:m}}function R(x,u){let m;const P=i.getBestModeForData(x);if(m=i.from(u,P),m!==i.BYTE&&m.bit<P.bit)throw new Error('"'+x+'" cannot be encoded with mode '+i.toString(m)+`. 4 Suggested mode is: `+i.toString(P));switch(m===i.KANJI&&!a.isKanjiModeEnabled()&&(m=i.BYTE),m){case i.NUMERIC:return new o(x);case i.ALPHANUMERIC:return new t(x);case i.KANJI:return new n(x);case i.BYTE:return new e(x)}}r.fromArray=function(u){return u.reduce(function(m,P){return typeof P=="string"?m.push(R(P,null)):P.data&&m.push(R(P.data,P.mode)),m},[])},r.fromString=function(u,m){const P=w(u,a.isKanjiModeEnabled()),A=C(P),N=f(A,m),S=c.find_path(N.map,"start","end"),b=[];for(let v=1;v<S.length-1;v++)b.push(N.table[S[v]].node);return r.fromArray(p(b))},r.rawSplit=function(u){return r.fromArray(w(u,a.isKanjiModeEnabled()))}})(Ye)),Ye}var Ot;function Rr(){if(Ot)return De;Ot=1;const r=de(),i=ut(),o=fr(),t=hr(),e=gr(),n=pr(),s=mr(),a=Yt(),c=xr(),d=vr(),h=Cr(),w=ue(),y=Ir();function p(N,S){const b=N.size,v=n.getPositions(S);for(let j=0;j<v.length;j++){const E=v[j][0],I=v[j][1];for(let T=-1;T<=7;T++)if(!(E+T<=-1||b<=E+T))for(let B=-1;B<=7;B++)I+B<=-1||b<=I+B||(T>=0&&T<=6&&(B===0||B===6)||B>=0&&B<=6&&(T===0||T===6)||T>=2&&T<=4&&B>=2&&B<=4?N.set(E+T,I+B,!0,!0):N.set(E+T,I+B,!1,!0))}}function C(N){const S=N.size;for(let b=8;b<S-8;b++){const v=b%2===0;N.set(b,6,v,!0),N.set(6,b,v,!0)}}function f(N,S){const b=e.getPositions(S);for(let v=0;v<b.length;v++){const j=b[v][0],E=b[v][1];for(let I=-2;I<=2;I++)for(let T=-2;T<=2;T++)I===-2||I===2||T===-2||T===2||I===0&&T===0?N.set(j+I,E+T,!0,!0):N.set(j+I,E+T,!1,!0)}}function R(N,S){const b=N.size,v=d.getEncodedBits(S);let j,E,I;for(let T=0;T<18;T++)j=Math.floor(T/3),E=T%3+b-8-3,I=(v>>T&1)===1,N.set(j,E,I,!0),N.set(E,j,I,!0)}function x(N,S,b){const v=N.size,j=h.getEncodedBits(S,b);let E,I;for(E=0;E<15;E++)I=(j>>E&1)===1,E<6?N.set(E,8,I,!0):E<8?N.set(E+1,8,I,!0):N.set(v-15+E,8,I,!0),E<8?N.set(8,v-E-1,I,!0):E<9?N.set(8,15-E-1+1,I,!0):N.set(8,15-E-1,I,!0);N.set(v-8,8,1,!0)}function u(N,S){const b=N.size;let v=-1,j=b-1,E=7,I=0;for(let T=b-1;T>0;T-=2)for(T===6&&T--;;){for(let B=0;B<2;B++)if(!N.isReserved(j,T-B)){let F=!1;I<S.length&&(F=(S[I]>>>E&1)===1),N.set(j,T-B,F),E--,E===-1&&(I++,E=7)}if(j+=v,j<0||b<=j){j-=v,v=-v;break}}}function m(N,S,b){const v=new o;b.forEach(function(B){v.put(B.mode.bit,4),v.put(B.getLength(),w.getCharCountIndicator(B.mode,N)),B.write(v)});const j=r.getSymbolTotalCodewords(N),E=a.getTotalCodewordsCount(N,S),I=(j-E)*8;for(v.getLengthInBits()+4<=I&&v.put(0,4);v.getLengthInBits()%8!==0;)v.putBit(0);const T=(I-v.getLengthInBits())/8;for(let B=0;B<T;B++)v.put(B%2?17:236,8);return P(v,N,S)}function P(N,S,b){const v=r.getSymbolTotalCodewords(S),j=a.getTotalCodewordsCount(S,b),E=v-j,I=a.getBlocksCount(S,b),T=v%I,B=I-T,F=Math.floor(v/I),D=Math.floor(E/I),H=D+1,z=F-D,$=new c(z);let oe=0;const W=new Array(I),fe=new Array(I);let ie=0;const Y=new Uint8Array(N.buffer);for(let U=0;U<I;U++){const _=U<B?D:H;W[U]=Y.slice(oe,oe+_),fe[U]=$.encode(W[U]),oe+=_,ie=Math.max(ie,_)}const J=new Uint8Array(v);let Z=0,M,k;for(M=0;M<ie;M++)for(k=0;k<I;k++)M<W[k].length&&(J[Z++]=W[k][M]);for(M=0;M<z;M++)for(k=0;k<I;k++)J[Z++]=fe[k][M];return J}function A(N,S,b,v){let j;if(Array.isArray(N))j=y.fromArray(N);else if(typeof N=="string"){let F=S;if(!F){const D=y.rawSplit(N);F=d.getBestVersionForData(D,b)}j=y.fromString(N,F||40)}else throw new Error("Invalid data");const E=d.getBestVersionForData(j,b);if(!E)throw new Error("The amount of data is too big to be stored in a QR Code");if(!S)S=E;else if(S<E)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+E+`. 7`);const I=m(S,b,j),T=r.getSymbolSize(S),B=new t(T);return p(B,S),C(B),f(B,S),x(B,b,0),S>=7&&R(B,S),u(B,I),isNaN(v)&&(v=s.getBestMask(B,x.bind(null,B,b))),s.applyMask(v,B),x(B,b,v),{modules:B,version:S,errorCorrectionLevel:b,maskPattern:v,segments:j}}return De.create=function(S,b){if(typeof S>"u"||S==="")throw new Error("No input text");let v=i.M,j,E;return typeof b<"u"&&(v=i.from(b.errorCorrectionLevel,i.M),j=d.from(b.version),E=s.from(b.maskPattern),b.toSJISFunc&&r.setToSJISFunction(b.toSJISFunc)),A(S,j,v,E)},De}var nt={},rt={},Vt;function Xt(){return Vt||(Vt=1,(function(r){function i(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");
7let t=o.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+o);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");const e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,s=t.scale||4;return{width:n,scale:n?4:s,margin:e,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale},r.getImageWidth=function(t,e){const n=r.getScale(t,e);return Math.floor((t+e.margin*2)*n)},r.qrToImageData=function(t,e,n){const s=e.modules.size,a=e.modules.data,c=r.getScale(s,n),d=Math.floor((s+n.margin*2)*c),h=n.margin*c,w=[n.color.light,n.color.dark];for(let y=0;y<d;y++)for(let p=0;p<d;p++){let C=(y*d+p)*4,f=n.color.light;if(y>=h&&p>=h&&y<d-h&&p<d-h){const R=Math.floor((y-h)/c),x=Math.floor((p-h)/c);f=w[a[R*s+x]?1:0]}t[C++]=f.r,t[C++]=f.g,t[C++]=f.b,t[C]=f.a}}})(rt)),rt}var qt;function Pr(){return qt||(qt=1,(function(r){const i=Xt();function o(e,n,s){e.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 t(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(n,s,a){let c=a,d=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(d=t()),c=i.getOptions(c);const h=i.getImageWidth(n.modules.size,c),w=d.getContext("2d"),y=w.createImageData(h,h);return i.qrToImageData(y.data,n,c),o(w,d,h),w.putImageData(y,0,0),d},r.renderToDataURL=function(n,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const d=r.render(n,s,c),h=c.type||"image/png",w=c.rendererOpts||{};return d.toDataURL(h,w.quality)}})(nt)),nt}var ot={},Ht;function jr(){if(Ht)return ot;Ht=1;const r=Xt();function i(e,n){const s=e.a/255,a=n+'="'+e.hex+'"';return s<1?a+" "+n+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function o(e,n,s){let a=e+n;return typeof s<"u"&&(a+=" "+s),a}function t(e,n,s){let a="",c=0,d=!1,h=0;for(let w=0;w<e.length;w++){const y=Math.floor(w%n),p=Math.floor(w/n);!y&&!d&&(d=!0),e[w]?(h++,w>0&&y>0&&e[w-1]||(a+=d?o("M",y+s,.5+p+s):o("m",c,0),c=0,d=!1),y+1<n&&e[w+1]||(a+=o("h",h),h=0)):c++}return a}return ot.render=function(n,s,a){const c=r.getOptions(s),d=n.modules.size,h=n.modules.data,w=d+c.margin*2,y=c.color.light.a?"<path "+i(c.color.light,"fill")+' d="M0 0h'+w+"v"+w+'H0z"/>':"",p="<path "+i(c.color.dark,"stroke")+' d="'+t(h,d,c.margin)+'"/>',C='viewBox="0 0 '+w+" "+w+'"',R='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+C+' shape-rendering="crispEdges">'+y+p+`</svg> 8`;return typeof a=="function"&&a(null,R),R},ot}var zt;function Mr(){if(zt)return ge;zt=1;const r=ur(),i=Rr(),o=Pr(),t=jr();function e(n,s,a,c,d){const h=[].slice.call(arguments,1),w=h.length,y=typeof h[w-1]=="function";if(!y&&!r())throw new Error("Callback required as last argument");if(y){if(w<2)throw new Error("Too few arguments provided");w===2?(d=a,a=s,s=c=void 0):w===3&&(s.getContext&&typeof d>"u"?(d=c,c=void 0):(d=c,c=a,a=s,s=void 0))}else{if(w<1)throw new Error("Too few arguments provided");return w===1?(a=s,s=c=void 0):w===2&&!s.getContext&&(c=a,a=s,s=void 0),new Promise(function(p,C){try{const f=i.create(a,c);p(n(f,s,c))}catch(f){C(f)}})}try{const p=i.create(a,c);d(null,n(p,s,c))}catch(p){d(p)}}return ge.create=i.create,ge.toCanvas=e.bind(null,o.render),ge.toDataURL=e.bind(null,o.renderToDataURL),ge.toString=e.bind(null,function(n,s,a){return t.render(n,a)}),ge}var Br=Mr();const Ar=On(Br);function Kt(r,[i,o]){return Math.min(o,Math.max(i,r))}var kr=[" ","Enter","ArrowUp","ArrowDown"],_r=[" ","Enter"],ce="Select",[be,Ee,Lr]=$n(ce),[pe]=Wn(ce,[Lr,Gt]),Te=Gt(),[Dr,ne]=pe(ce),[Ur,Fr]=pe(ce),en=r=>{const{__scopeSelect:i,children:o,open:t,defaultOpen:e,onOpenChange:n,value:s,defaultValue:a,onValueChange:c,dir:d,name:h,autoComplete:w,disabled:y,required:p,form:C}=r,f=Te(i),[R,x]=g.useState(null),[u,m]=g.useState(null),[P,A]=g.useState(!1),N=zn(d),[S,b]=gt({prop:t,defaultProp:e??!1,onChange:n,caller:ce}),[v,j]=gt({prop:s,defaultProp:a,onChange:c,caller:ce}),E=g.useRef(null),I=R?C||!!R.closest("form"):!0,[T,B]=g.useState(new Set),F=Array.from(T).map(D=>D.props.value).join(";");return l.jsx(Kn,{...f,children:l.jsxs(Dr,{required:p,scope:i,trigger:R,onTriggerChange:x,valueNode:u,onValueNodeChange:m,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:dt(),value:v,onValueChange:j,open:S,onOpenChange:b,dir:N,triggerPointerDownPosRef:E,disabled:y,children:[l.jsx(be.Provider,{scope:i,children:l.jsx(Ur,{scope:r.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{B(H=>new Set(H).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{B(H=>{const z=new Set(H);return z.delete(D),z})},[]),children:o})}),I?l.jsxs(En,{"aria-hidden":!0,required:p,tabIndex:-1,name:h,autoComplete:w,value:v,onCh
vendor: 1,707 bytes, line 8
8ange:D=>j(D.target.value),disabled:y,form:C,children:[v===void 0?l.jsx("option",{value:""}):null,Array.from(T)]},F):null]})})};en.displayName=ce;var tn="SelectTrigger",nn=g.forwardRef((r,i)=>{const{__scopeSelect:o,disabled:t=!1,...e}=r,n=Te(o),s=ne(tn,o),a=s.disabled||t,c=G(i,s.onTriggerChange),d=Ee(o),h=g.useRef("touch"),[w,y,p]=In(f=>{const R=d().filter(m=>!m.disabled),x=R.find(m=>m.value===s.value),u=Rn(R,f,x);u!==void 0&&s.onValueChange(u.value)}),C=f=>{a||(s.onOpenChange(!0),p()),f&&(s.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return l.jsx(Qn,{asChild:!0,...n,children:l.jsx(q.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Tn(s.value)?"":void 0,...e,ref:c,onClick:V(e.onClick,f=>{f.currentTarget.focus(),h.current!=="mouse"&&C(f)}),onPointerDown:V(e.onPointerDown,f=>{h.current=f.pointerType;const R=f.target;R.hasPointerCapture(f.pointerId)&&R.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(C(f),f.preventDefault())}),onKeyDown:V(e.onKeyDown,f=>{const R=w.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&y(f.key),!(R&&f.key===" ")&&kr.includes(f.key)&&(C(),f.preventDefault())})})})});nn.displayName=tn;var rn="SelectValue",on=g.forwardRef((r,i)=>{const{__scopeSelect:o,className:t,style:e,children:n,placeholder:s="",...a}=r,c=ne(rn,o),{onValueNodeHasChildrenChange:d}=c,h=n!==void 0,w=G(i,c.onValueNodeChange);return te(()=>{d(h)},[d,h]),l.jsx(q.span,{...a,ref:w,style:{pointerEvents:"none"}
vendor: 14,480 bytes, line 8
8,children:Tn(c.value)?l.jsx(l.Fragment,{children:s}):n})});on.displayName=rn;var Or="SelectIcon",sn=g.forwardRef((r,i)=>{const{__scopeSelect:o,children:t,...e}=r;return l.jsx(q.span,{"aria-hidden":!0,...e,ref:i,children:t||"â¼"})});sn.displayName=Or;var Vr="SelectPortal",an=r=>l.jsx(Gn,{asChild:!0,...r});an.displayName=Vr;var le="SelectContent",cn=g.forwardRef((r,i)=>{const o=ne(le,r.__scopeSelect),[t,e]=g.useState();if(te(()=>{e(new DocumentFragment)},[]),!o.open){const n=t;return n?Qt.createPortal(l.jsx(ln,{scope:r.__scopeSelect,children:l.jsx(be.Slot,{scope:r.__scopeSelect,children:l.jsx("div",{children:r.children})})}),n):null}return l.jsx(dn,{...r,ref:i})});cn.displayName=le;var K=10,[ln,re]=pe(le),qr="SelectContentImpl",Hr=nr("SelectContent.RemoveScroll"),dn=g.forwardRef((r,i)=>{const{__scopeSelect:o,position:t="item-aligned",onCloseAutoFocus:e,onEscapeKeyDown:n,onPointerDownOutside:s,side:a,sideOffset:c,align:d,alignOffset:h,arrowPadding:w,collisionBoundary:y,collisionPadding:p,sticky:C,hideWhenDetached:f,avoidCollisions:R,...x}=r,u=ne(le,o),[m,P]=g.useState(null),[A,N]=g.useState(null),S=G(i,M=>P(M)),[b,v]=g.useState(null),[j,E]=g.useState(null),I=Ee(o),[T,B]=g.useState(!1),F=g.useRef(!1);g.useEffect(()=>{if(m)return Jn(m)},[m]),Zn();const D=g.useCallback(M=>{const[k,...U]=I().map(O=>O.ref.current),[_]=U.slice(-1),L=document.activeElement;for(const O of M)if(O===L||(O?.scrollIntoView({block:"nearest"}),O===k&&A&&(A.scrollTop=0),O===_&&A&&(A.scrollTop=A.scrollHeight),O?.focus(),document.activeElement!==L))return},[I,A]),H=g.useCallback(()=>D([b,m]),[D,b,m]);g.useEffect(()=>{T&&H()},[T,H]);const{onOpenChange:z,triggerPointerDownPosRef:$}=u;g.useEffect(()=>{if(m){let M={x:0,y:0};const k=_=>{M={x:Math.abs(Math.round(_.pageX)-($.current?.x??0)),y:Math.abs(Math.round(_.pageY)-($.current?.y??0))}},U=_=>{M.x<=10&&M.y<=10?_.preventDefault():m.contains(_.target)||z(!1),document.removeEventListener("pointermove",k),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",k),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",U,{capture:!0})}}},[m,z,$]),g.useEffect(()=>{const M=()=>z(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[z]);const[oe,W]=In(M=>{const k=I().filter(L=>!L.disabled),U=k.find(L=>L.ref.current===document.activeElement),_=Rn(k,M,U);_&&setTimeout(()=>_.ref.current.focus())}),fe=g.useCallback((M,k,U)=>{const _=!F.current&&!U;(u.value!==void 0&&u.value===k||_)&&(v(M),_&&(F.current=!0))},[u.value]),ie=g.useCallback(()=>m?.focus(),[m]),Y=g.useCallback((M,k,U)=>{const _=!F.current&&!U;(u.value!==void 0&&u.value===k||_)&&E(M)},[u.value]),J=t==="popper"?it:un,Z=J===it?{side:a,sideOffset:c,align:d,alignOffset:h,arrowPadding:w,collisionBoundary:y,collisionPadding:p,sticky:C,hideWhenDetached:f,avoidCollisions:R}:{};return l.jsx(ln,{scope:o,content:m,viewport:A,onViewportChange:N,itemRefCallback:fe,selectedItem:b,onItemLeave:ie,itemTextRefCallback:Y,focusSelectedItem:H,selectedItemText:j,position:t,isPositioned:T,searchRef:oe,children:l.jsx(Xn,{as:Hr,allowPinchZoom:!0,children:l.jsx(er,{asChild:!0,trapped:u.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:V(e,M=>{u.trigger?.focus({preventScroll:!0}),M.preventDefault()}),children:l.jsx(tr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>u.onOpenChange(!1),children:l.jsx(J,{role:"listbox",id:u.contentId,"data-state":u.open?"open":"closed",dir:u.dir,onContextMenu:M=>M.preventDefault(),...x,...Z,onPlaced:()=>B(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:V(x.onKeyDown,M=>{const k=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!k&&M.key.length===1&&W(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let _=I().filter(L=>!L.disabled).map(L=>L.ref.current);if(["ArrowUp","End"].includes(M.key)&&(_=_.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const L=M.target,O=_.indexOf(L);_=_.slice(O+1)}setTimeout(()=>D(_)),M.preventDefault()}})})})})})})});dn.displayName=qr;var zr="SelectItemAlignedPosition",un=g.forwardRef((r,i)=>{const{__scopeSelect:o,onPlaced:t,...e}=r,n=ne(le,o),s=re(le,o),[a,c]=g.useState(null),[d,h]=g.useState(null),w=G(i,S=>h(S)),y=Ee(o),p=g.useRef(!1),C=g.useRef(!0),{viewport:f,selectedItem:R,selectedItemText:x,focusSelectedItem:u}=s,m=g.useCallback(()=>{if(n.trigger&&n.valueNode&&a&&d&&f&&R&&x){const S=n.trigger.getBoundingClientRect(),b=d.getBoundingClientRect(),v=n.valueNode.getBoundingClientRect(),j=x.getBoundingClientRect();if(n.dir!=="rtl"){const L=j.left-b.left,O=v.left-L,se=S.left-O,ae=S.width+se,Ie=Math.max(ae,b.width),Re=window.innerWidth-K,Pe=Kt(O,[K,Math.max(K,Re-Ie)]);a.style.minWidth=ae+"px",a.style.left=Pe+"px"}else{const L=b.right-j.right,O=window.innerWidth-v.right-L,se=window.innerWidth-S.right-O,ae=S.width+se,Ie=Math.max(ae,b.width),Re=window.innerWidth-K,Pe=Kt(O,[K,Math.max(K,Re-Ie)]);a.style.minWidth=ae+"px",a.style.right=Pe+"px"}const E=y(),I=window.innerHeight-K*2,T=f.scrollHeight,B=window.getComputedStyle(d),F=parseInt(B.borderTopWidth,10),D=parseInt(B.paddingTop,10),H=parseInt(B.borderBottomWidth,10),z=parseInt(B.paddingBottom,10),$=F+D+T+z+H,oe=Math.min(R.offsetHeight*5,$),W=window.getComputedStyle(f),fe=parseInt(W.paddingTop,10),ie=parseInt(W.paddingBottom,10),Y=S.top+S.height/2-K,J=I-Y,Z=R.offsetHeight/2,M=R.offsetTop+Z,k=F+D+M,U=$-k;if(k<=Y){const L=E.length>0&&R===E[E.length-1].ref.current;a.style.bottom="0px";const O=d.clientHeight-f.offsetTop-f.offsetHeight,se=Math.max(J,Z+(L?ie:0)+O+H),ae=k+se;a.style.height=ae+"px"}else{const L=E.length>0&&R===E[0].ref.current;a.style.top="0px";const se=Math.max(Y,F+f.offsetTop+(L?fe:0)+Z)+U;a.style.height=se+"px",f.scrollTop=k-Y+f.offsetTop}a.style.margin=`${K}px 0`,a.style.minHeight=oe+"px",a.style.maxHeight=I+"px",t?.(),requestAnimationFrame(()=>p.current=!0)}},[y,n.trigger,n.valueNode,a,d,f,R,x,n.dir,t]);te(()=>m(),[m]);const[P,A]=g.useState();te(()=>{d&&A(window.getComputedStyle(d).zIndex)},[d]);const N=g.useCallback(S=>{S&&C.current===!0&&(m(),u?.(),C.current=!1)},[m,u]);return l.jsx($r,{scope:o,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:l.jsx(q.div,{...e,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...e.style}})})})});un.displayName=zr;var Kr="SelectPopperPosition",it=g.forwardRef((r,i)=>{const{__scopeSelect:o,align:t="start",collisionPadding:e=K,...n}=r,s=Te(o);return l.jsx(rr,{...s,...n,ref:i,align:t,collisionPadding:e,style:{boxSizing:"border-box",...n.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});it.displayName=Kr;var[$r,ft]=pe(le,{}),st="SelectViewport",fn=g.forwardRef((r,i)=>{const{__scopeSelect:o,nonce:t,...e}=r,n=re(st,o),s=ft(st,o),a=G(i,n.onViewportChange),c=g.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),l.jsx(be.Slot,{scope:o,children:l.jsx(q.div,{"data-radix-select-viewport":"",role:"presentation",...e,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...e.style},onScroll:V(e.onScroll,d=>{const h=d.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:y}=s;if(y?.current&&w){const p=Math.abs(c.current-h.scrollTop);if(p>0){const C=window.innerHeight-K*2,f=parseFloat(w.style.minHeight),R=parseFloat(w.style.height),x=Math.max(f,R);if(x<C){const u=x+p,m=Math.min(C,u),P=u-m;w.style.height=m+"px",w.style.bottom==="0px"&&(h.scrollTop=P>0?P:0,w.style.justifyContent="flex-end")}}}c.current=h.scrollTop})})})]})});fn.displayName=st;var hn="SelectGroup",[Qr,Gr]=pe(hn),Wr=g.forwardRef((r,i)=>{const{__scopeSelect:o,...t}=r,e=dt();return l.jsx(Qr,{scope:o,id:e,children:l.jsx(q.div,{role:"group","aria-labelledby":e,...t,ref:i})})});Wr.displayName=hn;var gn="SelectLabel",pn=g.forwardRef((r,i)=>{const{__scopeSelect:o,...t}=r,e=Gr(gn,o);return l.jsx(q.div,{id:e.id,...t,ref:i})});pn.displayName=gn;var Se="SelectItem",[Yr,mn]=pe(Se),wn=g.forwardRef((r,i)=>{const{__scopeSelect:o,value:t,disabled:e=!1,textValue:n,...s}=r,a=ne(Se,o),c=re(Se,o),d=a.value===t,[h,w]=g.useState(n??""),[y,p]=g.useState(!1),C=G(i,u=>c.itemRefCallback?.(u,t,e)),f=dt(),R=g.useRef("touch"),x=()=>{e||(a.onValueChange(t),a.onOpenChange(!1))};if(t==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(Yr,{scope:o,value:t,disabled:e,textId:f,isSelected:d,onItemTextChange:g.useCallback(u=>{w(m=>m||(u?.textContent??"").trim())},[]),children:l.jsx(be.ItemSlot,{scope:o,value:t,disabled:e,textValue:h,children:l.jsx(q.div,{role:"option","aria-labelledby":f,"data-highlighted":y?"":void 0,"aria-selected":d&&y,"data-state":d?"checked":"unchecked","aria-disabled":e||void 0,"data-disabled":e?"":void 0,tabIndex:e?void 0:-1,...s,ref:C,onFocus:V(s.onFocus,()=>p(!0)),onBlur:V(s.onBlur,()=>p(!1)),onClick:V(s.onClick,()=>{R.current!=="mouse"&&x()}),onPointerUp:V(s.onPointerUp,()=>{R.current==="mouse"&&x()}),onPointerDown:V(s.onPointerDown,u=>{R.current=u.pointerType}),onPointerMove:V(s.onPointerMove,u=>{R.current=u.pointerType,e?c.onItemLeave?.():R.current==="mouse"&&u.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(s.onPointerLeave,u=>{u.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(s.onKeyDown,u=>{c.searchRef?.current!==""&&u.key===" "||(_r.includes(u.key)&&x(),u.key===" "&&u.preventDefault())})})})})});wn.displayName=Se;var we="SelectItemText",yn=g.forwardRef((r,i)=>{const{__scopeSelect:o,className:t,style:e,...n}=r,s=ne(we,o),a=re(we,o),c=mn(we,o),d=Fr(we,o),[h,w]=g.useState(null),y=G(i,x=>w(x),c.onItemTextChange,x=>a.itemTextRefCallback?.(x,c.value,c.disabled)),p=h?.textContent,C=g.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:f,onNativeOptionRemove:R}=d;return te(()=>(f(C),()=>R(C)),[f,R,C]),l.jsxs(l.Fragment,{children:[l.jsx(q.span,{id:c.textId,...n,ref:y}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Qt.createPortal(n.children,s.valueNode):null]})});yn.displayName=we;var xn="SelectItemIndicator",vn=g.forwardRef((r,i)=>{const{__scopeSelect:o,...t}=r;return mn(xn,o).isSelected?l.jsx(q.span,{"aria-hidden":!0,...t,ref:i}):null});vn.displayName=xn;var at="SelectScrollUpButton",Cn=g.forwardRef((r,i)=>{const o=re(at,r.__scopeSelect),t=ft(at,r.__scopeSelect),[e,n]=g.useState(!1),s=G(i,t.onScrollButtonChange);return te(()=>{if(o.viewport&&o.isPositioned){let a=function(){const d=c.scrollTop>0;n(d)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),e?l.jsx(Nn,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Cn.displayName=at;var ct="SelectScrollDownButton",Sn=g.forwardRef((r,i)=>{const o=re(ct,r.__scopeSelect),t=ft(ct,r.__scopeSelect),[e,n]=g.useState(!1),s=G(i,t.onScrollButtonChange);return te(()=>{if(o.viewport&&o.isPositioned){let a=function(){const d=c.scrollHeight-c.clientHeight,h=Math.ceil(c.scrollTop)<d;n(h)};const c=o.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[o.viewport,o.isPositioned]),e?l.jsx(Nn,{...r,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=o;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Sn.displayName=ct;var Nn=g.forwardRef((r,i)=>{const{__scopeSelect:o,onAutoScroll:t,...e}=r,n=re("SelectScrollButton",o),s=g.useRef(null),a=Ee(o),c=g.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),te(()=>{a().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),l.jsx(q.div,{"aria-hidden":!0,...e,ref:i,style:{flexShrink:0,...e.style},onPointerDown:V(e.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(t,50))}),onPointerMove:V(e.onPointerMove,()=>{n.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(t,50))}),onPointerLeave:V(e.onPointerLeave,()=>{c()})})}),Jr="SelectSeparator",bn=g.forwardRef((r,i)=>{const{__scopeSelect:o,...t}=r;return l.jsx(q.div,{"aria-hidden":!0,...t,ref:i})});bn.displayName=Jr;var lt="SelectArrow",Zr=g.forwardRef((r,i)=>{const{__scopeSelect:o,...t}=r,e=Te(o),n=ne(lt,o),s=re(lt,o);return n.open&&s.position==="popper"?l.jsx(or,{...e,...t,ref:i}):null});Zr.displayName=lt;var Xr="SelectBubbleInput",En=g.forwardRef(({__scopeSelect:r,value:i,...o},t)=>{const e=g.useRef(null),n=G(t,e),s=Hn(i);return g.useEffect(()=>{const a=e.current;if(!a)return;const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==i&&h){const w=new Event("change",{bubbles:!0});h.call(a,i),a.dispatchEvent(w)}},[s,i]),l.jsx(q.select,{...o,style:{...Vn,...o.style},ref:n,defaultValue:i})});En.displayName=Xr;function Tn(r){return r===""||r===void 0}function In(r){const i=Yn(r),o=g.useRef(""),t=g.useRef(0),e=g.useCallback(s=>{const a=o.current+s;i(a),(function c(d){o.current=d,window.clearTimeout(t.current),d!==""&&(t.current=window.setTimeout(()=>c(""),1e3))})(a)},[i]),n=g.useCallback(()=>{o.current="",window.clearTimeout(t.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(t.current),[]),[o,e,n]}function Rn(r,i,o){const e=i.length>1&&Array.from(i).every(d=>d===i[0])?i[0]:i,n=o?r.indexOf(o):-1;let s=eo(r,Math.max(n,0));e.length===1&&(s=s.filter(d=>d!==o));const c=s.find(d=>d.textValue.toLowerCase().startsWith(e.toLowerCase()));return c!==o?c:void 0}function eo(r,i){return r.map((o,t)=>r[(i+t)%r.length])}
8var to=en,Pn=nn,no=on,ro=sn,oo=an,jn=cn,io=fn,Mn=pn,Bn=wn,so=yn,ao=vn,An=Cn,kn=Sn,_n=bn;const co=to,lo=no,Ln=g.forwardRef(({className:r,children:i,...o},t)=>l.jsxs(Pn,{ref:t,className:ee("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[i,l.jsx(ro,{asChild:!0,children:l.jsx(Wt,{className:"h-4 w-4 opacity-50"})})]}));Ln.displayName=Pn.displayName;const Dn=g.forwardRef(({className:r,...i},o)=>l.jsx(An,{ref:o,className:ee("flex cursor-default items-center justify-center py-1",r),...i,children:l.jsx(ir,{className:"h-4 w-4"})}));Dn.displayName=An.displayName;const Un=g.forwardRef(({className:r,...i},o)=>l.jsx(kn,{ref:o,className:ee("flex cursor-default items-center justify-center py-1",r),...i,children:l.jsx(Wt,{className:"h-4 w-4"})}));Un.displayName=kn.displayName;const Fn=g.forwardRef(({className:r,children:i,position:o="popper",...t},e)=>l.jsx(oo,{children:l.jsxs(jn,{ref:e,className:ee("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...t,children:[l.jsx(Dn,{}),l.jsx(io,{className:ee("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),l.jsx(Un,{})]})}));Fn.displayName=jn.displayName;const uo=g.forwardRef(({className:r,...i},o)=>l.jsx(Mn,{ref:o,className:ee("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...i}));uo.displayName=Mn.displayName;const Ce=g.forwardRef(({className:r,children:i,...o},t)=>l.jsxs(Bn,{ref:t,className:ee("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(ao,{children:l.jsx($t,{className:"h-4 w-4"})})}),l.jsx(so,{children:i})]}));Ce.displayName=Bn.displayName;const fo=g.forwardRef(({className:r,...i},o)=>l.jsx(_n,{ref:o,className:ee("-mx-1 my-1 h-px bg-muted",r),...i}));fo.displayName=_n.displayName;function So(){const r=window.location.origin,[i,o]=g.useState("intake"),[t,e]=g.useState(""),[n,s]=g.useState(""),[a,c]=g.useState(""),[d,h]=g.useState(""),[w,y]=g.useState(!1),{toast:p}=qn();g.useEffect(()=>{C()},[i,t,n]);const C=async()=>{let u=r;switch(i){case"intake":u=`${r}/intake`;break;case"trial":u=`${r}/intake?trial=true`;break;case"campaign":if(t||n){const m=new URLSearchParams;t&&m.append("campaign",t),n&&m.append("teacher",n),u=`${r}/intake?${m.toString()}`}else u=`${r}/intake`;break}h(u);try{const m=await Ar.toDataURL(u,{width:512,margin:2,color:{dark:"#000000",light:"#FFFFFF"},errorCorrectionLevel:"H"});c(m)}catch(m){console.error("Error generating QR code:",m),p({title:"Error",description:"Failed to generate QR code",variant:"destructive"})}},f=()=>{const u=document.createElement("a");u.download=`intune-${i}-qr-code.png`,u.href=a,u.click(),p({title:"Downloaded",description:"QR code image saved successfully"})},R=async()=>{try{await navigator.clipboard.writeText(d),y(!0),setTimeout(()=>y(!1),2e3),p({title:"Copied",description:"URL copied to clipboard"})}catch{p({title:"Error",description:"Failed to copy URL",variant:"destructive"})}},x=()=>{const u=window.open("","","width=800,height=600");u&&(u.document.write(` 9 <!DOCTYPE html> 10 <html> 11 <head> 12 <title>InTune QR Code - ${i}</title> 13 <style> 14 body { 15 font-family: Arial, sans-serif; 16 text-align: center; 17 padding: 40px; 18 } 19 .container { 20 max-width: 600px; 21 margin: 0 auto; 22 border: 2px solid #2563eb; 23 padding: 30px; 24 border-radius: 10px; 25 } 26 h1 { 27 color: #2563eb; 28 margin-bottom: 10px; 29 } 30 .subtitle { 31 color: #666; 32 margin-bottom: 30px; 33 } 34 img { 35 max-width: 400px; 36 width: 100%; 37 height: auto; 38 } 39 .instructions { 40 margin-top: 30px; 41 text-align: left; 42 line-height: 1.8; 43 } 44 .url { 45 margin-top: 20px; 46 padding: 10px; 47 background: #f3f4f6; 48 border-radius: 5px; 49 word-break: break-all; 50 font-size: 14px; 51 } 52 @media print { 53 .container { 54 border: 2px solid black; 55 } 56 } 57 </style> 58 </head> 59 <body> 60 <div class="container"> 61 <h1>ðµ InTune Music Tuition</h1> 62 <p class="subtitle">Student Registration QR Code</p> 63 <img src="${a}" alt="QR Code" /> 64 <div class="instructions"> 65 <p><strong>How to register:</strong></p> 66 <ol> 67 <li>Open your phone's camera app</li> 68 <li>Point the camera at this QR code</li> 69 <li>Tap the notification that appears</li> 70 <li>Complete the registration form</li> 71 </ol> 72 </div> 73 <div class="url"> 74 <strong>Direct link:</strong><br/> 75 ${d} 76 </div> 77 </div> 78 </body> 79 </html> 80 `),u.document.close(),u.focus(),setTimeout(()=>{u.print(),u.close()},250))};return l.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-6xl",children:[l.jsxs("div",{className:"mb-8 text-center",children:[l.jsxs("h1",{className:"text-4xl font-bold mb-2 flex items-center justify-center gap-2",children:[l.jsx(xe,{className:"w-10 h-10 text-primary"}),"QR Code Generator"]}
80),l.jsx("p",{className:"text-foreground/70",children:"Create QR codes for student registration - students can scan and self-register!"})]}),l.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[l.jsxs(je,{children:[l.jsxs(Me,{children:[l.jsx(Be,{children:"Configuration"}),l.jsx(Ae,{children:"Customize your QR code for different purposes"})]}),l.jsxs(ke,{className:"space-y-6",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(ye,{children:"QR Code Type"}),l.jsxs(co,{value:i,onValueChange:u=>o(u),children:[l.jsx(Ln,{children:l.jsx(lo,{})}),l.jsxs(Fn,{children:[l.jsx(Ce,{value:"intake",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(mt,{className:"w-4 h-4"}),"General Student Registration"]})}),l.jsx(Ce,{value:"trial",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ht,{className:"w-4 h-4"}),"Trial Lesson Sign-up"]})}),l.jsx(Ce,{value:"campaign",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(xe,{className:"w-4 h-4"}),"Marketing Campaign"]})})]})]})]}),i==="campaign"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(ye,{htmlFor:"campaign",children:"Campaign ID (Optional)"}),l.jsx(_e,{id:"campaign",placeholder:"e.g., spring2026, open-house",value:t,onChange:u=>e(u.target.value)}),l.jsx("p",{className:"text-xs text-foreground/60",children:"Track where registrations came from"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(ye,{htmlFor:"teacher",children:"Teacher ID (Optional)"}),l.jsx(_e,{id:"teacher",placeholder:"e.g., teacher-123",value:n,onChange:u=>s(u.target.value)}),l.jsx("p",{className:"text-xs text-foreground/60",children:"Link to specific teacher referral"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(ye,{children:"Generated URL"}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(_e,{value:d,readOnly:!0,className:"font-mono text-sm"}),l.jsx(he,{size:"icon",variant:"outline",onClick:R,title:"Copy URL",children:w?l.jsx($t,{className:"w-4 h-4 text-green-600"}):l.jsx(ar,{className:"w-4 h-4"})})]})]}),l.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[l.jsx("h3",{className:"font-semibold mb-2 text-sm",children:"Usage Tips:"}),l.jsxs("ul",{className:"text-sm space-y-1 text-foreground/70",children:[l.jsx("li",{children:"⢠Print and display at your studio entrance"}),l.jsx("li",{children:"⢠Include in physical marketing materials"}),l.jsx("li",{children:"⢠Add to business cards and flyers"}),l.jsx("li",{children:"⢠Display at school music events"}),l.jsx("li",{children:"⢠Works with any smartphone camera"})]})]})]})]}),l.jsxs(je,{children:[l.jsxs(Me,{children:[l.jsx(Be,{children:"Your QR Code"}),l.jsx(Ae,{children:"Scan with a smartphone camera to test"})]}),l.jsxs(ke,{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-center p-8 bg-white rounded-lg",children:a?l.jsx("img",{src:a,alt:"QR Code",className:"max-w-full h-auto",style:{maxWidth:"400px"}}):l.jsx("div",{className:"w-64 h-64 flex items-center justify-center text-foreground/40",children:l.jsx(xe,{className:"w-32 h-32"})})}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs(he,{onClick:f,className:"w-full",variant:"default",children:[l.jsx(pt,{className:"w-4 h-4 mr-2"}),"Download PNG"]}),l.jsxs(he,{onClick:x,className:"w-full",variant:"outline",children:[l.jsx(pt,{className:"w-4 h-4 mr-2"}),"Print"]})]}),l.jsxs("div",{className:"p-4 bg-blue-50 dark:bg-blue-950 rounded-lg border border-blue-200 dark:border-blue-800",children:[l.jsx("h4",{className:"font-semibold text-sm mb-2 text-blue-900 dark:text-blue-100",children:"What happens when scanned?"}),l.jsxs("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:[i==="intake"&&"Students will be taken to the registration form to enter their details - name, contact info, instruments, and preferences.",i==="trial"&&"Students will see a trial lesson registration form with a special 'trial' flag to help you track trial conversions.",i==="campaign"&&`Students will register through your campaign${t?` "${t}"`:""}${n?` with teacher "${n}"`:""}. You can track these registrations in your admin dashboard.`]})]}),l.jsxs("div",{className:"text-center",children:[l.jsx("p",{className:"text-sm text-foreground
80/60 mb-3",children:"Test it now with your phone's camera!"}),l.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline text-sm font-medium",children:"Or click here to open the form directly â"})]})]})]})]}),l.jsxs(je,{className:"mt-8",children:[l.jsxs(Me,{children:[l.jsx(Be,{children:"Quick Templates"}),l.jsx(Ae,{children:"Common QR code setups for different scenarios"})]}),l.jsx(ke,{children:l.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[l.jsxs(he,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{o("intake"),e(""),s("")},children:[l.jsx(mt,{className:"w-6 h-6 mb-2 text-primary"}),l.jsx("h3",{className:"font-semibold mb-1",children:"General Sign-up"}),l.jsx("p",{className:"text-xs text-foreground/60 text-left",children:"For studio entrance, website, general marketing"})]}),l.jsxs(he,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{o("campaign"),e("open-house-2026"),s("")},children:[l.jsx(ht,{className:"w-6 h-6 mb-2 text-primary"}),l.jsx("h3",{className:"font-semibold mb-1",children:"Open House Event"}),l.jsx("p",{className:"text-xs text-foreground/60 text-left",children:"Track signups from your open house event"})]}),l.jsxs(he,{variant:"outline",className:"h-auto p-4 flex flex-col items-start",onClick:()=>{o("trial"),e(""),s("")},children:[l.jsx(xe,{className:"w-6 h-6 mb-2 text-primary"}),l.jsx("h3",{className:"font-semibold mb-1",children:"Free Trial"}),l.jsx("p",{className:"text-xs text-foreground/60 text-left",children:"For flyers advertising free trial lessons"})]})]})})]})]})}export{So as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.