detect/detect.gui/Embedded/dist/assets/useForm-e7697b0a.js

3 lines
99 KiB
JavaScript
Raw Normal View History

2025-05-26 17:02:05 +08:00
var wn=Object.defineProperty,vn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var vt=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable;var Re=Math.pow,At=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||(t={}))kn.call(t,n)&&At(e,n,t[n]);if(vt)for(var n of vt(t))Sn.call(t,n)&&At(e,n,t[n]);return e},le=(e,t)=>vn(e,An(t));var j=(e,t,n)=>new Promise((o,i)=>{var s=a=>{try{r(n.next(a))}catch(c){i(c)}},l=a=>{try{r(n.throw(a))}catch(c){i(c)}},r=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);r((n=n.apply(e,t)).next())});import{f as B,c as N,u as f,d as J,h as Te,w as H,Z as _,a4 as z,a5 as D,ad as Bt,a1 as ve,k as F,$ as ke,_ as X,F as pe,a7 as fe,a8 as ee,g as jt,r as We,a2 as Cn,y as Ee,J as Be,a6 as $,G as Q,a0 as te,a9 as Y,aa as Se,ab as ce,ag as Ce,ah as Ie,o as rt,p as Tn,e as Pn,I as xt,m as Fn,i as In,A as Mn,al as _n,am as Rn,b as Dn}from"./vue-72a104e4.js";import{u as xe,W as ct,x as ue,a5 as $n,S as kt,I as Ye,p as T,d as ut,f as W,_ as ne,i as $e,ax as be,aI as On,aJ as Ln,ak as En,l as Bn,V as De,s as jn,aF as xn,Y as Nn,w as Ze,as as Un,c as dt,e as St,aK as qn,aL as zn,N as Vn,O as Gn,aM as Wn,aN as Yn,j as we,aO as Ct,at as ge,aP as ot,aQ as Hn,aR as Tt,aH as Ge,aS as Nt,aT as Kn,h as Zn,aG as Xn}from"./index.js";import{w as Me,Z as Jn,aC as Qn,aD as eo,b as to,as as Oe,o as Ne,J as he,am as Ut,aE as ft,aF as no,aG as qt,aH as it,aI as oo,aw as ht,aJ as io,T as zt,aA as lo,aK as so,K as Xe,aL as ao,aa as ro,aM as co,B as uo,al as fo,an as ho,ao as po,ap as Vt,aN as mo,aO as go,aq as Ue,ar as Gt,aP as He,aQ as pt,e as Ae,aR as bo,s as Fe,aS as Pt,a8 as yo,aT as wo}from"./antd-9db9238b.js";import{b as Wt,B as Yt,a as Ht,u as Ft}from"./index-b65f63bb.js";import{c as vo}from"./copyTextToClipboard-e4460fb5.js";const Ao={prefix:"ant-design",icons:["account-book-filled","account-book-outlined","account-book-twotone","aim-outlined","alert-filled","alert-outlined","alert-twotone","alibaba-outlined","align-center-outlined","align-left-outlined","align-right-outlined","alipay-circle-filled","alipay-circle-outlined","alipay-outlined","alipay-square-filled","aliwangwang-filled","aliwangwang-outlined","aliyun-outlined","amazon-circle-filled","amazon-outlined","amazon-square-filled","android-filled","android-outlined","ant-cloud-outlined","ant-design-outlined","apartment-outlined","api-filled","api-outlined","api-twotone","apple-filled","apple-outlined","appstore-add-outlined","appstore-filled","appstore-outlined","appstore-twotone","area-chart-outlined","arrow-down-outlined","arrow-left-outlined","arrow-right-outlined","arrow-up-outlined","arrows-alt-outlined","audio-filled","audio-muted-outlined","audio-outlined","audio-twotone","audit-outlined","backward-filled","backward-outlined","bank-filled","bank-outlined","bank-twotone","bar-chart-outlined","barcode-outlined","bars-outlined","behance-circle-filled","behance-outlined","behance-square-filled","behance-square-outlined","bell-filled","bell-outlined","bell-twotone","bg-colors-outlined","block-outlined","bold-outlined","book-filled","book-outlined","book-twotone","border-bottom-outlined","border-horizontal-outlined","border-inner-outlined","border-left-outlined","border-outer-outlined","border-outlined","border-right-outlined","border-top-outlined","border-verticle-outlined","borderless-table-outlined","box-plot-filled","box-plot-outlined","box-plot-twotone","branches-outlined","bug-filled","bug-outlined","bug-twotone","build-filled","build-outlined","build-twotone","bulb-filled","bulb-outlined","bulb-twotone","calculator-filled","calculator-outlined","calculator-twotone","calendar-filled","calendar-outlined","calendar-twotone","camera-filled","camera-outlined","camera-twotone","car-filled","car-outlined","car-twotone","caret-down-filled","caret-down-outlined","caret-left-filled","caret-left-outlined","caret-right-filled","caret-right-outlined","caret-up-filled","caret-up-outlined","carry-out-filled","carry-out-outlined","carry-ou
2025-05-08 11:41:35 +08:00
])(${t})(?!${t})`,"g")}match({password:t}){const n=[];if(t.length===0)return n;const o=Ke.getMostUsedSeparatorChar(t);if(o===void 0)return n;const i=Ke.getSeparatorRegex(o);for(const s of t.matchAll(i)){if(s.index===void 0)continue;const l=s.index+1;n.push({pattern:"separator",token:o,i:l,j:l})}return n}}class Dl{constructor(){this.matchers={date:Xi,dictionary:cl,regex:ul,repeat:Il,sequence:Ml,spatial:_l,separator:Ke}}match(t){const n=[],o=[];return[...Object.keys(this.matchers),...Object.keys(R.matchers)].forEach(s=>{if(!this.matchers[s]&&!R.matchers[s])return;const l=this.matchers[s]?this.matchers[s]:R.matchers[s].Matching,a=new l().match({password:t,omniMatch:this});a instanceof Promise?(a.then(c=>{st(n,c)}),o.push(a)):st(n,a)}),o.length>0?new Promise((s,l)=>{Promise.all(o).then(()=>{s(Le(n))}).catch(r=>{l(r)})}):Le(n)}}const rn=1,cn=rn*60,un=cn*60,dn=un*24,fn=dn*31,hn=fn*12,$l=hn*100,et={second:rn,minute:cn,hour:un,day:dn,month:fn,year:hn,century:$l};class Ol{translate(t,n){let o=t;n!==void 0&&n!==1&&(o+="s");const{timeEstimation:i}=R.translations;return i[o].replace("{base}",`${n}`)}estimateAttackTimes(t){const n={onlineThrottling100PerHour:t/.027777777777777776,onlineNoThrottling10PerSecond:t/10,offlineSlowHashing1e4PerSecond:t/1e4,offlineFastHashing1e10PerSecond:t/1e10},o={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(n).forEach(i=>{const s=n[i];o[i]=this.displayTime(s)}),{crackTimesSeconds:n,crackTimesDisplay:o,score:this.guessesToScore(t)}}guessesToScore(t){return t<1e3+5?0:t<1e6+5?1:t<1e8+5?2:t<1e10+5?3:4}displayTime(t){let n="centuries",o;const i=Object.keys(et),s=i.findIndex(l=>t<et[l]);return s>-1&&(n=i[s-1],s!==0?o=Math.round(t/et[n]):n="ltSecond"),this.translate(n,o)}}var Ll=()=>null,El=()=>({warning:R.translations.warnings.dates,suggestions:[R.translations.suggestions.dates]});const Bl=(e,t)=>{let n=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?n=R.translations.warnings.topTen:e.rank<=100?n=R.translations.warnings.topHundred:n=R.translations.warnings.common:e.guessesLog10<=4&&(n=R.translations.warnings.similarToCommon),n},jl=(e,t)=>{let n=null;return t&&(n=R.translations.warnings.wordByItself),n},xl=(e,t)=>t?R.translations.warnings.namesByThemselves:R.translations.warnings.commonNames,Nl=(e,t)=>{let n=null;const o=e.dictionaryName,i=o==="lastnames"||o.toLowerCase().includes("firstnames");return o==="passwords"?n=Bl(e,t):o.includes("wikipedia")?n=jl(e,t):i?n=xl(e,t):o==="userInputs"&&(n=R.translations.warnings.userInputs),n};var Ul=(e,t)=>{const n=Nl(e,t),o=[],i=e.token;return i.match(ln)?o.push(R.translations.suggestions.capitalization):i.match(sn)&&i.toLowerCase()!==i&&o.push(R.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&o.push(R.translations.suggestions.reverseWords),e.l33t&&o.push(R.translations.suggestions.l33t),{warning:n,suggestions:o}},ql=e=>e.regexName==="recentYear"?{warning:R.translations.warnings.recentYears,suggestions:[R.translations.suggestions.recentYears,R.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},zl=e=>{let t=R.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=R.translations.warnings.simpleRepeat),{warning:t,suggestions:[R.translations.suggestions.repeated]}},Vl=()=>({warning:R.translations.warnings.sequences,suggestions:[R.translations.suggestions.sequences]}),Gl=e=>{let t=R.translations.warnings.keyPattern;return e.turns===1&&(t=R.translations.warnings.straightRow),{warning:t,suggestions:[R.translations.suggestions.longerKeyboardPattern]}},Wl=()=>null;const Lt={warning:null,suggestions:[]};class Yl{constructor(){this.matchers={bruteforce:Ll,date:El,dictionary:Ul,regex:ql,repeat:zl,sequence:Vl,spatial:Gl,separator:Wl},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(R.translations.suggestions.useWords,R.translations.suggestions.noNeed)}getFeedback(t,n){if(n.length===0)return this.defaultFeedback;if(t>2)return Lt;c