-
Notifications
You must be signed in to change notification settings - Fork 11
/
chunk-DWJLHIXK.js
1 lines (1 loc) · 1.04 KB
/
chunk-DWJLHIXK.js
1
import{Jb as o,Lb as s,ja as c}from"./chunk-GBKJFEQZ.js";var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/([^\#-~ |!])/g;function l(e){return e.replace(/&/g,"&").replace(d,i=>{let n=i.charCodeAt(0),t=i.charCodeAt(1);return`&#${(n-55296)*1024+(t-56320)+65536};`}).replace(u,i=>`&#${i.charCodeAt(0)};`).replace(/</g,"<").replace(/>/g,">")}var R=(()=>{class e{constructor(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}transform(n,t,a,r){if(!t)return n;let p=new RegExp(t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),a),g=n.replace(p,`${this.UNIQUE_WRAPPERS[0]}$&${this.UNIQUE_WRAPPERS[1]}`);return l(g).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),r?`<span class="${r}">`:"<span>").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"</span>")}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275pipe=s({name:"nzHighlight",type:e,pure:!0})}}return e})(),h=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=o({type:e})}static{this.\u0275inj=c({})}}return e})();export{R as a,h as b};