diff --git a/assets/index-96ef0ab2.js b/assets/index-1e12612e.js similarity index 87% rename from assets/index-96ef0ab2.js rename to assets/index-1e12612e.js index 78b876f..3b9fed2 100644 --- a/assets/index-96ef0ab2.js +++ b/assets/index-1e12612e.js @@ -12,4 +12,4 @@ * A Vue.js component to generate QRCode. * © 2017-2023 @scopewu(https://github.com/scopewu) * MIT License. - */var Mn=function(){return Mn=Object.assign||function(t){for(var n,r=1,s=arguments.length;ri.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=l*4+17;for(var d=[],h=0;h7)throw new RangeError("Invalid value");var m,E;for(m=c;;m++){var C=i.getNumDataCodewords(m,u)*8,M=o.getTotalBits(l,m);if(M<=C){E=M;break}if(m>=a)throw new RangeError("Data too long")}for(var R=0,U=[i.Ecc.MEDIUM,i.Ecc.QUARTILE,i.Ecc.HIGH];R>>3]|=Ke<<7-(be&7)}),new i(m,u,fe,d)},i.prototype.getModule=function(l,u){return 0<=l&&l>>9)*1335;var d=(u<<10|c)^21522;s(d>>>15==0);for(var a=0;a<=5;a++)this.setFunctionModule(8,a,r(d,a));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,r(d,a));for(var a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,r(d,a));for(var a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,r(d,a));this.setFunctionModule(8,this.size-8,!0)},i.prototype.drawVersion=function(){if(!(this.version<7)){for(var l=this.version,u=0;u<12;u++)l=l<<1^(l>>>11)*7973;var c=this.version<<12|l;s(c>>>18==0);for(var u=0;u<18;u++){var a=r(c,u),d=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(d,h,a),this.setFunctionModule(h,d,a)}}},i.prototype.drawFinderPattern=function(l,u){for(var c=-4;c<=4;c++)for(var a=-4;a<=4;a++){var d=Math.max(Math.abs(a),Math.abs(c)),h=l+a,m=u+c;0<=h&&h=m)&&$.push(z[te])})},R=0;R=1;c-=2){c==6&&(c=5);for(var a=0;a>>3],7-(u&7)),u++)}}s(u==l.length*8)},i.prototype.applyMask=function(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(var u=0;u5&&l++):(this.finderPenaltyAddHistory(a,d),c||(l+=this.finderPenaltyCountPatterns(d)*i.PENALTY_N3),c=this.modules[u][h],a=1);l+=this.finderPenaltyTerminateAndCount(c,a,d)*i.PENALTY_N3}for(var h=0;h5&&l++):(this.finderPenaltyAddHistory(m,d),c||(l+=this.finderPenaltyCountPatterns(d)*i.PENALTY_N3),c=this.modules[u][h],m=1);l+=this.finderPenaltyTerminateAndCount(c,m,d)*i.PENALTY_N3}for(var u=0;ui.MAX_VERSION)throw new RangeError("Version number out of range");var u=(16*l+128)*l+64;if(l>=2){var c=Math.floor(l/7)+2;u-=(25*c-10)*c-55,l>=7&&(u-=36)}return s(208<=u&&u<=29648),u},i.getNumDataCodewords=function(l,u){return Math.floor(i.getNumRawDataModules(l)/8)-i.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*i.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]},i.reedSolomonComputeDivisor=function(l){if(l<1||l>255)throw new RangeError("Degree out of range");for(var u=[],c=0;c>>8||u>>>8)throw new RangeError("Byte out of range");for(var c=0,a=7;a>=0;a--)c=c<<1^(c>>>7)*285,c^=(u>>>a&1)*l;return s(c>>>8==0),c},i.prototype.finderPenaltyCountPatterns=function(l){var u=l[1];s(u<=this.size*3);var c=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(c&&l[0]>=u*4&&l[6]>=u?1:0)+(c&&l[6]>=u*4&&l[0]>=u?1:0)},i.prototype.finderPenaltyTerminateAndCount=function(l,u,c){return l&&(this.finderPenaltyAddHistory(u,c),u=0),u+=this.size,this.finderPenaltyAddHistory(u,c),this.finderPenaltyCountPatterns(c)},i.prototype.finderPenaltyAddHistory=function(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)},i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i}();e.QrCode=t;function n(i,l,u){if(l<0||l>31||i>>>l)throw new RangeError("Value out of range");for(var c=l-1;c>=0;c--)u.push(i>>>c&1)}function r(i,l){return(i>>>l&1)!=0}function s(i){if(!i)throw new Error("Assertion error")}var o=function(){function i(l,u,c){if(this.mode=l,this.numChars=u,this.bitData=c,u<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}return i.makeBytes=function(l){for(var u=[],c=0,a=l;c=1<-1}}}),ya=cn({name:"QRCodeSvg",props:qr,setup:function(e){var t=Re(0),n=Re(""),r=function(){var s=e.value,o=e.level,i=e.margin,l=wt.QrCode.encodeText(s,Xr[o]).getModules();t.value=l.length+i*2,n.value=pi(l,i)};return r(),zr(r),function(){return pt("svg",{width:e.size,height:e.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(t.value," ").concat(t.value)},[pt("path",{fill:e.background,d:"M0,0 h".concat(t.value,"v").concat(t.value,"H0z")}),pt("path",{fill:e.foreground,d:n.value})])}}}),Aa=cn({name:"QRCodeCanvas",props:qr,setup:function(e){var t=Re(null),n=function(){var r=e.value,s=e.level,o=e.size,i=e.margin,l=e.background,u=e.foreground,c=t.value;if(c){var a=c.getContext("2d");if(a){var d=wt.QrCode.encodeText(r,Xr[s]).getModules(),h=d.length+i*2,m=window.devicePixelRatio||1,E=o/h*m;c.height=c.width=o*m,a.scale(E,E),a.fillStyle=l,a.fillRect(0,0,h,h),a.fillStyle=u,Ea?a.fill(new Path2D(pi(d,i))):d.forEach(function(C,M){C.forEach(function(R,U){R&&a.fillRect(U+i,M+i,1,1)})})}}};return $r(n),zr(n),function(){return pt("canvas",{ref:t,style:{width:"".concat(e.size,"px"),height:"".concat(e.size,"px")}})}}}),wa=cn({name:"Qrcode",render:function(){var e=this.$props,t=e.renderAs,n=e.value,r=e.size,s=e.margin,o=e.level,i=e.background,l=e.foreground,u=r>>>0,c=s>>>0,a=hi(o)?o:di;return pt(t==="svg"?ya:Aa,{value:n,size:u,margin:c,level:a,background:i,foreground:l})},props:Na});const Ia=va("user",{state:()=>({urlList:[]}),actions:{addUrl(e){this.urlList.push(e)}},persist:{enabled:!0,strategies:[{storage:localStorage,paths:["urlList"]}]}}),Ca={class:"main p-4"},Oa={class:"flex w-full flex-wrap"},Ra={class:"grid h-150 flex-grow card bg-base-300 rounded-box place-items-center"},xa=A("div",{class:"divider divider-horizontal"}," -> ",-1),Sa={class:"grid h-150 flex-grow card bg-base-300 rounded-box place-items-center bg-black"},Pa=A("button",{onclick:"my_modal_4.showModal()",class:"btn btn-outline btn-accent w-40"},"查看列表",-1),Ua={id:"my_modal_3",class:"modal"},Ma={class:"modal-box w-11/12 max-w-5xl bg-gray-700"},Ha=A("h3",{class:"font-bold text-lg"},"保存链接到配置",-1),Ta={class:"w-full"},La=A("label",{class:"label"},[A("span",{class:"label-text"},"链接标题")],-1),Fa={class:"w-full"},Ga=A("label",{class:"label"},[A("span",{class:"label-text"},"链接地址")],-1),Ba=A("button",{class:"btn"},"关闭",-1),Da={id:"my_modal_4",class:"modal"},ka={class:"modal-box max-w-5xl bg-gray-900"},$a={class:"table w-full table-zebra"},za=A("thead",null,[A("tr",{class:"bg-gray-900 text-emerald my-2"},[A("th",{align:"center"},"操作"),A("th",{align:"left"},"标题和链接")])],-1),Ka={class:"flex w-30 mt-4"},ja=["onClick"],Qa={method:"dialog"},Wa=["onClick"],Za={class:"w-5/6 overflow-hidden"},Va=["href"],Ya=A("br",null,null,-1),Xa={class:"badge badge-ghost badge-lg text-red text-left text-lg p-2"},qa=A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{class:"btn"},"关闭")])],-1),Ja={__name:"Qrcode",setup(e){const{urlList:t}=ba(Ia());console.log("===🐛=== ~ file: Qrcode.vue:112 ~ store:",t);let n=Re(""),r=Ie(()=>`https://mapi.zjzwfw.gov.cn/web/mgop/gov-open/zj/2002271810/lastTest/jump.html?url=${encodeURIComponent(n.value)}`),s=Re({title:"",url:""}),o=Re("");Re();function i(){n.value?(s.value.url=n.value,o.value=n.value,fetch(n.value).then(h=>h.text()).then(h=>{let m=h.match(/(.*?)<\/title>/);s.value.title=m[1],my_modal_3.showModal()}).catch(()=>{s.value.title="",my_modal_3.showModal()})):alert("请输入链接")}function l(){s.value.title&&s.value.url&&t.value.unshift(JSON.parse(JSON.stringify(s.value)))}function u(h){t.value.splice(h,1)}function c(h){n.value=h.url,console.log(s.value)}const a=Re(null);return(()=>{kn(()=>{a.value.focus()})})(),(h,m)=>(Pe(),Ue("div",Ca,[A("div",Oa,[A("div",Ra,[xt(A("textarea",{"onUpdate:modelValue":m[0]||(m[0]=E=>ie(n)?n.value=E:n=E),class:"textarea textarea-info w-full h-full text-emerald bg-black",cols:"33",rows:"5",placeholder:"请输入链接",ref_key:"refInput",ref:a},null,512),[[St,de(n)]])]),xa,A("div",Sa,[A("div",{class:"flex"},[A("button",{onClick:i,class:"btn btn-outline btn-secondary mr-4 w-40"},"保存链接"),Pa]),he(wa,{value:de(r),size:350,level:"H"},null,8,["value"])])]),A("dialog",Ua,[A("div",Ma,[Ha,A("div",Ta,[La,xt(A("input",{type:"text",onChange:m[1]||(m[1]=(...E)=>h.handlChangeData&&h.handlChangeData(...E)),"onUpdate:modelValue":m[2]||(m[2]=E=>de(s).title=E),placeholder:"标题",class:"input input-bordered w-full bg-gray-600"},null,544),[[St,de(s).title]])]),A("div",Fa,[Ga,xt(A("input",{type:"text",onChange:m[3]||(m[3]=(...E)=>h.handlChangeData&&h.handlChangeData(...E)),"onUpdate:modelValue":m[4]||(m[4]=E=>de(s).url=E),placeholder:"链接地址",class:"input input-bordered w-full text-emerald bg-gray-600"},null,544),[[St,de(s).url]])]),A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{onClick:l,class:"btn btn-accent mr-4"},"保存"),Ba])])])]),A("dialog",Da,[A("div",ka,[A("div",null,[A("table",$a,[za,A("tbody",null,[(Pe(!0),Ue(Oe,null,mr(de(t),(E,C)=>(Pe(),Ue("tr",{key:E.url,class:"border-b border-gray-500"},[A("th",Ka,[A("button",{onClick:M=>u(C),class:"btn btn-outline btn-xs btn-secondary"},"删除",8,ja),A("form",Qa,[A("button",{onClick:M=>c(E),class:"btn btn-outline btn-xs btn-accent ml-4",for:"my_modal_4"},"使用",8,Wa)])]),A("td",Za,[A("a",{href:E.url,target:"_blank",className:"btn btn-active btn-link text-blue lowercase text-left"},Cn(E.url),9,Va),Ya,A("span",Xa,Cn(E.title),1)])]))),128))])])]),qa])])]))}},ef=["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],tf=["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],nf={曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"},yn={PINYINS:tf,UNIHANS:ef,EXCEPTIONS:nf},rf="阿",sf="鿿",of=1,It=2,lr=3;let zt=null,An;function lf(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(yn)}))}function gi(e){return!e&&zt!==null||(typeof Intl=="object"&&Intl.Collator?(An=new Intl.Collator(["zh-Hans-CN","zh-CN"]),zt=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):zt=!1),zt}function mi(e){const t=yn.UNIHANS,n=yn.PINYINS,r=yn.EXCEPTIONS,s={source:e};if(e in r)return s.type=It,s.target=r[e],s;let o=-1,i;if(e.charCodeAt(0)<256)return s.type=of,s.target=e,s;if(i=An.compare(e,rf),i<0)return s.type=lr,s.target=e,s;if(i===0)s.type=It,o=0;else{if(i=An.compare(e,sf),i>0)return s.type=lr,s.target=e,s;i===0&&(s.type=It,o=t.length-1)}if(s.type=It,o<0){let l=0,u=t.length-1;for(;l<=u;){o=~~((l+u)/2);let c=t[o];if(i=An.compare(e,c),i===0)break;i>0?l=o+1:u=o-1}}return i<0&&o--,s.target=n[o],s.target||(s.type=lr,s.target=s.source),s}function ur(e){if(typeof e!="string")throw new Error("argument should be string.");if(!gi())throw new Error("not support Intl or zh-CN language.");return e.split("").map(t=>mi(t))}const wn={isSupported:gi,parse:ur,patchDict:lf,genToken:mi,convertToPinyin(e,t,n){return ur(e).map(r=>n&&r.type===It?r.target.toLowerCase():r.target).join(t||"")},firstWordToPinyin(e,t,n){return ur(e).map(r=>(n&&r.type===It,r.target.toLowerCase().substr(0,1))).join(t||"")}};let uf=function(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"},vi=function(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"};const cf=Object.freeze(Object.defineProperty({__proto__:null,patcher:uf,shouldPatch:vi},Symbol.toStringTag,{value:"Module"}));wn.isSupported()&&vi(wn.genToken)&&wn.patchDict(cf);const af={name:"changeData",data(){return{title:"title",dataIndex:"dataIndex",msg:"",clickMsg:"点击复制",res:[]}},methods:{copyText(e){var t=document.createElement("textarea");t.setAttribute("readonly","readonly"),t.value=e,document.body.appendChild(t),t.select();var n=document.execCommand("copy");return document.body.removeChild(t),this.clickMsg="复制成功",n},handlChangeData(){this.clickMsg="点击复制",this.msg.indexOf(",")>-1?this.res=JSON.stringify(this.formatting(","),null," "):this.msg.indexOf(",")>-1?this.res=JSON.stringify(this.formatting(","),null," "):this.res=JSON.stringify(this.formatting(/[\s\n]/),null," ")},formatting(e){let t=[];return this.msg.split(e).map(n=>{n&&t.push({[this.title]:n,[this.dataIndex]:wn.firstWordToPinyin(n),customRender:n.indexOf("时间")>-1?(r,s,o)=>{const i=props.$createElement;return i("div",props.county[r])}:void 0})}),t}}},it=e=>(pl("data-v-742fed4b"),e=e(),gl(),e),ff={class:"changeData"},df=it(()=>A("svg",{class:"icon",height:"200","p-id":"7940",t:"1600052679408",version:"1.1",viewBox:"0 0 1024 1024",width:"200",xmlns:"http://www.w3.org/2000/svg"},[A("path",{d:"M 223.361 656.774 H 501.401 V 368.029 H 223.361 v 288.745 Z M 3.3391 394.331 v 231.082 c 0 37.8764 25.5309 31.3608 25.5309 31.3608 h 122.984 V 368.029 H 24.7458 s -21.4067 -0.678536 -21.4067 26.3028 Z m 1007.51 90.0756 c -35.2839 -34.4771 -377.398 -287.565 -377.398 -287.565 s -39.4069 -38.9818 -39.4069 19.456 v 151.729 h -0.414226 v 288.746 h 0.055993 v 161.675 c 0 47.9112 38.0065 6.25133 38.0065 6.25133 l 376.25 -291.311 c -0.000602 0.001204 28.6214 -23.9553 2.90681 -48.9811 Z m 0 0",fill:"#d81e06","p-id":"7941"})],-1)),hf=it(()=>A("br",null,null,-1)),pf=it(()=>A("svg",{class:"icon",height:"200","p-id":"7940",t:"1600052679408",version:"1.1",viewBox:"0 0 1024 1024",width:"200",xmlns:"http://www.w3.org/2000/svg"},[A("path",{d:"M 223.361 656.774 H 501.401 V 368.029 H 223.361 v 288.745 Z M 3.3391 394.331 v 231.082 c 0 37.8764 25.5309 31.3608 25.5309 31.3608 h 122.984 V 368.029 H 24.7458 s -21.4067 -0.678536 -21.4067 26.3028 Z m 1007.51 90.0756 c -35.2839 -34.4771 -377.398 -287.565 -377.398 -287.565 s -39.4069 -38.9818 -39.4069 19.456 v 151.729 h -0.414226 v 288.746 h 0.055993 v 161.675 c 0 47.9112 38.0065 6.25133 38.0065 6.25133 l 376.25 -291.311 c -0.000602 0.001204 28.6214 -23.9553 2.90681 -48.9811 Z m 0 0",fill:"#d81e06","p-id":"7941"})],-1)),gf=[df,hf,pf],mf={class:"res"},vf={class:"flex"},bf=["data-tip"],_f=it(()=>A("button",{onclick:"my_modal_4.showModal()",class:"btn btn-outline btn-accent"},"配置",-1)),Ef={class:"mockup-code"},Nf=["innerHTML"],yf={id:"my_modal_4",class:"modal"},Af={class:"modal-box w-11/12 max-w-5xl"},wf=it(()=>A("h3",{class:"font-bold text-lg"},"表格生成配置",-1)),If={class:"w-full"},Cf=it(()=>A("label",{class:"label"},[A("span",{class:"label-text"},"生成标题key(默认title)")],-1)),Of={class:"w-full"},Rf=it(()=>A("label",{class:"label"},[A("span",{class:"label-text"},"生成数据key(默认dataIndex)")],-1)),xf=it(()=>A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{class:"btn"},"关闭")])],-1));function Sf(e,t,n,r,s,o){return Pe(),Ue("div",ff,[xt(A("textarea",{class:"textarea textarea-secondary text-emerald bg-black",placeholder:"请输入表头",cols:"63",rows:"5","onUpdate:modelValue":t[0]||(t[0]=i=>s.msg=i)},null,512),[[St,s.msg]]),A("div",{onClick:t[1]||(t[1]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),class:"tooltip","data-tip":"狠狠点击我转化为表头数据",style:{cursor:"pointer",margin:"30px"}},gf),A("div",mf,[A("div",vf,[A("button",{onClick:t[2]||(t[2]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),class:"btn btn-outline btn-secondary"},"点击转化"),A("div",{class:"tooltip","data-tip":s.clickMsg},[A("button",{onClick:t[3]||(t[3]=i=>o.copyText(s.res)),class:"btn btn-wide glass btn-outline w-full"},"复制")],8,bf),_f]),A("div",Ef,[A("pre",{innerHTML:s.res,class:"text-success"},null,8,Nf)])]),A("dialog",yf,[A("div",Af,[wf,A("div",If,[Cf,xt(A("input",{type:"text",onChange:t[4]||(t[4]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),"onUpdate:modelValue":t[5]||(t[5]=i=>s.title=i),placeholder:"title",class:"input input-bordered w-full"},null,544),[[St,s.title]])]),A("div",Of,[Rf,xt(A("input",{type:"text",onChange:t[6]||(t[6]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),"onUpdate:modelValue":t[7]||(t[7]=i=>s.dataIndex=i),placeholder:"dataIndex",class:"input input-bordered w-full max-w-xs"},null,544),[[St,s.dataIndex]])]),xf])])])}const Pf=li(af,[["render",Sf],["__scopeId","data-v-742fed4b"]]),Uf=zc({history:oc(),routes:[{path:"/",redirect:"/qrcode"},{path:"/qrcode",name:"qrcode",component:Ja},{path:"/table",name:"table",component:Pf}]}),bi=fa();bi.use(_a);const Jr=Bu(ca);Jr.use(Uf);Jr.use(bi);Jr.mount("#app"); + */var Mn=function(){return Mn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Mn.apply(this,arguments)};var mt;(function(e){var t=function(){function i(l,u,c,a){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<i.MIN_VERSION||l>i.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=l*4+17;for(var d=[],h=0;h<this.size;h++)d.push(!1);for(var h=0;h<this.size;h++)this.modules.push(d.slice()),this.isFunction.push(d.slice());this.drawFunctionPatterns();var m=this.addEccAndInterleave(c);if(this.drawCodewords(m),a==-1)for(var E=1e9,h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);var C=this.getPenaltyScore();C<E&&(a=h,E=C),this.applyMask(h)}s(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return i.encodeText=function(l,u){var c=e.QrSegment.makeSegments(l);return i.encodeSegments(c,u)},i.encodeBinary=function(l,u){var c=e.QrSegment.makeBytes(l);return i.encodeSegments([c],u)},i.encodeSegments=function(l,u,c,a,d,h){if(c===void 0&&(c=1),a===void 0&&(a=40),d===void 0&&(d=-1),h===void 0&&(h=!0),!(i.MIN_VERSION<=c&&c<=a&&a<=i.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");var m,E;for(m=c;;m++){var C=i.getNumDataCodewords(m,u)*8,M=o.getTotalBits(l,m);if(M<=C){E=M;break}if(m>=a)throw new RangeError("Data too long")}for(var R=0,U=[i.Ecc.MEDIUM,i.Ecc.QUARTILE,i.Ecc.HIGH];R<U.length;R++){var B=U[R];h&&E<=i.getNumDataCodewords(m,B)*8&&(u=B)}for(var x=[],$=0,se=l;$<se.length;$++){var te=se[$];n(te.mode.modeBits,4,x),n(te.numChars,te.mode.numCharCountBits(m),x);for(var z=0,K=te.getData();z<K.length;z++){var oe=K[z];x.push(oe)}}s(x.length==E);var le=i.getNumDataCodewords(m,u)*8;s(x.length<=le),n(0,Math.min(4,le-x.length),x),n(0,(8-x.length%8)%8,x),s(x.length%8==0);for(var ge=236;x.length<le;ge^=253)n(ge,8,x);for(var fe=[];fe.length*8<x.length;)fe.push(0);return x.forEach(function(Ke,be){return fe[be>>>3]|=Ke<<7-(be&7)}),new i(m,u,fe,d)},i.prototype.getModule=function(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]},i.prototype.getModules=function(){return this.modules},i.prototype.drawFunctionPatterns=function(){for(var l=0;l<this.size;l++)this.setFunctionModule(6,l,l%2==0),this.setFunctionModule(l,6,l%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var u=this.getAlignmentPatternPositions(),c=u.length,l=0;l<c;l++)for(var a=0;a<c;a++)l==0&&a==0||l==0&&a==c-1||l==c-1&&a==0||this.drawAlignmentPattern(u[l],u[a]);this.drawFormatBits(0),this.drawVersion()},i.prototype.drawFormatBits=function(l){for(var u=this.errorCorrectionLevel.formatBits<<3|l,c=u,a=0;a<10;a++)c=c<<1^(c>>>9)*1335;var d=(u<<10|c)^21522;s(d>>>15==0);for(var a=0;a<=5;a++)this.setFunctionModule(8,a,r(d,a));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,r(d,a));for(var a=0;a<8;a++)this.setFunctionModule(this.size-1-a,8,r(d,a));for(var a=8;a<15;a++)this.setFunctionModule(8,this.size-15+a,r(d,a));this.setFunctionModule(8,this.size-8,!0)},i.prototype.drawVersion=function(){if(!(this.version<7)){for(var l=this.version,u=0;u<12;u++)l=l<<1^(l>>>11)*7973;var c=this.version<<12|l;s(c>>>18==0);for(var u=0;u<18;u++){var a=r(c,u),d=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(d,h,a),this.setFunctionModule(h,d,a)}}},i.prototype.drawFinderPattern=function(l,u){for(var c=-4;c<=4;c++)for(var a=-4;a<=4;a++){var d=Math.max(Math.abs(a),Math.abs(c)),h=l+a,m=u+c;0<=h&&h<this.size&&0<=m&&m<this.size&&this.setFunctionModule(h,m,d!=2&&d!=4)}},i.prototype.drawAlignmentPattern=function(l,u){for(var c=-2;c<=2;c++)for(var a=-2;a<=2;a++)this.setFunctionModule(l+a,u+c,Math.max(Math.abs(a),Math.abs(c))!=1)},i.prototype.setFunctionModule=function(l,u,c){this.modules[u][l]=c,this.isFunction[u][l]=!0},i.prototype.addEccAndInterleave=function(l){var u=this.version,c=this.errorCorrectionLevel;if(l.length!=i.getNumDataCodewords(u,c))throw new RangeError("Invalid argument");for(var a=i.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][u],d=i.ECC_CODEWORDS_PER_BLOCK[c.ordinal][u],h=Math.floor(i.getNumRawDataModules(u)/8),m=a-h%a,E=Math.floor(h/a),C=[],M=i.reedSolomonComputeDivisor(d),R=0,U=0;R<a;R++){var B=l.slice(U,U+E-d+(R<m?0:1));U+=B.length;var x=i.reedSolomonComputeRemainder(B,M);R<m&&B.push(0),C.push(B.concat(x))}for(var $=[],se=function(te){C.forEach(function(z,K){(te!=E-d||K>=m)&&$.push(z[te])})},R=0;R<C[0].length;R++)se(R);return s($.length==h),$},i.prototype.drawCodewords=function(l){if(l.length!=Math.floor(i.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var u=0,c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(var a=0;a<this.size;a++)for(var d=0;d<2;d++){var h=c-d,m=(c+1&2)==0,E=m?this.size-1-a:a;!this.isFunction[E][h]&&u<l.length*8&&(this.modules[E][h]=r(l[u>>>3],7-(u&7)),u++)}}s(u==l.length*8)},i.prototype.applyMask=function(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(var u=0;u<this.size;u++)for(var c=0;c<this.size;c++){var a=void 0;switch(l){case 0:a=(c+u)%2==0;break;case 1:a=u%2==0;break;case 2:a=c%3==0;break;case 3:a=(c+u)%3==0;break;case 4:a=(Math.floor(c/3)+Math.floor(u/2))%2==0;break;case 5:a=c*u%2+c*u%3==0;break;case 6:a=(c*u%2+c*u%3)%2==0;break;case 7:a=((c+u)%2+c*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][c]&&a&&(this.modules[u][c]=!this.modules[u][c])}},i.prototype.getPenaltyScore=function(){for(var l=0,u=0;u<this.size;u++){for(var c=!1,a=0,d=[0,0,0,0,0,0,0],h=0;h<this.size;h++)this.modules[u][h]==c?(a++,a==5?l+=i.PENALTY_N1:a>5&&l++):(this.finderPenaltyAddHistory(a,d),c||(l+=this.finderPenaltyCountPatterns(d)*i.PENALTY_N3),c=this.modules[u][h],a=1);l+=this.finderPenaltyTerminateAndCount(c,a,d)*i.PENALTY_N3}for(var h=0;h<this.size;h++){for(var c=!1,m=0,d=[0,0,0,0,0,0,0],u=0;u<this.size;u++)this.modules[u][h]==c?(m++,m==5?l+=i.PENALTY_N1:m>5&&l++):(this.finderPenaltyAddHistory(m,d),c||(l+=this.finderPenaltyCountPatterns(d)*i.PENALTY_N3),c=this.modules[u][h],m=1);l+=this.finderPenaltyTerminateAndCount(c,m,d)*i.PENALTY_N3}for(var u=0;u<this.size-1;u++)for(var h=0;h<this.size-1;h++){var E=this.modules[u][h];E==this.modules[u][h+1]&&E==this.modules[u+1][h]&&E==this.modules[u+1][h+1]&&(l+=i.PENALTY_N2)}for(var C=0,M=0,R=this.modules;M<R.length;M++){var U=R[M];C=U.reduce(function($,se){return $+(se?1:0)},C)}var B=this.size*this.size,x=Math.ceil(Math.abs(C*20-B*10)/B)-1;return s(0<=x&&x<=9),l+=x*i.PENALTY_N4,s(0<=l&&l<=2568888),l},i.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2,c=[6],a=this.size-7;c.length<l;a-=u)c.splice(1,0,a);return c},i.getNumRawDataModules=function(l){if(l<i.MIN_VERSION||l>i.MAX_VERSION)throw new RangeError("Version number out of range");var u=(16*l+128)*l+64;if(l>=2){var c=Math.floor(l/7)+2;u-=(25*c-10)*c-55,l>=7&&(u-=36)}return s(208<=u&&u<=29648),u},i.getNumDataCodewords=function(l,u){return Math.floor(i.getNumRawDataModules(l)/8)-i.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*i.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]},i.reedSolomonComputeDivisor=function(l){if(l<1||l>255)throw new RangeError("Degree out of range");for(var u=[],c=0;c<l-1;c++)u.push(0);u.push(1);for(var a=1,c=0;c<l;c++){for(var d=0;d<u.length;d++)u[d]=i.reedSolomonMultiply(u[d],a),d+1<u.length&&(u[d]^=u[d+1]);a=i.reedSolomonMultiply(a,2)}return u},i.reedSolomonComputeRemainder=function(l,u){for(var c=u.map(function(E){return 0}),a=function(E){var C=E^c.shift();c.push(0),u.forEach(function(M,R){return c[R]^=i.reedSolomonMultiply(M,C)})},d=0,h=l;d<h.length;d++){var m=h[d];a(m)}return c},i.reedSolomonMultiply=function(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");for(var c=0,a=7;a>=0;a--)c=c<<1^(c>>>7)*285,c^=(u>>>a&1)*l;return s(c>>>8==0),c},i.prototype.finderPenaltyCountPatterns=function(l){var u=l[1];s(u<=this.size*3);var c=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(c&&l[0]>=u*4&&l[6]>=u?1:0)+(c&&l[6]>=u*4&&l[0]>=u?1:0)},i.prototype.finderPenaltyTerminateAndCount=function(l,u,c){return l&&(this.finderPenaltyAddHistory(u,c),u=0),u+=this.size,this.finderPenaltyAddHistory(u,c),this.finderPenaltyCountPatterns(c)},i.prototype.finderPenaltyAddHistory=function(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)},i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i}();e.QrCode=t;function n(i,l,u){if(l<0||l>31||i>>>l)throw new RangeError("Value out of range");for(var c=l-1;c>=0;c--)u.push(i>>>c&1)}function r(i,l){return(i>>>l&1)!=0}function s(i){if(!i)throw new Error("Assertion error")}var o=function(){function i(l,u,c){if(this.mode=l,this.numChars=u,this.bitData=c,u<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}return i.makeBytes=function(l){for(var u=[],c=0,a=l;c<a.length;c++){var d=a[c];n(d,8,u)}return new i(i.Mode.BYTE,l.length,u)},i.makeNumeric=function(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");for(var u=[],c=0;c<l.length;){var a=Math.min(l.length-c,3);n(parseInt(l.substring(c,c+a),10),a*3+1,u),c+=a}return new i(i.Mode.NUMERIC,l.length,u)},i.makeAlphanumeric=function(l){if(!i.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");var u=[],c;for(c=0;c+2<=l.length;c+=2){var a=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c))*45;a+=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c+1)),n(a,11,u)}return c<l.length&&n(i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c)),6,u),new i(i.Mode.ALPHANUMERIC,l.length,u)},i.makeSegments=function(l){return l==""?[]:i.isNumeric(l)?[i.makeNumeric(l)]:i.isAlphanumeric(l)?[i.makeAlphanumeric(l)]:[i.makeBytes(i.toUtf8ByteArray(l))]},i.makeEci=function(l){var u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,u);else if(l<16384)n(2,2,u),n(l,14,u);else if(l<1e6)n(6,3,u),n(l,21,u);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,u)},i.isNumeric=function(l){return i.NUMERIC_REGEX.test(l)},i.isAlphanumeric=function(l){return i.ALPHANUMERIC_REGEX.test(l)},i.prototype.getData=function(){return this.bitData.slice()},i.getTotalBits=function(l,u){for(var c=0,a=0,d=l;a<d.length;a++){var h=d[a],m=h.mode.numCharCountBits(u);if(h.numChars>=1<<m)return 1/0;c+=4+m+h.bitData.length}return c},i.toUtf8ByteArray=function(l){l=encodeURI(l);for(var u=[],c=0;c<l.length;c++)l.charAt(c)!="%"?u.push(l.charCodeAt(c)):(u.push(parseInt(l.substring(c+1,c+3),16)),c+=2);return u},i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",i}();e.QrSegment=o})(mt||(mt={}));(function(e){(function(t){var n=function(){function r(s,o){this.ordinal=s,this.formatBits=o}return r.LOW=new r(0,1),r.MEDIUM=new r(1,0),r.QUARTILE=new r(2,3),r.HIGH=new r(3,2),r}();t.Ecc=n})(e.QrCode||(e.QrCode={}))})(mt||(mt={}));(function(e){(function(t){var n=function(){function r(s,o){this.modeBits=s,this.numBitsCharCount=o}return r.prototype.numCharCountBits=function(s){return this.numBitsCharCount[Math.floor((s+7)/17)]},r.NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),r}();t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(mt||(mt={}));var wt=mt,di="H",Xr={L:wt.QrCode.Ecc.LOW,M:wt.QrCode.Ecc.MEDIUM,Q:wt.QrCode.Ecc.QUARTILE,H:wt.QrCode.Ecc.HIGH},Ea=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function hi(e){return e in Xr}function pi(e,t){t===void 0&&(t=0);var n=[];return e.forEach(function(r,s){var o=null;r.forEach(function(i,l){if(!i&&o!==null){n.push("M".concat(o+t," ").concat(s+t,"h").concat(l-o,"v1H").concat(o+t,"z")),o=null;return}if(l===r.length-1){if(!i)return;o===null?n.push("M".concat(l+t,",").concat(s+t," h1v1H").concat(l+t,"z")):n.push("M".concat(o+t,",").concat(s+t," h").concat(l+1-o,"v1H").concat(o+t,"z"));return}i&&o===null&&(o=l)})}),n.join("")}var qr={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:di,validator:function(e){return hi(e)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0}},Na=Mn(Mn({},qr),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),ya=cn({name:"QRCodeSvg",props:qr,setup:function(e){var t=Re(0),n=Re(""),r=function(){var s=e.value,o=e.level,i=e.margin,l=wt.QrCode.encodeText(s,Xr[o]).getModules();t.value=l.length+i*2,n.value=pi(l,i)};return r(),zr(r),function(){return pt("svg",{width:e.size,height:e.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(t.value," ").concat(t.value)},[pt("path",{fill:e.background,d:"M0,0 h".concat(t.value,"v").concat(t.value,"H0z")}),pt("path",{fill:e.foreground,d:n.value})])}}}),Aa=cn({name:"QRCodeCanvas",props:qr,setup:function(e){var t=Re(null),n=function(){var r=e.value,s=e.level,o=e.size,i=e.margin,l=e.background,u=e.foreground,c=t.value;if(c){var a=c.getContext("2d");if(a){var d=wt.QrCode.encodeText(r,Xr[s]).getModules(),h=d.length+i*2,m=window.devicePixelRatio||1,E=o/h*m;c.height=c.width=o*m,a.scale(E,E),a.fillStyle=l,a.fillRect(0,0,h,h),a.fillStyle=u,Ea?a.fill(new Path2D(pi(d,i))):d.forEach(function(C,M){C.forEach(function(R,U){R&&a.fillRect(U+i,M+i,1,1)})})}}};return $r(n),zr(n),function(){return pt("canvas",{ref:t,style:{width:"".concat(e.size,"px"),height:"".concat(e.size,"px")}})}}}),wa=cn({name:"Qrcode",render:function(){var e=this.$props,t=e.renderAs,n=e.value,r=e.size,s=e.margin,o=e.level,i=e.background,l=e.foreground,u=r>>>0,c=s>>>0,a=hi(o)?o:di;return pt(t==="svg"?ya:Aa,{value:n,size:u,margin:c,level:a,background:i,foreground:l})},props:Na});const Ia=va("user",{state:()=>({urlList:[]}),actions:{addUrl(e){this.urlList.push(e)}},persist:{enabled:!0,strategies:[{storage:localStorage,paths:["urlList"]}]}}),Ca={class:"main p-4"},Oa={class:"flex w-full flex-wrap"},Ra={class:"grid h-150 flex-grow card bg-base-300 rounded-box place-items-center"},xa=A("div",{class:"divider divider-horizontal"}," -> ",-1),Sa={class:"grid h-150 flex-grow card bg-base-300 rounded-box place-items-center bg-black"},Pa=A("button",{onclick:"my_modal_4.showModal()",class:"btn btn-outline btn-accent w-40"},"查看列表",-1),Ua={id:"my_modal_3",class:"modal"},Ma={class:"modal-box w-11/12 max-w-5xl bg-gray-700"},Ha=A("h3",{class:"font-bold text-lg"},"保存链接到配置",-1),Ta={class:"w-full"},La=A("label",{class:"label"},[A("span",{class:"label-text"},"链接标题")],-1),Fa={class:"w-full"},Ga=A("label",{class:"label"},[A("span",{class:"label-text"},"链接地址")],-1),Ba=A("button",{class:"btn"},"关闭",-1),Da={id:"my_modal_4",class:"modal"},ka={class:"modal-box max-w-5xl bg-gray-900"},$a={class:"table w-full table-zebra"},za=A("thead",null,[A("tr",{class:"bg-gray-900 text-emerald my-2"},[A("th",{align:"center"},"操作"),A("th",{align:"left"},"标题和链接")])],-1),Ka={class:"flex w-30 mt-4"},ja=["onClick"],Qa={method:"dialog"},Wa=["onClick"],Za={class:"w-5/6 overflow-hidden"},Va=["href"],Ya=A("br",null,null,-1),Xa={class:"badge badge-ghost badge-lg text-red text-left text-lg p-2"},qa=A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{class:"btn"},"关闭")])],-1),Ja={__name:"Qrcode",setup(e){const{urlList:t}=ba(Ia());console.log("===🐛=== ~ file: Qrcode.vue:112 ~ store:",t);let n=Re(""),r=Ie(()=>`https://mapi.zjzwfw.gov.cn/web/mgop/gov-open/zj/2002271810/lastTest/jump.html?debug=true#/?url=${encodeURIComponent(n.value)}`),s=Re({title:"",url:""}),o=Re("");Re();function i(){n.value?(s.value.url=n.value,o.value=n.value,fetch(n.value).then(h=>h.text()).then(h=>{let m=h.match(/<title>(.*?)<\/title>/);s.value.title=m[1],my_modal_3.showModal()}).catch(()=>{s.value.title="",my_modal_3.showModal()})):alert("请输入链接")}function l(){s.value.title&&s.value.url&&t.value.unshift(JSON.parse(JSON.stringify(s.value)))}function u(h){t.value.splice(h,1)}function c(h){n.value=h.url,console.log(s.value)}const a=Re(null);return(()=>{kn(()=>{a.value.focus()})})(),(h,m)=>(Pe(),Ue("div",Ca,[A("div",Oa,[A("div",Ra,[xt(A("textarea",{"onUpdate:modelValue":m[0]||(m[0]=E=>ie(n)?n.value=E:n=E),class:"textarea textarea-info w-full h-full text-emerald bg-black",cols:"33",rows:"5",placeholder:"请输入链接",ref_key:"refInput",ref:a},null,512),[[St,de(n)]])]),xa,A("div",Sa,[A("div",{class:"flex"},[A("button",{onClick:i,class:"btn btn-outline btn-secondary mr-4 w-40"},"保存链接"),Pa]),he(wa,{value:de(r),size:350,level:"H"},null,8,["value"])])]),A("dialog",Ua,[A("div",Ma,[Ha,A("div",Ta,[La,xt(A("input",{type:"text",onChange:m[1]||(m[1]=(...E)=>h.handlChangeData&&h.handlChangeData(...E)),"onUpdate:modelValue":m[2]||(m[2]=E=>de(s).title=E),placeholder:"标题",class:"input input-bordered w-full bg-gray-600"},null,544),[[St,de(s).title]])]),A("div",Fa,[Ga,xt(A("input",{type:"text",onChange:m[3]||(m[3]=(...E)=>h.handlChangeData&&h.handlChangeData(...E)),"onUpdate:modelValue":m[4]||(m[4]=E=>de(s).url=E),placeholder:"链接地址",class:"input input-bordered w-full text-emerald bg-gray-600"},null,544),[[St,de(s).url]])]),A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{onClick:l,class:"btn btn-accent mr-4"},"保存"),Ba])])])]),A("dialog",Da,[A("div",ka,[A("div",null,[A("table",$a,[za,A("tbody",null,[(Pe(!0),Ue(Oe,null,mr(de(t),(E,C)=>(Pe(),Ue("tr",{key:E.url,class:"border-b border-gray-500"},[A("th",Ka,[A("button",{onClick:M=>u(C),class:"btn btn-outline btn-xs btn-secondary"},"删除",8,ja),A("form",Qa,[A("button",{onClick:M=>c(E),class:"btn btn-outline btn-xs btn-accent ml-4",for:"my_modal_4"},"使用",8,Wa)])]),A("td",Za,[A("a",{href:E.url,target:"_blank",className:"btn btn-active btn-link text-blue lowercase text-left"},Cn(E.url),9,Va),Ya,A("span",Xa,Cn(E.title),1)])]))),128))])])]),qa])])]))}},ef=["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],tf=["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],nf={曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"},yn={PINYINS:tf,UNIHANS:ef,EXCEPTIONS:nf},rf="阿",sf="鿿",of=1,It=2,lr=3;let zt=null,An;function lf(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(yn)}))}function gi(e){return!e&&zt!==null||(typeof Intl=="object"&&Intl.Collator?(An=new Intl.Collator(["zh-Hans-CN","zh-CN"]),zt=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):zt=!1),zt}function mi(e){const t=yn.UNIHANS,n=yn.PINYINS,r=yn.EXCEPTIONS,s={source:e};if(e in r)return s.type=It,s.target=r[e],s;let o=-1,i;if(e.charCodeAt(0)<256)return s.type=of,s.target=e,s;if(i=An.compare(e,rf),i<0)return s.type=lr,s.target=e,s;if(i===0)s.type=It,o=0;else{if(i=An.compare(e,sf),i>0)return s.type=lr,s.target=e,s;i===0&&(s.type=It,o=t.length-1)}if(s.type=It,o<0){let l=0,u=t.length-1;for(;l<=u;){o=~~((l+u)/2);let c=t[o];if(i=An.compare(e,c),i===0)break;i>0?l=o+1:u=o-1}}return i<0&&o--,s.target=n[o],s.target||(s.type=lr,s.target=s.source),s}function ur(e){if(typeof e!="string")throw new Error("argument should be string.");if(!gi())throw new Error("not support Intl or zh-CN language.");return e.split("").map(t=>mi(t))}const wn={isSupported:gi,parse:ur,patchDict:lf,genToken:mi,convertToPinyin(e,t,n){return ur(e).map(r=>n&&r.type===It?r.target.toLowerCase():r.target).join(t||"")},firstWordToPinyin(e,t,n){return ur(e).map(r=>(n&&r.type===It,r.target.toLowerCase().substr(0,1))).join(t||"")}};let uf=function(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"},vi=function(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"};const cf=Object.freeze(Object.defineProperty({__proto__:null,patcher:uf,shouldPatch:vi},Symbol.toStringTag,{value:"Module"}));wn.isSupported()&&vi(wn.genToken)&&wn.patchDict(cf);const af={name:"changeData",data(){return{title:"title",dataIndex:"dataIndex",msg:"",clickMsg:"点击复制",res:[]}},methods:{copyText(e){var t=document.createElement("textarea");t.setAttribute("readonly","readonly"),t.value=e,document.body.appendChild(t),t.select();var n=document.execCommand("copy");return document.body.removeChild(t),this.clickMsg="复制成功",n},handlChangeData(){this.clickMsg="点击复制",this.msg.indexOf(",")>-1?this.res=JSON.stringify(this.formatting(","),null," "):this.msg.indexOf(",")>-1?this.res=JSON.stringify(this.formatting(","),null," "):this.res=JSON.stringify(this.formatting(/[\s\n]/),null," ")},formatting(e){let t=[];return this.msg.split(e).map(n=>{n&&t.push({[this.title]:n,[this.dataIndex]:wn.firstWordToPinyin(n),customRender:n.indexOf("时间")>-1?(r,s,o)=>{const i=props.$createElement;return i("div",props.county[r])}:void 0})}),t}}},it=e=>(pl("data-v-742fed4b"),e=e(),gl(),e),ff={class:"changeData"},df=it(()=>A("svg",{class:"icon",height:"200","p-id":"7940",t:"1600052679408",version:"1.1",viewBox:"0 0 1024 1024",width:"200",xmlns:"http://www.w3.org/2000/svg"},[A("path",{d:"M 223.361 656.774 H 501.401 V 368.029 H 223.361 v 288.745 Z M 3.3391 394.331 v 231.082 c 0 37.8764 25.5309 31.3608 25.5309 31.3608 h 122.984 V 368.029 H 24.7458 s -21.4067 -0.678536 -21.4067 26.3028 Z m 1007.51 90.0756 c -35.2839 -34.4771 -377.398 -287.565 -377.398 -287.565 s -39.4069 -38.9818 -39.4069 19.456 v 151.729 h -0.414226 v 288.746 h 0.055993 v 161.675 c 0 47.9112 38.0065 6.25133 38.0065 6.25133 l 376.25 -291.311 c -0.000602 0.001204 28.6214 -23.9553 2.90681 -48.9811 Z m 0 0",fill:"#d81e06","p-id":"7941"})],-1)),hf=it(()=>A("br",null,null,-1)),pf=it(()=>A("svg",{class:"icon",height:"200","p-id":"7940",t:"1600052679408",version:"1.1",viewBox:"0 0 1024 1024",width:"200",xmlns:"http://www.w3.org/2000/svg"},[A("path",{d:"M 223.361 656.774 H 501.401 V 368.029 H 223.361 v 288.745 Z M 3.3391 394.331 v 231.082 c 0 37.8764 25.5309 31.3608 25.5309 31.3608 h 122.984 V 368.029 H 24.7458 s -21.4067 -0.678536 -21.4067 26.3028 Z m 1007.51 90.0756 c -35.2839 -34.4771 -377.398 -287.565 -377.398 -287.565 s -39.4069 -38.9818 -39.4069 19.456 v 151.729 h -0.414226 v 288.746 h 0.055993 v 161.675 c 0 47.9112 38.0065 6.25133 38.0065 6.25133 l 376.25 -291.311 c -0.000602 0.001204 28.6214 -23.9553 2.90681 -48.9811 Z m 0 0",fill:"#d81e06","p-id":"7941"})],-1)),gf=[df,hf,pf],mf={class:"res"},vf={class:"flex"},bf=["data-tip"],_f=it(()=>A("button",{onclick:"my_modal_4.showModal()",class:"btn btn-outline btn-accent"},"配置",-1)),Ef={class:"mockup-code"},Nf=["innerHTML"],yf={id:"my_modal_4",class:"modal"},Af={class:"modal-box w-11/12 max-w-5xl"},wf=it(()=>A("h3",{class:"font-bold text-lg"},"表格生成配置",-1)),If={class:"w-full"},Cf=it(()=>A("label",{class:"label"},[A("span",{class:"label-text"},"生成标题key(默认title)")],-1)),Of={class:"w-full"},Rf=it(()=>A("label",{class:"label"},[A("span",{class:"label-text"},"生成数据key(默认dataIndex)")],-1)),xf=it(()=>A("div",{class:"modal-action"},[A("form",{method:"dialog"},[A("button",{class:"btn"},"关闭")])],-1));function Sf(e,t,n,r,s,o){return Pe(),Ue("div",ff,[xt(A("textarea",{class:"textarea textarea-secondary text-emerald bg-black",placeholder:"请输入表头",cols:"63",rows:"5","onUpdate:modelValue":t[0]||(t[0]=i=>s.msg=i)},null,512),[[St,s.msg]]),A("div",{onClick:t[1]||(t[1]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),class:"tooltip","data-tip":"狠狠点击我转化为表头数据",style:{cursor:"pointer",margin:"30px"}},gf),A("div",mf,[A("div",vf,[A("button",{onClick:t[2]||(t[2]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),class:"btn btn-outline btn-secondary"},"点击转化"),A("div",{class:"tooltip","data-tip":s.clickMsg},[A("button",{onClick:t[3]||(t[3]=i=>o.copyText(s.res)),class:"btn btn-wide glass btn-outline w-full"},"复制")],8,bf),_f]),A("div",Ef,[A("pre",{innerHTML:s.res,class:"text-success"},null,8,Nf)])]),A("dialog",yf,[A("div",Af,[wf,A("div",If,[Cf,xt(A("input",{type:"text",onChange:t[4]||(t[4]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),"onUpdate:modelValue":t[5]||(t[5]=i=>s.title=i),placeholder:"title",class:"input input-bordered w-full"},null,544),[[St,s.title]])]),A("div",Of,[Rf,xt(A("input",{type:"text",onChange:t[6]||(t[6]=(...i)=>o.handlChangeData&&o.handlChangeData(...i)),"onUpdate:modelValue":t[7]||(t[7]=i=>s.dataIndex=i),placeholder:"dataIndex",class:"input input-bordered w-full max-w-xs"},null,544),[[St,s.dataIndex]])]),xf])])])}const Pf=li(af,[["render",Sf],["__scopeId","data-v-742fed4b"]]),Uf=zc({history:oc(),routes:[{path:"/",redirect:"/qrcode"},{path:"/qrcode",name:"qrcode",component:Ja},{path:"/table",name:"table",component:Pf}]}),bi=fa();bi.use(_a);const Jr=Bu(ca);Jr.use(Uf);Jr.use(bi);Jr.mount("#app"); diff --git a/index.html b/index.html index d323333..80de22c 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>black-tool - +