var V=Object.defineProperty;var N=(c,t,s)=>t in c?V(c,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[t]=s;var a=(c,t,s)=>N(c,typeof t!="symbol"?t+"":t,s);import{d as L,a as B,b as T,e as b,w as m,g as h,f as _,k as j,l as D,j as x,t as k,h as w,F}from"./index-DMqaFtX4.js";class y{constructor(t,s=0){a(this,"depth",0);a(this,"key");a(this,"word",!1);a(this,"children",{});a(this,"fail");a(this,"count",0);this.key=t,this.depth=s}}class I{constructor(t,s){a(this,"root",new y("root"));a(this,"customCharacter");const e=t.length;this.customCharacter=(s==null?void 0:s.customCharacter)||"*";for(let r=0;rs;){const e=t[s],r=e.children;for(const l in e.children){const o=r[l];let n=e.fail;for(;n&&!n.children[l];)n=n.fail;o.fail=(n==null?void 0:n.children[l])||this.root,t.push(o)}s++}}search(t,s={replace:!0}){let e=this.root;const r=[],l=[],o=[],{replace:n=!0,verify:i=!1}=s,v=t.length;for(let u=0;u{const n=w("el-link"),i=w("el-tag"),v=w("el-input"),u=w("el-card");return b(),T(u,{shadow:"never"},{header:m(()=>[h("div",K,[o[2]||(o[2]=h("p",{class:"font-medium"},"敏感词过滤",-1)),_(n,{class:"mt-2",href:"https://github.com/pure-admin/vue-pure-admin/blob/main/src/views/able/sensitive.vue",target:"_blank"},{default:m(()=>o[1]||(o[1]=[x(" 代码位置 src/views/able/sensitive.vue ")])),_:1})])]),default:m(()=>[h("div",S,[o[3]||(o[3]=h("span",null,"自定义敏感词",-1)),(b(),j(F,null,D(t,(d,f)=>_(i,{key:f,type:"warning",class:"mx-1",effect:"dark",round:""},{default:m(()=>[x(k(d),1)]),_:2},1024)),64))]),_(v,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=d=>s.value=d),onInput:r},null,8,["modelValue"]),h("p",q,k(s.value),1)]),_:1})}}});export{U as default};