mode-csp-43b359b9.js 1.8 KB

1
  1. import{g as u}from"./index-d7fba904.js";function g(s,n){for(var e=0;e<n.length;e++){const t=n[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in s)){const o=Object.getOwnPropertyDescriptor(t,r);o&&Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(s,n){ace.define("ace/mode/csp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,r){var o=e("../lib/oop"),a=e("./text_highlight_rules").TextHighlightRules,c=function(){var i=this.createKeywordMapper({"constant.language":"child-src|connect-src|default-src|font-src|frame-src|img-src|manifest-src|media-src|object-src|script-src|style-src|worker-src|base-uri|plugin-types|sandbox|disown-opener|form-action|frame-ancestors|report-uri|report-to|upgrade-insecure-requests|block-all-mixed-content|require-sri-for|reflected-xss|referrer|policy-uri",variable:"'none'|'self'|'unsafe-inline'|'unsafe-eval'|'strict-dynamic'|'unsafe-hashed-attributes'"},"identifier",!0);this.$rules={start:[{token:"string.link",regex:/https?:[^;\s]*/},{token:"operator.punctuation",regex:/;/},{token:i,regex:/[^\s;]+/}]}};o.inherits(c,a),t.CspHighlightRules=c}),ace.define("ace/mode/csp",["require","exports","module","ace/mode/text","ace/mode/csp_highlight_rules","ace/lib/oop"],function(e,t,r){var o=e("./text").Mode,a=e("./csp_highlight_rules").CspHighlightRules,c=e("../lib/oop"),i=function(){this.HighlightRules=a};c.inherits(i,o),function(){this.$id="ace/mode/csp"}.call(i.prototype),t.Mode=i}),function(){ace.require(["ace/mode/csp"],function(e){s&&(s.exports=e)})}()})(l);var p=l.exports;const d=u(p),f=g({__proto__:null,default:d},[p]);export{f as m};