@matdata/yasr 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/yasr.min.js CHANGED
@@ -1,56 +1,50 @@
1
- "use strict";var Yasr=(()=>{var n1=Object.create;var gu=Object.defineProperty;var i1=Object.getOwnPropertyDescriptor;var a1=Object.getOwnPropertyNames;var o1=Object.getPrototypeOf,l1=Object.prototype.hasOwnProperty;var Wt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),s1=(e,r)=>{for(var n in r)gu(e,n,{get:r[n],enumerable:!0})},Cp=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of a1(r))!l1.call(e,u)&&u!==n&&gu(e,u,{get:()=>r[u],enumerable:!(a=i1(r,u))||a.enumerable});return e};var Gr=(e,r,n)=>(n=e!=null?n1(o1(e)):{},Cp(r||!e||!e.__esModule?gu(n,"default",{value:e,enumerable:!0}):n,e)),u1=e=>Cp(gu({},"__esModule",{value:!0}),e);var Bp=Wt((vN,Ed)=>{"use strict";var Go=typeof Reflect=="object"?Reflect:null,Ip=Go&&typeof Go.apply=="function"?Go.apply:function(r,n,a){return Function.prototype.apply.call(r,n,a)},mu;Go&&typeof Go.ownKeys=="function"?mu=Go.ownKeys:Object.getOwnPropertySymbols?mu=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:mu=function(r){return Object.getOwnPropertyNames(r)};function f1(e){console&&console.warn&&console.warn(e)}var Rp=Number.isNaN||function(r){return r!==r};function Jt(){Jt.init.call(this)}Ed.exports=Jt;Ed.exports.once=p1;Jt.EventEmitter=Jt;Jt.prototype._events=void 0;Jt.prototype._eventsCount=0;Jt.prototype._maxListeners=void 0;var wp=10;function bu(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jt,"defaultMaxListeners",{enumerable:!0,get:function(){return wp},set:function(e){if(typeof e!="number"||e<0||Rp(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");wp=e}});Jt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Rp(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Sp(e){return e._maxListeners===void 0?Jt.defaultMaxListeners:e._maxListeners}Jt.prototype.getMaxListeners=function(){return Sp(this)};Jt.prototype.emit=function(r){for(var n=[],a=1;a<arguments.length;a++)n.push(arguments[a]);var u=r==="error",c=this._events;if(c!==void 0)u=u&&c.error===void 0;else if(!u)return!1;if(u){var h;if(n.length>0&&(h=n[0]),h instanceof Error)throw h;var b=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw b.context=h,b}var x=c[r];if(x===void 0)return!1;if(typeof x=="function")Ip(x,this,n);else for(var _=x.length,I=Fp(x,_),a=0;a<_;++a)Ip(I[a],this,n);return!0};function Ep(e,r,n,a){var u,c,h;if(bu(n),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",r,n.listener?n.listener:n),c=e._events),h=c[r]),h===void 0)h=c[r]=n,++e._eventsCount;else if(typeof h=="function"?h=c[r]=a?[n,h]:[h,n]:a?h.unshift(n):h.push(n),u=Sp(e),u>0&&h.length>u&&!h.warned){h.warned=!0;var b=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");b.name="MaxListenersExceededWarning",b.emitter=e,b.type=r,b.count=h.length,f1(b)}return e}Jt.prototype.addListener=function(r,n){return Ep(this,r,n,!1)};Jt.prototype.on=Jt.prototype.addListener;Jt.prototype.prependListener=function(r,n){return Ep(this,r,n,!0)};function d1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ap(e,r,n){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:n},u=d1.bind(a);return u.listener=n,a.wrapFn=u,u}Jt.prototype.once=function(r,n){return bu(n),this.on(r,Ap(this,r,n)),this};Jt.prototype.prependOnceListener=function(r,n){return bu(n),this.prependListener(r,Ap(this,r,n)),this};Jt.prototype.removeListener=function(r,n){var a,u,c,h,b;if(bu(n),u=this._events,u===void 0)return this;if(a=u[r],a===void 0)return this;if(a===n||a.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete u[r],u.removeListener&&this.emit("removeListener",r,a.listener||n));else if(typeof a!="function"){for(c=-1,h=a.length-1;h>=0;h--)if(a[h]===n||a[h].listener===n){b=a[h].listener,c=h;break}if(c<0)return this;c===0?a.shift():c1(a,c),a.length===1&&(u[r]=a[0]),u.removeListener!==void 0&&this.emit("removeListener",r,b||n)}return this};Jt.prototype.off=Jt.prototype.removeListener;Jt.prototype.removeAllListeners=function(r){var n,a,u;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var c=Object.keys(a),h;for(u=0;u<c.length;++u)h=c[u],h!=="removeListener"&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=a[r],typeof n=="function")this.removeListener(r,n);else if(n!==void 0)for(u=n.length-1;u>=0;u--)this.removeListener(r,n[u]);return this};function _p(e,r,n){var a=e._events;if(a===void 0)return[];var u=a[r];return u===void 0?[]:typeof u=="function"?n?[u.listener||u]:[u]:n?h1(u):Fp(u,u.length)}Jt.prototype.listeners=function(r){return _p(this,r,!0)};Jt.prototype.rawListeners=function(r){return _p(this,r,!1)};Jt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Np.call(e,r)};Jt.prototype.listenerCount=Np;function Np(e){var r=this._events;if(r!==void 0){var n=r[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Jt.prototype.eventNames=function(){return this._eventsCount>0?mu(this._events):[]};function Fp(e,r){for(var n=new Array(r),a=0;a<r;++a)n[a]=e[a];return n}function c1(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function h1(e){for(var r=new Array(e.length),n=0;n<r.length;++n)r[n]=e[n].listener||e[n];return r}function p1(e,r){return new Promise(function(n,a){function u(h){e.removeListener(r,c),a(h)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",u),n([].slice.call(arguments))}Lp(e,r,c,{once:!0}),r!=="error"&&g1(e,u,{once:!0})})}function g1(e,r,n){typeof e.on=="function"&&Lp(e,"error",r,n)}function Lp(e,r,n,a){if(typeof e.on=="function")a.once?e.once(r,n):e.on(r,n);else if(typeof e.addEventListener=="function")e.addEventListener(r,function u(c){a.once&&e.removeEventListener(r,u),n(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Ka=Wt((lO,xb)=>{var Yd=hE(),fE=pE(),dE=gE(),cE=typeof window<"u"?window:global;xb.exports={assign:Yd,create:fE,trim:dE,bind:mE,slice:Pd,each:yb,map:bE,pluck:zd,isList:qd,isFunction:vE,isObject:yE,Global:cE};function hE(){return Object.assign?Object.assign:function(r,n,a,u){for(var c=1;c<arguments.length;c++)yb(Object(arguments[c]),function(h,b){r[b]=h});return r}}function pE(){if(Object.create)return function(n,a,u,c){var h=Pd(arguments,1);return Yd.apply(this,[Object.create(n)].concat(h))};{let r=function(){};var e=r;return function(a,u,c,h){var b=Pd(arguments,1);return r.prototype=a,Yd.apply(this,[new r].concat(b))}}}function gE(){return String.prototype.trim?function(r){return String.prototype.trim.call(r)}:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function mE(e,r){return function(){return r.apply(e,Array.prototype.slice.call(arguments,0))}}function Pd(e,r){return Array.prototype.slice.call(e,r||0)}function yb(e,r){zd(e,function(n,a){return r(n,a),!1})}function bE(e,r){var n=qd(e)?[]:{};return zd(e,function(a,u){return n[u]=r(a,u),!1}),n}function zd(e,r){if(qd(e)){for(var n=0;n<e.length;n++)if(r(e[n],n))return e[n]}else for(var a in e)if(e.hasOwnProperty(a)&&r(e[a],a))return e[a]}function qd(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function vE(e){return e&&{}.toString.call(e)==="[object Function]"}function yE(e){return e&&{}.toString.call(e)==="[object Object]"}});var Cb=Wt((sO,Tb)=>{var Aa=Ka(),xE=Aa.slice,TE=Aa.pluck,el=Aa.each,CE=Aa.bind,IE=Aa.create,Kd=Aa.isList,$d=Aa.isFunction,wE=Aa.isObject;Tb.exports={createStore:ec};var RE={version:"2.0.12",enabled:!1,get:function(e,r){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,r)},set:function(e,r){return r===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(r)),r)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var r=this;this.storage.each(function(n,a){e.call(r,r._deserialize(n),(a||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return ec.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return ec(this.storage,this.plugins,e)}};function SE(){var e=typeof console>"u"?null:console;if(e){var r=e.warn?e.warn:e.log;r.apply(e,arguments)}}function ec(e,r,n){n||(n=""),e&&!Kd(e)&&(e=[e]),r&&!Kd(r)&&(r=[r]);var a=n?"__storejs_"+n+"_":"",u=n?new RegExp("^"+a):null,c=/^[a-zA-Z0-9_\-]*$/;if(!c.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:a,_namespaceRegexp:u,_testStorage:function(x){try{var _="__storejs__test__";x.write(_,_);var I=x.read(_)===_;return x.remove(_),I}catch{return!1}},_assignPluginFnProp:function(x,_){var I=this[_];this[_]=function(){var G=xE(arguments,0),W=this;function U(){if(I)return el(arguments,function(A,k){G[k]=A}),I.apply(W,G)}var X=[U].concat(G);return x.apply(W,X)}},_serialize:function(x){return JSON.stringify(x)},_deserialize:function(x,_){if(!x)return _;var I="";try{I=JSON.parse(x)}catch{I=x}return I!==void 0?I:_},_addStorage:function(x){this.enabled||this._testStorage(x)&&(this.storage=x,this.enabled=!0)},_addPlugin:function(x){var _=this;if(Kd(x)){el(x,function(G){_._addPlugin(G)});return}var I=TE(this.plugins,function(G){return x===G});if(!I){if(this.plugins.push(x),!$d(x))throw new Error("Plugins must be function values that return objects");var F=x.call(this);if(!wE(F))throw new Error("Plugins must return an object of function properties");el(F,function(G,W){if(!$d(G))throw new Error("Bad plugin property: "+W+" from plugin "+x.name+". Plugins should only return functions.");_._assignPluginFnProp(G,W)})}},addStorage:function(x){SE("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(x)}},b=IE(h,RE,{plugins:[]});return b.raw={},el(b,function(x,_){$d(x)&&(b.raw[_]=CE(b,x))}),el(e,function(x){b._addStorage(x)}),el(r,function(x){b._addPlugin(x)}),b}});var Rb=Wt((uO,wb)=>{var EE=Ka(),AE=EE.Global;wb.exports={name:"localStorage",read:Ib,write:_E,each:NE,remove:FE,clearAll:LE};function tl(){return AE.localStorage}function Ib(e){return tl().getItem(e)}function _E(e,r){return tl().setItem(e,r)}function NE(e){for(var r=tl().length-1;r>=0;r--){var n=tl().key(r);e(Ib(n),n)}}function FE(e){return tl().removeItem(e)}function LE(){return tl().clear()}});var Ab=Wt((fO,Eb)=>{var BE=Ka(),UE=BE.Global;Eb.exports={name:"oldFF-globalStorage",read:kE,write:GE,each:Sb,remove:DE,clearAll:WE};var $a=UE.globalStorage;function kE(e){return $a[e]}function GE(e,r){$a[e]=r}function Sb(e){for(var r=$a.length-1;r>=0;r--){var n=$a.key(r);e($a[n],n)}}function DE(e){return $a.removeItem(e)}function WE(){Sb(function(e,r){delete $a[e]})}});var Fb=Wt((dO,Nb)=>{var OE=Ka(),tc=OE.Global;Nb.exports={name:"oldIE-userDataStorage",write:ZE,read:ME,each:VE,remove:QE,clearAll:HE};var ps="storejs",hs=tc.document,gs=JE(),_b=(tc.navigator?tc.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ZE(e,r){if(!_b){var n=rc(e);gs(function(a){a.setAttribute(n,r),a.save(ps)})}}function ME(e){if(!_b){var r=rc(e),n=null;return gs(function(a){n=a.getAttribute(r)}),n}}function VE(e){gs(function(r){for(var n=r.XMLDocument.documentElement.attributes,a=n.length-1;a>=0;a--){var u=n[a];e(r.getAttribute(u.name),u.name)}})}function QE(e){var r=rc(e);gs(function(n){n.removeAttribute(r),n.save(ps)})}function HE(){gs(function(e){var r=e.XMLDocument.documentElement.attributes;e.load(ps);for(var n=r.length-1;n>=0;n--)e.removeAttribute(r[n].name);e.save(ps)})}var XE=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function rc(e){return e.replace(/^\d/,"___$&").replace(XE,"___")}function JE(){if(!hs||!hs.documentElement||!hs.documentElement.addBehavior)return null;var e="script",r,n,a;try{n=new ActiveXObject("htmlfile"),n.open(),n.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),n.close(),r=n.w.frames[0].document,a=r.createElement("div")}catch{a=hs.createElement("div"),r=hs.body}return function(u){var c=[].slice.call(arguments,0);c.unshift(a),r.appendChild(a),a.addBehavior("#default#userData"),a.load(ps),u.apply(this,c),r.removeChild(a)}}});var Db=Wt((cO,Gb)=>{var Lb=Ka(),jE=Lb.Global,YE=Lb.trim;Gb.exports={name:"cookieStorage",read:PE,write:zE,each:Bb,remove:Ub,clearAll:qE};var ms=jE.document;function PE(e){if(!e||!kb(e))return null;var r="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ms.cookie.replace(new RegExp(r),"$1"))}function Bb(e){for(var r=ms.cookie.split(/; ?/g),n=r.length-1;n>=0;n--)if(YE(r[n])){var a=r[n].split("="),u=unescape(a[0]),c=unescape(a[1]);e(c,u)}}function zE(e,r){e&&(ms.cookie=escape(e)+"="+escape(r)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Ub(e){!e||!kb(e)||(ms.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function qE(){Bb(function(e,r){Ub(r)})}function kb(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ms.cookie)}});var Zb=Wt((hO,Ob)=>{var KE=Ka(),$E=KE.Global;Ob.exports={name:"sessionStorage",read:Wb,write:eA,each:tA,remove:rA,clearAll:nA};function rl(){return $E.sessionStorage}function Wb(e){return rl().getItem(e)}function eA(e,r){return rl().setItem(e,r)}function tA(e){for(var r=rl().length-1;r>=0;r--){var n=rl().key(r);e(Wb(n),n)}}function rA(e){return rl().removeItem(e)}function nA(){return rl().clear()}});var Vb=Wt((pO,Mb)=>{Mb.exports={name:"memoryStorage",read:iA,write:aA,each:oA,remove:lA,clearAll:sA};var eo={};function iA(e){return eo[e]}function aA(e,r){eo[e]=r}function oA(e){for(var r in eo)eo.hasOwnProperty(r)&&e(eo[r],r)}function lA(e){delete eo[e]}function sA(e){eo={}}});var Hb=Wt((gO,Qb)=>{Qb.exports=[Rb(),Ab(),Fb(),Db(),Zb(),Vb()]});var Xb=Wt((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(r){var n=meta[r];return typeof n=="string"?n:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,r){var n,a,u,c,h=gap,b,x=r[e];switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(e)),typeof rep=="function"&&(x=rep.call(r,e,x)),typeof x){case"string":return quote(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":return String(x);case"object":if(!x)return"null";if(gap+=indent,b=[],Object.prototype.toString.apply(x)==="[object Array]"){for(c=x.length,n=0;n<c;n+=1)b[n]=str(n,x)||"null";return u=b.length===0?"[]":gap?`[
2
- `+gap+b.join(`,
1
+ "use strict";var Yasr=(()=>{var jb=Object.create;var Za=Object.defineProperty;var zb=Object.getOwnPropertyDescriptor;var qb=Object.getOwnPropertyNames;var Kb=Object.getPrototypeOf,$b=Object.prototype.hasOwnProperty;var et=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports),ev=(r,n)=>{for(var a in n)Za(r,a,{get:n[a],enumerable:!0})},Wc=(r,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of qb(n))!$b.call(r,c)&&c!==a&&Za(r,c,{get:()=>n[c],enumerable:!(l=zb(n,c))||l.enumerable});return r};var rr=(r,n,a)=>(a=r!=null?jb(Kb(r)):{},Wc(n||!r||!r.__esModule?Za(a,"default",{value:r,enumerable:!0}):a,r)),tv=r=>Wc(Za({},"__esModule",{value:!0}),r);var zc=et((dR,Ol)=>{"use strict";var Bi=typeof Reflect=="object"?Reflect:null,Zc=Bi&&typeof Bi.apply=="function"?Bi.apply:function(n,a,l){return Function.prototype.apply.call(n,a,l)},Da;Bi&&typeof Bi.ownKeys=="function"?Da=Bi.ownKeys:Object.getOwnPropertySymbols?Da=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Da=function(n){return Object.getOwnPropertyNames(n)};function rv(r){console&&console.warn&&console.warn(r)}var Vc=Number.isNaN||function(n){return n!==n};function tt(){tt.init.call(this)}Ol.exports=tt;Ol.exports.once=av;tt.EventEmitter=tt;tt.prototype._events=void 0;tt.prototype._eventsCount=0;tt.prototype._maxListeners=void 0;var Dc=10;function Va(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(tt,"defaultMaxListeners",{enumerable:!0,get:function(){return Dc},set:function(r){if(typeof r!="number"||r<0||Vc(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");Dc=r}});tt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};tt.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||Vc(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function Qc(r){return r._maxListeners===void 0?tt.defaultMaxListeners:r._maxListeners}tt.prototype.getMaxListeners=function(){return Qc(this)};tt.prototype.emit=function(n){for(var a=[],l=1;l<arguments.length;l++)a.push(arguments[l]);var c=n==="error",p=this._events;if(p!==void 0)c=c&&p.error===void 0;else if(!c)return!1;if(c){var g;if(a.length>0&&(g=a[0]),g instanceof Error)throw g;var y=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw y.context=g,y}var I=p[n];if(I===void 0)return!1;if(typeof I=="function")Zc(I,this,a);else for(var U=I.length,A=Yc(I,U),l=0;l<U;++l)Zc(A[l],this,a);return!0};function Hc(r,n,a,l){var c,p,g;if(Va(a),p=r._events,p===void 0?(p=r._events=Object.create(null),r._eventsCount=0):(p.newListener!==void 0&&(r.emit("newListener",n,a.listener?a.listener:a),p=r._events),g=p[n]),g===void 0)g=p[n]=a,++r._eventsCount;else if(typeof g=="function"?g=p[n]=l?[a,g]:[g,a]:l?g.unshift(a):g.push(a),c=Qc(r),c>0&&g.length>c&&!g.warned){g.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=r,y.type=n,y.count=g.length,rv(y)}return r}tt.prototype.addListener=function(n,a){return Hc(this,n,a,!1)};tt.prototype.on=tt.prototype.addListener;tt.prototype.prependListener=function(n,a){return Hc(this,n,a,!0)};function nv(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Pc(r,n,a){var l={fired:!1,wrapFn:void 0,target:r,type:n,listener:a},c=nv.bind(l);return c.listener=a,l.wrapFn=c,c}tt.prototype.once=function(n,a){return Va(a),this.on(n,Pc(this,n,a)),this};tt.prototype.prependOnceListener=function(n,a){return Va(a),this.prependListener(n,Pc(this,n,a)),this};tt.prototype.removeListener=function(n,a){var l,c,p,g,y;if(Va(a),c=this._events,c===void 0)return this;if(l=c[n],l===void 0)return this;if(l===a||l.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete c[n],c.removeListener&&this.emit("removeListener",n,l.listener||a));else if(typeof l!="function"){for(p=-1,g=l.length-1;g>=0;g--)if(l[g]===a||l[g].listener===a){y=l[g].listener,p=g;break}if(p<0)return this;p===0?l.shift():iv(l,p),l.length===1&&(c[n]=l[0]),c.removeListener!==void 0&&this.emit("removeListener",n,y||a)}return this};tt.prototype.off=tt.prototype.removeListener;tt.prototype.removeAllListeners=function(n){var a,l,c;if(l=this._events,l===void 0)return this;if(l.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):l[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete l[n]),this;if(arguments.length===0){var p=Object.keys(l),g;for(c=0;c<p.length;++c)g=p[c],g!=="removeListener"&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=l[n],typeof a=="function")this.removeListener(n,a);else if(a!==void 0)for(c=a.length-1;c>=0;c--)this.removeListener(n,a[c]);return this};function Jc(r,n,a){var l=r._events;if(l===void 0)return[];var c=l[n];return c===void 0?[]:typeof c=="function"?a?[c.listener||c]:[c]:a?ov(c):Yc(c,c.length)}tt.prototype.listeners=function(n){return Jc(this,n,!0)};tt.prototype.rawListeners=function(n){return Jc(this,n,!1)};tt.listenerCount=function(r,n){return typeof r.listenerCount=="function"?r.listenerCount(n):Xc.call(r,n)};tt.prototype.listenerCount=Xc;function Xc(r){var n=this._events;if(n!==void 0){var a=n[r];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}tt.prototype.eventNames=function(){return this._eventsCount>0?Da(this._events):[]};function Yc(r,n){for(var a=new Array(n),l=0;l<n;++l)a[l]=r[l];return a}function iv(r,n){for(;n+1<r.length;n++)r[n]=r[n+1];r.pop()}function ov(r){for(var n=new Array(r.length),a=0;a<n.length;++a)n[a]=r[a].listener||r[a];return n}function av(r,n){return new Promise(function(a,l){function c(g){r.removeListener(n,p),l(g)}function p(){typeof r.removeListener=="function"&&r.removeListener("error",c),a([].slice.call(arguments))}jc(r,n,p,{once:!0}),n!=="error"&&sv(r,c,{once:!0})})}function sv(r,n,a){typeof r.on=="function"&&jc(r,"error",n,a)}function jc(r,n,a,l){if(typeof r.on=="function")l.once?r.once(n,a):r.on(n,a);else if(typeof r.addEventListener=="function")r.addEventListener(n,function c(p){l.once&&r.removeEventListener(n,c),a(p)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}});var ni=et((j2,Op)=>{var ru=tC(),KE=rC(),$E=nC(),eC=typeof window<"u"?window:global;Op.exports={assign:ru,create:KE,trim:$E,bind:iC,slice:nu,each:kp,map:oC,pluck:iu,isList:ou,isFunction:aC,isObject:sC,Global:eC};function tC(){return Object.assign?Object.assign:function(n,a,l,c){for(var p=1;p<arguments.length;p++)kp(Object(arguments[p]),function(g,y){n[y]=g});return n}}function rC(){if(Object.create)return function(a,l,c,p){var g=nu(arguments,1);return ru.apply(this,[Object.create(a)].concat(g))};{let n=function(){};var r=n;return function(l,c,p,g){var y=nu(arguments,1);return n.prototype=l,ru.apply(this,[new n].concat(y))}}}function nC(){return String.prototype.trim?function(n){return String.prototype.trim.call(n)}:function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function iC(r,n){return function(){return n.apply(r,Array.prototype.slice.call(arguments,0))}}function nu(r,n){return Array.prototype.slice.call(r,n||0)}function kp(r,n){iu(r,function(a,l){return n(a,l),!1})}function oC(r,n){var a=ou(r)?[]:{};return iu(r,function(l,c){return a[c]=n(l,c),!1}),a}function iu(r,n){if(ou(r)){for(var a=0;a<r.length;a++)if(n(r[a],a))return r[a]}else for(var l in r)if(r.hasOwnProperty(l)&&n(r[l],l))return r[l]}function ou(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"}function aC(r){return r&&{}.toString.call(r)==="[object Function]"}function sC(r){return r&&{}.toString.call(r)==="[object Object]"}});var Gp=et((z2,Mp)=>{var Qn=ni(),lC=Qn.slice,uC=Qn.pluck,qi=Qn.each,fC=Qn.bind,cC=Qn.create,au=Qn.isList,su=Qn.isFunction,dC=Qn.isObject;Mp.exports={createStore:lu};var hC={version:"2.0.12",enabled:!1,get:function(r,n){var a=this.storage.read(this._namespacePrefix+r);return this._deserialize(a,n)},set:function(r,n){return n===void 0?this.remove(r):(this.storage.write(this._namespacePrefix+r,this._serialize(n)),n)},remove:function(r){this.storage.remove(this._namespacePrefix+r)},each:function(r){var n=this;this.storage.each(function(a,l){r.call(n,n._deserialize(a),(l||"").replace(n._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(r){return this._namespacePrefix=="__storejs_"+r+"_"},createStore:function(){return lu.apply(this,arguments)},addPlugin:function(r){this._addPlugin(r)},namespace:function(r){return lu(this.storage,this.plugins,r)}};function pC(){var r=typeof console>"u"?null:console;if(r){var n=r.warn?r.warn:r.log;n.apply(r,arguments)}}function lu(r,n,a){a||(a=""),r&&!au(r)&&(r=[r]),n&&!au(n)&&(n=[n]);var l=a?"__storejs_"+a+"_":"",c=a?new RegExp("^"+l):null,p=/^[a-zA-Z0-9_\-]*$/;if(!p.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:l,_namespaceRegexp:c,_testStorage:function(I){try{var U="__storejs__test__";I.write(U,U);var A=I.read(U)===U;return I.remove(U),A}catch{return!1}},_assignPluginFnProp:function(I,U){var A=this[U];this[U]=function(){var O=lC(arguments,0),X=this;function S(){if(A)return qi(arguments,function(_,M){O[M]=_}),A.apply(X,O)}var D=[S].concat(O);return I.apply(X,D)}},_serialize:function(I){return JSON.stringify(I)},_deserialize:function(I,U){if(!I)return U;var A="";try{A=JSON.parse(I)}catch{A=I}return A!==void 0?A:U},_addStorage:function(I){this.enabled||this._testStorage(I)&&(this.storage=I,this.enabled=!0)},_addPlugin:function(I){var U=this;if(au(I)){qi(I,function(O){U._addPlugin(O)});return}var A=uC(this.plugins,function(O){return I===O});if(!A){if(this.plugins.push(I),!su(I))throw new Error("Plugins must be function values that return objects");var F=I.call(this);if(!dC(F))throw new Error("Plugins must return an object of function properties");qi(F,function(O,X){if(!su(O))throw new Error("Bad plugin property: "+X+" from plugin "+I.name+". Plugins should only return functions.");U._assignPluginFnProp(O,X)})}},addStorage:function(I){pC("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(I)}},y=cC(g,hC,{plugins:[]});return y.raw={},qi(y,function(I,U){su(I)&&(y.raw[U]=fC(y,I))}),qi(r,function(I){y._addStorage(I)}),qi(n,function(I){y._addPlugin(I)}),y}});var Dp=et((q2,Zp)=>{var gC=ni(),mC=gC.Global;Zp.exports={name:"localStorage",read:Wp,write:bC,each:vC,remove:yC,clearAll:xC};function Ki(){return mC.localStorage}function Wp(r){return Ki().getItem(r)}function bC(r,n){return Ki().setItem(r,n)}function vC(r){for(var n=Ki().length-1;n>=0;n--){var a=Ki().key(n);r(Wp(a),a)}}function yC(r){return Ki().removeItem(r)}function xC(){return Ki().clear()}});var Hp=et((K2,Qp)=>{var IC=ni(),TC=IC.Global;Qp.exports={name:"oldFF-globalStorage",read:EC,write:CC,each:Vp,remove:AC,clearAll:RC};var ii=TC.globalStorage;function EC(r){return ii[r]}function CC(r,n){ii[r]=n}function Vp(r){for(var n=ii.length-1;n>=0;n--){var a=ii.key(n);r(ii[a],a)}}function AC(r){return ii.removeItem(r)}function RC(){Vp(function(r,n){delete ii[r]})}});var Xp=et(($2,Jp)=>{var _C=ni(),uu=_C.Global;Jp.exports={name:"oldIE-userDataStorage",write:NC,read:SC,each:wC,remove:LC,clearAll:FC};var Yo="storejs",Xo=uu.document,jo=UC(),Pp=(uu.navigator?uu.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function NC(r,n){if(!Pp){var a=fu(r);jo(function(l){l.setAttribute(a,n),l.save(Yo)})}}function SC(r){if(!Pp){var n=fu(r),a=null;return jo(function(l){a=l.getAttribute(n)}),a}}function wC(r){jo(function(n){for(var a=n.XMLDocument.documentElement.attributes,l=a.length-1;l>=0;l--){var c=a[l];r(n.getAttribute(c.name),c.name)}})}function LC(r){var n=fu(r);jo(function(a){a.removeAttribute(n),a.save(Yo)})}function FC(){jo(function(r){var n=r.XMLDocument.documentElement.attributes;r.load(Yo);for(var a=n.length-1;a>=0;a--)r.removeAttribute(n[a].name);r.save(Yo)})}var BC=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fu(r){return r.replace(/^\d/,"___$&").replace(BC,"___")}function UC(){if(!Xo||!Xo.documentElement||!Xo.documentElement.addBehavior)return null;var r="script",n,a,l;try{a=new ActiveXObject("htmlfile"),a.open(),a.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),a.close(),n=a.w.frames[0].document,l=n.createElement("div")}catch{l=Xo.createElement("div"),n=Xo.body}return function(c){var p=[].slice.call(arguments,0);p.unshift(l),n.appendChild(l),l.addBehavior("#default#userData"),l.load(Yo),c.apply(this,p),n.removeChild(l)}}});var $p=et((ek,Kp)=>{var Yp=ni(),kC=Yp.Global,OC=Yp.trim;Kp.exports={name:"cookieStorage",read:MC,write:GC,each:jp,remove:zp,clearAll:WC};var zo=kC.document;function MC(r){if(!r||!qp(r))return null;var n="(?:^|.*;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(zo.cookie.replace(new RegExp(n),"$1"))}function jp(r){for(var n=zo.cookie.split(/; ?/g),a=n.length-1;a>=0;a--)if(OC(n[a])){var l=n[a].split("="),c=unescape(l[0]),p=unescape(l[1]);r(p,c)}}function GC(r,n){r&&(zo.cookie=escape(r)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function zp(r){!r||!qp(r)||(zo.cookie=escape(r)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function WC(){jp(function(r,n){zp(n)})}function qp(r){return new RegExp("(?:^|;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(zo.cookie)}});var rg=et((tk,tg)=>{var ZC=ni(),DC=ZC.Global;tg.exports={name:"sessionStorage",read:eg,write:VC,each:QC,remove:HC,clearAll:PC};function $i(){return DC.sessionStorage}function eg(r){return $i().getItem(r)}function VC(r,n){return $i().setItem(r,n)}function QC(r){for(var n=$i().length-1;n>=0;n--){var a=$i().key(n);r(eg(a),a)}}function HC(r){return $i().removeItem(r)}function PC(){return $i().clear()}});var ig=et((rk,ng)=>{ng.exports={name:"memoryStorage",read:JC,write:XC,each:YC,remove:jC,clearAll:zC};var oi={};function JC(r){return oi[r]}function XC(r,n){oi[r]=n}function YC(r){for(var n in oi)oi.hasOwnProperty(n)&&r(oi[n],n)}function jC(r){delete oi[r]}function zC(r){oi={}}});var ag=et((nk,og)=>{og.exports=[Dp(),Hp(),Xp(),$p(),rg(),ig()]});var sg=et((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(r){return r<10?"0"+r:r}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(r){return rx_escapable.lastIndex=0,rx_escapable.test(r)?'"'+r.replace(rx_escapable,function(n){var a=meta[n];return typeof a=="string"?a:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'}function str(r,n){var a,l,c,p,g=gap,y,I=n[r];switch(I&&typeof I=="object"&&typeof I.toJSON=="function"&&(I=I.toJSON(r)),typeof rep=="function"&&(I=rep.call(n,r,I)),typeof I){case"string":return quote(I);case"number":return isFinite(I)?String(I):"null";case"boolean":case"null":return String(I);case"object":if(!I)return"null";if(gap+=indent,y=[],Object.prototype.toString.apply(I)==="[object Array]"){for(p=I.length,a=0;a<p;a+=1)y[a]=str(a,I)||"null";return c=y.length===0?"[]":gap?`[
2
+ `+gap+y.join(`,
3
3
  `+gap)+`
4
- `+h+"]":"["+b.join(",")+"]",gap=h,u}if(rep&&typeof rep=="object")for(c=rep.length,n=0;n<c;n+=1)typeof rep[n]=="string"&&(a=rep[n],u=str(a,x),u&&b.push(quote(a)+(gap?": ":":")+u));else for(a in x)Object.prototype.hasOwnProperty.call(x,a)&&(u=str(a,x),u&&b.push(quote(a)+(gap?": ":":")+u));return u=b.length===0?"{}":gap?`{
5
- `+gap+b.join(`,
4
+ `+g+"]":"["+y.join(",")+"]",gap=g,c}if(rep&&typeof rep=="object")for(p=rep.length,a=0;a<p;a+=1)typeof rep[a]=="string"&&(l=rep[a],c=str(l,I),c&&y.push(quote(l)+(gap?": ":":")+c));else for(l in I)Object.prototype.hasOwnProperty.call(I,l)&&(c=str(l,I),c&&y.push(quote(l)+(gap?": ":":")+c));return c=y.length===0?"{}":gap?`{
5
+ `+gap+y.join(`,
6
6
  `+gap)+`
7
- `+h+"}":"{"+b.join(",")+"}",gap=h,u}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,r,n){var a;if(gap="",indent="",typeof n=="number")for(a=0;a<n;a+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=r,r&&typeof r!="function"&&(typeof r!="object"||typeof r.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,r){var n,a,u=e[r];if(u&&typeof u=="object")for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(a=walk(u,n),a!==void 0?u[n]=a:delete u[n]);return reviver.call(e,r,u)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var jb=Wt((mO,Jb)=>{Jb.exports=uA;function uA(){return Xb(),{}}});var Pb=Wt((bO,Yb)=>{var fA=Cb(),dA=Hb(),cA=[jb()];Yb.exports=fA.createStore(dA,cA)});var Kb=Wt(ef=>{"use strict";ef.byteLength=gA;ef.toByteArray=bA;ef.fromByteArray=xA;var Oi=[],ai=[],pA=typeof Uint8Array<"u"?Uint8Array:Array,ic="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(no=0,zb=ic.length;no<zb;++no)Oi[no]=ic[no],ai[ic.charCodeAt(no)]=no;var no,zb;ai[45]=62;ai[95]=63;function qb(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=r);var a=n===r?0:4-n%4;return[n,a]}function gA(e){var r=qb(e),n=r[0],a=r[1];return(n+a)*3/4-a}function mA(e,r,n){return(r+n)*3/4-n}function bA(e){var r,n=qb(e),a=n[0],u=n[1],c=new pA(mA(e,a,u)),h=0,b=u>0?a-4:a,x;for(x=0;x<b;x+=4)r=ai[e.charCodeAt(x)]<<18|ai[e.charCodeAt(x+1)]<<12|ai[e.charCodeAt(x+2)]<<6|ai[e.charCodeAt(x+3)],c[h++]=r>>16&255,c[h++]=r>>8&255,c[h++]=r&255;return u===2&&(r=ai[e.charCodeAt(x)]<<2|ai[e.charCodeAt(x+1)]>>4,c[h++]=r&255),u===1&&(r=ai[e.charCodeAt(x)]<<10|ai[e.charCodeAt(x+1)]<<4|ai[e.charCodeAt(x+2)]>>2,c[h++]=r>>8&255,c[h++]=r&255),c}function vA(e){return Oi[e>>18&63]+Oi[e>>12&63]+Oi[e>>6&63]+Oi[e&63]}function yA(e,r,n){for(var a,u=[],c=r;c<n;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),u.push(vA(a));return u.join("")}function xA(e){for(var r,n=e.length,a=n%3,u=[],c=16383,h=0,b=n-a;h<b;h+=c)u.push(yA(e,h,h+c>b?b:h+c));return a===1?(r=e[n-1],u.push(Oi[r>>2]+Oi[r<<4&63]+"==")):a===2&&(r=(e[n-2]<<8)+e[n-1],u.push(Oi[r>>10]+Oi[r>>4&63]+Oi[r<<2&63]+"=")),u.join("")}});var $b=Wt(ac=>{ac.read=function(e,r,n,a,u){var c,h,b=u*8-a-1,x=(1<<b)-1,_=x>>1,I=-7,F=n?u-1:0,G=n?-1:1,W=e[r+F];for(F+=G,c=W&(1<<-I)-1,W>>=-I,I+=b;I>0;c=c*256+e[r+F],F+=G,I-=8);for(h=c&(1<<-I)-1,c>>=-I,I+=a;I>0;h=h*256+e[r+F],F+=G,I-=8);if(c===0)c=1-_;else{if(c===x)return h?NaN:(W?-1:1)*(1/0);h=h+Math.pow(2,a),c=c-_}return(W?-1:1)*h*Math.pow(2,c-a)};ac.write=function(e,r,n,a,u,c){var h,b,x,_=c*8-u-1,I=(1<<_)-1,F=I>>1,G=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=a?0:c-1,U=a?1:-1,X=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(b=isNaN(r)?1:0,h=I):(h=Math.floor(Math.log(r)/Math.LN2),r*(x=Math.pow(2,-h))<1&&(h--,x*=2),h+F>=1?r+=G/x:r+=G*Math.pow(2,1-F),r*x>=2&&(h++,x/=2),h+F>=I?(b=0,h=I):h+F>=1?(b=(r*x-1)*Math.pow(2,u),h=h+F):(b=r*Math.pow(2,F-1)*Math.pow(2,u),h=0));u>=8;e[n+W]=b&255,W+=U,b/=256,u-=8);for(h=h<<u|b,_+=u;_>0;e[n+W]=h&255,W+=U,h/=256,_-=8);e[n+W-U]|=X*128}});var m0=Wt(ol=>{"use strict";var oc=Kb(),il=$b(),e0=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ol.Buffer=ge;ol.SlowBuffer=SA;ol.INSPECT_MAX_BYTES=50;var tf=2147483647;ol.kMaxLength=tf;ge.TYPED_ARRAY_SUPPORT=TA();!ge.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function TA(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(ge.prototype,"parent",{enumerable:!0,get:function(){if(ge.isBuffer(this))return this.buffer}});Object.defineProperty(ge.prototype,"offset",{enumerable:!0,get:function(){if(ge.isBuffer(this))return this.byteOffset}});function $i(e){if(e>tf)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,ge.prototype),r}function ge(e,r,n){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fc(e)}return i0(e,r,n)}ge.poolSize=8192;function i0(e,r,n){if(typeof e=="string")return IA(e,r);if(ArrayBuffer.isView(e))return wA(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Zi(e,ArrayBuffer)||e&&Zi(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Zi(e,SharedArrayBuffer)||e&&Zi(e.buffer,SharedArrayBuffer)))return sc(e,r,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return ge.from(a,r,n);let u=RA(e);if(u)return u;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ge.from(e[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ge.from=function(e,r,n){return i0(e,r,n)};Object.setPrototypeOf(ge.prototype,Uint8Array.prototype);Object.setPrototypeOf(ge,Uint8Array);function a0(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function CA(e,r,n){return a0(e),e<=0?$i(e):r!==void 0?typeof n=="string"?$i(e).fill(r,n):$i(e).fill(r):$i(e)}ge.alloc=function(e,r,n){return CA(e,r,n)};function fc(e){return a0(e),$i(e<0?0:dc(e)|0)}ge.allocUnsafe=function(e){return fc(e)};ge.allocUnsafeSlow=function(e){return fc(e)};function IA(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!ge.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let n=o0(e,r)|0,a=$i(n),u=a.write(e,r);return u!==n&&(a=a.slice(0,u)),a}function lc(e){let r=e.length<0?0:dc(e.length)|0,n=$i(r);for(let a=0;a<r;a+=1)n[a]=e[a]&255;return n}function wA(e){if(Zi(e,Uint8Array)){let r=new Uint8Array(e);return sc(r.buffer,r.byteOffset,r.byteLength)}return lc(e)}function sc(e,r,n){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(n||0))throw new RangeError('"length" is outside of buffer bounds');let a;return r===void 0&&n===void 0?a=new Uint8Array(e):n===void 0?a=new Uint8Array(e,r):a=new Uint8Array(e,r,n),Object.setPrototypeOf(a,ge.prototype),a}function RA(e){if(ge.isBuffer(e)){let r=dc(e.length)|0,n=$i(r);return n.length===0||e.copy(n,0,0,r),n}if(e.length!==void 0)return typeof e.length!="number"||hc(e.length)?$i(0):lc(e);if(e.type==="Buffer"&&Array.isArray(e.data))return lc(e.data)}function dc(e){if(e>=tf)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tf.toString(16)+" bytes");return e|0}function SA(e){return+e!=e&&(e=0),ge.alloc(+e)}ge.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==ge.prototype};ge.compare=function(r,n){if(Zi(r,Uint8Array)&&(r=ge.from(r,r.offset,r.byteLength)),Zi(n,Uint8Array)&&(n=ge.from(n,n.offset,n.byteLength)),!ge.isBuffer(r)||!ge.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===n)return 0;let a=r.length,u=n.length;for(let c=0,h=Math.min(a,u);c<h;++c)if(r[c]!==n[c]){a=r[c],u=n[c];break}return a<u?-1:u<a?1:0};ge.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};ge.concat=function(r,n){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return ge.alloc(0);let a;if(n===void 0)for(n=0,a=0;a<r.length;++a)n+=r[a].length;let u=ge.allocUnsafe(n),c=0;for(a=0;a<r.length;++a){let h=r[a];if(Zi(h,Uint8Array))c+h.length>u.length?(ge.isBuffer(h)||(h=ge.from(h)),h.copy(u,c)):Uint8Array.prototype.set.call(u,h,c);else if(ge.isBuffer(h))h.copy(u,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=h.length}return u};function o0(e,r){if(ge.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Zi(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&n===0)return 0;let u=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return uc(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return g0(e).length;default:if(u)return a?-1:uc(e).length;r=(""+r).toLowerCase(),u=!0}}ge.byteLength=o0;function EA(e,r,n){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return DA(this,r,n);case"utf8":case"utf-8":return s0(this,r,n);case"ascii":return kA(this,r,n);case"latin1":case"binary":return GA(this,r,n);case"base64":return BA(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return WA(this,r,n);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}ge.prototype._isBuffer=!0;function io(e,r,n){let a=e[r];e[r]=e[n],e[n]=a}ge.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<r;n+=2)io(this,n,n+1);return this};ge.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<r;n+=4)io(this,n,n+3),io(this,n+1,n+2);return this};ge.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<r;n+=8)io(this,n,n+7),io(this,n+1,n+6),io(this,n+2,n+5),io(this,n+3,n+4);return this};ge.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?s0(this,0,r):EA.apply(this,arguments)};ge.prototype.toLocaleString=ge.prototype.toString;ge.prototype.equals=function(r){if(!ge.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:ge.compare(this,r)===0};ge.prototype.inspect=function(){let r="",n=ol.INSPECT_MAX_BYTES;return r=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(r+=" ... "),"<Buffer "+r+">"};e0&&(ge.prototype[e0]=ge.prototype.inspect);ge.prototype.compare=function(r,n,a,u,c){if(Zi(r,Uint8Array)&&(r=ge.from(r,r.offset,r.byteLength)),!ge.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(n===void 0&&(n=0),a===void 0&&(a=r?r.length:0),u===void 0&&(u=0),c===void 0&&(c=this.length),n<0||a>r.length||u<0||c>this.length)throw new RangeError("out of range index");if(u>=c&&n>=a)return 0;if(u>=c)return-1;if(n>=a)return 1;if(n>>>=0,a>>>=0,u>>>=0,c>>>=0,this===r)return 0;let h=c-u,b=a-n,x=Math.min(h,b),_=this.slice(u,c),I=r.slice(n,a);for(let F=0;F<x;++F)if(_[F]!==I[F]){h=_[F],b=I[F];break}return h<b?-1:b<h?1:0};function l0(e,r,n,a,u){if(e.length===0)return-1;if(typeof n=="string"?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,hc(n)&&(n=u?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(u)return-1;n=e.length-1}else if(n<0)if(u)n=0;else return-1;if(typeof r=="string"&&(r=ge.from(r,a)),ge.isBuffer(r))return r.length===0?-1:t0(e,r,n,a,u);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):t0(e,[r],n,a,u);throw new TypeError("val must be string, number or Buffer")}function t0(e,r,n,a,u){let c=1,h=e.length,b=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;c=2,h/=2,b/=2,n/=2}function x(I,F){return c===1?I[F]:I.readUInt16BE(F*c)}let _;if(u){let I=-1;for(_=n;_<h;_++)if(x(e,_)===x(r,I===-1?0:_-I)){if(I===-1&&(I=_),_-I+1===b)return I*c}else I!==-1&&(_-=_-I),I=-1}else for(n+b>h&&(n=h-b),_=n;_>=0;_--){let I=!0;for(let F=0;F<b;F++)if(x(e,_+F)!==x(r,F)){I=!1;break}if(I)return _}return-1}ge.prototype.includes=function(r,n,a){return this.indexOf(r,n,a)!==-1};ge.prototype.indexOf=function(r,n,a){return l0(this,r,n,a,!0)};ge.prototype.lastIndexOf=function(r,n,a){return l0(this,r,n,a,!1)};function AA(e,r,n,a){n=Number(n)||0;let u=e.length-n;a?(a=Number(a),a>u&&(a=u)):a=u;let c=r.length;a>c/2&&(a=c/2);let h;for(h=0;h<a;++h){let b=parseInt(r.substr(h*2,2),16);if(hc(b))return h;e[n+h]=b}return h}function _A(e,r,n,a){return rf(uc(r,e.length-n),e,n,a)}function NA(e,r,n,a){return rf(VA(r),e,n,a)}function FA(e,r,n,a){return rf(g0(r),e,n,a)}function LA(e,r,n,a){return rf(QA(r,e.length-n),e,n,a)}ge.prototype.write=function(r,n,a,u){if(n===void 0)u="utf8",a=this.length,n=0;else if(a===void 0&&typeof n=="string")u=n,a=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(a)?(a=a>>>0,u===void 0&&(u="utf8")):(u=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let c=this.length-n;if((a===void 0||a>c)&&(a=c),r.length>0&&(a<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");let h=!1;for(;;)switch(u){case"hex":return AA(this,r,n,a);case"utf8":case"utf-8":return _A(this,r,n,a);case"ascii":case"latin1":case"binary":return NA(this,r,n,a);case"base64":return FA(this,r,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return LA(this,r,n,a);default:if(h)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),h=!0}};ge.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function BA(e,r,n){return r===0&&n===e.length?oc.fromByteArray(e):oc.fromByteArray(e.slice(r,n))}function s0(e,r,n){n=Math.min(e.length,n);let a=[],u=r;for(;u<n;){let c=e[u],h=null,b=c>239?4:c>223?3:c>191?2:1;if(u+b<=n){let x,_,I,F;switch(b){case 1:c<128&&(h=c);break;case 2:x=e[u+1],(x&192)===128&&(F=(c&31)<<6|x&63,F>127&&(h=F));break;case 3:x=e[u+1],_=e[u+2],(x&192)===128&&(_&192)===128&&(F=(c&15)<<12|(x&63)<<6|_&63,F>2047&&(F<55296||F>57343)&&(h=F));break;case 4:x=e[u+1],_=e[u+2],I=e[u+3],(x&192)===128&&(_&192)===128&&(I&192)===128&&(F=(c&15)<<18|(x&63)<<12|(_&63)<<6|I&63,F>65535&&F<1114112&&(h=F))}}h===null?(h=65533,b=1):h>65535&&(h-=65536,a.push(h>>>10&1023|55296),h=56320|h&1023),a.push(h),u+=b}return UA(a)}var r0=4096;function UA(e){let r=e.length;if(r<=r0)return String.fromCharCode.apply(String,e);let n="",a=0;for(;a<r;)n+=String.fromCharCode.apply(String,e.slice(a,a+=r0));return n}function kA(e,r,n){let a="";n=Math.min(e.length,n);for(let u=r;u<n;++u)a+=String.fromCharCode(e[u]&127);return a}function GA(e,r,n){let a="";n=Math.min(e.length,n);for(let u=r;u<n;++u)a+=String.fromCharCode(e[u]);return a}function DA(e,r,n){let a=e.length;(!r||r<0)&&(r=0),(!n||n<0||n>a)&&(n=a);let u="";for(let c=r;c<n;++c)u+=HA[e[c]];return u}function WA(e,r,n){let a=e.slice(r,n),u="";for(let c=0;c<a.length-1;c+=2)u+=String.fromCharCode(a[c]+a[c+1]*256);return u}ge.prototype.slice=function(r,n){let a=this.length;r=~~r,n=n===void 0?a:~~n,r<0?(r+=a,r<0&&(r=0)):r>a&&(r=a),n<0?(n+=a,n<0&&(n=0)):n>a&&(n=a),n<r&&(n=r);let u=this.subarray(r,n);return Object.setPrototypeOf(u,ge.prototype),u};function Hr(e,r,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>n)throw new RangeError("Trying to access beyond buffer length")}ge.prototype.readUintLE=ge.prototype.readUIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||Hr(r,n,this.length);let u=this[r],c=1,h=0;for(;++h<n&&(c*=256);)u+=this[r+h]*c;return u};ge.prototype.readUintBE=ge.prototype.readUIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||Hr(r,n,this.length);let u=this[r+--n],c=1;for(;n>0&&(c*=256);)u+=this[r+--n]*c;return u};ge.prototype.readUint8=ge.prototype.readUInt8=function(r,n){return r=r>>>0,n||Hr(r,1,this.length),this[r]};ge.prototype.readUint16LE=ge.prototype.readUInt16LE=function(r,n){return r=r>>>0,n||Hr(r,2,this.length),this[r]|this[r+1]<<8};ge.prototype.readUint16BE=ge.prototype.readUInt16BE=function(r,n){return r=r>>>0,n||Hr(r,2,this.length),this[r]<<8|this[r+1]};ge.prototype.readUint32LE=ge.prototype.readUInt32LE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};ge.prototype.readUint32BE=ge.prototype.readUInt32BE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};ge.prototype.readBigUInt64LE=_a(function(r){r=r>>>0,al(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&vs(r,this.length-8);let u=n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,c=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(u)+(BigInt(c)<<BigInt(32))});ge.prototype.readBigUInt64BE=_a(function(r){r=r>>>0,al(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&vs(r,this.length-8);let u=n*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],c=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(u)<<BigInt(32))+BigInt(c)});ge.prototype.readIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||Hr(r,n,this.length);let u=this[r],c=1,h=0;for(;++h<n&&(c*=256);)u+=this[r+h]*c;return c*=128,u>=c&&(u-=Math.pow(2,8*n)),u};ge.prototype.readIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||Hr(r,n,this.length);let u=n,c=1,h=this[r+--u];for(;u>0&&(c*=256);)h+=this[r+--u]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*n)),h};ge.prototype.readInt8=function(r,n){return r=r>>>0,n||Hr(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};ge.prototype.readInt16LE=function(r,n){r=r>>>0,n||Hr(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};ge.prototype.readInt16BE=function(r,n){r=r>>>0,n||Hr(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};ge.prototype.readInt32LE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};ge.prototype.readInt32BE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};ge.prototype.readBigInt64LE=_a(function(r){r=r>>>0,al(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&vs(r,this.length-8);let u=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(u)<<BigInt(32))+BigInt(n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});ge.prototype.readBigInt64BE=_a(function(r){r=r>>>0,al(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&vs(r,this.length-8);let u=(n<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(u)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a)});ge.prototype.readFloatLE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),il.read(this,r,!0,23,4)};ge.prototype.readFloatBE=function(r,n){return r=r>>>0,n||Hr(r,4,this.length),il.read(this,r,!1,23,4)};ge.prototype.readDoubleLE=function(r,n){return r=r>>>0,n||Hr(r,8,this.length),il.read(this,r,!0,52,8)};ge.prototype.readDoubleBE=function(r,n){return r=r>>>0,n||Hr(r,8,this.length),il.read(this,r,!1,52,8)};function Ln(e,r,n,a,u,c){if(!ge.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>u||r<c)throw new RangeError('"value" argument is out of bounds');if(n+a>e.length)throw new RangeError("Index out of range")}ge.prototype.writeUintLE=ge.prototype.writeUIntLE=function(r,n,a,u){if(r=+r,n=n>>>0,a=a>>>0,!u){let b=Math.pow(2,8*a)-1;Ln(this,r,n,a,b,0)}let c=1,h=0;for(this[n]=r&255;++h<a&&(c*=256);)this[n+h]=r/c&255;return n+a};ge.prototype.writeUintBE=ge.prototype.writeUIntBE=function(r,n,a,u){if(r=+r,n=n>>>0,a=a>>>0,!u){let b=Math.pow(2,8*a)-1;Ln(this,r,n,a,b,0)}let c=a-1,h=1;for(this[n+c]=r&255;--c>=0&&(h*=256);)this[n+c]=r/h&255;return n+a};ge.prototype.writeUint8=ge.prototype.writeUInt8=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,1,255,0),this[n]=r&255,n+1};ge.prototype.writeUint16LE=ge.prototype.writeUInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,2,65535,0),this[n]=r&255,this[n+1]=r>>>8,n+2};ge.prototype.writeUint16BE=ge.prototype.writeUInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,2,65535,0),this[n]=r>>>8,this[n+1]=r&255,n+2};ge.prototype.writeUint32LE=ge.prototype.writeUInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,4,4294967295,0),this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255,n+4};ge.prototype.writeUint32BE=ge.prototype.writeUInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,4,4294967295,0),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4};function u0(e,r,n,a,u){p0(r,a,u,e,n,7);let c=Number(r&BigInt(4294967295));e[n++]=c,c=c>>8,e[n++]=c,c=c>>8,e[n++]=c,c=c>>8,e[n++]=c;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[n++]=h,h=h>>8,e[n++]=h,h=h>>8,e[n++]=h,h=h>>8,e[n++]=h,n}function f0(e,r,n,a,u){p0(r,a,u,e,n,7);let c=Number(r&BigInt(4294967295));e[n+7]=c,c=c>>8,e[n+6]=c,c=c>>8,e[n+5]=c,c=c>>8,e[n+4]=c;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[n+3]=h,h=h>>8,e[n+2]=h,h=h>>8,e[n+1]=h,h=h>>8,e[n]=h,n+8}ge.prototype.writeBigUInt64LE=_a(function(r,n=0){return u0(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))});ge.prototype.writeBigUInt64BE=_a(function(r,n=0){return f0(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))});ge.prototype.writeIntLE=function(r,n,a,u){if(r=+r,n=n>>>0,!u){let x=Math.pow(2,8*a-1);Ln(this,r,n,a,x-1,-x)}let c=0,h=1,b=0;for(this[n]=r&255;++c<a&&(h*=256);)r<0&&b===0&&this[n+c-1]!==0&&(b=1),this[n+c]=(r/h>>0)-b&255;return n+a};ge.prototype.writeIntBE=function(r,n,a,u){if(r=+r,n=n>>>0,!u){let x=Math.pow(2,8*a-1);Ln(this,r,n,a,x-1,-x)}let c=a-1,h=1,b=0;for(this[n+c]=r&255;--c>=0&&(h*=256);)r<0&&b===0&&this[n+c+1]!==0&&(b=1),this[n+c]=(r/h>>0)-b&255;return n+a};ge.prototype.writeInt8=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,1,127,-128),r<0&&(r=255+r+1),this[n]=r&255,n+1};ge.prototype.writeInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,2,32767,-32768),this[n]=r&255,this[n+1]=r>>>8,n+2};ge.prototype.writeInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,2,32767,-32768),this[n]=r>>>8,this[n+1]=r&255,n+2};ge.prototype.writeInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,4,2147483647,-2147483648),this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24,n+4};ge.prototype.writeInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||Ln(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4};ge.prototype.writeBigInt64LE=_a(function(r,n=0){return u0(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ge.prototype.writeBigInt64BE=_a(function(r,n=0){return f0(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function d0(e,r,n,a,u,c){if(n+a>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function c0(e,r,n,a,u){return r=+r,n=n>>>0,u||d0(e,r,n,4,34028234663852886e22,-34028234663852886e22),il.write(e,r,n,a,23,4),n+4}ge.prototype.writeFloatLE=function(r,n,a){return c0(this,r,n,!0,a)};ge.prototype.writeFloatBE=function(r,n,a){return c0(this,r,n,!1,a)};function h0(e,r,n,a,u){return r=+r,n=n>>>0,u||d0(e,r,n,8,17976931348623157e292,-17976931348623157e292),il.write(e,r,n,a,52,8),n+8}ge.prototype.writeDoubleLE=function(r,n,a){return h0(this,r,n,!0,a)};ge.prototype.writeDoubleBE=function(r,n,a){return h0(this,r,n,!1,a)};ge.prototype.copy=function(r,n,a,u){if(!ge.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!u&&u!==0&&(u=this.length),n>=r.length&&(n=r.length),n||(n=0),u>0&&u<a&&(u=a),u===a||r.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),r.length-n<u-a&&(u=r.length-n+a);let c=u-a;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,a,u):Uint8Array.prototype.set.call(r,this.subarray(a,u),n),c};ge.prototype.fill=function(r,n,a,u){if(typeof r=="string"){if(typeof n=="string"?(u=n,n=0,a=this.length):typeof a=="string"&&(u=a,a=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!ge.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(r.length===1){let h=r.charCodeAt(0);(u==="utf8"&&h<128||u==="latin1")&&(r=h)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(n<0||this.length<n||this.length<a)throw new RangeError("Out of range index");if(a<=n)return this;n=n>>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let c;if(typeof r=="number")for(c=n;c<a;++c)this[c]=r;else{let h=ge.isBuffer(r)?r:ge.from(r,u),b=h.length;if(b===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(c=0;c<a-n;++c)this[c+n]=h[c%b]}return this};var nl={};function cc(e,r,n){nl[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(u){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:u,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}cc("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);cc("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);cc("ERR_OUT_OF_RANGE",function(e,r,n){let a=`The value of "${e}" is out of range.`,u=n;return Number.isInteger(n)&&Math.abs(n)>2**32?u=n0(String(n)):typeof n=="bigint"&&(u=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(u=n0(u)),u+="n"),a+=` It must be ${r}. Received ${u}`,a},RangeError);function n0(e){let r="",n=e.length,a=e[0]==="-"?1:0;for(;n>=a+4;n-=3)r=`_${e.slice(n-3,n)}${r}`;return`${e.slice(0,n)}${r}`}function OA(e,r,n){al(r,"offset"),(e[r]===void 0||e[r+n]===void 0)&&vs(r,e.length-(n+1))}function p0(e,r,n,a,u,c){if(e>n||e<r){let h=typeof r=="bigint"?"n":"",b;throw c>3?r===0||r===BigInt(0)?b=`>= 0${h} and < 2${h} ** ${(c+1)*8}${h}`:b=`>= -(2${h} ** ${(c+1)*8-1}${h}) and < 2 ** ${(c+1)*8-1}${h}`:b=`>= ${r}${h} and <= ${n}${h}`,new nl.ERR_OUT_OF_RANGE("value",b,e)}OA(a,u,c)}function al(e,r){if(typeof e!="number")throw new nl.ERR_INVALID_ARG_TYPE(r,"number",e)}function vs(e,r,n){throw Math.floor(e)!==e?(al(e,n),new nl.ERR_OUT_OF_RANGE(n||"offset","an integer",e)):r<0?new nl.ERR_BUFFER_OUT_OF_BOUNDS:new nl.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${r}`,e)}var ZA=/[^+/0-9A-Za-z-_]/g;function MA(e){if(e=e.split("=")[0],e=e.trim().replace(ZA,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function uc(e,r){r=r||1/0;let n,a=e.length,u=null,c=[];for(let h=0;h<a;++h){if(n=e.charCodeAt(h),n>55295&&n<57344){if(!u){if(n>56319){(r-=3)>-1&&c.push(239,191,189);continue}else if(h+1===a){(r-=3)>-1&&c.push(239,191,189);continue}u=n;continue}if(n<56320){(r-=3)>-1&&c.push(239,191,189),u=n;continue}n=(u-55296<<10|n-56320)+65536}else u&&(r-=3)>-1&&c.push(239,191,189);if(u=null,n<128){if((r-=1)<0)break;c.push(n)}else if(n<2048){if((r-=2)<0)break;c.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;c.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;c.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return c}function VA(e){let r=[];for(let n=0;n<e.length;++n)r.push(e.charCodeAt(n)&255);return r}function QA(e,r){let n,a,u,c=[];for(let h=0;h<e.length&&!((r-=2)<0);++h)n=e.charCodeAt(h),a=n>>8,u=n%256,c.push(u),c.push(a);return c}function g0(e){return oc.toByteArray(MA(e))}function rf(e,r,n,a){let u;for(u=0;u<a&&!(u+n>=r.length||u>=e.length);++u)r[u+n]=e[u];return u}function Zi(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function hc(e){return e!==e}var HA=function(){let e="0123456789abcdef",r=new Array(256);for(let n=0;n<16;++n){let a=n*16;for(let u=0;u<16;++u)r[a+u]=e[n]+e[u]}return r}();function _a(e){return typeof BigInt>"u"?XA:e}function XA(){throw new Error("BigInt not supported")}});var A0=Wt((Tc,Cc)=>{((e,r)=>{typeof define=="function"&&define.amd?define([],r):typeof Cc=="object"&&typeof Tc<"u"?Cc.exports=r():e.Papa=r()})(Tc,function e(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},n,a=!r.document&&!!r.postMessage,u=r.IS_PAPA_WORKER||!1,c={},h=0,b={};function x(m){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(Z){var z=V(Z);z.chunkSize=parseInt(z.chunkSize),Z.step||Z.chunk||(z.chunkSize=null),this._handle=new W(z),(this._handle.streamer=this)._config=z}.call(this,m),this.parseChunk=function(Z,z){var se=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<se){let q=this._config.newline;q||(Te=this._config.quoteChar||'"',q=this._handle.guessLineEndings(Z,Te)),Z=[...Z.split(q).slice(se)].join(q)}this.isFirstChunk&&ee(this._config.beforeFirstChunk)&&(Te=this._config.beforeFirstChunk(Z))!==void 0&&(Z=Te),this.isFirstChunk=!1,this._halted=!1;var se=this._partialLine+Z,Te=(this._partialLine="",this._handle.parse(se,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(Z=Te.meta.cursor,se=(this._finished||(this._partialLine=se.substring(Z-this._baseIndex),this._baseIndex=Z),Te&&Te.data&&(this._rowCount+=Te.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),u)r.postMessage({results:Te,workerId:b.WORKER_ID,finished:se});else if(ee(this._config.chunk)&&!z){if(this._config.chunk(Te,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=Te=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Te.data),this._completeResults.errors=this._completeResults.errors.concat(Te.errors),this._completeResults.meta=Te.meta),this._completed||!se||!ee(this._config.complete)||Te&&Te.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),se||Te&&Te.meta.paused||this._nextChunk(),Te}this._halted=!0},this._sendError=function(Z){ee(this._config.error)?this._config.error(Z):u&&this._config.error&&r.postMessage({workerId:b.WORKER_ID,error:Z,finished:!1})}}function _(m){var Z;(m=m||{}).chunkSize||(m.chunkSize=b.RemoteChunkSize),x.call(this,m),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(z){this._input=z,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Z=new XMLHttpRequest,this._config.withCredentials&&(Z.withCredentials=this._config.withCredentials),a||(Z.onload=D(this._chunkLoaded,this),Z.onerror=D(this._chunkError,this)),Z.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var z,se=this._config.downloadRequestHeaders;for(z in se)Z.setRequestHeader(z,se[z])}var Te;this._config.chunkSize&&(Te=this._start+this._config.chunkSize-1,Z.setRequestHeader("Range","bytes="+this._start+"-"+Te));try{Z.send(this._config.downloadRequestBody)}catch(q){this._chunkError(q.message)}a&&Z.status===0&&this._chunkError()}},this._chunkLoaded=function(){Z.readyState===4&&(Z.status<200||400<=Z.status?this._chunkError():(this._start+=this._config.chunkSize||Z.responseText.length,this._finished=!this._config.chunkSize||this._start>=(z=>(z=z.getResponseHeader("Content-Range"))!==null?parseInt(z.substring(z.lastIndexOf("/")+1)):-1)(Z),this.parseChunk(Z.responseText)))},this._chunkError=function(z){z=Z.statusText||z,this._sendError(new Error(z))}}function I(m){(m=m||{}).chunkSize||(m.chunkSize=b.LocalChunkSize),x.call(this,m);var Z,z,se=typeof FileReader<"u";this.stream=function(Te){this._input=Te,z=Te.slice||Te.webkitSlice||Te.mozSlice,se?((Z=new FileReader).onload=D(this._chunkLoaded,this),Z.onerror=D(this._chunkError,this)):Z=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var Te=this._input,q=(this._config.chunkSize&&(q=Math.min(this._start+this._config.chunkSize,this._input.size),Te=z.call(Te,this._start,q)),Z.readAsText(Te,this._config.encoding));se||this._chunkLoaded({target:{result:q}})},this._chunkLoaded=function(Te){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(Te.target.result)},this._chunkError=function(){this._sendError(Z.error)}}function F(m){var Z;x.call(this,m=m||{}),this.stream=function(z){return Z=z,this._nextChunk()},this._nextChunk=function(){var z,se;if(!this._finished)return z=this._config.chunkSize,Z=z?(se=Z.substring(0,z),Z.substring(z)):(se=Z,""),this._finished=!Z,this.parseChunk(se)}}function G(m){x.call(this,m=m||{});var Z=[],z=!0,se=!1;this.pause=function(){x.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){x.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Te){this._input=Te,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){se&&Z.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Z.length?this.parseChunk(Z.shift()):z=!0},this._streamData=D(function(Te){try{Z.push(typeof Te=="string"?Te:Te.toString(this._config.encoding)),z&&(z=!1,this._checkIsFinished(),this.parseChunk(Z.shift()))}catch(q){this._streamError(q)}},this),this._streamError=D(function(Te){this._streamCleanUp(),this._sendError(Te)},this),this._streamEnd=D(function(){this._streamCleanUp(),se=!0,this._streamData("")},this),this._streamCleanUp=D(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function W(m){var Z,z,se,Te,q=Math.pow(2,53),he=-q,L=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,xe=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ae=this,Ie=0,Fe=0,nt=!1,Ke=!1,lt=[],Ne={data:[],errors:[],meta:{}};function Rt(Ge){return m.skipEmptyLines==="greedy"?Ge.join("").trim()==="":Ge.length===1&&Ge[0].length===0}function Pe(){if(Ne&&se&&(Le("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),se=!1),m.skipEmptyLines&&(Ne.data=Ne.data.filter(function(ct){return!Rt(ct)})),Qe()){let ct=function(Et,pt){ee(m.transformHeader)&&(Et=m.transformHeader(Et,pt)),lt.push(Et)};var _e=ct;if(Ne)if(Array.isArray(Ne.data[0])){for(var Ge=0;Qe()&&Ge<Ne.data.length;Ge++)Ne.data[Ge].forEach(ct);Ne.data.splice(0,1)}else Ne.data.forEach(ct)}function He(ct,Et){for(var pt=m.header?{}:[],st=0;st<ct.length;st++){var $e=st,Ct=ct[st],Ct=((ut,mt)=>(Ye=>(m.dynamicTypingFunction&&m.dynamicTyping[Ye]===void 0&&(m.dynamicTyping[Ye]=m.dynamicTypingFunction(Ye)),(m.dynamicTyping[Ye]||m.dynamicTyping)===!0))(ut)?mt==="true"||mt==="TRUE"||mt!=="false"&&mt!=="FALSE"&&((Ye=>{if(L.test(Ye)&&(Ye=parseFloat(Ye),he<Ye&&Ye<q))return 1})(mt)?parseFloat(mt):xe.test(mt)?new Date(mt):mt===""?null:mt):mt)($e=m.header?st>=lt.length?"__parsed_extra":lt[st]:$e,Ct=m.transform?m.transform(Ct,$e):Ct);$e==="__parsed_extra"?(pt[$e]=pt[$e]||[],pt[$e].push(Ct)):pt[$e]=Ct}return m.header&&(st>lt.length?Le("FieldMismatch","TooManyFields","Too many fields: expected "+lt.length+" fields but parsed "+st,Fe+Et):st<lt.length&&Le("FieldMismatch","TooFewFields","Too few fields: expected "+lt.length+" fields but parsed "+st,Fe+Et)),pt}var bt;Ne&&(m.header||m.dynamicTyping||m.transform)&&(bt=1,!Ne.data.length||Array.isArray(Ne.data[0])?(Ne.data=Ne.data.map(He),bt=Ne.data.length):Ne.data=He(Ne.data,0),m.header&&Ne.meta&&(Ne.meta.fields=lt),Fe+=bt)}function Qe(){return m.header&&lt.length===0}function Le(Ge,He,bt,_e){Ge={type:Ge,code:He,message:bt},_e!==void 0&&(Ge.row=_e),Ne.errors.push(Ge)}ee(m.step)&&(Te=m.step,m.step=function(Ge){Ne=Ge,Qe()?Pe():(Pe(),Ne.data.length!==0&&(Ie+=Ge.data.length,m.preview&&Ie>m.preview?z.abort():(Ne.data=Ne.data[0],Te(Ne,ae))))}),this.parse=function(Ge,He,bt){var _e=m.quoteChar||'"',_e=(m.newline||(m.newline=this.guessLineEndings(Ge,_e)),se=!1,m.delimiter?ee(m.delimiter)&&(m.delimiter=m.delimiter(Ge),Ne.meta.delimiter=m.delimiter):((_e=((ct,Et,pt,st,$e)=>{var Ct,ut,mt,Ye;$e=$e||[","," ","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var vr=0;vr<$e.length;vr++){for(var yr,tr=$e[vr],Ot=0,cr=0,Be=0,gt=(mt=void 0,new X({comments:st,delimiter:tr,newline:Et,preview:10}).parse(ct)),lr=0;lr<gt.data.length;lr++)pt&&Rt(gt.data[lr])?Be++:(yr=gt.data[lr].length,cr+=yr,mt===void 0?mt=yr:0<yr&&(Ot+=Math.abs(yr-mt),mt=yr));0<gt.data.length&&(cr/=gt.data.length-Be),(ut===void 0||Ot<=ut)&&(Ye===void 0||Ye<cr)&&1.99<cr&&(ut=Ot,Ct=tr,Ye=cr)}return{successful:!!(m.delimiter=Ct),bestDelimiter:Ct}})(Ge,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess)).successful?m.delimiter=_e.bestDelimiter:(se=!0,m.delimiter=b.DefaultDelimiter),Ne.meta.delimiter=m.delimiter),V(m));return m.preview&&m.header&&_e.preview++,Z=Ge,z=new X(_e),Ne=z.parse(Z,He,bt),Pe(),nt?{meta:{paused:!0}}:Ne||{meta:{paused:!1}}},this.paused=function(){return nt},this.pause=function(){nt=!0,z.abort(),Z=ee(m.chunk)?"":Z.substring(z.getCharIndex())},this.resume=function(){ae.streamer._halted?(nt=!1,ae.streamer.parseChunk(Z,!0)):setTimeout(ae.resume,3)},this.aborted=function(){return Ke},this.abort=function(){Ke=!0,z.abort(),Ne.meta.aborted=!0,ee(m.complete)&&m.complete(Ne),Z=""},this.guessLineEndings=function(ct,_e){ct=ct.substring(0,1048576);var _e=new RegExp(U(_e)+"([^]*?)"+U(_e),"gm"),bt=(ct=ct.replace(_e,"")).split("\r"),_e=ct.split(`
8
- `),ct=1<_e.length&&_e[0].length<bt[0].length;if(bt.length===1||ct)return`
9
- `;for(var Et=0,pt=0;pt<bt.length;pt++)bt[pt][0]===`
10
- `&&Et++;return Et>=bt.length/2?`\r
11
- `:"\r"}}function U(m){return m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function X(m){var Z=(m=m||{}).delimiter,z=m.newline,se=m.comments,Te=m.step,q=m.preview,he=m.fastMode,L=null,xe=!1,ae=m.quoteChar==null?'"':m.quoteChar,Ie=ae;if(m.escapeChar!==void 0&&(Ie=m.escapeChar),(typeof Z!="string"||-1<b.BAD_DELIMITERS.indexOf(Z))&&(Z=","),se===Z)throw new Error("Comment character same as delimiter");se===!0?se="#":(typeof se!="string"||-1<b.BAD_DELIMITERS.indexOf(se))&&(se=!1),z!==`
12
- `&&z!=="\r"&&z!==`\r
13
- `&&(z=`
14
- `);var Fe=0,nt=!1;this.parse=function(Ke,lt,Ne){if(typeof Ke!="string")throw new Error("Input must be a string");var Rt=Ke.length,Pe=Z.length,Qe=z.length,Le=se.length,Ge=ee(Te),He=[],bt=[],_e=[],ct=Fe=0;if(!Ke)return Ot();if(he||he!==!1&&Ke.indexOf(ae)===-1){for(var Et=Ke.split(z),pt=0;pt<Et.length;pt++){if(_e=Et[pt],Fe+=_e.length,pt!==Et.length-1)Fe+=z.length;else if(Ne)return Ot();if(!se||_e.substring(0,Le)!==se){if(Ge){if(He=[],Ye(_e.split(Z)),cr(),nt)return Ot()}else Ye(_e.split(Z));if(q&&q<=pt)return He=He.slice(0,q),Ot(!0)}}return Ot()}for(var st=Ke.indexOf(Z,Fe),$e=Ke.indexOf(z,Fe),Ct=new RegExp(U(Ie)+U(ae),"g"),ut=Ke.indexOf(ae,Fe);;)if(Ke[Fe]===ae)for(ut=Fe,Fe++;;){if((ut=Ke.indexOf(ae,ut+1))===-1)return Ne||bt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:He.length,index:Fe}),yr();if(ut===Rt-1)return yr(Ke.substring(Fe,ut).replace(Ct,ae));if(ae===Ie&&Ke[ut+1]===Ie)ut++;else if(ae===Ie||ut===0||Ke[ut-1]!==Ie){st!==-1&&st<ut+1&&(st=Ke.indexOf(Z,ut+1));var mt=vr(($e=$e!==-1&&$e<ut+1?Ke.indexOf(z,ut+1):$e)===-1?st:Math.min(st,$e));if(Ke.substr(ut+1+mt,Pe)===Z){_e.push(Ke.substring(Fe,ut).replace(Ct,ae)),Ke[Fe=ut+1+mt+Pe]!==ae&&(ut=Ke.indexOf(ae,Fe)),st=Ke.indexOf(Z,Fe),$e=Ke.indexOf(z,Fe);break}if(mt=vr($e),Ke.substring(ut+1+mt,ut+1+mt+Qe)===z){if(_e.push(Ke.substring(Fe,ut).replace(Ct,ae)),tr(ut+1+mt+Qe),st=Ke.indexOf(Z,Fe),ut=Ke.indexOf(ae,Fe),Ge&&(cr(),nt))return Ot();if(q&&He.length>=q)return Ot(!0);break}bt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:He.length,index:Fe}),ut++}}else if(se&&_e.length===0&&Ke.substring(Fe,Fe+Le)===se){if($e===-1)return Ot();Fe=$e+Qe,$e=Ke.indexOf(z,Fe),st=Ke.indexOf(Z,Fe)}else if(st!==-1&&(st<$e||$e===-1))_e.push(Ke.substring(Fe,st)),Fe=st+Pe,st=Ke.indexOf(Z,Fe);else{if($e===-1)break;if(_e.push(Ke.substring(Fe,$e)),tr($e+Qe),Ge&&(cr(),nt))return Ot();if(q&&He.length>=q)return Ot(!0)}return yr();function Ye(Be){He.push(Be),ct=Fe}function vr(Be){var gt=0;return gt=Be!==-1&&(Be=Ke.substring(ut+1,Be))&&Be.trim()===""?Be.length:gt}function yr(Be){return Ne||(Be===void 0&&(Be=Ke.substring(Fe)),_e.push(Be),Fe=Rt,Ye(_e),Ge&&cr()),Ot()}function tr(Be){Fe=Be,Ye(_e),_e=[],$e=Ke.indexOf(z,Fe)}function Ot(Be){if(m.header&&!lt&&He.length&&!xe){var gt=He[0],lr=Object.create(null),hr=new Set(gt);let Mt=!1;for(let xr=0;xr<gt.length;xr++){let jt=gt[xr];if(lr[jt=ee(m.transformHeader)?m.transformHeader(jt,xr):jt]){let rr,sr=lr[jt];for(;rr=jt+"_"+sr,sr++,hr.has(rr););hr.add(rr),gt[xr]=rr,lr[jt]++,Mt=!0,(L=L===null?{}:L)[rr]=jt}else lr[jt]=1,gt[xr]=jt;hr.add(jt)}Mt&&console.warn("Duplicate headers found and renamed."),xe=!0}return{data:He,errors:bt,meta:{delimiter:Z,linebreak:z,aborted:nt,truncated:!!Be,cursor:ct+(lt||0),renamedHeaders:L}}}function cr(){Te(Ot()),He=[],bt=[]}},this.abort=function(){nt=!0},this.getCharIndex=function(){return Fe}}function A(m){var Z=m.data,z=c[Z.workerId],se=!1;if(Z.error)z.userError(Z.error,Z.file);else if(Z.results&&Z.results.data){var Te={abort:function(){se=!0,k(Z.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:K,resume:K};if(ee(z.userStep)){for(var q=0;q<Z.results.data.length&&(z.userStep({data:Z.results.data[q],errors:Z.results.errors,meta:Z.results.meta},Te),!se);q++);delete Z.results}else ee(z.userChunk)&&(z.userChunk(Z.results,Te,Z.file),delete Z.results)}Z.finished&&!se&&k(Z.workerId,Z.results)}function k(m,Z){var z=c[m];ee(z.userComplete)&&z.userComplete(Z),z.terminate(),delete c[m]}function K(){throw new Error("Not implemented.")}function V(m){if(typeof m!="object"||m===null)return m;var Z,z=Array.isArray(m)?[]:{};for(Z in m)z[Z]=V(m[Z]);return z}function D(m,Z){return function(){m.apply(Z,arguments)}}function ee(m){return typeof m=="function"}return b.parse=function(m,Z){var z=(Z=Z||{}).dynamicTyping||!1;if(ee(z)&&(Z.dynamicTypingFunction=z,z={}),Z.dynamicTyping=z,Z.transform=!!ee(Z.transform)&&Z.transform,!Z.worker||!b.WORKERS_SUPPORTED)return z=null,b.NODE_STREAM_INPUT,typeof m=="string"?(m=(se=>se.charCodeAt(0)!==65279?se:se.slice(1))(m),z=new(Z.download?_:F)(Z)):m.readable===!0&&ee(m.read)&&ee(m.on)?z=new G(Z):(r.File&&m instanceof File||m instanceof Object)&&(z=new I(Z)),z.stream(m);(z=(()=>{var se;return!!b.WORKERS_SUPPORTED&&(se=(()=>{var Te=r.URL||r.webkitURL||null,q=e.toString();return b.BLOB_URL||(b.BLOB_URL=Te.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",q,")();"],{type:"text/javascript"})))})(),(se=new r.Worker(se)).onmessage=A,se.id=h++,c[se.id]=se)})()).userStep=Z.step,z.userChunk=Z.chunk,z.userComplete=Z.complete,z.userError=Z.error,Z.step=ee(Z.step),Z.chunk=ee(Z.chunk),Z.complete=ee(Z.complete),Z.error=ee(Z.error),delete Z.worker,z.postMessage({input:m,config:Z,workerId:z.id})},b.unparse=function(m,Z){var z=!1,se=!0,Te=",",q=`\r
15
- `,he='"',L=he+he,xe=!1,ae=null,Ie=!1,Fe=((()=>{if(typeof Z=="object"){if(typeof Z.delimiter!="string"||b.BAD_DELIMITERS.filter(function(lt){return Z.delimiter.indexOf(lt)!==-1}).length||(Te=Z.delimiter),typeof Z.quotes!="boolean"&&typeof Z.quotes!="function"&&!Array.isArray(Z.quotes)||(z=Z.quotes),typeof Z.skipEmptyLines!="boolean"&&typeof Z.skipEmptyLines!="string"||(xe=Z.skipEmptyLines),typeof Z.newline=="string"&&(q=Z.newline),typeof Z.quoteChar=="string"&&(he=Z.quoteChar),typeof Z.header=="boolean"&&(se=Z.header),Array.isArray(Z.columns)){if(Z.columns.length===0)throw new Error("Option columns is empty");ae=Z.columns}Z.escapeChar!==void 0&&(L=Z.escapeChar+he),Z.escapeFormulae instanceof RegExp?Ie=Z.escapeFormulae:typeof Z.escapeFormulae=="boolean"&&Z.escapeFormulae&&(Ie=/^[=+\-@\t\r].*$/)}})(),new RegExp(U(he),"g"));if(typeof m=="string"&&(m=JSON.parse(m)),Array.isArray(m)){if(!m.length||Array.isArray(m[0]))return nt(null,m,xe);if(typeof m[0]=="object")return nt(ae||Object.keys(m[0]),m,xe)}else if(typeof m=="object")return typeof m.data=="string"&&(m.data=JSON.parse(m.data)),Array.isArray(m.data)&&(m.fields||(m.fields=m.meta&&m.meta.fields||ae),m.fields||(m.fields=Array.isArray(m.data[0])?m.fields:typeof m.data[0]=="object"?Object.keys(m.data[0]):[]),Array.isArray(m.data[0])||typeof m.data[0]=="object"||(m.data=[m.data])),nt(m.fields||[],m.data||[],xe);throw new Error("Unable to serialize unrecognized input");function nt(lt,Ne,Rt){var Pe="",Qe=(typeof lt=="string"&&(lt=JSON.parse(lt)),typeof Ne=="string"&&(Ne=JSON.parse(Ne)),Array.isArray(lt)&&0<lt.length),Le=!Array.isArray(Ne[0]);if(Qe&&se){for(var Ge=0;Ge<lt.length;Ge++)0<Ge&&(Pe+=Te),Pe+=Ke(lt[Ge],Ge);0<Ne.length&&(Pe+=q)}for(var He=0;He<Ne.length;He++){var bt=(Qe?lt:Ne[He]).length,_e=!1,ct=Qe?Object.keys(Ne[He]).length===0:Ne[He].length===0;if(Rt&&!Qe&&(_e=Rt==="greedy"?Ne[He].join("").trim()==="":Ne[He].length===1&&Ne[He][0].length===0),Rt==="greedy"&&Qe){for(var Et=[],pt=0;pt<bt;pt++){var st=Le?lt[pt]:pt;Et.push(Ne[He][st])}_e=Et.join("").trim()===""}if(!_e){for(var $e=0;$e<bt;$e++){0<$e&&!ct&&(Pe+=Te);var Ct=Qe&&Le?lt[$e]:$e;Pe+=Ke(Ne[He][Ct],$e)}He<Ne.length-1&&(!Rt||0<bt&&!ct)&&(Pe+=q)}}return Pe}function Ke(lt,Ne){var Rt,Pe;return lt==null?"":lt.constructor===Date?JSON.stringify(lt).slice(1,25):(Pe=!1,Ie&&typeof lt=="string"&&Ie.test(lt)&&(lt="'"+lt,Pe=!0),Rt=lt.toString().replace(Fe,L),(Pe=Pe||z===!0||typeof z=="function"&&z(lt,Ne)||Array.isArray(z)&&z[Ne]||((Qe,Le)=>{for(var Ge=0;Ge<Le.length;Ge++)if(-1<Qe.indexOf(Le[Ge]))return!0;return!1})(Rt,b.BAD_DELIMITERS)||-1<Rt.indexOf(Te)||Rt.charAt(0)===" "||Rt.charAt(Rt.length-1)===" ")?he+Rt+he:Rt)}},b.RECORD_SEP="",b.UNIT_SEP="",b.BYTE_ORDER_MARK="\uFEFF",b.BAD_DELIMITERS=["\r",`
16
- `,'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!a&&!!r.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=X,b.ParserHandle=W,b.NetworkStreamer=_,b.FileStreamer=I,b.StringStreamer=F,b.ReadableStreamStreamer=G,r.jQuery&&((n=r.jQuery).fn.parse=function(m){var Z=m.config||{},z=[];return this.each(function(q){if(!(n(this).prop("tagName").toUpperCase()==="INPUT"&&n(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var he=0;he<this.files.length;he++)z.push({file:this.files[he],inputElem:this,instanceConfig:n.extend({},Z)})}),se(),this;function se(){if(z.length===0)ee(m.complete)&&m.complete();else{var q,he,L,xe,ae=z[0];if(ee(m.before)){var Ie=m.before(ae.file,ae.inputElem);if(typeof Ie=="object"){if(Ie.action==="abort")return q="AbortError",he=ae.file,L=ae.inputElem,xe=Ie.reason,void(ee(m.error)&&m.error({name:q},he,L,xe));if(Ie.action==="skip")return void Te();typeof Ie.config=="object"&&(ae.instanceConfig=n.extend(ae.instanceConfig,Ie.config))}else if(Ie==="skip")return void Te()}var Fe=ae.instanceConfig.complete;ae.instanceConfig.complete=function(nt){ee(Fe)&&Fe(nt,ae.file,ae.inputElem),Te()},b.parse(ae.file,ae.instanceConfig)}}function Te(){z.splice(0,1),se()}}),u&&(r.onmessage=function(m){m=m.data,b.WORKER_ID===void 0&&m&&(b.WORKER_ID=m.workerId),typeof m.input=="string"?r.postMessage({workerId:b.WORKER_ID,results:b.parse(m.input,m.config),finished:!0}):(r.File&&m.input instanceof File||m.input instanceof Object)&&(m=b.parse(m.input,m.config))&&r.postMessage({workerId:b.WORKER_ID,results:m,finished:!0})}),(_.prototype=Object.create(x.prototype)).constructor=_,(I.prototype=Object.create(x.prototype)).constructor=I,(F.prototype=Object.create(F.prototype)).constructor=F,(G.prototype=Object.create(x.prototype)).constructor=G,b})});var X0=Wt(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var W0="fas",O0="download",Z0=512,M0=512,V0=[],Q0="f019",H0="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";oi.definition={prefix:W0,iconName:O0,icon:[Z0,M0,V0,Q0,H0]};oi.faDownload=oi.definition;oi.prefix=W0;oi.iconName=O0;oi.width=Z0;oi.height=M0;oi.ligatures=V0;oi.unicode=Q0;oi.svgPathData=H0});var $0=Wt(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var J0="fas",j0="question-circle",Y0=512,P0=512,z0=[],q0="f059",K0="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";li.definition={prefix:J0,iconName:j0,icon:[Y0,P0,z0,q0,K0]};li.faQuestionCircle=li.definition;li.prefix=J0;li.iconName=j0;li.width=Y0;li.height=P0;li.ligatures=z0;li.unicode=q0;li.svgPathData=K0});var Ec=Wt((iv,vf)=>{(function(e,r){"use strict";typeof vf=="object"&&typeof vf.exports=="object"?vf.exports=e.document?r(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return r(n)}:r(e)})(typeof window<"u"?window:iv,function(e,r){"use strict";var n=[],a=Object.getPrototypeOf,u=n.slice,c=n.flat?function(d){return n.flat.call(d)}:function(d){return n.concat.apply([],d)},h=n.push,b=n.indexOf,x={},_=x.toString,I=x.hasOwnProperty,F=I.toString,G=F.call(Object),W={},U=function(p){return typeof p=="function"&&typeof p.nodeType!="number"&&typeof p.item!="function"},X=function(p){return p!=null&&p===p.window},A=e.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function K(d,p,v){v=v||A;var T,R,S=v.createElement("script");if(S.text=d,p)for(T in k)R=p[T]||p.getAttribute&&p.getAttribute(T),R&&S.setAttribute(T,R);v.head.appendChild(S).parentNode.removeChild(S)}function V(d){return d==null?d+"":typeof d=="object"||typeof d=="function"?x[_.call(d)]||"object":typeof d}var D="3.7.1",ee=/HTML$/i,m=function(d,p){return new m.fn.init(d,p)};m.fn=m.prototype={jquery:D,constructor:m,length:0,toArray:function(){return u.call(this)},get:function(d){return d==null?u.call(this):d<0?this[d+this.length]:this[d]},pushStack:function(d){var p=m.merge(this.constructor(),d);return p.prevObject=this,p},each:function(d){return m.each(this,d)},map:function(d){return this.pushStack(m.map(this,function(p,v){return d.call(p,v,p)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,function(d,p){return(p+1)%2}))},odd:function(){return this.pushStack(m.grep(this,function(d,p){return p%2}))},eq:function(d){var p=this.length,v=+d+(d<0?p:0);return this.pushStack(v>=0&&v<p?[this[v]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:n.sort,splice:n.splice},m.extend=m.fn.extend=function(){var d,p,v,T,R,S,B=arguments[0]||{},P=1,Y=arguments.length,ne=!1;for(typeof B=="boolean"&&(ne=B,B=arguments[P]||{},P++),typeof B!="object"&&!U(B)&&(B={}),P===Y&&(B=this,P--);P<Y;P++)if((d=arguments[P])!=null)for(p in d)T=d[p],!(p==="__proto__"||B===T)&&(ne&&T&&(m.isPlainObject(T)||(R=Array.isArray(T)))?(v=B[p],R&&!Array.isArray(v)?S=[]:!R&&!m.isPlainObject(v)?S={}:S=v,R=!1,B[p]=m.extend(ne,S,T)):T!==void 0&&(B[p]=T));return B},m.extend({expando:"jQuery"+(D+Math.random()).replace(/\D/g,""),isReady:!0,error:function(d){throw new Error(d)},noop:function(){},isPlainObject:function(d){var p,v;return!d||_.call(d)!=="[object Object]"?!1:(p=a(d),p?(v=I.call(p,"constructor")&&p.constructor,typeof v=="function"&&F.call(v)===G):!0)},isEmptyObject:function(d){var p;for(p in d)return!1;return!0},globalEval:function(d,p,v){K(d,{nonce:p&&p.nonce},v)},each:function(d,p){var v,T=0;if(Z(d))for(v=d.length;T<v&&p.call(d[T],T,d[T])!==!1;T++);else for(T in d)if(p.call(d[T],T,d[T])===!1)break;return d},text:function(d){var p,v="",T=0,R=d.nodeType;if(!R)for(;p=d[T++];)v+=m.text(p);return R===1||R===11?d.textContent:R===9?d.documentElement.textContent:R===3||R===4?d.nodeValue:v},makeArray:function(d,p){var v=p||[];return d!=null&&(Z(Object(d))?m.merge(v,typeof d=="string"?[d]:d):h.call(v,d)),v},inArray:function(d,p,v){return p==null?-1:b.call(p,d,v)},isXMLDoc:function(d){var p=d&&d.namespaceURI,v=d&&(d.ownerDocument||d).documentElement;return!ee.test(p||v&&v.nodeName||"HTML")},merge:function(d,p){for(var v=+p.length,T=0,R=d.length;T<v;T++)d[R++]=p[T];return d.length=R,d},grep:function(d,p,v){for(var T,R=[],S=0,B=d.length,P=!v;S<B;S++)T=!p(d[S],S),T!==P&&R.push(d[S]);return R},map:function(d,p,v){var T,R,S=0,B=[];if(Z(d))for(T=d.length;S<T;S++)R=p(d[S],S,v),R!=null&&B.push(R);else for(S in d)R=p(d[S],S,v),R!=null&&B.push(R);return c(B)},guid:1,support:W}),typeof Symbol=="function"&&(m.fn[Symbol.iterator]=n[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,p){x["[object "+p+"]"]=p.toLowerCase()});function Z(d){var p=!!d&&"length"in d&&d.length,v=V(d);return U(d)||X(d)?!1:v==="array"||p===0||typeof p=="number"&&p>0&&p-1 in d}function z(d,p){return d.nodeName&&d.nodeName.toLowerCase()===p.toLowerCase()}var se=n.pop,Te=n.sort,q=n.splice,he="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+he+"+|((?:^|[^\\\\])(?:\\\\.)*)"+he+"+$","g");m.contains=function(d,p){var v=p&&p.parentNode;return d===v||!!(v&&v.nodeType===1&&(d.contains?d.contains(v):d.compareDocumentPosition&&d.compareDocumentPosition(v)&16))};var xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ae(d,p){return p?d==="\0"?"\uFFFD":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d}m.escapeSelector=function(d){return(d+"").replace(xe,ae)};var Ie=A,Fe=h;(function(){var d,p,v,T,R,S=Fe,B,P,Y,ne,ce,be=m.expando,le=0,Se=0,ft=fa(),Nt=fa(),vt=fa(),gr=fa(),zt=function(M,te){return M===te&&(R=!0),0},Yn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Pn="(?:\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",St="\\["+he+"*("+Pn+")(?:"+he+"*([*^$|!~]?=)"+he+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Pn+"))|)"+he+"*\\]",On=":("+Pn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+St+")*)|.*)\\)|)",rt=new RegExp(he+"+","g"),ar=new RegExp("^"+he+"*,"+he+"*"),sa=new RegExp("^"+he+"*([>+~]|"+he+")"+he+"*"),Vi=new RegExp(he+"|>"),zn=new RegExp(On),ua=new RegExp("^"+Pn+"$"),qn={ID:new RegExp("^#("+Pn+")"),CLASS:new RegExp("^\\.("+Pn+")"),TAG:new RegExp("^("+Pn+"|[*])"),ATTR:new RegExp("^"+St),PSEUDO:new RegExp("^"+On),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+he+"*(even|odd|(([+-]|)(\\d*)n|)"+he+"*(?:([+-]|)"+he+"*(\\d+)|))"+he+"*\\)|)","i"),bool:new RegExp("^(?:"+Yn+")$","i"),needsContext:new RegExp("^"+he+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+he+"*((?:-\\d)?\\d*)"+he+"*\\)|)(?=[^-]|$)","i")},Kn=/^(?:input|select|textarea|button)$/i,vi=/^h\d$/i,Rn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_l=/[+~]/,$n=new RegExp("\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\([^\\r\\n\\f])","g"),ei=function(M,te){var oe="0x"+M.slice(1)-65536;return te||(oe<0?String.fromCharCode(oe+65536):String.fromCharCode(oe>>10|55296,oe&1023|56320))},Pf=function(){xi()},Za=Ma(function(M){return M.disabled===!0&&z(M,"fieldset")},{dir:"parentNode",next:"legend"});function yi(){try{return B.activeElement}catch{}}try{S.apply(n=u.call(Ie.childNodes),Ie.childNodes),n[Ie.childNodes.length].nodeType}catch{S={apply:function(te,oe){Fe.apply(te,u.call(oe))},call:function(te){Fe.apply(te,u.call(arguments,1))}}}function Ut(M,te,oe,fe){var me,Ae,Me,je,Ze,xt,it,dt=te&&te.ownerDocument,wt=te?te.nodeType:9;if(oe=oe||[],typeof M!="string"||!M||wt!==1&&wt!==9&&wt!==11)return oe;if(!fe&&(xi(te),te=te||B,Y)){if(wt!==11&&(Ze=Rn.exec(M)))if(me=Ze[1]){if(wt===9)if(Me=te.getElementById(me)){if(Me.id===me)return S.call(oe,Me),oe}else return oe;else if(dt&&(Me=dt.getElementById(me))&&Ut.contains(te,Me)&&Me.id===me)return S.call(oe,Me),oe}else{if(Ze[2])return S.apply(oe,te.getElementsByTagName(M)),oe;if((me=Ze[3])&&te.getElementsByClassName)return S.apply(oe,te.getElementsByClassName(me)),oe}if(!gr[M+" "]&&(!ne||!ne.test(M))){if(it=M,dt=te,wt===1&&(Vi.test(M)||sa.test(M))){for(dt=_l.test(M)&&Fl(te.parentNode)||te,(dt!=te||!W.scope)&&((je=te.getAttribute("id"))?je=m.escapeSelector(je):te.setAttribute("id",je=be)),xt=ti(M),Ae=xt.length;Ae--;)xt[Ae]=(je?"#"+je:":scope")+" "+un(xt[Ae]);it=xt.join(",")}try{return S.apply(oe,dt.querySelectorAll(it)),oe}catch{gr(M,!0)}finally{je===be&&te.removeAttribute("id")}}}return Bl(M.replace(L,"$1"),te,oe,fe)}function fa(){var M=[];function te(oe,fe){return M.push(oe+" ")>p.cacheLength&&delete te[M.shift()],te[oe+" "]=fe}return te}function Sn(M){return M[be]=!0,M}function zr(M){var te=B.createElement("fieldset");try{return!!M(te)}catch{return!1}finally{te.parentNode&&te.parentNode.removeChild(te),te=null}}function Qi(M){return function(te){return z(te,"input")&&te.type===M}}function Nl(M){return function(te){return(z(te,"input")||z(te,"button"))&&te.type===M}}function js(M){return function(te){return"form"in te?te.parentNode&&te.disabled===!1?"label"in te?"label"in te.parentNode?te.parentNode.disabled===M:te.disabled===M:te.isDisabled===M||te.isDisabled!==!M&&Za(te)===M:te.disabled===M:"label"in te?te.disabled===M:!1}}function Fi(M){return Sn(function(te){return te=+te,Sn(function(oe,fe){for(var me,Ae=M([],oe.length,te),Me=Ae.length;Me--;)oe[me=Ae[Me]]&&(oe[me]=!(fe[me]=oe[me]))})})}function Fl(M){return M&&typeof M.getElementsByTagName<"u"&&M}function xi(M){var te,oe=M?M.ownerDocument||M:Ie;return oe==B||oe.nodeType!==9||!oe.documentElement||(B=oe,P=B.documentElement,Y=!m.isXMLDoc(B),ce=P.matches||P.webkitMatchesSelector||P.msMatchesSelector,P.msMatchesSelector&&Ie!=B&&(te=B.defaultView)&&te.top!==te&&te.addEventListener("unload",Pf),W.getById=zr(function(fe){return P.appendChild(fe).id=m.expando,!B.getElementsByName||!B.getElementsByName(m.expando).length}),W.disconnectedMatch=zr(function(fe){return ce.call(fe,"*")}),W.scope=zr(function(){return B.querySelectorAll(":scope")}),W.cssHas=zr(function(){try{return B.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),W.getById?(p.filter.ID=function(fe){var me=fe.replace($n,ei);return function(Ae){return Ae.getAttribute("id")===me}},p.find.ID=function(fe,me){if(typeof me.getElementById<"u"&&Y){var Ae=me.getElementById(fe);return Ae?[Ae]:[]}}):(p.filter.ID=function(fe){var me=fe.replace($n,ei);return function(Ae){var Me=typeof Ae.getAttributeNode<"u"&&Ae.getAttributeNode("id");return Me&&Me.value===me}},p.find.ID=function(fe,me){if(typeof me.getElementById<"u"&&Y){var Ae,Me,je,Ze=me.getElementById(fe);if(Ze){if(Ae=Ze.getAttributeNode("id"),Ae&&Ae.value===fe)return[Ze];for(je=me.getElementsByName(fe),Me=0;Ze=je[Me++];)if(Ae=Ze.getAttributeNode("id"),Ae&&Ae.value===fe)return[Ze]}return[]}}),p.find.TAG=function(fe,me){return typeof me.getElementsByTagName<"u"?me.getElementsByTagName(fe):me.querySelectorAll(fe)},p.find.CLASS=function(fe,me){if(typeof me.getElementsByClassName<"u"&&Y)return me.getElementsByClassName(fe)},ne=[],zr(function(fe){var me;P.appendChild(fe).innerHTML="<a id='"+be+"' href='' disabled='disabled'></a><select id='"+be+"-\r\\' disabled='disabled'><option selected=''></option></select>",fe.querySelectorAll("[selected]").length||ne.push("\\["+he+"*(?:value|"+Yn+")"),fe.querySelectorAll("[id~="+be+"-]").length||ne.push("~="),fe.querySelectorAll("a#"+be+"+*").length||ne.push(".#.+[+~]"),fe.querySelectorAll(":checked").length||ne.push(":checked"),me=B.createElement("input"),me.setAttribute("type","hidden"),fe.appendChild(me).setAttribute("name","D"),P.appendChild(fe).disabled=!0,fe.querySelectorAll(":disabled").length!==2&&ne.push(":enabled",":disabled"),me=B.createElement("input"),me.setAttribute("name",""),fe.appendChild(me),fe.querySelectorAll("[name='']").length||ne.push("\\["+he+"*name"+he+"*="+he+`*(?:''|"")`)}),W.cssHas||ne.push(":has"),ne=ne.length&&new RegExp(ne.join("|")),zt=function(fe,me){if(fe===me)return R=!0,0;var Ae=!fe.compareDocumentPosition-!me.compareDocumentPosition;return Ae||(Ae=(fe.ownerDocument||fe)==(me.ownerDocument||me)?fe.compareDocumentPosition(me):1,Ae&1||!W.sortDetached&&me.compareDocumentPosition(fe)===Ae?fe===B||fe.ownerDocument==Ie&&Ut.contains(Ie,fe)?-1:me===B||me.ownerDocument==Ie&&Ut.contains(Ie,me)?1:T?b.call(T,fe)-b.call(T,me):0:Ae&4?-1:1)}),B}Ut.matches=function(M,te){return Ut(M,null,null,te)},Ut.matchesSelector=function(M,te){if(xi(M),Y&&!gr[te+" "]&&(!ne||!ne.test(te)))try{var oe=ce.call(M,te);if(oe||W.disconnectedMatch||M.document&&M.document.nodeType!==11)return oe}catch{gr(te,!0)}return Ut(te,B,null,[M]).length>0},Ut.contains=function(M,te){return(M.ownerDocument||M)!=B&&xi(M),m.contains(M,te)},Ut.attr=function(M,te){(M.ownerDocument||M)!=B&&xi(M);var oe=p.attrHandle[te.toLowerCase()],fe=oe&&I.call(p.attrHandle,te.toLowerCase())?oe(M,te,!Y):void 0;return fe!==void 0?fe:M.getAttribute(te)},Ut.error=function(M){throw new Error("Syntax error, unrecognized expression: "+M)},m.uniqueSort=function(M){var te,oe=[],fe=0,me=0;if(R=!W.sortStable,T=!W.sortStable&&u.call(M,0),Te.call(M,zt),R){for(;te=M[me++];)te===M[me]&&(fe=oe.push(me));for(;fe--;)q.call(M,oe[fe],1)}return T=null,M},m.fn.uniqueSort=function(){return this.pushStack(m.uniqueSort(u.apply(this)))},p=m.expr={cacheLength:50,createPseudo:Sn,match:qn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(M){return M[1]=M[1].replace($n,ei),M[3]=(M[3]||M[4]||M[5]||"").replace($n,ei),M[2]==="~="&&(M[3]=" "+M[3]+" "),M.slice(0,4)},CHILD:function(M){return M[1]=M[1].toLowerCase(),M[1].slice(0,3)==="nth"?(M[3]||Ut.error(M[0]),M[4]=+(M[4]?M[5]+(M[6]||1):2*(M[3]==="even"||M[3]==="odd")),M[5]=+(M[7]+M[8]||M[3]==="odd")):M[3]&&Ut.error(M[0]),M},PSEUDO:function(M){var te,oe=!M[6]&&M[2];return qn.CHILD.test(M[0])?null:(M[3]?M[2]=M[4]||M[5]||"":oe&&zn.test(oe)&&(te=ti(oe,!0))&&(te=oe.indexOf(")",oe.length-te)-oe.length)&&(M[0]=M[0].slice(0,te),M[2]=oe.slice(0,te)),M.slice(0,3))}},filter:{TAG:function(M){var te=M.replace($n,ei).toLowerCase();return M==="*"?function(){return!0}:function(oe){return z(oe,te)}},CLASS:function(M){var te=ft[M+" "];return te||(te=new RegExp("(^|"+he+")"+M+"("+he+"|$)"))&&ft(M,function(oe){return te.test(typeof oe.className=="string"&&oe.className||typeof oe.getAttribute<"u"&&oe.getAttribute("class")||"")})},ATTR:function(M,te,oe){return function(fe){var me=Ut.attr(fe,M);return me==null?te==="!=":te?(me+="",te==="="?me===oe:te==="!="?me!==oe:te==="^="?oe&&me.indexOf(oe)===0:te==="*="?oe&&me.indexOf(oe)>-1:te==="$="?oe&&me.slice(-oe.length)===oe:te==="~="?(" "+me.replace(rt," ")+" ").indexOf(oe)>-1:te==="|="?me===oe||me.slice(0,oe.length+1)===oe+"-":!1):!0}},CHILD:function(M,te,oe,fe,me){var Ae=M.slice(0,3)!=="nth",Me=M.slice(-4)!=="last",je=te==="of-type";return fe===1&&me===0?function(Ze){return!!Ze.parentNode}:function(Ze,xt,it){var dt,wt,tt,Ht,mr,fr=Ae!==Me?"nextSibling":"previousSibling",Fr=Ze.parentNode,En=je&&Ze.nodeName.toLowerCase(),Li=!it&&!je,Mr=!1;if(Fr){if(Ae){for(;fr;){for(tt=Ze;tt=tt[fr];)if(je?z(tt,En):tt.nodeType===1)return!1;mr=fr=M==="only"&&!mr&&"nextSibling"}return!0}if(mr=[Me?Fr.firstChild:Fr.lastChild],Me&&Li){for(wt=Fr[be]||(Fr[be]={}),dt=wt[M]||[],Ht=dt[0]===le&&dt[1],Mr=Ht&&dt[2],tt=Ht&&Fr.childNodes[Ht];tt=++Ht&&tt&&tt[fr]||(Mr=Ht=0)||mr.pop();)if(tt.nodeType===1&&++Mr&&tt===Ze){wt[M]=[le,Ht,Mr];break}}else if(Li&&(wt=Ze[be]||(Ze[be]={}),dt=wt[M]||[],Ht=dt[0]===le&&dt[1],Mr=Ht),Mr===!1)for(;(tt=++Ht&&tt&&tt[fr]||(Mr=Ht=0)||mr.pop())&&!((je?z(tt,En):tt.nodeType===1)&&++Mr&&(Li&&(wt=tt[be]||(tt[be]={}),wt[M]=[le,Mr]),tt===Ze)););return Mr-=me,Mr===fe||Mr%fe===0&&Mr/fe>=0}}},PSEUDO:function(M,te){var oe,fe=p.pseudos[M]||p.setFilters[M.toLowerCase()]||Ut.error("unsupported pseudo: "+M);return fe[be]?fe(te):fe.length>1?(oe=[M,M,"",te],p.setFilters.hasOwnProperty(M.toLowerCase())?Sn(function(me,Ae){for(var Me,je=fe(me,te),Ze=je.length;Ze--;)Me=b.call(me,je[Ze]),me[Me]=!(Ae[Me]=je[Ze])}):function(me){return fe(me,0,oe)}):fe}},pseudos:{not:Sn(function(M){var te=[],oe=[],fe=Hi(M.replace(L,"$1"));return fe[be]?Sn(function(me,Ae,Me,je){for(var Ze,xt=fe(me,null,je,[]),it=me.length;it--;)(Ze=xt[it])&&(me[it]=!(Ae[it]=Ze))}):function(me,Ae,Me){return te[0]=me,fe(te,null,Me,oe),te[0]=null,!oe.pop()}}),has:Sn(function(M){return function(te){return Ut(M,te).length>0}}),contains:Sn(function(M){return M=M.replace($n,ei),function(te){return(te.textContent||m.text(te)).indexOf(M)>-1}}),lang:Sn(function(M){return ua.test(M||"")||Ut.error("unsupported lang: "+M),M=M.replace($n,ei).toLowerCase(),function(te){var oe;do if(oe=Y?te.lang:te.getAttribute("xml:lang")||te.getAttribute("lang"))return oe=oe.toLowerCase(),oe===M||oe.indexOf(M+"-")===0;while((te=te.parentNode)&&te.nodeType===1);return!1}}),target:function(M){var te=e.location&&e.location.hash;return te&&te.slice(1)===M.id},root:function(M){return M===P},focus:function(M){return M===yi()&&B.hasFocus()&&!!(M.type||M.href||~M.tabIndex)},enabled:js(!1),disabled:js(!0),checked:function(M){return z(M,"input")&&!!M.checked||z(M,"option")&&!!M.selected},selected:function(M){return M.parentNode&&M.parentNode.selectedIndex,M.selected===!0},empty:function(M){for(M=M.firstChild;M;M=M.nextSibling)if(M.nodeType<6)return!1;return!0},parent:function(M){return!p.pseudos.empty(M)},header:function(M){return vi.test(M.nodeName)},input:function(M){return Kn.test(M.nodeName)},button:function(M){return z(M,"input")&&M.type==="button"||z(M,"button")},text:function(M){var te;return z(M,"input")&&M.type==="text"&&((te=M.getAttribute("type"))==null||te.toLowerCase()==="text")},first:Fi(function(){return[0]}),last:Fi(function(M,te){return[te-1]}),eq:Fi(function(M,te,oe){return[oe<0?oe+te:oe]}),even:Fi(function(M,te){for(var oe=0;oe<te;oe+=2)M.push(oe);return M}),odd:Fi(function(M,te){for(var oe=1;oe<te;oe+=2)M.push(oe);return M}),lt:Fi(function(M,te,oe){var fe;for(oe<0?fe=oe+te:oe>te?fe=te:fe=oe;--fe>=0;)M.push(fe);return M}),gt:Fi(function(M,te,oe){for(var fe=oe<0?oe+te:oe;++fe<te;)M.push(fe);return M})}},p.pseudos.nth=p.pseudos.eq;for(d in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})p.pseudos[d]=Qi(d);for(d in{submit:!0,reset:!0})p.pseudos[d]=Nl(d);function vo(){}vo.prototype=p.filters=p.pseudos,p.setFilters=new vo;function ti(M,te){var oe,fe,me,Ae,Me,je,Ze,xt=Nt[M+" "];if(xt)return te?0:xt.slice(0);for(Me=M,je=[],Ze=p.preFilter;Me;){(!oe||(fe=ar.exec(Me)))&&(fe&&(Me=Me.slice(fe[0].length)||Me),je.push(me=[])),oe=!1,(fe=sa.exec(Me))&&(oe=fe.shift(),me.push({value:oe,type:fe[0].replace(L," ")}),Me=Me.slice(oe.length));for(Ae in p.filter)(fe=qn[Ae].exec(Me))&&(!Ze[Ae]||(fe=Ze[Ae](fe)))&&(oe=fe.shift(),me.push({value:oe,type:Ae,matches:fe}),Me=Me.slice(oe.length));if(!oe)break}return te?Me.length:Me?Ut.error(M):Nt(M,je).slice(0)}function un(M){for(var te=0,oe=M.length,fe="";te<oe;te++)fe+=M[te].value;return fe}function Ma(M,te,oe){var fe=te.dir,me=te.next,Ae=me||fe,Me=oe&&Ae==="parentNode",je=Se++;return te.first?function(Ze,xt,it){for(;Ze=Ze[fe];)if(Ze.nodeType===1||Me)return M(Ze,xt,it);return!1}:function(Ze,xt,it){var dt,wt,tt=[le,je];if(it){for(;Ze=Ze[fe];)if((Ze.nodeType===1||Me)&&M(Ze,xt,it))return!0}else for(;Ze=Ze[fe];)if(Ze.nodeType===1||Me)if(wt=Ze[be]||(Ze[be]={}),me&&z(Ze,me))Ze=Ze[fe]||Ze;else{if((dt=wt[Ae])&&dt[0]===le&&dt[1]===je)return tt[2]=dt[2];if(wt[Ae]=tt,tt[2]=M(Ze,xt,it))return!0}return!1}}function yo(M){return M.length>1?function(te,oe,fe){for(var me=M.length;me--;)if(!M[me](te,oe,fe))return!1;return!0}:M[0]}function zf(M,te,oe){for(var fe=0,me=te.length;fe<me;fe++)Ut(M,te[fe],oe);return oe}function xo(M,te,oe,fe,me){for(var Ae,Me=[],je=0,Ze=M.length,xt=te!=null;je<Ze;je++)(Ae=M[je])&&(!oe||oe(Ae,fe,me))&&(Me.push(Ae),xt&&te.push(je));return Me}function Ll(M,te,oe,fe,me,Ae){return fe&&!fe[be]&&(fe=Ll(fe)),me&&!me[be]&&(me=Ll(me,Ae)),Sn(function(Me,je,Ze,xt){var it,dt,wt,tt,Ht=[],mr=[],fr=je.length,Fr=Me||zf(te||"*",Ze.nodeType?[Ze]:Ze,[]),En=M&&(Me||!te)?xo(Fr,Ht,M,Ze,xt):Fr;if(oe?(tt=me||(Me?M:fr||fe)?[]:je,oe(En,tt,Ze,xt)):tt=En,fe)for(it=xo(tt,mr),fe(it,[],Ze,xt),dt=it.length;dt--;)(wt=it[dt])&&(tt[mr[dt]]=!(En[mr[dt]]=wt));if(Me){if(me||M){if(me){for(it=[],dt=tt.length;dt--;)(wt=tt[dt])&&it.push(En[dt]=wt);me(null,tt=[],it,xt)}for(dt=tt.length;dt--;)(wt=tt[dt])&&(it=me?b.call(Me,wt):Ht[dt])>-1&&(Me[it]=!(je[it]=wt))}}else tt=xo(tt===je?tt.splice(fr,tt.length):tt),me?me(null,je,tt,xt):S.apply(je,tt)})}function To(M){for(var te,oe,fe,me=M.length,Ae=p.relative[M[0].type],Me=Ae||p.relative[" "],je=Ae?1:0,Ze=Ma(function(dt){return dt===te},Me,!0),xt=Ma(function(dt){return b.call(te,dt)>-1},Me,!0),it=[function(dt,wt,tt){var Ht=!Ae&&(tt||wt!=v)||((te=wt).nodeType?Ze(dt,wt,tt):xt(dt,wt,tt));return te=null,Ht}];je<me;je++)if(oe=p.relative[M[je].type])it=[Ma(yo(it),oe)];else{if(oe=p.filter[M[je].type].apply(null,M[je].matches),oe[be]){for(fe=++je;fe<me&&!p.relative[M[fe].type];fe++);return Ll(je>1&&yo(it),je>1&&un(M.slice(0,je-1).concat({value:M[je-2].type===" "?"*":""})).replace(L,"$1"),oe,je<fe&&To(M.slice(je,fe)),fe<me&&To(M=M.slice(fe)),fe<me&&un(M))}it.push(oe)}return yo(it)}function Ys(M,te){var oe=te.length>0,fe=M.length>0,me=function(Ae,Me,je,Ze,xt){var it,dt,wt,tt=0,Ht="0",mr=Ae&&[],fr=[],Fr=v,En=Ae||fe&&p.find.TAG("*",xt),Li=le+=Fr==null?1:Math.random()||.1,Mr=En.length;for(xt&&(v=Me==B||Me||xt);Ht!==Mr&&(it=En[Ht])!=null;Ht++){if(fe&&it){for(dt=0,!Me&&it.ownerDocument!=B&&(xi(it),je=!Y);wt=M[dt++];)if(wt(it,Me||B,je)){S.call(Ze,it);break}xt&&(le=Li)}oe&&((it=!wt&&it)&&tt--,Ae&&mr.push(it))}if(tt+=Ht,oe&&Ht!==tt){for(dt=0;wt=te[dt++];)wt(mr,fr,Me,je);if(Ae){if(tt>0)for(;Ht--;)mr[Ht]||fr[Ht]||(fr[Ht]=se.call(Ze));fr=xo(fr)}S.apply(Ze,fr),xt&&!Ae&&fr.length>0&&tt+te.length>1&&m.uniqueSort(Ze)}return xt&&(le=Li,v=Fr),mr};return oe?Sn(me):me}function Hi(M,te){var oe,fe=[],me=[],Ae=vt[M+" "];if(!Ae){for(te||(te=ti(M)),oe=te.length;oe--;)Ae=To(te[oe]),Ae[be]?fe.push(Ae):me.push(Ae);Ae=vt(M,Ys(me,fe)),Ae.selector=M}return Ae}function Bl(M,te,oe,fe){var me,Ae,Me,je,Ze,xt=typeof M=="function"&&M,it=!fe&&ti(M=xt.selector||M);if(oe=oe||[],it.length===1){if(Ae=it[0]=it[0].slice(0),Ae.length>2&&(Me=Ae[0]).type==="ID"&&te.nodeType===9&&Y&&p.relative[Ae[1].type]){if(te=(p.find.ID(Me.matches[0].replace($n,ei),te)||[])[0],te)xt&&(te=te.parentNode);else return oe;M=M.slice(Ae.shift().value.length)}for(me=qn.needsContext.test(M)?0:Ae.length;me--&&(Me=Ae[me],!p.relative[je=Me.type]);)if((Ze=p.find[je])&&(fe=Ze(Me.matches[0].replace($n,ei),_l.test(Ae[0].type)&&Fl(te.parentNode)||te))){if(Ae.splice(me,1),M=fe.length&&un(Ae),!M)return S.apply(oe,fe),oe;break}}return(xt||Hi(M,it))(fe,te,!Y,oe,!te||_l.test(M)&&Fl(te.parentNode)||te),oe}W.sortStable=be.split("").sort(zt).join("")===be,xi(),W.sortDetached=zr(function(M){return M.compareDocumentPosition(B.createElement("fieldset"))&1}),m.find=Ut,m.expr[":"]=m.expr.pseudos,m.unique=m.uniqueSort,Ut.compile=Hi,Ut.select=Bl,Ut.setDocument=xi,Ut.tokenize=ti,Ut.escape=m.escapeSelector,Ut.getText=m.text,Ut.isXML=m.isXMLDoc,Ut.selectors=m.expr,Ut.support=m.support,Ut.uniqueSort=m.uniqueSort})();var nt=function(d,p,v){for(var T=[],R=v!==void 0;(d=d[p])&&d.nodeType!==9;)if(d.nodeType===1){if(R&&m(d).is(v))break;T.push(d)}return T},Ke=function(d,p){for(var v=[];d;d=d.nextSibling)d.nodeType===1&&d!==p&&v.push(d);return v},lt=m.expr.match.needsContext,Ne=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Rt(d,p,v){return U(p)?m.grep(d,function(T,R){return!!p.call(T,R,T)!==v}):p.nodeType?m.grep(d,function(T){return T===p!==v}):typeof p!="string"?m.grep(d,function(T){return b.call(p,T)>-1!==v}):m.filter(p,d,v)}m.filter=function(d,p,v){var T=p[0];return v&&(d=":not("+d+")"),p.length===1&&T.nodeType===1?m.find.matchesSelector(T,d)?[T]:[]:m.find.matches(d,m.grep(p,function(R){return R.nodeType===1}))},m.fn.extend({find:function(d){var p,v,T=this.length,R=this;if(typeof d!="string")return this.pushStack(m(d).filter(function(){for(p=0;p<T;p++)if(m.contains(R[p],this))return!0}));for(v=this.pushStack([]),p=0;p<T;p++)m.find(d,R[p],v);return T>1?m.uniqueSort(v):v},filter:function(d){return this.pushStack(Rt(this,d||[],!1))},not:function(d){return this.pushStack(Rt(this,d||[],!0))},is:function(d){return!!Rt(this,typeof d=="string"&&lt.test(d)?m(d):d||[],!1).length}});var Pe,Qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Le=m.fn.init=function(d,p,v){var T,R;if(!d)return this;if(v=v||Pe,typeof d=="string")if(d[0]==="<"&&d[d.length-1]===">"&&d.length>=3?T=[null,d,null]:T=Qe.exec(d),T&&(T[1]||!p))if(T[1]){if(p=p instanceof m?p[0]:p,m.merge(this,m.parseHTML(T[1],p&&p.nodeType?p.ownerDocument||p:A,!0)),Ne.test(T[1])&&m.isPlainObject(p))for(T in p)U(this[T])?this[T](p[T]):this.attr(T,p[T]);return this}else return R=A.getElementById(T[2]),R&&(this[0]=R,this.length=1),this;else return!p||p.jquery?(p||v).find(d):this.constructor(p).find(d);else{if(d.nodeType)return this[0]=d,this.length=1,this;if(U(d))return v.ready!==void 0?v.ready(d):d(m)}return m.makeArray(d,this)};Le.prototype=m.fn,Pe=m(A);var Ge=/^(?:parents|prev(?:Until|All))/,He={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(d){var p=m(d,this),v=p.length;return this.filter(function(){for(var T=0;T<v;T++)if(m.contains(this,p[T]))return!0})},closest:function(d,p){var v,T=0,R=this.length,S=[],B=typeof d!="string"&&m(d);if(!lt.test(d)){for(;T<R;T++)for(v=this[T];v&&v!==p;v=v.parentNode)if(v.nodeType<11&&(B?B.index(v)>-1:v.nodeType===1&&m.find.matchesSelector(v,d))){S.push(v);break}}return this.pushStack(S.length>1?m.uniqueSort(S):S)},index:function(d){return d?typeof d=="string"?b.call(m(d),this[0]):b.call(this,d.jquery?d[0]:d):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,p){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(d,p))))},addBack:function(d){return this.add(d==null?this.prevObject:this.prevObject.filter(d))}});function bt(d,p){for(;(d=d[p])&&d.nodeType!==1;);return d}m.each({parent:function(d){var p=d.parentNode;return p&&p.nodeType!==11?p:null},parents:function(d){return nt(d,"parentNode")},parentsUntil:function(d,p,v){return nt(d,"parentNode",v)},next:function(d){return bt(d,"nextSibling")},prev:function(d){return bt(d,"previousSibling")},nextAll:function(d){return nt(d,"nextSibling")},prevAll:function(d){return nt(d,"previousSibling")},nextUntil:function(d,p,v){return nt(d,"nextSibling",v)},prevUntil:function(d,p,v){return nt(d,"previousSibling",v)},siblings:function(d){return Ke((d.parentNode||{}).firstChild,d)},children:function(d){return Ke(d.firstChild)},contents:function(d){return d.contentDocument!=null&&a(d.contentDocument)?d.contentDocument:(z(d,"template")&&(d=d.content||d),m.merge([],d.childNodes))}},function(d,p){m.fn[d]=function(v,T){var R=m.map(this,p,v);return d.slice(-5)!=="Until"&&(T=v),T&&typeof T=="string"&&(R=m.filter(T,R)),this.length>1&&(He[d]||m.uniqueSort(R),Ge.test(d)&&R.reverse()),this.pushStack(R)}});var _e=/[^\x20\t\r\n\f]+/g;function ct(d){var p={};return m.each(d.match(_e)||[],function(v,T){p[T]=!0}),p}m.Callbacks=function(d){d=typeof d=="string"?ct(d):m.extend({},d);var p,v,T,R,S=[],B=[],P=-1,Y=function(){for(R=R||d.once,T=p=!0;B.length;P=-1)for(v=B.shift();++P<S.length;)S[P].apply(v[0],v[1])===!1&&d.stopOnFalse&&(P=S.length,v=!1);d.memory||(v=!1),p=!1,R&&(v?S=[]:S="")},ne={add:function(){return S&&(v&&!p&&(P=S.length-1,B.push(v)),function ce(be){m.each(be,function(le,Se){U(Se)?(!d.unique||!ne.has(Se))&&S.push(Se):Se&&Se.length&&V(Se)!=="string"&&ce(Se)})}(arguments),v&&!p&&Y()),this},remove:function(){return m.each(arguments,function(ce,be){for(var le;(le=m.inArray(be,S,le))>-1;)S.splice(le,1),le<=P&&P--}),this},has:function(ce){return ce?m.inArray(ce,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return R=B=[],S=v="",this},disabled:function(){return!S},lock:function(){return R=B=[],!v&&!p&&(S=v=""),this},locked:function(){return!!R},fireWith:function(ce,be){return R||(be=be||[],be=[ce,be.slice?be.slice():be],B.push(be),p||Y()),this},fire:function(){return ne.fireWith(this,arguments),this},fired:function(){return!!T}};return ne};function Et(d){return d}function pt(d){throw d}function st(d,p,v,T){var R;try{d&&U(R=d.promise)?R.call(d).done(p).fail(v):d&&U(R=d.then)?R.call(d,p,v):p.apply(void 0,[d].slice(T))}catch(S){v.apply(void 0,[S])}}m.extend({Deferred:function(d){var p=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],v="pending",T={state:function(){return v},always:function(){return R.done(arguments).fail(arguments),this},catch:function(S){return T.then(null,S)},pipe:function(){var S=arguments;return m.Deferred(function(B){m.each(p,function(P,Y){var ne=U(S[Y[4]])&&S[Y[4]];R[Y[1]](function(){var ce=ne&&ne.apply(this,arguments);ce&&U(ce.promise)?ce.promise().progress(B.notify).done(B.resolve).fail(B.reject):B[Y[0]+"With"](this,ne?[ce]:arguments)})}),S=null}).promise()},then:function(S,B,P){var Y=0;function ne(ce,be,le,Se){return function(){var ft=this,Nt=arguments,vt=function(){var zt,Yn;if(!(ce<Y)){if(zt=le.apply(ft,Nt),zt===be.promise())throw new TypeError("Thenable self-resolution");Yn=zt&&(typeof zt=="object"||typeof zt=="function")&&zt.then,U(Yn)?Se?Yn.call(zt,ne(Y,be,Et,Se),ne(Y,be,pt,Se)):(Y++,Yn.call(zt,ne(Y,be,Et,Se),ne(Y,be,pt,Se),ne(Y,be,Et,be.notifyWith))):(le!==Et&&(ft=void 0,Nt=[zt]),(Se||be.resolveWith)(ft,Nt))}},gr=Se?vt:function(){try{vt()}catch(zt){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(zt,gr.error),ce+1>=Y&&(le!==pt&&(ft=void 0,Nt=[zt]),be.rejectWith(ft,Nt))}};ce?gr():(m.Deferred.getErrorHook?gr.error=m.Deferred.getErrorHook():m.Deferred.getStackHook&&(gr.error=m.Deferred.getStackHook()),e.setTimeout(gr))}}return m.Deferred(function(ce){p[0][3].add(ne(0,ce,U(P)?P:Et,ce.notifyWith)),p[1][3].add(ne(0,ce,U(S)?S:Et)),p[2][3].add(ne(0,ce,U(B)?B:pt))}).promise()},promise:function(S){return S!=null?m.extend(S,T):T}},R={};return m.each(p,function(S,B){var P=B[2],Y=B[5];T[B[1]]=P.add,Y&&P.add(function(){v=Y},p[3-S][2].disable,p[3-S][3].disable,p[0][2].lock,p[0][3].lock),P.add(B[3].fire),R[B[0]]=function(){return R[B[0]+"With"](this===R?void 0:this,arguments),this},R[B[0]+"With"]=P.fireWith}),T.promise(R),d&&d.call(R,R),R},when:function(d){var p=arguments.length,v=p,T=Array(v),R=u.call(arguments),S=m.Deferred(),B=function(P){return function(Y){T[P]=this,R[P]=arguments.length>1?u.call(arguments):Y,--p||S.resolveWith(T,R)}};if(p<=1&&(st(d,S.done(B(v)).resolve,S.reject,!p),S.state()==="pending"||U(R[v]&&R[v].then)))return S.then();for(;v--;)st(R[v],B(v),S.reject);return S.promise()}});var $e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(d,p){e.console&&e.console.warn&&d&&$e.test(d.name)&&e.console.warn("jQuery.Deferred exception: "+d.message,d.stack,p)},m.readyException=function(d){e.setTimeout(function(){throw d})};var Ct=m.Deferred();m.fn.ready=function(d){return Ct.then(d).catch(function(p){m.readyException(p)}),this},m.extend({isReady:!1,readyWait:1,ready:function(d){(d===!0?--m.readyWait:m.isReady)||(m.isReady=!0,!(d!==!0&&--m.readyWait>0)&&Ct.resolveWith(A,[m]))}}),m.ready.then=Ct.then;function ut(){A.removeEventListener("DOMContentLoaded",ut),e.removeEventListener("load",ut),m.ready()}A.readyState==="complete"||A.readyState!=="loading"&&!A.documentElement.doScroll?e.setTimeout(m.ready):(A.addEventListener("DOMContentLoaded",ut),e.addEventListener("load",ut));var mt=function(d,p,v,T,R,S,B){var P=0,Y=d.length,ne=v==null;if(V(v)==="object"){R=!0;for(P in v)mt(d,p,P,v[P],!0,S,B)}else if(T!==void 0&&(R=!0,U(T)||(B=!0),ne&&(B?(p.call(d,T),p=null):(ne=p,p=function(ce,be,le){return ne.call(m(ce),le)})),p))for(;P<Y;P++)p(d[P],v,B?T:T.call(d[P],P,p(d[P],v)));return R?d:ne?p.call(d):Y?p(d[0],v):S},Ye=/^-ms-/,vr=/-([a-z])/g;function yr(d,p){return p.toUpperCase()}function tr(d){return d.replace(Ye,"ms-").replace(vr,yr)}var Ot=function(d){return d.nodeType===1||d.nodeType===9||!+d.nodeType};function cr(){this.expando=m.expando+cr.uid++}cr.uid=1,cr.prototype={cache:function(d){var p=d[this.expando];return p||(p={},Ot(d)&&(d.nodeType?d[this.expando]=p:Object.defineProperty(d,this.expando,{value:p,configurable:!0}))),p},set:function(d,p,v){var T,R=this.cache(d);if(typeof p=="string")R[tr(p)]=v;else for(T in p)R[tr(T)]=p[T];return R},get:function(d,p){return p===void 0?this.cache(d):d[this.expando]&&d[this.expando][tr(p)]},access:function(d,p,v){return p===void 0||p&&typeof p=="string"&&v===void 0?this.get(d,p):(this.set(d,p,v),v!==void 0?v:p)},remove:function(d,p){var v,T=d[this.expando];if(T!==void 0){if(p!==void 0)for(Array.isArray(p)?p=p.map(tr):(p=tr(p),p=p in T?[p]:p.match(_e)||[]),v=p.length;v--;)delete T[p[v]];(p===void 0||m.isEmptyObject(T))&&(d.nodeType?d[this.expando]=void 0:delete d[this.expando])}},hasData:function(d){var p=d[this.expando];return p!==void 0&&!m.isEmptyObject(p)}};var Be=new cr,gt=new cr,lr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,hr=/[A-Z]/g;function Mt(d){return d==="true"?!0:d==="false"?!1:d==="null"?null:d===+d+""?+d:lr.test(d)?JSON.parse(d):d}function xr(d,p,v){var T;if(v===void 0&&d.nodeType===1)if(T="data-"+p.replace(hr,"-$&").toLowerCase(),v=d.getAttribute(T),typeof v=="string"){try{v=Mt(v)}catch{}gt.set(d,p,v)}else v=void 0;return v}m.extend({hasData:function(d){return gt.hasData(d)||Be.hasData(d)},data:function(d,p,v){return gt.access(d,p,v)},removeData:function(d,p){gt.remove(d,p)},_data:function(d,p,v){return Be.access(d,p,v)},_removeData:function(d,p){Be.remove(d,p)}}),m.fn.extend({data:function(d,p){var v,T,R,S=this[0],B=S&&S.attributes;if(d===void 0){if(this.length&&(R=gt.get(S),S.nodeType===1&&!Be.get(S,"hasDataAttrs"))){for(v=B.length;v--;)B[v]&&(T=B[v].name,T.indexOf("data-")===0&&(T=tr(T.slice(5)),xr(S,T,R[T])));Be.set(S,"hasDataAttrs",!0)}return R}return typeof d=="object"?this.each(function(){gt.set(this,d)}):mt(this,function(P){var Y;if(S&&P===void 0)return Y=gt.get(S,d),Y!==void 0||(Y=xr(S,d),Y!==void 0)?Y:void 0;this.each(function(){gt.set(this,d,P)})},null,p,arguments.length>1,null,!0)},removeData:function(d){return this.each(function(){gt.remove(this,d)})}}),m.extend({queue:function(d,p,v){var T;if(d)return p=(p||"fx")+"queue",T=Be.get(d,p),v&&(!T||Array.isArray(v)?T=Be.access(d,p,m.makeArray(v)):T.push(v)),T||[]},dequeue:function(d,p){p=p||"fx";var v=m.queue(d,p),T=v.length,R=v.shift(),S=m._queueHooks(d,p),B=function(){m.dequeue(d,p)};R==="inprogress"&&(R=v.shift(),T--),R&&(p==="fx"&&v.unshift("inprogress"),delete S.stop,R.call(d,B,S)),!T&&S&&S.empty.fire()},_queueHooks:function(d,p){var v=p+"queueHooks";return Be.get(d,v)||Be.access(d,v,{empty:m.Callbacks("once memory").add(function(){Be.remove(d,[p+"queue",v])})})}}),m.fn.extend({queue:function(d,p){var v=2;return typeof d!="string"&&(p=d,d="fx",v--),arguments.length<v?m.queue(this[0],d):p===void 0?this:this.each(function(){var T=m.queue(this,d,p);m._queueHooks(this,d),d==="fx"&&T[0]!=="inprogress"&&m.dequeue(this,d)})},dequeue:function(d){return this.each(function(){m.dequeue(this,d)})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d,p){var v,T=1,R=m.Deferred(),S=this,B=this.length,P=function(){--T||R.resolveWith(S,[S])};for(typeof d!="string"&&(p=d,d=void 0),d=d||"fx";B--;)v=Be.get(S[B],d+"queueHooks"),v&&v.empty&&(T++,v.empty.add(P));return P(),R.promise(p)}});var jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rr=new RegExp("^(?:([+-])=|)("+jt+")([a-z%]*)$","i"),sr=["Top","Right","Bottom","Left"],Tr=A.documentElement,sn=function(d){return m.contains(d.ownerDocument,d)},at={composed:!0};Tr.getRootNode&&(sn=function(d){return m.contains(d.ownerDocument,d)||d.getRootNode(at)===d.ownerDocument});var $r=function(d,p){return d=p||d,d.style.display==="none"||d.style.display===""&&sn(d)&&m.css(d,"display")==="none"};function Je(d,p,v,T){var R,S,B=20,P=T?function(){return T.cur()}:function(){return m.css(d,p,"")},Y=P(),ne=v&&v[3]||(m.cssNumber[p]?"":"px"),ce=d.nodeType&&(m.cssNumber[p]||ne!=="px"&&+Y)&&rr.exec(m.css(d,p));if(ce&&ce[3]!==ne){for(Y=Y/2,ne=ne||ce[3],ce=+Y||1;B--;)m.style(d,p,ce+ne),(1-S)*(1-(S=P()/Y||.5))<=0&&(B=0),ce=ce/S;ce=ce*2,m.style(d,p,ce+ne),v=v||[]}return v&&(ce=+ce||+Y||0,R=v[1]?ce+(v[1]+1)*v[2]:+v[2],T&&(T.unit=ne,T.start=ce,T.end=R)),R}var en={};function Cr(d){var p,v=d.ownerDocument,T=d.nodeName,R=en[T];return R||(p=v.body.appendChild(v.createElement(T)),R=m.css(p,"display"),p.parentNode.removeChild(p),R==="none"&&(R="block"),en[T]=R,R)}function Ft(d,p){for(var v,T,R=[],S=0,B=d.length;S<B;S++)T=d[S],T.style&&(v=T.style.display,p?(v==="none"&&(R[S]=Be.get(T,"display")||null,R[S]||(T.style.display="")),T.style.display===""&&$r(T)&&(R[S]=Cr(T))):v!=="none"&&(R[S]="none",Be.set(T,"display",v)));for(S=0;S<B;S++)R[S]!=null&&(d[S].style.display=R[S]);return d}m.fn.extend({show:function(){return Ft(this,!0)},hide:function(){return Ft(this)},toggle:function(d){return typeof d=="boolean"?d?this.show():this.hide():this.each(function(){$r(this)?m(this).show():m(this).hide()})}});var Lt=/^(?:checkbox|radio)$/i,Jr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ur=/^$|^module$|\/(?:java|ecma)script/i;(function(){var d=A.createDocumentFragment(),p=d.appendChild(A.createElement("div")),v=A.createElement("input");v.setAttribute("type","radio"),v.setAttribute("checked","checked"),v.setAttribute("name","t"),p.appendChild(v),W.checkClone=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="<textarea>x</textarea>",W.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue,p.innerHTML="<option></option>",W.option=!!p.lastChild})();var Yt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,W.option||(Yt.optgroup=Yt.option=[1,"<select multiple='multiple'>","</select>"]);function Bt(d,p){var v;return typeof d.getElementsByTagName<"u"?v=d.getElementsByTagName(p||"*"):typeof d.querySelectorAll<"u"?v=d.querySelectorAll(p||"*"):v=[],p===void 0||p&&z(d,p)?m.merge([d],v):v}function Vt(d,p){for(var v=0,T=d.length;v<T;v++)Be.set(d[v],"globalEval",!p||Be.get(p[v],"globalEval"))}var nr=/<|&#?\w+;/;function kn(d,p,v,T,R){for(var S,B,P,Y,ne,ce,be=p.createDocumentFragment(),le=[],Se=0,ft=d.length;Se<ft;Se++)if(S=d[Se],S||S===0)if(V(S)==="object")m.merge(le,S.nodeType?[S]:S);else if(!nr.test(S))le.push(p.createTextNode(S));else{for(B=B||be.appendChild(p.createElement("div")),P=(Jr.exec(S)||["",""])[1].toLowerCase(),Y=Yt[P]||Yt._default,B.innerHTML=Y[1]+m.htmlPrefilter(S)+Y[2],ce=Y[0];ce--;)B=B.lastChild;m.merge(le,B.childNodes),B=be.firstChild,B.textContent=""}for(be.textContent="",Se=0;S=le[Se++];){if(T&&m.inArray(S,T)>-1){R&&R.push(S);continue}if(ne=sn(S),B=Bt(be.appendChild(S),"script"),ne&&Vt(B),v)for(ce=0;S=B[ce++];)ur.test(S.type||"")&&v.push(S)}return be}var hi=/^([^.]*)(?:\.(.+)|)/;function pr(){return!0}function Gn(){return!1}function Dn(d,p,v,T,R,S){var B,P;if(typeof p=="object"){typeof v!="string"&&(T=T||v,v=void 0);for(P in p)Dn(d,P,v,T,p[P],S);return d}if(T==null&&R==null?(R=v,T=v=void 0):R==null&&(typeof v=="string"?(R=T,T=void 0):(R=T,T=v,v=void 0)),R===!1)R=Gn;else if(!R)return d;return S===1&&(B=R,R=function(Y){return m().off(Y),B.apply(this,arguments)},R.guid=B.guid||(B.guid=m.guid++)),d.each(function(){m.event.add(this,p,R,T,v)})}m.event={global:{},add:function(d,p,v,T,R){var S,B,P,Y,ne,ce,be,le,Se,ft,Nt,vt=Be.get(d);if(Ot(d))for(v.handler&&(S=v,v=S.handler,R=S.selector),R&&m.find.matchesSelector(Tr,R),v.guid||(v.guid=m.guid++),(Y=vt.events)||(Y=vt.events=Object.create(null)),(B=vt.handle)||(B=vt.handle=function(gr){return typeof m<"u"&&m.event.triggered!==gr.type?m.event.dispatch.apply(d,arguments):void 0}),p=(p||"").match(_e)||[""],ne=p.length;ne--;)P=hi.exec(p[ne])||[],Se=Nt=P[1],ft=(P[2]||"").split(".").sort(),Se&&(be=m.event.special[Se]||{},Se=(R?be.delegateType:be.bindType)||Se,be=m.event.special[Se]||{},ce=m.extend({type:Se,origType:Nt,data:T,handler:v,guid:v.guid,selector:R,needsContext:R&&m.expr.match.needsContext.test(R),namespace:ft.join(".")},S),(le=Y[Se])||(le=Y[Se]=[],le.delegateCount=0,(!be.setup||be.setup.call(d,T,ft,B)===!1)&&d.addEventListener&&d.addEventListener(Se,B)),be.add&&(be.add.call(d,ce),ce.handler.guid||(ce.handler.guid=v.guid)),R?le.splice(le.delegateCount++,0,ce):le.push(ce),m.event.global[Se]=!0)},remove:function(d,p,v,T,R){var S,B,P,Y,ne,ce,be,le,Se,ft,Nt,vt=Be.hasData(d)&&Be.get(d);if(!(!vt||!(Y=vt.events))){for(p=(p||"").match(_e)||[""],ne=p.length;ne--;){if(P=hi.exec(p[ne])||[],Se=Nt=P[1],ft=(P[2]||"").split(".").sort(),!Se){for(Se in Y)m.event.remove(d,Se+p[ne],v,T,!0);continue}for(be=m.event.special[Se]||{},Se=(T?be.delegateType:be.bindType)||Se,le=Y[Se]||[],P=P[2]&&new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"),B=S=le.length;S--;)ce=le[S],(R||Nt===ce.origType)&&(!v||v.guid===ce.guid)&&(!P||P.test(ce.namespace))&&(!T||T===ce.selector||T==="**"&&ce.selector)&&(le.splice(S,1),ce.selector&&le.delegateCount--,be.remove&&be.remove.call(d,ce));B&&!le.length&&((!be.teardown||be.teardown.call(d,ft,vt.handle)===!1)&&m.removeEvent(d,Se,vt.handle),delete Y[Se])}m.isEmptyObject(Y)&&Be.remove(d,"handle events")}},dispatch:function(d){var p,v,T,R,S,B,P=new Array(arguments.length),Y=m.event.fix(d),ne=(Be.get(this,"events")||Object.create(null))[Y.type]||[],ce=m.event.special[Y.type]||{};for(P[0]=Y,p=1;p<arguments.length;p++)P[p]=arguments[p];if(Y.delegateTarget=this,!(ce.preDispatch&&ce.preDispatch.call(this,Y)===!1)){for(B=m.event.handlers.call(this,Y,ne),p=0;(R=B[p++])&&!Y.isPropagationStopped();)for(Y.currentTarget=R.elem,v=0;(S=R.handlers[v++])&&!Y.isImmediatePropagationStopped();)(!Y.rnamespace||S.namespace===!1||Y.rnamespace.test(S.namespace))&&(Y.handleObj=S,Y.data=S.data,T=((m.event.special[S.origType]||{}).handle||S.handler).apply(R.elem,P),T!==void 0&&(Y.result=T)===!1&&(Y.preventDefault(),Y.stopPropagation()));return ce.postDispatch&&ce.postDispatch.call(this,Y),Y.result}},handlers:function(d,p){var v,T,R,S,B,P=[],Y=p.delegateCount,ne=d.target;if(Y&&ne.nodeType&&!(d.type==="click"&&d.button>=1)){for(;ne!==this;ne=ne.parentNode||this)if(ne.nodeType===1&&!(d.type==="click"&&ne.disabled===!0)){for(S=[],B={},v=0;v<Y;v++)T=p[v],R=T.selector+" ",B[R]===void 0&&(B[R]=T.needsContext?m(R,this).index(ne)>-1:m.find(R,this,null,[ne]).length),B[R]&&S.push(T);S.length&&P.push({elem:ne,handlers:S})}}return ne=this,Y<p.length&&P.push({elem:ne,handlers:p.slice(Y)}),P},addProp:function(d,p){Object.defineProperty(m.Event.prototype,d,{enumerable:!0,configurable:!0,get:U(p)?function(){if(this.originalEvent)return p(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[d]},set:function(v){Object.defineProperty(this,d,{enumerable:!0,configurable:!0,writable:!0,value:v})}})},fix:function(d){return d[m.expando]?d:new m.Event(d)},special:{load:{noBubble:!0},click:{setup:function(d){var p=this||d;return Lt.test(p.type)&&p.click&&z(p,"input")&&pi(p,"click",!0),!1},trigger:function(d){var p=this||d;return Lt.test(p.type)&&p.click&&z(p,"input")&&pi(p,"click"),!0},_default:function(d){var p=d.target;return Lt.test(p.type)&&p.click&&z(p,"input")&&Be.get(p,"click")||z(p,"a")}},beforeunload:{postDispatch:function(d){d.result!==void 0&&d.originalEvent&&(d.originalEvent.returnValue=d.result)}}}};function pi(d,p,v){if(!v){Be.get(d,p)===void 0&&m.event.add(d,p,pr);return}Be.set(d,p,!1),m.event.add(d,p,{namespace:!1,handler:function(T){var R,S=Be.get(this,p);if(T.isTrigger&1&&this[p]){if(S)(m.event.special[p]||{}).delegateType&&T.stopPropagation();else if(S=u.call(arguments),Be.set(this,p,S),this[p](),R=Be.get(this,p),Be.set(this,p,!1),S!==R)return T.stopImmediatePropagation(),T.preventDefault(),R}else S&&(Be.set(this,p,m.event.trigger(S[0],S.slice(1),this)),T.stopPropagation(),T.isImmediatePropagationStopped=pr)}})}m.removeEvent=function(d,p,v){d.removeEventListener&&d.removeEventListener(p,v)},m.Event=function(d,p){if(!(this instanceof m.Event))return new m.Event(d,p);d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||d.defaultPrevented===void 0&&d.returnValue===!1?pr:Gn,this.target=d.target&&d.target.nodeType===3?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget):this.type=d,p&&m.extend(this,p),this.timeStamp=d&&d.timeStamp||Date.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:Gn,isPropagationStopped:Gn,isImmediatePropagationStopped:Gn,isSimulated:!1,preventDefault:function(){var d=this.originalEvent;this.isDefaultPrevented=pr,d&&!this.isSimulated&&d.preventDefault()},stopPropagation:function(){var d=this.originalEvent;this.isPropagationStopped=pr,d&&!this.isSimulated&&d.stopPropagation()},stopImmediatePropagation:function(){var d=this.originalEvent;this.isImmediatePropagationStopped=pr,d&&!this.isSimulated&&d.stopImmediatePropagation(),this.stopPropagation()}},m.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},m.event.addProp),m.each({focus:"focusin",blur:"focusout"},function(d,p){function v(T){if(A.documentMode){var R=Be.get(this,"handle"),S=m.event.fix(T);S.type=T.type==="focusin"?"focus":"blur",S.isSimulated=!0,R(T),S.target===S.currentTarget&&R(S)}else m.event.simulate(p,T.target,m.event.fix(T))}m.event.special[d]={setup:function(){var T;if(pi(this,d,!0),A.documentMode)T=Be.get(this,p),T||this.addEventListener(p,v),Be.set(this,p,(T||0)+1);else return!1},trigger:function(){return pi(this,d),!0},teardown:function(){var T;if(A.documentMode)T=Be.get(this,p)-1,T?Be.set(this,p,T):(this.removeEventListener(p,v),Be.remove(this,p));else return!1},_default:function(T){return Be.get(T.target,d)},delegateType:p},m.event.special[p]={setup:function(){var T=this.ownerDocument||this.document||this,R=A.documentMode?this:T,S=Be.get(R,p);S||(A.documentMode?this.addEventListener(p,v):T.addEventListener(d,v,!0)),Be.set(R,p,(S||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,R=A.documentMode?this:T,S=Be.get(R,p)-1;S?Be.set(R,p,S):(A.documentMode?this.removeEventListener(p,v):T.removeEventListener(d,v,!0),Be.remove(R,p))}}}),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,p){m.event.special[d]={delegateType:p,bindType:p,handle:function(v){var T,R=this,S=v.relatedTarget,B=v.handleObj;return(!S||S!==R&&!m.contains(R,S))&&(v.type=B.origType,T=B.handler.apply(this,arguments),v.type=p),T}}}),m.fn.extend({on:function(d,p,v,T){return Dn(this,d,p,v,T)},one:function(d,p,v,T){return Dn(this,d,p,v,T,1)},off:function(d,p,v){var T,R;if(d&&d.preventDefault&&d.handleObj)return T=d.handleObj,m(d.delegateTarget).off(T.namespace?T.origType+"."+T.namespace:T.origType,T.selector,T.handler),this;if(typeof d=="object"){for(R in d)this.off(R,p,d[R]);return this}return(p===!1||typeof p=="function")&&(v=p,p=void 0),v===!1&&(v=Gn),this.each(function(){m.event.remove(this,d,v,p)})}});var Or=/<script|<style|<link/i,Zr=/checked\s*(?:[^=]|=\s*.checked.)/i,jr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Cn(d,p){return z(d,"table")&&z(p.nodeType!==11?p:p.firstChild,"tr")&&m(d).children("tbody")[0]||d}function Ai(d){return d.type=(d.getAttribute("type")!==null)+"/"+d.type,d}function tn(d){return(d.type||"").slice(0,5)==="true/"?d.type=d.type.slice(5):d.removeAttribute("type"),d}function rn(d,p){var v,T,R,S,B,P,Y;if(p.nodeType===1){if(Be.hasData(d)&&(S=Be.get(d),Y=S.events,Y)){Be.remove(p,"handle events");for(R in Y)for(v=0,T=Y[R].length;v<T;v++)m.event.add(p,R,Y[R][v])}gt.hasData(d)&&(B=gt.access(d),P=m.extend({},B),gt.set(p,P))}}function gi(d,p){var v=p.nodeName.toLowerCase();v==="input"&&Lt.test(d.type)?p.checked=d.checked:(v==="input"||v==="textarea")&&(p.defaultValue=d.defaultValue)}function Ir(d,p,v,T){p=c(p);var R,S,B,P,Y,ne,ce=0,be=d.length,le=be-1,Se=p[0],ft=U(Se);if(ft||be>1&&typeof Se=="string"&&!W.checkClone&&Zr.test(Se))return d.each(function(Nt){var vt=d.eq(Nt);ft&&(p[0]=Se.call(this,Nt,vt.html())),Ir(vt,p,v,T)});if(be&&(R=kn(p,d[0].ownerDocument,!1,d,T),S=R.firstChild,R.childNodes.length===1&&(R=S),S||T)){for(B=m.map(Bt(R,"script"),Ai),P=B.length;ce<be;ce++)Y=R,ce!==le&&(Y=m.clone(Y,!0,!0),P&&m.merge(B,Bt(Y,"script"))),v.call(d[ce],Y,ce);if(P)for(ne=B[B.length-1].ownerDocument,m.map(B,tn),ce=0;ce<P;ce++)Y=B[ce],ur.test(Y.type||"")&&!Be.access(Y,"globalEval")&&m.contains(ne,Y)&&(Y.src&&(Y.type||"").toLowerCase()!=="module"?m._evalUrl&&!Y.noModule&&m._evalUrl(Y.src,{nonce:Y.nonce||Y.getAttribute("nonce")},ne):K(Y.textContent.replace(jr,""),Y,ne))}return d}function Yr(d,p,v){for(var T,R=p?m.filter(p,d):d,S=0;(T=R[S])!=null;S++)!v&&T.nodeType===1&&m.cleanData(Bt(T)),T.parentNode&&(v&&sn(T)&&Vt(Bt(T,"script")),T.parentNode.removeChild(T));return d}m.extend({htmlPrefilter:function(d){return d},clone:function(d,p,v){var T,R,S,B,P=d.cloneNode(!0),Y=sn(d);if(!W.noCloneChecked&&(d.nodeType===1||d.nodeType===11)&&!m.isXMLDoc(d))for(B=Bt(P),S=Bt(d),T=0,R=S.length;T<R;T++)gi(S[T],B[T]);if(p)if(v)for(S=S||Bt(d),B=B||Bt(P),T=0,R=S.length;T<R;T++)rn(S[T],B[T]);else rn(d,P);return B=Bt(P,"script"),B.length>0&&Vt(B,!Y&&Bt(d,"script")),P},cleanData:function(d){for(var p,v,T,R=m.event.special,S=0;(v=d[S])!==void 0;S++)if(Ot(v)){if(p=v[Be.expando]){if(p.events)for(T in p.events)R[T]?m.event.remove(v,T):m.removeEvent(v,T,p.handle);v[Be.expando]=void 0}v[gt.expando]&&(v[gt.expando]=void 0)}}}),m.fn.extend({detach:function(d){return Yr(this,d,!0)},remove:function(d){return Yr(this,d)},text:function(d){return mt(this,function(p){return p===void 0?m.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=p)})},null,d,arguments.length)},append:function(){return Ir(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=Cn(this,d);p.appendChild(d)}})},prepend:function(){return Ir(this,arguments,function(d){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=Cn(this,d);p.insertBefore(d,p.firstChild)}})},before:function(){return Ir(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this)})},after:function(){return Ir(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling)})},empty:function(){for(var d,p=0;(d=this[p])!=null;p++)d.nodeType===1&&(m.cleanData(Bt(d,!1)),d.textContent="");return this},clone:function(d,p){return d=d??!1,p=p??d,this.map(function(){return m.clone(this,d,p)})},html:function(d){return mt(this,function(p){var v=this[0]||{},T=0,R=this.length;if(p===void 0&&v.nodeType===1)return v.innerHTML;if(typeof p=="string"&&!Or.test(p)&&!Yt[(Jr.exec(p)||["",""])[1].toLowerCase()]){p=m.htmlPrefilter(p);try{for(;T<R;T++)v=this[T]||{},v.nodeType===1&&(m.cleanData(Bt(v,!1)),v.innerHTML=p);v=0}catch{}}v&&this.empty().append(p)},null,d,arguments.length)},replaceWith:function(){var d=[];return Ir(this,arguments,function(p){var v=this.parentNode;m.inArray(this,d)<0&&(m.cleanData(Bt(this)),v&&v.replaceChild(p,this))},d)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,p){m.fn[d]=function(v){for(var T,R=[],S=m(v),B=S.length-1,P=0;P<=B;P++)T=P===B?this:this.clone(!0),m(S[P])[p](T),h.apply(R,T.get());return this.pushStack(R)}});var In=new RegExp("^("+jt+")(?!px)[a-z%]+$","i"),Xn=/^--/,Xe=function(d){var p=d.ownerDocument.defaultView;return(!p||!p.opener)&&(p=e),p.getComputedStyle(d)},$=function(d,p,v){var T,R,S={};for(R in p)S[R]=d.style[R],d.style[R]=p[R];T=v.call(d);for(R in p)d.style[R]=S[R];return T},we=new RegExp(sr.join("|"),"i");(function(){function d(){if(ne){Y.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",ne.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Tr.appendChild(Y).appendChild(ne);var ce=e.getComputedStyle(ne);v=ce.top!=="1%",P=p(ce.marginLeft)===12,ne.style.right="60%",S=p(ce.right)===36,T=p(ce.width)===36,ne.style.position="absolute",R=p(ne.offsetWidth/3)===12,Tr.removeChild(Y),ne=null}}function p(ce){return Math.round(parseFloat(ce))}var v,T,R,S,B,P,Y=A.createElement("div"),ne=A.createElement("div");ne.style&&(ne.style.backgroundClip="content-box",ne.cloneNode(!0).style.backgroundClip="",W.clearCloneStyle=ne.style.backgroundClip==="content-box",m.extend(W,{boxSizingReliable:function(){return d(),T},pixelBoxStyles:function(){return d(),S},pixelPosition:function(){return d(),v},reliableMarginLeft:function(){return d(),P},scrollboxSize:function(){return d(),R},reliableTrDimensions:function(){var ce,be,le,Se;return B==null&&(ce=A.createElement("table"),be=A.createElement("tr"),le=A.createElement("div"),ce.style.cssText="position:absolute;left:-11111px;border-collapse:separate",be.style.cssText="box-sizing:content-box;border:1px solid",be.style.height="1px",le.style.height="9px",le.style.display="block",Tr.appendChild(ce).appendChild(be).appendChild(le),Se=e.getComputedStyle(be),B=parseInt(Se.height,10)+parseInt(Se.borderTopWidth,10)+parseInt(Se.borderBottomWidth,10)===be.offsetHeight,Tr.removeChild(ce)),B}}))})();function Oe(d,p,v){var T,R,S,B,P=Xn.test(p),Y=d.style;return v=v||Xe(d),v&&(B=v.getPropertyValue(p)||v[p],P&&B&&(B=B.replace(L,"$1")||void 0),B===""&&!sn(d)&&(B=m.style(d,p)),!W.pixelBoxStyles()&&In.test(B)&&we.test(p)&&(T=Y.width,R=Y.minWidth,S=Y.maxWidth,Y.minWidth=Y.maxWidth=Y.width=B,B=v.width,Y.width=T,Y.minWidth=R,Y.maxWidth=S)),B!==void 0?B+"":B}function kt(d,p){return{get:function(){if(d()){delete this.get;return}return(this.get=p).apply(this,arguments)}}}var Pt=["Webkit","Moz","ms"],ht=A.createElement("div").style,De={};function wr(d){for(var p=d[0].toUpperCase()+d.slice(1),v=Pt.length;v--;)if(d=Pt[v]+p,d in ht)return d}function nn(d){var p=m.cssProps[d]||De[d];return p||(d in ht?d:De[d]=wr(d)||d)}var Nr=/^(none|table(?!-c[ea]).+)/,N={position:"absolute",visibility:"hidden",display:"block"},H={letterSpacing:"0",fontWeight:"400"};function pe(d,p,v){var T=rr.exec(p);return T?Math.max(0,T[2]-(v||0))+(T[3]||"px"):p}function Ce(d,p,v,T,R,S){var B=p==="width"?1:0,P=0,Y=0,ne=0;if(v===(T?"border":"content"))return 0;for(;B<4;B+=2)v==="margin"&&(ne+=m.css(d,v+sr[B],!0,R)),T?(v==="content"&&(Y-=m.css(d,"padding"+sr[B],!0,R)),v!=="margin"&&(Y-=m.css(d,"border"+sr[B]+"Width",!0,R))):(Y+=m.css(d,"padding"+sr[B],!0,R),v!=="padding"?Y+=m.css(d,"border"+sr[B]+"Width",!0,R):P+=m.css(d,"border"+sr[B]+"Width",!0,R));return!T&&S>=0&&(Y+=Math.max(0,Math.ceil(d["offset"+p[0].toUpperCase()+p.slice(1)]-S-Y-P-.5))||0),Y+ne}function ue(d,p,v){var T=Xe(d),R=!W.boxSizingReliable()||v,S=R&&m.css(d,"boxSizing",!1,T)==="border-box",B=S,P=Oe(d,p,T),Y="offset"+p[0].toUpperCase()+p.slice(1);if(In.test(P)){if(!v)return P;P="auto"}return(!W.boxSizingReliable()&&S||!W.reliableTrDimensions()&&z(d,"tr")||P==="auto"||!parseFloat(P)&&m.css(d,"display",!1,T)==="inline")&&d.getClientRects().length&&(S=m.css(d,"boxSizing",!1,T)==="border-box",B=Y in d,B&&(P=d[Y])),P=parseFloat(P)||0,P+Ce(d,p,v||(S?"border":"content"),B,T,P)+"px"}m.extend({cssHooks:{opacity:{get:function(d,p){if(p){var v=Oe(d,"opacity");return v===""?"1":v}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(d,p,v,T){if(!(!d||d.nodeType===3||d.nodeType===8||!d.style)){var R,S,B,P=tr(p),Y=Xn.test(p),ne=d.style;if(Y||(p=nn(P)),B=m.cssHooks[p]||m.cssHooks[P],v!==void 0){if(S=typeof v,S==="string"&&(R=rr.exec(v))&&R[1]&&(v=Je(d,p,R),S="number"),v==null||v!==v)return;S==="number"&&!Y&&(v+=R&&R[3]||(m.cssNumber[P]?"":"px")),!W.clearCloneStyle&&v===""&&p.indexOf("background")===0&&(ne[p]="inherit"),(!B||!("set"in B)||(v=B.set(d,v,T))!==void 0)&&(Y?ne.setProperty(p,v):ne[p]=v)}else return B&&"get"in B&&(R=B.get(d,!1,T))!==void 0?R:ne[p]}},css:function(d,p,v,T){var R,S,B,P=tr(p),Y=Xn.test(p);return Y||(p=nn(P)),B=m.cssHooks[p]||m.cssHooks[P],B&&"get"in B&&(R=B.get(d,!0,v)),R===void 0&&(R=Oe(d,p,T)),R==="normal"&&p in H&&(R=H[p]),v===""||v?(S=parseFloat(R),v===!0||isFinite(S)?S||0:R):R}}),m.each(["height","width"],function(d,p){m.cssHooks[p]={get:function(v,T,R){if(T)return Nr.test(m.css(v,"display"))&&(!v.getClientRects().length||!v.getBoundingClientRect().width)?$(v,N,function(){return ue(v,p,R)}):ue(v,p,R)},set:function(v,T,R){var S,B=Xe(v),P=!W.scrollboxSize()&&B.position==="absolute",Y=P||R,ne=Y&&m.css(v,"boxSizing",!1,B)==="border-box",ce=R?Ce(v,p,R,ne,B):0;return ne&&P&&(ce-=Math.ceil(v["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(B[p])-Ce(v,p,"border",!1,B)-.5)),ce&&(S=rr.exec(T))&&(S[3]||"px")!=="px"&&(v.style[p]=T,T=m.css(v,p)),pe(v,T,ce)}}}),m.cssHooks.marginLeft=kt(W.reliableMarginLeft,function(d,p){if(p)return(parseFloat(Oe(d,"marginLeft"))||d.getBoundingClientRect().left-$(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(d,p){m.cssHooks[d+p]={expand:function(v){for(var T=0,R={},S=typeof v=="string"?v.split(" "):[v];T<4;T++)R[d+sr[T]+p]=S[T]||S[T-2]||S[0];return R}},d!=="margin"&&(m.cssHooks[d+p].set=pe)}),m.fn.extend({css:function(d,p){return mt(this,function(v,T,R){var S,B,P={},Y=0;if(Array.isArray(T)){for(S=Xe(v),B=T.length;Y<B;Y++)P[T[Y]]=m.css(v,T[Y],!1,S);return P}return R!==void 0?m.style(v,T,R):m.css(v,T)},d,p,arguments.length>1)}});function Ee(d,p,v,T,R){return new Ee.prototype.init(d,p,v,T,R)}m.Tween=Ee,Ee.prototype={constructor:Ee,init:function(d,p,v,T,R,S){this.elem=d,this.prop=v,this.easing=R||m.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=T,this.unit=S||(m.cssNumber[v]?"":"px")},cur:function(){var d=Ee.propHooks[this.prop];return d&&d.get?d.get(this):Ee.propHooks._default.get(this)},run:function(d){var p,v=Ee.propHooks[this.prop];return this.options.duration?this.pos=p=m.easing[this.easing](d,this.options.duration*d,0,1,this.options.duration):this.pos=p=d,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),v&&v.set?v.set(this):Ee.propHooks._default.set(this),this}},Ee.prototype.init.prototype=Ee.prototype,Ee.propHooks={_default:{get:function(d){var p;return d.elem.nodeType!==1||d.elem[d.prop]!=null&&d.elem.style[d.prop]==null?d.elem[d.prop]:(p=m.css(d.elem,d.prop,""),!p||p==="auto"?0:p)},set:function(d){m.fx.step[d.prop]?m.fx.step[d.prop](d):d.elem.nodeType===1&&(m.cssHooks[d.prop]||d.elem.style[nn(d.prop)]!=null)?m.style(d.elem,d.prop,d.now+d.unit):d.elem[d.prop]=d.now}}},Ee.propHooks.scrollTop=Ee.propHooks.scrollLeft={set:function(d){d.elem.nodeType&&d.elem.parentNode&&(d.elem[d.prop]=d.now)}},m.easing={linear:function(d){return d},swing:function(d){return .5-Math.cos(d*Math.PI)/2},_default:"swing"},m.fx=Ee.prototype.init,m.fx.step={};var It,ir,Pr=/^(?:toggle|show|hide)$/,ia=/queueHooks$/;function ho(){ir&&(A.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(ho):e.setTimeout(ho,m.fx.interval),m.fx.tick())}function ot(){return e.setTimeout(function(){It=void 0}),It=Date.now()}function po(d,p){var v,T=0,R={height:d};for(p=p?1:0;T<4;T+=2-p)v=sr[T],R["margin"+v]=R["padding"+v]=d;return p&&(R.opacity=R.width=d),R}function vl(d,p,v){for(var T,R=(wn.tweeners[p]||[]).concat(wn.tweeners["*"]),S=0,B=R.length;S<B;S++)if(T=R[S].call(v,p,d))return T}function go(d,p,v){var T,R,S,B,P,Y,ne,ce,be="width"in p||"height"in p,le=this,Se={},ft=d.style,Nt=d.nodeType&&$r(d),vt=Be.get(d,"fxshow");v.queue||(B=m._queueHooks(d,"fx"),B.unqueued==null&&(B.unqueued=0,P=B.empty.fire,B.empty.fire=function(){B.unqueued||P()}),B.unqueued++,le.always(function(){le.always(function(){B.unqueued--,m.queue(d,"fx").length||B.empty.fire()})}));for(T in p)if(R=p[T],Pr.test(R)){if(delete p[T],S=S||R==="toggle",R===(Nt?"hide":"show"))if(R==="show"&&vt&&vt[T]!==void 0)Nt=!0;else continue;Se[T]=vt&&vt[T]||m.style(d,T)}if(Y=!m.isEmptyObject(p),!(!Y&&m.isEmptyObject(Se))){be&&d.nodeType===1&&(v.overflow=[ft.overflow,ft.overflowX,ft.overflowY],ne=vt&&vt.display,ne==null&&(ne=Be.get(d,"display")),ce=m.css(d,"display"),ce==="none"&&(ne?ce=ne:(Ft([d],!0),ne=d.style.display||ne,ce=m.css(d,"display"),Ft([d]))),(ce==="inline"||ce==="inline-block"&&ne!=null)&&m.css(d,"float")==="none"&&(Y||(le.done(function(){ft.display=ne}),ne==null&&(ce=ft.display,ne=ce==="none"?"":ce)),ft.display="inline-block")),v.overflow&&(ft.overflow="hidden",le.always(function(){ft.overflow=v.overflow[0],ft.overflowX=v.overflow[1],ft.overflowY=v.overflow[2]})),Y=!1;for(T in Se)Y||(vt?"hidden"in vt&&(Nt=vt.hidden):vt=Be.access(d,"fxshow",{display:ne}),S&&(vt.hidden=!Nt),Nt&&Ft([d],!0),le.done(function(){Nt||Ft([d]),Be.remove(d,"fxshow");for(T in Se)m.style(d,T,Se[T])})),Y=vl(Nt?vt[T]:0,T,le),T in vt||(vt[T]=Y.start,Nt&&(Y.end=Y.start,Y.start=0))}}function Jn(d,p){var v,T,R,S,B;for(v in d)if(T=tr(v),R=p[T],S=d[v],Array.isArray(S)&&(R=S[1],S=d[v]=S[0]),v!==T&&(d[T]=S,delete d[v]),B=m.cssHooks[T],B&&"expand"in B){S=B.expand(S),delete d[T];for(v in S)v in d||(d[v]=S[v],p[v]=R)}else p[T]=R}function wn(d,p,v){var T,R,S=0,B=wn.prefilters.length,P=m.Deferred().always(function(){delete Y.elem}),Y=function(){if(R)return!1;for(var be=It||ot(),le=Math.max(0,ne.startTime+ne.duration-be),Se=le/ne.duration||0,ft=1-Se,Nt=0,vt=ne.tweens.length;Nt<vt;Nt++)ne.tweens[Nt].run(ft);return P.notifyWith(d,[ne,ft,le]),ft<1&&vt?le:(vt||P.notifyWith(d,[ne,1,0]),P.resolveWith(d,[ne]),!1)},ne=P.promise({elem:d,props:m.extend({},p),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},v),originalProperties:p,originalOptions:v,startTime:It||ot(),duration:v.duration,tweens:[],createTween:function(be,le){var Se=m.Tween(d,ne.opts,be,le,ne.opts.specialEasing[be]||ne.opts.easing);return ne.tweens.push(Se),Se},stop:function(be){var le=0,Se=be?ne.tweens.length:0;if(R)return this;for(R=!0;le<Se;le++)ne.tweens[le].run(1);return be?(P.notifyWith(d,[ne,1,0]),P.resolveWith(d,[ne,be])):P.rejectWith(d,[ne,be]),this}}),ce=ne.props;for(Jn(ce,ne.opts.specialEasing);S<B;S++)if(T=wn.prefilters[S].call(ne,d,ce,ne.opts),T)return U(T.stop)&&(m._queueHooks(ne.elem,ne.opts.queue).stop=T.stop.bind(T)),T;return m.map(ce,vl,ne),U(ne.opts.start)&&ne.opts.start.call(d,ne),ne.progress(ne.opts.progress).done(ne.opts.done,ne.opts.complete).fail(ne.opts.fail).always(ne.opts.always),m.fx.timer(m.extend(Y,{elem:d,anim:ne,queue:ne.opts.queue})),ne}m.Animation=m.extend(wn,{tweeners:{"*":[function(d,p){var v=this.createTween(d,p);return Je(v.elem,d,rr.exec(p),v),v}]},tweener:function(d,p){U(d)?(p=d,d=["*"]):d=d.match(_e);for(var v,T=0,R=d.length;T<R;T++)v=d[T],wn.tweeners[v]=wn.tweeners[v]||[],wn.tweeners[v].unshift(p)},prefilters:[go],prefilter:function(d,p){p?wn.prefilters.unshift(d):wn.prefilters.push(d)}}),m.speed=function(d,p,v){var T=d&&typeof d=="object"?m.extend({},d):{complete:v||!v&&p||U(d)&&d,duration:d,easing:v&&p||p&&!U(p)&&p};return m.fx.off?T.duration=0:typeof T.duration!="number"&&(T.duration in m.fx.speeds?T.duration=m.fx.speeds[T.duration]:T.duration=m.fx.speeds._default),(T.queue==null||T.queue===!0)&&(T.queue="fx"),T.old=T.complete,T.complete=function(){U(T.old)&&T.old.call(this),T.queue&&m.dequeue(this,T.queue)},T},m.fn.extend({fadeTo:function(d,p,v,T){return this.filter($r).css("opacity",0).show().end().animate({opacity:p},d,v,T)},animate:function(d,p,v,T){var R=m.isEmptyObject(d),S=m.speed(p,v,T),B=function(){var P=wn(this,m.extend({},d),S);(R||Be.get(this,"finish"))&&P.stop(!0)};return B.finish=B,R||S.queue===!1?this.each(B):this.queue(S.queue,B)},stop:function(d,p,v){var T=function(R){var S=R.stop;delete R.stop,S(v)};return typeof d!="string"&&(v=p,p=d,d=void 0),p&&this.queue(d||"fx",[]),this.each(function(){var R=!0,S=d!=null&&d+"queueHooks",B=m.timers,P=Be.get(this);if(S)P[S]&&P[S].stop&&T(P[S]);else for(S in P)P[S]&&P[S].stop&&ia.test(S)&&T(P[S]);for(S=B.length;S--;)B[S].elem===this&&(d==null||B[S].queue===d)&&(B[S].anim.stop(v),R=!1,B.splice(S,1));(R||!v)&&m.dequeue(this,d)})},finish:function(d){return d!==!1&&(d=d||"fx"),this.each(function(){var p,v=Be.get(this),T=v[d+"queue"],R=v[d+"queueHooks"],S=m.timers,B=T?T.length:0;for(v.finish=!0,m.queue(this,d,[]),R&&R.stop&&R.stop.call(this,!0),p=S.length;p--;)S[p].elem===this&&S[p].queue===d&&(S[p].anim.stop(!0),S.splice(p,1));for(p=0;p<B;p++)T[p]&&T[p].finish&&T[p].finish.call(this);delete v.finish})}}),m.each(["toggle","show","hide"],function(d,p){var v=m.fn[p];m.fn[p]=function(T,R,S){return T==null||typeof T=="boolean"?v.apply(this,arguments):this.animate(po(p,!0),T,R,S)}}),m.each({slideDown:po("show"),slideUp:po("hide"),slideToggle:po("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,p){m.fn[d]=function(v,T,R){return this.animate(p,v,T,R)}}),m.timers=[],m.fx.tick=function(){var d,p=0,v=m.timers;for(It=Date.now();p<v.length;p++)d=v[p],!d()&&v[p]===d&&v.splice(p--,1);v.length||m.fx.stop(),It=void 0},m.fx.timer=function(d){m.timers.push(d),m.fx.start()},m.fx.interval=13,m.fx.start=function(){ir||(ir=!0,ho())},m.fx.stop=function(){ir=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(d,p){return d=m.fx&&m.fx.speeds[d]||d,p=p||"fx",this.queue(p,function(v,T){var R=e.setTimeout(v,d);T.stop=function(){e.clearTimeout(R)}})},function(){var d=A.createElement("input"),p=A.createElement("select"),v=p.appendChild(A.createElement("option"));d.type="checkbox",W.checkOn=d.value!=="",W.optSelected=v.selected,d=A.createElement("input"),d.value="t",d.type="radio",W.radioValue=d.value==="t"}();var yl,mi=m.expr.attrHandle;m.fn.extend({attr:function(d,p){return mt(this,m.attr,d,p,arguments.length>1)},removeAttr:function(d){return this.each(function(){m.removeAttr(this,d)})}}),m.extend({attr:function(d,p,v){var T,R,S=d.nodeType;if(!(S===3||S===8||S===2)){if(typeof d.getAttribute>"u")return m.prop(d,p,v);if((S!==1||!m.isXMLDoc(d))&&(R=m.attrHooks[p.toLowerCase()]||(m.expr.match.bool.test(p)?yl:void 0)),v!==void 0){if(v===null){m.removeAttr(d,p);return}return R&&"set"in R&&(T=R.set(d,v,p))!==void 0?T:(d.setAttribute(p,v+""),v)}return R&&"get"in R&&(T=R.get(d,p))!==null?T:(T=m.find.attr(d,p),T??void 0)}},attrHooks:{type:{set:function(d,p){if(!W.radioValue&&p==="radio"&&z(d,"input")){var v=d.value;return d.setAttribute("type",p),v&&(d.value=v),p}}}},removeAttr:function(d,p){var v,T=0,R=p&&p.match(_e);if(R&&d.nodeType===1)for(;v=R[T++];)d.removeAttribute(v)}}),yl={set:function(d,p,v){return p===!1?m.removeAttr(d,v):d.setAttribute(v,v),v}},m.each(m.expr.match.bool.source.match(/\w+/g),function(d,p){var v=mi[p]||m.find.attr;mi[p]=function(T,R,S){var B,P,Y=R.toLowerCase();return S||(P=mi[Y],mi[Y]=B,B=v(T,R,S)!=null?Y:null,mi[Y]=P),B}});var xl=/^(?:input|select|textarea|button)$/i,Ws=/^(?:a|area)$/i;m.fn.extend({prop:function(d,p){return mt(this,m.prop,d,p,arguments.length>1)},removeProp:function(d){return this.each(function(){delete this[m.propFix[d]||d]})}}),m.extend({prop:function(d,p,v){var T,R,S=d.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!m.isXMLDoc(d))&&(p=m.propFix[p]||p,R=m.propHooks[p]),v!==void 0?R&&"set"in R&&(T=R.set(d,v,p))!==void 0?T:d[p]=v:R&&"get"in R&&(T=R.get(d,p))!==null?T:d[p]},propHooks:{tabIndex:{get:function(d){var p=m.find.attr(d,"tabindex");return p?parseInt(p,10):xl.test(d.nodeName)||Ws.test(d.nodeName)&&d.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),W.optSelected||(m.propHooks.selected={get:function(d){var p=d.parentNode;return p&&p.parentNode&&p.parentNode.selectedIndex,null},set:function(d){var p=d.parentNode;p&&(p.selectedIndex,p.parentNode&&p.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});function bi(d){var p=d.match(_e)||[];return p.join(" ")}function _i(d){return d.getAttribute&&d.getAttribute("class")||""}function mo(d){return Array.isArray(d)?d:typeof d=="string"?d.match(_e)||[]:[]}m.fn.extend({addClass:function(d){var p,v,T,R,S,B;return U(d)?this.each(function(P){m(this).addClass(d.call(this,P,_i(this)))}):(p=mo(d),p.length?this.each(function(){if(T=_i(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(S=0;S<p.length;S++)R=p[S],v.indexOf(" "+R+" ")<0&&(v+=R+" ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this)},removeClass:function(d){var p,v,T,R,S,B;return U(d)?this.each(function(P){m(this).removeClass(d.call(this,P,_i(this)))}):arguments.length?(p=mo(d),p.length?this.each(function(){if(T=_i(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(S=0;S<p.length;S++)for(R=p[S];v.indexOf(" "+R+" ")>-1;)v=v.replace(" "+R+" "," ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this):this.attr("class","")},toggleClass:function(d,p){var v,T,R,S,B=typeof d,P=B==="string"||Array.isArray(d);return U(d)?this.each(function(Y){m(this).toggleClass(d.call(this,Y,_i(this),p),p)}):typeof p=="boolean"&&P?p?this.addClass(d):this.removeClass(d):(v=mo(d),this.each(function(){if(P)for(S=m(this),R=0;R<v.length;R++)T=v[R],S.hasClass(T)?S.removeClass(T):S.addClass(T);else(d===void 0||B==="boolean")&&(T=_i(this),T&&Be.set(this,"__className__",T),this.setAttribute&&this.setAttribute("class",T||d===!1?"":Be.get(this,"__className__")||""))}))},hasClass:function(d){var p,v,T=0;for(p=" "+d+" ";v=this[T++];)if(v.nodeType===1&&(" "+bi(_i(v))+" ").indexOf(p)>-1)return!0;return!1}});var Os=/\r/g;m.fn.extend({val:function(d){var p,v,T,R=this[0];return arguments.length?(T=U(d),this.each(function(S){var B;this.nodeType===1&&(T?B=d.call(this,S,m(this).val()):B=d,B==null?B="":typeof B=="number"?B+="":Array.isArray(B)&&(B=m.map(B,function(P){return P==null?"":P+""})),p=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!p||!("set"in p)||p.set(this,B,"value")===void 0)&&(this.value=B))})):R?(p=m.valHooks[R.type]||m.valHooks[R.nodeName.toLowerCase()],p&&"get"in p&&(v=p.get(R,"value"))!==void 0?v:(v=R.value,typeof v=="string"?v.replace(Os,""):v??"")):void 0}}),m.extend({valHooks:{option:{get:function(d){var p=m.find.attr(d,"value");return p??bi(m.text(d))}},select:{get:function(d){var p,v,T,R=d.options,S=d.selectedIndex,B=d.type==="select-one",P=B?null:[],Y=B?S+1:R.length;for(S<0?T=Y:T=B?S:0;T<Y;T++)if(v=R[T],(v.selected||T===S)&&!v.disabled&&(!v.parentNode.disabled||!z(v.parentNode,"optgroup"))){if(p=m(v).val(),B)return p;P.push(p)}return P},set:function(d,p){for(var v,T,R=d.options,S=m.makeArray(p),B=R.length;B--;)T=R[B],(T.selected=m.inArray(m.valHooks.option.get(T),S)>-1)&&(v=!0);return v||(d.selectedIndex=-1),S}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(d,p){if(Array.isArray(p))return d.checked=m.inArray(m(d).val(),p)>-1}},W.checkOn||(m.valHooks[this].get=function(d){return d.getAttribute("value")===null?"on":d.value})});var aa=e.location,Zs={guid:Date.now()},Tl=/\?/;m.parseXML=function(d){var p,v;if(!d||typeof d!="string")return null;try{p=new e.DOMParser().parseFromString(d,"text/xml")}catch{}return v=p&&p.getElementsByTagName("parsererror")[0],(!p||v)&&m.error("Invalid XML: "+(v?m.map(v.childNodes,function(T){return T.textContent}).join(`
17
- `):d)),p};var Cl=/^(?:focusinfocus|focusoutblur)$/,jn=function(d){d.stopPropagation()};m.extend(m.event,{trigger:function(d,p,v,T){var R,S,B,P,Y,ne,ce,be,le=[v||A],Se=I.call(d,"type")?d.type:d,ft=I.call(d,"namespace")?d.namespace.split("."):[];if(S=be=B=v=v||A,!(v.nodeType===3||v.nodeType===8)&&!Cl.test(Se+m.event.triggered)&&(Se.indexOf(".")>-1&&(ft=Se.split("."),Se=ft.shift(),ft.sort()),Y=Se.indexOf(":")<0&&"on"+Se,d=d[m.expando]?d:new m.Event(Se,typeof d=="object"&&d),d.isTrigger=T?2:3,d.namespace=ft.join("."),d.rnamespace=d.namespace?new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d.result=void 0,d.target||(d.target=v),p=p==null?[d]:m.makeArray(p,[d]),ce=m.event.special[Se]||{},!(!T&&ce.trigger&&ce.trigger.apply(v,p)===!1))){if(!T&&!ce.noBubble&&!X(v)){for(P=ce.delegateType||Se,Cl.test(P+Se)||(S=S.parentNode);S;S=S.parentNode)le.push(S),B=S;B===(v.ownerDocument||A)&&le.push(B.defaultView||B.parentWindow||e)}for(R=0;(S=le[R++])&&!d.isPropagationStopped();)be=S,d.type=R>1?P:ce.bindType||Se,ne=(Be.get(S,"events")||Object.create(null))[d.type]&&Be.get(S,"handle"),ne&&ne.apply(S,p),ne=Y&&S[Y],ne&&ne.apply&&Ot(S)&&(d.result=ne.apply(S,p),d.result===!1&&d.preventDefault());return d.type=Se,!T&&!d.isDefaultPrevented()&&(!ce._default||ce._default.apply(le.pop(),p)===!1)&&Ot(v)&&Y&&U(v[Se])&&!X(v)&&(B=v[Y],B&&(v[Y]=null),m.event.triggered=Se,d.isPropagationStopped()&&be.addEventListener(Se,jn),v[Se](),d.isPropagationStopped()&&be.removeEventListener(Se,jn),m.event.triggered=void 0,B&&(v[Y]=B)),d.result}},simulate:function(d,p,v){var T=m.extend(new m.Event,v,{type:d,isSimulated:!0});m.event.trigger(T,null,p)}}),m.fn.extend({trigger:function(d,p){return this.each(function(){m.event.trigger(d,p,this)})},triggerHandler:function(d,p){var v=this[0];if(v)return m.event.trigger(d,p,v,!0)}});var Qf=/\[\]$/,Ms=/\r?\n/g,bo=/^(?:submit|button|image|reset|file)$/i,ka=/^(?:input|select|textarea|keygen)/i;function Il(d,p,v,T){var R;if(Array.isArray(p))m.each(p,function(S,B){v||Qf.test(d)?T(d,B):Il(d+"["+(typeof B=="object"&&B!=null?S:"")+"]",B,v,T)});else if(!v&&V(p)==="object")for(R in p)Il(d+"["+R+"]",p[R],v,T);else T(d,p)}m.param=function(d,p){var v,T=[],R=function(S,B){var P=U(B)?B():B;T[T.length]=encodeURIComponent(S)+"="+encodeURIComponent(P??"")};if(d==null)return"";if(Array.isArray(d)||d.jquery&&!m.isPlainObject(d))m.each(d,function(){R(this.name,this.value)});else for(v in d)Il(v,d[v],p,R);return T.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var d=m.prop(this,"elements");return d?m.makeArray(d):this}).filter(function(){var d=this.type;return this.name&&!m(this).is(":disabled")&&ka.test(this.nodeName)&&!bo.test(d)&&(this.checked||!Lt.test(d))}).map(function(d,p){var v=m(this).val();return v==null?null:Array.isArray(v)?m.map(v,function(T){return{name:p.name,value:T.replace(Ms,`\r
18
- `)}}):{name:p.name,value:v.replace(Ms,`\r
19
- `)}}).get()}});var Hf=/%20/g,Xf=/#.*$/,Jf=/([?&])_=[^&]*/,wl=/^(.*?):[ \t]*([^\r\n]*)$/mg,Vs=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,jf=/^(?:GET|HEAD)$/,Qs=/^\/\//,Rl={},oa={},Ga="*/".concat("*"),Da=A.createElement("a");Da.href=aa.href;function Sl(d){return function(p,v){typeof p!="string"&&(v=p,p="*");var T,R=0,S=p.toLowerCase().match(_e)||[];if(U(v))for(;T=S[R++];)T[0]==="+"?(T=T.slice(1)||"*",(d[T]=d[T]||[]).unshift(v)):(d[T]=d[T]||[]).push(v)}}function El(d,p,v,T){var R={},S=d===oa;function B(P){var Y;return R[P]=!0,m.each(d[P]||[],function(ne,ce){var be=ce(p,v,T);if(typeof be=="string"&&!S&&!R[be])return p.dataTypes.unshift(be),B(be),!1;if(S)return!(Y=be)}),Y}return B(p.dataTypes[0])||!R["*"]&&B("*")}function la(d,p){var v,T,R=m.ajaxSettings.flatOptions||{};for(v in p)p[v]!==void 0&&((R[v]?d:T||(T={}))[v]=p[v]);return T&&m.extend(!0,d,T),d}function Yf(d,p,v){for(var T,R,S,B,P=d.contents,Y=d.dataTypes;Y[0]==="*";)Y.shift(),T===void 0&&(T=d.mimeType||p.getResponseHeader("Content-Type"));if(T){for(R in P)if(P[R]&&P[R].test(T)){Y.unshift(R);break}}if(Y[0]in v)S=Y[0];else{for(R in v){if(!Y[0]||d.converters[R+" "+Y[0]]){S=R;break}B||(B=R)}S=S||B}if(S)return S!==Y[0]&&Y.unshift(S),v[S]}function Hs(d,p,v,T){var R,S,B,P,Y,ne={},ce=d.dataTypes.slice();if(ce[1])for(B in d.converters)ne[B.toLowerCase()]=d.converters[B];for(S=ce.shift();S;)if(d.responseFields[S]&&(v[d.responseFields[S]]=p),!Y&&T&&d.dataFilter&&(p=d.dataFilter(p,d.dataType)),Y=S,S=ce.shift(),S){if(S==="*")S=Y;else if(Y!=="*"&&Y!==S){if(B=ne[Y+" "+S]||ne["* "+S],!B){for(R in ne)if(P=R.split(" "),P[1]===S&&(B=ne[Y+" "+P[0]]||ne["* "+P[0]],B)){B===!0?B=ne[R]:ne[R]!==!0&&(S=P[0],ce.unshift(P[1]));break}}if(B!==!0)if(B&&d.throws)p=B(p);else try{p=B(p)}catch(be){return{state:"parsererror",error:B?be:"No conversion from "+Y+" to "+S}}}}return{state:"success",data:p}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:aa.href,type:"GET",isLocal:Vs.test(aa.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ga,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,p){return p?la(la(d,m.ajaxSettings),p):la(m.ajaxSettings,d)},ajaxPrefilter:Sl(Rl),ajaxTransport:Sl(oa),ajax:function(d,p){typeof d=="object"&&(p=d,d=void 0),p=p||{};var v,T,R,S,B,P,Y,ne,ce,be,le=m.ajaxSetup({},p),Se=le.context||le,ft=le.context&&(Se.nodeType||Se.jquery)?m(Se):m.event,Nt=m.Deferred(),vt=m.Callbacks("once memory"),gr=le.statusCode||{},zt={},Yn={},Pn="canceled",St={readyState:0,getResponseHeader:function(rt){var ar;if(Y){if(!S)for(S={};ar=wl.exec(R);)S[ar[1].toLowerCase()+" "]=(S[ar[1].toLowerCase()+" "]||[]).concat(ar[2]);ar=S[rt.toLowerCase()+" "]}return ar==null?null:ar.join(", ")},getAllResponseHeaders:function(){return Y?R:null},setRequestHeader:function(rt,ar){return Y==null&&(rt=Yn[rt.toLowerCase()]=Yn[rt.toLowerCase()]||rt,zt[rt]=ar),this},overrideMimeType:function(rt){return Y==null&&(le.mimeType=rt),this},statusCode:function(rt){var ar;if(rt)if(Y)St.always(rt[St.status]);else for(ar in rt)gr[ar]=[gr[ar],rt[ar]];return this},abort:function(rt){var ar=rt||Pn;return v&&v.abort(ar),On(0,ar),this}};if(Nt.promise(St),le.url=((d||le.url||aa.href)+"").replace(Qs,aa.protocol+"//"),le.type=p.method||p.type||le.method||le.type,le.dataTypes=(le.dataType||"*").toLowerCase().match(_e)||[""],le.crossDomain==null){P=A.createElement("a");try{P.href=le.url,P.href=P.href,le.crossDomain=Da.protocol+"//"+Da.host!=P.protocol+"//"+P.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=m.param(le.data,le.traditional)),El(Rl,le,p,St),Y)return St;ne=m.event&&le.global,ne&&m.active++===0&&m.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!jf.test(le.type),T=le.url.replace(Xf,""),le.hasContent?le.data&&le.processData&&(le.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(le.data=le.data.replace(Hf,"+")):(be=le.url.slice(T.length),le.data&&(le.processData||typeof le.data=="string")&&(T+=(Tl.test(T)?"&":"?")+le.data,delete le.data),le.cache===!1&&(T=T.replace(Jf,"$1"),be=(Tl.test(T)?"&":"?")+"_="+Zs.guid+++be),le.url=T+be),le.ifModified&&(m.lastModified[T]&&St.setRequestHeader("If-Modified-Since",m.lastModified[T]),m.etag[T]&&St.setRequestHeader("If-None-Match",m.etag[T])),(le.data&&le.hasContent&&le.contentType!==!1||p.contentType)&&St.setRequestHeader("Content-Type",le.contentType),St.setRequestHeader("Accept",le.dataTypes[0]&&le.accepts[le.dataTypes[0]]?le.accepts[le.dataTypes[0]]+(le.dataTypes[0]!=="*"?", "+Ga+"; q=0.01":""):le.accepts["*"]);for(ce in le.headers)St.setRequestHeader(ce,le.headers[ce]);if(le.beforeSend&&(le.beforeSend.call(Se,St,le)===!1||Y))return St.abort();if(Pn="abort",vt.add(le.complete),St.done(le.success),St.fail(le.error),v=El(oa,le,p,St),!v)On(-1,"No Transport");else{if(St.readyState=1,ne&&ft.trigger("ajaxSend",[St,le]),Y)return St;le.async&&le.timeout>0&&(B=e.setTimeout(function(){St.abort("timeout")},le.timeout));try{Y=!1,v.send(zt,On)}catch(rt){if(Y)throw rt;On(-1,rt)}}function On(rt,ar,sa,Vi){var zn,ua,qn,Kn,vi,Rn=ar;Y||(Y=!0,B&&e.clearTimeout(B),v=void 0,R=Vi||"",St.readyState=rt>0?4:0,zn=rt>=200&&rt<300||rt===304,sa&&(Kn=Yf(le,St,sa)),!zn&&m.inArray("script",le.dataTypes)>-1&&m.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),Kn=Hs(le,Kn,St,zn),zn?(le.ifModified&&(vi=St.getResponseHeader("Last-Modified"),vi&&(m.lastModified[T]=vi),vi=St.getResponseHeader("etag"),vi&&(m.etag[T]=vi)),rt===204||le.type==="HEAD"?Rn="nocontent":rt===304?Rn="notmodified":(Rn=Kn.state,ua=Kn.data,qn=Kn.error,zn=!qn)):(qn=Rn,(rt||!Rn)&&(Rn="error",rt<0&&(rt=0))),St.status=rt,St.statusText=(ar||Rn)+"",zn?Nt.resolveWith(Se,[ua,Rn,St]):Nt.rejectWith(Se,[St,Rn,qn]),St.statusCode(gr),gr=void 0,ne&&ft.trigger(zn?"ajaxSuccess":"ajaxError",[St,le,zn?ua:qn]),vt.fireWith(Se,[St,Rn]),ne&&(ft.trigger("ajaxComplete",[St,le]),--m.active||m.event.trigger("ajaxStop")))}return St},getJSON:function(d,p,v){return m.get(d,p,v,"json")},getScript:function(d,p){return m.get(d,void 0,p,"script")}}),m.each(["get","post"],function(d,p){m[p]=function(v,T,R,S){return U(T)&&(S=S||R,R=T,T=void 0),m.ajax(m.extend({url:v,type:p,dataType:S,data:T,success:R},m.isPlainObject(v)&&v))}}),m.ajaxPrefilter(function(d){var p;for(p in d.headers)p.toLowerCase()==="content-type"&&(d.contentType=d.headers[p]||"")}),m._evalUrl=function(d,p,v){return m.ajax({url:d,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(T){m.globalEval(T,p,v)}})},m.fn.extend({wrapAll:function(d){var p;return this[0]&&(U(d)&&(d=d.call(this[0])),p=m(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var v=this;v.firstElementChild;)v=v.firstElementChild;return v}).append(this)),this},wrapInner:function(d){return U(d)?this.each(function(p){m(this).wrapInner(d.call(this,p))}):this.each(function(){var p=m(this),v=p.contents();v.length?v.wrapAll(d):p.append(d)})},wrap:function(d){var p=U(d);return this.each(function(v){m(this).wrapAll(p?d.call(this,v):d)})},unwrap:function(d){return this.parent(d).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(d){return!m.expr.pseudos.visible(d)},m.expr.pseudos.visible=function(d){return!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var Wn={0:200,1223:204},Wa=m.ajaxSettings.xhr();W.cors=!!Wa&&"withCredentials"in Wa,W.ajax=Wa=!!Wa,m.ajaxTransport(function(d){var p,v;if(W.cors||Wa&&!d.crossDomain)return{send:function(T,R){var S,B=d.xhr();if(B.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(S in d.xhrFields)B[S]=d.xhrFields[S];d.mimeType&&B.overrideMimeType&&B.overrideMimeType(d.mimeType),!d.crossDomain&&!T["X-Requested-With"]&&(T["X-Requested-With"]="XMLHttpRequest");for(S in T)B.setRequestHeader(S,T[S]);p=function(P){return function(){p&&(p=v=B.onload=B.onerror=B.onabort=B.ontimeout=B.onreadystatechange=null,P==="abort"?B.abort():P==="error"?typeof B.status!="number"?R(0,"error"):R(B.status,B.statusText):R(Wn[B.status]||B.status,B.statusText,(B.responseType||"text")!=="text"||typeof B.responseText!="string"?{binary:B.response}:{text:B.responseText},B.getAllResponseHeaders()))}},B.onload=p(),v=B.onerror=B.ontimeout=p("error"),B.onabort!==void 0?B.onabort=v:B.onreadystatechange=function(){B.readyState===4&&e.setTimeout(function(){p&&v()})},p=p("abort");try{B.send(d.hasContent&&d.data||null)}catch(P){if(p)throw P}},abort:function(){p&&p()}}}),m.ajaxPrefilter(function(d){d.crossDomain&&(d.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(d){return m.globalEval(d),d}}}),m.ajaxPrefilter("script",function(d){d.cache===void 0&&(d.cache=!1),d.crossDomain&&(d.type="GET")}),m.ajaxTransport("script",function(d){if(d.crossDomain||d.scriptAttrs){var p,v;return{send:function(T,R){p=m("<script>").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",v=function(S){p.remove(),v=null,S&&R(S.type==="error"?404:200,S.type)}),A.head.appendChild(p[0])},abort:function(){v&&v()}}}});var Xs=[],Oa=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=Xs.pop()||m.expando+"_"+Zs.guid++;return this[d]=!0,d}}),m.ajaxPrefilter("json jsonp",function(d,p,v){var T,R,S,B=d.jsonp!==!1&&(Oa.test(d.url)?"url":typeof d.data=="string"&&(d.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Oa.test(d.data)&&"data");if(B||d.dataTypes[0]==="jsonp")return T=d.jsonpCallback=U(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,B?d[B]=d[B].replace(Oa,"$1"+T):d.jsonp!==!1&&(d.url+=(Tl.test(d.url)?"&":"?")+d.jsonp+"="+T),d.converters["script json"]=function(){return S||m.error(T+" was not called"),S[0]},d.dataTypes[0]="json",R=e[T],e[T]=function(){S=arguments},v.always(function(){R===void 0?m(e).removeProp(T):e[T]=R,d[T]&&(d.jsonpCallback=p.jsonpCallback,Xs.push(T)),S&&U(R)&&R(S[0]),S=R=void 0}),"script"}),W.createHTMLDocument=function(){var d=A.implementation.createHTMLDocument("").body;return d.innerHTML="<form></form><form></form>",d.childNodes.length===2}(),m.parseHTML=function(d,p,v){if(typeof d!="string")return[];typeof p=="boolean"&&(v=p,p=!1);var T,R,S;return p||(W.createHTMLDocument?(p=A.implementation.createHTMLDocument(""),T=p.createElement("base"),T.href=A.location.href,p.head.appendChild(T)):p=A),R=Ne.exec(d),S=!v&&[],R?[p.createElement(R[1])]:(R=kn([d],p,S),S&&S.length&&m(S).remove(),m.merge([],R.childNodes))},m.fn.load=function(d,p,v){var T,R,S,B=this,P=d.indexOf(" ");return P>-1&&(T=bi(d.slice(P)),d=d.slice(0,P)),U(p)?(v=p,p=void 0):p&&typeof p=="object"&&(R="POST"),B.length>0&&m.ajax({url:d,type:R||"GET",dataType:"html",data:p}).done(function(Y){S=arguments,B.html(T?m("<div>").append(m.parseHTML(Y)).find(T):Y)}).always(v&&function(Y,ne){B.each(function(){v.apply(this,S||[Y.responseText,ne,Y])})}),this},m.expr.pseudos.animated=function(d){return m.grep(m.timers,function(p){return d===p.elem}).length},m.offset={setOffset:function(d,p,v){var T,R,S,B,P,Y,ne,ce=m.css(d,"position"),be=m(d),le={};ce==="static"&&(d.style.position="relative"),P=be.offset(),S=m.css(d,"top"),Y=m.css(d,"left"),ne=(ce==="absolute"||ce==="fixed")&&(S+Y).indexOf("auto")>-1,ne?(T=be.position(),B=T.top,R=T.left):(B=parseFloat(S)||0,R=parseFloat(Y)||0),U(p)&&(p=p.call(d,v,m.extend({},P))),p.top!=null&&(le.top=p.top-P.top+B),p.left!=null&&(le.left=p.left-P.left+R),"using"in p?p.using.call(d,le):be.css(le)}},m.fn.extend({offset:function(d){if(arguments.length)return d===void 0?this:this.each(function(R){m.offset.setOffset(this,d,R)});var p,v,T=this[0];if(T)return T.getClientRects().length?(p=T.getBoundingClientRect(),v=T.ownerDocument.defaultView,{top:p.top+v.pageYOffset,left:p.left+v.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var d,p,v,T=this[0],R={top:0,left:0};if(m.css(T,"position")==="fixed")p=T.getBoundingClientRect();else{for(p=this.offset(),v=T.ownerDocument,d=T.offsetParent||v.documentElement;d&&(d===v.body||d===v.documentElement)&&m.css(d,"position")==="static";)d=d.parentNode;d&&d!==T&&d.nodeType===1&&(R=m(d).offset(),R.top+=m.css(d,"borderTopWidth",!0),R.left+=m.css(d,"borderLeftWidth",!0))}return{top:p.top-R.top-m.css(T,"marginTop",!0),left:p.left-R.left-m.css(T,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent;d&&m.css(d,"position")==="static";)d=d.offsetParent;return d||Tr})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,p){var v=p==="pageYOffset";m.fn[d]=function(T){return mt(this,function(R,S,B){var P;if(X(R)?P=R:R.nodeType===9&&(P=R.defaultView),B===void 0)return P?P[p]:R[S];P?P.scrollTo(v?P.pageXOffset:B,v?B:P.pageYOffset):R[S]=B},d,T,arguments.length)}}),m.each(["top","left"],function(d,p){m.cssHooks[p]=kt(W.pixelPosition,function(v,T){if(T)return T=Oe(v,p),In.test(T)?m(v).position()[p]+"px":T})}),m.each({Height:"height",Width:"width"},function(d,p){m.each({padding:"inner"+d,content:p,"":"outer"+d},function(v,T){m.fn[T]=function(R,S){var B=arguments.length&&(v||typeof R!="boolean"),P=v||(R===!0||S===!0?"margin":"border");return mt(this,function(Y,ne,ce){var be;return X(Y)?T.indexOf("outer")===0?Y["inner"+d]:Y.document.documentElement["client"+d]:Y.nodeType===9?(be=Y.documentElement,Math.max(Y.body["scroll"+d],be["scroll"+d],Y.body["offset"+d],be["offset"+d],be["client"+d])):ce===void 0?m.css(Y,ne,P):m.style(Y,ne,ce,P)},p,B?R:void 0,B)}})}),m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(d,p){m.fn[p]=function(v){return this.on(p,v)}}),m.fn.extend({bind:function(d,p,v){return this.on(d,null,p,v)},unbind:function(d,p){return this.off(d,null,p)},delegate:function(d,p,v,T){return this.on(p,d,v,T)},undelegate:function(d,p,v){return arguments.length===1?this.off(d,"**"):this.off(p,d||"**",v)},hover:function(d,p){return this.on("mouseenter",d).on("mouseleave",p||d)}}),m.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(d,p){m.fn[p]=function(v,T){return arguments.length>0?this.on(p,null,v,T):this.trigger(p)}});var Js=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;m.proxy=function(d,p){var v,T,R;if(typeof p=="string"&&(v=d[p],p=d,d=v),!!U(d))return T=u.call(arguments,2),R=function(){return d.apply(p||this,T.concat(u.call(arguments)))},R.guid=d.guid=d.guid||m.guid++,R},m.holdReady=function(d){d?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=z,m.isFunction=U,m.isWindow=X,m.camelCase=tr,m.type=V,m.now=Date.now,m.isNumeric=function(d){var p=m.type(d);return(p==="number"||p==="string")&&!isNaN(d-parseFloat(d))},m.trim=function(d){return d==null?"":(d+"").replace(Js,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return m});var Ni=e.jQuery,Al=e.$;return m.noConflict=function(d){return e.$===m&&(e.$=Al),d&&e.jQuery===m&&(e.jQuery=Ni),m},typeof r>"u"&&(e.jQuery=e.$=m),m})});var sy=Wt(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var ty="fas",ry="table",ny=512,iy=512,ay=[],oy="f0ce",ly="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z";di.definition={prefix:ty,iconName:ry,icon:[ny,iy,ay,oy,ly]};di.faTable=di.definition;di.prefix=ty;di.iconName=ry;di.width=ny;di.height=iy;di.ligatures=ay;di.unicode=oy;di.svgPathData=ly});var uy=Wt((Bs,ih)=>{(function(r,n){typeof Bs=="object"&&typeof ih=="object"?ih.exports=n():typeof define=="function"&&define.amd?define([],n):typeof Bs=="object"?Bs.ColumnResizer=n():r.ColumnResizer=n()})(Bs,()=>(()=>{"use strict";var e={887:u=>{u.exports=function(h){for(var b=5381,x=h.length;x;)b=33*b^h.charCodeAt(--x);return b>>>0}}},r={};function n(u){var c=r[u];if(c!==void 0)return c.exports;var h=r[u]={exports:{}};return e[u](h,h.exports,n),h.exports}n.n=u=>{var c=u&&u.__esModule?()=>u.default:()=>u;return n.d(c,{a:c}),c},n.d=(u,c)=>{for(var h in c)n.o(c,h)&&!n.o(u,h)&&Object.defineProperty(u,h,{enumerable:!0,get:c[h]})},n.o=(u,c)=>Object.prototype.hasOwnProperty.call(u,c),n.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>U});var u=n(887),c=n.n(u);function h(X){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},h(X)}function b(X,A){for(var k=0;k<A.length;k++){var K=A[k];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(X,F(K.key),K)}}function x(X,A,k){return A&&b(X.prototype,A),k&&b(X,k),Object.defineProperty(X,"prototype",{writable:!1}),X}function _(X,A){if(!(X instanceof A))throw new TypeError("Cannot call a class as a function")}function I(X,A,k){return(A=F(A))in X?Object.defineProperty(X,A,{value:k,enumerable:!0,configurable:!0,writable:!0}):X[A]=k,X}function F(X){var A=function(K,V){if(h(K)!=="object"||K===null)return K;var D=K[Symbol.toPrimitive];if(D!==void 0){var ee=D.call(K,V||"default");if(h(ee)!=="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(K)}(X,"string");return h(A)==="symbol"?A:String(A)}var G,W=(G=0,function(){return G++}),U=x(function X(A){var k=this,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,X),I(this,"ID","id"),I(this,"PX","px"),I(this,"RESIZABLE","grip-resizable"),I(this,"FLEX","grip-flex"),I(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),I(this,"reset",function(V){return k.init(V)}),I(this,"onResize",function(){var V=k.tb;if(V.classList.remove(k.RESIZABLE),V.opt.fixed){V.tableWidth=Number(window.getComputedStyle(V).width.replace(/px/,"")).valueOf();for(var D=0,ee=0;ee<V.columnCnt;ee++)D+=V.columns[ee].w;for(var m=0;m<V.columnCnt;m++)V.columns[m].style.width=Math.round(1e3*V.columns[m].w/D)/10+"%",V.columns[m].locked=!0,V.opt.currentWidths[m]=Number(window.getComputedStyle(V.columns[m]).width.replace(/px/,"")).valueOf()}else k.applyBounds(),V.opt.resizeMode==="flex"&&V.opt.serialize&&k.serializeStore();V.classList.add(k.RESIZABLE),k.syncGrips()}),I(this,"onGripMouseDown",function(V){var D=V.target.parentNode.data,ee=k.tb,m=ee.grips[D.i],Z=V.touches;if(m.ox=Z?Z[0].pageX:V.pageX,m.l=m.offsetLeft,m.x=m.l,k.createStyle(document.querySelector("head"),"*{cursor:"+ee.opt.dragCursor+"!important}"),document.addEventListener("touchmove",k.onGripDrag),document.addEventListener("mousemove",k.onGripDrag),document.addEventListener("touchend",k.onGripDragOver),document.addEventListener("mouseup",k.onGripDragOver),m.classList.add(ee.opt.draggingClass),k.grip=m,ee.columns[D.i].locked)for(var z,se=0;se<ee.columnCnt;se++)(z=ee.columns[se]).locked=!1,z.w=Number(window.getComputedStyle(z).width.replace(/px/,"")).valueOf();V.preventDefault()}),I(this,"onGripDrag",function(V){var D=k.grip;if(D){var ee=D.t,m=V.touches,Z=(m?m[0].pageX:V.pageX)-D.ox+D.l,z=ee.opt.minWidth,se=D.i,Te=1.5*ee.cellSpace+z+ee.borderSpace,q=se===ee.columnCnt-1,he=se?ee.grips[se-1].offsetLeft+ee.cellSpace+z:Te,L=ee.opt.fixed?se===ee.columnCnt-1?ee.tableWidth-Te:ee.grips[se+1].offsetLeft-ee.cellSpace-z:1/0;if(Z=Math.max(he,Math.min(L,Z)),D.x=Z,D.style.left=Z+k.PX,q&&(D.w=ee.columns[se].w+Z-D.l),ee.opt.liveDrag){q?(ee.columns[se].style.width=D.w+k.PX,!ee.opt.fixed&&ee.opt.overflow?ee.style.minWidth=ee.tableWidth+Z-D.l+k.PX:ee.tableWidth=Number(window.getComputedStyle(ee).width.replace(/px/,"")).valueOf()):k.syncCols(ee,se,!1,ee.opt),k.syncGrips();var xe=ee.opt.onDrag;xe&&xe(V)}V.preventDefault()}}),I(this,"onGripDragOver",function(V){var D=k.grip;document.removeEventListener("touchend",k.onGripDragOver),document.removeEventListener("mouseup",k.onGripDragOver),document.removeEventListener("touchmove",k.onGripDrag),document.removeEventListener("mousemove",k.onGripDrag);var ee=document.querySelector("head").lastChild;if(ee.parentNode.removeChild(ee),D){if(D.classList.remove(D.t.opt.draggingClass),D.x-D.l!=0){var m=D.t,Z=m.opt.onResize,z=D.i;if(z===m.columnCnt-1){var se=m.columns[z];se.style.width=D.w+k.PX,se.w=D.w}else k.syncCols(m,z,!0,m.opt);m.opt.fixed||k.applyBounds(),k.syncGrips(),Z&&Z(V),m.opt.serialize&&k.serializeStore()}k.grip=null}}),I(this,"init",function(V){if(V.disable)return k.destroy();var D=k.tb,ee=D.getAttribute(k.ID)||k.RESIZABLE+W();if(!D.matches("table")||D.extended&&!V.partialRefresh)return null;var m=document.querySelector("head");if(k.createStyle(m," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black; } .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),V.hoverCursor&&V.hoverCursor!=="col-resize"){var Z=".grip-handle .grip-resizable:hover{cursor:"+V.hoverCursor+"!important}";k.createStyle(m,Z)}D.setAttribute(k.ID,ee);var z=D.opt;D.opt=k.extendOptions(V);var se=k.getTableHeaders(D);if(k.extendTable(se),V.remoteTable&&V.remoteTable.matches("table")){var Te=k.getTableHeaders(D.opt.remoteTable);se.length===Te.length?k.extendRemoteTable(D.opt.remoteTable,Te,D):console.warn("column count for remote table did not match")}return z}),I(this,"applyBounds",function(){var V=k.tb,D=V.columns.map(function(ee){return window.getComputedStyle(ee).width});V.style.width=window.getComputedStyle(V).width,V.tableWidth=Number(V.style.width.replace(/px/,"")).valueOf(),V.classList.remove(k.FLEX),V.columns.forEach(function(ee,m){ee.style.width=D[m];var Z=Number(D[m].replace(/px/,"")).valueOf();ee.w=Z,V.opt.currentWidths[m]=Z}),V.classList.add(k.FLEX)}),I(this,"serializeStore",function(){var V=k.store,D=k.tb;V[D.getAttribute(k.ID)]="";for(var ee=0,m=0;m<D.columns.length;m++){var Z=window.getComputedStyle(D.columns[m]).width.replace(/px/,"");V[D.getAttribute(k.ID)]+=Z+";",ee+=Number(Z).valueOf()}V[D.getAttribute(k.ID)]+=ee.toString(),D.opt.fixed||(V[D.getAttribute(k.ID)]+=";"+window.getComputedStyle(D).width.replace(/px/,""))}),I(this,"syncGrips",function(){var V=k.tb;V.gripContainer.style.width=V.tableWidth+k.PX;for(var D=0;D<V.columnCnt;D++){var ee=V.columns[D],m=ee.getBoundingClientRect(),Z=V.getBoundingClientRect();V.grips[D].style.left=m.left-Z.left+ee.offsetWidth+V.cellSpace/2+k.PX,V.grips[D].style.height=(V.opt.headerOnly?V.columns[0].offsetHeight:V.offsetHeight)+k.PX}}),I(this,"destroy",function(){var V=k.tb,D=V.getAttribute(k.ID);return D?(k.store[D]="",V.classList.remove(k.RESIZABLE),V.classList.remove(k.FLEX),V.remote&&(V.remote.classList.remove(k.RESIZABLE),V.remote.classList.remove(k.FLEX)),V.gripContainer&&V.gripContainer.parentNode&&V.gripContainer.parentNode.removeChild(V.gripContainer),delete V.extended,V.opt):null}),I(this,"createStyle",function(V,D){var ee=c()(D).toString(),m=V.querySelectorAll("style"),Z=Array.from(m).filter(function(se){return se.gripid===ee});if(!Z.length){var z=document.createElement("style");z.type="text/css",z.gripid=ee,z.styleSheet?z.styleSheet.cssText=D:z.appendChild(document.createTextNode(D)),V.appendChild(z)}}),I(this,"extendOptions",function(V){var D=Object.assign({},X.DEFAULTS,V);switch(D.fixed=!0,D.overflow=!1,D.resizeMode){case"flex":D.fixed=!1;break;case"overflow":D.fixed=!1,D.overflow=!0}return D}),I(this,"getTableHeaders",function(V){var D="#"+V.id,ee=Array.from(V.querySelectorAll(D+">thead>tr:nth-of-type(1)>th"));return(ee=ee.concat(Array.from(V.querySelectorAll(D+">thead>tr:nth-of-type(1)>td")))).length||(ee=(ee=(ee=(ee=Array.from(V.querySelectorAll(D+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(V.querySelectorAll(D+">tr:nth-of-type(1)>th")))).concat(Array.from(V.querySelectorAll(D+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(V.querySelectorAll(D+">tr:nth-of-type(1)>td")))),k.filterInvisible(ee,!1)}),I(this,"filterInvisible",function(V,D){return V.filter(function(ee){var m=D?-1:ee.offsetWidth,Z=D?-1:ee.offsetHeight;return!(m===0&&Z===0||ee.style&&ee.style.display&&window.getComputedStyle(ee).display==="none")})}),I(this,"extendTable",function(V){var D=k.tb;D.opt.removePadding&&D.classList.add("grip-padding"),D.classList.add(k.RESIZABLE),D.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),D.grips=[],D.columns=[],D.tableWidth=Number(window.getComputedStyle(D).width.replace(/px/,"")).valueOf(),D.gripContainer=D.previousElementSibling,D.opt.marginLeft&&(D.gripContainer.style.marginLeft=D.opt.marginLeft),D.opt.marginRight&&(D.gripContainer.style.marginRight=D.opt.marginRight),D.cellSpace=parseInt(k.legacyIE?D.cellSpacing||D.currentStyle.borderSpacing:window.getComputedStyle(D).borderSpacing.split(" ")[0].replace(/px/,""))||2,D.borderSpace=parseInt(k.legacyIE?D.border||D.currentStyle.borderLeftWidth:window.getComputedStyle(D).borderLeftWidth.replace(/px/,""))||1,D.extended=!0,k.createGrips(V)}),I(this,"extendRemoteTable",function(V,D,ee){ee.opt.removePadding&&V.classList.add("grip-padding"),V.classList.add(k.RESIZABLE),V.getAttribute(k.ID)||V.setAttribute(k.ID,ee.getAttribute(k.ID)+"remote"),V.columns=[],D.forEach(function(Z,z){var se=D[z];se.w=ee.columns[z].w,se.style.width=se.w+k.PX,se.removeAttribute("width"),V.columns.push(se)}),V.tableWidth=ee.tableWidth,V.cellSpace=ee.cellSpace,V.borderSpace=ee.borderSpace;var m=Array.from(V.querySelectorAll("col"));V.columnGrp=k.filterInvisible(m,!0),V.columnGrp.forEach(function(Z,z){Z.removeAttribute("width"),Z.style.width=ee.columnGrp[z].style.width}),ee.remote=V}),I(this,"createGrips",function(V){var D=k.tb;D.columnGrp=k.filterInvisible(Array.from(D.querySelectorAll("col")),!0),D.columnGrp.forEach(function(Z){Z.removeAttribute("width")}),D.columnCnt=V.length;var ee=!1;k.store[D.getAttribute(k.ID)]&&(k.deserializeStore(V),ee=!0),V.forEach(function(Z,z){var se=V[z],Te=D.opt.disabledColumns.indexOf(z)!==-1;k.createDiv(D.gripContainer,"grip-handle");var q=D.gripContainer.lastChild;!Te&&D.opt.gripInnerHtml&&(q.innerHTML=D.opt.gripInnerHtml),k.createDiv(q,k.RESIZABLE),z===D.columnCnt-1&&(q.classList.add("grip-lastgrip"),D.opt.fixed&&(q.innerHTML="")),q.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),q.addEventListener("mousedown",k.onGripMouseDown,!0),Te?q.classList.add("grip-disabledgrip"):(q.classList.remove("grip-disabledgrip"),q.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),q.addEventListener("mousedown",k.onGripMouseDown,!0)),q.t=D,q.i=z,D.opt.widths[z]?se.w=D.opt.widths[z]:se.w=ee?Number(se.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(se).width.replace(/px/,"")).valueOf(),D.opt.currentWidths[z]=se.w,se.style.width=se.w+k.PX,se.removeAttribute("width"),q.data={i:z,t:D.getAttribute(k.ID),last:z===D.columnCnt-1},D.grips.push(q),D.columns.push(se)});var m=Array.from(D.querySelectorAll("td"));m.concat(Array.from(D.querySelectorAll("th"))),(m=(m=m.filter(function(Z){for(var z=0;z<V.length;z++)if(V[z]===Z)return!1;return!0})).filter(function(Z){return!(Z.querySelectorAll("table th").length||Z.querySelectorAll("table td").length)})).forEach(function(Z){Z.removeAttribute("width")}),D.opt.fixed||(D.removeAttribute("width"),D.classList.add(k.FLEX)),k.syncGrips()}),I(this,"deserializeStore",function(V){var D=k.tb;if(D.columnGrp.forEach(function(z){z.removeAttribute("width")}),D.opt.flush)k.store[D.getAttribute(k.ID)]="";else{var ee=k.store[D.getAttribute(k.ID)].split(";"),m=ee[D.columnCnt+1];!D.opt.fixed&&m&&(D.style.width=m+k.PX,D.opt.overflow&&(D.style.minWidth=m+k.PX,D.tableWidth=Number(m).valueOf()));for(var Z=0;Z<D.columnCnt;Z++)V[Z].style.width=ee[Z]+k.PX,D.columnGrp[Z]&&(D.columnGrp[Z].style.width=100*Number(ee[Z]).valueOf()/Number(ee[D.columnCnt]).valueOf()+"%")}}),I(this,"createDiv",function(V,D,ee){var m=document.createElement("div");m.classList.add(D),ee&&(m.innerHTML=ee),V.appendChild(m)}),I(this,"syncCols",function(V,D,ee,m){var Z=V.remote,z=k.grip.x-k.grip.l,se=V.columns[D],Te=V.columns[D+1];if(se&&Te){var q=se.w+z,he=Te.w-z,L=q+k.PX;if(se.style.width=L,V.columnGrp[D]&&V.columnGrp[D].style.width&&(V.columnGrp[D].style.width=L),Z&&(Z.columns[D].style.width=L,Z.columnGrp[D]&&Z.columnGrp[D].style.width&&(Z.columnGrp[D].style.width=L)),m.fixed){var xe=he+k.PX;Te.style.width=xe,V.columnGrp[D+1]&&V.columnGrp[D+1].style.width&&(V.columnGrp[D+1].style.width=xe),Z&&(Z.columns[D+1].style.width=xe,Z.columnGrp[D+1]&&Z.columnGrp[D+1].style.width&&(Z.columnGrp[D+1].style.width=xe))}else m.overflow&&(V.style.minWidth=V.tableWidth+z+k.PX);ee&&(se.w=q,Te.w=m.fixed?he:Te.w,Z&&(Z.columns[D].w=q,Z.columns[D+1].w=m.fixed?he:Te.w))}});try{this.store=sessionStorage}catch{this.store={}}this.grip=null,this.tb=A,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(K)});U.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],currentWidths:[],serialize:!0,onDrag:null,onResize:null}})(),a})())});var na=Wt((oh,lh)=>{(function(e,r){typeof oh=="object"&&typeof lh<"u"?lh.exports=r():typeof define=="function"&&define.amd?define(r):(e=e||self,e.CodeMirror=r())})(oh,function(){"use strict";var e=navigator.userAgent,r=navigator.platform,n=/gecko\/\d/i.test(e),a=/MSIE \d/.test(e),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),c=/Edge\/(\d+)/.exec(e),h=a||u||c,b=h&&(a?document.documentMode||6:+(c||u)[1]),x=!c&&/WebKit\//.test(e),_=x&&/Qt\/\d+\.\d+/.test(e),I=!c&&/Chrome\/(\d+)/.exec(e),F=I&&+I[1],G=/Opera\//.test(e),W=/Apple Computer/.test(navigator.vendor),U=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),X=/PhantomJS/.test(e),A=W&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),k=/Android/.test(e),K=A||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),V=A||/Mac/.test(r),D=/\bCrOS\b/.test(e),ee=/win/i.test(r),m=G&&e.match(/Version\/(\d*\.\d*)/);m&&(m=Number(m[1])),m&&m>=15&&(G=!1,x=!0);var Z=V&&(_||G&&(m==null||m<12.11)),z=n||h&&b>=9;function se(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Te=function(t,i){var l=t.className,o=se(i).exec(l);if(o){var s=l.slice(o.index+o[0].length);t.className=l.slice(0,o.index)+(s?o[1]+s:"")}};function q(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return q(t).appendChild(i)}function L(t,i,l,o){var s=document.createElement(t);if(l&&(s.className=l),o&&(s.style.cssText=o),typeof i=="string")s.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)s.appendChild(i[g]);return s}function xe(t,i,l,o){var s=L(t,i,l,o);return s.setAttribute("role","presentation"),s}var ae;document.createRange?ae=function(t,i,l,o){var s=document.createRange();return s.setEnd(o||t,l),s.setStart(t,i),s}:ae=function(t,i,l){var o=document.body.createTextRange();try{o.moveToElementText(t.parentNode)}catch{return o}return o.collapse(!0),o.moveEnd("character",l),o.moveStart("character",i),o};function Ie(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Fe(t){var i=t.ownerDocument||t,l;try{l=t.activeElement}catch{l=i.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function nt(t,i){var l=t.className;se(i).test(l)||(t.className+=(l?" ":"")+i)}function Ke(t,i){for(var l=t.split(" "),o=0;o<l.length;o++)l[o]&&!se(l[o]).test(i)&&(i+=" "+l[o]);return i}var lt=function(t){t.select()};A?lt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:h&&(lt=function(t){try{t.select()}catch{}});function Ne(t){return t.display.wrapper.ownerDocument}function Rt(t){return Pe(t.display.wrapper)}function Pe(t){return t.getRootNode?t.getRootNode():t.ownerDocument}function Qe(t){return Ne(t).defaultView}function Le(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Ge(t,i,l){i||(i={});for(var o in t)t.hasOwnProperty(o)&&(l!==!1||!i.hasOwnProperty(o))&&(i[o]=t[o]);return i}function He(t,i,l,o,s){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var g=o||0,y=s||0;;){var C=t.indexOf(" ",g);if(C<0||C>=i)return y+(i-g);y+=C-g,y+=l-y%l,g=C+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Le(this.onTimeout,this)};bt.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},bt.prototype.set=function(t,i){this.f=i;var l=+new Date+t;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=l)};function _e(t,i){for(var l=0;l<t.length;++l)if(t[l]==i)return l;return-1}var ct=50,Et={toString:function(){return"CodeMirror.Pass"}},pt={scroll:!1},st={origin:"*mouse"},$e={origin:"+move"};function Ct(t,i,l){for(var o=0,s=0;;){var g=t.indexOf(" ",o);g==-1&&(g=t.length);var y=g-o;if(g==t.length||s+y>=i)return o+Math.min(y,i-s);if(s+=g-o,s+=l-s%l,o=g+1,s>=i)return o}}var ut=[""];function mt(t){for(;ut.length<=t;)ut.push(Ye(ut)+" ");return ut[t]}function Ye(t){return t[t.length-1]}function vr(t,i){for(var l=[],o=0;o<t.length;o++)l[o]=i(t[o],o);return l}function yr(t,i,l){for(var o=0,s=l(i);o<t.length&&l(t[o])<=s;)o++;t.splice(o,0,i)}function tr(){}function Ot(t,i){var l;return Object.create?l=Object.create(t):(tr.prototype=t,l=new tr),i&&Ge(i,l),l}var cr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||cr.test(t))}function gt(t,i){return i?i.source.indexOf("\\w")>-1&&Be(t)?!0:i.test(t):Be(t)}function lr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var hr=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Mt(t){return t.charCodeAt(0)>=768&&hr.test(t)}function xr(t,i,l){for(;(l<0?i>0:i<t.length)&&Mt(t.charAt(i));)i+=l;return i}function jt(t,i,l){for(var o=i>l?-1:1;;){if(i==l)return i;var s=(i+l)/2,g=o<0?Math.ceil(s):Math.floor(s);if(g==i)return t(g)?i:l;t(g)?l=g:i=g+o}}function rr(t,i,l,o){if(!t)return o(i,l,"ltr",0);for(var s=!1,g=0;g<t.length;++g){var y=t[g];(y.from<l&&y.to>i||i==l&&y.to==i)&&(o(Math.max(y.from,i),Math.min(y.to,l),y.level==1?"rtl":"ltr",g),s=!0)}s||o(i,l,"ltr")}var sr=null;function Tr(t,i,l){var o;sr=null;for(var s=0;s<t.length;++s){var g=t[s];if(g.from<i&&g.to>i)return s;g.to==i&&(g.from!=g.to&&l=="before"?o=s:sr=s),g.from==i&&(g.from!=g.to&&l!="before"?o=s:sr=s)}return o??sr}var sn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(E){return E<=247?t.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?i.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,C=/[1n]/;function w(E,O,J){this.level=E,this.from=O,this.to=J}return function(E,O){var J=O=="ltr"?"L":"R";if(E.length==0||O=="ltr"&&!o.test(E))return!1;for(var ie=E.length,re=[],de=0;de<ie;++de)re.push(l(E.charCodeAt(de)));for(var ve=0,Re=J;ve<ie;++ve){var Ue=re[ve];Ue=="m"?re[ve]=Re:Re=Ue}for(var We=0,ke=J;We<ie;++We){var Ve=re[We];Ve=="1"&&ke=="r"?re[We]="n":g.test(Ve)&&(ke=Ve,Ve=="r"&&(re[We]="R"))}for(var et=1,qe=re[0];et<ie-1;++et){var yt=re[et];yt=="+"&&qe=="1"&&re[et+1]=="1"?re[et]="1":yt==","&&qe==re[et+1]&&(qe=="1"||qe=="n")&&(re[et]=qe),qe=yt}for(var Xt=0;Xt<ie;++Xt){var Ur=re[Xt];if(Ur==",")re[Xt]="N";else if(Ur=="%"){var or=void 0;for(or=Xt+1;or<ie&&re[or]=="%";++or);for(var _n=Xt&&re[Xt-1]=="!"||or<ie&&re[or]=="1"?"1":"N",cn=Xt;cn<or;++cn)re[cn]=_n;Xt=or-1}}for(var Rr=0,hn=J;Rr<ie;++Rr){var Vr=re[Rr];hn=="L"&&Vr=="1"?re[Rr]="L":g.test(Vr)&&(hn=Vr)}for(var Er=0;Er<ie;++Er)if(s.test(re[Er])){var Sr=void 0;for(Sr=Er+1;Sr<ie&&s.test(re[Sr]);++Sr);for(var dr=(Er?re[Er-1]:J)=="L",pn=(Sr<ie?re[Sr]:J)=="L",Uo=dr==pn?dr?"L":"R":J,va=Er;va<Sr;++va)re[va]=Uo;Er=Sr-1}for(var Kr=[],Bi,kr=0;kr<ie;)if(y.test(re[kr])){var Rd=kr;for(++kr;kr<ie&&y.test(re[kr]);++kr);Kr.push(new w(0,Rd,kr))}else{var ji=kr,Ya=Kr.length,Pa=O=="rtl"?1:0;for(++kr;kr<ie&&re[kr]!="L";++kr);for(var on=ji;on<kr;)if(C.test(re[on])){ji<on&&(Kr.splice(Ya,0,new w(1,ji,on)),Ya+=Pa);var ko=on;for(++on;on<kr&&C.test(re[on]);++on);Kr.splice(Ya,0,new w(2,ko,on)),Ya+=Pa,ji=on}else++on;ji<kr&&Kr.splice(Ya,0,new w(1,ji,kr))}return O=="ltr"&&(Kr[0].level==1&&(Bi=E.match(/^\s+/))&&(Kr[0].from=Bi[0].length,Kr.unshift(new w(0,0,Bi[0].length))),Ye(Kr).level==1&&(Bi=E.match(/\s+$/))&&(Ye(Kr).to-=Bi[0].length,Kr.push(new w(0,ie-Bi[0].length,ie)))),O=="rtl"?Kr.reverse():Kr}}();function at(t,i){var l=t.order;return l==null&&(l=t.order=sn(t.text,i)),l}var $r=[],Je=function(t,i,l){if(t.addEventListener)t.addEventListener(i,l,!1);else if(t.attachEvent)t.attachEvent("on"+i,l);else{var o=t._handlers||(t._handlers={});o[i]=(o[i]||$r).concat(l)}};function en(t,i){return t._handlers&&t._handlers[i]||$r}function Cr(t,i,l){if(t.removeEventListener)t.removeEventListener(i,l,!1);else if(t.detachEvent)t.detachEvent("on"+i,l);else{var o=t._handlers,s=o&&o[i];if(s){var g=_e(s,l);g>-1&&(o[i]=s.slice(0,g).concat(s.slice(g+1)))}}}function Ft(t,i){var l=en(t,i);if(l.length)for(var o=Array.prototype.slice.call(arguments,2),s=0;s<l.length;++s)l[s].apply(null,o)}function Lt(t,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ft(t,l||i.type,t,i),nr(i)||i.codemirrorIgnore}function Jr(t){var i=t._handlers&&t._handlers.cursorActivity;if(i)for(var l=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),o=0;o<i.length;++o)_e(l,i[o])==-1&&l.push(i[o])}function ur(t,i){return en(t,i).length>0}function Yt(t){t.prototype.on=function(i,l){Je(this,i,l)},t.prototype.off=function(i,l){Cr(this,i,l)}}function Bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Vt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function nr(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function kn(t){Bt(t),Vt(t)}function hi(t){return t.target||t.srcElement}function pr(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),V&&t.ctrlKey&&i==1&&(i=3),i}var Gn=function(){if(h&&b<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}(),Dn;function pi(t){if(Dn==null){var i=L("span","\u200B");he(t,L("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Dn=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&b<8))}var l=Dn?L("span","\u200B"):L("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Or;function Zr(t){if(Or!=null)return Or;var i=he(t,document.createTextNode("A\u062EA")),l=ae(i,0,1).getBoundingClientRect(),o=ae(i,1,2).getBoundingClientRect();return q(t),!l||l.left==l.right?!1:Or=o.right-l.right<3}var jr=`
7
+ `+g+"}":"{"+y.join(",")+"}",gap=g,c}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(r,n,a){var l;if(gap="",indent="",typeof a=="number")for(l=0;l<a;l+=1)indent+=" ";else typeof a=="string"&&(indent=a);if(rep=n,n&&typeof n!="function"&&(typeof n!="object"||typeof n.length!="number"))throw new Error("JSON.stringify");return str("",{"":r})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(r,n){var a,l,c=r[n];if(c&&typeof c=="object")for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(l=walk(c,a),l!==void 0?c[a]=l:delete c[a]);return reviver.call(r,n,c)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(r){return"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var ug=et((ik,lg)=>{lg.exports=qC;function qC(){return sg(),{}}});var cg=et((ok,fg)=>{var KC=Gp(),$C=ag(),eA=[ug()];fg.exports=KC.createStore($C,eA)});var pg=et(As=>{"use strict";As.byteLength=nA;As.toByteArray=oA;As.fromByteArray=lA;var tn=[],Nr=[],rA=typeof Uint8Array<"u"?Uint8Array:Array,du="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(si=0,dg=du.length;si<dg;++si)tn[si]=du[si],Nr[du.charCodeAt(si)]=si;var si,dg;Nr[45]=62;Nr[95]=63;function hg(r){var n=r.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=r.indexOf("=");a===-1&&(a=n);var l=a===n?0:4-a%4;return[a,l]}function nA(r){var n=hg(r),a=n[0],l=n[1];return(a+l)*3/4-l}function iA(r,n,a){return(n+a)*3/4-a}function oA(r){var n,a=hg(r),l=a[0],c=a[1],p=new rA(iA(r,l,c)),g=0,y=c>0?l-4:l,I;for(I=0;I<y;I+=4)n=Nr[r.charCodeAt(I)]<<18|Nr[r.charCodeAt(I+1)]<<12|Nr[r.charCodeAt(I+2)]<<6|Nr[r.charCodeAt(I+3)],p[g++]=n>>16&255,p[g++]=n>>8&255,p[g++]=n&255;return c===2&&(n=Nr[r.charCodeAt(I)]<<2|Nr[r.charCodeAt(I+1)]>>4,p[g++]=n&255),c===1&&(n=Nr[r.charCodeAt(I)]<<10|Nr[r.charCodeAt(I+1)]<<4|Nr[r.charCodeAt(I+2)]>>2,p[g++]=n>>8&255,p[g++]=n&255),p}function aA(r){return tn[r>>18&63]+tn[r>>12&63]+tn[r>>6&63]+tn[r&63]}function sA(r,n,a){for(var l,c=[],p=n;p<a;p+=3)l=(r[p]<<16&16711680)+(r[p+1]<<8&65280)+(r[p+2]&255),c.push(aA(l));return c.join("")}function lA(r){for(var n,a=r.length,l=a%3,c=[],p=16383,g=0,y=a-l;g<y;g+=p)c.push(sA(r,g,g+p>y?y:g+p));return l===1?(n=r[a-1],c.push(tn[n>>2]+tn[n<<4&63]+"==")):l===2&&(n=(r[a-2]<<8)+r[a-1],c.push(tn[n>>10]+tn[n>>4&63]+tn[n<<2&63]+"=")),c.join("")}});var gg=et(hu=>{hu.read=function(r,n,a,l,c){var p,g,y=c*8-l-1,I=(1<<y)-1,U=I>>1,A=-7,F=a?c-1:0,O=a?-1:1,X=r[n+F];for(F+=O,p=X&(1<<-A)-1,X>>=-A,A+=y;A>0;p=p*256+r[n+F],F+=O,A-=8);for(g=p&(1<<-A)-1,p>>=-A,A+=l;A>0;g=g*256+r[n+F],F+=O,A-=8);if(p===0)p=1-U;else{if(p===I)return g?NaN:(X?-1:1)*(1/0);g=g+Math.pow(2,l),p=p-U}return(X?-1:1)*g*Math.pow(2,p-l)};hu.write=function(r,n,a,l,c,p){var g,y,I,U=p*8-c-1,A=(1<<U)-1,F=A>>1,O=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,X=l?0:p-1,S=l?1:-1,D=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(y=isNaN(n)?1:0,g=A):(g=Math.floor(Math.log(n)/Math.LN2),n*(I=Math.pow(2,-g))<1&&(g--,I*=2),g+F>=1?n+=O/I:n+=O*Math.pow(2,1-F),n*I>=2&&(g++,I/=2),g+F>=A?(y=0,g=A):g+F>=1?(y=(n*I-1)*Math.pow(2,c),g=g+F):(y=n*Math.pow(2,F-1)*Math.pow(2,c),g=0));c>=8;r[a+X]=y&255,X+=S,y/=256,c-=8);for(g=g<<c|y,U+=c;U>0;r[a+X]=g&255,X+=S,g/=256,U-=8);r[a+X-S]|=D*128}});var Fg=et(no=>{"use strict";var pu=pg(),to=gg(),mg=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;no.Buffer=Q;no.SlowBuffer=pA;no.INSPECT_MAX_BYTES=50;var Rs=2147483647;no.kMaxLength=Rs;Q.TYPED_ARRAY_SUPPORT=uA();!Q.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function uA(){try{let r=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(r,n),r.foo()===42}catch{return!1}}Object.defineProperty(Q.prototype,"parent",{enumerable:!0,get:function(){if(Q.isBuffer(this))return this.buffer}});Object.defineProperty(Q.prototype,"offset",{enumerable:!0,get:function(){if(Q.isBuffer(this))return this.byteOffset}});function vn(r){if(r>Rs)throw new RangeError('The value "'+r+'" is invalid for option "size"');let n=new Uint8Array(r);return Object.setPrototypeOf(n,Q.prototype),n}function Q(r,n,a){if(typeof r=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vu(r)}return xg(r,n,a)}Q.poolSize=8192;function xg(r,n,a){if(typeof r=="string")return cA(r,n);if(ArrayBuffer.isView(r))return dA(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(rn(r,ArrayBuffer)||r&&rn(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(rn(r,SharedArrayBuffer)||r&&rn(r.buffer,SharedArrayBuffer)))return mu(r,n,a);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let l=r.valueOf&&r.valueOf();if(l!=null&&l!==r)return Q.from(l,n,a);let c=hA(r);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return Q.from(r[Symbol.toPrimitive]("string"),n,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}Q.from=function(r,n,a){return xg(r,n,a)};Object.setPrototypeOf(Q.prototype,Uint8Array.prototype);Object.setPrototypeOf(Q,Uint8Array);function Ig(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function fA(r,n,a){return Ig(r),r<=0?vn(r):n!==void 0?typeof a=="string"?vn(r).fill(n,a):vn(r).fill(n):vn(r)}Q.alloc=function(r,n,a){return fA(r,n,a)};function vu(r){return Ig(r),vn(r<0?0:yu(r)|0)}Q.allocUnsafe=function(r){return vu(r)};Q.allocUnsafeSlow=function(r){return vu(r)};function cA(r,n){if((typeof n!="string"||n==="")&&(n="utf8"),!Q.isEncoding(n))throw new TypeError("Unknown encoding: "+n);let a=Tg(r,n)|0,l=vn(a),c=l.write(r,n);return c!==a&&(l=l.slice(0,c)),l}function gu(r){let n=r.length<0?0:yu(r.length)|0,a=vn(n);for(let l=0;l<n;l+=1)a[l]=r[l]&255;return a}function dA(r){if(rn(r,Uint8Array)){let n=new Uint8Array(r);return mu(n.buffer,n.byteOffset,n.byteLength)}return gu(r)}function mu(r,n,a){if(n<0||r.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<n+(a||0))throw new RangeError('"length" is outside of buffer bounds');let l;return n===void 0&&a===void 0?l=new Uint8Array(r):a===void 0?l=new Uint8Array(r,n):l=new Uint8Array(r,n,a),Object.setPrototypeOf(l,Q.prototype),l}function hA(r){if(Q.isBuffer(r)){let n=yu(r.length)|0,a=vn(n);return a.length===0||r.copy(a,0,0,n),a}if(r.length!==void 0)return typeof r.length!="number"||Iu(r.length)?vn(0):gu(r);if(r.type==="Buffer"&&Array.isArray(r.data))return gu(r.data)}function yu(r){if(r>=Rs)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rs.toString(16)+" bytes");return r|0}function pA(r){return+r!=r&&(r=0),Q.alloc(+r)}Q.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==Q.prototype};Q.compare=function(n,a){if(rn(n,Uint8Array)&&(n=Q.from(n,n.offset,n.byteLength)),rn(a,Uint8Array)&&(a=Q.from(a,a.offset,a.byteLength)),!Q.isBuffer(n)||!Q.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===a)return 0;let l=n.length,c=a.length;for(let p=0,g=Math.min(l,c);p<g;++p)if(n[p]!==a[p]){l=n[p],c=a[p];break}return l<c?-1:c<l?1:0};Q.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Q.concat=function(n,a){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return Q.alloc(0);let l;if(a===void 0)for(a=0,l=0;l<n.length;++l)a+=n[l].length;let c=Q.allocUnsafe(a),p=0;for(l=0;l<n.length;++l){let g=n[l];if(rn(g,Uint8Array))p+g.length>c.length?(Q.isBuffer(g)||(g=Q.from(g)),g.copy(c,p)):Uint8Array.prototype.set.call(c,g,p);else if(Q.isBuffer(g))g.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=g.length}return c};function Tg(r,n){if(Q.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||rn(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let a=r.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&a===0)return 0;let c=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return bu(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return Lg(r).length;default:if(c)return l?-1:bu(r).length;n=(""+n).toLowerCase(),c=!0}}Q.byteLength=Tg;function gA(r,n,a){let l=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,n>>>=0,a<=n))return"";for(r||(r="utf8");;)switch(r){case"hex":return AA(this,n,a);case"utf8":case"utf-8":return Cg(this,n,a);case"ascii":return EA(this,n,a);case"latin1":case"binary":return CA(this,n,a);case"base64":return IA(this,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return RA(this,n,a);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),l=!0}}Q.prototype._isBuffer=!0;function li(r,n,a){let l=r[n];r[n]=r[a],r[a]=l}Q.prototype.swap16=function(){let n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let a=0;a<n;a+=2)li(this,a,a+1);return this};Q.prototype.swap32=function(){let n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let a=0;a<n;a+=4)li(this,a,a+3),li(this,a+1,a+2);return this};Q.prototype.swap64=function(){let n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let a=0;a<n;a+=8)li(this,a,a+7),li(this,a+1,a+6),li(this,a+2,a+5),li(this,a+3,a+4);return this};Q.prototype.toString=function(){let n=this.length;return n===0?"":arguments.length===0?Cg(this,0,n):gA.apply(this,arguments)};Q.prototype.toLocaleString=Q.prototype.toString;Q.prototype.equals=function(n){if(!Q.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:Q.compare(this,n)===0};Q.prototype.inspect=function(){let n="",a=no.INSPECT_MAX_BYTES;return n=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(n+=" ... "),"<Buffer "+n+">"};mg&&(Q.prototype[mg]=Q.prototype.inspect);Q.prototype.compare=function(n,a,l,c,p){if(rn(n,Uint8Array)&&(n=Q.from(n,n.offset,n.byteLength)),!Q.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(a===void 0&&(a=0),l===void 0&&(l=n?n.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),a<0||l>n.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&a>=l)return 0;if(c>=p)return-1;if(a>=l)return 1;if(a>>>=0,l>>>=0,c>>>=0,p>>>=0,this===n)return 0;let g=p-c,y=l-a,I=Math.min(g,y),U=this.slice(c,p),A=n.slice(a,l);for(let F=0;F<I;++F)if(U[F]!==A[F]){g=U[F],y=A[F];break}return g<y?-1:y<g?1:0};function Eg(r,n,a,l,c){if(r.length===0)return-1;if(typeof a=="string"?(l=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Iu(a)&&(a=c?0:r.length-1),a<0&&(a=r.length+a),a>=r.length){if(c)return-1;a=r.length-1}else if(a<0)if(c)a=0;else return-1;if(typeof n=="string"&&(n=Q.from(n,l)),Q.isBuffer(n))return n.length===0?-1:bg(r,n,a,l,c);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(r,n,a):Uint8Array.prototype.lastIndexOf.call(r,n,a):bg(r,[n],a,l,c);throw new TypeError("val must be string, number or Buffer")}function bg(r,n,a,l,c){let p=1,g=r.length,y=n.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(r.length<2||n.length<2)return-1;p=2,g/=2,y/=2,a/=2}function I(A,F){return p===1?A[F]:A.readUInt16BE(F*p)}let U;if(c){let A=-1;for(U=a;U<g;U++)if(I(r,U)===I(n,A===-1?0:U-A)){if(A===-1&&(A=U),U-A+1===y)return A*p}else A!==-1&&(U-=U-A),A=-1}else for(a+y>g&&(a=g-y),U=a;U>=0;U--){let A=!0;for(let F=0;F<y;F++)if(I(r,U+F)!==I(n,F)){A=!1;break}if(A)return U}return-1}Q.prototype.includes=function(n,a,l){return this.indexOf(n,a,l)!==-1};Q.prototype.indexOf=function(n,a,l){return Eg(this,n,a,l,!0)};Q.prototype.lastIndexOf=function(n,a,l){return Eg(this,n,a,l,!1)};function mA(r,n,a,l){a=Number(a)||0;let c=r.length-a;l?(l=Number(l),l>c&&(l=c)):l=c;let p=n.length;l>p/2&&(l=p/2);let g;for(g=0;g<l;++g){let y=parseInt(n.substr(g*2,2),16);if(Iu(y))return g;r[a+g]=y}return g}function bA(r,n,a,l){return _s(bu(n,r.length-a),r,a,l)}function vA(r,n,a,l){return _s(wA(n),r,a,l)}function yA(r,n,a,l){return _s(Lg(n),r,a,l)}function xA(r,n,a,l){return _s(LA(n,r.length-a),r,a,l)}Q.prototype.write=function(n,a,l,c){if(a===void 0)c="utf8",l=this.length,a=0;else if(l===void 0&&typeof a=="string")c=a,l=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(l)?(l=l>>>0,c===void 0&&(c="utf8")):(c=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-a;if((l===void 0||l>p)&&(l=p),n.length>0&&(l<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let g=!1;for(;;)switch(c){case"hex":return mA(this,n,a,l);case"utf8":case"utf-8":return bA(this,n,a,l);case"ascii":case"latin1":case"binary":return vA(this,n,a,l);case"base64":return yA(this,n,a,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xA(this,n,a,l);default:if(g)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),g=!0}};Q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function IA(r,n,a){return n===0&&a===r.length?pu.fromByteArray(r):pu.fromByteArray(r.slice(n,a))}function Cg(r,n,a){a=Math.min(r.length,a);let l=[],c=n;for(;c<a;){let p=r[c],g=null,y=p>239?4:p>223?3:p>191?2:1;if(c+y<=a){let I,U,A,F;switch(y){case 1:p<128&&(g=p);break;case 2:I=r[c+1],(I&192)===128&&(F=(p&31)<<6|I&63,F>127&&(g=F));break;case 3:I=r[c+1],U=r[c+2],(I&192)===128&&(U&192)===128&&(F=(p&15)<<12|(I&63)<<6|U&63,F>2047&&(F<55296||F>57343)&&(g=F));break;case 4:I=r[c+1],U=r[c+2],A=r[c+3],(I&192)===128&&(U&192)===128&&(A&192)===128&&(F=(p&15)<<18|(I&63)<<12|(U&63)<<6|A&63,F>65535&&F<1114112&&(g=F))}}g===null?(g=65533,y=1):g>65535&&(g-=65536,l.push(g>>>10&1023|55296),g=56320|g&1023),l.push(g),c+=y}return TA(l)}var vg=4096;function TA(r){let n=r.length;if(n<=vg)return String.fromCharCode.apply(String,r);let a="",l=0;for(;l<n;)a+=String.fromCharCode.apply(String,r.slice(l,l+=vg));return a}function EA(r,n,a){let l="";a=Math.min(r.length,a);for(let c=n;c<a;++c)l+=String.fromCharCode(r[c]&127);return l}function CA(r,n,a){let l="";a=Math.min(r.length,a);for(let c=n;c<a;++c)l+=String.fromCharCode(r[c]);return l}function AA(r,n,a){let l=r.length;(!n||n<0)&&(n=0),(!a||a<0||a>l)&&(a=l);let c="";for(let p=n;p<a;++p)c+=FA[r[p]];return c}function RA(r,n,a){let l=r.slice(n,a),c="";for(let p=0;p<l.length-1;p+=2)c+=String.fromCharCode(l[p]+l[p+1]*256);return c}Q.prototype.slice=function(n,a){let l=this.length;n=~~n,a=a===void 0?l:~~a,n<0?(n+=l,n<0&&(n=0)):n>l&&(n=l),a<0?(a+=l,a<0&&(a=0)):a>l&&(a=l),a<n&&(a=n);let c=this.subarray(n,a);return Object.setPrototypeOf(c,Q.prototype),c};function Wt(r,n,a){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+n>a)throw new RangeError("Trying to access beyond buffer length")}Q.prototype.readUintLE=Q.prototype.readUIntLE=function(n,a,l){n=n>>>0,a=a>>>0,l||Wt(n,a,this.length);let c=this[n],p=1,g=0;for(;++g<a&&(p*=256);)c+=this[n+g]*p;return c};Q.prototype.readUintBE=Q.prototype.readUIntBE=function(n,a,l){n=n>>>0,a=a>>>0,l||Wt(n,a,this.length);let c=this[n+--a],p=1;for(;a>0&&(p*=256);)c+=this[n+--a]*p;return c};Q.prototype.readUint8=Q.prototype.readUInt8=function(n,a){return n=n>>>0,a||Wt(n,1,this.length),this[n]};Q.prototype.readUint16LE=Q.prototype.readUInt16LE=function(n,a){return n=n>>>0,a||Wt(n,2,this.length),this[n]|this[n+1]<<8};Q.prototype.readUint16BE=Q.prototype.readUInt16BE=function(n,a){return n=n>>>0,a||Wt(n,2,this.length),this[n]<<8|this[n+1]};Q.prototype.readUint32LE=Q.prototype.readUInt32LE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};Q.prototype.readUint32BE=Q.prototype.readUInt32BE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};Q.prototype.readBigUInt64LE=Hn(function(n){n=n>>>0,ro(n,"offset");let a=this[n],l=this[n+7];(a===void 0||l===void 0)&&$o(n,this.length-8);let c=a+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,p=this[++n]+this[++n]*2**8+this[++n]*2**16+l*2**24;return BigInt(c)+(BigInt(p)<<BigInt(32))});Q.prototype.readBigUInt64BE=Hn(function(n){n=n>>>0,ro(n,"offset");let a=this[n],l=this[n+7];(a===void 0||l===void 0)&&$o(n,this.length-8);let c=a*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],p=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+l;return(BigInt(c)<<BigInt(32))+BigInt(p)});Q.prototype.readIntLE=function(n,a,l){n=n>>>0,a=a>>>0,l||Wt(n,a,this.length);let c=this[n],p=1,g=0;for(;++g<a&&(p*=256);)c+=this[n+g]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*a)),c};Q.prototype.readIntBE=function(n,a,l){n=n>>>0,a=a>>>0,l||Wt(n,a,this.length);let c=a,p=1,g=this[n+--c];for(;c>0&&(p*=256);)g+=this[n+--c]*p;return p*=128,g>=p&&(g-=Math.pow(2,8*a)),g};Q.prototype.readInt8=function(n,a){return n=n>>>0,a||Wt(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]};Q.prototype.readInt16LE=function(n,a){n=n>>>0,a||Wt(n,2,this.length);let l=this[n]|this[n+1]<<8;return l&32768?l|4294901760:l};Q.prototype.readInt16BE=function(n,a){n=n>>>0,a||Wt(n,2,this.length);let l=this[n+1]|this[n]<<8;return l&32768?l|4294901760:l};Q.prototype.readInt32LE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};Q.prototype.readInt32BE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};Q.prototype.readBigInt64LE=Hn(function(n){n=n>>>0,ro(n,"offset");let a=this[n],l=this[n+7];(a===void 0||l===void 0)&&$o(n,this.length-8);let c=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(l<<24);return(BigInt(c)<<BigInt(32))+BigInt(a+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)});Q.prototype.readBigInt64BE=Hn(function(n){n=n>>>0,ro(n,"offset");let a=this[n],l=this[n+7];(a===void 0||l===void 0)&&$o(n,this.length-8);let c=(a<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(c)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+l)});Q.prototype.readFloatLE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),to.read(this,n,!0,23,4)};Q.prototype.readFloatBE=function(n,a){return n=n>>>0,a||Wt(n,4,this.length),to.read(this,n,!1,23,4)};Q.prototype.readDoubleLE=function(n,a){return n=n>>>0,a||Wt(n,8,this.length),to.read(this,n,!0,52,8)};Q.prototype.readDoubleBE=function(n,a){return n=n>>>0,a||Wt(n,8,this.length),to.read(this,n,!1,52,8)};function gr(r,n,a,l,c,p){if(!Q.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>c||n<p)throw new RangeError('"value" argument is out of bounds');if(a+l>r.length)throw new RangeError("Index out of range")}Q.prototype.writeUintLE=Q.prototype.writeUIntLE=function(n,a,l,c){if(n=+n,a=a>>>0,l=l>>>0,!c){let y=Math.pow(2,8*l)-1;gr(this,n,a,l,y,0)}let p=1,g=0;for(this[a]=n&255;++g<l&&(p*=256);)this[a+g]=n/p&255;return a+l};Q.prototype.writeUintBE=Q.prototype.writeUIntBE=function(n,a,l,c){if(n=+n,a=a>>>0,l=l>>>0,!c){let y=Math.pow(2,8*l)-1;gr(this,n,a,l,y,0)}let p=l-1,g=1;for(this[a+p]=n&255;--p>=0&&(g*=256);)this[a+p]=n/g&255;return a+l};Q.prototype.writeUint8=Q.prototype.writeUInt8=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,1,255,0),this[a]=n&255,a+1};Q.prototype.writeUint16LE=Q.prototype.writeUInt16LE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,2,65535,0),this[a]=n&255,this[a+1]=n>>>8,a+2};Q.prototype.writeUint16BE=Q.prototype.writeUInt16BE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,2,65535,0),this[a]=n>>>8,this[a+1]=n&255,a+2};Q.prototype.writeUint32LE=Q.prototype.writeUInt32LE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,4,4294967295,0),this[a+3]=n>>>24,this[a+2]=n>>>16,this[a+1]=n>>>8,this[a]=n&255,a+4};Q.prototype.writeUint32BE=Q.prototype.writeUInt32BE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,4,4294967295,0),this[a]=n>>>24,this[a+1]=n>>>16,this[a+2]=n>>>8,this[a+3]=n&255,a+4};function Ag(r,n,a,l,c){wg(n,l,c,r,a,7);let p=Number(n&BigInt(4294967295));r[a++]=p,p=p>>8,r[a++]=p,p=p>>8,r[a++]=p,p=p>>8,r[a++]=p;let g=Number(n>>BigInt(32)&BigInt(4294967295));return r[a++]=g,g=g>>8,r[a++]=g,g=g>>8,r[a++]=g,g=g>>8,r[a++]=g,a}function Rg(r,n,a,l,c){wg(n,l,c,r,a,7);let p=Number(n&BigInt(4294967295));r[a+7]=p,p=p>>8,r[a+6]=p,p=p>>8,r[a+5]=p,p=p>>8,r[a+4]=p;let g=Number(n>>BigInt(32)&BigInt(4294967295));return r[a+3]=g,g=g>>8,r[a+2]=g,g=g>>8,r[a+1]=g,g=g>>8,r[a]=g,a+8}Q.prototype.writeBigUInt64LE=Hn(function(n,a=0){return Ag(this,n,a,BigInt(0),BigInt("0xffffffffffffffff"))});Q.prototype.writeBigUInt64BE=Hn(function(n,a=0){return Rg(this,n,a,BigInt(0),BigInt("0xffffffffffffffff"))});Q.prototype.writeIntLE=function(n,a,l,c){if(n=+n,a=a>>>0,!c){let I=Math.pow(2,8*l-1);gr(this,n,a,l,I-1,-I)}let p=0,g=1,y=0;for(this[a]=n&255;++p<l&&(g*=256);)n<0&&y===0&&this[a+p-1]!==0&&(y=1),this[a+p]=(n/g>>0)-y&255;return a+l};Q.prototype.writeIntBE=function(n,a,l,c){if(n=+n,a=a>>>0,!c){let I=Math.pow(2,8*l-1);gr(this,n,a,l,I-1,-I)}let p=l-1,g=1,y=0;for(this[a+p]=n&255;--p>=0&&(g*=256);)n<0&&y===0&&this[a+p+1]!==0&&(y=1),this[a+p]=(n/g>>0)-y&255;return a+l};Q.prototype.writeInt8=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,1,127,-128),n<0&&(n=255+n+1),this[a]=n&255,a+1};Q.prototype.writeInt16LE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,2,32767,-32768),this[a]=n&255,this[a+1]=n>>>8,a+2};Q.prototype.writeInt16BE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,2,32767,-32768),this[a]=n>>>8,this[a+1]=n&255,a+2};Q.prototype.writeInt32LE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,4,2147483647,-2147483648),this[a]=n&255,this[a+1]=n>>>8,this[a+2]=n>>>16,this[a+3]=n>>>24,a+4};Q.prototype.writeInt32BE=function(n,a,l){return n=+n,a=a>>>0,l||gr(this,n,a,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[a]=n>>>24,this[a+1]=n>>>16,this[a+2]=n>>>8,this[a+3]=n&255,a+4};Q.prototype.writeBigInt64LE=Hn(function(n,a=0){return Ag(this,n,a,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Q.prototype.writeBigInt64BE=Hn(function(n,a=0){return Rg(this,n,a,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _g(r,n,a,l,c,p){if(a+l>r.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Ng(r,n,a,l,c){return n=+n,a=a>>>0,c||_g(r,n,a,4,34028234663852886e22,-34028234663852886e22),to.write(r,n,a,l,23,4),a+4}Q.prototype.writeFloatLE=function(n,a,l){return Ng(this,n,a,!0,l)};Q.prototype.writeFloatBE=function(n,a,l){return Ng(this,n,a,!1,l)};function Sg(r,n,a,l,c){return n=+n,a=a>>>0,c||_g(r,n,a,8,17976931348623157e292,-17976931348623157e292),to.write(r,n,a,l,52,8),a+8}Q.prototype.writeDoubleLE=function(n,a,l){return Sg(this,n,a,!0,l)};Q.prototype.writeDoubleBE=function(n,a,l){return Sg(this,n,a,!1,l)};Q.prototype.copy=function(n,a,l,c){if(!Q.isBuffer(n))throw new TypeError("argument should be a Buffer");if(l||(l=0),!c&&c!==0&&(c=this.length),a>=n.length&&(a=n.length),a||(a=0),c>0&&c<l&&(c=l),c===l||n.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),n.length-a<c-l&&(c=n.length-a+l);let p=c-l;return this===n&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,l,c):Uint8Array.prototype.set.call(n,this.subarray(l,c),a),p};Q.prototype.fill=function(n,a,l,c){if(typeof n=="string"){if(typeof a=="string"?(c=a,a=0,l=this.length):typeof l=="string"&&(c=l,l=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!Q.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(n.length===1){let g=n.charCodeAt(0);(c==="utf8"&&g<128||c==="latin1")&&(n=g)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(a<0||this.length<a||this.length<l)throw new RangeError("Out of range index");if(l<=a)return this;a=a>>>0,l=l===void 0?this.length:l>>>0,n||(n=0);let p;if(typeof n=="number")for(p=a;p<l;++p)this[p]=n;else{let g=Q.isBuffer(n)?n:Q.from(n,c),y=g.length;if(y===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(p=0;p<l-a;++p)this[p+a]=g[p%y]}return this};var eo={};function xu(r,n,a){eo[r]=class extends a{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}xu("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);xu("ERR_INVALID_ARG_TYPE",function(r,n){return`The "${r}" argument must be of type number. Received type ${typeof n}`},TypeError);xu("ERR_OUT_OF_RANGE",function(r,n,a){let l=`The value of "${r}" is out of range.`,c=a;return Number.isInteger(a)&&Math.abs(a)>2**32?c=yg(String(a)):typeof a=="bigint"&&(c=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(c=yg(c)),c+="n"),l+=` It must be ${n}. Received ${c}`,l},RangeError);function yg(r){let n="",a=r.length,l=r[0]==="-"?1:0;for(;a>=l+4;a-=3)n=`_${r.slice(a-3,a)}${n}`;return`${r.slice(0,a)}${n}`}function _A(r,n,a){ro(n,"offset"),(r[n]===void 0||r[n+a]===void 0)&&$o(n,r.length-(a+1))}function wg(r,n,a,l,c,p){if(r>a||r<n){let g=typeof n=="bigint"?"n":"",y;throw p>3?n===0||n===BigInt(0)?y=`>= 0${g} and < 2${g} ** ${(p+1)*8}${g}`:y=`>= -(2${g} ** ${(p+1)*8-1}${g}) and < 2 ** ${(p+1)*8-1}${g}`:y=`>= ${n}${g} and <= ${a}${g}`,new eo.ERR_OUT_OF_RANGE("value",y,r)}_A(l,c,p)}function ro(r,n){if(typeof r!="number")throw new eo.ERR_INVALID_ARG_TYPE(n,"number",r)}function $o(r,n,a){throw Math.floor(r)!==r?(ro(r,a),new eo.ERR_OUT_OF_RANGE(a||"offset","an integer",r)):n<0?new eo.ERR_BUFFER_OUT_OF_BOUNDS:new eo.ERR_OUT_OF_RANGE(a||"offset",`>= ${a?1:0} and <= ${n}`,r)}var NA=/[^+/0-9A-Za-z-_]/g;function SA(r){if(r=r.split("=")[0],r=r.trim().replace(NA,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function bu(r,n){n=n||1/0;let a,l=r.length,c=null,p=[];for(let g=0;g<l;++g){if(a=r.charCodeAt(g),a>55295&&a<57344){if(!c){if(a>56319){(n-=3)>-1&&p.push(239,191,189);continue}else if(g+1===l){(n-=3)>-1&&p.push(239,191,189);continue}c=a;continue}if(a<56320){(n-=3)>-1&&p.push(239,191,189),c=a;continue}a=(c-55296<<10|a-56320)+65536}else c&&(n-=3)>-1&&p.push(239,191,189);if(c=null,a<128){if((n-=1)<0)break;p.push(a)}else if(a<2048){if((n-=2)<0)break;p.push(a>>6|192,a&63|128)}else if(a<65536){if((n-=3)<0)break;p.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((n-=4)<0)break;p.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return p}function wA(r){let n=[];for(let a=0;a<r.length;++a)n.push(r.charCodeAt(a)&255);return n}function LA(r,n){let a,l,c,p=[];for(let g=0;g<r.length&&!((n-=2)<0);++g)a=r.charCodeAt(g),l=a>>8,c=a%256,p.push(c),p.push(l);return p}function Lg(r){return pu.toByteArray(SA(r))}function _s(r,n,a,l){let c;for(c=0;c<l&&!(c+a>=n.length||c>=r.length);++c)n[c+a]=r[c];return c}function rn(r,n){return r instanceof n||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===n.name}function Iu(r){return r!==r}var FA=function(){let r="0123456789abcdef",n=new Array(256);for(let a=0;a<16;++a){let l=a*16;for(let c=0;c<16;++c)n[l+c]=r[a]+r[c]}return n}();function Hn(r){return typeof BigInt>"u"?BA:r}function BA(){throw new Error("BigInt not supported")}});var Hg=et((Su,wu)=>{((r,n)=>{typeof define=="function"&&define.amd?define([],n):typeof wu=="object"&&typeof Su<"u"?wu.exports=n():r.Papa=n()})(Su,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a,l=!n.document&&!!n.postMessage,c=n.IS_PAPA_WORKER||!1,p={},g=0,y={};function I(R){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(w){var H=q(w);H.chunkSize=parseInt(H.chunkSize),w.step||w.chunk||(H.chunkSize=null),this._handle=new X(H),(this._handle.streamer=this)._config=H}.call(this,R),this.parseChunk=function(w,H){var $=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<$){let k=this._config.newline;k||(pe=this._config.quoteChar||'"',k=this._handle.guessLineEndings(w,pe)),w=[...w.split(k).slice($)].join(k)}this.isFirstChunk&&ae(this._config.beforeFirstChunk)&&(pe=this._config.beforeFirstChunk(w))!==void 0&&(w=pe),this.isFirstChunk=!1,this._halted=!1;var $=this._partialLine+w,pe=(this._partialLine="",this._handle.parse($,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(w=pe.meta.cursor,$=(this._finished||(this._partialLine=$.substring(w-this._baseIndex),this._baseIndex=w),pe&&pe.data&&(this._rowCount+=pe.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),c)n.postMessage({results:pe,workerId:y.WORKER_ID,finished:$});else if(ae(this._config.chunk)&&!H){if(this._config.chunk(pe,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=pe=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(pe.data),this._completeResults.errors=this._completeResults.errors.concat(pe.errors),this._completeResults.meta=pe.meta),this._completed||!$||!ae(this._config.complete)||pe&&pe.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),$||pe&&pe.meta.paused||this._nextChunk(),pe}this._halted=!0},this._sendError=function(w){ae(this._config.error)?this._config.error(w):c&&this._config.error&&n.postMessage({workerId:y.WORKER_ID,error:w,finished:!1})}}function U(R){var w;(R=R||{}).chunkSize||(R.chunkSize=y.RemoteChunkSize),I.call(this,R),this._nextChunk=l?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(H){this._input=H,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(w=new XMLHttpRequest,this._config.withCredentials&&(w.withCredentials=this._config.withCredentials),l||(w.onload=te(this._chunkLoaded,this),w.onerror=te(this._chunkError,this)),w.open(this._config.downloadRequestBody?"POST":"GET",this._input,!l),this._config.downloadRequestHeaders){var H,$=this._config.downloadRequestHeaders;for(H in $)w.setRequestHeader(H,$[H])}var pe;this._config.chunkSize&&(pe=this._start+this._config.chunkSize-1,w.setRequestHeader("Range","bytes="+this._start+"-"+pe));try{w.send(this._config.downloadRequestBody)}catch(k){this._chunkError(k.message)}l&&w.status===0&&this._chunkError()}},this._chunkLoaded=function(){w.readyState===4&&(w.status<200||400<=w.status?this._chunkError():(this._start+=this._config.chunkSize||w.responseText.length,this._finished=!this._config.chunkSize||this._start>=(H=>(H=H.getResponseHeader("Content-Range"))!==null?parseInt(H.substring(H.lastIndexOf("/")+1)):-1)(w),this.parseChunk(w.responseText)))},this._chunkError=function(H){H=w.statusText||H,this._sendError(new Error(H))}}function A(R){(R=R||{}).chunkSize||(R.chunkSize=y.LocalChunkSize),I.call(this,R);var w,H,$=typeof FileReader<"u";this.stream=function(pe){this._input=pe,H=pe.slice||pe.webkitSlice||pe.mozSlice,$?((w=new FileReader).onload=te(this._chunkLoaded,this),w.onerror=te(this._chunkError,this)):w=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var pe=this._input,k=(this._config.chunkSize&&(k=Math.min(this._start+this._config.chunkSize,this._input.size),pe=H.call(pe,this._start,k)),w.readAsText(pe,this._config.encoding));$||this._chunkLoaded({target:{result:k}})},this._chunkLoaded=function(pe){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(pe.target.result)},this._chunkError=function(){this._sendError(w.error)}}function F(R){var w;I.call(this,R=R||{}),this.stream=function(H){return w=H,this._nextChunk()},this._nextChunk=function(){var H,$;if(!this._finished)return H=this._config.chunkSize,w=H?($=w.substring(0,H),w.substring(H)):($=w,""),this._finished=!w,this.parseChunk($)}}function O(R){I.call(this,R=R||{});var w=[],H=!0,$=!1;this.pause=function(){I.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){I.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(pe){this._input=pe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$&&w.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),w.length?this.parseChunk(w.shift()):H=!0},this._streamData=te(function(pe){try{w.push(typeof pe=="string"?pe:pe.toString(this._config.encoding)),H&&(H=!1,this._checkIsFinished(),this.parseChunk(w.shift()))}catch(k){this._streamError(k)}},this),this._streamError=te(function(pe){this._streamCleanUp(),this._sendError(pe)},this),this._streamEnd=te(function(){this._streamCleanUp(),$=!0,this._streamData("")},this),this._streamCleanUp=te(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function X(R){var w,H,$,pe,k=Math.pow(2,53),oe=-k,x=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ee=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Z=this,ce=0,ge=0,Ge=!1,_e=!1,we=[],re={data:[],errors:[],meta:{}};function De(le){return R.skipEmptyLines==="greedy"?le.join("").trim()==="":le.length===1&&le[0].length===0}function Ce(){if(re&&$&&(se("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+y.DefaultDelimiter+"'"),$=!1),R.skipEmptyLines&&(re.data=re.data.filter(function(Fe){return!De(Fe)})),ve()){let Fe=function(Pe,Oe){ae(R.transformHeader)&&(Pe=R.transformHeader(Pe,Oe)),we.push(Pe)};var ue=Fe;if(re)if(Array.isArray(re.data[0])){for(var le=0;ve()&&le<re.data.length;le++)re.data[le].forEach(Fe);re.data.splice(0,1)}else re.data.forEach(Fe)}function ye(Fe,Pe){for(var Oe=R.header?{}:[],Le=0;Le<Fe.length;Le++){var Re=Le,Ze=Fe[Le],Ze=((Be,Ve)=>(Ie=>(R.dynamicTypingFunction&&R.dynamicTyping[Ie]===void 0&&(R.dynamicTyping[Ie]=R.dynamicTypingFunction(Ie)),(R.dynamicTyping[Ie]||R.dynamicTyping)===!0))(Be)?Ve==="true"||Ve==="TRUE"||Ve!=="false"&&Ve!=="FALSE"&&((Ie=>{if(x.test(Ie)&&(Ie=parseFloat(Ie),oe<Ie&&Ie<k))return 1})(Ve)?parseFloat(Ve):ee.test(Ve)?new Date(Ve):Ve===""?null:Ve):Ve)(Re=R.header?Le>=we.length?"__parsed_extra":we[Le]:Re,Ze=R.transform?R.transform(Ze,Re):Ze);Re==="__parsed_extra"?(Oe[Re]=Oe[Re]||[],Oe[Re].push(Ze)):Oe[Re]=Ze}return R.header&&(Le>we.length?se("FieldMismatch","TooManyFields","Too many fields: expected "+we.length+" fields but parsed "+Le,ge+Pe):Le<we.length&&se("FieldMismatch","TooFewFields","Too few fields: expected "+we.length+" fields but parsed "+Le,ge+Pe)),Oe}var Me;re&&(R.header||R.dynamicTyping||R.transform)&&(Me=1,!re.data.length||Array.isArray(re.data[0])?(re.data=re.data.map(ye),Me=re.data.length):re.data=ye(re.data,0),R.header&&re.meta&&(re.meta.fields=we),ge+=Me)}function ve(){return R.header&&we.length===0}function se(le,ye,Me,ue){le={type:le,code:ye,message:Me},ue!==void 0&&(le.row=ue),re.errors.push(le)}ae(R.step)&&(pe=R.step,R.step=function(le){re=le,ve()?Ce():(Ce(),re.data.length!==0&&(ce+=le.data.length,R.preview&&ce>R.preview?H.abort():(re.data=re.data[0],pe(re,Z))))}),this.parse=function(le,ye,Me){var ue=R.quoteChar||'"',ue=(R.newline||(R.newline=this.guessLineEndings(le,ue)),$=!1,R.delimiter?ae(R.delimiter)&&(R.delimiter=R.delimiter(le),re.meta.delimiter=R.delimiter):((ue=((Fe,Pe,Oe,Le,Re)=>{var Ze,Be,Ve,Ie;Re=Re||[","," ","|",";",y.RECORD_SEP,y.UNIT_SEP];for(var Tt=0;Tt<Re.length;Tt++){for(var Et,br=Re[Tt],lt=0,Qt=0,je=0,Je=(Ve=void 0,new D({comments:Le,delimiter:br,newline:Pe,preview:10}).parse(Fe)),mt=0;mt<Je.data.length;mt++)Oe&&De(Je.data[mt])?je++:(Et=Je.data[mt].length,Qt+=Et,Ve===void 0?Ve=Et:0<Et&&(lt+=Math.abs(Et-Ve),Ve=Et));0<Je.data.length&&(Qt/=Je.data.length-je),(Be===void 0||lt<=Be)&&(Ie===void 0||Ie<Qt)&&1.99<Qt&&(Be=lt,Ze=br,Ie=Qt)}return{successful:!!(R.delimiter=Ze),bestDelimiter:Ze}})(le,R.newline,R.skipEmptyLines,R.comments,R.delimitersToGuess)).successful?R.delimiter=ue.bestDelimiter:($=!0,R.delimiter=y.DefaultDelimiter),re.meta.delimiter=R.delimiter),q(R));return R.preview&&R.header&&ue.preview++,w=le,H=new D(ue),re=H.parse(w,ye,Me),Ce(),Ge?{meta:{paused:!0}}:re||{meta:{paused:!1}}},this.paused=function(){return Ge},this.pause=function(){Ge=!0,H.abort(),w=ae(R.chunk)?"":w.substring(H.getCharIndex())},this.resume=function(){Z.streamer._halted?(Ge=!1,Z.streamer.parseChunk(w,!0)):setTimeout(Z.resume,3)},this.aborted=function(){return _e},this.abort=function(){_e=!0,H.abort(),re.meta.aborted=!0,ae(R.complete)&&R.complete(re),w=""},this.guessLineEndings=function(Fe,ue){Fe=Fe.substring(0,1048576);var ue=new RegExp(S(ue)+"([^]*?)"+S(ue),"gm"),Me=(Fe=Fe.replace(ue,"")).split("\r"),ue=Fe.split(`
8
+ `),Fe=1<ue.length&&ue[0].length<Me[0].length;if(Me.length===1||Fe)return`
9
+ `;for(var Pe=0,Oe=0;Oe<Me.length;Oe++)Me[Oe][0]===`
10
+ `&&Pe++;return Pe>=Me.length/2?`\r
11
+ `:"\r"}}function S(R){return R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function D(R){var w=(R=R||{}).delimiter,H=R.newline,$=R.comments,pe=R.step,k=R.preview,oe=R.fastMode,x=null,ee=!1,Z=R.quoteChar==null?'"':R.quoteChar,ce=Z;if(R.escapeChar!==void 0&&(ce=R.escapeChar),(typeof w!="string"||-1<y.BAD_DELIMITERS.indexOf(w))&&(w=","),$===w)throw new Error("Comment character same as delimiter");$===!0?$="#":(typeof $!="string"||-1<y.BAD_DELIMITERS.indexOf($))&&($=!1),H!==`
12
+ `&&H!=="\r"&&H!==`\r
13
+ `&&(H=`
14
+ `);var ge=0,Ge=!1;this.parse=function(_e,we,re){if(typeof _e!="string")throw new Error("Input must be a string");var De=_e.length,Ce=w.length,ve=H.length,se=$.length,le=ae(pe),ye=[],Me=[],ue=[],Fe=ge=0;if(!_e)return lt();if(oe||oe!==!1&&_e.indexOf(Z)===-1){for(var Pe=_e.split(H),Oe=0;Oe<Pe.length;Oe++){if(ue=Pe[Oe],ge+=ue.length,Oe!==Pe.length-1)ge+=H.length;else if(re)return lt();if(!$||ue.substring(0,se)!==$){if(le){if(ye=[],Ie(ue.split(w)),Qt(),Ge)return lt()}else Ie(ue.split(w));if(k&&k<=Oe)return ye=ye.slice(0,k),lt(!0)}}return lt()}for(var Le=_e.indexOf(w,ge),Re=_e.indexOf(H,ge),Ze=new RegExp(S(ce)+S(Z),"g"),Be=_e.indexOf(Z,ge);;)if(_e[ge]===Z)for(Be=ge,ge++;;){if((Be=_e.indexOf(Z,Be+1))===-1)return re||Me.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ye.length,index:ge}),Et();if(Be===De-1)return Et(_e.substring(ge,Be).replace(Ze,Z));if(Z===ce&&_e[Be+1]===ce)Be++;else if(Z===ce||Be===0||_e[Be-1]!==ce){Le!==-1&&Le<Be+1&&(Le=_e.indexOf(w,Be+1));var Ve=Tt((Re=Re!==-1&&Re<Be+1?_e.indexOf(H,Be+1):Re)===-1?Le:Math.min(Le,Re));if(_e.substr(Be+1+Ve,Ce)===w){ue.push(_e.substring(ge,Be).replace(Ze,Z)),_e[ge=Be+1+Ve+Ce]!==Z&&(Be=_e.indexOf(Z,ge)),Le=_e.indexOf(w,ge),Re=_e.indexOf(H,ge);break}if(Ve=Tt(Re),_e.substring(Be+1+Ve,Be+1+Ve+ve)===H){if(ue.push(_e.substring(ge,Be).replace(Ze,Z)),br(Be+1+Ve+ve),Le=_e.indexOf(w,ge),Be=_e.indexOf(Z,ge),le&&(Qt(),Ge))return lt();if(k&&ye.length>=k)return lt(!0);break}Me.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ye.length,index:ge}),Be++}}else if($&&ue.length===0&&_e.substring(ge,ge+se)===$){if(Re===-1)return lt();ge=Re+ve,Re=_e.indexOf(H,ge),Le=_e.indexOf(w,ge)}else if(Le!==-1&&(Le<Re||Re===-1))ue.push(_e.substring(ge,Le)),ge=Le+Ce,Le=_e.indexOf(w,ge);else{if(Re===-1)break;if(ue.push(_e.substring(ge,Re)),br(Re+ve),le&&(Qt(),Ge))return lt();if(k&&ye.length>=k)return lt(!0)}return Et();function Ie(je){ye.push(je),Fe=ge}function Tt(je){var Je=0;return Je=je!==-1&&(je=_e.substring(Be+1,je))&&je.trim()===""?je.length:Je}function Et(je){return re||(je===void 0&&(je=_e.substring(ge)),ue.push(je),ge=De,Ie(ue),le&&Qt()),lt()}function br(je){ge=je,Ie(ue),ue=[],Re=_e.indexOf(H,ge)}function lt(je){if(R.header&&!we&&ye.length&&!ee){var Je=ye[0],mt=Object.create(null),ut=new Set(Je);let ze=!1;for(let kt=0;kt<Je.length;kt++){let ft=Je[kt];if(mt[ft=ae(R.transformHeader)?R.transformHeader(ft,kt):ft]){let Ot,vr=mt[ft];for(;Ot=ft+"_"+vr,vr++,ut.has(Ot););ut.add(Ot),Je[kt]=Ot,mt[ft]++,ze=!0,(x=x===null?{}:x)[Ot]=ft}else mt[ft]=1,Je[kt]=ft;ut.add(ft)}ze&&console.warn("Duplicate headers found and renamed."),ee=!0}return{data:ye,errors:Me,meta:{delimiter:w,linebreak:H,aborted:Ge,truncated:!!je,cursor:Fe+(we||0),renamedHeaders:x}}}function Qt(){pe(lt()),ye=[],Me=[]}},this.abort=function(){Ge=!0},this.getCharIndex=function(){return ge}}function _(R){var w=R.data,H=p[w.workerId],$=!1;if(w.error)H.userError(w.error,w.file);else if(w.results&&w.results.data){var pe={abort:function(){$=!0,M(w.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:J,resume:J};if(ae(H.userStep)){for(var k=0;k<w.results.data.length&&(H.userStep({data:w.results.data[k],errors:w.results.errors,meta:w.results.meta},pe),!$);k++);delete w.results}else ae(H.userChunk)&&(H.userChunk(w.results,pe,w.file),delete w.results)}w.finished&&!$&&M(w.workerId,w.results)}function M(R,w){var H=p[R];ae(H.userComplete)&&H.userComplete(w),H.terminate(),delete p[R]}function J(){throw new Error("Not implemented.")}function q(R){if(typeof R!="object"||R===null)return R;var w,H=Array.isArray(R)?[]:{};for(w in R)H[w]=q(R[w]);return H}function te(R,w){return function(){R.apply(w,arguments)}}function ae(R){return typeof R=="function"}return y.parse=function(R,w){var H=(w=w||{}).dynamicTyping||!1;if(ae(H)&&(w.dynamicTypingFunction=H,H={}),w.dynamicTyping=H,w.transform=!!ae(w.transform)&&w.transform,!w.worker||!y.WORKERS_SUPPORTED)return H=null,y.NODE_STREAM_INPUT,typeof R=="string"?(R=($=>$.charCodeAt(0)!==65279?$:$.slice(1))(R),H=new(w.download?U:F)(w)):R.readable===!0&&ae(R.read)&&ae(R.on)?H=new O(w):(n.File&&R instanceof File||R instanceof Object)&&(H=new A(w)),H.stream(R);(H=(()=>{var $;return!!y.WORKERS_SUPPORTED&&($=(()=>{var pe=n.URL||n.webkitURL||null,k=r.toString();return y.BLOB_URL||(y.BLOB_URL=pe.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",k,")();"],{type:"text/javascript"})))})(),($=new n.Worker($)).onmessage=_,$.id=g++,p[$.id]=$)})()).userStep=w.step,H.userChunk=w.chunk,H.userComplete=w.complete,H.userError=w.error,w.step=ae(w.step),w.chunk=ae(w.chunk),w.complete=ae(w.complete),w.error=ae(w.error),delete w.worker,H.postMessage({input:R,config:w,workerId:H.id})},y.unparse=function(R,w){var H=!1,$=!0,pe=",",k=`\r
15
+ `,oe='"',x=oe+oe,ee=!1,Z=null,ce=!1,ge=((()=>{if(typeof w=="object"){if(typeof w.delimiter!="string"||y.BAD_DELIMITERS.filter(function(we){return w.delimiter.indexOf(we)!==-1}).length||(pe=w.delimiter),typeof w.quotes!="boolean"&&typeof w.quotes!="function"&&!Array.isArray(w.quotes)||(H=w.quotes),typeof w.skipEmptyLines!="boolean"&&typeof w.skipEmptyLines!="string"||(ee=w.skipEmptyLines),typeof w.newline=="string"&&(k=w.newline),typeof w.quoteChar=="string"&&(oe=w.quoteChar),typeof w.header=="boolean"&&($=w.header),Array.isArray(w.columns)){if(w.columns.length===0)throw new Error("Option columns is empty");Z=w.columns}w.escapeChar!==void 0&&(x=w.escapeChar+oe),w.escapeFormulae instanceof RegExp?ce=w.escapeFormulae:typeof w.escapeFormulae=="boolean"&&w.escapeFormulae&&(ce=/^[=+\-@\t\r].*$/)}})(),new RegExp(S(oe),"g"));if(typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(R)){if(!R.length||Array.isArray(R[0]))return Ge(null,R,ee);if(typeof R[0]=="object")return Ge(Z||Object.keys(R[0]),R,ee)}else if(typeof R=="object")return typeof R.data=="string"&&(R.data=JSON.parse(R.data)),Array.isArray(R.data)&&(R.fields||(R.fields=R.meta&&R.meta.fields||Z),R.fields||(R.fields=Array.isArray(R.data[0])?R.fields:typeof R.data[0]=="object"?Object.keys(R.data[0]):[]),Array.isArray(R.data[0])||typeof R.data[0]=="object"||(R.data=[R.data])),Ge(R.fields||[],R.data||[],ee);throw new Error("Unable to serialize unrecognized input");function Ge(we,re,De){var Ce="",ve=(typeof we=="string"&&(we=JSON.parse(we)),typeof re=="string"&&(re=JSON.parse(re)),Array.isArray(we)&&0<we.length),se=!Array.isArray(re[0]);if(ve&&$){for(var le=0;le<we.length;le++)0<le&&(Ce+=pe),Ce+=_e(we[le],le);0<re.length&&(Ce+=k)}for(var ye=0;ye<re.length;ye++){var Me=(ve?we:re[ye]).length,ue=!1,Fe=ve?Object.keys(re[ye]).length===0:re[ye].length===0;if(De&&!ve&&(ue=De==="greedy"?re[ye].join("").trim()==="":re[ye].length===1&&re[ye][0].length===0),De==="greedy"&&ve){for(var Pe=[],Oe=0;Oe<Me;Oe++){var Le=se?we[Oe]:Oe;Pe.push(re[ye][Le])}ue=Pe.join("").trim()===""}if(!ue){for(var Re=0;Re<Me;Re++){0<Re&&!Fe&&(Ce+=pe);var Ze=ve&&se?we[Re]:Re;Ce+=_e(re[ye][Ze],Re)}ye<re.length-1&&(!De||0<Me&&!Fe)&&(Ce+=k)}}return Ce}function _e(we,re){var De,Ce;return we==null?"":we.constructor===Date?JSON.stringify(we).slice(1,25):(Ce=!1,ce&&typeof we=="string"&&ce.test(we)&&(we="'"+we,Ce=!0),De=we.toString().replace(ge,x),(Ce=Ce||H===!0||typeof H=="function"&&H(we,re)||Array.isArray(H)&&H[re]||((ve,se)=>{for(var le=0;le<se.length;le++)if(-1<ve.indexOf(se[le]))return!0;return!1})(De,y.BAD_DELIMITERS)||-1<De.indexOf(pe)||De.charAt(0)===" "||De.charAt(De.length-1)===" ")?oe+De+oe:De)}},y.RECORD_SEP="",y.UNIT_SEP="",y.BYTE_ORDER_MARK="\uFEFF",y.BAD_DELIMITERS=["\r",`
16
+ `,'"',y.BYTE_ORDER_MARK],y.WORKERS_SUPPORTED=!l&&!!n.Worker,y.NODE_STREAM_INPUT=1,y.LocalChunkSize=10485760,y.RemoteChunkSize=5242880,y.DefaultDelimiter=",",y.Parser=D,y.ParserHandle=X,y.NetworkStreamer=U,y.FileStreamer=A,y.StringStreamer=F,y.ReadableStreamStreamer=O,n.jQuery&&((a=n.jQuery).fn.parse=function(R){var w=R.config||{},H=[];return this.each(function(k){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var oe=0;oe<this.files.length;oe++)H.push({file:this.files[oe],inputElem:this,instanceConfig:a.extend({},w)})}),$(),this;function $(){if(H.length===0)ae(R.complete)&&R.complete();else{var k,oe,x,ee,Z=H[0];if(ae(R.before)){var ce=R.before(Z.file,Z.inputElem);if(typeof ce=="object"){if(ce.action==="abort")return k="AbortError",oe=Z.file,x=Z.inputElem,ee=ce.reason,void(ae(R.error)&&R.error({name:k},oe,x,ee));if(ce.action==="skip")return void pe();typeof ce.config=="object"&&(Z.instanceConfig=a.extend(Z.instanceConfig,ce.config))}else if(ce==="skip")return void pe()}var ge=Z.instanceConfig.complete;Z.instanceConfig.complete=function(Ge){ae(ge)&&ge(Ge,Z.file,Z.inputElem),pe()},y.parse(Z.file,Z.instanceConfig)}}function pe(){H.splice(0,1),$()}}),c&&(n.onmessage=function(R){R=R.data,y.WORKER_ID===void 0&&R&&(y.WORKER_ID=R.workerId),typeof R.input=="string"?n.postMessage({workerId:y.WORKER_ID,results:y.parse(R.input,R.config),finished:!0}):(n.File&&R.input instanceof File||R.input instanceof Object)&&(R=y.parse(R.input,R.config))&&n.postMessage({workerId:y.WORKER_ID,results:R,finished:!0})}),(U.prototype=Object.create(I.prototype)).constructor=U,(A.prototype=Object.create(I.prototype)).constructor=A,(F.prototype=Object.create(F.prototype)).constructor=F,(O.prototype=Object.create(I.prototype)).constructor=O,y})});var sm=et(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});var em="fas",tm="download",rm=512,nm=512,im=[],om="f019",am="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";Sr.definition={prefix:em,iconName:tm,icon:[rm,nm,im,om,am]};Sr.faDownload=Sr.definition;Sr.prefix=em;Sr.iconName=tm;Sr.width=rm;Sr.height=nm;Sr.ligatures=im;Sr.unicode=om;Sr.svgPathData=am});var gm=et(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var lm="fas",um="question-circle",fm=512,cm=512,dm=[],hm="f059",pm="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";wr.definition={prefix:lm,iconName:um,icon:[fm,cm,dm,hm,pm]};wr.faQuestionCircle=wr.definition;wr.prefix=lm;wr.iconName=um;wr.width=fm;wr.height=cm;wr.ligatures=dm;wr.unicode=hm;wr.svgPathData=pm});var In=et((Ou,Mu)=>{(function(r,n){typeof Ou=="object"&&typeof Mu<"u"?Mu.exports=n():typeof define=="function"&&define.amd?define(n):(r=r||self,r.CodeMirror=n())})(Ou,function(){"use strict";var r=navigator.userAgent,n=navigator.platform,a=/gecko\/\d/i.test(r),l=/MSIE \d/.test(r),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),p=/Edge\/(\d+)/.exec(r),g=l||c||p,y=g&&(l?document.documentMode||6:+(p||c)[1]),I=!p&&/WebKit\//.test(r),U=I&&/Qt\/\d+\.\d+/.test(r),A=!p&&/Chrome\/(\d+)/.exec(r),F=A&&+A[1],O=/Opera\//.test(r),X=/Apple Computer/.test(navigator.vendor),S=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),D=/PhantomJS/.test(r),_=X&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),M=/Android/.test(r),J=_||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=_||/Mac/.test(n),te=/\bCrOS\b/.test(r),ae=/win/i.test(n),R=O&&r.match(/Version\/(\d*\.\d*)/);R&&(R=Number(R[1])),R&&R>=15&&(O=!1,I=!0);var w=q&&(U||O&&(R==null||R<12.11)),H=a||g&&y>=9;function $(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var pe=function(e,t){var o=e.className,i=$(t).exec(o);if(i){var s=o.slice(i.index+i[0].length);e.className=o.slice(0,i.index)+(s?i[1]+s:"")}};function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function oe(e,t){return k(e).appendChild(t)}function x(e,t,o,i){var s=document.createElement(e);if(o&&(s.className=o),i&&(s.style.cssText=i),typeof t=="string")s.appendChild(document.createTextNode(t));else if(t)for(var u=0;u<t.length;++u)s.appendChild(t[u]);return s}function ee(e,t,o,i){var s=x(e,t,o,i);return s.setAttribute("role","presentation"),s}var Z;document.createRange?Z=function(e,t,o,i){var s=document.createRange();return s.setEnd(i||e,o),s.setStart(e,t),s}:Z=function(e,t,o){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch{return i}return i.collapse(!0),i.moveEnd("character",o),i.moveStart("character",t),i};function ce(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ge(e){var t=e.ownerDocument||e,o;try{o=e.activeElement}catch{o=t.body||null}for(;o&&o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function Ge(e,t){var o=e.className;$(t).test(o)||(e.className+=(o?" ":"")+t)}function _e(e,t){for(var o=e.split(" "),i=0;i<o.length;i++)o[i]&&!$(o[i]).test(t)&&(t+=" "+o[i]);return t}var we=function(e){e.select()};_?we=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:g&&(we=function(e){try{e.select()}catch{}});function re(e){return e.display.wrapper.ownerDocument}function De(e){return Ce(e.display.wrapper)}function Ce(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function ve(e){return re(e).defaultView}function se(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function le(e,t,o){t||(t={});for(var i in e)e.hasOwnProperty(i)&&(o!==!1||!t.hasOwnProperty(i))&&(t[i]=e[i]);return t}function ye(e,t,o,i,s){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var u=i||0,d=s||0;;){var h=e.indexOf(" ",u);if(h<0||h>=t)return d+(t-u);d+=h-u,d+=o-d%o,u=h+1}}var Me=function(){this.id=null,this.f=null,this.time=0,this.handler=se(this.onTimeout,this)};Me.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Me.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};function ue(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}var Fe=50,Pe={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},Le={origin:"*mouse"},Re={origin:"+move"};function Ze(e,t,o){for(var i=0,s=0;;){var u=e.indexOf(" ",i);u==-1&&(u=e.length);var d=u-i;if(u==e.length||s+d>=t)return i+Math.min(d,t-s);if(s+=u-i,s+=o-s%o,i=u+1,s>=t)return i}}var Be=[""];function Ve(e){for(;Be.length<=e;)Be.push(Ie(Be)+" ");return Be[e]}function Ie(e){return e[e.length-1]}function Tt(e,t){for(var o=[],i=0;i<e.length;i++)o[i]=t(e[i],i);return o}function Et(e,t,o){for(var i=0,s=o(t);i<e.length&&o(e[i])<=s;)i++;e.splice(i,0,t)}function br(){}function lt(e,t){var o;return Object.create?o=Object.create(e):(br.prototype=e,o=new br),t&&le(t,o),o}var Qt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function je(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Qt.test(e))}function Je(e,t){return t?t.source.indexOf("\\w")>-1&&je(e)?!0:t.test(e):je(e)}function mt(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ut=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ze(e){return e.charCodeAt(0)>=768&&ut.test(e)}function kt(e,t,o){for(;(o<0?t>0:t<e.length)&&ze(e.charAt(t));)t+=o;return t}function ft(e,t,o){for(var i=t>o?-1:1;;){if(t==o)return t;var s=(t+o)/2,u=i<0?Math.ceil(s):Math.floor(s);if(u==t)return e(u)?t:o;e(u)?o=u:t=u+i}}function Ot(e,t,o,i){if(!e)return i(t,o,"ltr",0);for(var s=!1,u=0;u<e.length;++u){var d=e[u];(d.from<o&&d.to>t||t==o&&d.to==t)&&(i(Math.max(d.from,t),Math.min(d.to,o),d.level==1?"rtl":"ltr",u),s=!0)}s||i(t,o,"ltr")}var vr=null;function yr(e,t,o){var i;vr=null;for(var s=0;s<e.length;++s){var u=e[s];if(u.from<t&&u.to>t)return s;u.to==t&&(u.from!=u.to&&o=="before"?i=s:vr=s),u.from==t&&(u.from!=u.to&&o!="before"?i=s:vr=s)}return i??vr}var Tn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(b){return b<=247?e.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?t.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=/[stwN]/,u=/[LRr]/,d=/[Lb1n]/,h=/[1n]/;function m(b,T,C){this.level=b,this.from=T,this.to=C}return function(b,T){var C=T=="ltr"?"L":"R";if(b.length==0||T=="ltr"&&!i.test(b))return!1;for(var B=b.length,L=[],W=0;W<B;++W)L.push(o(b.charCodeAt(W)));for(var P=0,z=C;P<B;++P){var ne=L[P];ne=="m"?L[P]=z:z=ne}for(var he=0,ie=C;he<B;++he){var me=L[he];me=="1"&&ie=="r"?L[he]="n":u.test(me)&&(ie=me,me=="r"&&(L[he]="R"))}for(var Ae=1,Ee=L[0];Ae<B-1;++Ae){var ke=L[Ae];ke=="+"&&Ee=="1"&&L[Ae+1]=="1"?L[Ae]="1":ke==","&&Ee==L[Ae+1]&&(Ee=="1"||Ee=="n")&&(L[Ae]=Ee),Ee=ke}for(var $e=0;$e<B;++$e){var Lt=L[$e];if(Lt==",")L[$e]="N";else if(Lt=="%"){var ct=void 0;for(ct=$e+1;ct<B&&L[ct]=="%";++ct);for(var hr=$e&&L[$e-1]=="!"||ct<B&&L[ct]=="1"?"1":"N",$t=$e;$t<ct;++$t)L[$t]=hr;$e=ct-1}}for(var bt=0,er=C;bt<B;++bt){var Mt=L[bt];er=="L"&&Mt=="1"?L[bt]="L":u.test(Mt)&&(er=Mt)}for(var xt=0;xt<B;++xt)if(s.test(L[xt])){var vt=void 0;for(vt=xt+1;vt<B&&s.test(L[vt]);++vt);for(var ht=(xt?L[xt-1]:C)=="L",tr=(vt<B?L[vt]:C)=="L",Li=ht==tr?ht?"L":"R":C,Un=xt;Un<vt;++Un)L[Un]=Li;xt=vt-1}for(var Vt=[],Xr,Ft=0;Ft<B;)if(d.test(L[Ft])){var Ul=Ft;for(++Ft;Ft<B&&d.test(L[Ft]);++Ft);Vt.push(new m(0,Ul,Ft))}else{var dn=Ft,$n=Vt.length,ei=T=="rtl"?1:0;for(++Ft;Ft<B&&L[Ft]!="L";++Ft);for(var Xt=dn;Xt<Ft;)if(h.test(L[Xt])){dn<Xt&&(Vt.splice($n,0,new m(1,dn,Xt)),$n+=ei);var Fi=Xt;for(++Xt;Xt<Ft&&h.test(L[Xt]);++Xt);Vt.splice($n,0,new m(2,Fi,Xt)),$n+=ei,dn=Xt}else++Xt;dn<Ft&&Vt.splice($n,0,new m(1,dn,Ft))}return T=="ltr"&&(Vt[0].level==1&&(Xr=b.match(/^\s+/))&&(Vt[0].from=Xr[0].length,Vt.unshift(new m(0,0,Xr[0].length))),Ie(Vt).level==1&&(Xr=b.match(/\s+$/))&&(Ie(Vt).to-=Xr[0].length,Vt.push(new m(0,B-Xr[0].length,B)))),T=="rtl"?Vt.reverse():Vt}}();function Ne(e,t){var o=e.order;return o==null&&(o=e.order=Tn(e.text,t)),o}var Fr=[],Te=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||Fr).concat(o)}};function xr(e,t){return e._handlers&&e._handlers[t]||Fr}function Ct(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var i=e._handlers,s=i&&i[t];if(s){var u=ue(s,o);u>-1&&(i[t]=s.slice(0,u).concat(s.slice(u+1)))}}}function qe(e,t){var o=xr(e,t);if(o.length)for(var i=Array.prototype.slice.call(arguments,2),s=0;s<o.length;++s)o[s].apply(null,i)}function Ke(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,o||t.type,e,t),pt(t)||t.codemirrorIgnore}function lr(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)ue(o,t[i])==-1&&o.push(t[i])}function yt(e,t){return xr(e,t).length>0}function Ir(e){e.prototype.on=function(t,o){Te(this,t,o)},e.prototype.off=function(t,o){Ct(this,t,o)}}function At(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function rt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Vr(e){At(e),rt(e)}function En(e){return e.target||e.srcElement}function Yt(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),q&&e.ctrlKey&&t==1&&(t=3),t}var ci=function(){if(g&&y<9)return!1;var e=x("div");return"draggable"in e||"dragDrop"in e}(),on;function di(e){if(on==null){var t=x("span","\u200B");oe(e,x("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(on=t.offsetWidth<=1&&t.offsetHeight>2&&!(g&&y<8))}var o=on?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var Ht;function Pt(e){if(Ht!=null)return Ht;var t=oe(e,document.createTextNode("A\u062EA")),o=Z(t,0,1).getBoundingClientRect(),i=Z(t,1,2).getBoundingClientRect();return k(e),!o||o.left==o.right?!1:Ht=i.right-o.right<3}var jt=`
20
17
 
21
- b`.split(/\n/).length!=3?function(t){for(var i=0,l=[],o=t.length;i<=o;){var s=t.indexOf(`
22
- `,i);s==-1&&(s=t.length);var g=t.slice(i,t.charAt(s-1)=="\r"?s-1:s),y=g.indexOf("\r");y!=-1?(l.push(g.slice(0,y)),i+=y+1):(l.push(g),i=s+1)}return l}:function(t){return t.split(/\r\n?|\n/)},Cn=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},Ai=function(){var t=L("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),tn=null;function rn(t){if(tn!=null)return tn;var i=he(t,L("span","x")),l=i.getBoundingClientRect(),o=ae(i,0,1).getBoundingClientRect();return tn=Math.abs(l.left-o.left)>1}var gi={},Ir={};function Yr(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),gi[t]=i}function In(t,i){Ir[t]=i}function Xn(t){if(typeof t=="string"&&Ir.hasOwnProperty(t))t=Ir[t];else if(t&&typeof t.name=="string"&&Ir.hasOwnProperty(t.name)){var i=Ir[t.name];typeof i=="string"&&(i={name:i}),t=Ot(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Xn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Xn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Xe(t,i){i=Xn(i);var l=gi[i.name];if(!l)return Xe(t,"text/plain");var o=l(t,i);if($.hasOwnProperty(i.name)){var s=$[i.name];for(var g in s)s.hasOwnProperty(g)&&(o.hasOwnProperty(g)&&(o["_"+g]=o[g]),o[g]=s[g])}if(o.name=i.name,i.helperType&&(o.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)o[y]=i.modeProps[y];return o}var $={};function we(t,i){var l=$.hasOwnProperty(t)?$[t]:$[t]={};Ge(i,l)}function Oe(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var l={};for(var o in i){var s=i[o];s instanceof Array&&(s=s.concat([])),l[o]=s}return l}function kt(t,i){for(var l;t.innerMode&&(l=t.innerMode(i),!(!l||l.mode==t));)i=l.state,t=l.mode;return l||{mode:t,state:i}}function Pt(t,i,l){return t.startState?t.startState(i,l):!0}var ht=function(t,i,l){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};ht.prototype.eol=function(){return this.pos>=this.string.length},ht.prototype.sol=function(){return this.pos==this.lineStart},ht.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ht.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ht.prototype.eat=function(t){var i=this.string.charAt(this.pos),l;if(typeof t=="string"?l=i==t:l=i&&(t.test?t.test(i):t(i)),l)return++this.pos,i},ht.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},ht.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},ht.prototype.skipToEnd=function(){this.pos=this.string.length},ht.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},ht.prototype.backUp=function(t){this.pos-=t},ht.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=He(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},ht.prototype.indentation=function(){return He(this.string,null,this.tabSize)-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},ht.prototype.match=function(t,i,l){if(typeof t=="string"){var o=function(y){return l?y.toLowerCase():y},s=this.string.substr(this.pos,t.length);if(o(s)==o(t))return i!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},ht.prototype.current=function(){return this.string.slice(this.start,this.pos)},ht.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},ht.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},ht.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function De(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var l=t;!l.lines;)for(var o=0;;++o){var s=l.children[o],g=s.chunkSize();if(i<g){l=s;break}i-=g}return l.lines[i]}function wr(t,i,l){var o=[],s=i.line;return t.iter(i.line,l.line+1,function(g){var y=g.text;s==l.line&&(y=y.slice(0,l.ch)),s==i.line&&(y=y.slice(i.ch)),o.push(y),++s}),o}function nn(t,i,l){var o=[];return t.iter(i,l,function(s){o.push(s.text)}),o}function Nr(t,i){var l=i-t.height;if(l)for(var o=t;o;o=o.parent)o.height+=l}function N(t){if(t.parent==null)return null;for(var i=t.parent,l=_e(i.lines,t),o=i.parent;o;i=o,o=o.parent)for(var s=0;o.children[s]!=i;++s)l+=o.children[s].chunkSize();return l+i.first}function H(t,i){var l=t.first;e:do{for(var o=0;o<t.children.length;++o){var s=t.children[o],g=s.height;if(i<g){t=s;continue e}i-=g,l+=s.chunkSize()}return l}while(!t.lines);for(var y=0;y<t.lines.length;++y){var C=t.lines[y],w=C.height;if(i<w)break;i-=w}return l+y}function pe(t,i){return i>=t.first&&i<t.first+t.size}function Ce(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function ue(t,i,l){if(l===void 0&&(l=null),!(this instanceof ue))return new ue(t,i,l);this.line=t,this.ch=i,this.sticky=l}function Ee(t,i){return t.line-i.line||t.ch-i.ch}function It(t,i){return t.sticky==i.sticky&&Ee(t,i)==0}function ir(t){return ue(t.line,t.ch)}function Pr(t,i){return Ee(t,i)<0?i:t}function ia(t,i){return Ee(t,i)<0?t:i}function ho(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ot(t,i){if(i.line<t.first)return ue(t.first,0);var l=t.first+t.size-1;return i.line>l?ue(l,De(t,l).text.length):po(i,De(t,i.line).text.length)}function po(t,i){var l=t.ch;return l==null||l>i?ue(t.line,i):l<0?ue(t.line,0):t}function vl(t,i){for(var l=[],o=0;o<i.length;o++)l[o]=ot(t,i[o]);return l}var go=function(t,i){this.state=t,this.lookAhead=i},Jn=function(t,i,l,o){this.state=i,this.doc=t,this.line=l,this.maxLookAhead=o||0,this.baseTokens=null,this.baseTokenPos=1};Jn.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Jn.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Jn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Jn.fromSaved=function(t,i,l){return i instanceof go?new Jn(t,Oe(t.mode,i.state),l,i.lookAhead):new Jn(t,Oe(t.mode,i),l)},Jn.prototype.save=function(t){var i=t!==!1?Oe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new go(i,this.maxLookAhead):i};function wn(t,i,l,o){var s=[t.state.modeGen],g={};aa(t,i.text,t.doc.mode,l,function(E,O){return s.push(E,O)},g,o);for(var y=l.state,C=function(E){l.baseTokens=s;var O=t.state.overlays[E],J=1,ie=0;l.state=!0,aa(t,i.text,O.mode,l,function(re,de){for(var ve=J;ie<re;){var Re=s[J];Re>re&&s.splice(J,1,re,s[J+1],Re),J+=2,ie=Math.min(re,Re)}if(de)if(O.opaque)s.splice(ve,J-ve,re,"overlay "+de),J=ve+2;else for(;ve<J;ve+=2){var Ue=s[ve+1];s[ve+1]=(Ue?Ue+" ":"")+"overlay "+de}},g),l.state=y,l.baseTokens=null,l.baseTokenPos=1},w=0;w<t.state.overlays.length;++w)C(w);return{styles:s,classes:g.bgClass||g.textClass?g:null}}function yl(t,i,l){if(!i.styles||i.styles[0]!=t.state.modeGen){var o=mi(t,N(i)),s=i.text.length>t.options.maxHighlightLength&&Oe(t.doc.mode,o.state),g=wn(t,i,o);s&&(o.state=s),i.stateAfter=o.save(!s),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),l===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function mi(t,i,l){var o=t.doc,s=t.display;if(!o.mode.startState)return new Jn(o,!0,i);var g=Zs(t,i,l),y=g>o.first&&De(o,g-1).stateAfter,C=y?Jn.fromSaved(o,y,g):new Jn(o,Pt(o.mode),g);return o.iter(g,i,function(w){xl(t,w.text,C);var E=C.line;w.stateAfter=E==i-1||E%5==0||E>=s.viewFrom&&E<s.viewTo?C.save():null,C.nextLine()}),l&&(o.modeFrontier=C.line),C}function xl(t,i,l,o){var s=t.doc.mode,g=new ht(i,t.options.tabSize,l);for(g.start=g.pos=o||0,i==""&&Ws(s,l.state);!g.eol();)bi(s,g,l.state),g.start=g.pos}function Ws(t,i){if(t.blankLine)return t.blankLine(i);if(t.innerMode){var l=kt(t,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function bi(t,i,l,o){for(var s=0;s<10;s++){o&&(o[0]=kt(t,l).mode);var g=t.token(i,l);if(i.pos>i.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var _i=function(t,i,l){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=l};function mo(t,i,l,o){var s=t.doc,g=s.mode,y;i=ot(s,i);var C=De(s,i.line),w=mi(t,i.line,l),E=new ht(C.text,t.options.tabSize,w),O;for(o&&(O=[]);(o||E.pos<i.ch)&&!E.eol();)E.start=E.pos,y=bi(g,E,w.state),o&&O.push(new _i(E,y,Oe(s.mode,w.state)));return o?O:new _i(E,y,w.state)}function Os(t,i){if(t)for(;;){var l=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;t=t.slice(0,l.index)+t.slice(l.index+l[0].length);var o=l[1]?"bgClass":"textClass";i[o]==null?i[o]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[o])||(i[o]+=" "+l[2])}return t}function aa(t,i,l,o,s,g,y){var C=l.flattenSpans;C==null&&(C=t.options.flattenSpans);var w=0,E=null,O=new ht(i,t.options.tabSize,o),J,ie=t.options.addModeClass&&[null];for(i==""&&Os(Ws(l,o.state),g);!O.eol();){if(O.pos>t.options.maxHighlightLength?(C=!1,y&&xl(t,i,o,O.pos),O.pos=i.length,J=null):J=Os(bi(l,O,o.state,ie),g),ie){var re=ie[0].name;re&&(J="m-"+(J?re+" "+J:re))}if(!C||E!=J){for(;w<O.start;)w=Math.min(O.start,w+5e3),s(w,E);E=J}O.start=O.pos}for(;w<O.pos;){var de=Math.min(O.pos,w+5e3);s(de,E),w=de}}function Zs(t,i,l){for(var o,s,g=t.doc,y=l?-1:i-(t.doc.mode.innerMode?1e3:100),C=i;C>y;--C){if(C<=g.first)return g.first;var w=De(g,C-1),E=w.stateAfter;if(E&&(!l||C+(E instanceof go?E.lookAhead:0)<=g.modeFrontier))return C;var O=He(w.text,null,t.options.tabSize);(s==null||o>O)&&(s=C-1,o=O)}return s}function Tl(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var l=t.first,o=i-1;o>l;o--){var s=De(t,o).stateAfter;if(s&&(!(s instanceof go)||o+s.lookAhead<i)){l=o+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,l)}}var Cl=!1,jn=!1;function Qf(){Cl=!0}function Ms(){jn=!0}function bo(t,i,l){this.marker=t,this.from=i,this.to=l}function ka(t,i){if(t)for(var l=0;l<t.length;++l){var o=t[l];if(o.marker==i)return o}}function Il(t,i){for(var l,o=0;o<t.length;++o)t[o]!=i&&(l||(l=[])).push(t[o]);return l}function Hf(t,i,l){var o=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));o&&t.markedSpans&&o.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],o&&o.add(t.markedSpans)),i.marker.attachLine(t)}function Xf(t,i,l){var o;if(t)for(var s=0;s<t.length;++s){var g=t[s],y=g.marker,C=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(C||g.from==i&&y.type=="bookmark"&&(!l||!g.marker.insertLeft)){var w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(o||(o=[])).push(new bo(y,g.from,w?null:g.to))}}return o}function Jf(t,i,l){var o;if(t)for(var s=0;s<t.length;++s){var g=t[s],y=g.marker,C=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(C||g.from==i&&y.type=="bookmark"&&(!l||g.marker.insertLeft)){var w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(o||(o=[])).push(new bo(y,w?null:g.from-i,g.to==null?null:g.to-i))}}return o}function wl(t,i){if(i.full)return null;var l=pe(t,i.from.line)&&De(t,i.from.line).markedSpans,o=pe(t,i.to.line)&&De(t,i.to.line).markedSpans;if(!l&&!o)return null;var s=i.from.ch,g=i.to.ch,y=Ee(i.from,i.to)==0,C=Xf(l,s,y),w=Jf(o,g,y),E=i.text.length==1,O=Ye(i.text).length+(E?s:0);if(C)for(var J=0;J<C.length;++J){var ie=C[J];if(ie.to==null){var re=ka(w,ie.marker);re?E&&(ie.to=re.to==null?null:re.to+O):ie.to=s}}if(w)for(var de=0;de<w.length;++de){var ve=w[de];if(ve.to!=null&&(ve.to+=O),ve.from==null){var Re=ka(C,ve.marker);Re||(ve.from=O,E&&(C||(C=[])).push(ve))}else ve.from+=O,E&&(C||(C=[])).push(ve)}C&&(C=Vs(C)),w&&w!=C&&(w=Vs(w));var Ue=[C];if(!E){var We=i.text.length-2,ke;if(We>0&&C)for(var Ve=0;Ve<C.length;++Ve)C[Ve].to==null&&(ke||(ke=[])).push(new bo(C[Ve].marker,null,null));for(var et=0;et<We;++et)Ue.push(ke);Ue.push(w)}return Ue}function Vs(t){for(var i=0;i<t.length;++i){var l=t[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function jf(t,i,l){var o=null;if(t.iter(i.line,l.line+1,function(re){if(re.markedSpans)for(var de=0;de<re.markedSpans.length;++de){var ve=re.markedSpans[de].marker;ve.readOnly&&(!o||_e(o,ve)==-1)&&(o||(o=[])).push(ve)}}),!o)return null;for(var s=[{from:i,to:l}],g=0;g<o.length;++g)for(var y=o[g],C=y.find(0),w=0;w<s.length;++w){var E=s[w];if(!(Ee(E.to,C.from)<0||Ee(E.from,C.to)>0)){var O=[w,1],J=Ee(E.from,C.from),ie=Ee(E.to,C.to);(J<0||!y.inclusiveLeft&&!J)&&O.push({from:E.from,to:C.from}),(ie>0||!y.inclusiveRight&&!ie)&&O.push({from:C.to,to:E.to}),s.splice.apply(s,O),w+=O.length-3}}return s}function Qs(t){var i=t.markedSpans;if(i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(t);t.markedSpans=null}}function Rl(t,i){if(i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(t);t.markedSpans=i}}function oa(t){return t.inclusiveLeft?-1:0}function Ga(t){return t.inclusiveRight?1:0}function Da(t,i){var l=t.lines.length-i.lines.length;if(l!=0)return l;var o=t.find(),s=i.find(),g=Ee(o.from,s.from)||oa(t)-oa(i);if(g)return-g;var y=Ee(o.to,s.to)||Ga(t)-Ga(i);return y||i.id-t.id}function Sl(t,i){var l=jn&&t.markedSpans,o;if(l)for(var s=void 0,g=0;g<l.length;++g)s=l[g],s.marker.collapsed&&(i?s.from:s.to)==null&&(!o||Da(o,s.marker)<0)&&(o=s.marker);return o}function El(t){return Sl(t,!0)}function la(t){return Sl(t,!1)}function Yf(t,i){var l=jn&&t.markedSpans,o;if(l)for(var s=0;s<l.length;++s){var g=l[s];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!o||Da(o,g.marker)<0)&&(o=g.marker)}return o}function Hs(t,i,l,o,s){var g=De(t,i),y=jn&&g.markedSpans;if(y)for(var C=0;C<y.length;++C){var w=y[C];if(w.marker.collapsed){var E=w.marker.find(0),O=Ee(E.from,l)||oa(w.marker)-oa(s),J=Ee(E.to,o)||Ga(w.marker)-Ga(s);if(!(O>=0&&J<=0||O<=0&&J>=0)&&(O<=0&&(w.marker.inclusiveRight&&s.inclusiveLeft?Ee(E.to,l)>=0:Ee(E.to,l)>0)||O>=0&&(w.marker.inclusiveRight&&s.inclusiveLeft?Ee(E.from,o)<=0:Ee(E.from,o)<0)))return!0}}}function Wn(t){for(var i;i=El(t);)t=i.find(-1,!0).line;return t}function Wa(t){for(var i;i=la(t);)t=i.find(1,!0).line;return t}function Xs(t){for(var i,l;i=la(t);)t=i.find(1,!0).line,(l||(l=[])).push(t);return l}function Oa(t,i){var l=De(t,i),o=Wn(l);return l==o?i:N(o)}function Js(t,i){if(i>t.lastLine())return i;var l=De(t,i),o;if(!Ni(t,l))return i;for(;o=la(l);)l=o.find(1,!0).line;return N(l)+1}function Ni(t,i){var l=jn&&i.markedSpans;if(l){for(var o=void 0,s=0;s<l.length;++s)if(o=l[s],!!o.marker.collapsed){if(o.from==null)return!0;if(!o.marker.widgetNode&&o.from==0&&o.marker.inclusiveLeft&&Al(t,i,o))return!0}}}function Al(t,i,l){if(l.to==null){var o=l.marker.find(1,!0);return Al(t,o.line,ka(o.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var s=void 0,g=0;g<i.markedSpans.length;++g)if(s=i.markedSpans[g],s.marker.collapsed&&!s.marker.widgetNode&&s.from==l.to&&(s.to==null||s.to!=l.from)&&(s.marker.inclusiveLeft||l.marker.inclusiveRight)&&Al(t,i,s))return!0}function d(t){t=Wn(t);for(var i=0,l=t.parent,o=0;o<l.lines.length;++o){var s=l.lines[o];if(s==t)break;i+=s.height}for(var g=l.parent;g;l=g,g=l.parent)for(var y=0;y<g.children.length;++y){var C=g.children[y];if(C==l)break;i+=C.height}return i}function p(t){if(t.height==0)return 0;for(var i=t.text.length,l,o=t;l=El(o);){var s=l.find(0,!0);o=s.from.line,i+=s.from.ch-s.to.ch}for(o=t;l=la(o);){var g=l.find(0,!0);i-=o.text.length-g.from.ch,o=g.to.line,i+=o.text.length-g.to.ch}return i}function v(t){var i=t.display,l=t.doc;i.maxLine=De(l,l.first),i.maxLineLength=p(i.maxLine),i.maxLineChanged=!0,l.iter(function(o){var s=p(o);s>i.maxLineLength&&(i.maxLineLength=s,i.maxLine=o)})}var T=function(t,i,l){this.text=t,Rl(this,i),this.height=l?l(this):1};T.prototype.lineNo=function(){return N(this)},Yt(T);function R(t,i,l,o){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Qs(t),Rl(t,l);var s=o?o(t):1;s!=t.height&&Nr(t,s)}function S(t){t.parent=null,Qs(t)}var B={},P={};function Y(t,i){if(!t||/^\s*$/.test(t))return null;var l=i.addModeClass?P:B;return l[t]||(l[t]=t.replace(/\S+/g,"cm-$&"))}function ne(t,i){var l=xe("span",null,null,x?"padding-right: .1px":null),o={pre:xe("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var s=0;s<=(i.rest?i.rest.length:0);s++){var g=s?i.rest[s-1]:i.line,y=void 0;o.pos=0,o.addToken=be,Zr(t.display.measure)&&(y=at(g,t.doc.direction))&&(o.addToken=Se(o.addToken,y)),o.map=[];var C=i!=t.display.externalMeasured&&N(g);Nt(g,o,yl(t,g,C)),g.styleClasses&&(g.styleClasses.bgClass&&(o.bgClass=Ke(g.styleClasses.bgClass,o.bgClass||"")),g.styleClasses.textClass&&(o.textClass=Ke(g.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(pi(t.display.measure))),s==0?(i.measure.map=o.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(o.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(x){var w=o.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return Ft(t,"renderLine",t,i.line,o.pre),o.pre.className&&(o.textClass=Ke(o.pre.className,o.textClass||"")),o}function ce(t){var i=L("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function be(t,i,l,o,s,g,y){if(i){var C=t.splitSpaces?le(i,t.trailingSpace):i,w=t.cm.state.specialChars,E=!1,O;if(!w.test(i))t.col+=i.length,O=document.createTextNode(C),t.map.push(t.pos,t.pos+i.length,O),h&&b<9&&(E=!0),t.pos+=i.length;else{O=document.createDocumentFragment();for(var J=0;;){w.lastIndex=J;var ie=w.exec(i),re=ie?ie.index-J:i.length-J;if(re){var de=document.createTextNode(C.slice(J,J+re));h&&b<9?O.appendChild(L("span",[de])):O.appendChild(de),t.map.push(t.pos,t.pos+re,de),t.col+=re,t.pos+=re}if(!ie)break;J+=re+1;var ve=void 0;if(ie[0]==" "){var Re=t.cm.options.tabSize,Ue=Re-t.col%Re;ve=O.appendChild(L("span",mt(Ue),"cm-tab")),ve.setAttribute("role","presentation"),ve.setAttribute("cm-text"," "),t.col+=Ue}else ie[0]=="\r"||ie[0]==`
23
- `?(ve=O.appendChild(L("span",ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ve.setAttribute("cm-text",ie[0]),t.col+=1):(ve=t.cm.options.specialCharPlaceholder(ie[0]),ve.setAttribute("cm-text",ie[0]),h&&b<9?O.appendChild(L("span",[ve])):O.appendChild(ve),t.col+=1);t.map.push(t.pos,t.pos+1,ve),t.pos++}}if(t.trailingSpace=C.charCodeAt(i.length-1)==32,l||o||s||E||g||y){var We=l||"";o&&(We+=o),s&&(We+=s);var ke=L("span",[O],We,g);if(y)for(var Ve in y)y.hasOwnProperty(Ve)&&Ve!="style"&&Ve!="class"&&ke.setAttribute(Ve,y[Ve]);return t.content.appendChild(ke)}t.content.appendChild(O)}}function le(t,i){if(t.length>1&&!/ /.test(t))return t;for(var l=i,o="",s=0;s<t.length;s++){var g=t.charAt(s);g==" "&&l&&(s==t.length-1||t.charCodeAt(s+1)==32)&&(g="\xA0"),o+=g,l=g==" "}return o}function Se(t,i){return function(l,o,s,g,y,C,w){s=s?s+" cm-force-border":"cm-force-border";for(var E=l.pos,O=E+o.length;;){for(var J=void 0,ie=0;ie<i.length&&(J=i[ie],!(J.to>E&&J.from<=E));ie++);if(J.to>=O)return t(l,o,s,g,y,C,w);t(l,o.slice(0,J.to-E),s,g,null,C,w),g=null,o=o.slice(J.to-E),E=J.to}}}function ft(t,i,l,o){var s=!o&&l.widgetNode;s&&t.map.push(t.pos,t.pos+i,s),!o&&t.cm.display.input.needsContentAttribute&&(s||(s=t.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",l.id)),s&&(t.cm.display.input.setUneditable(s),t.content.appendChild(s)),t.pos+=i,t.trailingSpace=!1}function Nt(t,i,l){var o=t.markedSpans,s=t.text,g=0;if(!o){for(var y=1;y<l.length;y+=2)i.addToken(i,s.slice(g,g=l[y]),Y(l[y+1],i.cm.options));return}for(var C=s.length,w=0,E=1,O="",J,ie,re=0,de,ve,Re,Ue,We;;){if(re==w){de=ve=Re=ie="",We=null,Ue=null,re=1/0;for(var ke=[],Ve=void 0,et=0;et<o.length;++et){var qe=o[et],yt=qe.marker;if(yt.type=="bookmark"&&qe.from==w&&yt.widgetNode)ke.push(yt);else if(qe.from<=w&&(qe.to==null||qe.to>w||yt.collapsed&&qe.to==w&&qe.from==w)){if(qe.to!=null&&qe.to!=w&&re>qe.to&&(re=qe.to,ve=""),yt.className&&(de+=" "+yt.className),yt.css&&(ie=(ie?ie+";":"")+yt.css),yt.startStyle&&qe.from==w&&(Re+=" "+yt.startStyle),yt.endStyle&&qe.to==re&&(Ve||(Ve=[])).push(yt.endStyle,qe.to),yt.title&&((We||(We={})).title=yt.title),yt.attributes)for(var Xt in yt.attributes)(We||(We={}))[Xt]=yt.attributes[Xt];yt.collapsed&&(!Ue||Da(Ue.marker,yt)<0)&&(Ue=qe)}else qe.from>w&&re>qe.from&&(re=qe.from)}if(Ve)for(var Ur=0;Ur<Ve.length;Ur+=2)Ve[Ur+1]==re&&(ve+=" "+Ve[Ur]);if(!Ue||Ue.from==w)for(var or=0;or<ke.length;++or)ft(i,0,ke[or]);if(Ue&&(Ue.from||0)==w){if(ft(i,(Ue.to==null?C+1:Ue.to)-w,Ue.marker,Ue.from==null),Ue.to==null)return;Ue.to==w&&(Ue=!1)}}if(w>=C)break;for(var _n=Math.min(C,re);;){if(O){var cn=w+O.length;if(!Ue){var Rr=cn>_n?O.slice(0,_n-w):O;i.addToken(i,Rr,J?J+de:de,Re,w+Rr.length==re?ve:"",ie,We)}if(cn>=_n){O=O.slice(_n-w),w=_n;break}w=cn,Re=""}O=s.slice(g,g=l[E++]),J=Y(l[E++],i.cm.options)}}}function vt(t,i,l){this.line=i,this.rest=Xs(i),this.size=this.rest?N(Ye(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ni(t,i)}function gr(t,i,l){for(var o=[],s,g=i;g<l;g=s){var y=new vt(t.doc,De(t.doc,g),g);s=g+y.size,o.push(y)}return o}var zt=null;function Yn(t){zt?zt.ops.push(t):t.ownsGroup=zt={ops:[t],delayedCallbacks:[]}}function Pn(t){var i=t.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var o=0;o<t.ops.length;o++){var s=t.ops[o];if(s.cursorActivityHandlers)for(;s.cursorActivityCalled<s.cursorActivityHandlers.length;)s.cursorActivityHandlers[s.cursorActivityCalled++].call(null,s.cm)}}while(l<i.length)}function St(t,i){var l=t.ownsGroup;if(l)try{Pn(l)}finally{zt=null,i(l)}}var On=null;function rt(t,i){var l=en(t,i);if(l.length){var o=Array.prototype.slice.call(arguments,2),s;zt?s=zt.delayedCallbacks:On?s=On:(s=On=[],setTimeout(ar,0));for(var g=function(C){s.push(function(){return l[C].apply(null,o)})},y=0;y<l.length;++y)g(y)}}function ar(){var t=On;On=null;for(var i=0;i<t.length;++i)t[i]()}function sa(t,i,l,o){for(var s=0;s<i.changes.length;s++){var g=i.changes[s];g=="text"?qn(t,i):g=="gutter"?vi(t,i,l,o):g=="class"?Kn(t,i):g=="widget"&&Rn(t,i,o)}i.changes=null}function Vi(t){return t.node==t.text&&(t.node=L("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),h&&b<8&&(t.node.style.zIndex=2)),t.node}function zn(t,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var o=Vi(i);i.background=o.insertBefore(L("div",null,l),o.firstChild),t.display.input.setUneditable(i.background)}}function ua(t,i){var l=t.display.externalMeasured;return l&&l.line==i.line?(t.display.externalMeasured=null,i.measure=l.measure,l.built):ne(t,i)}function qn(t,i){var l=i.text.className,o=ua(t,i);i.text==i.node&&(i.node=o.pre),i.text.parentNode.replaceChild(o.pre,i.text),i.text=o.pre,o.bgClass!=i.bgClass||o.textClass!=i.textClass?(i.bgClass=o.bgClass,i.textClass=o.textClass,Kn(t,i)):l&&(i.text.className=l)}function Kn(t,i){zn(t,i),i.line.wrapClass?Vi(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var l=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=l||""}function vi(t,i,l,o){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var s=Vi(i);i.gutterBackground=L("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),s.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(t.options.lineNumbers||g){var y=Vi(i),C=i.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(C.setAttribute("aria-hidden","true"),t.display.input.setUneditable(C),y.insertBefore(C,i.text),i.line.gutterClass&&(C.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=C.appendChild(L("div",Ce(t.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var w=0;w<t.display.gutterSpecs.length;++w){var E=t.display.gutterSpecs[w].className,O=g.hasOwnProperty(E)&&g[E];O&&C.appendChild(L("div",[O],"CodeMirror-gutter-elt","left: "+o.gutterLeft[E]+"px; width: "+o.gutterWidth[E]+"px"))}}}function Rn(t,i,l){i.alignable&&(i.alignable=null);for(var o=se("CodeMirror-linewidget"),s=i.node.firstChild,g=void 0;s;s=g)g=s.nextSibling,o.test(s.className)&&i.node.removeChild(s);$n(t,i,l)}function _l(t,i,l,o){var s=ua(t,i);return i.text=i.node=s.pre,s.bgClass&&(i.bgClass=s.bgClass),s.textClass&&(i.textClass=s.textClass),Kn(t,i),vi(t,i,l,o),$n(t,i,o),i.node}function $n(t,i,l){if(ei(t,i.line,i,l,!0),i.rest)for(var o=0;o<i.rest.length;o++)ei(t,i.rest[o],i,l,!1)}function ei(t,i,l,o,s){if(i.widgets)for(var g=Vi(l),y=0,C=i.widgets;y<C.length;++y){var w=C[y],E=L("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||E.setAttribute("cm-ignore-events","true"),Pf(w,E,l,o),t.display.input.setUneditable(E),s&&w.above?g.insertBefore(E,l.gutter||l.text):g.appendChild(E),rt(w,"redraw")}}function Pf(t,i,l,o){if(t.noHScroll){(l.alignable||(l.alignable=[])).push(i);var s=o.wrapperWidth;i.style.left=o.fixedPos+"px",t.coverGutter||(s-=o.gutterTotalWidth,i.style.paddingLeft=o.gutterTotalWidth+"px"),i.style.width=s+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-o.gutterTotalWidth+"px"))}function Za(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!Ie(document.body,t.node)){var l="position: relative;";t.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),he(i.display.measure,L("div",[t.node],null,l))}return t.height=t.node.parentNode.offsetHeight}function yi(t,i){for(var l=hi(i);l!=t.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==t.sizer&&l!=t.mover)return!0}function Ut(t){return t.lineSpace.offsetTop}function fa(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Sn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=he(t.measure,L("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,o={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(o.left)&&!isNaN(o.right)&&(t.cachedPaddingH=o),o}function zr(t){return ct-t.display.nativeBarWidth}function Qi(t){return t.display.scroller.clientWidth-zr(t)-t.display.barWidth}function Nl(t){return t.display.scroller.clientHeight-zr(t)-t.display.barHeight}function js(t,i,l){var o=t.options.lineWrapping,s=o&&Qi(t);if(!i.measure.heights||o&&i.measure.width!=s){var g=i.measure.heights=[];if(o){i.measure.width=s;for(var y=i.text.firstChild.getClientRects(),C=0;C<y.length-1;C++){var w=y[C],E=y[C+1];Math.abs(w.bottom-E.bottom)>2&&g.push((w.bottom+E.top)/2-l.top)}}g.push(l.bottom-l.top)}}function Fi(t,i,l){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var o=0;o<t.rest.length;o++)if(t.rest[o]==i)return{map:t.measure.maps[o],cache:t.measure.caches[o]};for(var s=0;s<t.rest.length;s++)if(N(t.rest[s])>l)return{map:t.measure.maps[s],cache:t.measure.caches[s],before:!0}}}function Fl(t,i){i=Wn(i);var l=N(i),o=t.display.externalMeasured=new vt(t.doc,i,l);o.lineN=l;var s=o.built=ne(t,o);return o.text=s.pre,he(t.display.lineMeasure,s.pre),o}function xi(t,i,l,o){return un(t,ti(t,i),l,o)}function vo(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Qa(t,i)];var l=t.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function ti(t,i){var l=N(i),o=vo(t,l);o&&!o.text?o=null:o&&o.changes&&(sa(t,o,l,En(t)),t.curOp.forceUpdate=!0),o||(o=Fl(t,i));var s=Fi(o,i,l);return{line:i,view:o,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function un(t,i,l,o,s){i.before&&(l=-1);var g=l+(o||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(js(t,i.view,i.rect),i.hasHeights=!0),y=xo(t,i,l,o),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:s?y.rtop:y.top,bottom:s?y.rbottom:y.bottom}}var Ma={left:0,right:0,top:0,bottom:0};function yo(t,i,l){for(var o,s,g,y,C,w,E=0;E<t.length;E+=3)if(C=t[E],w=t[E+1],i<C?(s=0,g=1,y="left"):i<w?(s=i-C,g=s+1):(E==t.length-3||i==w&&t[E+3]>i)&&(g=w-C,s=g-1,i>=w&&(y="right")),s!=null){if(o=t[E+2],C==w&&l==(o.insertLeft?"left":"right")&&(y=l),l=="left"&&s==0)for(;E&&t[E-2]==t[E-3]&&t[E-1].insertLeft;)o=t[(E-=3)+2],y="left";if(l=="right"&&s==w-C)for(;E<t.length-3&&t[E+3]==t[E+4]&&!t[E+5].insertLeft;)o=t[(E+=3)+2],y="right";break}return{node:o,start:s,end:g,collapse:y,coverStart:C,coverEnd:w}}function zf(t,i){var l=Ma;if(i=="left")for(var o=0;o<t.length&&(l=t[o]).left==l.right;o++);else for(var s=t.length-1;s>=0&&(l=t[s]).left==l.right;s--);return l}function xo(t,i,l,o){var s=yo(i.map,l,o),g=s.node,y=s.start,C=s.end,w=s.collapse,E;if(g.nodeType==3){for(var O=0;O<4;O++){for(;y&&Mt(i.line.text.charAt(s.coverStart+y));)--y;for(;s.coverStart+C<s.coverEnd&&Mt(i.line.text.charAt(s.coverStart+C));)++C;if(h&&b<9&&y==0&&C==s.coverEnd-s.coverStart?E=g.parentNode.getBoundingClientRect():E=zf(ae(g,y,C).getClientRects(),o),E.left||E.right||y==0)break;C=y,y=y-1,w="right"}h&&b<11&&(E=Ll(t.display.measure,E))}else{y>0&&(w=o="right");var J;t.options.lineWrapping&&(J=g.getClientRects()).length>1?E=J[o=="right"?J.length-1:0]:E=g.getBoundingClientRect()}if(h&&b<9&&!y&&(!E||!E.left&&!E.right)){var ie=g.parentNode.getClientRects()[0];ie?E={left:ie.left,right:ie.left+Fr(t.display),top:ie.top,bottom:ie.bottom}:E=Ma}for(var re=E.top-i.rect.top,de=E.bottom-i.rect.top,ve=(re+de)/2,Re=i.view.measure.heights,Ue=0;Ue<Re.length-1&&!(ve<Re[Ue]);Ue++);var We=Ue?Re[Ue-1]:0,ke=Re[Ue],Ve={left:(w=="right"?E.right:E.left)-i.rect.left,right:(w=="left"?E.left:E.right)-i.rect.left,top:We,bottom:ke};return!E.left&&!E.right&&(Ve.bogus=!0),t.options.singleCursorHeightPerLine||(Ve.rtop=re,Ve.rbottom=de),Ve}function Ll(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rn(t))return i;var l=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*o,bottom:i.bottom*o}}function To(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Ys(t){t.display.externalMeasure=null,q(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)To(t.display.view[i])}function Hi(t){Ys(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Bl(t){return I&&k?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function M(t){return I&&k?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function te(t){var i=Wn(t),l=i.widgets,o=0;if(l)for(var s=0;s<l.length;++s)l[s].above&&(o+=Za(l[s]));return o}function oe(t,i,l,o,s){if(!s){var g=te(i);l.top+=g,l.bottom+=g}if(o=="line")return l;o||(o="local");var y=d(i);if(o=="local"?y+=Ut(t.display):y-=t.display.viewOffset,o=="page"||o=="window"){var C=t.display.lineSpace.getBoundingClientRect();y+=C.top+(o=="window"?0:M(Ne(t)));var w=C.left+(o=="window"?0:Bl(Ne(t)));l.left+=w,l.right+=w}return l.top+=y,l.bottom+=y,l}function fe(t,i,l){if(l=="div")return i;var o=i.left,s=i.top;if(l=="page")o-=Bl(Ne(t)),s-=M(Ne(t));else if(l=="local"||!l){var g=t.display.sizer.getBoundingClientRect();o+=g.left,s+=g.top}var y=t.display.lineSpace.getBoundingClientRect();return{left:o-y.left,top:s-y.top}}function me(t,i,l,o,s){return o||(o=De(t.doc,i.line)),oe(t,o,xi(t,o,i.ch,s),l)}function Ae(t,i,l,o,s,g){o=o||De(t.doc,i.line),s||(s=ti(t,o));function y(de,ve){var Re=un(t,s,de,ve?"right":"left",g);return ve?Re.left=Re.right:Re.right=Re.left,oe(t,o,Re,l)}var C=at(o,t.doc.direction),w=i.ch,E=i.sticky;if(w>=o.text.length?(w=o.text.length,E="before"):w<=0&&(w=0,E="after"),!C)return y(E=="before"?w-1:w,E=="before");function O(de,ve,Re){var Ue=C[ve],We=Ue.level==1;return y(Re?de-1:de,We!=Re)}var J=Tr(C,w,E),ie=sr,re=O(w,J,E=="before");return ie!=null&&(re.other=O(w,ie,E!="before")),re}function Me(t,i){var l=0;i=ot(t.doc,i),t.options.lineWrapping||(l=Fr(t.display)*i.ch);var o=De(t.doc,i.line),s=d(o)+Ut(t.display);return{left:l,right:l,top:s,bottom:s+o.height}}function je(t,i,l,o,s){var g=ue(t,i,l);return g.xRel=s,o&&(g.outside=o),g}function Ze(t,i,l){var o=t.doc;if(l+=t.display.viewOffset,l<0)return je(o.first,0,null,-1,-1);var s=H(o,l),g=o.first+o.size-1;if(s>g)return je(o.first+o.size-1,De(o,g).text.length,null,1,1);i<0&&(i=0);for(var y=De(o,s);;){var C=wt(t,y,s,i,l),w=Yf(y,C.ch+(C.xRel>0||C.outside>0?1:0));if(!w)return C;var E=w.find(1);if(E.line==s)return E;y=De(o,s=E.line)}}function xt(t,i,l,o){o-=te(i);var s=i.text.length,g=jt(function(y){return un(t,l,y-1).bottom<=o},s,0);return s=jt(function(y){return un(t,l,y).top>o},g,s),{begin:g,end:s}}function it(t,i,l,o){l||(l=ti(t,i));var s=oe(t,i,un(t,l,o),"line").top;return xt(t,i,l,s)}function dt(t,i,l,o){return t.bottom<=l?!1:t.top>l?!0:(o?t.left:t.right)>i}function wt(t,i,l,o,s){s-=d(i);var g=ti(t,i),y=te(i),C=0,w=i.text.length,E=!0,O=at(i,t.doc.direction);if(O){var J=(t.options.lineWrapping?Ht:tt)(t,i,l,g,O,o,s);E=J.level!=1,C=E?J.from:J.to-1,w=E?J.to:J.from-1}var ie=null,re=null,de=jt(function(et){var qe=un(t,g,et);return qe.top+=y,qe.bottom+=y,dt(qe,o,s,!1)?(qe.top<=s&&qe.left<=o&&(ie=et,re=qe),!0):!1},C,w),ve,Re,Ue=!1;if(re){var We=o-re.left<re.right-o,ke=We==E;de=ie+(ke?0:1),Re=ke?"after":"before",ve=We?re.left:re.right}else{!E&&(de==w||de==C)&&de++,Re=de==0?"after":de==i.text.length?"before":un(t,g,de-(E?1:0)).bottom+y<=s==E?"after":"before";var Ve=Ae(t,ue(l,de,Re),"line",i,g);ve=Ve.left,Ue=s<Ve.top?-1:s>=Ve.bottom?1:0}return de=xr(i.text,de,1),je(l,de,Re,Ue,o-ve)}function tt(t,i,l,o,s,g,y){var C=jt(function(J){var ie=s[J],re=ie.level!=1;return dt(Ae(t,ue(l,re?ie.to:ie.from,re?"before":"after"),"line",i,o),g,y,!0)},0,s.length-1),w=s[C];if(C>0){var E=w.level!=1,O=Ae(t,ue(l,E?w.from:w.to,E?"after":"before"),"line",i,o);dt(O,g,y,!0)&&O.top>y&&(w=s[C-1])}return w}function Ht(t,i,l,o,s,g,y){var C=xt(t,i,o,y),w=C.begin,E=C.end;/\s/.test(i.text.charAt(E-1))&&E--;for(var O=null,J=null,ie=0;ie<s.length;ie++){var re=s[ie];if(!(re.from>=E||re.to<=w)){var de=re.level!=1,ve=un(t,o,de?Math.min(E,re.to)-1:Math.max(w,re.from)).right,Re=ve<g?g-ve+1e9:ve-g;(!O||J>Re)&&(O=re,J=Re)}}return O||(O=s[s.length-1]),O.from<w&&(O={from:w,to:O.to,level:O.level}),O.to>E&&(O={from:O.from,to:E,level:O.level}),O}var mr;function fr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(mr==null){mr=L("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)mr.appendChild(document.createTextNode("x")),mr.appendChild(L("br"));mr.appendChild(document.createTextNode("x"))}he(t.measure,mr);var l=mr.offsetHeight/50;return l>3&&(t.cachedTextHeight=l),q(t.measure),l||1}function Fr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=L("span","xxxxxxxxxx"),l=L("pre",[i],"CodeMirror-line-like");he(t.measure,l);var o=i.getBoundingClientRect(),s=(o.right-o.left)/10;return s>2&&(t.cachedCharWidth=s),s||10}function En(t){for(var i=t.display,l={},o={},s=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var C=t.display.gutterSpecs[y].className;l[C]=g.offsetLeft+g.clientLeft+s,o[C]=g.clientWidth}return{fixedPos:Li(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:o,wrapperWidth:i.wrapper.clientWidth}}function Li(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Mr(t){var i=fr(t.display),l=t.options.lineWrapping,o=l&&Math.max(5,t.display.scroller.clientWidth/Fr(t.display)-3);return function(s){if(Ni(t.doc,s))return 0;var g=0;if(s.widgets)for(var y=0;y<s.widgets.length;y++)s.widgets[y].height&&(g+=s.widgets[y].height);return l?g+(Math.ceil(s.text.length/o)||1)*i:g+i}}function qf(t){var i=t.doc,l=Mr(t);i.iter(function(o){var s=l(o);s!=o.height&&Nr(o,s)})}function Va(t,i,l,o){var s=t.display;if(!l&&hi(i).getAttribute("cm-not-content")=="true")return null;var g,y,C=s.lineSpace.getBoundingClientRect();try{g=i.clientX-C.left,y=i.clientY-C.top}catch{return null}var w=Ze(t,g,y),E;if(o&&w.xRel>0&&(E=De(t.doc,w.line).text).length==w.ch){var O=He(E,E.length,t.options.tabSize)-E.length;w=ue(w.line,Math.max(0,Math.round((g-Sn(t.display).left)/Fr(t.display))-O))}return w}function Qa(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var l=t.display.view,o=0;o<l.length;o++)if(i-=l[o].size,i<0)return o}function fn(t,i,l,o){i==null&&(i=t.doc.first),l==null&&(l=t.doc.first+t.doc.size),o||(o=0);var s=t.display;if(o&&l<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>i)&&(s.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=s.viewTo)jn&&Oa(t.doc,i)<s.viewTo&&ca(t);else if(l<=s.viewFrom)jn&&Js(t.doc,l+o)>s.viewFrom?ca(t):(s.viewFrom+=o,s.viewTo+=o);else if(i<=s.viewFrom&&l>=s.viewTo)ca(t);else if(i<=s.viewFrom){var g=Ps(t,l,l+o,1);g?(s.view=s.view.slice(g.index),s.viewFrom=g.lineN,s.viewTo+=o):ca(t)}else if(l>=s.viewTo){var y=Ps(t,i,i,-1);y?(s.view=s.view.slice(0,y.index),s.viewTo=y.lineN):ca(t)}else{var C=Ps(t,i,i,-1),w=Ps(t,l,l+o,1);C&&w?(s.view=s.view.slice(0,C.index).concat(gr(t,C.lineN,w.lineN)).concat(s.view.slice(w.index)),s.viewTo+=o):ca(t)}var E=s.externalMeasured;E&&(l<E.lineN?E.lineN+=o:i<E.lineN+E.size&&(s.externalMeasured=null))}function da(t,i,l){t.curOp.viewChanged=!0;var o=t.display,s=t.display.externalMeasured;if(s&&i>=s.lineN&&i<s.lineN+s.size&&(o.externalMeasured=null),!(i<o.viewFrom||i>=o.viewTo)){var g=o.view[Qa(t,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);_e(y,l)==-1&&y.push(l)}}}function ca(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ps(t,i,l,o){var s=Qa(t,i),g,y=t.display.view;if(!jn||l==t.doc.first+t.doc.size)return{index:s,lineN:l};for(var C=t.display.viewFrom,w=0;w<s;w++)C+=y[w].size;if(C!=i){if(o>0){if(s==y.length-1)return null;g=C+y[s].size-i,s++}else g=C-i;i+=g,l+=g}for(;Oa(t.doc,l)!=l;){if(s==(o<0?0:y.length-1))return null;l+=o*y[s-(o<0?1:0)].size,s+=o}return{index:s,lineN:l}}function Qy(t,i,l){var o=t.display,s=o.view;s.length==0||i>=o.viewTo||l<=o.viewFrom?(o.view=gr(t,i,l),o.viewFrom=i):(o.viewFrom>i?o.view=gr(t,i,o.viewFrom).concat(o.view):o.viewFrom<i&&(o.view=o.view.slice(Qa(t,i))),o.viewFrom=i,o.viewTo<l?o.view=o.view.concat(gr(t,o.viewTo,l)):o.viewTo>l&&(o.view=o.view.slice(0,Qa(t,l)))),o.viewTo=l}function uh(t){for(var i=t.display.view,l=0,o=0;o<i.length;o++){var s=i[o];!s.hidden&&(!s.node||s.changes)&&++l}return l}function Ul(t){t.display.input.showSelection(t.display.input.prepareSelection())}function fh(t,i){i===void 0&&(i=!0);var l=t.doc,o={},s=o.cursors=document.createDocumentFragment(),g=o.selection=document.createDocumentFragment(),y=t.options.$customCursor;y&&(i=!0);for(var C=0;C<l.sel.ranges.length;C++)if(!(!i&&C==l.sel.primIndex)){var w=l.sel.ranges[C];if(!(w.from().line>=t.display.viewTo||w.to().line<t.display.viewFrom)){var E=w.empty();if(y){var O=y(t,w);O&&Kf(t,O,s)}else(E||t.options.showCursorWhenSelecting)&&Kf(t,w.head,s);E||Hy(t,w,g)}}return o}function Kf(t,i,l){var o=Ae(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),s=l.appendChild(L("div","\xA0","CodeMirror-cursor"));if(s.style.left=o.left+"px",s.style.top=o.top+"px",s.style.height=Math.max(0,o.bottom-o.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=me(t,i,"div",null,null),y=g.right-g.left;s.style.width=(y>0?y:t.defaultCharWidth())+"px"}if(o.other){var C=l.appendChild(L("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));C.style.display="",C.style.left=o.other.left+"px",C.style.top=o.other.top+"px",C.style.height=(o.other.bottom-o.other.top)*.85+"px"}}function zs(t,i){return t.top-i.top||t.left-i.left}function Hy(t,i,l){var o=t.display,s=t.doc,g=document.createDocumentFragment(),y=Sn(t.display),C=y.left,w=Math.max(o.sizerWidth,Qi(t)-o.sizer.offsetLeft)-y.right,E=s.direction=="ltr";function O(ke,Ve,et,qe){Ve<0&&(Ve=0),Ve=Math.round(Ve),qe=Math.round(qe),g.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+ke+`px;
24
- top: `+Ve+"px; width: "+(et??w-ke)+`px;
25
- height: `+(qe-Ve)+"px"))}function J(ke,Ve,et){var qe=De(s,ke),yt=qe.text.length,Xt,Ur;function or(Rr,hn){return me(t,ue(ke,Rr),"div",qe,hn)}function _n(Rr,hn,Vr){var Er=it(t,qe,null,Rr),Sr=hn=="ltr"==(Vr=="after")?"left":"right",dr=Vr=="after"?Er.begin:Er.end-(/\s/.test(qe.text.charAt(Er.end-1))?2:1);return or(dr,Sr)[Sr]}var cn=at(qe,s.direction);return rr(cn,Ve||0,et??yt,function(Rr,hn,Vr,Er){var Sr=Vr=="ltr",dr=or(Rr,Sr?"left":"right"),pn=or(hn-1,Sr?"right":"left"),Uo=Ve==null&&Rr==0,va=et==null&&hn==yt,Kr=Er==0,Bi=!cn||Er==cn.length-1;if(pn.top-dr.top<=3){var kr=(E?Uo:va)&&Kr,Rd=(E?va:Uo)&&Bi,ji=kr?C:(Sr?dr:pn).left,Ya=Rd?w:(Sr?pn:dr).right;O(ji,dr.top,Ya-ji,dr.bottom)}else{var Pa,on,ko,Sd;Sr?(Pa=E&&Uo&&Kr?C:dr.left,on=E?w:_n(Rr,Vr,"before"),ko=E?C:_n(hn,Vr,"after"),Sd=E&&va&&Bi?w:pn.right):(Pa=E?_n(Rr,Vr,"before"):C,on=!E&&Uo&&Kr?w:dr.right,ko=!E&&va&&Bi?C:pn.left,Sd=E?_n(hn,Vr,"after"):w),O(Pa,dr.top,on-Pa,dr.bottom),dr.bottom<pn.top&&O(C,dr.bottom,null,pn.top),O(ko,pn.top,Sd-ko,pn.bottom)}(!Xt||zs(dr,Xt)<0)&&(Xt=dr),zs(pn,Xt)<0&&(Xt=pn),(!Ur||zs(dr,Ur)<0)&&(Ur=dr),zs(pn,Ur)<0&&(Ur=pn)}),{start:Xt,end:Ur}}var ie=i.from(),re=i.to();if(ie.line==re.line)J(ie.line,ie.ch,re.ch);else{var de=De(s,ie.line),ve=De(s,re.line),Re=Wn(de)==Wn(ve),Ue=J(ie.line,ie.ch,Re?de.text.length+1:null).end,We=J(re.line,Re?0:null,re.ch).start;Re&&(Ue.top<We.top-2?(O(Ue.right,Ue.top,null,Ue.bottom),O(C,We.top,We.left,We.bottom)):O(Ue.right,Ue.top,We.left-Ue.right,Ue.bottom)),Ue.bottom<We.top&&O(C,Ue.bottom,null,We.top)}l.appendChild(g)}function $f(t){if(t.state.focused){var i=t.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||Co(t),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function dh(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||td(t))}function ed(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Co(t))},100)}function td(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ft(t,"focus",t,i),t.state.focused=!0,nt(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),x&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),$f(t))}function Co(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ft(t,"blur",t,i),t.state.focused=!1,Te(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function qs(t){for(var i=t.display,l=i.lineDiv.offsetTop,o=Math.max(0,i.scroller.getBoundingClientRect().top),s=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var C=i.view[y],w=t.options.lineWrapping,E=void 0,O=0;if(!C.hidden){if(s+=C.line.height,h&&b<8){var J=C.node.offsetTop+C.node.offsetHeight;E=J-l,l=J}else{var ie=C.node.getBoundingClientRect();E=ie.bottom-ie.top,!w&&C.text.firstChild&&(O=C.text.firstChild.getBoundingClientRect().right-ie.left-1)}var re=C.line.height-E;if((re>.005||re<-.005)&&(s<o&&(g-=re),Nr(C.line,E),ch(C.line),C.rest))for(var de=0;de<C.rest.length;de++)ch(C.rest[de]);if(O>t.display.sizerWidth){var ve=Math.ceil(O/Fr(t.display));ve>t.display.maxLineLength&&(t.display.maxLineLength=ve,t.display.maxLine=C.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function ch(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var l=t.widgets[i],o=l.node.parentNode;o&&(l.height=o.offsetHeight)}}function Ks(t,i,l){var o=l&&l.top!=null?Math.max(0,l.top):t.scroller.scrollTop;o=Math.floor(o-Ut(t));var s=l&&l.bottom!=null?l.bottom:o+t.wrapper.clientHeight,g=H(i,o),y=H(i,s);if(l&&l.ensure){var C=l.ensure.from.line,w=l.ensure.to.line;C<g?(g=C,y=H(i,d(De(i,C))+t.wrapper.clientHeight)):Math.min(w,i.lastLine())>=y&&(g=H(i,d(De(i,w))-t.wrapper.clientHeight),y=w)}return{from:g,to:Math.max(y,g+1)}}function Xy(t,i){if(!Lt(t,"scrollCursorIntoView")){var l=t.display,o=l.sizer.getBoundingClientRect(),s=null,g=l.wrapper.ownerDocument;if(i.top+o.top<0?s=!0:i.bottom+o.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(s=!1),s!=null&&!X){var y=L("div","\u200B",null,`position: absolute;
26
- top: `+(i.top-l.viewOffset-Ut(t.display))+`px;
27
- height: `+(i.bottom-i.top+zr(t)+l.barHeight)+`px;
28
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(y),y.scrollIntoView(s),t.display.lineSpace.removeChild(y)}}}function Jy(t,i,l,o){o==null&&(o=0);var s;!t.options.lineWrapping&&i==l&&(l=i.sticky=="before"?ue(i.line,i.ch+1,"before"):i,i=i.ch?ue(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,C=Ae(t,i),w=!l||l==i?C:Ae(t,l);s={left:Math.min(C.left,w.left),top:Math.min(C.top,w.top)-o,right:Math.max(C.left,w.left),bottom:Math.max(C.bottom,w.bottom)+o};var E=rd(t,s),O=t.doc.scrollTop,J=t.doc.scrollLeft;if(E.scrollTop!=null&&(Gl(t,E.scrollTop),Math.abs(t.doc.scrollTop-O)>1&&(y=!0)),E.scrollLeft!=null&&(Ha(t,E.scrollLeft),Math.abs(t.doc.scrollLeft-J)>1&&(y=!0)),!y)break}return s}function jy(t,i){var l=rd(t,i);l.scrollTop!=null&&Gl(t,l.scrollTop),l.scrollLeft!=null&&Ha(t,l.scrollLeft)}function rd(t,i){var l=t.display,o=fr(t.display);i.top<0&&(i.top=0);var s=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:l.scroller.scrollTop,g=Nl(t),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var C=t.doc.height+fa(l),w=i.top<o,E=i.bottom>C-o;if(i.top<s)y.scrollTop=w?0:i.top;else if(i.bottom>s+g){var O=Math.min(i.top,(E?C:i.bottom)-g);O!=s&&(y.scrollTop=O)}var J=t.options.fixedGutter?0:l.gutters.offsetWidth,ie=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:l.scroller.scrollLeft-J,re=Qi(t)-l.gutters.offsetWidth,de=i.right-i.left>re;return de&&(i.right=i.left+re),i.left<10?y.scrollLeft=0:i.left<ie?y.scrollLeft=Math.max(0,i.left+J-(de?0:10)):i.right>re+ie-3&&(y.scrollLeft=i.right+(de?0:10)-re),y}function nd(t,i){i!=null&&($s(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Io(t){$s(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function kl(t,i,l){(i!=null||l!=null)&&$s(t),i!=null&&(t.curOp.scrollLeft=i),l!=null&&(t.curOp.scrollTop=l)}function Yy(t,i){$s(t),t.curOp.scrollToPos=i}function $s(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var l=Me(t,i.from),o=Me(t,i.to);hh(t,l,o,i.margin)}}function hh(t,i,l,o){var s=rd(t,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-o,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+o});kl(t,s.scrollLeft,s.scrollTop)}function Gl(t,i){Math.abs(t.doc.scrollTop-i)<2||(n||ad(t,{top:i}),ph(t,i,!0),n&&ad(t),Ol(t,100))}function ph(t,i,l){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!l)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function Ha(t,i,l,o){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((l?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!o)&&(t.doc.scrollLeft=i,yh(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Dl(t){var i=t.display,l=i.gutters.offsetWidth,o=Math.round(t.doc.height+fa(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?l:0,docHeight:o,scrollHeight:o+zr(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var Xa=function(t,i,l){this.cm=l;var o=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=s.tabIndex=-1,t(o),t(s),Je(o,"scroll",function(){o.clientHeight&&i(o.scrollTop,"vertical")}),Je(s,"scroll",function(){s.clientWidth&&i(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Xa.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,l=t.scrollHeight>t.clientHeight+1,o=t.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?o+"px":"0";var s=t.viewHeight-(i?o:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+s)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=l?o+"px":"0",this.horiz.style.left=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(l?o:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?o:0,bottom:i?o:0}},Xa.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Xa.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Xa.prototype.zeroWidthHack=function(){var t=V&&!U?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new bt,this.disableVert=new bt},Xa.prototype.enableZeroWidthBar=function(t,i,l){t.style.visibility="";function o(){var s=t.getBoundingClientRect(),g=l=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1);g!=t?t.style.visibility="hidden":i.set(1e3,o)}i.set(1e3,o)},Xa.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Wl=function(){};Wl.prototype.update=function(){return{bottom:0,right:0}},Wl.prototype.setScrollLeft=function(){},Wl.prototype.setScrollTop=function(){},Wl.prototype.clear=function(){};function wo(t,i){i||(i=Dl(t));var l=t.display.barWidth,o=t.display.barHeight;gh(t,i);for(var s=0;s<4&&l!=t.display.barWidth||o!=t.display.barHeight;s++)l!=t.display.barWidth&&t.options.lineWrapping&&qs(t),gh(t,Dl(t)),l=t.display.barWidth,o=t.display.barHeight}function gh(t,i){var l=t.display,o=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=o.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=o.bottom)+"px",l.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=o.bottom+"px",l.scrollbarFiller.style.width=o.right+"px"):l.scrollbarFiller.style.display="",o.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=o.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var mh={native:Xa,null:Wl};function bh(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Te(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new mh[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),Je(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Ha(t,i):Gl(t,i)},t),t.display.scrollbars.addClass&&nt(t.display.wrapper,t.display.scrollbars.addClass)}var Py=0;function Ja(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Py,markArrays:null},Yn(t.curOp)}function ja(t){var i=t.curOp;i&&St(i,function(l){for(var o=0;o<l.ops.length;o++)l.ops[o].cm.curOp=null;zy(l)})}function zy(t){for(var i=t.ops,l=0;l<i.length;l++)qy(i[l]);for(var o=0;o<i.length;o++)Ky(i[o]);for(var s=0;s<i.length;s++)$y(i[s]);for(var g=0;g<i.length;g++)ex(i[g]);for(var y=0;y<i.length;y++)tx(i[y])}function qy(t){var i=t.cm,l=i.display;nx(i),t.updateMaxLine&&v(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<l.viewFrom||t.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new eu(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ky(t){t.updatedDisplay=t.mustUpdate&&id(t.cm,t.update)}function $y(t){var i=t.cm,l=i.display;t.updatedDisplay&&qs(i),t.barMeasure=Dl(i),l.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=xi(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+t.adjustWidthTo+zr(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+t.adjustWidthTo-Qi(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=l.input.prepareSelection())}function ex(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&Ha(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=t.focus&&t.focus==Fe(Rt(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,l),(t.updatedDisplay||t.startHeight!=i.doc.height)&&wo(i,t.barMeasure),t.updatedDisplay&&ld(i,t.barMeasure),t.selectionChanged&&$f(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),l&&dh(t.cm)}function tx(t){var i=t.cm,l=i.display,o=i.doc;if(t.updatedDisplay&&vh(i,t.update),l.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),t.scrollTop!=null&&ph(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Ha(i,t.scrollLeft,!0,!0),t.scrollToPos){var s=Jy(i,ot(o,t.scrollToPos.from),ot(o,t.scrollToPos.to),t.scrollToPos.margin);Xy(i,s)}var g=t.maybeHiddenMarkers,y=t.maybeUnhiddenMarkers;if(g)for(var C=0;C<g.length;++C)g[C].lines.length||Ft(g[C],"hide");if(y)for(var w=0;w<y.length;++w)y[w].lines.length&&Ft(y[w],"unhide");l.wrapper.offsetHeight&&(o.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ft(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function An(t,i){if(t.curOp)return i();Ja(t);try{return i()}finally{ja(t)}}function Lr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Ja(t);try{return i.apply(t,arguments)}finally{ja(t)}}}function an(t){return function(){if(this.curOp)return t.apply(this,arguments);Ja(this);try{return t.apply(this,arguments)}finally{ja(this)}}}function Br(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Ja(i);try{return t.apply(this,arguments)}finally{ja(i)}}}function Ol(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Le(rx,t))}function rx(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var l=+new Date+t.options.workTime,o=mi(t,i.highlightFrontier),s=[];i.iter(o.line,Math.min(i.first+i.size,t.display.viewTo+500),function(g){if(o.line>=t.display.viewFrom){var y=g.styles,C=g.text.length>t.options.maxHighlightLength?Oe(i.mode,o.state):null,w=wn(t,g,o,!0);C&&(o.state=C),g.styles=w.styles;var E=g.styleClasses,O=w.classes;O?g.styleClasses=O:E&&(g.styleClasses=null);for(var J=!y||y.length!=g.styles.length||E!=O&&(!E||!O||E.bgClass!=O.bgClass||E.textClass!=O.textClass),ie=0;!J&&ie<y.length;++ie)J=y[ie]!=g.styles[ie];J&&s.push(o.line),g.stateAfter=o.save(),o.nextLine()}else g.text.length<=t.options.maxHighlightLength&&xl(t,g.text,o),g.stateAfter=o.line%5==0?o.save():null,o.nextLine();if(+new Date>l)return Ol(t,t.options.workDelay),!0}),i.highlightFrontier=o.line,i.modeFrontier=Math.max(i.modeFrontier,o.line),s.length&&An(t,function(){for(var g=0;g<s.length;g++)da(t,s[g],"text")})}}var eu=function(t,i,l){var o=t.display;this.viewport=i,this.visible=Ks(o,t.doc,i),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=Qi(t),this.force=l,this.dims=En(t),this.events=[]};eu.prototype.signal=function(t,i){ur(t,i)&&this.events.push(arguments)},eu.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ft.apply(null,this.events[t])};function nx(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=zr(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=zr(t)+"px",i.scrollbarsClipped=!0)}function ix(t){if(t.hasFocus())return null;var i=Fe(Rt(t));if(!i||!Ie(t.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var o=Qe(t).getSelection();o.anchorNode&&o.extend&&Ie(t.display.lineDiv,o.anchorNode)&&(l.anchorNode=o.anchorNode,l.anchorOffset=o.anchorOffset,l.focusNode=o.focusNode,l.focusOffset=o.focusOffset)}return l}function ax(t){if(!(!t||!t.activeElt||t.activeElt==Fe(Pe(t.activeElt)))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&Ie(document.body,t.anchorNode)&&Ie(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,l=i.defaultView.getSelection(),o=i.createRange();o.setEnd(t.anchorNode,t.anchorOffset),o.collapse(!1),l.removeAllRanges(),l.addRange(o),l.extend(t.focusNode,t.focusOffset)}}function id(t,i){var l=t.display,o=t.doc;if(i.editorIsHidden)return ca(t),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&uh(t)==0)return!1;xh(t)&&(ca(t),i.dims=En(t));var s=o.first+o.size,g=Math.max(i.visible.from-t.options.viewportMargin,o.first),y=Math.min(s,i.visible.to+t.options.viewportMargin);l.viewFrom<g&&g-l.viewFrom<20&&(g=Math.max(o.first,l.viewFrom)),l.viewTo>y&&l.viewTo-y<20&&(y=Math.min(s,l.viewTo)),jn&&(g=Oa(t.doc,g),y=Js(t.doc,y));var C=g!=l.viewFrom||y!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Qy(t,g,y),l.viewOffset=d(De(t.doc,l.viewFrom)),t.display.mover.style.top=l.viewOffset+"px";var w=uh(t);if(!C&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var E=ix(t);return w>4&&(l.lineDiv.style.display="none"),ox(t,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,ax(E),q(l.cursorDiv),q(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,C&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,Ol(t,400)),l.updateLineNumbers=null,!0}function vh(t,i){for(var l=i.viewport,o=!0;;o=!1){if(!o||!t.options.lineWrapping||i.oldDisplayWidth==Qi(t)){if(l&&l.top!=null&&(l={top:Math.min(t.doc.height+fa(t.display)-Nl(t),l.top)}),i.visible=Ks(t.display,t.doc,l),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else o&&(i.visible=Ks(t.display,t.doc,l));if(!id(t,i))break;qs(t);var s=Dl(t);Ul(t),wo(t,s),ld(t,s),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ad(t,i){var l=new eu(t,i);if(id(t,l)){qs(t),vh(t,l);var o=Dl(t);Ul(t),wo(t,o),ld(t,o),l.finish()}}function ox(t,i,l){var o=t.display,s=t.options.lineNumbers,g=o.lineDiv,y=g.firstChild;function C(de){var ve=de.nextSibling;return x&&V&&t.display.currentWheelTarget==de?de.style.display="none":de.parentNode.removeChild(de),ve}for(var w=o.view,E=o.viewFrom,O=0;O<w.length;O++){var J=w[O];if(!J.hidden)if(!J.node||J.node.parentNode!=g){var ie=_l(t,J,E,l);g.insertBefore(ie,y)}else{for(;y!=J.node;)y=C(y);var re=s&&i!=null&&i<=E&&J.lineNumber;J.changes&&(_e(J.changes,"gutter")>-1&&(re=!1),sa(t,J,E,l)),re&&(q(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(Ce(t.options,E)))),y=J.node.nextSibling}E+=J.size}for(;y;)y=C(y)}function od(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",rt(t,"gutterChanged",t)}function ld(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+zr(t)+"px"}function yh(t){var i=t.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var o=Li(i)-i.scroller.scrollLeft+t.doc.scrollLeft,s=i.gutters.offsetWidth,g=o+"px",y=0;y<l.length;y++)if(!l[y].hidden){t.options.fixedGutter&&(l[y].gutter&&(l[y].gutter.style.left=g),l[y].gutterBackground&&(l[y].gutterBackground.style.left=g));var C=l[y].alignable;if(C)for(var w=0;w<C.length;w++)C[w].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=o+s+"px")}}function xh(t){if(!t.options.lineNumbers)return!1;var i=t.doc,l=Ce(t.options,i.first+i.size-1),o=t.display;if(l.length!=o.lineNumChars){var s=o.measure.appendChild(L("div",[L("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=s.firstChild.offsetWidth,y=s.offsetWidth-g;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(g,o.lineGutter.offsetWidth-y)+1,o.lineNumWidth=o.lineNumInnerWidth+y,o.lineNumChars=o.lineNumInnerWidth?l.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",od(t.display),!0}return!1}function sd(t,i){for(var l=[],o=!1,s=0;s<t.length;s++){var g=t[s],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)o=!0;else continue;l.push({className:g,style:y})}return i&&!o&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function Th(t){var i=t.gutters,l=t.gutterSpecs;q(i),t.lineGutter=null;for(var o=0;o<l.length;++o){var s=l[o],g=s.className,y=s.style,C=i.appendChild(L("div",null,"CodeMirror-gutter "+g));y&&(C.style.cssText=y),g=="CodeMirror-linenumbers"&&(t.lineGutter=C,C.style.width=(t.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",od(t)}function Zl(t){Th(t.display),fn(t),yh(t)}function lx(t,i,l,o){var s=this;this.input=l,s.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=xe("div",null,"CodeMirror-code"),s.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=L("div",null,"CodeMirror-cursors"),s.measure=L("div",null,"CodeMirror-measure"),s.lineMeasure=L("div",null,"CodeMirror-measure"),s.lineSpace=xe("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var g=xe("div",[s.lineSpace],"CodeMirror-lines");s.mover=L("div",[g],null,"position: relative"),s.sizer=L("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=L("div",null,null,"position: absolute; height: "+ct+"px; width: 1px;"),s.gutters=L("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=L("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=L("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),I&&F===105&&(s.wrapper.style.clipPath="inset(0px)"),s.wrapper.setAttribute("translate","no"),h&&b<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),!x&&!(n&&K)&&(s.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(s.wrapper):t(s.wrapper)),s.viewFrom=s.viewTo=i.first,s.reportedViewFrom=s.reportedViewTo=i.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=sd(o.gutters,o.lineNumbers),Th(s),l.init(s)}var tu=0,Xi=null;h?Xi=-.53:n?Xi=15:I?Xi=-.7:W&&(Xi=-1/3);function Ch(t){var i=t.wheelDeltaX,l=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),l==null&&t.detail&&t.axis==t.VERTICAL_AXIS?l=t.detail:l==null&&(l=t.wheelDelta),{x:i,y:l}}function sx(t){var i=Ch(t);return i.x*=Xi,i.y*=Xi,i}function Ih(t,i){I&&F==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var l=Ch(i),o=l.x,s=l.y,g=Xi;i.deltaMode===0&&(o=i.deltaX,s=i.deltaY,g=1);var y=t.display,C=y.scroller,w=C.scrollWidth>C.clientWidth,E=C.scrollHeight>C.clientHeight;if(o&&w||s&&E){if(s&&V&&x){e:for(var O=i.target,J=y.view;O!=C;O=O.parentNode)for(var ie=0;ie<J.length;ie++)if(J[ie].node==O){t.display.currentWheelTarget=O;break e}}if(o&&!n&&!G&&g!=null){s&&E&&Gl(t,Math.max(0,C.scrollTop+s*g)),Ha(t,Math.max(0,C.scrollLeft+o*g)),(!s||s&&E)&&Bt(i),y.wheelStartX=null;return}if(s&&g!=null){var re=s*g,de=t.doc.scrollTop,ve=de+y.wrapper.clientHeight;re<0?de=Math.max(0,de+re-50):ve=Math.min(t.doc.height,ve+re+50),ad(t,{top:de,bottom:ve})}tu<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=C.scrollLeft,y.wheelStartY=C.scrollTop,y.wheelDX=o,y.wheelDY=s,setTimeout(function(){if(y.wheelStartX!=null){var Re=C.scrollLeft-y.wheelStartX,Ue=C.scrollTop-y.wheelStartY,We=Ue&&y.wheelDY&&Ue/y.wheelDY||Re&&y.wheelDX&&Re/y.wheelDX;y.wheelStartX=y.wheelStartY=null,We&&(Xi=(Xi*tu+We)/(tu+1),++tu)}},200)):(y.wheelDX+=o,y.wheelDY+=s))}}var Zn=function(t,i){this.ranges=t,this.primIndex=i};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],o=t.ranges[i];if(!It(l.anchor,o.anchor)||!It(l.head,o.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Gt(ir(this.ranges[i].anchor),ir(this.ranges[i].head));return new Zn(t,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Zn.prototype.contains=function(t,i){i||(i=t);for(var l=0;l<this.ranges.length;l++){var o=this.ranges[l];if(Ee(i,o.from())>=0&&Ee(t,o.to())<=0)return l}return-1};var Gt=function(t,i){this.anchor=t,this.head=i};Gt.prototype.from=function(){return ia(this.anchor,this.head)},Gt.prototype.to=function(){return Pr(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ti(t,i,l){var o=t&&t.options.selectionsMayTouch,s=i[l];i.sort(function(ie,re){return Ee(ie.from(),re.from())}),l=_e(i,s);for(var g=1;g<i.length;g++){var y=i[g],C=i[g-1],w=Ee(C.to(),y.from());if(o&&!y.empty()?w>0:w>=0){var E=ia(C.from(),y.from()),O=Pr(C.to(),y.to()),J=C.empty()?y.from()==y.head:C.from()==C.head;g<=l&&--l,i.splice(--g,2,new Gt(J?O:E,J?E:O))}}return new Zn(i,l)}function ha(t,i){return new Zn([new Gt(t,i||t)],0)}function pa(t){return t.text?ue(t.from.line+t.text.length-1,Ye(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function wh(t,i){if(Ee(t,i.from)<0)return t;if(Ee(t,i.to)<=0)return pa(i);var l=t.line+i.text.length-(i.to.line-i.from.line)-1,o=t.ch;return t.line==i.to.line&&(o+=pa(i).ch-i.to.ch),ue(l,o)}function ud(t,i){for(var l=[],o=0;o<t.sel.ranges.length;o++){var s=t.sel.ranges[o];l.push(new Gt(wh(s.anchor,i),wh(s.head,i)))}return Ti(t.cm,l,t.sel.primIndex)}function Rh(t,i,l){return t.line==i.line?ue(l.line,t.ch-i.ch+l.ch):ue(l.line+(t.line-i.line),t.ch)}function ux(t,i,l){for(var o=[],s=ue(t.first,0),g=s,y=0;y<i.length;y++){var C=i[y],w=Rh(C.from,s,g),E=Rh(pa(C),s,g);if(s=C.to,g=E,l=="around"){var O=t.sel.ranges[y],J=Ee(O.head,O.anchor)<0;o[y]=new Gt(J?E:w,J?w:E)}else o[y]=new Gt(w,w)}return new Zn(o,t.sel.primIndex)}function fd(t){t.doc.mode=Xe(t.options,t.doc.modeOption),Ml(t)}function Ml(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ol(t,100),t.state.modeGen++,t.curOp&&fn(t)}function Sh(t,i){return i.from.ch==0&&i.to.ch==0&&Ye(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function dd(t,i,l,o){function s(We){return l?l[We]:null}function g(We,ke,Ve){R(We,ke,Ve,o),rt(We,"change",We,i)}function y(We,ke){for(var Ve=[],et=We;et<ke;++et)Ve.push(new T(E[et],s(et),o));return Ve}var C=i.from,w=i.to,E=i.text,O=De(t,C.line),J=De(t,w.line),ie=Ye(E),re=s(E.length-1),de=w.line-C.line;if(i.full)t.insert(0,y(0,E.length)),t.remove(E.length,t.size-E.length);else if(Sh(t,i)){var ve=y(0,E.length-1);g(J,J.text,re),de&&t.remove(C.line,de),ve.length&&t.insert(C.line,ve)}else if(O==J)if(E.length==1)g(O,O.text.slice(0,C.ch)+ie+O.text.slice(w.ch),re);else{var Re=y(1,E.length-1);Re.push(new T(ie+O.text.slice(w.ch),re,o)),g(O,O.text.slice(0,C.ch)+E[0],s(0)),t.insert(C.line+1,Re)}else if(E.length==1)g(O,O.text.slice(0,C.ch)+E[0]+J.text.slice(w.ch),s(0)),t.remove(C.line+1,de);else{g(O,O.text.slice(0,C.ch)+E[0],s(0)),g(J,ie+J.text.slice(w.ch),re);var Ue=y(1,E.length-1);de>1&&t.remove(C.line+1,de-1),t.insert(C.line+1,Ue)}rt(t,"change",t,i)}function ga(t,i,l){function o(s,g,y){if(s.linked)for(var C=0;C<s.linked.length;++C){var w=s.linked[C];if(w.doc!=g){var E=y&&w.sharedHist;l&&!E||(i(w.doc,E),o(w.doc,s,E))}}}o(t,null,!0)}function Eh(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,qf(t),fd(t),Ah(t),t.options.direction=i.direction,t.options.lineWrapping||v(t),t.options.mode=i.modeOption,fn(t)}function Ah(t){(t.doc.direction=="rtl"?nt:Te)(t.display.lineDiv,"CodeMirror-rtl")}function fx(t){An(t,function(){Ah(t),fn(t)})}function ru(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function cd(t,i){var l={from:ir(i.from),to:pa(i),text:wr(t,i.from,i.to)};return Fh(t,l,i.from.line,i.to.line+1),ga(t,function(o){return Fh(o,l,i.from.line,i.to.line+1)},!0),l}function _h(t){for(;t.length;){var i=Ye(t);if(i.ranges)t.pop();else break}}function dx(t,i){if(i)return _h(t.done),Ye(t.done);if(t.done.length&&!Ye(t.done).ranges)return Ye(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Ye(t.done)}function Nh(t,i,l,o){var s=t.history;s.undone.length=0;var g=+new Date,y,C;if((s.lastOp==o||s.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&s.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=dx(s,s.lastOp==o)))C=Ye(y.changes),Ee(i.from,i.to)==0&&Ee(i.from,C.to)==0?C.to=pa(i):y.changes.push(cd(t,i));else{var w=Ye(s.done);for((!w||!w.ranges)&&nu(t.sel,s.done),y={changes:[cd(t,i)],generation:s.generation},s.done.push(y);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(l),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=g,s.lastOp=s.lastSelOp=o,s.lastOrigin=s.lastSelOrigin=i.origin,C||Ft(t,"historyAdded")}function cx(t,i,l,o){var s=i.charAt(0);return s=="*"||s=="+"&&l.ranges.length==o.ranges.length&&l.somethingSelected()==o.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function hx(t,i,l,o){var s=t.history,g=o&&o.origin;l==s.lastSelOp||g&&s.lastSelOrigin==g&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==g||cx(t,g,Ye(s.done),i))?s.done[s.done.length-1]=i:nu(i,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=g,s.lastSelOp=l,o&&o.clearRedo!==!1&&_h(s.undone)}function nu(t,i){var l=Ye(i);l&&l.ranges&&l.equals(t)||i.push(t)}function Fh(t,i,l,o){var s=i["spans_"+t.id],g=0;t.iter(Math.max(t.first,l),Math.min(t.first+t.size,o),function(y){y.markedSpans&&((s||(s=i["spans_"+t.id]={}))[g]=y.markedSpans),++g})}function px(t){if(!t)return null;for(var i,l=0;l<t.length;++l)t[l].marker.explicitlyCleared?i||(i=t.slice(0,l)):i&&i.push(t[l]);return i?i.length?i:null:t}function gx(t,i){var l=i["spans_"+t.id];if(!l)return null;for(var o=[],s=0;s<i.text.length;++s)o.push(px(l[s]));return o}function Lh(t,i){var l=gx(t,i),o=wl(t,i);if(!l)return o;if(!o)return l;for(var s=0;s<l.length;++s){var g=l[s],y=o[s];if(g&&y)e:for(var C=0;C<y.length;++C){for(var w=y[C],E=0;E<g.length;++E)if(g[E].marker==w.marker)continue e;g.push(w)}else y&&(l[s]=y)}return l}function Ro(t,i,l){for(var o=[],s=0;s<t.length;++s){var g=t[s];if(g.ranges){o.push(l?Zn.prototype.deepCopy.call(g):g);continue}var y=g.changes,C=[];o.push({changes:C});for(var w=0;w<y.length;++w){var E=y[w],O=void 0;if(C.push({from:E.from,to:E.to,text:E.text}),i)for(var J in E)(O=J.match(/^spans_(\d+)$/))&&_e(i,Number(O[1]))>-1&&(Ye(C)[J]=E[J],delete E[J])}}return o}function hd(t,i,l,o){if(o){var s=t.anchor;if(l){var g=Ee(i,s)<0;g!=Ee(l,s)<0?(s=i,i=l):g!=Ee(i,l)<0&&(i=l)}return new Gt(s,i)}else return new Gt(l||i,i)}function iu(t,i,l,o,s){s==null&&(s=t.cm&&(t.cm.display.shift||t.extend)),qr(t,new Zn([hd(t.sel.primary(),i,l,s)],0),o)}function Bh(t,i,l){for(var o=[],s=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)o[g]=hd(t.sel.ranges[g],i[g],null,s);var y=Ti(t.cm,o,t.sel.primIndex);qr(t,y,l)}function pd(t,i,l,o){var s=t.sel.ranges.slice(0);s[i]=l,qr(t,Ti(t.cm,s,t.sel.primIndex),o)}function Uh(t,i,l,o){qr(t,ha(i,l),o)}function mx(t,i,l){var o={ranges:i.ranges,update:function(s){this.ranges=[];for(var g=0;g<s.length;g++)this.ranges[g]=new Gt(ot(t,s[g].anchor),ot(t,s[g].head))},origin:l&&l.origin};return Ft(t,"beforeSelectionChange",t,o),t.cm&&Ft(t.cm,"beforeSelectionChange",t.cm,o),o.ranges!=i.ranges?Ti(t.cm,o.ranges,o.ranges.length-1):i}function kh(t,i,l){var o=t.history.done,s=Ye(o);s&&s.ranges?(o[o.length-1]=i,au(t,i,l)):qr(t,i,l)}function qr(t,i,l){au(t,i,l),hx(t,t.sel,t.cm?t.cm.curOp.id:NaN,l)}function au(t,i,l){(ur(t,"beforeSelectionChange")||t.cm&&ur(t.cm,"beforeSelectionChange"))&&(i=mx(t,i,l));var o=l&&l.bias||(Ee(i.primary().head,t.sel.primary().head)<0?-1:1);Gh(t,Wh(t,i,o,!0)),!(l&&l.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Io(t.cm)}function Gh(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Jr(t.cm)),rt(t,"cursorActivity",t))}function Dh(t){Gh(t,Wh(t,t.sel,null,!1))}function Wh(t,i,l,o){for(var s,g=0;g<i.ranges.length;g++){var y=i.ranges[g],C=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],w=ou(t,y.anchor,C&&C.anchor,l,o),E=y.head==y.anchor?w:ou(t,y.head,C&&C.head,l,o);(s||w!=y.anchor||E!=y.head)&&(s||(s=i.ranges.slice(0,g)),s[g]=new Gt(w,E))}return s?Ti(t.cm,s,i.primIndex):i}function So(t,i,l,o,s){var g=De(t,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var C=g.markedSpans[y],w=C.marker,E="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,O="selectRight"in w?!w.selectRight:w.inclusiveRight;if((C.from==null||(E?C.from<=i.ch:C.from<i.ch))&&(C.to==null||(O?C.to>=i.ch:C.to>i.ch))){if(s&&(Ft(w,"beforeCursorEnter"),w.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!w.atomic)continue;if(l){var J=w.find(o<0?1:-1),ie=void 0;if((o<0?O:E)&&(J=Oh(t,J,-o,J&&J.line==i.line?g:null)),J&&J.line==i.line&&(ie=Ee(J,l))&&(o<0?ie<0:ie>0))return So(t,J,i,o,s)}var re=w.find(o<0?-1:1);return(o<0?E:O)&&(re=Oh(t,re,o,re.line==i.line?g:null)),re?So(t,re,i,o,s):null}}return i}function ou(t,i,l,o,s){var g=o||1,y=So(t,i,l,g,s)||!s&&So(t,i,l,g,!0)||So(t,i,l,-g,s)||!s&&So(t,i,l,-g,!0);return y||(t.cantEdit=!0,ue(t.first,0))}function Oh(t,i,l,o){return l<0&&i.ch==0?i.line>t.first?ot(t,ue(i.line-1)):null:l>0&&i.ch==(o||De(t,i.line)).text.length?i.line<t.first+t.size-1?ue(i.line+1,0):null:new ue(i.line,i.ch+l)}function Zh(t){t.setSelection(ue(t.firstLine(),0),ue(t.lastLine()),pt)}function Mh(t,i,l){var o={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return o.canceled=!0}};return l&&(o.update=function(s,g,y,C){s&&(o.from=ot(t,s)),g&&(o.to=ot(t,g)),y&&(o.text=y),C!==void 0&&(o.origin=C)}),Ft(t,"beforeChange",t,o),t.cm&&Ft(t.cm,"beforeChange",t.cm,o),o.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function Eo(t,i,l){if(t.cm){if(!t.cm.curOp)return Lr(t.cm,Eo)(t,i,l);if(t.cm.state.suppressEdits)return}if(!((ur(t,"beforeChange")||t.cm&&ur(t.cm,"beforeChange"))&&(i=Mh(t,i,!0),!i))){var o=Cl&&!l&&jf(t,i.from,i.to);if(o)for(var s=o.length-1;s>=0;--s)Vh(t,{from:o[s].from,to:o[s].to,text:s?[""]:i.text,origin:i.origin});else Vh(t,i)}}function Vh(t,i){if(!(i.text.length==1&&i.text[0]==""&&Ee(i.from,i.to)==0)){var l=ud(t,i);Nh(t,i,l,t.cm?t.cm.curOp.id:NaN),Vl(t,i,l,wl(t,i));var o=[];ga(t,function(s,g){!g&&_e(o,s.history)==-1&&(Jh(s.history,i),o.push(s.history)),Vl(s,i,null,wl(s,i))})}}function lu(t,i,l){var o=t.cm&&t.cm.state.suppressEdits;if(!(o&&!l)){for(var s=t.history,g,y=t.sel,C=i=="undo"?s.done:s.undone,w=i=="undo"?s.undone:s.done,E=0;E<C.length&&(g=C[E],!(l?g.ranges&&!g.equals(t.sel):!g.ranges));E++);if(E!=C.length){for(s.lastOrigin=s.lastSelOrigin=null;;)if(g=C.pop(),g.ranges){if(nu(g,w),l&&!g.equals(t.sel)){qr(t,g,{clearRedo:!1});return}y=g}else if(o){C.push(g);return}else break;var O=[];nu(y,w),w.push({changes:O,generation:s.generation}),s.generation=g.generation||++s.maxGeneration;for(var J=ur(t,"beforeChange")||t.cm&&ur(t.cm,"beforeChange"),ie=function(ve){var Re=g.changes[ve];if(Re.origin=i,J&&!Mh(t,Re,!1))return C.length=0,{};O.push(cd(t,Re));var Ue=ve?ud(t,Re):Ye(C);Vl(t,Re,Ue,Lh(t,Re)),!ve&&t.cm&&t.cm.scrollIntoView({from:Re.from,to:pa(Re)});var We=[];ga(t,function(ke,Ve){!Ve&&_e(We,ke.history)==-1&&(Jh(ke.history,Re),We.push(ke.history)),Vl(ke,Re,null,Lh(ke,Re))})},re=g.changes.length-1;re>=0;--re){var de=ie(re);if(de)return de.v}}}}function Qh(t,i){if(i!=0&&(t.first+=i,t.sel=new Zn(vr(t.sel.ranges,function(s){return new Gt(ue(s.anchor.line+i,s.anchor.ch),ue(s.head.line+i,s.head.ch))}),t.sel.primIndex),t.cm)){fn(t.cm,t.first,t.first-i,i);for(var l=t.cm.display,o=l.viewFrom;o<l.viewTo;o++)da(t.cm,o,"gutter")}}function Vl(t,i,l,o){if(t.cm&&!t.cm.curOp)return Lr(t.cm,Vl)(t,i,l,o);if(i.to.line<t.first){Qh(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var s=i.text.length-1-(t.first-i.from.line);Qh(t,s),i={from:ue(t.first,0),to:ue(i.to.line+s,i.to.ch),text:[Ye(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:ue(g,De(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=wr(t,i.from,i.to),l||(l=ud(t,i)),t.cm?bx(t.cm,i,o):dd(t,i,o),au(t,l,pt),t.cantEdit&&ou(t,ue(t.firstLine(),0))&&(t.cantEdit=!1)}}function bx(t,i,l){var o=t.doc,s=t.display,g=i.from,y=i.to,C=!1,w=g.line;t.options.lineWrapping||(w=N(Wn(De(o,g.line))),o.iter(w,y.line+1,function(re){if(re==s.maxLine)return C=!0,!0})),o.sel.contains(i.from,i.to)>-1&&Jr(t),dd(o,i,l,Mr(t)),t.options.lineWrapping||(o.iter(w,g.line+i.text.length,function(re){var de=p(re);de>s.maxLineLength&&(s.maxLine=re,s.maxLineLength=de,s.maxLineChanged=!0,C=!1)}),C&&(t.curOp.updateMaxLine=!0)),Tl(o,g.line),Ol(t,400);var E=i.text.length-(y.line-g.line)-1;i.full?fn(t):g.line==y.line&&i.text.length==1&&!Sh(t.doc,i)?da(t,g.line,"text"):fn(t,g.line,y.line+1,E);var O=ur(t,"changes"),J=ur(t,"change");if(J||O){var ie={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};J&&rt(t,"change",t,ie),O&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(ie)}t.display.selForContextMenu=null}function Ao(t,i,l,o,s){var g;o||(o=l),Ee(o,l)<0&&(g=[o,l],l=g[0],o=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Eo(t,{from:l,to:o,text:i,origin:s})}function Hh(t,i,l,o){l<t.line?t.line+=o:i<t.line&&(t.line=i,t.ch=0)}function Xh(t,i,l,o){for(var s=0;s<t.length;++s){var g=t[s],y=!0;if(g.ranges){g.copied||(g=t[s]=g.deepCopy(),g.copied=!0);for(var C=0;C<g.ranges.length;C++)Hh(g.ranges[C].anchor,i,l,o),Hh(g.ranges[C].head,i,l,o);continue}for(var w=0;w<g.changes.length;++w){var E=g.changes[w];if(l<E.from.line)E.from=ue(E.from.line+o,E.from.ch),E.to=ue(E.to.line+o,E.to.ch);else if(i<=E.to.line){y=!1;break}}y||(t.splice(0,s+1),s=0)}}function Jh(t,i){var l=i.from.line,o=i.to.line,s=i.text.length-(o-l)-1;Xh(t.done,l,o,s),Xh(t.undone,l,o,s)}function Ql(t,i,l,o){var s=i,g=i;return typeof i=="number"?g=De(t,ho(t,i)):s=N(i),s==null?null:(o(g,s)&&t.cm&&da(t.cm,s,l),g)}function Hl(t){this.lines=t,this.parent=null;for(var i=0,l=0;l<t.length;++l)t[l].parent=this,i+=t[l].height;this.height=i}Hl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var l=t,o=t+i;l<o;++l){var s=this.lines[l];this.height-=s.height,S(s),rt(s,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,l){this.height+=l,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var o=0;o<i.length;++o)i[o].parent=this},iterN:function(t,i,l){for(var o=t+i;t<o;++t)if(l(this.lines[t]))return!0}};function Xl(t){this.children=t;for(var i=0,l=0,o=0;o<t.length;++o){var s=t[o];i+=s.chunkSize(),l+=s.height,s.parent=this}this.size=i,this.height=l,this.parent=null}Xl.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var l=0;l<this.children.length;++l){var o=this.children[l],s=o.chunkSize();if(t<s){var g=Math.min(i,s-t),y=o.height;if(o.removeInner(t,g),this.height-=y-o.height,s==g&&(this.children.splice(l--,1),o.parent=null),(i-=g)==0)break;t=0}else t-=s}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Hl))){var C=[];this.collapse(C),this.children=[new Hl(C)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,l){this.size+=i.length,this.height+=l;for(var o=0;o<this.children.length;++o){var s=this.children[o],g=s.chunkSize();if(t<=g){if(s.insertInner(t,i,l),s.lines&&s.lines.length>50){for(var y=s.lines.length%25+25,C=y;C<s.lines.length;){var w=new Hl(s.lines.slice(C,C+=25));s.height-=w.height,this.children.splice(++o,0,w),w.parent=this}s.lines=s.lines.slice(0,y),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),l=new Xl(i);if(t.parent){t.size-=l.size,t.height-=l.height;var s=_e(t.parent.children,t);t.parent.children.splice(s+1,0,l)}else{var o=new Xl(t.children);o.parent=t,t.children=[o,l],t=o}l.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,l){for(var o=0;o<this.children.length;++o){var s=this.children[o],g=s.chunkSize();if(t<g){var y=Math.min(i,g-t);if(s.iterN(t,y,l))return!0;if((i-=y)==0)break;t=0}else t-=g}}};var Jl=function(t,i,l){if(l)for(var o in l)l.hasOwnProperty(o)&&(this[o]=l[o]);this.doc=t,this.node=i};Jl.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,l=this.line,o=N(l);if(!(o==null||!i)){for(var s=0;s<i.length;++s)i[s]==this&&i.splice(s--,1);i.length||(l.widgets=null);var g=Za(this);Nr(l,Math.max(0,l.height-g)),t&&(An(t,function(){jh(t,l,-g),da(t,o,"widget")}),rt(t,"lineWidgetCleared",t,this,o))}},Jl.prototype.changed=function(){var t=this,i=this.height,l=this.doc.cm,o=this.line;this.height=null;var s=Za(this)-i;s&&(Ni(this.doc,o)||Nr(o,o.height+s),l&&An(l,function(){l.curOp.forceUpdate=!0,jh(l,o,s),rt(l,"lineWidgetChanged",l,t,N(o))}))},Yt(Jl);function jh(t,i,l){d(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&nd(t,l)}function vx(t,i,l,o){var s=new Jl(t,l,o),g=t.cm;return g&&s.noHScroll&&(g.display.alignWidgets=!0),Ql(t,i,"widget",function(y){var C=y.widgets||(y.widgets=[]);if(s.insertAt==null?C.push(s):C.splice(Math.min(C.length,Math.max(0,s.insertAt)),0,s),s.line=y,g&&!Ni(t,y)){var w=d(y)<t.scrollTop;Nr(y,y.height+Za(s)),w&&nd(g,s.height),g.curOp.forceUpdate=!0}return!0}),g&&rt(g,"lineWidgetAdded",g,s,typeof i=="number"?i:N(i)),s}var Yh=0,ma=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Yh};ma.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Ja(t),ur(this,"clear")){var l=this.find();l&&rt(this,"clear",l.from,l.to)}for(var o=null,s=null,g=0;g<this.lines.length;++g){var y=this.lines[g],C=ka(y.markedSpans,this);t&&!this.collapsed?da(t,N(y),"text"):t&&(C.to!=null&&(s=N(y)),C.from!=null&&(o=N(y))),y.markedSpans=Il(y.markedSpans,C),C.from==null&&this.collapsed&&!Ni(this.doc,y)&&t&&Nr(y,fr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var E=Wn(this.lines[w]),O=p(E);O>t.display.maxLineLength&&(t.display.maxLine=E,t.display.maxLineLength=O,t.display.maxLineChanged=!0)}o!=null&&t&&this.collapsed&&fn(t,o,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Dh(t.doc)),t&&rt(t,"markerCleared",t,this,o,s),i&&ja(t),this.parent&&this.parent.clear()}},ma.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var l,o,s=0;s<this.lines.length;++s){var g=this.lines[s],y=ka(g.markedSpans,this);if(y.from!=null&&(l=ue(i?g:N(g),y.from),t==-1))return l;if(y.to!=null&&(o=ue(i?g:N(g),y.to),t==1))return o}return l&&{from:l,to:o}},ma.prototype.changed=function(){var t=this,i=this.find(-1,!0),l=this,o=this.doc.cm;!i||!o||An(o,function(){var s=i.line,g=N(i.line),y=vo(o,g);if(y&&(To(y),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!Ni(l.doc,s)&&l.height!=null){var C=l.height;l.height=null;var w=Za(l)-C;w&&Nr(s,s.height+w)}rt(o,"markerChanged",o,t)})},ma.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||_e(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ma.prototype.detachLine=function(t){if(this.lines.splice(_e(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Yt(ma);function _o(t,i,l,o,s){if(o&&o.shared)return yx(t,i,l,o,s);if(t.cm&&!t.cm.curOp)return Lr(t.cm,_o)(t,i,l,o,s);var g=new ma(t,s),y=Ee(i,l);if(o&&Ge(o,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=xe("span",[g.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Hs(t,i.line,i,l,g)||i.line!=l.line&&Hs(t,l.line,i,l,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ms()}g.addToHistory&&Nh(t,{from:i,to:l,origin:"markText"},t.sel,NaN);var C=i.line,w=t.cm,E;if(t.iter(C,l.line+1,function(J){w&&g.collapsed&&!w.options.lineWrapping&&Wn(J)==w.display.maxLine&&(E=!0),g.collapsed&&C!=i.line&&Nr(J,0),Hf(J,new bo(g,C==i.line?i.ch:null,C==l.line?l.ch:null),t.cm&&t.cm.curOp),++C}),g.collapsed&&t.iter(i.line,l.line+1,function(J){Ni(t,J)&&Nr(J,0)}),g.clearOnEnter&&Je(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Qf(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Yh,g.atomic=!0),w){if(E&&(w.curOp.updateMaxLine=!0),g.collapsed)fn(w,i.line,l.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var O=i.line;O<=l.line;O++)da(w,O,"text");g.atomic&&Dh(w.doc),rt(w,"markerAdded",w,g)}return g}var jl=function(t,i){this.markers=t,this.primary=i;for(var l=0;l<t.length;++l)t[l].parent=this};jl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();rt(this,"clear")}},jl.prototype.find=function(t,i){return this.primary.find(t,i)},Yt(jl);function yx(t,i,l,o,s){o=Ge(o),o.shared=!1;var g=[_o(t,i,l,o,s)],y=g[0],C=o.widgetNode;return ga(t,function(w){C&&(o.widgetNode=C.cloneNode(!0)),g.push(_o(w,ot(w,i),ot(w,l),o,s));for(var E=0;E<w.linked.length;++E)if(w.linked[E].isParent)return;y=Ye(g)}),new jl(g,y)}function Ph(t){return t.findMarks(ue(t.first,0),t.clipPos(ue(t.lastLine())),function(i){return i.parent})}function xx(t,i){for(var l=0;l<i.length;l++){var o=i[l],s=o.find(),g=t.clipPos(s.from),y=t.clipPos(s.to);if(Ee(g,y)){var C=_o(t,g,y,o.primary,o.primary.type);o.markers.push(C),C.parent=o}}}function Tx(t){for(var i=function(o){var s=t[o],g=[s.primary.doc];ga(s.primary.doc,function(w){return g.push(w)});for(var y=0;y<s.markers.length;y++){var C=s.markers[y];_e(g,C.doc)==-1&&(C.parent=null,s.markers.splice(y--,1))}},l=0;l<t.length;l++)i(l)}var Cx=0,dn=function(t,i,l,o,s){if(!(this instanceof dn))return new dn(t,i,l,o,s);l==null&&(l=0),Xl.call(this,[new Hl([new T("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var g=ue(l,0);this.sel=ha(g),this.history=new ru(null),this.id=++Cx,this.modeOption=i,this.lineSep=o,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),dd(this,{from:g,to:g,text:t}),qr(this,ha(g),pt)};dn.prototype=Ot(Xl.prototype,{constructor:dn,iter:function(t,i,l){l?this.iterN(t-this.first,i-t,l):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var l=0,o=0;o<i.length;++o)l+=i[o].height;this.insertInner(t-this.first,i,l)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=nn(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Br(function(t){var i=ue(this.first,0),l=this.first+this.size-1;Eo(this,{from:i,to:ue(l,De(this,l).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&kl(this.cm,0,0),qr(this,ha(i),pt)}),replaceRange:function(t,i,l,o){i=ot(this,i),l=l?ot(this,l):i,Ao(this,t,i,l,o)},getRange:function(t,i,l){var o=wr(this,ot(this,t),ot(this,i));return l===!1?o:l===""?o.join(""):o.join(l||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(pe(this,t))return De(this,t)},getLineNumber:function(t){return N(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=De(this,t)),Wn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ot(this,t)},getCursor:function(t){var i=this.sel.primary(),l;return t==null||t=="head"?l=i.head:t=="anchor"?l=i.anchor:t=="end"||t=="to"||t===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Br(function(t,i,l){Uh(this,ot(this,typeof t=="number"?ue(t,i||0):t),null,l)}),setSelection:Br(function(t,i,l){Uh(this,ot(this,t),ot(this,i||t),l)}),extendSelection:Br(function(t,i,l){iu(this,ot(this,t),i&&ot(this,i),l)}),extendSelections:Br(function(t,i){Bh(this,vl(this,t),i)}),extendSelectionsBy:Br(function(t,i){var l=vr(this.sel.ranges,t);Bh(this,vl(this,l),i)}),setSelections:Br(function(t,i,l){if(t.length){for(var o=[],s=0;s<t.length;s++)o[s]=new Gt(ot(this,t[s].anchor),ot(this,t[s].head||t[s].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),qr(this,Ti(this.cm,o,i),l)}}),addSelection:Br(function(t,i,l){var o=this.sel.ranges.slice(0);o.push(new Gt(ot(this,t),ot(this,i||t))),qr(this,Ti(this.cm,o,o.length-1),l)}),getSelection:function(t){for(var i=this.sel.ranges,l,o=0;o<i.length;o++){var s=wr(this,i[o].from(),i[o].to());l=l?l.concat(s):s}return t===!1?l:l.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],l=this.sel.ranges,o=0;o<l.length;o++){var s=wr(this,l[o].from(),l[o].to());t!==!1&&(s=s.join(t||this.lineSeparator())),i[o]=s}return i},replaceSelection:function(t,i,l){for(var o=[],s=0;s<this.sel.ranges.length;s++)o[s]=t;this.replaceSelections(o,i,l||"+input")},replaceSelections:Br(function(t,i,l){for(var o=[],s=this.sel,g=0;g<s.ranges.length;g++){var y=s.ranges[g];o[g]={from:y.from(),to:y.to(),text:this.splitLines(t[g]),origin:l}}for(var C=i&&i!="end"&&ux(this,o,i),w=o.length-1;w>=0;w--)Eo(this,o[w]);C?kh(this,C):this.cm&&Io(this.cm)}),undo:Br(function(){lu(this,"undo")}),redo:Br(function(){lu(this,"redo")}),undoSelection:Br(function(){lu(this,"undo",!0)}),redoSelection:Br(function(){lu(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,l=0,o=0;o<t.done.length;o++)t.done[o].ranges||++i;for(var s=0;s<t.undone.length;s++)t.undone[s].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var t=this;this.history=new ru(this.history),ga(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(t){var i=this.history=new ru(this.history);i.done=Ro(t.done.slice(0),null,!0),i.undone=Ro(t.undone.slice(0),null,!0)},setGutterMarker:Br(function(t,i,l){return Ql(this,t,"gutter",function(o){var s=o.gutterMarkers||(o.gutterMarkers={});return s[i]=l,!l&&lr(s)&&(o.gutterMarkers=null),!0})}),clearGutter:Br(function(t){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[t]&&Ql(i,l,"gutter",function(){return l.gutterMarkers[t]=null,lr(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!pe(this,t)||(i=t,t=De(this,t),!t))return null}else if(i=N(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Br(function(t,i,l){return Ql(this,t,i=="gutter"?"gutter":"class",function(o){var s=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!o[s])o[s]=l;else{if(se(l).test(o[s]))return!1;o[s]+=" "+l}return!0})}),removeLineClass:Br(function(t,i,l){return Ql(this,t,i=="gutter"?"gutter":"class",function(o){var s=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=o[s];if(g)if(l==null)o[s]=null;else{var y=g.match(se(l));if(!y)return!1;var C=y.index+y[0].length;o[s]=g.slice(0,y.index)+(!y.index||C==g.length?"":" ")+g.slice(C)||null}else return!1;return!0})}),addLineWidget:Br(function(t,i,l){return vx(this,t,i,l)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,l){return _o(this,ot(this,t),ot(this,i),l,l&&l.type||"range")},setBookmark:function(t,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ot(this,t),_o(this,t,t,l,"bookmark")},findMarksAt:function(t){t=ot(this,t);var i=[],l=De(this,t.line).markedSpans;if(l)for(var o=0;o<l.length;++o){var s=l[o];(s.from==null||s.from<=t.ch)&&(s.to==null||s.to>=t.ch)&&i.push(s.marker.parent||s.marker)}return i},findMarks:function(t,i,l){t=ot(this,t),i=ot(this,i);var o=[],s=t.line;return this.iter(t.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var C=0;C<y.length;C++){var w=y[C];!(w.to!=null&&s==t.line&&t.ch>=w.to||w.from==null&&s!=t.line||w.from!=null&&s==i.line&&w.from>=i.ch)&&(!l||l(w.marker))&&o.push(w.marker.parent||w.marker)}++s}),o},getAllMarks:function(){var t=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var o=0;o<l.length;++o)l[o].from!=null&&t.push(l[o].marker)}),t},posFromIndex:function(t){var i,l=this.first,o=this.lineSeparator().length;return this.iter(function(s){var g=s.text.length+o;if(g>t)return i=t,!0;t-=g,++l}),ot(this,ue(l,i))},indexFromPos:function(t){t=ot(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,t.line,function(o){i+=o.text.length+l}),i},copy:function(t){var i=new dn(nn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,l=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<l&&(l=t.to);var o=new dn(nn(this,i,l),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(o.history=this.history),(this.linked||(this.linked=[])).push({doc:o,sharedHist:t.sharedHist}),o.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],xx(o,Ph(this)),o},unlinkDoc:function(t){if(t instanceof $t&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),Tx(Ph(this));break}}if(t.history==this.history){var o=[t.id];ga(t,function(s){return o.push(s.id)},!0),t.history=new ru(null),t.history.done=Ro(this.history.done,o),t.history.undone=Ro(this.history.undone,o)}},iterLinkedDocs:function(t){ga(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):jr(t)},lineSeparator:function(){return this.lineSep||`
29
- `},setDirection:Br(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&fx(this.cm))})}),dn.prototype.eachLine=dn.prototype.iter;var zh=0;function Ix(t){var i=this;if(qh(i),!(Lt(i,t)||yi(i.display,t))){Bt(t),h&&(zh=+new Date);var l=Va(i,t,!0),o=t.dataTransfer.files;if(!(!l||i.isReadOnly()))if(o&&o.length&&window.FileReader&&window.File)for(var s=o.length,g=Array(s),y=0,C=function(){++y==s&&Lr(i,function(){l=ot(i.doc,l);var re={from:l,to:l,text:i.doc.splitLines(g.filter(function(de){return de!=null}).join(i.doc.lineSeparator())),origin:"paste"};Eo(i.doc,re),kh(i.doc,ha(ot(i.doc,l),ot(i.doc,pa(re))))})()},w=function(re,de){if(i.options.allowDropFileTypes&&_e(i.options.allowDropFileTypes,re.type)==-1){C();return}var ve=new FileReader;ve.onerror=function(){return C()},ve.onload=function(){var Re=ve.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Re)){C();return}g[de]=Re,C()},ve.readAsText(re)},E=0;E<o.length;E++)w(o[E],E);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var O=t.dataTransfer.getData("Text");if(O){var J;if(i.state.draggingText&&!i.state.draggingText.copy&&(J=i.listSelections()),au(i.doc,ha(l,l)),J)for(var ie=0;ie<J.length;++ie)Ao(i.doc,"",J[ie].anchor,J[ie].head,"drag");i.replaceSelection(O,"around","paste"),i.display.input.focus()}}catch{}}}}function wx(t,i){if(h&&(!t.state.draggingText||+new Date-zh<100)){kn(i);return}if(!(Lt(t,i)||yi(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!W)){var l=L("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",G&&(l.width=l.height=1,t.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),G&&l.parentNode.removeChild(l)}}function Rx(t,i){var l=Va(t,i);if(l){var o=document.createDocumentFragment();Kf(t,l,o),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),he(t.display.dragCursor,o)}}function qh(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Kh(t){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],o=0;o<i.length;o++){var s=i[o].CodeMirror;s&&l.push(s)}l.length&&l[0].operation(function(){for(var g=0;g<l.length;g++)t(l[g])})}}var $h=!1;function Sx(){$h||(Ex(),$h=!0)}function Ex(){var t;Je(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Kh(Ax)},100))}),Je(window,"blur",function(){return Kh(Co)})}function Ax(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var ba={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Yl=0;Yl<10;Yl++)ba[Yl+48]=ba[Yl+96]=String(Yl);for(var su=65;su<=90;su++)ba[su]=String.fromCharCode(su);for(var Pl=1;Pl<=12;Pl++)ba[Pl+111]=ba[Pl+63235]="F"+Pl;var Ji={};Ji.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ji.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ji.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ji.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ji.default=V?Ji.macDefault:Ji.pcDefault;function _x(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var l,o,s,g,y=0;y<i.length-1;y++){var C=i[y];if(/^(cmd|meta|m)$/i.test(C))g=!0;else if(/^a(lt)?$/i.test(C))l=!0;else if(/^(c|ctrl|control)$/i.test(C))o=!0;else if(/^s(hift)?$/i.test(C))s=!0;else throw new Error("Unrecognized modifier name: "+C)}return l&&(t="Alt-"+t),o&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),s&&(t="Shift-"+t),t}function Nx(t){var i={};for(var l in t)if(t.hasOwnProperty(l)){var o=t[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(o=="..."){delete t[l];continue}for(var s=vr(l.split(" "),_x),g=0;g<s.length;g++){var y=void 0,C=void 0;g==s.length-1?(C=s.join(" "),y=o):(C=s.slice(0,g+1).join(" "),y="...");var w=i[C];if(!w)i[C]=y;else if(w!=y)throw new Error("Inconsistent bindings for "+C)}delete t[l]}for(var E in i)t[E]=i[E];return t}function No(t,i,l,o){i=uu(i);var s=i.call?i.call(t,o):i[t];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&l(s))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return No(t,i.fallthrough,l,o);for(var g=0;g<i.fallthrough.length;g++){var y=No(t,i.fallthrough[g],l,o);if(y)return y}}}function ep(t){var i=typeof t=="string"?t:ba[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function tp(t,i,l){var o=t;return i.altKey&&o!="Alt"&&(t="Alt-"+t),(Z?i.metaKey:i.ctrlKey)&&o!="Ctrl"&&(t="Ctrl-"+t),(Z?i.ctrlKey:i.metaKey)&&o!="Mod"&&(t="Cmd-"+t),!l&&i.shiftKey&&o!="Shift"&&(t="Shift-"+t),t}function rp(t,i){if(G&&t.keyCode==34&&t.char)return!1;var l=ba[t.keyCode];return l==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(l=t.code),tp(l,t,i))}function uu(t){return typeof t=="string"?Ji[t]:t}function Fo(t,i){for(var l=t.doc.sel.ranges,o=[],s=0;s<l.length;s++){for(var g=i(l[s]);o.length&&Ee(g.from,Ye(o).to)<=0;){var y=o.pop();if(Ee(y.from,g.from)<0){g.from=y.from;break}}o.push(g)}An(t,function(){for(var C=o.length-1;C>=0;C--)Ao(t.doc,"",o[C].from,o[C].to,"+delete");Io(t)})}function gd(t,i,l){var o=xr(t.text,i+l,l);return o<0||o>t.text.length?null:o}function md(t,i,l){var o=gd(t,i.ch,l);return o==null?null:new ue(i.line,o,l<0?"after":"before")}function bd(t,i,l,o,s){if(t){i.doc.direction=="rtl"&&(s=-s);var g=at(l,i.doc.direction);if(g){var y=s<0?Ye(g):g[0],C=s<0==(y.level==1),w=C?"after":"before",E;if(y.level>0||i.doc.direction=="rtl"){var O=ti(i,l);E=s<0?l.text.length-1:0;var J=un(i,O,E).top;E=jt(function(ie){return un(i,O,ie).top==J},s<0==(y.level==1)?y.from:y.to-1,E),w=="before"&&(E=gd(l,E,1))}else E=s<0?y.to:y.from;return new ue(o,E,w)}}return new ue(o,s<0?l.text.length:0,s<0?"before":"after")}function Fx(t,i,l,o){var s=at(i,t.doc.direction);if(!s)return md(i,l,o);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var g=Tr(s,l.ch,l.sticky),y=s[g];if(t.doc.direction=="ltr"&&y.level%2==0&&(o>0?y.to>l.ch:y.from<l.ch))return md(i,l,o);var C=function(Ue,We){return gd(i,Ue instanceof ue?Ue.ch:Ue,We)},w,E=function(Ue){return t.options.lineWrapping?(w=w||ti(t,i),it(t,i,w,Ue)):{begin:0,end:i.text.length}},O=E(l.sticky=="before"?C(l,-1):l.ch);if(t.doc.direction=="rtl"||y.level==1){var J=y.level==1==o<0,ie=C(l,J?1:-1);if(ie!=null&&(J?ie<=y.to&&ie<=O.end:ie>=y.from&&ie>=O.begin)){var re=J?"before":"after";return new ue(l.line,ie,re)}}var de=function(Ue,We,ke){for(var Ve=function(Xt,Ur){return Ur?new ue(l.line,C(Xt,1),"before"):new ue(l.line,Xt,"after")};Ue>=0&&Ue<s.length;Ue+=We){var et=s[Ue],qe=We>0==(et.level!=1),yt=qe?ke.begin:C(ke.end,-1);if(et.from<=yt&&yt<et.to||(yt=qe?et.from:C(et.to,-1),ke.begin<=yt&&yt<ke.end))return Ve(yt,qe)}},ve=de(g+o,o,O);if(ve)return ve;var Re=o>0?O.end:C(O.begin,-1);return Re!=null&&!(o>0&&Re==i.text.length)&&(ve=de(o>0?0:s.length-1,o,E(Re)),ve)?ve:null}var zl={selectAll:Zh,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),pt)},killLine:function(t){return Fo(t,function(i){if(i.empty()){var l=De(t.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<t.lastLine()?{from:i.head,to:ue(i.head.line+1,0)}:{from:i.head,to:ue(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fo(t,function(i){return{from:ue(i.from().line,0),to:ot(t.doc,ue(i.to().line+1,0))}})},delLineLeft:function(t){return Fo(t,function(i){return{from:ue(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Fo(t,function(i){var l=t.charCoords(i.head,"div").top+5,o=t.coordsChar({left:0,top:l},"div");return{from:o,to:i.from()}})},delWrappedLineRight:function(t){return Fo(t,function(i){var l=t.charCoords(i.head,"div").top+5,o=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:o}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(ue(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(ue(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return np(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return ip(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return Lx(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var l=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:l},"div")},$e)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var l=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:l},"div")},$e)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var l=t.cursorCoords(i.head,"div").top+5,o=t.coordsChar({left:0,top:l},"div");return o.ch<t.getLine(o.line).search(/\S/)?ip(t,i.head):o},$e)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],l=t.listSelections(),o=t.options.tabSize,s=0;s<l.length;s++){var g=l[s].from(),y=He(t.getLine(g.line),g.ch,o);i.push(mt(o-y%o))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return An(t,function(){for(var i=t.listSelections(),l=[],o=0;o<i.length;o++)if(i[o].empty()){var s=i[o].head,g=De(t.doc,s.line).text;if(g){if(s.ch==g.length&&(s=new ue(s.line,s.ch-1)),s.ch>0)s=new ue(s.line,s.ch+1),t.replaceRange(g.charAt(s.ch-1)+g.charAt(s.ch-2),ue(s.line,s.ch-2),s,"+transpose");else if(s.line>t.doc.first){var y=De(t.doc,s.line-1).text;y&&(s=new ue(s.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+y.charAt(y.length-1),ue(s.line-1,y.length-1),s,"+transpose"))}}l.push(new Gt(s,s))}t.setSelections(l)})},newlineAndIndent:function(t){return An(t,function(){for(var i=t.listSelections(),l=i.length-1;l>=0;l--)t.replaceRange(t.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=t.listSelections();for(var o=0;o<i.length;o++)t.indentLine(i[o].from().line,null,!0);Io(t)})},openLine:function(t){return t.replaceSelection(`
30
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function np(t,i){var l=De(t.doc,i),o=Wn(l);return o!=l&&(i=N(o)),bd(!0,t,o,i,1)}function Lx(t,i){var l=De(t.doc,i),o=Wa(l);return o!=l&&(i=N(o)),bd(!0,t,l,i,-1)}function ip(t,i){var l=np(t,i.line),o=De(t.doc,l.line),s=at(o,t.doc.direction);if(!s||s[0].level==0){var g=Math.max(l.ch,o.text.search(/\S/)),y=i.line==l.line&&i.ch<=g&&i.ch;return ue(l.line,y?0:g,l.sticky)}return l}function fu(t,i,l){if(typeof i=="string"&&(i=zl[i],!i))return!1;t.display.input.ensurePolled();var o=t.display.shift,s=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),l&&(t.display.shift=!1),s=i(t)!=Et}finally{t.display.shift=o,t.state.suppressEdits=!1}return s}function Bx(t,i,l){for(var o=0;o<t.state.keyMaps.length;o++){var s=No(i,t.state.keyMaps[o],l,t);if(s)return s}return t.options.extraKeys&&No(i,t.options.extraKeys,l,t)||No(i,t.options.keyMap,l,t)}var Ux=new bt;function ql(t,i,l,o){var s=t.state.keySeq;if(s){if(ep(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:Ux.set(50,function(){t.state.keySeq==s&&(t.state.keySeq=null,t.display.input.reset())}),ap(t,s+" "+i,l,o))return!0}return ap(t,i,l,o)}function ap(t,i,l,o){var s=Bx(t,i,o);return s=="multi"&&(t.state.keySeq=i),s=="handled"&&rt(t,"keyHandled",t,i,l),(s=="handled"||s=="multi")&&(Bt(l),$f(t)),!!s}function op(t,i){var l=rp(i,!0);return l?i.shiftKey&&!t.state.keySeq?ql(t,"Shift-"+l,i,function(o){return fu(t,o,!0)})||ql(t,l,i,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return fu(t,o)}):ql(t,l,i,function(o){return fu(t,o)}):!1}function kx(t,i,l){return ql(t,"'"+l+"'",i,function(o){return fu(t,o,!0)})}var vd=null;function lp(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Fe(Rt(i)),!Lt(i,t))){h&&b<11&&t.keyCode==27&&(t.returnValue=!1);var l=t.keyCode;i.display.shift=l==16||t.shiftKey;var o=op(i,t);G&&(vd=o?l:null,!o&&l==88&&!Ai&&(V?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),n&&!V&&!o&&l==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Gx(i)}}function Gx(t){var i=t.display.lineDiv;nt(i,"CodeMirror-crosshair");function l(o){(o.keyCode==18||!o.altKey)&&(Te(i,"CodeMirror-crosshair"),Cr(document,"keyup",l),Cr(document,"mouseover",l))}Je(document,"keyup",l),Je(document,"mouseover",l)}function sp(t){t.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,t)}function up(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(yi(i.display,t)||Lt(i,t)||t.ctrlKey&&!t.altKey||V&&t.metaKey)){var l=t.keyCode,o=t.charCode;if(G&&l==vd){vd=null,Bt(t);return}if(!(G&&(!t.which||t.which<10)&&op(i,t))){var s=String.fromCharCode(o??l);s!="\b"&&(kx(i,t,s)||i.display.input.onKeyPress(t))}}}var Dx=400,yd=function(t,i,l){this.time=t,this.pos=i,this.button=l};yd.prototype.compare=function(t,i,l){return this.time+Dx>t&&Ee(i,this.pos)==0&&l==this.button};var Kl,$l;function Wx(t,i){var l=+new Date;return $l&&$l.compare(l,t,i)?(Kl=$l=null,"triple"):Kl&&Kl.compare(l,t,i)?($l=new yd(l,t,i),Kl=null,"double"):(Kl=new yd(l,t,i),$l=null,"single")}function fp(t){var i=this,l=i.display;if(!(Lt(i,t)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=t.shiftKey,yi(l,t)){x||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!xd(i,t)){var o=Va(i,t),s=pr(t),g=o?Wx(o,s):"single";Qe(i).focus(),s==1&&i.state.selectingText&&i.state.selectingText(t),!(o&&Ox(i,s,o,g,t))&&(s==1?o?Mx(i,o,g,t):hi(t)==l.scroller&&Bt(t):s==2?(o&&iu(i.doc,o),setTimeout(function(){return l.input.focus()},20)):s==3&&(z?i.display.input.onContextMenu(t):ed(i)))}}}function Ox(t,i,l,o,s){var g="Click";return o=="double"?g="Double"+g:o=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,ql(t,tp(g,s),s,function(y){if(typeof y=="string"&&(y=zl[y]),!y)return!1;var C=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),C=y(t,l)!=Et}finally{t.state.suppressEdits=!1}return C})}function Zx(t,i,l){var o=t.getOption("configureMouse"),s=o?o(t,i,l):{};if(s.unit==null){var g=D?l.shiftKey&&l.metaKey:l.altKey;s.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(s.extend==null||t.doc.extend)&&(s.extend=t.doc.extend||l.shiftKey),s.addNew==null&&(s.addNew=V?l.metaKey:l.ctrlKey),s.moveOnDrag==null&&(s.moveOnDrag=!(V?l.altKey:l.ctrlKey)),s}function Mx(t,i,l,o){h?setTimeout(Le(dh,t),0):t.curOp.focus=Fe(Rt(t));var s=Zx(t,l,o),g=t.doc.sel,y;t.options.dragDrop&&Gn&&!t.isReadOnly()&&l=="single"&&(y=g.contains(i))>-1&&(Ee((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Ee(y.to(),i)>0||i.xRel<0)?Vx(t,o,i,s):Qx(t,o,i,s)}function Vx(t,i,l,o){var s=t.display,g=!1,y=Lr(t,function(E){x&&(s.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:ed(t)),Cr(s.wrapper.ownerDocument,"mouseup",y),Cr(s.wrapper.ownerDocument,"mousemove",C),Cr(s.scroller,"dragstart",w),Cr(s.scroller,"drop",y),g||(Bt(E),o.addNew||iu(t.doc,l,null,null,o.extend),x&&!W||h&&b==9?setTimeout(function(){s.wrapper.ownerDocument.body.focus({preventScroll:!0}),s.input.focus()},20):s.input.focus())}),C=function(E){g=g||Math.abs(i.clientX-E.clientX)+Math.abs(i.clientY-E.clientY)>=10},w=function(){return g=!0};x&&(s.scroller.draggable=!0),t.state.draggingText=y,y.copy=!o.moveOnDrag,Je(s.wrapper.ownerDocument,"mouseup",y),Je(s.wrapper.ownerDocument,"mousemove",C),Je(s.scroller,"dragstart",w),Je(s.scroller,"drop",y),t.state.delayingBlurEvent=!0,setTimeout(function(){return s.input.focus()},20),s.scroller.dragDrop&&s.scroller.dragDrop()}function dp(t,i,l){if(l=="char")return new Gt(i,i);if(l=="word")return t.findWordAt(i);if(l=="line")return new Gt(ue(i.line,0),ot(t.doc,ue(i.line+1,0)));var o=l(t,i);return new Gt(o.from,o.to)}function Qx(t,i,l,o){h&&ed(t);var s=t.display,g=t.doc;Bt(i);var y,C,w=g.sel,E=w.ranges;if(o.addNew&&!o.extend?(C=g.sel.contains(l),C>-1?y=E[C]:y=new Gt(l,l)):(y=g.sel.primary(),C=g.sel.primIndex),o.unit=="rectangle")o.addNew||(y=new Gt(l,l)),l=Va(t,i,!0,!0),C=-1;else{var O=dp(t,l,o.unit);o.extend?y=hd(y,O.anchor,O.head,o.extend):y=O}o.addNew?C==-1?(C=E.length,qr(g,Ti(t,E.concat([y]),C),{scroll:!1,origin:"*mouse"})):E.length>1&&E[C].empty()&&o.unit=="char"&&!o.extend?(qr(g,Ti(t,E.slice(0,C).concat(E.slice(C+1)),0),{scroll:!1,origin:"*mouse"}),w=g.sel):pd(g,C,y,st):(C=0,qr(g,new Zn([y],0),st),w=g.sel);var J=l;function ie(ke){if(Ee(J,ke)!=0)if(J=ke,o.unit=="rectangle"){for(var Ve=[],et=t.options.tabSize,qe=He(De(g,l.line).text,l.ch,et),yt=He(De(g,ke.line).text,ke.ch,et),Xt=Math.min(qe,yt),Ur=Math.max(qe,yt),or=Math.min(l.line,ke.line),_n=Math.min(t.lastLine(),Math.max(l.line,ke.line));or<=_n;or++){var cn=De(g,or).text,Rr=Ct(cn,Xt,et);Xt==Ur?Ve.push(new Gt(ue(or,Rr),ue(or,Rr))):cn.length>Rr&&Ve.push(new Gt(ue(or,Rr),ue(or,Ct(cn,Ur,et))))}Ve.length||Ve.push(new Gt(l,l)),qr(g,Ti(t,w.ranges.slice(0,C).concat(Ve),C),{origin:"*mouse",scroll:!1}),t.scrollIntoView(ke)}else{var hn=y,Vr=dp(t,ke,o.unit),Er=hn.anchor,Sr;Ee(Vr.anchor,Er)>0?(Sr=Vr.head,Er=ia(hn.from(),Vr.anchor)):(Sr=Vr.anchor,Er=Pr(hn.to(),Vr.head));var dr=w.ranges.slice(0);dr[C]=Hx(t,new Gt(ot(g,Er),Sr)),qr(g,Ti(t,dr,C),st)}}var re=s.wrapper.getBoundingClientRect(),de=0;function ve(ke){var Ve=++de,et=Va(t,ke,!0,o.unit=="rectangle");if(et)if(Ee(et,J)!=0){t.curOp.focus=Fe(Rt(t)),ie(et);var qe=Ks(s,g);(et.line>=qe.to||et.line<qe.from)&&setTimeout(Lr(t,function(){de==Ve&&ve(ke)}),150)}else{var yt=ke.clientY<re.top?-20:ke.clientY>re.bottom?20:0;yt&&setTimeout(Lr(t,function(){de==Ve&&(s.scroller.scrollTop+=yt,ve(ke))}),50)}}function Re(ke){t.state.selectingText=!1,de=1/0,ke&&(Bt(ke),s.input.focus()),Cr(s.wrapper.ownerDocument,"mousemove",Ue),Cr(s.wrapper.ownerDocument,"mouseup",We),g.history.lastSelOrigin=null}var Ue=Lr(t,function(ke){ke.buttons===0||!pr(ke)?Re(ke):ve(ke)}),We=Lr(t,Re);t.state.selectingText=We,Je(s.wrapper.ownerDocument,"mousemove",Ue),Je(s.wrapper.ownerDocument,"mouseup",We)}function Hx(t,i){var l=i.anchor,o=i.head,s=De(t.doc,l.line);if(Ee(l,o)==0&&l.sticky==o.sticky)return i;var g=at(s);if(!g)return i;var y=Tr(g,l.ch,l.sticky),C=g[y];if(C.from!=l.ch&&C.to!=l.ch)return i;var w=y+(C.from==l.ch==(C.level!=1)?0:1);if(w==0||w==g.length)return i;var E;if(o.line!=l.line)E=(o.line-l.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var O=Tr(g,o.ch,o.sticky),J=O-y||(o.ch-l.ch)*(C.level==1?-1:1);O==w-1||O==w?E=J<0:E=J>0}var ie=g[w+(E?-1:0)],re=E==(ie.level==1),de=re?ie.from:ie.to,ve=re?"after":"before";return l.ch==de&&l.sticky==ve?i:new Gt(new ue(l.line,de,ve),o)}function cp(t,i,l,o){var s,g;if(i.touches)s=i.touches[0].clientX,g=i.touches[0].clientY;else try{s=i.clientX,g=i.clientY}catch{return!1}if(s>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;o&&Bt(i);var y=t.display,C=y.lineDiv.getBoundingClientRect();if(g>C.bottom||!ur(t,l))return nr(i);g-=C.top-y.viewOffset;for(var w=0;w<t.display.gutterSpecs.length;++w){var E=y.gutters.childNodes[w];if(E&&E.getBoundingClientRect().right>=s){var O=H(t.doc,g),J=t.display.gutterSpecs[w];return Ft(t,l,t,O,J.className,i),nr(i)}}}function xd(t,i){return cp(t,i,"gutterClick",!0)}function hp(t,i){yi(t.display,i)||Xx(t,i)||Lt(t,i,"contextmenu")||z||t.display.input.onContextMenu(i)}function Xx(t,i){return ur(t,"gutterContextMenu")?cp(t,i,"gutterContextMenu",!1):!1}function pp(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hi(t)}var Lo={toString:function(){return"CodeMirror.Init"}},gp={},du={};function Jx(t){var i=t.optionHandlers;function l(o,s,g,y){t.defaults[o]=s,g&&(i[o]=y?function(C,w,E){E!=Lo&&g(C,w,E)}:g)}t.defineOption=l,t.Init=Lo,l("value","",function(o,s){return o.setValue(s)},!0),l("mode",null,function(o,s){o.doc.modeOption=s,fd(o)},!0),l("indentUnit",2,fd,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(o){Ml(o),Hi(o),fn(o)},!0),l("lineSeparator",null,function(o,s){if(o.doc.lineSep=s,!!s){var g=[],y=o.doc.first;o.doc.iter(function(w){for(var E=0;;){var O=w.text.indexOf(s,E);if(O==-1)break;E=O+s.length,g.push(ue(y,O))}y++});for(var C=g.length-1;C>=0;C--)Ao(o.doc,s,g[C],ue(g[C].line,g[C].ch+s.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(o,s,g){o.state.specialChars=new RegExp(s.source+(s.test(" ")?"":"| "),"g"),g!=Lo&&o.refresh()}),l("specialCharPlaceholder",ce,function(o){return o.refresh()},!0),l("electricChars",!0),l("inputStyle",K?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(o,s){return o.getInputField().spellcheck=s},!0),l("autocorrect",!1,function(o,s){return o.getInputField().autocorrect=s},!0),l("autocapitalize",!1,function(o,s){return o.getInputField().autocapitalize=s},!0),l("rtlMoveVisually",!ee),l("wholeLineUpdateBefore",!0),l("theme","default",function(o){pp(o),Zl(o)},!0),l("keyMap","default",function(o,s,g){var y=uu(s),C=g!=Lo&&uu(g);C&&C.detach&&C.detach(o,y),y.attach&&y.attach(o,C||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Yx,!0),l("gutters",[],function(o,s){o.display.gutterSpecs=sd(s,o.options.lineNumbers),Zl(o)},!0),l("fixedGutter",!0,function(o,s){o.display.gutters.style.left=s?Li(o.display)+"px":"0",o.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(o){return wo(o)},!0),l("scrollbarStyle","native",function(o){bh(o),wo(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),l("lineNumbers",!1,function(o,s){o.display.gutterSpecs=sd(o.options.gutters,s),Zl(o)},!0),l("firstLineNumber",1,Zl,!0),l("lineNumberFormatter",function(o){return o},Zl,!0),l("showCursorWhenSelecting",!1,Ul,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(o,s){s=="nocursor"&&(Co(o),o.display.input.blur()),o.display.input.readOnlyChanged(s)}),l("screenReaderLabel",null,function(o,s){s=s===""?null:s,o.display.input.screenReaderLabelChanged(s)}),l("disableInput",!1,function(o,s){s||o.display.input.reset()},!0),l("dragDrop",!0,jx),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Ul,!0),l("singleCursorHeightPerLine",!0,Ul,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Ml,!0),l("addModeClass",!1,Ml,!0),l("pollInterval",100),l("undoDepth",200,function(o,s){return o.doc.history.undoDepth=s}),l("historyEventDelay",1250),l("viewportMargin",10,function(o){return o.refresh()},!0),l("maxHighlightLength",1e4,Ml,!0),l("moveInputWithCursor",!0,function(o,s){s||o.display.input.resetPosition()}),l("tabindex",null,function(o,s){return o.display.input.getField().tabIndex=s||""}),l("autofocus",null),l("direction","ltr",function(o,s){return o.doc.setDirection(s)},!0),l("phrases",null)}function jx(t,i,l){var o=l&&l!=Lo;if(!i!=!o){var s=t.display.dragFunctions,g=i?Je:Cr;g(t.display.scroller,"dragstart",s.start),g(t.display.scroller,"dragenter",s.enter),g(t.display.scroller,"dragover",s.over),g(t.display.scroller,"dragleave",s.leave),g(t.display.scroller,"drop",s.drop)}}function Yx(t){t.options.lineWrapping?(nt(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(Te(t.display.wrapper,"CodeMirror-wrap"),v(t)),qf(t),fn(t),Hi(t),setTimeout(function(){return wo(t)},100)}function $t(t,i){var l=this;if(!(this instanceof $t))return new $t(t,i);this.options=i=i?Ge(i):{},Ge(gp,i,!1);var o=i.value;typeof o=="string"?o=new dn(o,i.mode,null,i.lineSeparator,i.direction):i.mode&&(o.modeOption=i.mode),this.doc=o;var s=new $t.inputStyles[i.inputStyle](this),g=this.display=new lx(t,o,s,i);g.wrapper.CodeMirror=this,pp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bh(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new bt,keySeq:null,specialChars:null},i.autofocus&&!K&&g.input.focus(),h&&b<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Px(this),Sx(),Ja(this),this.curOp.forceUpdate=!0,Eh(this,o),i.autofocus&&!K||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&td(l)},20):Co(this);for(var y in du)du.hasOwnProperty(y)&&du[y](this,i[y],Lo);xh(this),i.finishInit&&i.finishInit(this);for(var C=0;C<Td.length;++C)Td[C](this);ja(this),x&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}$t.defaults=gp,$t.optionHandlers=du;function Px(t){var i=t.display;Je(i.scroller,"mousedown",Lr(t,fp)),h&&b<11?Je(i.scroller,"dblclick",Lr(t,function(w){if(!Lt(t,w)){var E=Va(t,w);if(!(!E||xd(t,w)||yi(t.display,w))){Bt(w);var O=t.findWordAt(E);iu(t.doc,O.anchor,O.head)}}})):Je(i.scroller,"dblclick",function(w){return Lt(t,w)||Bt(w)}),Je(i.scroller,"contextmenu",function(w){return hp(t,w)}),Je(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||hp(t,w)});var l,o={end:0};function s(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),o=i.activeTouch,o.end=+new Date)}function g(w){if(w.touches.length!=1)return!1;var E=w.touches[0];return E.radiusX<=1&&E.radiusY<=1}function y(w,E){if(E.left==null)return!0;var O=E.left-w.left,J=E.top-w.top;return O*O+J*J>20*20}Je(i.scroller,"touchstart",function(w){if(!Lt(t,w)&&!g(w)&&!xd(t,w)){i.input.ensurePolled(),clearTimeout(l);var E=+new Date;i.activeTouch={start:E,moved:!1,prev:E-o.end<=300?o:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),Je(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Je(i.scroller,"touchend",function(w){var E=i.activeTouch;if(E&&!yi(i,w)&&E.left!=null&&!E.moved&&new Date-E.start<300){var O=t.coordsChar(i.activeTouch,"page"),J;!E.prev||y(E,E.prev)?J=new Gt(O,O):!E.prev.prev||y(E,E.prev.prev)?J=t.findWordAt(O):J=new Gt(ue(O.line,0),ot(t.doc,ue(O.line+1,0))),t.setSelection(J.anchor,J.head),t.focus(),Bt(w)}s()}),Je(i.scroller,"touchcancel",s),Je(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Gl(t,i.scroller.scrollTop),Ha(t,i.scroller.scrollLeft,!0),Ft(t,"scroll",t))}),Je(i.scroller,"mousewheel",function(w){return Ih(t,w)}),Je(i.scroller,"DOMMouseScroll",function(w){return Ih(t,w)}),Je(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){Lt(t,w)||kn(w)},over:function(w){Lt(t,w)||(Rx(t,w),kn(w))},start:function(w){return wx(t,w)},drop:Lr(t,Ix),leave:function(w){Lt(t,w)||qh(t)}};var C=i.input.getField();Je(C,"keyup",function(w){return sp.call(t,w)}),Je(C,"keydown",Lr(t,lp)),Je(C,"keypress",Lr(t,up)),Je(C,"focus",function(w){return td(t,w)}),Je(C,"blur",function(w){return Co(t,w)})}var Td=[];$t.defineInitHook=function(t){return Td.push(t)};function es(t,i,l,o){var s=t.doc,g;l==null&&(l="add"),l=="smart"&&(s.mode.indent?g=mi(t,i).state:l="prev");var y=t.options.tabSize,C=De(s,i),w=He(C.text,null,y);C.stateAfter&&(C.stateAfter=null);var E=C.text.match(/^\s*/)[0],O;if(!o&&!/\S/.test(C.text))O=0,l="not";else if(l=="smart"&&(O=s.mode.indent(g,C.text.slice(E.length),C.text),O==Et||O>150)){if(!o)return;l="prev"}l=="prev"?i>s.first?O=He(De(s,i-1).text,null,y):O=0:l=="add"?O=w+t.options.indentUnit:l=="subtract"?O=w-t.options.indentUnit:typeof l=="number"&&(O=w+l),O=Math.max(0,O);var J="",ie=0;if(t.options.indentWithTabs)for(var re=Math.floor(O/y);re;--re)ie+=y,J+=" ";if(ie<O&&(J+=mt(O-ie)),J!=E)return Ao(s,J,ue(i,0),ue(i,E.length),"+input"),C.stateAfter=null,!0;for(var de=0;de<s.sel.ranges.length;de++){var ve=s.sel.ranges[de];if(ve.head.line==i&&ve.head.ch<E.length){var Re=ue(i,E.length);pd(s,de,new Gt(Re,Re));break}}}var Ci=null;function cu(t){Ci=t}function Cd(t,i,l,o,s){var g=t.doc;t.display.shift=!1,o||(o=g.sel);var y=+new Date-200,C=s=="paste"||t.state.pasteIncoming>y,w=jr(i),E=null;if(C&&o.ranges.length>1)if(Ci&&Ci.text.join(`
31
- `)==i){if(o.ranges.length%Ci.text.length==0){E=[];for(var O=0;O<Ci.text.length;O++)E.push(g.splitLines(Ci.text[O]))}}else w.length==o.ranges.length&&t.options.pasteLinesPerSelection&&(E=vr(w,function(Ue){return[Ue]}));for(var J=t.curOp.updateInput,ie=o.ranges.length-1;ie>=0;ie--){var re=o.ranges[ie],de=re.from(),ve=re.to();re.empty()&&(l&&l>0?de=ue(de.line,de.ch-l):t.state.overwrite&&!C?ve=ue(ve.line,Math.min(De(g,ve.line).text.length,ve.ch+Ye(w).length)):C&&Ci&&Ci.lineWise&&Ci.text.join(`
32
- `)==w.join(`
33
- `)&&(de=ve=ue(de.line,0)));var Re={from:de,to:ve,text:E?E[ie%E.length]:w,origin:s||(C?"paste":t.state.cutIncoming>y?"cut":"+input")};Eo(t.doc,Re),rt(t,"inputRead",t,Re)}i&&!C&&bp(t,i),Io(t),t.curOp.updateInput<2&&(t.curOp.updateInput=J),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function mp(t,i){var l=t.clipboardData&&t.clipboardData.getData("Text");if(l)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&An(i,function(){return Cd(i,l,0,null,"paste")}),!0}function bp(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var l=t.doc.sel,o=l.ranges.length-1;o>=0;o--){var s=l.ranges[o];if(!(s.head.ch>100||o&&l.ranges[o-1].head.line==s.head.line)){var g=t.getModeAt(s.head),y=!1;if(g.electricChars){for(var C=0;C<g.electricChars.length;C++)if(i.indexOf(g.electricChars.charAt(C))>-1){y=es(t,s.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(De(t.doc,s.head.line).text.slice(0,s.head.ch))&&(y=es(t,s.head.line,"smart"));y&&rt(t,"electricInput",t,s.head.line)}}}function vp(t){for(var i=[],l=[],o=0;o<t.doc.sel.ranges.length;o++){var s=t.doc.sel.ranges[o].head.line,g={anchor:ue(s,0),head:ue(s+1,0)};l.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:l}}function Id(t,i,l,o){t.setAttribute("autocorrect",l?"on":"off"),t.setAttribute("autocapitalize",o?"on":"off"),t.setAttribute("spellcheck",!!i)}function yp(){var t=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=L("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?t.style.width="1000px":t.setAttribute("wrap","off"),A&&(t.style.border="1px solid black"),i}function zx(t){var i=t.optionHandlers,l=t.helpers={};t.prototype={constructor:t,focus:function(){Qe(this).focus(),this.display.input.focus()},setOption:function(o,s){var g=this.options,y=g[o];g[o]==s&&o!="mode"||(g[o]=s,i.hasOwnProperty(o)&&Lr(this,i[o])(this,s,y),Ft(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,s){this.state.keyMaps[s?"push":"unshift"](uu(o))},removeKeyMap:function(o){for(var s=this.state.keyMaps,g=0;g<s.length;++g)if(s[g]==o||s[g].name==o)return s.splice(g,1),!0},addOverlay:an(function(o,s){var g=o.token?o:t.getMode(this.options,o);if(g.startState)throw new Error("Overlays may not be stateful.");yr(this.state.overlays,{mode:g,modeSpec:o,opaque:s&&s.opaque,priority:s&&s.priority||0},function(y){return y.priority}),this.state.modeGen++,fn(this)}),removeOverlay:an(function(o){for(var s=this.state.overlays,g=0;g<s.length;++g){var y=s[g].modeSpec;if(y==o||typeof o=="string"&&y.name==o){s.splice(g,1),this.state.modeGen++,fn(this);return}}}),indentLine:an(function(o,s,g){typeof s!="string"&&typeof s!="number"&&(s==null?s=this.options.smartIndent?"smart":"prev":s=s?"add":"subtract"),pe(this.doc,o)&&es(this,o,s,g)}),indentSelection:an(function(o){for(var s=this.doc.sel.ranges,g=-1,y=0;y<s.length;y++){var C=s[y];if(C.empty())C.head.line>g&&(es(this,C.head.line,o,!0),g=C.head.line,y==this.doc.sel.primIndex&&Io(this));else{var w=C.from(),E=C.to(),O=Math.max(g,w.line);g=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var J=O;J<g;++J)es(this,J,o);var ie=this.doc.sel.ranges;w.ch==0&&s.length==ie.length&&ie[y].from().ch>0&&pd(this.doc,y,new Gt(w,ie[y].to()),pt)}}}),getTokenAt:function(o,s){return mo(this,o,s)},getLineTokens:function(o,s){return mo(this,ue(o),s,!0)},getTokenTypeAt:function(o){o=ot(this.doc,o);var s=yl(this,De(this.doc,o.line)),g=0,y=(s.length-1)/2,C=o.ch,w;if(C==0)w=s[2];else for(;;){var E=g+y>>1;if((E?s[E*2-1]:0)>=C)y=E;else if(s[E*2+1]<C)g=E+1;else{w=s[E*2+2];break}}var O=w?w.indexOf("overlay "):-1;return O<0?w:O==0?null:w.slice(0,O-1)},getModeAt:function(o){var s=this.doc.mode;return s.innerMode?t.innerMode(s,this.getTokenAt(o).state).mode:s},getHelper:function(o,s){return this.getHelpers(o,s)[0]},getHelpers:function(o,s){var g=[];if(!l.hasOwnProperty(s))return g;var y=l[s],C=this.getModeAt(o);if(typeof C[s]=="string")y[C[s]]&&g.push(y[C[s]]);else if(C[s])for(var w=0;w<C[s].length;w++){var E=y[C[s][w]];E&&g.push(E)}else C.helperType&&y[C.helperType]?g.push(y[C.helperType]):y[C.name]&&g.push(y[C.name]);for(var O=0;O<y._global.length;O++){var J=y._global[O];J.pred(C,this)&&_e(g,J.val)==-1&&g.push(J.val)}return g},getStateAfter:function(o,s){var g=this.doc;return o=ho(g,o??g.first+g.size-1),mi(this,o+1,s).state},cursorCoords:function(o,s){var g,y=this.doc.sel.primary();return o==null?g=y.head:typeof o=="object"?g=ot(this.doc,o):g=o?y.from():y.to(),Ae(this,g,s||"page")},charCoords:function(o,s){return me(this,ot(this.doc,o),s||"page")},coordsChar:function(o,s){return o=fe(this,o,s||"page"),Ze(this,o.left,o.top)},lineAtHeight:function(o,s){return o=fe(this,{top:o,left:0},s||"page").top,H(this.doc,o+this.display.viewOffset)},heightAtLine:function(o,s,g){var y=!1,C;if(typeof o=="number"){var w=this.doc.first+this.doc.size-1;o<this.doc.first?o=this.doc.first:o>w&&(o=w,y=!0),C=De(this.doc,o)}else C=o;return oe(this,C,{top:0,left:0},s||"page",g||y).top+(y?this.doc.height-d(C):0)},defaultTextHeight:function(){return fr(this.display)},defaultCharWidth:function(){return Fr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,s,g,y,C){var w=this.display;o=Ae(this,ot(this.doc,o));var E=o.bottom,O=o.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),w.sizer.appendChild(s),y=="over")E=o.top;else if(y=="above"||y=="near"){var J=Math.max(w.wrapper.clientHeight,this.doc.height),ie=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(y=="above"||o.bottom+s.offsetHeight>J)&&o.top>s.offsetHeight?E=o.top-s.offsetHeight:o.bottom+s.offsetHeight<=J&&(E=o.bottom),O+s.offsetWidth>ie&&(O=ie-s.offsetWidth)}s.style.top=E+"px",s.style.left=s.style.right="",C=="right"?(O=w.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(C=="left"?O=0:C=="middle"&&(O=(w.sizer.clientWidth-s.offsetWidth)/2),s.style.left=O+"px"),g&&jy(this,{left:O,top:E,right:O+s.offsetWidth,bottom:E+s.offsetHeight})},triggerOnKeyDown:an(lp),triggerOnKeyPress:an(up),triggerOnKeyUp:sp,triggerOnMouseDown:an(fp),execCommand:function(o){if(zl.hasOwnProperty(o))return zl[o].call(null,this)},triggerElectric:an(function(o){bp(this,o)}),findPosH:function(o,s,g,y){var C=1;s<0&&(C=-1,s=-s);for(var w=ot(this.doc,o),E=0;E<s&&(w=wd(this.doc,w,C,g,y),!w.hitSide);++E);return w},moveH:an(function(o,s){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?wd(g.doc,y.head,o,s,g.options.rtlMoveVisually):o<0?y.from():y.to()},$e)}),deleteH:an(function(o,s){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):Fo(this,function(C){var w=wd(y,C.head,o,s,!1);return o<0?{from:w,to:C.head}:{from:C.head,to:w}})}),findPosV:function(o,s,g,y){var C=1,w=y;s<0&&(C=-1,s=-s);for(var E=ot(this.doc,o),O=0;O<s;++O){var J=Ae(this,E,"div");if(w==null?w=J.left:J.left=w,E=xp(this,J,C,g),E.hitSide)break}return E},moveV:an(function(o,s){var g=this,y=this.doc,C=[],w=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(O){if(w)return o<0?O.from():O.to();var J=Ae(g,O.head,"div");O.goalColumn!=null&&(J.left=O.goalColumn),C.push(J.left);var ie=xp(g,J,o,s);return s=="page"&&O==y.sel.primary()&&nd(g,me(g,ie,"div").top-J.top),ie},$e),C.length)for(var E=0;E<y.sel.ranges.length;E++)y.sel.ranges[E].goalColumn=C[E]}),findWordAt:function(o){var s=this.doc,g=De(s,o.line).text,y=o.ch,C=o.ch;if(g){var w=this.getHelper(o,"wordChars");(o.sticky=="before"||C==g.length)&&y?--y:++C;for(var E=g.charAt(y),O=gt(E,w)?function(J){return gt(J,w)}:/\s/.test(E)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!gt(J)};y>0&&O(g.charAt(y-1));)--y;for(;C<g.length&&O(g.charAt(C));)++C}return new Gt(ue(o.line,y),ue(o.line,C))},toggleOverwrite:function(o){o!=null&&o==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?nt(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe(Rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(o,s){kl(this,o,s)}),getScrollInfo:function(){var o=this.display.scroller;return{left:o.scrollLeft,top:o.scrollTop,height:o.scrollHeight-zr(this)-this.display.barHeight,width:o.scrollWidth-zr(this)-this.display.barWidth,clientHeight:Nl(this),clientWidth:Qi(this)}},scrollIntoView:an(function(o,s){o==null?(o={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof o=="number"?o={from:ue(o,0),to:null}:o.from==null&&(o={from:o,to:null}),o.to||(o.to=o.from),o.margin=s||0,o.from.line!=null?Yy(this,o):hh(this,o.from,o.to,o.margin)}),setSize:an(function(o,s){var g=this,y=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};o!=null&&(this.display.wrapper.style.width=y(o)),s!=null&&(this.display.wrapper.style.height=y(s)),this.options.lineWrapping&&Ys(this);var C=this.display.viewFrom;this.doc.iter(C,this.display.viewTo,function(w){if(w.widgets){for(var E=0;E<w.widgets.length;E++)if(w.widgets[E].noHScroll){da(g,C,"widget");break}}++C}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(o){return An(this,o)},startOperation:function(){return Ja(this)},endOperation:function(){return ja(this)},refresh:an(function(){var o=this.display.cachedTextHeight;fn(this),this.curOp.forceUpdate=!0,Hi(this),kl(this,this.doc.scrollLeft,this.doc.scrollTop),od(this.display),(o==null||Math.abs(o-fr(this.display))>.5||this.options.lineWrapping)&&qf(this),Ft(this,"refresh",this)}),swapDoc:an(function(o){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),Eh(this,o),Hi(this),this.display.input.reset(),kl(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,s),s}),phrase:function(o){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,o)?s[o]:o},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Yt(t),t.registerHelper=function(o,s,g){l.hasOwnProperty(o)||(l[o]=t[o]={_global:[]}),l[o][s]=g},t.registerGlobalHelper=function(o,s,g,y){t.registerHelper(o,s,y),l[o]._global.push({pred:g,val:y})}}function wd(t,i,l,o,s){var g=i,y=l,C=De(t,i.line),w=s&&t.direction=="rtl"?-l:l;function E(){var We=i.line+w;return We<t.first||We>=t.first+t.size?!1:(i=new ue(We,i.ch,i.sticky),C=De(t,We))}function O(We){var ke;if(o=="codepoint"){var Ve=C.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Ve))ke=null;else{var et=l>0?Ve>=55296&&Ve<56320:Ve>=56320&&Ve<57343;ke=new ue(i.line,Math.max(0,Math.min(C.text.length,i.ch+l*(et?2:1))),-l)}}else s?ke=Fx(t.cm,C,i,l):ke=md(C,i,l);if(ke==null)if(!We&&E())i=bd(s,t.cm,C,i.line,w);else return!1;else i=ke;return!0}if(o=="char"||o=="codepoint")O();else if(o=="column")O(!0);else if(o=="word"||o=="group")for(var J=null,ie=o=="group",re=t.cm&&t.cm.getHelper(i,"wordChars"),de=!0;!(l<0&&!O(!de));de=!1){var ve=C.text.charAt(i.ch)||`
34
- `,Re=gt(ve,re)?"w":ie&&ve==`
35
- `?"n":!ie||/\s/.test(ve)?null:"p";if(ie&&!de&&!Re&&(Re="s"),J&&J!=Re){l<0&&(l=1,O(),i.sticky="after");break}if(Re&&(J=Re),l>0&&!O(!de))break}var Ue=ou(t,i,g,y,!0);return It(g,Ue)&&(Ue.hitSide=!0),Ue}function xp(t,i,l,o){var s=t.doc,g=i.left,y;if(o=="page"){var C=Math.min(t.display.wrapper.clientHeight,Qe(t).innerHeight||s(t).documentElement.clientHeight),w=Math.max(C-.5*fr(t.display),3);y=(l>0?i.bottom:i.top)+l*w}else o=="line"&&(y=l>0?i.bottom+3:i.top-3);for(var E;E=Ze(t,g,y),!!E.outside;){if(l<0?y<=0:y>=s.height){E.hitSide=!0;break}y+=l*5}return E}var Zt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new bt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Zt.prototype.init=function(t){var i=this,l=this,o=l.cm,s=l.div=t.lineDiv;s.contentEditable=!0,Id(s,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function g(C){for(var w=C.target;w;w=w.parentNode){if(w==s)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Je(s,"paste",function(C){!g(C)||Lt(o,C)||mp(C,o)||b<=11&&setTimeout(Lr(o,function(){return i.updateFromDOM()}),20)}),Je(s,"compositionstart",function(C){i.composing={data:C.data,done:!1}}),Je(s,"compositionupdate",function(C){i.composing||(i.composing={data:C.data,done:!1})}),Je(s,"compositionend",function(C){i.composing&&(C.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Je(s,"touchstart",function(){return l.forceCompositionEnd()}),Je(s,"input",function(){i.composing||i.readFromDOMSoon()});function y(C){if(!(!g(C)||Lt(o,C))){if(o.somethingSelected())cu({lineWise:!1,text:o.getSelections()}),C.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var w=vp(o);cu({lineWise:!0,text:w.text}),C.type=="cut"&&o.operation(function(){o.setSelections(w.ranges,0,pt),o.replaceSelection("",null,"cut")})}else return;if(C.clipboardData){C.clipboardData.clearData();var E=Ci.text.join(`
36
- `);if(C.clipboardData.setData("Text",E),C.clipboardData.getData("Text")==E){C.preventDefault();return}}var O=yp(),J=O.firstChild;Id(J),o.display.lineSpace.insertBefore(O,o.display.lineSpace.firstChild),J.value=Ci.text.join(`
37
- `);var ie=Fe(Pe(s));lt(J),setTimeout(function(){o.display.lineSpace.removeChild(O),ie.focus(),ie==s&&l.showPrimarySelection()},50)}}Je(s,"copy",y),Je(s,"cut",y)},Zt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Zt.prototype.prepareSelection=function(){var t=fh(this.cm,!1);return t.focus=Fe(Pe(this.div))==this.div,t},Zt.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zt.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),o=l.from(),s=l.to();if(i.display.viewTo==i.display.viewFrom||o.line>=i.display.viewTo||s.line<i.display.viewFrom){t.removeAllRanges();return}var g=hu(i,t.anchorNode,t.anchorOffset),y=hu(i,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Ee(ia(g,y),o)==0&&Ee(Pr(g,y),s)==0)){var C=i.display.view,w=o.line>=i.display.viewFrom&&Tp(i,o)||{node:C[0].measure.map[2],offset:0},E=s.line<i.display.viewTo&&Tp(i,s);if(!E){var O=C[C.length-1].measure,J=O.maps?O.maps[O.maps.length-1]:O.map;E={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!w||!E){t.removeAllRanges();return}var ie=t.rangeCount&&t.getRangeAt(0),re;try{re=ae(w.node,w.offset,E.offset,E.node)}catch{}re&&(!n&&i.state.focused?(t.collapse(w.node,w.offset),re.collapsed||(t.removeAllRanges(),t.addRange(re))):(t.removeAllRanges(),t.addRange(re)),ie&&t.anchorNode==null?t.addRange(ie):n&&this.startGracePeriod()),this.rememberSelection()}},Zt.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Zt.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},Zt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Zt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return Ie(this.div,i)},Zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe(Pe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zt.prototype.blur=function(){this.div.blur()},Zt.prototype.getField=function(){return this.div},Zt.prototype.supportsTouch=function(){return!0},Zt.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):An(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},Zt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Zt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(k&&I&&this.cm.display.gutterSpecs.length&&qx(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=hu(i,t.anchorNode,t.anchorOffset),o=hu(i,t.focusNode,t.focusOffset);l&&o&&An(i,function(){qr(i.doc,ha(l,o),pt),(l.bad||o.bad)&&(i.curOp.selectionChanged=!0)})}}},Zt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,l=t.doc.sel.primary(),o=l.from(),s=l.to();if(o.ch==0&&o.line>t.firstLine()&&(o=ue(o.line-1,De(t.doc,o.line-1).length)),s.ch==De(t.doc,s.line).text.length&&s.line<t.lastLine()&&(s=ue(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;var g,y,C;o.line==i.viewFrom||(g=Qa(t,o.line))==0?(y=N(i.view[0].line),C=i.view[0].node):(y=N(i.view[g].line),C=i.view[g-1].node.nextSibling);var w=Qa(t,s.line),E,O;if(w==i.view.length-1?(E=i.viewTo-1,O=i.lineDiv.lastChild):(E=N(i.view[w+1].line)-1,O=i.view[w+1].node.previousSibling),!C)return!1;for(var J=t.doc.splitLines(Kx(t,C,O,y,E)),ie=wr(t.doc,ue(y,0),ue(E,De(t.doc,E).text.length));J.length>1&&ie.length>1;)if(Ye(J)==Ye(ie))J.pop(),ie.pop(),E--;else if(J[0]==ie[0])J.shift(),ie.shift(),y++;else break;for(var re=0,de=0,ve=J[0],Re=ie[0],Ue=Math.min(ve.length,Re.length);re<Ue&&ve.charCodeAt(re)==Re.charCodeAt(re);)++re;for(var We=Ye(J),ke=Ye(ie),Ve=Math.min(We.length-(J.length==1?re:0),ke.length-(ie.length==1?re:0));de<Ve&&We.charCodeAt(We.length-de-1)==ke.charCodeAt(ke.length-de-1);)++de;if(J.length==1&&ie.length==1&&y==o.line)for(;re&&re>o.ch&&We.charCodeAt(We.length-de-1)==ke.charCodeAt(ke.length-de-1);)re--,de++;J[J.length-1]=We.slice(0,We.length-de).replace(/^\u200b+/,""),J[0]=J[0].slice(re).replace(/\u200b+$/,"");var et=ue(y,re),qe=ue(E,ie.length?Ye(ie).length-de:0);if(J.length>1||J[0]||Ee(et,qe))return Ao(t.doc,J,et,qe,"+input"),!0},Zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zt.prototype.reset=function(){this.forceCompositionEnd()},Zt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zt.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},Zt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&An(this.cm,function(){return fn(t.cm)})},Zt.prototype.setUneditable=function(t){t.contentEditable="false"},Zt.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Lr(this.cm,Cd)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Zt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Zt.prototype.onContextMenu=function(){},Zt.prototype.resetPosition=function(){},Zt.prototype.needsContentAttribute=!0;function Tp(t,i){var l=vo(t,i.line);if(!l||l.hidden)return null;var o=De(t.doc,i.line),s=Fi(l,o,i.line),g=at(o,t.doc.direction),y="left";if(g){var C=Tr(g,i.ch);y=C%2?"right":"left"}var w=yo(s.map,i.ch,y);return w.offset=w.collapse=="right"?w.end:w.start,w}function qx(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Bo(t,i){return i&&(t.bad=!0),t}function Kx(t,i,l,o,s){var g="",y=!1,C=t.doc.lineSeparator(),w=!1;function E(re){return function(de){return de.id==re}}function O(){y&&(g+=C,w&&(g+=C),y=w=!1)}function J(re){re&&(O(),g+=re)}function ie(re){if(re.nodeType==1){var de=re.getAttribute("cm-text");if(de){J(de);return}var ve=re.getAttribute("cm-marker"),Re;if(ve){var Ue=t.findMarks(ue(o,0),ue(s+1,0),E(+ve));Ue.length&&(Re=Ue[0].find(0))&&J(wr(t.doc,Re.from,Re.to).join(C));return}if(re.getAttribute("contenteditable")=="false")return;var We=/^(pre|div|p|li|table|br)$/i.test(re.nodeName);if(!/^br$/i.test(re.nodeName)&&re.textContent.length==0)return;We&&O();for(var ke=0;ke<re.childNodes.length;ke++)ie(re.childNodes[ke]);/^(pre|p)$/i.test(re.nodeName)&&(w=!0),We&&(y=!0)}else re.nodeType==3&&J(re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ie(i),i!=l;)i=i.nextSibling,w=!1;return g}function hu(t,i,l){var o;if(i==t.display.lineDiv){if(o=t.display.lineDiv.childNodes[l],!o)return Bo(t.clipPos(ue(t.display.viewTo-1)),!0);i=null,l=0}else for(o=i;;o=o.parentNode){if(!o||o==t.display.lineDiv)return null;if(o.parentNode&&o.parentNode==t.display.lineDiv)break}for(var s=0;s<t.display.view.length;s++){var g=t.display.view[s];if(g.node==o)return $x(g,i,l)}}function $x(t,i,l){var o=t.text.firstChild,s=!1;if(!i||!Ie(o,i))return Bo(ue(N(t.line),0),!0);if(i==o&&(s=!0,i=o.childNodes[l],l=0,!i)){var g=t.rest?Ye(t.rest):t.line;return Bo(ue(N(g),g.text.length),s)}var y=i.nodeType==3?i:null,C=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,l&&(l=y.nodeValue.length));C.parentNode!=o;)C=C.parentNode;var w=t.measure,E=w.maps;function O(Re,Ue,We){for(var ke=-1;ke<(E?E.length:0);ke++)for(var Ve=ke<0?w.map:E[ke],et=0;et<Ve.length;et+=3){var qe=Ve[et+2];if(qe==Re||qe==Ue){var yt=N(ke<0?t.line:t.rest[ke]),Xt=Ve[et]+We;return(We<0||qe!=Re)&&(Xt=Ve[et+(We?1:0)]),ue(yt,Xt)}}}var J=O(y,C,l);if(J)return Bo(J,s);for(var ie=C.nextSibling,re=y?y.nodeValue.length-l:0;ie;ie=ie.nextSibling){if(J=O(ie,ie.firstChild,0),J)return Bo(ue(J.line,J.ch-re),s);re+=ie.textContent.length}for(var de=C.previousSibling,ve=l;de;de=de.previousSibling){if(J=O(de,de.firstChild,-1),J)return Bo(ue(J.line,J.ch+ve),s);ve+=de.textContent.length}}var br=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new bt,this.hasSelection=!1,this.composing=null,this.resetting=!1};br.prototype.init=function(t){var i=this,l=this,o=this.cm;this.createField(t);var s=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),A&&(s.style.width="0px"),Je(s,"input",function(){h&&b>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),Je(s,"paste",function(y){Lt(o,y)||mp(y,o)||(o.state.pasteIncoming=+new Date,l.fastPoll())});function g(y){if(!Lt(o,y)){if(o.somethingSelected())cu({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){var C=vp(o);cu({lineWise:!0,text:C.text}),y.type=="cut"?o.setSelections(C.ranges,null,pt):(l.prevInput="",s.value=C.text.join(`
38
- `),lt(s))}else return;y.type=="cut"&&(o.state.cutIncoming=+new Date)}}Je(s,"cut",g),Je(s,"copy",g),Je(t.scroller,"paste",function(y){if(!(yi(t,y)||Lt(o,y))){if(!s.dispatchEvent){o.state.pasteIncoming=+new Date,l.focus();return}var C=new Event("paste");C.clipboardData=y.clipboardData,s.dispatchEvent(C)}}),Je(t.lineSpace,"selectstart",function(y){yi(t,y)||Bt(y)}),Je(s,"compositionstart",function(){var y=o.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:y,range:o.markText(y,o.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(s,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},br.prototype.createField=function(t){this.wrapper=yp(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Id(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},br.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},br.prototype.prepareSelection=function(){var t=this.cm,i=t.display,l=t.doc,o=fh(t);if(t.options.moveInputWithCursor){var s=Ae(t,l.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,s.top+y.top-g.top)),o.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,s.left+y.left-g.left))}return o},br.prototype.showSelection=function(t){var i=this.cm,l=i.display;he(l.cursorDiv,t.cursors),he(l.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},br.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&lt(this.textarea),h&&b>=9&&(this.hasSelection=l)}else t||(this.prevInput=this.textarea.value="",h&&b>=9&&(this.hasSelection=null));this.resetting=!1}},br.prototype.getField=function(){return this.textarea},br.prototype.supportsTouch=function(){return!1},br.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!K||Fe(Pe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},br.prototype.blur=function(){this.textarea.blur()},br.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},br.prototype.receivedFocus=function(){this.slowPoll()},br.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},br.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function l(){var o=i.poll();!o&&!t?(t=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},br.prototype.poll=function(){var t=this,i=this.cm,l=this.textarea,o=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Cn(l)&&!o&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var s=l.value;if(s==o&&!i.somethingSelected())return!1;if(h&&b>=9&&this.hasSelection===s||V&&/[\uf700-\uf7ff]/.test(s))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=s.charCodeAt(0);if(g==8203&&!o&&(o="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,C=Math.min(o.length,s.length);y<C&&o.charCodeAt(y)==s.charCodeAt(y);)++y;return An(i,function(){Cd(i,s.slice(y),o.length-y,null,t.composing?"*compose":null),s.length>1e3||s.indexOf(`
39
- `)>-1?l.value=t.prevInput="":t.prevInput=s,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},br.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},br.prototype.onKeyPress=function(){h&&b>=9&&(this.hasSelection=null),this.fastPoll()},br.prototype.onContextMenu=function(t){var i=this,l=i.cm,o=l.display,s=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=Va(l,t),y=o.scroller.scrollTop;if(!g||G)return;var C=l.options.resetSelectionOnContextMenu;C&&l.doc.sel.contains(g)==-1&&Lr(l,qr)(l.doc,ha(g),pt);var w=s.style.cssText,E=i.wrapper.style.cssText,O=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px;
40
- top: `+(t.clientY-O.top-5)+"px; left: "+(t.clientX-O.left-5)+`px;
41
- z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
42
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;x&&(J=s.ownerDocument.defaultView.scrollY),o.input.focus(),x&&s.ownerDocument.defaultView.scrollTo(null,J),o.input.reset(),l.somethingSelected()||(s.value=i.prevInput=" "),i.contextMenuPending=re,o.selForContextMenu=l.doc.sel,clearTimeout(o.detectingSelectAll);function ie(){if(s.selectionStart!=null){var ve=l.somethingSelected(),Re="\u200B"+(ve?s.value:"");s.value="\u21DA",s.value=Re,i.prevInput=ve?"":"\u200B",s.selectionStart=1,s.selectionEnd=Re.length,o.selForContextMenu=l.doc.sel}}function re(){if(i.contextMenuPending==re&&(i.contextMenuPending=!1,i.wrapper.style.cssText=E,s.style.cssText=w,h&&b<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=y),s.selectionStart!=null)){(!h||h&&b<9)&&ie();var ve=0,Re=function(){o.selForContextMenu==l.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&i.prevInput=="\u200B"?Lr(l,Zh)(l):ve++<10?o.detectingSelectAll=setTimeout(Re,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Re,200)}}if(h&&b>=9&&ie(),z){kn(t);var de=function(){Cr(window,"mouseup",de),setTimeout(re,20)};Je(window,"mouseup",de)}else setTimeout(re,50)},br.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},br.prototype.setUneditable=function(){},br.prototype.needsContentAttribute=!1;function e1(t,i){if(i=i?Ge(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var l=Fe(Pe(t));i.autofocus=l==t||t.getAttribute("autofocus")!=null&&l==document.body}function o(){t.value=C.getValue()}var s;if(t.form&&(Je(t.form,"submit",o),!i.leaveSubmitMethodAlone)){var g=t.form;s=g.submit;try{var y=g.submit=function(){o(),g.submit=s,g.submit(),g.submit=y}}catch{}}i.finishInit=function(w){w.save=o,w.getTextArea=function(){return t},w.toTextArea=function(){w.toTextArea=isNaN,o(),t.parentNode.removeChild(w.getWrapperElement()),t.style.display="",t.form&&(Cr(t.form,"submit",o),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=s))}},t.style.display="none";var C=$t(function(w){return t.parentNode.insertBefore(w,t.nextSibling)},i);return C}function t1(t){t.off=Cr,t.on=Je,t.wheelEventPixels=sx,t.Doc=dn,t.splitLines=jr,t.countColumn=He,t.findColumn=Ct,t.isWordChar=Be,t.Pass=Et,t.signal=Ft,t.Line=T,t.changeEnd=pa,t.scrollbarModel=mh,t.Pos=ue,t.cmpPos=Ee,t.modes=gi,t.mimeModes=Ir,t.resolveMode=Xn,t.getMode=Xe,t.modeExtensions=$,t.extendMode=we,t.copyState=Oe,t.startState=Pt,t.innerMode=kt,t.commands=zl,t.keyMap=Ji,t.keyName=rp,t.isModifierKey=ep,t.lookupKey=No,t.normalizeKeyMap=Nx,t.StringStream=ht,t.SharedTextMarker=jl,t.TextMarker=ma,t.LineWidget=Jl,t.e_preventDefault=Bt,t.e_stopPropagation=Vt,t.e_stop=kn,t.addClass=nt,t.contains=Ie,t.rmClass=Te,t.keyNames=ba}Jx($t),zx($t);var r1="iter insert remove copy getEditor constructor".split(" ");for(var pu in dn.prototype)dn.prototype.hasOwnProperty(pu)&&_e(r1,pu)<0&&($t.prototype[pu]=function(t){return function(){return t.apply(this.doc,arguments)}}(dn.prototype[pu]));return Yt(dn),$t.inputStyles={textarea:br,contenteditable:Zt},$t.defineMode=function(t){!$t.defaults.mode&&t!="null"&&($t.defaults.mode=t),Yr.apply(this,arguments)},$t.defineMIME=In,$t.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),$t.defineMIME("text/plain","null"),$t.defineExtension=function(t,i){$t.prototype[t]=i},$t.defineDocExtension=function(t,i){dn.prototype[t]=i},$t.fromTextArea=e1,t1($t),$t.version="5.65.20",$t})});var sh=Wt((hy,py)=>{(function(e){typeof hy=="object"&&typeof py=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function r(c,h,b,x){if(b&&b.call){var _=b;b=null}else var _=u(c,b,"rangeFinder");typeof h=="number"&&(h=e.Pos(h,0));var I=u(c,b,"minFoldSize");function F(X){var A=_(c,h);if(!A||A.to.line-A.from.line<I)return null;if(x==="fold")return A;for(var k=c.findMarksAt(A.from),K=0;K<k.length;++K)if(k[K].__isFold){if(!X)return null;A.cleared=!0,k[K].clear()}return A}var G=F(!0);if(u(c,b,"scanUp"))for(;!G&&h.line>c.firstLine();)h=e.Pos(h.line-1,0),G=F(!1);if(!(!G||G.cleared||x==="unfold")){var W=n(c,b,G);e.on(W,"mousedown",function(X){U.clear(),e.e_preventDefault(X)});var U=c.markText(G.from,G.to,{replacedWith:W,clearOnEnter:u(c,b,"clearOnEnter"),__isFold:!0});U.on("clear",function(X,A){e.signal(c,"unfold",c,X,A)}),e.signal(c,"fold",c,G.from,G.to)}}function n(c,h,b){var x=u(c,h,"widget");if(typeof x=="function"&&(x=x(b.from,b.to)),typeof x=="string"){var _=document.createTextNode(x);x=document.createElement("span"),x.appendChild(_),x.className="CodeMirror-foldmarker"}else x&&(x=x.cloneNode(!0));return x}e.newFoldFunction=function(c,h){return function(b,x){r(b,x,{rangeFinder:c,widget:h})}},e.defineExtension("foldCode",function(c,h,b){r(this,c,h,b)}),e.defineExtension("isFolded",function(c){for(var h=this.findMarksAt(c),b=0;b<h.length;++b)if(h[b].__isFold)return!0}),e.commands.toggleFold=function(c){c.foldCode(c.getCursor())},e.commands.fold=function(c){c.foldCode(c.getCursor(),null,"fold")},e.commands.unfold=function(c){c.foldCode(c.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(c){c.operation(function(){for(var h=c.firstLine(),b=c.lastLine();h<=b;h++)c.foldCode(e.Pos(h,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(c){c.operation(function(){for(var h=c.firstLine(),b=c.lastLine();h<=b;h++)c.foldCode(e.Pos(h,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var c=Array.prototype.slice.call(arguments,0);return function(h,b){for(var x=0;x<c.length;++x){var _=c[x](h,b);if(_)return _}}}),e.registerHelper("fold","auto",function(c,h){for(var b=c.getHelpers(h,"fold"),x=0;x<b.length;x++){var _=b[x](c,h);if(_)return _}});var a={rangeFinder:e.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null);function u(c,h,b){if(h&&h[b]!==void 0)return h[b];var x=c.options.foldOptions;return x&&x[b]!==void 0?x[b]:a[b]}e.defineExtension("foldOption",function(c,h){return u(this,c,h)})})});var by=Wt((gy,my)=>{(function(e){typeof gy=="object"&&typeof my=="object"?e(na(),sh()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("foldGutter",!1,function(U,X,A){A&&A!=e.Init&&(U.clearGutter(U.state.foldGutter.options.gutter),U.state.foldGutter=null,U.off("gutterClick",_),U.off("changes",F),U.off("viewportChange",G),U.off("fold",W),U.off("unfold",W),U.off("swapDoc",F),U.off("optionChange",I)),X&&(U.state.foldGutter=new n(a(X)),x(U),U.on("gutterClick",_),U.on("changes",F),U.on("viewportChange",G),U.on("fold",W),U.on("unfold",W),U.on("swapDoc",F),U.on("optionChange",I))});var r=e.Pos;function n(U){this.options=U,this.from=this.to=0}function a(U){return U===!0&&(U={}),U.gutter==null&&(U.gutter="CodeMirror-foldgutter"),U.indicatorOpen==null&&(U.indicatorOpen="CodeMirror-foldgutter-open"),U.indicatorFolded==null&&(U.indicatorFolded="CodeMirror-foldgutter-folded"),U}function u(U,X){for(var A=U.findMarks(r(X,0),r(X+1,0)),k=0;k<A.length;++k)if(A[k].__isFold){var K=A[k].find(-1);if(K&&K.line===X)return A[k]}}function c(U){if(typeof U=="string"){var X=document.createElement("div");return X.className=U+" CodeMirror-guttermarker-subtle",X}else return U.cloneNode(!0)}function h(U,X,A){var k=U.state.foldGutter.options,K=X-1,V=U.foldOption(k,"minFoldSize"),D=U.foldOption(k,"rangeFinder"),ee=typeof k.indicatorFolded=="string"&&b(k.indicatorFolded),m=typeof k.indicatorOpen=="string"&&b(k.indicatorOpen);U.eachLine(X,A,function(Z){++K;var z=null,se=Z.gutterMarkers;if(se&&(se=se[k.gutter]),u(U,K)){if(ee&&se&&ee.test(se.className))return;z=c(k.indicatorFolded)}else{var Te=r(K,0),q=D&&D(U,Te);if(q&&q.to.line-q.from.line>=V){if(m&&se&&m.test(se.className))return;z=c(k.indicatorOpen)}}!z&&!se||U.setGutterMarker(Z,k.gutter,z)})}function b(U){return new RegExp("(^|\\s)"+U+"(?:$|\\s)\\s*")}function x(U){var X=U.getViewport(),A=U.state.foldGutter;A&&(U.operation(function(){h(U,X.from,X.to)}),A.from=X.from,A.to=X.to)}function _(U,X,A){var k=U.state.foldGutter;if(k){var K=k.options;if(A==K.gutter){var V=u(U,X);V?V.clear():U.foldCode(r(X,0),K)}}}function I(U,X){X=="mode"&&F(U)}function F(U){var X=U.state.foldGutter;if(X){var A=X.options;X.from=X.to=0,clearTimeout(X.changeUpdate),X.changeUpdate=setTimeout(function(){x(U)},A.foldOnChangeTimeSpan||600)}}function G(U){var X=U.state.foldGutter;if(X){var A=X.options;clearTimeout(X.changeUpdate),X.changeUpdate=setTimeout(function(){var k=U.getViewport();X.from==X.to||k.from-X.to>20||X.from-k.to>20?x(U):U.operation(function(){k.from<X.from&&(h(U,k.from,X.from),X.from=k.from),k.to>X.to&&(h(U,X.to,k.to),X.to=k.to)})},A.updateViewportTimeSpan||400)}}function W(U,X){var A=U.state.foldGutter;if(A){var k=X.line;k>=A.from&&k<A.to&&h(U,k,k+1)}}})});var xy=Wt((vy,yy)=>{(function(e){typeof vy=="object"&&typeof yy=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r=e.Pos;function n(A,k){return A.line-k.line||A.ch-k.ch}var a="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",u=a+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",c=new RegExp("<(/?)(["+a+"]["+u+"]*)","g");function h(A,k,K,V){this.line=k,this.ch=K,this.cm=A,this.text=A.getLine(k),this.min=V?Math.max(V.from,A.firstLine()):A.firstLine(),this.max=V?Math.min(V.to-1,A.lastLine()):A.lastLine()}function b(A,k){var K=A.cm.getTokenTypeAt(r(A.line,k));return K&&/\btag\b/.test(K)}function x(A){if(!(A.line>=A.max))return A.ch=0,A.text=A.cm.getLine(++A.line),!0}function _(A){if(!(A.line<=A.min))return A.text=A.cm.getLine(--A.line),A.ch=A.text.length,!0}function I(A){for(;;){var k=A.text.indexOf(">",A.ch);if(k==-1){if(x(A))continue;return}if(!b(A,k+1)){A.ch=k+1;continue}var K=A.text.lastIndexOf("/",k),V=K>-1&&!/\S/.test(A.text.slice(K+1,k));return A.ch=k+1,V?"selfClose":"regular"}}function F(A){for(;;){var k=A.ch?A.text.lastIndexOf("<",A.ch-1):-1;if(k==-1){if(_(A))continue;return}if(!b(A,k+1)){A.ch=k;continue}c.lastIndex=k,A.ch=k;var K=c.exec(A.text);if(K&&K.index==k)return K}}function G(A){for(;;){c.lastIndex=A.ch;var k=c.exec(A.text);if(!k){if(x(A))continue;return}if(!b(A,k.index+1)){A.ch=k.index+1;continue}return A.ch=k.index+k[0].length,k}}function W(A){for(;;){var k=A.ch?A.text.lastIndexOf(">",A.ch-1):-1;if(k==-1){if(_(A))continue;return}if(!b(A,k+1)){A.ch=k;continue}var K=A.text.lastIndexOf("/",k),V=K>-1&&!/\S/.test(A.text.slice(K+1,k));return A.ch=k+1,V?"selfClose":"regular"}}function U(A,k){for(var K=[];;){var V=G(A),D,ee=A.line,m=A.ch-(V?V[0].length:0);if(!V||!(D=I(A)))return;if(D!="selfClose")if(V[1]){for(var Z=K.length-1;Z>=0;--Z)if(K[Z]==V[2]){K.length=Z;break}if(Z<0&&(!k||k==V[2]))return{tag:V[2],from:r(ee,m),to:r(A.line,A.ch)}}else K.push(V[2])}}function X(A,k){for(var K=[];;){var V=W(A);if(!V)return;if(V=="selfClose"){F(A);continue}var D=A.line,ee=A.ch,m=F(A);if(!m)return;if(m[1])K.push(m[2]);else{for(var Z=K.length-1;Z>=0;--Z)if(K[Z]==m[2]){K.length=Z;break}if(Z<0&&(!k||k==m[2]))return{tag:m[2],from:r(A.line,A.ch),to:r(D,ee)}}}}e.registerHelper("fold","xml",function(A,k){for(var K=new h(A,k.line,0);;){var V=G(K);if(!V||K.line!=k.line)return;var D=I(K);if(!D)return;if(!V[1]&&D!="selfClose"){var ee=r(K.line,K.ch),m=U(K,V[2]);return m&&n(m.from,ee)>0?{from:ee,to:m.from}:null}}}),e.findMatchingTag=function(A,k,K){var V=new h(A,k.line,k.ch,K);if(!(V.text.indexOf(">")==-1&&V.text.indexOf("<")==-1)){var D=I(V),ee=D&&r(V.line,V.ch),m=D&&F(V);if(!(!D||!m||n(V,k)>0)){var Z={from:r(V.line,V.ch),to:ee,tag:m[2]};return D=="selfClose"?{open:Z,close:null,at:"open"}:m[1]?{open:X(V,m[2]),close:Z,at:"close"}:(V=new h(A,ee.line,ee.ch,K),{open:Z,close:U(V,m[2]),at:"open"})}}},e.findEnclosingTag=function(A,k,K,V){for(var D=new h(A,k.line,k.ch,K);;){var ee=X(D,V);if(!ee)break;var m=new h(A,k.line,k.ch,K),Z=U(m,ee.tag);if(Z)return{open:ee,close:Z}}},e.scanForClosingTag=function(A,k,K,V){var D=new h(A,k.line,k.ch,V?{from:0,to:V}:null);return U(D,K)}})});var Iy=Wt((Ty,Cy)=>{(function(e){typeof Ty=="object"&&typeof Cy=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function r(n){return function(a,u){var c=u.line,h=a.getLine(c);function b(W){for(var U,X=u.ch,A=0;;){var k=X<=0?-1:h.lastIndexOf(W[0],X-1);if(k==-1){if(A==1)break;A=1,X=h.length;continue}if(A==1&&k<u.ch)break;if(U=a.getTokenTypeAt(e.Pos(c,k+1)),!/^(comment|string)/.test(U))return{ch:k+1,tokenType:U,pair:W};X=k-1}}function x(W){var U=1,X=a.lastLine(),A,k=W.ch,K;e:for(var V=c;V<=X;++V)for(var D=a.getLine(V),ee=V==c?k:0;;){var m=D.indexOf(W.pair[0],ee),Z=D.indexOf(W.pair[1],ee);if(m<0&&(m=D.length),Z<0&&(Z=D.length),ee=Math.min(m,Z),ee==D.length)break;if(a.getTokenTypeAt(e.Pos(V,ee+1))==W.tokenType){if(ee==m)++U;else if(!--U){A=V,K=ee;break e}}++ee}return A==null||c==A?null:{from:e.Pos(c,k),to:e.Pos(A,K)}}for(var _=[],I=0;I<n.length;I++){var F=b(n[I]);F&&_.push(F)}_.sort(function(W,U){return W.ch-U.ch});for(var I=0;I<_.length;I++){var G=x(_[I]);if(G)return G}return null}}e.registerHelper("fold","brace",r([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(n,a){function u(I){if(I<n.firstLine()||I>n.lastLine())return null;var F=n.getTokenAt(e.Pos(I,1));if(/\S/.test(F.string)||(F=n.getTokenAt(e.Pos(I,F.end+1))),F.type!="keyword"||F.string!="import")return null;for(var G=I,W=Math.min(n.lastLine(),I+10);G<=W;++G){var U=n.getLine(G),X=U.indexOf(";");if(X!=-1)return{startCh:F.end,end:e.Pos(G,X)}}}var c=a.line,h=u(c),b;if(!h||u(c-1)||(b=u(c-2))&&b.end.line==c-1)return null;for(var x=h.end;;){var _=u(x.line+1);if(_==null)break;x=_.end}return{from:n.clipPos(e.Pos(c,h.startCh+1)),to:x}}),e.registerHelper("fold","include",function(n,a){function u(_){if(_<n.firstLine()||_>n.lastLine())return null;var I=n.getTokenAt(e.Pos(_,1));if(/\S/.test(I.string)||(I=n.getTokenAt(e.Pos(_,I.end+1))),I.type=="meta"&&I.string.slice(0,8)=="#include")return I.start+8}var c=a.line,h=u(c);if(h==null||u(c-1)!=null)return null;for(var b=c;;){var x=u(b+1);if(x==null)break;++b}return{from:e.Pos(c,h+1),to:n.clipPos(e.Pos(b))}})})});var Sy=Wt((wy,Ry)=>{(function(e){typeof wy=="object"&&typeof Ry=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),n=e.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function u(I){return I&&I.bracketRegex||/[(){}[\]]/}function c(I,F,G){var W=I.getLineHandle(F.line),U=F.ch-1,X=G&&G.afterCursor;X==null&&(X=/(^| )cm-fat-cursor($| )/.test(I.getWrapperElement().className));var A=u(G),k=!X&&U>=0&&A.test(W.text.charAt(U))&&a[W.text.charAt(U)]||A.test(W.text.charAt(U+1))&&a[W.text.charAt(++U)];if(!k)return null;var K=k.charAt(1)==">"?1:-1;if(G&&G.strict&&K>0!=(U==F.ch))return null;var V=I.getTokenTypeAt(n(F.line,U+1)),D=h(I,n(F.line,U+(K>0?1:0)),K,V,G);return D==null?null:{from:n(F.line,U),to:D&&D.pos,match:D&&D.ch==k.charAt(0),forward:K>0}}function h(I,F,G,W,U){for(var X=U&&U.maxScanLineLength||1e4,A=U&&U.maxScanLines||1e3,k=[],K=u(U),V=G>0?Math.min(F.line+A,I.lastLine()+1):Math.max(I.firstLine()-1,F.line-A),D=F.line;D!=V;D+=G){var ee=I.getLine(D);if(ee){var m=G>0?0:ee.length-1,Z=G>0?ee.length:-1;if(!(ee.length>X))for(D==F.line&&(m=F.ch-(G<0?1:0));m!=Z;m+=G){var z=ee.charAt(m);if(K.test(z)&&(W===void 0||(I.getTokenTypeAt(n(D,m+1))||"")==(W||""))){var se=a[z];if(se&&se.charAt(1)==">"==G>0)k.push(z);else if(k.length)k.pop();else return{pos:n(D,m),ch:z}}}}}return D-G==(G>0?I.lastLine():I.firstLine())?!1:null}function b(I,F,G){for(var W=I.state.matchBrackets.maxHighlightLineLength||1e3,U=G&&G.highlightNonMatching,X=[],A=I.listSelections(),k=0;k<A.length;k++){var K=A[k].empty()&&c(I,A[k].head,G);if(K&&(K.match||U!==!1)&&I.getLine(K.from.line).length<=W){var V=K.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";X.push(I.markText(K.from,n(K.from.line,K.from.ch+1),{className:V})),K.to&&I.getLine(K.to.line).length<=W&&X.push(I.markText(K.to,n(K.to.line,K.to.ch+1),{className:V}))}}if(X.length){r&&I.state.focused&&I.focus();var D=function(){I.operation(function(){for(var ee=0;ee<X.length;ee++)X[ee].clear()})};if(F)setTimeout(D,800);else return D}}function x(I){I.operation(function(){I.state.matchBrackets.currentlyHighlighted&&(I.state.matchBrackets.currentlyHighlighted(),I.state.matchBrackets.currentlyHighlighted=null),I.state.matchBrackets.currentlyHighlighted=b(I,!1,I.state.matchBrackets)})}function _(I){I.state.matchBrackets&&I.state.matchBrackets.currentlyHighlighted&&(I.state.matchBrackets.currentlyHighlighted(),I.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(I,F,G){G&&G!=e.Init&&(I.off("cursorActivity",x),I.off("focus",x),I.off("blur",_),_(I)),F&&(I.state.matchBrackets=typeof F=="object"?F:{},I.on("cursorActivity",x),I.on("focus",x),I.on("blur",_))}),e.defineExtension("matchBrackets",function(){b(this,!0)}),e.defineExtension("findMatchingBracket",function(I,F,G){return(G||typeof F=="boolean")&&(G?(G.strict=F,F=G):F=F?{strict:!0}:null),c(this,I,F)}),e.defineExtension("scanForBracket",function(I,F,G,W){return h(this,I,F,G,W)})})});var _y=Wt((Ey,Ay)=>{(function(e){typeof Ey=="object"&&typeof Ay=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(a,u){var c=a.indentUnit,h={},b=u.htmlMode?r:n;for(var x in b)h[x]=b[x];for(var x in u)h[x]=u[x];var _,I;function F(L,xe){function ae(nt){return xe.tokenize=nt,nt(L,xe)}var Ie=L.next();if(Ie=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?ae(U("atom","]]>")):null:L.match("--")?ae(U("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),ae(X(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),xe.tokenize=U("meta","?>"),"meta"):(_=L.eat("/")?"closeTag":"openTag",xe.tokenize=G,"tag bracket");if(Ie=="&"){var Fe;return L.eat("#")?L.eat("x")?Fe=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):Fe=L.eatWhile(/[\d]/)&&L.eat(";"):Fe=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),Fe?"atom":"error"}else return L.eatWhile(/[^&<]/),null}F.isInText=!0;function G(L,xe){var ae=L.next();if(ae==">"||ae=="/"&&L.eat(">"))return xe.tokenize=F,_=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return _="equals",null;if(ae=="<"){xe.tokenize=F,xe.state=D,xe.tagName=xe.tagStart=null;var Ie=xe.tokenize(L,xe);return Ie?Ie+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(xe.tokenize=W(ae),xe.stringStartCol=L.column(),xe.tokenize(L,xe)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function W(L){var xe=function(ae,Ie){for(;!ae.eol();)if(ae.next()==L){Ie.tokenize=G;break}return"string"};return xe.isInAttribute=!0,xe}function U(L,xe){return function(ae,Ie){for(;!ae.eol();){if(ae.match(xe)){Ie.tokenize=F;break}ae.next()}return L}}function X(L){return function(xe,ae){for(var Ie;(Ie=xe.next())!=null;){if(Ie=="<")return ae.tokenize=X(L+1),ae.tokenize(xe,ae);if(Ie==">")if(L==1){ae.tokenize=F;break}else return ae.tokenize=X(L-1),ae.tokenize(xe,ae)}return"meta"}}function A(L){return L&&L.toLowerCase()}function k(L,xe,ae){this.prev=L.context,this.tagName=xe||"",this.indent=L.indented,this.startOfLine=ae,(h.doNotIndent.hasOwnProperty(xe)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function K(L){L.context&&(L.context=L.context.prev)}function V(L,xe){for(var ae;;){if(!L.context||(ae=L.context.tagName,!h.contextGrabbers.hasOwnProperty(A(ae))||!h.contextGrabbers[A(ae)].hasOwnProperty(A(xe))))return;K(L)}}function D(L,xe,ae){return L=="openTag"?(ae.tagStart=xe.column(),ee):L=="closeTag"?m:D}function ee(L,xe,ae){return L=="word"?(ae.tagName=xe.current(),I="tag",se):h.allowMissingTagName&&L=="endTag"?(I="tag bracket",se(L,xe,ae)):(I="error",ee)}function m(L,xe,ae){if(L=="word"){var Ie=xe.current();return ae.context&&ae.context.tagName!=Ie&&h.implicitlyClosed.hasOwnProperty(A(ae.context.tagName))&&K(ae),ae.context&&ae.context.tagName==Ie||h.matchClosing===!1?(I="tag",Z):(I="tag error",z)}else return h.allowMissingTagName&&L=="endTag"?(I="tag bracket",Z(L,xe,ae)):(I="error",z)}function Z(L,xe,ae){return L!="endTag"?(I="error",Z):(K(ae),D)}function z(L,xe,ae){return I="error",Z(L,xe,ae)}function se(L,xe,ae){if(L=="word")return I="attribute",Te;if(L=="endTag"||L=="selfcloseTag"){var Ie=ae.tagName,Fe=ae.tagStart;return ae.tagName=ae.tagStart=null,L=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(Ie))?V(ae,Ie):(V(ae,Ie),ae.context=new k(ae,Ie,Fe==ae.indented)),D}return I="error",se}function Te(L,xe,ae){return L=="equals"?q:(h.allowMissing||(I="error"),se(L,xe,ae))}function q(L,xe,ae){return L=="string"?he:L=="word"&&h.allowUnquoted?(I="string",se):(I="error",se(L,xe,ae))}function he(L,xe,ae){return L=="string"?he:se(L,xe,ae)}return{startState:function(L){var xe={tokenize:F,state:D,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(xe.baseIndent=L),xe},token:function(L,xe){if(!xe.tagName&&L.sol()&&(xe.indented=L.indentation()),L.eatSpace())return null;_=null;var ae=xe.tokenize(L,xe);return(ae||_)&&ae!="comment"&&(I=null,xe.state=xe.state(_||ae,L,xe),I&&(ae=I=="error"?ae+" error":I)),ae},indent:function(L,xe,ae){var Ie=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+c;if(Ie&&Ie.noIndent)return e.Pass;if(L.tokenize!=G&&L.tokenize!=F)return ae?ae.match(/^(\s*)/)[0].length:0;if(L.tagName)return h.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+c*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(xe))return 0;var Fe=xe&&/^<(\/)?([\w_:\.-]*)/.exec(xe);if(Fe&&Fe[1])for(;Ie;)if(Ie.tagName==Fe[2]){Ie=Ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(Ie.tagName)))Ie=Ie.prev;else break;else if(Fe)for(;Ie;){var nt=h.contextGrabbers[A(Ie.tagName)];if(nt&&nt.hasOwnProperty(A(Fe[2])))Ie=Ie.prev;else break}for(;Ie&&Ie.prev&&!Ie.startOfLine;)Ie=Ie.prev;return Ie?Ie.indent+c:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(L){L.state==q&&(L.state=se)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var xe=[],ae=L.context;ae;ae=ae.prev)xe.push(ae.tagName);return xe.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var Ly=Wt((Ny,Fy)=>{(function(e){typeof Ny=="object"&&typeof Fy=="object"?e(na()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(r,n){var a=r.indentUnit,u=n.statementIndent,c=n.jsonld,h=n.json||c,b=n.trackScope!==!1,x=n.typescript,_=n.wordCharacters||/[\w$\xa1-\uffff]/,I=function(){function N(ir){return{type:ir,style:"keyword"}}var H=N("keyword a"),pe=N("keyword b"),Ce=N("keyword c"),ue=N("keyword d"),Ee=N("operator"),It={type:"atom",style:"atom"};return{if:N("if"),while:H,with:H,else:pe,do:pe,try:pe,finally:pe,return:ue,break:ue,continue:ue,new:N("new"),delete:Ce,void:Ce,throw:Ce,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:Ee,typeof:Ee,instanceof:Ee,true:It,false:It,null:It,undefined:It,NaN:It,Infinity:It,this:N("this"),class:N("class"),super:N("atom"),yield:Ce,export:N("export"),import:N("import"),extends:Ce,await:Ce}}(),F=/[+\-*&%=<>!?|~^@]/,G=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function W(N){for(var H=!1,pe,Ce=!1;(pe=N.next())!=null;){if(!H){if(pe=="/"&&!Ce)return;pe=="["?Ce=!0:Ce&&pe=="]"&&(Ce=!1)}H=!H&&pe=="\\"}}var U,X;function A(N,H,pe){return U=N,X=pe,H}function k(N,H){var pe=N.next();if(pe=='"'||pe=="'")return H.tokenize=K(pe),H.tokenize(N,H);if(pe=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(pe=="."&&N.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(pe))return A(pe);if(pe=="="&&N.eat(">"))return A("=>","operator");if(pe=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(pe))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(pe=="/")return N.eat("*")?(H.tokenize=V,V(N,H)):N.eat("/")?(N.skipToEnd(),A("comment","comment")):Nr(N,H,1)?(W(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(N.eat("="),A("operator","operator",N.current()));if(pe=="`")return H.tokenize=D,D(N,H);if(pe=="#"&&N.peek()=="!")return N.skipToEnd(),A("meta","meta");if(pe=="#"&&N.eatWhile(_))return A("variable","property");if(pe=="<"&&N.match("!--")||pe=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),A("comment","comment");if(F.test(pe))return(pe!=">"||!H.lexical||H.lexical.type!=">")&&(N.eat("=")?(pe=="!"||pe=="=")&&N.eat("="):/[<>*+\-|&?]/.test(pe)&&(N.eat(pe),pe==">"&&N.eat(pe))),pe=="?"&&N.eat(".")?A("."):A("operator","operator",N.current());if(_.test(pe)){N.eatWhile(_);var Ce=N.current();if(H.lastType!="."){if(I.propertyIsEnumerable(Ce)){var ue=I[Ce];return A(ue.type,ue.style,Ce)}if(Ce=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",Ce)}return A("variable","variable",Ce)}}function K(N){return function(H,pe){var Ce=!1,ue;if(c&&H.peek()=="@"&&H.match(G))return pe.tokenize=k,A("jsonld-keyword","meta");for(;(ue=H.next())!=null&&!(ue==N&&!Ce);)Ce=!Ce&&ue=="\\";return Ce||(pe.tokenize=k),A("string","string")}}function V(N,H){for(var pe=!1,Ce;Ce=N.next();){if(Ce=="/"&&pe){H.tokenize=k;break}pe=Ce=="*"}return A("comment","comment")}function D(N,H){for(var pe=!1,Ce;(Ce=N.next())!=null;){if(!pe&&(Ce=="`"||Ce=="$"&&N.eat("{"))){H.tokenize=k;break}pe=!pe&&Ce=="\\"}return A("quasi","string-2",N.current())}var ee="([{}])";function m(N,H){H.fatArrowAt&&(H.fatArrowAt=null);var pe=N.string.indexOf("=>",N.start);if(!(pe<0)){if(x){var Ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,pe));Ce&&(pe=Ce.index)}for(var ue=0,Ee=!1,It=pe-1;It>=0;--It){var ir=N.string.charAt(It),Pr=ee.indexOf(ir);if(Pr>=0&&Pr<3){if(!ue){++It;break}if(--ue==0){ir=="("&&(Ee=!0);break}}else if(Pr>=3&&Pr<6)++ue;else if(_.test(ir))Ee=!0;else if(/["'\/`]/.test(ir))for(;;--It){if(It==0)return;var ia=N.string.charAt(It-1);if(ia==ir&&N.string.charAt(It-2)!="\\"){It--;break}}else if(Ee&&!ue){++It;break}}Ee&&!ue&&(H.fatArrowAt=It)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(N,H,pe,Ce,ue,Ee){this.indented=N,this.column=H,this.type=pe,this.prev=ue,this.info=Ee,Ce!=null&&(this.align=Ce)}function se(N,H){if(!b)return!1;for(var pe=N.localVars;pe;pe=pe.next)if(pe.name==H)return!0;for(var Ce=N.context;Ce;Ce=Ce.prev)for(var pe=Ce.vars;pe;pe=pe.next)if(pe.name==H)return!0}function Te(N,H,pe,Ce,ue){var Ee=N.cc;for(q.state=N,q.stream=ue,q.marked=null,q.cc=Ee,q.style=H,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var It=Ee.length?Ee.pop():h?_e:He;if(It(pe,Ce)){for(;Ee.length&&Ee[Ee.length-1].lex;)Ee.pop()();return q.marked?q.marked:pe=="variable"&&se(N,Ce)?"variable-2":H}}}var q={state:null,column:null,marked:null,cc:null};function he(){for(var N=arguments.length-1;N>=0;N--)q.cc.push(arguments[N])}function L(){return he.apply(null,arguments),!0}function xe(N,H){for(var pe=H;pe;pe=pe.next)if(pe.name==N)return!0;return!1}function ae(N){var H=q.state;if(q.marked="def",!!b){if(H.context){if(H.lexical.info=="var"&&H.context&&H.context.block){var pe=Ie(N,H.context);if(pe!=null){H.context=pe;return}}else if(!xe(N,H.localVars)){H.localVars=new Ke(N,H.localVars);return}}n.globalVars&&!xe(N,H.globalVars)&&(H.globalVars=new Ke(N,H.globalVars))}}function Ie(N,H){if(H)if(H.block){var pe=Ie(N,H.prev);return pe?pe==H.prev?H:new nt(pe,H.vars,!0):null}else return xe(N,H.vars)?H:new nt(H.prev,new Ke(N,H.vars),!1);else return null}function Fe(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function nt(N,H,pe){this.prev=N,this.vars=H,this.block=pe}function Ke(N,H){this.name=N,this.next=H}var lt=new Ke("this",new Ke("arguments",null));function Ne(){q.state.context=new nt(q.state.context,q.state.localVars,!1),q.state.localVars=lt}function Rt(){q.state.context=new nt(q.state.context,q.state.localVars,!0),q.state.localVars=null}Ne.lex=Rt.lex=!0;function Pe(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Pe.lex=!0;function Qe(N,H){var pe=function(){var Ce=q.state,ue=Ce.indented;if(Ce.lexical.type=="stat")ue=Ce.lexical.indented;else for(var Ee=Ce.lexical;Ee&&Ee.type==")"&&Ee.align;Ee=Ee.prev)ue=Ee.indented;Ce.lexical=new z(ue,q.stream.column(),N,null,Ce.lexical,H)};return pe.lex=!0,pe}function Le(){var N=q.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}Le.lex=!0;function Ge(N){function H(pe){return pe==N?L():N==";"||pe=="}"||pe==")"||pe=="]"?he():L(H)}return H}function He(N,H){return N=="var"?L(Qe("vardef",H),Vt,Ge(";"),Le):N=="keyword a"?L(Qe("form"),Et,He,Le):N=="keyword b"?L(Qe("form"),He,Le):N=="keyword d"?q.stream.match(/^\s*$/,!1)?L():L(Qe("stat"),st,Ge(";"),Le):N=="debugger"?L(Ge(";")):N=="{"?L(Qe("}"),Rt,jt,Le,Pe):N==";"?L():N=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Le&&q.state.cc.pop()(),L(Qe("form"),Et,He,Le,Dn)):N=="function"?L(jr):N=="for"?L(Qe("form"),Rt,pi,He,Pe,Le):N=="class"||x&&H=="interface"?(q.marked="keyword",L(Qe("form",N=="class"?N:H),gi,Le)):N=="variable"?x&&H=="declare"?(q.marked="keyword",L(He)):x&&(H=="module"||H=="enum"||H=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",H=="enum"?L(De):H=="type"?L(Ai,Ge("operator"),at,Ge(";")):L(Qe("form"),nr,Ge("{"),Qe("}"),jt,Le,Le)):x&&H=="namespace"?(q.marked="keyword",L(Qe("form"),_e,He,Le)):x&&H=="abstract"?(q.marked="keyword",L(He)):L(Qe("stat"),cr):N=="switch"?L(Qe("form"),Et,Ge("{"),Qe("}","switch"),Rt,jt,Le,Le,Pe):N=="case"?L(_e,Ge(":")):N=="default"?L(Ge(":")):N=="catch"?L(Qe("form"),Ne,bt,He,Le,Pe):N=="export"?L(Qe("stat"),Xn,Le):N=="import"?L(Qe("stat"),$,Le):N=="async"?L(He):H=="@"?L(_e,He):he(Qe("stat"),_e,Ge(";"),Le)}function bt(N){if(N=="(")return L(tn,Ge(")"))}function _e(N,H){return pt(N,H,!1)}function ct(N,H){return pt(N,H,!0)}function Et(N){return N!="("?he():L(Qe(")"),st,Ge(")"),Le)}function pt(N,H,pe){if(q.state.fatArrowAt==q.stream.start){var Ce=pe?vr:Ye;if(N=="(")return L(Ne,Qe(")"),Mt(tn,")"),Le,Ge("=>"),Ce,Pe);if(N=="variable")return he(Ne,nr,Ge("=>"),Ce,Pe)}var ue=pe?Ct:$e;return Z.hasOwnProperty(N)?L(ue):N=="function"?L(jr,ue):N=="class"||x&&H=="interface"?(q.marked="keyword",L(Qe("form"),rn,Le)):N=="keyword c"||N=="async"?L(pe?ct:_e):N=="("?L(Qe(")"),st,Ge(")"),Le,ue):N=="operator"||N=="spread"?L(pe?ct:_e):N=="["?L(Qe("]"),ht,Le,ue):N=="{"?xr(gt,"}",null,ue):N=="quasi"?he(ut,ue):N=="new"?L(yr(pe)):L()}function st(N){return N.match(/[;\}\)\],]/)?he():he(_e)}function $e(N,H){return N==","?L(st):Ct(N,H,!1)}function Ct(N,H,pe){var Ce=pe==!1?$e:Ct,ue=pe==!1?_e:ct;if(N=="=>")return L(Ne,pe?vr:Ye,Pe);if(N=="operator")return/\+\+|--/.test(H)||x&&H=="!"?L(Ce):x&&H=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(Qe(">"),Mt(at,">"),Le,Ce):H=="?"?L(_e,Ge(":"),ue):L(ue);if(N=="quasi")return he(ut,Ce);if(N!=";"){if(N=="(")return xr(ct,")","call",Ce);if(N==".")return L(Be,Ce);if(N=="[")return L(Qe("]"),st,Ge("]"),Le,Ce);if(x&&H=="as")return q.marked="keyword",L(at,Ce);if(N=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),L(ue)}}function ut(N,H){return N!="quasi"?he():H.slice(H.length-2)!="${"?L(ut):L(st,mt)}function mt(N){if(N=="}")return q.marked="string-2",q.state.tokenize=D,L(ut)}function Ye(N){return m(q.stream,q.state),he(N=="{"?He:_e)}function vr(N){return m(q.stream,q.state),he(N=="{"?He:ct)}function yr(N){return function(H){return H=="."?L(N?Ot:tr):H=="variable"&&x?L(ur,N?Ct:$e):he(N?ct:_e)}}function tr(N,H){if(H=="target")return q.marked="keyword",L($e)}function Ot(N,H){if(H=="target")return q.marked="keyword",L(Ct)}function cr(N){return N==":"?L(Le,He):he($e,Ge(";"),Le)}function Be(N){if(N=="variable")return q.marked="property",L()}function gt(N,H){if(N=="async")return q.marked="property",L(gt);if(N=="variable"||q.style=="keyword"){if(q.marked="property",H=="get"||H=="set")return L(lr);var pe;return x&&q.state.fatArrowAt==q.stream.start&&(pe=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+pe[0].length),L(hr)}else{if(N=="number"||N=="string")return q.marked=c?"property":q.style+" property",L(hr);if(N=="jsonld-keyword")return L(hr);if(x&&Fe(H))return q.marked="keyword",L(gt);if(N=="[")return L(_e,rr,Ge("]"),hr);if(N=="spread")return L(ct,hr);if(H=="*")return q.marked="keyword",L(gt);if(N==":")return he(hr)}}function lr(N){return N!="variable"?he(hr):(q.marked="property",L(jr))}function hr(N){if(N==":")return L(ct);if(N=="(")return he(jr)}function Mt(N,H,pe){function Ce(ue,Ee){if(pe?pe.indexOf(ue)>-1:ue==","){var It=q.state.lexical;return It.info=="call"&&(It.pos=(It.pos||0)+1),L(function(ir,Pr){return ir==H||Pr==H?he():he(N)},Ce)}return ue==H||Ee==H?L():pe&&pe.indexOf(";")>-1?he(N):L(Ge(H))}return function(ue,Ee){return ue==H||Ee==H?L():he(N,Ce)}}function xr(N,H,pe){for(var Ce=3;Ce<arguments.length;Ce++)q.cc.push(arguments[Ce]);return L(Qe(H,pe),Mt(N,H),Le)}function jt(N){return N=="}"?L():he(He,jt)}function rr(N,H){if(x){if(N==":")return L(at);if(H=="?")return L(rr)}}function sr(N,H){if(x&&(N==":"||H=="in"))return L(at)}function Tr(N){if(x&&N==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?L(_e,sn,at):L(at)}function sn(N,H){if(H=="is")return q.marked="keyword",L()}function at(N,H){if(H=="keyof"||H=="typeof"||H=="infer"||H=="readonly")return q.marked="keyword",L(H=="typeof"?ct:at);if(N=="variable"||H=="void")return q.marked="type",L(Jr);if(H=="|"||H=="&")return L(at);if(N=="string"||N=="number"||N=="atom")return L(Jr);if(N=="[")return L(Qe("]"),Mt(at,"]",","),Le,Jr);if(N=="{")return L(Qe("}"),Je,Le,Jr);if(N=="(")return L(Mt(Lt,")"),$r,Jr);if(N=="<")return L(Mt(at,">"),at);if(N=="quasi")return he(Cr,Jr)}function $r(N){if(N=="=>")return L(at)}function Je(N){return N.match(/[\}\)\]]/)?L():N==","||N==";"?L(Je):he(en,Je)}function en(N,H){if(N=="variable"||q.style=="keyword")return q.marked="property",L(en);if(H=="?"||N=="number"||N=="string")return L(en);if(N==":")return L(at);if(N=="[")return L(Ge("variable"),sr,Ge("]"),en);if(N=="(")return he(Cn,en);if(!N.match(/[;\}\)\],]/))return L()}function Cr(N,H){return N!="quasi"?he():H.slice(H.length-2)!="${"?L(Cr):L(at,Ft)}function Ft(N){if(N=="}")return q.marked="string-2",q.state.tokenize=D,L(Cr)}function Lt(N,H){return N=="variable"&&q.stream.match(/^\s*[?:]/,!1)||H=="?"?L(Lt):N==":"?L(at):N=="spread"?L(Lt):he(at)}function Jr(N,H){if(H=="<")return L(Qe(">"),Mt(at,">"),Le,Jr);if(H=="|"||N=="."||H=="&")return L(at);if(N=="[")return L(at,Ge("]"),Jr);if(H=="extends"||H=="implements")return q.marked="keyword",L(at);if(H=="?")return L(at,Ge(":"),at)}function ur(N,H){if(H=="<")return L(Qe(">"),Mt(at,">"),Le,Jr)}function Yt(){return he(at,Bt)}function Bt(N,H){if(H=="=")return L(at)}function Vt(N,H){return H=="enum"?(q.marked="keyword",L(De)):he(nr,rr,pr,Gn)}function nr(N,H){if(x&&Fe(H))return q.marked="keyword",L(nr);if(N=="variable")return ae(H),L();if(N=="spread")return L(nr);if(N=="[")return xr(hi,"]");if(N=="{")return xr(kn,"}")}function kn(N,H){return N=="variable"&&!q.stream.match(/^\s*:/,!1)?(ae(H),L(pr)):(N=="variable"&&(q.marked="property"),N=="spread"?L(nr):N=="}"?he():N=="["?L(_e,Ge("]"),Ge(":"),kn):L(Ge(":"),nr,pr))}function hi(){return he(nr,pr)}function pr(N,H){if(H=="=")return L(ct)}function Gn(N){if(N==",")return L(Vt)}function Dn(N,H){if(N=="keyword b"&&H=="else")return L(Qe("form","else"),He,Le)}function pi(N,H){if(H=="await")return L(pi);if(N=="(")return L(Qe(")"),Or,Le)}function Or(N){return N=="var"?L(Vt,Zr):N=="variable"?L(Zr):he(Zr)}function Zr(N,H){return N==")"?L():N==";"?L(Zr):H=="in"||H=="of"?(q.marked="keyword",L(_e,Zr)):he(_e,Zr)}function jr(N,H){if(H=="*")return q.marked="keyword",L(jr);if(N=="variable")return ae(H),L(jr);if(N=="(")return L(Ne,Qe(")"),Mt(tn,")"),Le,Tr,He,Pe);if(x&&H=="<")return L(Qe(">"),Mt(Yt,">"),Le,jr)}function Cn(N,H){if(H=="*")return q.marked="keyword",L(Cn);if(N=="variable")return ae(H),L(Cn);if(N=="(")return L(Ne,Qe(")"),Mt(tn,")"),Le,Tr,Pe);if(x&&H=="<")return L(Qe(">"),Mt(Yt,">"),Le,Cn)}function Ai(N,H){if(N=="keyword"||N=="variable")return q.marked="type",L(Ai);if(H=="<")return L(Qe(">"),Mt(Yt,">"),Le)}function tn(N,H){return H=="@"&&L(_e,tn),N=="spread"?L(tn):x&&Fe(H)?(q.marked="keyword",L(tn)):x&&N=="this"?L(rr,pr):he(nr,rr,pr)}function rn(N,H){return N=="variable"?gi(N,H):Ir(N,H)}function gi(N,H){if(N=="variable")return ae(H),L(Ir)}function Ir(N,H){if(H=="<")return L(Qe(">"),Mt(Yt,">"),Le,Ir);if(H=="extends"||H=="implements"||x&&N==",")return H=="implements"&&(q.marked="keyword"),L(x?at:_e,Ir);if(N=="{")return L(Qe("}"),Yr,Le)}function Yr(N,H){if(N=="async"||N=="variable"&&(H=="static"||H=="get"||H=="set"||x&&Fe(H))&&q.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return q.marked="keyword",L(Yr);if(N=="variable"||q.style=="keyword")return q.marked="property",L(In,Yr);if(N=="number"||N=="string")return L(In,Yr);if(N=="[")return L(_e,rr,Ge("]"),In,Yr);if(H=="*")return q.marked="keyword",L(Yr);if(x&&N=="(")return he(Cn,Yr);if(N==";"||N==",")return L(Yr);if(N=="}")return L();if(H=="@")return L(_e,Yr)}function In(N,H){if(H=="!"||H=="?")return L(In);if(N==":")return L(at,pr);if(H=="=")return L(ct);var pe=q.state.lexical.prev,Ce=pe&&pe.info=="interface";return he(Ce?Cn:jr)}function Xn(N,H){return H=="*"?(q.marked="keyword",L(Pt,Ge(";"))):H=="default"?(q.marked="keyword",L(_e,Ge(";"))):N=="{"?L(Mt(Xe,"}"),Pt,Ge(";")):he(He)}function Xe(N,H){if(H=="as")return q.marked="keyword",L(Ge("variable"));if(N=="variable")return he(ct,Xe)}function $(N){return N=="string"?L():N=="("?he(_e):N=="."?he($e):he(we,Oe,Pt)}function we(N,H){return N=="{"?xr(we,"}"):(N=="variable"&&ae(H),H=="*"&&(q.marked="keyword"),L(kt))}function Oe(N){if(N==",")return L(we,Oe)}function kt(N,H){if(H=="as")return q.marked="keyword",L(we)}function Pt(N,H){if(H=="from")return q.marked="keyword",L(_e)}function ht(N){return N=="]"?L():he(Mt(ct,"]"))}function De(){return he(Qe("form"),nr,Ge("{"),Qe("}"),Mt(wr,"}"),Le,Le)}function wr(){return he(nr,pr)}function nn(N,H){return N.lastType=="operator"||N.lastType==","||F.test(H.charAt(0))||/[,.]/.test(H.charAt(0))}function Nr(N,H,pe){return H.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(H.lastType)||H.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(pe||0)))}return{startState:function(N){var H={tokenize:k,lastType:"sof",cc:[],lexical:new z((N||0)-a,0,"block",!1),localVars:n.localVars,context:n.localVars&&new nt(null,null,!1),indented:N||0};return n.globalVars&&typeof n.globalVars=="object"&&(H.globalVars=n.globalVars),H},token:function(N,H){if(N.sol()&&(H.lexical.hasOwnProperty("align")||(H.lexical.align=!1),H.indented=N.indentation(),m(N,H)),H.tokenize!=V&&N.eatSpace())return null;var pe=H.tokenize(N,H);return U=="comment"?pe:(H.lastType=U=="operator"&&(X=="++"||X=="--")?"incdec":U,Te(H,pe,U,X,N))},indent:function(N,H){if(N.tokenize==V||N.tokenize==D)return e.Pass;if(N.tokenize!=k)return 0;var pe=H&&H.charAt(0),Ce=N.lexical,ue;if(!/^\s*else\b/.test(H))for(var Ee=N.cc.length-1;Ee>=0;--Ee){var It=N.cc[Ee];if(It==Le)Ce=Ce.prev;else if(It!=Dn&&It!=Pe)break}for(;(Ce.type=="stat"||Ce.type=="form")&&(pe=="}"||(ue=N.cc[N.cc.length-1])&&(ue==$e||ue==Ct)&&!/^[,\.=+\-*:?[\(]/.test(H));)Ce=Ce.prev;u&&Ce.type==")"&&Ce.prev.type=="stat"&&(Ce=Ce.prev);var ir=Ce.type,Pr=pe==ir;return ir=="vardef"?Ce.indented+(N.lastType=="operator"||N.lastType==","?Ce.info.length+1:0):ir=="form"&&pe=="{"?Ce.indented:ir=="form"?Ce.indented+a:ir=="stat"?Ce.indented+(nn(N,H)?u||a:0):Ce.info=="switch"&&!Pr&&n.doubleIndentSwitch!=!1?Ce.indented+(/^(?:case|default)\b/.test(H)?a:2*a):Ce.align?Ce.column+(Pr?0:1):Ce.indented+(Pr?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:c,jsonMode:h,expressionAllowed:Nr,skipExpression:function(N){Te(N,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var Zy=Wt(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});var By="fas",Uy="align-left",ky=448,Gy=512,Dy=[],Wy="f036",Oy="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";ci.definition={prefix:By,iconName:Uy,icon:[ky,Gy,Dy,Wy,Oy]};ci.faAlignLeft=ci.definition;ci.prefix=By;ci.iconName=Uy;ci.width=ky;ci.height=Gy;ci.ligatures=Dy;ci.unicode=Wy;ci.svgPathData=Oy});var mN={};s1(mN,{Parser:()=>gf,Yasr:()=>Ei,default:()=>gN,registerPlugin:()=>pN});var Vy=Gr(Bp());var m1=typeof global=="object"&&global&&global.Object===Object&&global,vu=m1;var b1=typeof self=="object"&&self&&self.Object===Object&&self,v1=vu||b1||Function("return this")(),Ar=v1;var y1=Ar.Symbol,gn=y1;var Up=Object.prototype,x1=Up.hasOwnProperty,T1=Up.toString,ts=gn?gn.toStringTag:void 0;function C1(e){var r=x1.call(e,ts),n=e[ts];try{e[ts]=void 0;var a=!0}catch{}var u=T1.call(e);return a&&(r?e[ts]=n:delete e[ts]),u}var kp=C1;var I1=Object.prototype,w1=I1.toString;function R1(e){return w1.call(e)}var Gp=R1;var S1="[object Null]",E1="[object Undefined]",Dp=gn?gn.toStringTag:void 0;function A1(e){return e==null?e===void 0?E1:S1:Dp&&Dp in Object(e)?kp(e):Gp(e)}var Mn=A1;function _1(e){return e!=null&&typeof e=="object"}var Dr=_1;var N1="[object Symbol]";function F1(e){return typeof e=="symbol"||Dr(e)&&Mn(e)==N1}var Do=F1;function L1(e,r){for(var n=-1,a=e==null?0:e.length,u=Array(a);++n<a;)u[n]=r(e[n],n,e);return u}var Wp=L1;var B1=Array.isArray,qt=B1;var U1=1/0,Op=gn?gn.prototype:void 0,Zp=Op?Op.toString:void 0;function Mp(e){if(typeof e=="string")return e;if(qt(e))return Wp(e,Mp)+"";if(Do(e))return Zp?Zp.call(e):"";var r=e+"";return r=="0"&&1/e==-U1?"-0":r}var Vp=Mp;function k1(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Qr=k1;function G1(e){return e}var Wo=G1;var D1="[object AsyncFunction]",W1="[object Function]",O1="[object GeneratorFunction]",Z1="[object Proxy]";function M1(e){if(!Qr(e))return!1;var r=Mn(e);return r==W1||r==O1||r==D1||r==Z1}var Oo=M1;var V1=Ar["__core-js_shared__"],yu=V1;var Qp=function(){var e=/[^.]+$/.exec(yu&&yu.keys&&yu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Q1(e){return!!Qp&&Qp in e}var Hp=Q1;var H1=Function.prototype,X1=H1.toString;function J1(e){if(e!=null){try{return X1.call(e)}catch{}try{return e+""}catch{}}return""}var Yi=J1;var j1=/[\\^$.*+?()[\]{}|]/g,Y1=/^\[object .+?Constructor\]$/,P1=Function.prototype,z1=Object.prototype,q1=P1.toString,K1=z1.hasOwnProperty,$1=RegExp("^"+q1.call(K1).replace(j1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!Qr(e)||Hp(e))return!1;var r=Oo(e)?$1:Y1;return r.test(Yi(e))}var Xp=eT;function tT(e,r){return e?.[r]}var Jp=tT;function rT(e,r){var n=Jp(e,r);return Xp(n)?n:void 0}var Nn=rT;var nT=Nn(Ar,"WeakMap"),xu=nT;var jp=Object.create,iT=function(){function e(){}return function(r){if(!Qr(r))return{};if(jp)return jp(r);e.prototype=r;var n=new e;return e.prototype=void 0,n}}(),Yp=iT;function aT(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}var Pp=aT;function oT(e,r){var n=-1,a=e.length;for(r||(r=Array(a));++n<a;)r[n]=e[n];return r}var Tu=oT;var lT=800,sT=16,uT=Date.now;function fT(e){var r=0,n=0;return function(){var a=uT(),u=sT-(a-n);if(n=a,u>0){if(++r>=lT)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var zp=fT;function dT(e){return function(){return e}}var qp=dT;var cT=function(){try{var e=Nn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zo=cT;var hT=Zo?function(e,r){return Zo(e,"toString",{configurable:!0,enumerable:!1,value:qp(r),writable:!0})}:Wo,Kp=hT;var pT=zp(Kp),$p=pT;function gT(e,r){for(var n=-1,a=e==null?0:e.length;++n<a&&r(e[n],n,e)!==!1;);return e}var eg=gT;var mT=9007199254740991,bT=/^(?:0|[1-9]\d*)$/;function vT(e,r){var n=typeof e;return r=r??mT,!!r&&(n=="number"||n!="symbol"&&bT.test(e))&&e>-1&&e%1==0&&e<r}var Mo=vT;function yT(e,r,n){r=="__proto__"&&Zo?Zo(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}var ya=yT;function xT(e,r){return e===r||e!==e&&r!==r}var Ui=xT;var TT=Object.prototype,CT=TT.hasOwnProperty;function IT(e,r,n){var a=e[r];(!(CT.call(e,r)&&Ui(a,n))||n===void 0&&!(r in e))&&ya(e,r,n)}var Cu=IT;function wT(e,r,n,a){var u=!n;n||(n={});for(var c=-1,h=r.length;++c<h;){var b=r[c],x=a?a(n[b],e[b],b,n,e):void 0;x===void 0&&(x=e[b]),u?ya(n,b,x):Cu(n,b,x)}return n}var ki=wT;var tg=Math.max;function RT(e,r,n){return r=tg(r===void 0?e.length-1:r,0),function(){for(var a=arguments,u=-1,c=tg(a.length-r,0),h=Array(c);++u<c;)h[u]=a[r+u];u=-1;for(var b=Array(r+1);++u<r;)b[u]=a[u];return b[r]=n(h),Pp(e,this,b)}}var rg=RT;function ST(e,r){return $p(rg(e,r,Wo),e+"")}var ng=ST;var ET=9007199254740991;function AT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ET}var Vo=AT;function _T(e){return e!=null&&Vo(e.length)&&!Oo(e)}var ri=_T;function NT(e,r,n){if(!Qr(n))return!1;var a=typeof r;return(a=="number"?ri(n)&&Mo(r,n.length):a=="string"&&r in n)?Ui(n[r],e):!1}var ig=NT;function FT(e){return ng(function(r,n){var a=-1,u=n.length,c=u>1?n[u-1]:void 0,h=u>2?n[2]:void 0;for(c=e.length>3&&typeof c=="function"?(u--,c):void 0,h&&ig(n[0],n[1],h)&&(c=u<3?void 0:c,u=1),r=Object(r);++a<u;){var b=n[a];b&&e(r,b,a,c)}return r})}var ag=FT;var LT=Object.prototype;function BT(e){var r=e&&e.constructor,n=typeof r=="function"&&r.prototype||LT;return e===n}var xa=BT;function UT(e,r){for(var n=-1,a=Array(e);++n<e;)a[n]=r(n);return a}var og=UT;var kT="[object Arguments]";function GT(e){return Dr(e)&&Mn(e)==kT}var Ad=GT;var lg=Object.prototype,DT=lg.hasOwnProperty,WT=lg.propertyIsEnumerable,OT=Ad(function(){return arguments}())?Ad:function(e){return Dr(e)&&DT.call(e,"callee")&&!WT.call(e,"callee")},Pi=OT;function ZT(){return!1}var sg=ZT;var dg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ug=dg&&typeof module=="object"&&module&&!module.nodeType&&module,MT=ug&&ug.exports===dg,fg=MT?Ar.Buffer:void 0,VT=fg?fg.isBuffer:void 0,QT=VT||sg,Ii=QT;var HT="[object Arguments]",XT="[object Array]",JT="[object Boolean]",jT="[object Date]",YT="[object Error]",PT="[object Function]",zT="[object Map]",qT="[object Number]",KT="[object Object]",$T="[object RegExp]",eC="[object Set]",tC="[object String]",rC="[object WeakMap]",nC="[object ArrayBuffer]",iC="[object DataView]",aC="[object Float32Array]",oC="[object Float64Array]",lC="[object Int8Array]",sC="[object Int16Array]",uC="[object Int32Array]",fC="[object Uint8Array]",dC="[object Uint8ClampedArray]",cC="[object Uint16Array]",hC="[object Uint32Array]",er={};er[aC]=er[oC]=er[lC]=er[sC]=er[uC]=er[fC]=er[dC]=er[cC]=er[hC]=!0;er[HT]=er[XT]=er[nC]=er[JT]=er[iC]=er[jT]=er[YT]=er[PT]=er[zT]=er[qT]=er[KT]=er[$T]=er[eC]=er[tC]=er[rC]=!1;function pC(e){return Dr(e)&&Vo(e.length)&&!!er[Mn(e)]}var cg=pC;function gC(e){return function(r){return e(r)}}var Qo=gC;var hg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rs=hg&&typeof module=="object"&&module&&!module.nodeType&&module,mC=rs&&rs.exports===hg,_d=mC&&vu.process,bC=function(){try{var e=rs&&rs.require&&rs.require("util").types;return e||_d&&_d.binding&&_d.binding("util")}catch{}}(),zi=bC;var pg=zi&&zi.isTypedArray,vC=pg?Qo(pg):cg,Ta=vC;var yC=Object.prototype,xC=yC.hasOwnProperty;function TC(e,r){var n=qt(e),a=!n&&Pi(e),u=!n&&!a&&Ii(e),c=!n&&!a&&!u&&Ta(e),h=n||a||u||c,b=h?og(e.length,String):[],x=b.length;for(var _ in e)(r||xC.call(e,_))&&!(h&&(_=="length"||u&&(_=="offset"||_=="parent")||c&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Mo(_,x)))&&b.push(_);return b}var Iu=TC;function CC(e,r){return function(n){return e(r(n))}}var wu=CC;var IC=wu(Object.keys,Object),gg=IC;var wC=Object.prototype,RC=wC.hasOwnProperty;function SC(e){if(!xa(e))return gg(e);var r=[];for(var n in Object(e))RC.call(e,n)&&n!="constructor"&&r.push(n);return r}var Ru=SC;function EC(e){return ri(e)?Iu(e):Ru(e)}var Gi=EC;function AC(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}var mg=AC;var _C=Object.prototype,NC=_C.hasOwnProperty;function FC(e){if(!Qr(e))return mg(e);var r=xa(e),n=[];for(var a in e)a=="constructor"&&(r||!NC.call(e,a))||n.push(a);return n}var bg=FC;function LC(e){return ri(e)?Iu(e,!0):bg(e)}var Di=LC;var BC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UC=/^\w*$/;function kC(e,r){if(qt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Do(e)?!0:UC.test(e)||!BC.test(e)||r!=null&&e in Object(r)}var Ho=kC;var GC=Nn(Object,"create"),qi=GC;function DC(){this.__data__=qi?qi(null):{},this.size=0}var vg=DC;function WC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var yg=WC;var OC="__lodash_hash_undefined__",ZC=Object.prototype,MC=ZC.hasOwnProperty;function VC(e){var r=this.__data__;if(qi){var n=r[e];return n===OC?void 0:n}return MC.call(r,e)?r[e]:void 0}var xg=VC;var QC=Object.prototype,HC=QC.hasOwnProperty;function XC(e){var r=this.__data__;return qi?r[e]!==void 0:HC.call(r,e)}var Tg=XC;var JC="__lodash_hash_undefined__";function jC(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qi&&r===void 0?JC:r,this}var Cg=jC;function Xo(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var a=e[r];this.set(a[0],a[1])}}Xo.prototype.clear=vg;Xo.prototype.delete=yg;Xo.prototype.get=xg;Xo.prototype.has=Tg;Xo.prototype.set=Cg;var Nd=Xo;function YC(){this.__data__=[],this.size=0}var Ig=YC;function PC(e,r){for(var n=e.length;n--;)if(Ui(e[n][0],r))return n;return-1}var Ca=PC;var zC=Array.prototype,qC=zC.splice;function KC(e){var r=this.__data__,n=Ca(r,e);if(n<0)return!1;var a=r.length-1;return n==a?r.pop():qC.call(r,n,1),--this.size,!0}var wg=KC;function $C(e){var r=this.__data__,n=Ca(r,e);return n<0?void 0:r[n][1]}var Rg=$C;function eI(e){return Ca(this.__data__,e)>-1}var Sg=eI;function tI(e,r){var n=this.__data__,a=Ca(n,e);return a<0?(++this.size,n.push([e,r])):n[a][1]=r,this}var Eg=tI;function Jo(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var a=e[r];this.set(a[0],a[1])}}Jo.prototype.clear=Ig;Jo.prototype.delete=wg;Jo.prototype.get=Rg;Jo.prototype.has=Sg;Jo.prototype.set=Eg;var Ia=Jo;var rI=Nn(Ar,"Map"),wa=rI;function nI(){this.size=0,this.__data__={hash:new Nd,map:new(wa||Ia),string:new Nd}}var Ag=nI;function iI(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _g=iI;function aI(e,r){var n=e.__data__;return _g(r)?n[typeof r=="string"?"string":"hash"]:n.map}var Ra=aI;function oI(e){var r=Ra(this,e).delete(e);return this.size-=r?1:0,r}var Ng=oI;function lI(e){return Ra(this,e).get(e)}var Fg=lI;function sI(e){return Ra(this,e).has(e)}var Lg=sI;function uI(e,r){var n=Ra(this,e),a=n.size;return n.set(e,r),this.size+=n.size==a?0:1,this}var Bg=uI;function jo(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r<n;){var a=e[r];this.set(a[0],a[1])}}jo.prototype.clear=Ag;jo.prototype.delete=Ng;jo.prototype.get=Fg;jo.prototype.has=Lg;jo.prototype.set=Bg;var za=jo;var fI="Expected a function";function Fd(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(fI);var n=function(){var a=arguments,u=r?r.apply(this,a):a[0],c=n.cache;if(c.has(u))return c.get(u);var h=e.apply(this,a);return n.cache=c.set(u,h)||c,h};return n.cache=new(Fd.Cache||za),n}Fd.Cache=za;var Ug=Fd;var dI=500;function cI(e){var r=Ug(e,function(a){return n.size===dI&&n.clear(),a}),n=r.cache;return r}var kg=cI;var hI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pI=/\\(\\)?/g,gI=kg(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(hI,function(n,a,u,c){r.push(u?c.replace(pI,"$1"):a||n)}),r}),Gg=gI;function mI(e){return e==null?"":Vp(e)}var Sa=mI;function bI(e,r){return qt(e)?e:Ho(e,r)?[e]:Gg(Sa(e))}var Su=bI;var vI=1/0;function yI(e){if(typeof e=="string"||Do(e))return e;var r=e+"";return r=="0"&&1/e==-vI?"-0":r}var Ea=yI;function xI(e,r){r=Su(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[Ea(r[n++])];return n&&n==a?e:void 0}var Eu=xI;function TI(e,r,n){var a=e==null?void 0:Eu(e,r);return a===void 0?n:a}var Dg=TI;function CI(e,r){for(var n=-1,a=r.length,u=e.length;++n<a;)e[u+n]=r[n];return e}var Au=CI;var II=wu(Object.getPrototypeOf,Object),Yo=II;var wI="[object Object]",RI=Function.prototype,SI=Object.prototype,Wg=RI.toString,EI=SI.hasOwnProperty,AI=Wg.call(Object);function _I(e){if(!Dr(e)||Mn(e)!=wI)return!1;var r=Yo(e);if(r===null)return!0;var n=EI.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&Wg.call(n)==AI}var Og=_I;function NI(e){return function(r){return e?.[r]}}var _u=NI;function FI(){this.__data__=new Ia,this.size=0}var Zg=FI;function LI(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}var Mg=LI;function BI(e){return this.__data__.get(e)}var Vg=BI;function UI(e){return this.__data__.has(e)}var Qg=UI;var kI=200;function GI(e,r){var n=this.__data__;if(n instanceof Ia){var a=n.__data__;if(!wa||a.length<kI-1)return a.push([e,r]),this.size=++n.size,this;n=this.__data__=new za(a)}return n.set(e,r),this.size=n.size,this}var Hg=GI;function Po(e){var r=this.__data__=new Ia(e);this.size=r.size}Po.prototype.clear=Zg;Po.prototype.delete=Mg;Po.prototype.get=Vg;Po.prototype.has=Qg;Po.prototype.set=Hg;var Wi=Po;function DI(e,r){return e&&ki(r,Gi(r),e)}var Xg=DI;function WI(e,r){return e&&ki(r,Di(r),e)}var Jg=WI;var zg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jg=zg&&typeof module=="object"&&module&&!module.nodeType&&module,OI=jg&&jg.exports===zg,Yg=OI?Ar.Buffer:void 0,Pg=Yg?Yg.allocUnsafe:void 0;function ZI(e,r){if(r)return e.slice();var n=e.length,a=Pg?Pg(n):new e.constructor(n);return e.copy(a),a}var Nu=ZI;function MI(e,r){for(var n=-1,a=e==null?0:e.length,u=0,c=[];++n<a;){var h=e[n];r(h,n,e)&&(c[u++]=h)}return c}var Fu=MI;function VI(){return[]}var Lu=VI;var QI=Object.prototype,HI=QI.propertyIsEnumerable,qg=Object.getOwnPropertySymbols,XI=qg?function(e){return e==null?[]:(e=Object(e),Fu(qg(e),function(r){return HI.call(e,r)}))}:Lu,zo=XI;function JI(e,r){return ki(e,zo(e),r)}var Kg=JI;var jI=Object.getOwnPropertySymbols,YI=jI?function(e){for(var r=[];e;)Au(r,zo(e)),e=Yo(e);return r}:Lu,Bu=YI;function PI(e,r){return ki(e,Bu(e),r)}var $g=PI;function zI(e,r,n){var a=r(e);return qt(e)?a:Au(a,n(e))}var Uu=zI;function qI(e){return Uu(e,Gi,zo)}var ns=qI;function KI(e){return Uu(e,Di,Bu)}var em=KI;var $I=Nn(Ar,"DataView"),ku=$I;var ew=Nn(Ar,"Promise"),Gu=ew;var tw=Nn(Ar,"Set"),Du=tw;var tm="[object Map]",rw="[object Object]",rm="[object Promise]",nm="[object Set]",im="[object WeakMap]",am="[object DataView]",nw=Yi(ku),iw=Yi(wa),aw=Yi(Gu),ow=Yi(Du),lw=Yi(xu),qa=Mn;(ku&&qa(new ku(new ArrayBuffer(1)))!=am||wa&&qa(new wa)!=tm||Gu&&qa(Gu.resolve())!=rm||Du&&qa(new Du)!=nm||xu&&qa(new xu)!=im)&&(qa=function(e){var r=Mn(e),n=r==rw?e.constructor:void 0,a=n?Yi(n):"";if(a)switch(a){case nw:return am;case iw:return tm;case aw:return rm;case ow:return nm;case lw:return im}return r});var wi=qa;var sw=Object.prototype,uw=sw.hasOwnProperty;function fw(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&uw.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var om=fw;var dw=Ar.Uint8Array,qo=dw;function cw(e){var r=new e.constructor(e.byteLength);return new qo(r).set(new qo(e)),r}var Ko=cw;function hw(e,r){var n=r?Ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var lm=hw;var pw=/\w*$/;function gw(e){var r=new e.constructor(e.source,pw.exec(e));return r.lastIndex=e.lastIndex,r}var sm=gw;var um=gn?gn.prototype:void 0,fm=um?um.valueOf:void 0;function mw(e){return fm?Object(fm.call(e)):{}}var dm=mw;function bw(e,r){var n=r?Ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Wu=bw;var vw="[object Boolean]",yw="[object Date]",xw="[object Map]",Tw="[object Number]",Cw="[object RegExp]",Iw="[object Set]",ww="[object String]",Rw="[object Symbol]",Sw="[object ArrayBuffer]",Ew="[object DataView]",Aw="[object Float32Array]",_w="[object Float64Array]",Nw="[object Int8Array]",Fw="[object Int16Array]",Lw="[object Int32Array]",Bw="[object Uint8Array]",Uw="[object Uint8ClampedArray]",kw="[object Uint16Array]",Gw="[object Uint32Array]";function Dw(e,r,n){var a=e.constructor;switch(r){case Sw:return Ko(e);case vw:case yw:return new a(+e);case Ew:return lm(e,n);case Aw:case _w:case Nw:case Fw:case Lw:case Bw:case Uw:case kw:case Gw:return Wu(e,n);case xw:return new a;case Tw:case ww:return new a(e);case Cw:return sm(e);case Iw:return new a;case Rw:return dm(e)}}var cm=Dw;function Ww(e){return typeof e.constructor=="function"&&!xa(e)?Yp(Yo(e)):{}}var Ou=Ww;var Ow="[object Map]";function Zw(e){return Dr(e)&&wi(e)==Ow}var hm=Zw;var pm=zi&&zi.isMap,Mw=pm?Qo(pm):hm,gm=Mw;var Vw="[object Set]";function Qw(e){return Dr(e)&&wi(e)==Vw}var mm=Qw;var bm=zi&&zi.isSet,Hw=bm?Qo(bm):mm,vm=Hw;var Xw=1,Jw=2,jw=4,ym="[object Arguments]",Yw="[object Array]",Pw="[object Boolean]",zw="[object Date]",qw="[object Error]",xm="[object Function]",Kw="[object GeneratorFunction]",$w="[object Map]",eR="[object Number]",Tm="[object Object]",tR="[object RegExp]",rR="[object Set]",nR="[object String]",iR="[object Symbol]",aR="[object WeakMap]",oR="[object ArrayBuffer]",lR="[object DataView]",sR="[object Float32Array]",uR="[object Float64Array]",fR="[object Int8Array]",dR="[object Int16Array]",cR="[object Int32Array]",hR="[object Uint8Array]",pR="[object Uint8ClampedArray]",gR="[object Uint16Array]",mR="[object Uint32Array]",Kt={};Kt[ym]=Kt[Yw]=Kt[oR]=Kt[lR]=Kt[Pw]=Kt[zw]=Kt[sR]=Kt[uR]=Kt[fR]=Kt[dR]=Kt[cR]=Kt[$w]=Kt[eR]=Kt[Tm]=Kt[tR]=Kt[rR]=Kt[nR]=Kt[iR]=Kt[hR]=Kt[pR]=Kt[gR]=Kt[mR]=!0;Kt[qw]=Kt[xm]=Kt[aR]=!1;function Zu(e,r,n,a,u,c){var h,b=r&Xw,x=r&Jw,_=r&jw;if(n&&(h=u?n(e,a,u,c):n(e)),h!==void 0)return h;if(!Qr(e))return e;var I=qt(e);if(I){if(h=om(e),!b)return Tu(e,h)}else{var F=wi(e),G=F==xm||F==Kw;if(Ii(e))return Nu(e,b);if(F==Tm||F==ym||G&&!u){if(h=x||G?{}:Ou(e),!b)return x?$g(e,Jg(h,e)):Kg(e,Xg(h,e))}else{if(!Kt[F])return u?e:{};h=cm(e,F,b)}}c||(c=new Wi);var W=c.get(e);if(W)return W;c.set(e,h),vm(e)?e.forEach(function(A){h.add(Zu(A,r,n,A,e,c))}):gm(e)&&e.forEach(function(A,k){h.set(k,Zu(A,r,n,k,e,c))});var U=_?x?em:ns:x?Di:Gi,X=I?void 0:U(e);return eg(X||e,function(A,k){X&&(k=A,A=e[k]),Cu(h,k,Zu(A,r,n,k,e,c))}),h}var Cm=Zu;var bR=1,vR=4;function yR(e){return Cm(e,bR|vR)}var $o=yR;var xR="__lodash_hash_undefined__";function TR(e){return this.__data__.set(e,xR),this}var Im=TR;function CR(e){return this.__data__.has(e)}var wm=CR;function Mu(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new za;++r<n;)this.add(e[r])}Mu.prototype.add=Mu.prototype.push=Im;Mu.prototype.has=wm;var Rm=Mu;function IR(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var Sm=IR;function wR(e,r){return e.has(r)}var Em=wR;var RR=1,SR=2;function ER(e,r,n,a,u,c){var h=n&RR,b=e.length,x=r.length;if(b!=x&&!(h&&x>b))return!1;var _=c.get(e),I=c.get(r);if(_&&I)return _==r&&I==e;var F=-1,G=!0,W=n&SR?new Rm:void 0;for(c.set(e,r),c.set(r,e);++F<b;){var U=e[F],X=r[F];if(a)var A=h?a(X,U,F,r,e,c):a(U,X,F,e,r,c);if(A!==void 0){if(A)continue;G=!1;break}if(W){if(!Sm(r,function(k,K){if(!Em(W,K)&&(U===k||u(U,k,n,a,c)))return W.push(K)})){G=!1;break}}else if(!(U===X||u(U,X,n,a,c))){G=!1;break}}return c.delete(e),c.delete(r),G}var Vu=ER;function AR(e){var r=-1,n=Array(e.size);return e.forEach(function(a,u){n[++r]=[u,a]}),n}var Am=AR;function _R(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var _m=_R;var NR=1,FR=2,LR="[object Boolean]",BR="[object Date]",UR="[object Error]",kR="[object Map]",GR="[object Number]",DR="[object RegExp]",WR="[object Set]",OR="[object String]",ZR="[object Symbol]",MR="[object ArrayBuffer]",VR="[object DataView]",Nm=gn?gn.prototype:void 0,Ld=Nm?Nm.valueOf:void 0;function QR(e,r,n,a,u,c,h){switch(n){case VR:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case MR:return!(e.byteLength!=r.byteLength||!c(new qo(e),new qo(r)));case LR:case BR:case GR:return Ui(+e,+r);case UR:return e.name==r.name&&e.message==r.message;case DR:case OR:return e==r+"";case kR:var b=Am;case WR:var x=a&NR;if(b||(b=_m),e.size!=r.size&&!x)return!1;var _=h.get(e);if(_)return _==r;a|=FR,h.set(e,r);var I=Vu(b(e),b(r),a,u,c,h);return h.delete(e),I;case ZR:if(Ld)return Ld.call(e)==Ld.call(r)}return!1}var Fm=QR;var HR=1,XR=Object.prototype,JR=XR.hasOwnProperty;function jR(e,r,n,a,u,c){var h=n&HR,b=ns(e),x=b.length,_=ns(r),I=_.length;if(x!=I&&!h)return!1;for(var F=x;F--;){var G=b[F];if(!(h?G in r:JR.call(r,G)))return!1}var W=c.get(e),U=c.get(r);if(W&&U)return W==r&&U==e;var X=!0;c.set(e,r),c.set(r,e);for(var A=h;++F<x;){G=b[F];var k=e[G],K=r[G];if(a)var V=h?a(K,k,G,r,e,c):a(k,K,G,e,r,c);if(!(V===void 0?k===K||u(k,K,n,a,c):V)){X=!1;break}A||(A=G=="constructor")}if(X&&!A){var D=e.constructor,ee=r.constructor;D!=ee&&"constructor"in e&&"constructor"in r&&!(typeof D=="function"&&D instanceof D&&typeof ee=="function"&&ee instanceof ee)&&(X=!1)}return c.delete(e),c.delete(r),X}var Lm=jR;var YR=1,Bm="[object Arguments]",Um="[object Array]",Qu="[object Object]",PR=Object.prototype,km=PR.hasOwnProperty;function zR(e,r,n,a,u,c){var h=qt(e),b=qt(r),x=h?Um:wi(e),_=b?Um:wi(r);x=x==Bm?Qu:x,_=_==Bm?Qu:_;var I=x==Qu,F=_==Qu,G=x==_;if(G&&Ii(e)){if(!Ii(r))return!1;h=!0,I=!1}if(G&&!I)return c||(c=new Wi),h||Ta(e)?Vu(e,r,n,a,u,c):Fm(e,r,x,n,a,u,c);if(!(n&YR)){var W=I&&km.call(e,"__wrapped__"),U=F&&km.call(r,"__wrapped__");if(W||U){var X=W?e.value():e,A=U?r.value():r;return c||(c=new Wi),u(X,A,n,a,c)}}return G?(c||(c=new Wi),Lm(e,r,n,a,u,c)):!1}var Gm=zR;function Dm(e,r,n,a,u){return e===r?!0:e==null||r==null||!Dr(e)&&!Dr(r)?e!==e&&r!==r:Gm(e,r,n,a,Dm,u)}var Hu=Dm;var qR=1,KR=2;function $R(e,r,n,a){var u=n.length,c=u,h=!a;if(e==null)return!c;for(e=Object(e);u--;){var b=n[u];if(h&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++u<c;){b=n[u];var x=b[0],_=e[x],I=b[1];if(h&&b[2]){if(_===void 0&&!(x in e))return!1}else{var F=new Wi;if(a)var G=a(_,I,x,e,r,F);if(!(G===void 0?Hu(I,_,qR|KR,a,F):G))return!1}}return!0}var Wm=$R;function eS(e){return e===e&&!Qr(e)}var Xu=eS;function tS(e){for(var r=Gi(e),n=r.length;n--;){var a=r[n],u=e[a];r[n]=[a,u,Xu(u)]}return r}var Om=tS;function rS(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var Ju=rS;function nS(e){var r=Om(e);return r.length==1&&r[0][2]?Ju(r[0][0],r[0][1]):function(n){return n===e||Wm(n,e,r)}}var Zm=nS;function iS(e,r){return e!=null&&r in Object(e)}var Mm=iS;function aS(e,r,n){r=Su(r,e);for(var a=-1,u=r.length,c=!1;++a<u;){var h=Ea(r[a]);if(!(c=e!=null&&n(e,h)))break;e=e[h]}return c||++a!=u?c:(u=e==null?0:e.length,!!u&&Vo(u)&&Mo(h,u)&&(qt(e)||Pi(e)))}var Vm=aS;function oS(e,r){return e!=null&&Vm(e,r,Mm)}var Qm=oS;var lS=1,sS=2;function uS(e,r){return Ho(e)&&Xu(r)?Ju(Ea(e),r):function(n){var a=Dg(n,e);return a===void 0&&a===r?Qm(n,e):Hu(r,a,lS|sS)}}var Hm=uS;function fS(e){return function(r){return r?.[e]}}var Xm=fS;function dS(e){return function(r){return Eu(r,e)}}var Jm=dS;function cS(e){return Ho(e)?Xm(Ea(e)):Jm(e)}var jm=cS;function hS(e){return typeof e=="function"?e:e==null?Wo:typeof e=="object"?qt(e)?Hm(e[0],e[1]):Zm(e):jm(e)}var ju=hS;function pS(e){return function(r,n,a){for(var u=-1,c=Object(r),h=a(r),b=h.length;b--;){var x=h[e?b:++u];if(n(c[x],x,c)===!1)break}return r}}var Ym=pS;var gS=Ym(),Yu=gS;function mS(e,r){return e&&Yu(e,r,Gi)}var Pu=mS;function bS(e,r){return function(n,a){if(n==null)return n;if(!ri(n))return e(n,a);for(var u=n.length,c=r?u:-1,h=Object(n);(r?c--:++c<u)&&a(h[c],c,h)!==!1;);return n}}var Pm=bS;var vS=Pm(Pu),zm=vS;function yS(e,r,n){(n!==void 0&&!Ui(e[r],n)||n===void 0&&!(r in e))&&ya(e,r,n)}var is=yS;function xS(e){return Dr(e)&&ri(e)}var qm=xS;function TS(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var as=TS;function CS(e){return ki(e,Di(e))}var Km=CS;function IS(e,r,n,a,u,c,h){var b=as(e,n),x=as(r,n),_=h.get(x);if(_){is(e,n,_);return}var I=c?c(b,x,n+"",e,r,h):void 0,F=I===void 0;if(F){var G=qt(x),W=!G&&Ii(x),U=!G&&!W&&Ta(x);I=x,G||W||U?qt(b)?I=b:qm(b)?I=Tu(b):W?(F=!1,I=Nu(x,!0)):U?(F=!1,I=Wu(x,!0)):I=[]:Og(x)||Pi(x)?(I=b,Pi(b)?I=Km(b):(!Qr(b)||Oo(b))&&(I=Ou(x))):F=!1}F&&(h.set(x,I),u(I,x,a,c,h),h.delete(x)),is(e,n,I)}var $m=IS;function eb(e,r,n,a,u){e!==r&&Yu(r,function(c,h){if(u||(u=new Wi),Qr(c))$m(e,r,h,n,eb,a,u);else{var b=a?a(as(e,h),c,h+"",e,r,u):void 0;b===void 0&&(b=c),is(e,h,b)}},Di)}var tb=eb;var wS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},RS=_u(wS),rb=RS;var nb=/[&<>"']/g,SS=RegExp(nb.source);function ES(e){return e=Sa(e),e&&SS.test(e)?e.replace(nb,rb):e}var Bd=ES;function AS(e,r){var n=[];return zm(e,function(a,u,c){r(a,u,c)&&n.push(a)}),n}var ib=AS;function _S(e,r){var n=qt(e)?Fu:ib;return n(e,ju(r,3))}var Ud=_S;var NS="[object Map]",FS="[object Set]",LS=Object.prototype,BS=LS.hasOwnProperty;function US(e){if(e==null)return!0;if(ri(e)&&(qt(e)||typeof e=="string"||typeof e.splice=="function"||Ii(e)||Ta(e)||Pi(e)))return!e.length;var r=wi(e);if(r==NS||r==FS)return!e.size;if(xa(e))return!Ru(e).length;for(var n in e)if(BS.call(e,n))return!1;return!0}var zu=US;function kS(e,r){var n={};return r=ju(r,3),Pu(e,function(a,u,c){ya(n,u,r(a,u,c))}),n}var os=kS;var GS=ag(function(e,r,n){tb(e,r,n)}),kd=GS;var DS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},WS=_u(DS),ab=WS;var ob=/&(?:amp|lt|gt|quot|#39);/g,OS=RegExp(ob.source);function ZS(e){return e=Sa(e),e&&OS.test(e)?e.replace(ob,ab):e}var Gd=ZS;var MS=0;function VS(e){var r=++MS;return Sa(e)+r}var Dd=VS;function Wd(){return{persistenceId:function(e){var r="",n=e.rootEl;for(n.id&&(r=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(r=n.id);break}return"yasr_"+r},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:60*60*24*30,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table"}}var{entries:gb,setPrototypeOf:lb,isFrozen:QS,getPrototypeOf:HS,getOwnPropertyDescriptor:XS}=Object,{freeze:bn,seal:ni,create:Xd}=Object,{apply:Jd,construct:jd}=typeof Reflect<"u"&&Reflect;bn||(bn=function(r){return r});ni||(ni=function(r){return r});Jd||(Jd=function(r,n){for(var a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];return r.apply(n,u)});jd||(jd=function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),u=1;u<n;u++)a[u-1]=arguments[u];return new r(...a)});var qu=vn(Array.prototype.forEach),JS=vn(Array.prototype.lastIndexOf),sb=vn(Array.prototype.pop),ls=vn(Array.prototype.push),jS=vn(Array.prototype.splice),$u=vn(String.prototype.toLowerCase),Od=vn(String.prototype.toString),Zd=vn(String.prototype.match),ss=vn(String.prototype.replace),YS=vn(String.prototype.indexOf),PS=vn(String.prototype.trim),Ri=vn(Object.prototype.hasOwnProperty),mn=vn(RegExp.prototype.test),us=zS(TypeError);function vn(e){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),u=1;u<n;u++)a[u-1]=arguments[u];return Jd(e,r,a)}}function zS(e){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return jd(e,n)}}function At(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$u;lb&&lb(e,null);let a=r.length;for(;a--;){let u=r[a];if(typeof u=="string"){let c=n(u);c!==u&&(QS(r)||(r[a]=c),u=c)}e[u]=!0}return e}function qS(e){for(let r=0;r<e.length;r++)Ri(e,r)||(e[r]=null);return e}function Ki(e){let r=Xd(null);for(let[n,a]of gb(e))Ri(e,n)&&(Array.isArray(a)?r[n]=qS(a):a&&typeof a=="object"&&a.constructor===Object?r[n]=Ki(a):r[n]=a);return r}function fs(e,r){for(;e!==null;){let a=XS(e,r);if(a){if(a.get)return vn(a.get);if(typeof a.value=="function")return vn(a.value)}e=HS(e)}function n(){return null}return n}var ub=bn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Md=bn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vd=bn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),KS=bn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qd=bn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$S=bn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fb=bn(["#text"]),db=bn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hd=bn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cb=bn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ku=bn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),eE=ni(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tE=ni(/<%[\w\W]*|[\w\W]*%>/gm),rE=ni(/\$\{[\w\W]*/gm),nE=ni(/^data-[\-\w.\u00B7-\uFFFF]+$/),iE=ni(/^aria-[\-\w]+$/),mb=ni(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aE=ni(/^(?:\w+script|data):/i),oE=ni(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bb=ni(/^html$/i),lE=ni(/^[a-z][.\w]*(-[.\w]+)+$/i),hb=Object.freeze({__proto__:null,ARIA_ATTR:iE,ATTR_WHITESPACE:oE,CUSTOM_ELEMENT:lE,DATA_ATTR:nE,DOCTYPE_NAME:bb,ERB_EXPR:tE,IS_ALLOWED_URI:mb,IS_SCRIPT_OR_DATA:aE,MUSTACHE_EXPR:eE,TMPLIT_EXPR:rE}),ds={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},sE=function(){return typeof window>"u"?null:window},uE=function(r,n){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let a=null,u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(a=n.getAttribute(u));let c="dompurify"+(a?"#"+a:"");try{return r.createPolicy(c,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},pb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sE(),r=Xe=>vb(Xe);if(r.version="3.3.0",r.removed=[],!e||!e.document||e.document.nodeType!==ds.document||!e.Element)return r.isSupported=!1,r;let{document:n}=e,a=n,u=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:h,Node:b,Element:x,NodeFilter:_,NamedNodeMap:I=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:F,DOMParser:G,trustedTypes:W}=e,U=x.prototype,X=fs(U,"cloneNode"),A=fs(U,"remove"),k=fs(U,"nextSibling"),K=fs(U,"childNodes"),V=fs(U,"parentNode");if(typeof h=="function"){let Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let D,ee="",{implementation:m,createNodeIterator:Z,createDocumentFragment:z,getElementsByTagName:se}=n,{importNode:Te}=a,q=pb();r.isSupported=typeof gb=="function"&&typeof V=="function"&&m&&m.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:he,ERB_EXPR:L,TMPLIT_EXPR:xe,DATA_ATTR:ae,ARIA_ATTR:Ie,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:Ke}=hb,{IS_ALLOWED_URI:lt}=hb,Ne=null,Rt=At({},[...ub,...Md,...Vd,...Qd,...fb]),Pe=null,Qe=At({},[...db,...Hd,...cb,...Ku]),Le=Object.seal(Xd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ge=null,He=null,bt=Object.seal(Xd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_e=!0,ct=!0,Et=!1,pt=!0,st=!1,$e=!0,Ct=!1,ut=!1,mt=!1,Ye=!1,vr=!1,yr=!1,tr=!0,Ot=!1,cr="user-content-",Be=!0,gt=!1,lr={},hr=null,Mt=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),xr=null,jt=At({},["audio","video","img","source","image","track"]),rr=null,sr=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Tr="http://www.w3.org/1998/Math/MathML",sn="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",$r=at,Je=!1,en=null,Cr=At({},[Tr,sn,at],Od),Ft=At({},["mi","mo","mn","ms","mtext"]),Lt=At({},["annotation-xml"]),Jr=At({},["title","style","font","a","script"]),ur=null,Yt=["application/xhtml+xml","text/html"],Bt="text/html",Vt=null,nr=null,kn=n.createElement("form"),hi=function($){return $ instanceof RegExp||$ instanceof Function},pr=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nr&&nr===$)){if((!$||typeof $!="object")&&($={}),$=Ki($),ur=Yt.indexOf($.PARSER_MEDIA_TYPE)===-1?Bt:$.PARSER_MEDIA_TYPE,Vt=ur==="application/xhtml+xml"?Od:$u,Ne=Ri($,"ALLOWED_TAGS")?At({},$.ALLOWED_TAGS,Vt):Rt,Pe=Ri($,"ALLOWED_ATTR")?At({},$.ALLOWED_ATTR,Vt):Qe,en=Ri($,"ALLOWED_NAMESPACES")?At({},$.ALLOWED_NAMESPACES,Od):Cr,rr=Ri($,"ADD_URI_SAFE_ATTR")?At(Ki(sr),$.ADD_URI_SAFE_ATTR,Vt):sr,xr=Ri($,"ADD_DATA_URI_TAGS")?At(Ki(jt),$.ADD_DATA_URI_TAGS,Vt):jt,hr=Ri($,"FORBID_CONTENTS")?At({},$.FORBID_CONTENTS,Vt):Mt,Ge=Ri($,"FORBID_TAGS")?At({},$.FORBID_TAGS,Vt):Ki({}),He=Ri($,"FORBID_ATTR")?At({},$.FORBID_ATTR,Vt):Ki({}),lr=Ri($,"USE_PROFILES")?$.USE_PROFILES:!1,_e=$.ALLOW_ARIA_ATTR!==!1,ct=$.ALLOW_DATA_ATTR!==!1,Et=$.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=$.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=$.SAFE_FOR_TEMPLATES||!1,$e=$.SAFE_FOR_XML!==!1,Ct=$.WHOLE_DOCUMENT||!1,Ye=$.RETURN_DOM||!1,vr=$.RETURN_DOM_FRAGMENT||!1,yr=$.RETURN_TRUSTED_TYPE||!1,mt=$.FORCE_BODY||!1,tr=$.SANITIZE_DOM!==!1,Ot=$.SANITIZE_NAMED_PROPS||!1,Be=$.KEEP_CONTENT!==!1,gt=$.IN_PLACE||!1,lt=$.ALLOWED_URI_REGEXP||mb,$r=$.NAMESPACE||at,Ft=$.MATHML_TEXT_INTEGRATION_POINTS||Ft,Lt=$.HTML_INTEGRATION_POINTS||Lt,Le=$.CUSTOM_ELEMENT_HANDLING||{},$.CUSTOM_ELEMENT_HANDLING&&hi($.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=$.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$.CUSTOM_ELEMENT_HANDLING&&hi($.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=$.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$.CUSTOM_ELEMENT_HANDLING&&typeof $.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Le.allowCustomizedBuiltInElements=$.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(ct=!1),vr&&(Ye=!0),lr&&(Ne=At({},fb),Pe=[],lr.html===!0&&(At(Ne,ub),At(Pe,db)),lr.svg===!0&&(At(Ne,Md),At(Pe,Hd),At(Pe,Ku)),lr.svgFilters===!0&&(At(Ne,Vd),At(Pe,Hd),At(Pe,Ku)),lr.mathMl===!0&&(At(Ne,Qd),At(Pe,cb),At(Pe,Ku))),$.ADD_TAGS&&(typeof $.ADD_TAGS=="function"?bt.tagCheck=$.ADD_TAGS:(Ne===Rt&&(Ne=Ki(Ne)),At(Ne,$.ADD_TAGS,Vt))),$.ADD_ATTR&&(typeof $.ADD_ATTR=="function"?bt.attributeCheck=$.ADD_ATTR:(Pe===Qe&&(Pe=Ki(Pe)),At(Pe,$.ADD_ATTR,Vt))),$.ADD_URI_SAFE_ATTR&&At(rr,$.ADD_URI_SAFE_ATTR,Vt),$.FORBID_CONTENTS&&(hr===Mt&&(hr=Ki(hr)),At(hr,$.FORBID_CONTENTS,Vt)),Be&&(Ne["#text"]=!0),Ct&&At(Ne,["html","head","body"]),Ne.table&&(At(Ne,["tbody"]),delete Ge.tbody),$.TRUSTED_TYPES_POLICY){if(typeof $.TRUSTED_TYPES_POLICY.createHTML!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof $.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=$.TRUSTED_TYPES_POLICY,ee=D.createHTML("")}else D===void 0&&(D=uE(W,u)),D!==null&&typeof ee=="string"&&(ee=D.createHTML(""));bn&&bn($),nr=$}},Gn=At({},[...Md,...Vd,...KS]),Dn=At({},[...Qd,...$S]),pi=function($){let we=V($);(!we||!we.tagName)&&(we={namespaceURI:$r,tagName:"template"});let Oe=$u($.tagName),kt=$u(we.tagName);return en[$.namespaceURI]?$.namespaceURI===sn?we.namespaceURI===at?Oe==="svg":we.namespaceURI===Tr?Oe==="svg"&&(kt==="annotation-xml"||Ft[kt]):!!Gn[Oe]:$.namespaceURI===Tr?we.namespaceURI===at?Oe==="math":we.namespaceURI===sn?Oe==="math"&&Lt[kt]:!!Dn[Oe]:$.namespaceURI===at?we.namespaceURI===sn&&!Lt[kt]||we.namespaceURI===Tr&&!Ft[kt]?!1:!Dn[Oe]&&(Jr[Oe]||!Gn[Oe]):!!(ur==="application/xhtml+xml"&&en[$.namespaceURI]):!1},Or=function($){ls(r.removed,{element:$});try{V($).removeChild($)}catch{A($)}},Zr=function($,we){try{ls(r.removed,{attribute:we.getAttributeNode($),from:we})}catch{ls(r.removed,{attribute:null,from:we})}if(we.removeAttribute($),$==="is")if(Ye||vr)try{Or(we)}catch{}else try{we.setAttribute($,"")}catch{}},jr=function($){let we=null,Oe=null;if(mt)$="<remove></remove>"+$;else{let ht=Zd($,/^[\r\n\t ]+/);Oe=ht&&ht[0]}ur==="application/xhtml+xml"&&$r===at&&($='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+$+"</body></html>");let kt=D?D.createHTML($):$;if($r===at)try{we=new G().parseFromString(kt,ur)}catch{}if(!we||!we.documentElement){we=m.createDocument($r,"template",null);try{we.documentElement.innerHTML=Je?ee:kt}catch{}}let Pt=we.body||we.documentElement;return $&&Oe&&Pt.insertBefore(n.createTextNode(Oe),Pt.childNodes[0]||null),$r===at?se.call(we,Ct?"html":"body")[0]:Ct?we.documentElement:Pt},Cn=function($){return Z.call($.ownerDocument||$,$,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},Ai=function($){return $ instanceof F&&(typeof $.nodeName!="string"||typeof $.textContent!="string"||typeof $.removeChild!="function"||!($.attributes instanceof I)||typeof $.removeAttribute!="function"||typeof $.setAttribute!="function"||typeof $.namespaceURI!="string"||typeof $.insertBefore!="function"||typeof $.hasChildNodes!="function")},tn=function($){return typeof b=="function"&&$ instanceof b};function rn(Xe,$,we){qu(Xe,Oe=>{Oe.call(r,$,we,nr)})}let gi=function($){let we=null;if(rn(q.beforeSanitizeElements,$,null),Ai($))return Or($),!0;let Oe=Vt($.nodeName);if(rn(q.uponSanitizeElement,$,{tagName:Oe,allowedTags:Ne}),$e&&$.hasChildNodes()&&!tn($.firstElementChild)&&mn(/<[/\w!]/g,$.innerHTML)&&mn(/<[/\w!]/g,$.textContent)||$.nodeType===ds.progressingInstruction||$e&&$.nodeType===ds.comment&&mn(/<[/\w]/g,$.data))return Or($),!0;if(!(bt.tagCheck instanceof Function&&bt.tagCheck(Oe))&&(!Ne[Oe]||Ge[Oe])){if(!Ge[Oe]&&Yr(Oe)&&(Le.tagNameCheck instanceof RegExp&&mn(Le.tagNameCheck,Oe)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(Oe)))return!1;if(Be&&!hr[Oe]){let kt=V($)||$.parentNode,Pt=K($)||$.childNodes;if(Pt&&kt){let ht=Pt.length;for(let De=ht-1;De>=0;--De){let wr=X(Pt[De],!0);wr.__removalCount=($.__removalCount||0)+1,kt.insertBefore(wr,k($))}}}return Or($),!0}return $ instanceof x&&!pi($)||(Oe==="noscript"||Oe==="noembed"||Oe==="noframes")&&mn(/<\/no(script|embed|frames)/i,$.innerHTML)?(Or($),!0):(st&&$.nodeType===ds.text&&(we=$.textContent,qu([he,L,xe],kt=>{we=ss(we,kt," ")}),$.textContent!==we&&(ls(r.removed,{element:$.cloneNode()}),$.textContent=we)),rn(q.afterSanitizeElements,$,null),!1)},Ir=function($,we,Oe){if(tr&&(we==="id"||we==="name")&&(Oe in n||Oe in kn))return!1;if(!(ct&&!He[we]&&mn(ae,we))){if(!(_e&&mn(Ie,we))){if(!(bt.attributeCheck instanceof Function&&bt.attributeCheck(we,$))){if(!Pe[we]||He[we]){if(!(Yr($)&&(Le.tagNameCheck instanceof RegExp&&mn(Le.tagNameCheck,$)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck($))&&(Le.attributeNameCheck instanceof RegExp&&mn(Le.attributeNameCheck,we)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(we,$))||we==="is"&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&mn(Le.tagNameCheck,Oe)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(Oe))))return!1}else if(!rr[we]){if(!mn(lt,ss(Oe,nt,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&$!=="script"&&YS(Oe,"data:")===0&&xr[$])){if(!(Et&&!mn(Fe,ss(Oe,nt,"")))){if(Oe)return!1}}}}}}}return!0},Yr=function($){return $!=="annotation-xml"&&Zd($,Ke)},In=function($){rn(q.beforeSanitizeAttributes,$,null);let{attributes:we}=$;if(!we||Ai($))return;let Oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0},kt=we.length;for(;kt--;){let Pt=we[kt],{name:ht,namespaceURI:De,value:wr}=Pt,nn=Vt(ht),Nr=wr,N=ht==="value"?Nr:PS(Nr);if(Oe.attrName=nn,Oe.attrValue=N,Oe.keepAttr=!0,Oe.forceKeepAttr=void 0,rn(q.uponSanitizeAttribute,$,Oe),N=Oe.attrValue,Ot&&(nn==="id"||nn==="name")&&(Zr(ht,$),N=cr+N),$e&&mn(/((--!?|])>)|<\/(style|title|textarea)/i,N)){Zr(ht,$);continue}if(nn==="attributename"&&Zd(N,"href")){Zr(ht,$);continue}if(Oe.forceKeepAttr)continue;if(!Oe.keepAttr){Zr(ht,$);continue}if(!pt&&mn(/\/>/i,N)){Zr(ht,$);continue}st&&qu([he,L,xe],pe=>{N=ss(N,pe," ")});let H=Vt($.nodeName);if(!Ir(H,nn,N)){Zr(ht,$);continue}if(D&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!De)switch(W.getAttributeType(H,nn)){case"TrustedHTML":{N=D.createHTML(N);break}case"TrustedScriptURL":{N=D.createScriptURL(N);break}}if(N!==Nr)try{De?$.setAttributeNS(De,ht,N):$.setAttribute(ht,N),Ai($)?Or($):sb(r.removed)}catch{Zr(ht,$)}}rn(q.afterSanitizeAttributes,$,null)},Xn=function Xe($){let we=null,Oe=Cn($);for(rn(q.beforeSanitizeShadowDOM,$,null);we=Oe.nextNode();)rn(q.uponSanitizeShadowNode,we,null),gi(we),In(we),we.content instanceof c&&Xe(we.content);rn(q.afterSanitizeShadowDOM,$,null)};return r.sanitize=function(Xe){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=null,Oe=null,kt=null,Pt=null;if(Je=!Xe,Je&&(Xe="<!-->"),typeof Xe!="string"&&!tn(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw us("dirty is not a string, aborting")}else throw us("toString is not a function");if(!r.isSupported)return Xe;if(ut||pr($),r.removed=[],typeof Xe=="string"&&(gt=!1),gt){if(Xe.nodeName){let wr=Vt(Xe.nodeName);if(!Ne[wr]||Ge[wr])throw us("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof b)we=jr("<!---->"),Oe=we.ownerDocument.importNode(Xe,!0),Oe.nodeType===ds.element&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?we=Oe:we.appendChild(Oe);else{if(!Ye&&!st&&!Ct&&Xe.indexOf("<")===-1)return D&&yr?D.createHTML(Xe):Xe;if(we=jr(Xe),!we)return Ye?null:yr?ee:""}we&&mt&&Or(we.firstChild);let ht=Cn(gt?Xe:we);for(;kt=ht.nextNode();)gi(kt),In(kt),kt.content instanceof c&&Xn(kt.content);if(gt)return Xe;if(Ye){if(vr)for(Pt=z.call(we.ownerDocument);we.firstChild;)Pt.appendChild(we.firstChild);else Pt=we;return(Pe.shadowroot||Pe.shadowrootmode)&&(Pt=Te.call(a,Pt,!0)),Pt}let De=Ct?we.outerHTML:we.innerHTML;return Ct&&Ne["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&mn(bb,we.ownerDocument.doctype.name)&&(De="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
43
- `+De),st&&qu([he,L,xe],wr=>{De=ss(De,wr," ")}),D&&yr?D.createHTML(De):De},r.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pr(Xe),ut=!0},r.clearConfig=function(){nr=null,ut=!1},r.isValidAttribute=function(Xe,$,we){nr||pr({});let Oe=Vt(Xe),kt=Vt($);return Ir(Oe,kt,we)},r.addHook=function(Xe,$){typeof $=="function"&&ls(q[Xe],$)},r.removeHook=function(Xe,$){if($!==void 0){let we=JS(q[Xe],$);return we===-1?void 0:jS(q[Xe],we,1)[0]}return sb(q[Xe])},r.removeHooks=function(Xe){q[Xe]=[]},r.removeAllHooks=function(){q=pb()},r}var cs=vb();var Si=Gr(Pb()),to=class{constructor(r){this.namespace=r}set(r,n,a,u){if(Si.default.enabled&&(this.removeExpiredKeys(),r&&n!==void 0)){n.documentElement&&(n=new XMLSerializer().serializeToString(n.documentElement));try{Si.default.set(r,{namespace:this.namespace,val:n,exp:a,time:new Date().getTime()/1e3})}catch(c){if(c instanceof Error){let h=c;if(h.quotaExceeded=hA(c),h.quotaExceeded&&u)u(c);else throw h}throw c}}}remove(r){Si.default.enabled&&r&&Si.default.remove(r)}removeExpiredKeys(){Si.default.enabled&&Si.default.each((r,n)=>{r&&r.exp&&new Date().getTime()/1e3-r.time>r.exp&&this.remove(n)})}removeAll(){Si.default.enabled}removeNamespace(){Si.default.each((r,n)=>{r.namespace&&r.namespace===this.namespace&&this.remove(n)})}get(r){if(Si.default.enabled&&r)if(this.removeExpiredKeys(),r){var n=Si.default.get(r);return n?n.val:void 0}else return}};function hA(e){var r=!1;if(e)if(e.code)switch(e.code){case 22:r=!0;break;case 1014:e.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(r=!0);break}else e.number===-2147024882&&(r=!0);return r}var{sanitize:xO}=cs;function ii(e){if(e&&e.trim().indexOf("<svg")==0){var r=new DOMParser,n=r.parseFromString(e,"text/xml"),a=n.documentElement;a.setAttribute("aria-hidden","true");var u=document.createElement("div");return u.className="svgImg",u.appendChild(a),u}throw new Error("No svg string given. Cannot draw")}function ro(e){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.width} ${e.height}" aria-hidden="true"><path fill="currentColor" d="${e.svgPathData}"></path></svg>`}function bs(e,r){if(e)return e.classList?e.classList.contains(r):!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function Tt(e,...r){if(e)for(let n of r)e.classList?e.classList.add(n):bs(e,n)||(e.className+=" "+n)}function Fn(e,r){if(e){if(e.classList)e.classList.remove(r);else if(bs(e,r)){var n=new RegExp("(\\s|^)"+r+"(\\s|$)");e.className=e.className.replace(n," ")}}}function nc(e,r){if(typeof e=="string"){let n=JSON.parse(e);if(r&&n.results)for(let a in n.results.bindings)n.results.bindings[a]=r(n.results.bindings[a]);return n}if(typeof e=="object"&&e.constructor==={}.constructor){if(r&&e.results)for(let n in e.results.bindings)e.results.bindings[n]=r(e.results.bindings[n]);return e}throw new Error("Could not parse json")}var v0=Gr(m0());var ys="http://www.w3.org/1999/02/22-rdf-syntax-ns#",xs="http://www.w3.org/2001/XMLSchema#",nf="http://www.w3.org/2000/10/swap/",Bn={xsd:{decimal:`${xs}decimal`,boolean:`${xs}boolean`,double:`${xs}double`,integer:`${xs}integer`,string:`${xs}string`},rdf:{type:`${ys}type`,nil:`${ys}nil`,first:`${ys}first`,rest:`${ys}rest`,langString:`${ys}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${nf}reify#forSome`,forAll:`${nf}reify#forAll`},log:{implies:`${nf}log#implies`,isImpliedBy:`${nf}log#isImpliedBy`}};var{xsd:af}=Bn,JA=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,b0={"\\":"\\","'":"'",'"':'"',n:`
44
- `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},jA=/[\x00-\x20<>\\"\{\}\|\^\`]/,YA={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},PA=/$0^/,Ts=class{constructor(r){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,r=r||{},this._isImpliedBy=r.isImpliedBy,this._lineMode=!!r.lineMode){this._n3Mode=!1;for(let n in this)!(n in YA)&&this[n]instanceof RegExp&&(this[n]=PA)}else this._n3Mode=r.n3!==!1;this.comments=!!r.comments,this._literalClosingPos=0}_tokenizeToEnd(r,n){let a=this._input,u=a.length;for(;;){let b,x;for(;b=this._newline.exec(a);)this.comments&&(x=this._comment.exec(b[0]))&&c("comment",x[1],"",this._line,b[0].length),a=a.substr(b[0].length,a.length),u=a.length,this._line++;if(!b&&(b=this._whitespace.exec(a))&&(a=a.substr(b[0].length,a.length)),this._endOfFile.test(a))return n&&(this.comments&&(x=this._comment.exec(a))&&c("comment",x[1],"",this._line,a.length),a=null,c("eof","","",this._line,0)),this._input=a;let _=this._line,I=a[0],F="",G="",W="",U=null,X=0,A=!1;switch(I){case"^":if(a.length<3)break;if(a[1]==="^"){if(this._previousMarker="^^",a=a.substr(2),a[0]!=="<"){A=!0;break}}else{this._n3Mode&&(X=1,F="^");break}case"<":if(U=this._unescapedIri.exec(a))F="IRI",G=U[1];else if(U=this._iri.exec(a)){if(G=this._unescape(U[1]),G===null||jA.test(G))return h(this);F="IRI"}else a.length>1&&a[1]==="<"?(F="<<",X=2):this._n3Mode&&a.length>1&&a[1]==="="&&(X=2,this._isImpliedBy?(F="abbreviation",G="<"):(F="inverse",G=">"));break;case">":a.length>1&&a[1]===">"&&(F=">>",X=2);break;case"_":((U=this._blank.exec(a))||n&&(U=this._blank.exec(`${a} `)))&&(F="blank",W="_",G=U[1]);break;case'"':if(U=this._simpleQuotedString.exec(a))G=U[1];else if({value:G,matchLength:X}=this._parseLiteral(a),G===null)return h(this);(U!==null||X!==0)&&(F="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(U=this._simpleApostropheString.exec(a))G=U[1];else if({value:G,matchLength:X}=this._parseLiteral(a),G===null)return h(this);(U!==null||X!==0)&&(F="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(U=this._variable.exec(a))&&(F="var",G=U[0]);break;case"@":this._previousMarker==="literal"&&(U=this._langcode.exec(a))?(F="langcode",G=U[1]):(U=this._keyword.exec(a))&&(F=U[0]);break;case".":if(a.length===1?n:a[1]<"0"||a[1]>"9"){F=".",X=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(U=this._number.exec(a)||n&&(U=this._number.exec(`${a} `)))&&(F="literal",G=U[0],W=typeof U[1]=="string"?af.double:typeof U[2]=="string"?af.decimal:af.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(U=this._sparqlKeyword.exec(a))?F=U[0].toUpperCase():A=!0;break;case"f":case"t":(U=this._boolean.exec(a))?(F="literal",G=U[0],W=af.boolean):A=!0;break;case"a":(U=this._shortPredicates.exec(a))?(F="abbreviation",G="a"):A=!0;break;case"=":this._n3Mode&&a.length>1&&(F="abbreviation",a[1]!==">"?(X=1,G="="):(X=2,G=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(X=1,F=I);break;case"{":!this._lineMode&&a.length>=2&&(a[1]==="|"?(F="{|",X=2):(F=I,X=1));break;case"|":a.length>=2&&a[1]==="}"&&(F="|}",X=2);break;default:A=!0}if(A&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(U=this._prefix.exec(a))?(F="prefix",G=U[1]||""):((U=this._prefixed.exec(a))||n&&(U=this._prefixed.exec(`${a} `)))&&(F="prefixed",W=U[1]||"",G=this._unescape(U[2]))),this._previousMarker==="^^")switch(F){case"prefixed":F="type";break;case"IRI":F="typeIRI";break;default:F=""}if(!F)return n||!/^'''|^"""/.test(a)&&/\n|\r/.test(a)?h(this):this._input=a;let k=X||U[0].length,K=c(F,G,W,_,k);this.previousToken=K,this._previousMarker=F,a=a.substr(k,a.length)}function c(b,x,_,I,F){let G=a?u-a.length:u,W=G+F,U={type:b,value:x,prefix:_,line:I,start:G,end:W};return r(null,U),U}function h(b){r(b._syntaxError(/^\S*/.exec(a)[0]))}}_unescape(r){let n=!1,a=r.replace(JA,(u,c,h,b)=>{if(typeof c=="string")return String.fromCharCode(Number.parseInt(c,16));if(typeof h=="string"){let x=Number.parseInt(h,16);return x<=65535?String.fromCharCode(Number.parseInt(h,16)):String.fromCharCode(55296+((x-=65536)>>10),56320+(x&1023))}return b in b0?b0[b]:(n=!0,"")});return n?null:a}_parseLiteral(r){if(r.length>=3){let n=r.match(/^(?:"""|"|'''|'|)/)[0],a=n.length,u=Math.max(this._literalClosingPos,a);for(;(u=r.indexOf(n,u))>0;){let c=0;for(;r[u-c-1]==="\\";)c++;if(c%2===0){let h=r.substring(a,u),b=h.split(/\r\n|\r|\n/).length-1,x=u+a;if(a===1&&b!==0||a===3&&this._lineMode)break;return this._line+=b,{value:this._unescape(h),matchLength:x}}u++}this._literalClosingPos=r.length-a+1}return{value:"",matchLength:0}}_syntaxError(r){this._input=null;let n=new Error(`Unexpected "${r}" on line ${this._line}.`);return n.context={token:void 0,line:this._line,previousToken:this.previousToken},n}_readStartingBom(r){return r.startsWith("\uFEFF")?r.substr(1):r}tokenize(r,n){if(this._line=1,typeof r=="string")if(this._input=this._readStartingBom(r),typeof n=="function")queueMicrotask(()=>this._tokenizeToEnd(n,!0));else{let a=[],u;if(this._tokenizeToEnd((c,h)=>c?u=c:a.push(h),!0),u)throw u;return a}else this._pendingBuffer=null,typeof r.setEncoding=="function"&&r.setEncoding("utf8"),r.on("data",a=>{this._input!==null&&a.length!==0&&(this._pendingBuffer&&(a=v0.Buffer.concat([this._pendingBuffer,a]),this._pendingBuffer=null),a[a.length-1]&128?this._pendingBuffer=a:(typeof this._input>"u"?this._input=this._readStartingBom(typeof a=="string"?a:a.toString()):this._input+=a,this._tokenizeToEnd(n,!1)))}),r.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(n,!0)}),r.on("error",n)}};var{rdf:zA,xsd:ll}=Bn,ws,qA=0;var KA={namedNode:x0,blankNode:T0,variable:I0,literal:C0,defaultGraph:$A,quad:bc,triple:bc,fromTerm:Cs,fromQuad:w0},y0=KA,ea=class e{constructor(r){this.id=r}get value(){return this.id}equals(r){return r instanceof e?this.id===r.id:!!r&&this.termType===r.termType&&this.value===r.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},of=class extends ea{get termType(){return"NamedNode"}},Is=class e extends ea{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){let r=this.id,n=r.lastIndexOf('"')+1;return n<r.length&&r[n++]==="@"?r.substr(n).toLowerCase():""}get datatype(){return new of(this.datatypeString)}get datatypeString(){let r=this.id,n=r.lastIndexOf('"')+1,a=n<r.length?r[n]:"";return a==="^"?r.substr(n+2):a!=="@"?ll.string:zA.langString}equals(r){return r instanceof e?this.id===r.id:!!r&&!!r.datatype&&this.termType===r.termType&&this.value===r.value&&this.language===r.language&&this.datatype.value===r.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},pc=class extends ea{constructor(r){super(`_:${r}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},gc=class extends ea{constructor(r){super(`?${r}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},mc=class extends ea{constructor(){return super(""),ws||this}get termType(){return"DefaultGraph"}equals(r){return this===r||!!r&&this.termType===r.termType}};ws=new mc;var lf=class extends ea{constructor(r,n,a,u){super(""),this._subject=r,this._predicate=n,this._object=a,this._graph=u||ws}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(r){return!!r&&this._subject.equals(r.subject)&&this._predicate.equals(r.predicate)&&this._object.equals(r.object)&&this._graph.equals(r.graph)}};function x0(e){return new of(e)}function T0(e){return new pc(e||`n3-${qA++}`)}function C0(e,r){if(typeof r=="string")return new Is(`"${e}"@${r.toLowerCase()}`);let n=r?r.value:"";return n===""&&(typeof e=="boolean"?n=ll.boolean:typeof e=="number"&&(Number.isFinite(e)?n=Number.isInteger(e)?ll.integer:ll.double:(n=ll.double,Number.isNaN(e)||(e=e>0?"INF":"-INF")))),n===""||n===ll.string?new Is(`"${e}"`):new Is(`"${e}"^^${n}`)}function I0(e){return new gc(e)}function $A(){return ws}function bc(e,r,n,a){return new lf(e,r,n,a)}function Cs(e){if(e instanceof ea)return e;switch(e.termType){case"NamedNode":return x0(e.value);case"BlankNode":return T0(e.value);case"Variable":return I0(e.value);case"DefaultGraph":return ws;case"Literal":return C0(e.value,e.language||e.datatype);case"Quad":return w0(e);default:throw new Error(`Unexpected termType: ${e.termType}`)}}function w0(e){if(e instanceof lf)return e;if(e.termType!=="Quad")throw new Error(`Unexpected termType: ${e.termType}`);return bc(Cs(e.subject),Cs(e.predicate),Cs(e.object),Cs(e.graph))}var R0=0,ao=class{constructor(r){this._contextStack=[],this._graph=null,r=r||{},this._setBase(r.baseIRI),r.factory&&S0(this,r.factory);let n=typeof r.format=="string"?r.format.match(/\w*$/)[0].toLowerCase():"",a=/turtle/.test(n),u=/trig/.test(n),c=/triple/.test(n),h=/quad/.test(n),b=this._n3Mode=/n3/.test(n),x=c||h;(this._supportsNamedGraphs=!(a||b))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(a||u||c||b),this._isImpliedBy=r.isImpliedBy,this._supportsRDFStar=n===""||/star|\*$/.test(n),x&&(this._resolveRelativeIRI=_=>null),this._blankNodePrefix=typeof r.blankNodePrefix!="string"?"":r.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=r.lexer||new Ts({lineMode:x,n3:b,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!r.explicitQuantifiers}static _resetBlankNodePrefix(){R0=0}_setBase(r){if(!r)this._base="",this._basePath="";else{let n=r.indexOf("#");n>=0&&(r=r.substr(0,n)),this._base=r,this._basePath=r.indexOf("/")<0?r:r.replace(/[^\/?]*(?:\?.*)?$/,""),r=r.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=r[0],this._baseScheme=r[1]}}_saveContext(r,n,a,u,c){let h=this._n3Mode;this._contextStack.push({type:r,subject:a,predicate:u,object:c,graph:n,inverse:h?this._inversePredicate:!1,blankPrefix:h?this._prefixes._:"",quantified:h?this._quantified:null}),h&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(r,n){let a=this._contextStack.pop();if(!a||a.type!==r)return this._error(`Unexpected ${n.type}`,n);this._subject=a.subject,this._predicate=a.predicate,this._object=a.object,this._graph=a.graph,this._n3Mode&&(this._inversePredicate=a.inverse,this._prefixes._=a.blankPrefix,this._quantified=a.quantified)}_readInTopContext(r){switch(r.type){case"eof":return this._graph!==null?this._error("Unclosed graph",r):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(r)}}_readEntity(r,n){let a;switch(r.type){case"IRI":case"typeIRI":let u=this._resolveIRI(r.value);if(u===null)return this._error("Invalid IRI",r);a=this._factory.namedNode(u);break;case"type":case"prefixed":let c=this._prefixes[r.prefix];if(c===void 0)return this._error(`Undefined prefix "${r.prefix}:"`,r);a=this._factory.namedNode(c+r.value);break;case"blank":a=this._factory.blankNode(this._prefixes[r.prefix]+r.value);break;case"var":a=this._factory.variable(r.value.substr(1));break;default:return this._error(`Expected entity but got ${r.type}`,r)}return!n&&this._n3Mode&&a.id in this._quantified&&(a=this._quantified[a.id]),a}_readSubject(r){switch(this._predicate=null,r.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",r);case"}":return this._readPunctuation(r);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',r);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',r);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",r);if(r.prefix.length===0)return this._literalValue=r.value,this._completeSubjectLiteral;this._subject=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._subject=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(r){let n=r.type;switch(n){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[r.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${n}`,r):(this._subject=null,n==="]"?this._readBlankNodeTail(r):this._readPunctuation(r));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",r);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",r);default:if((this._predicate=this._readEntity(r))===void 0)return}return this._readObject}_readObject(r){switch(r.type){case"literal":if(r.prefix.length===0)return this._literalValue=r.value,this._readDataTypeOrLang;this._object=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._object=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(r){return r.type==="{"?this._readGraph(r):this._readPredicate(r)}_readGraph(r){return r.type!=="{"?this._error(`Expected graph but got ${r.type}`,r):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(r){return r.type==="]"?(this._subject=null,this._readBlankNodeTail(r)):(this._predicate=null,this._readPredicate(r))}_readBlankNodeTail(r){if(r.type!=="]")return this._readBlankNodePunctuation(r);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);let n=this._predicate===null;return this._restoreContext("blank",r),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:n?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(r){switch(r.type){case".":case"}":return this._subject=null,this._readPunctuation(r);default:return this._readPredicate(r)}}_readListItem(r){let n=null,a=null,u=this._readListItem,c=this._subject,h=this._contextStack,b=h[h.length-1];switch(r.type){case"[":this._saveContext("blank",this._graph,a=this._factory.blankNode(),this.RDF_FIRST,this._subject=n=this._factory.blankNode()),u=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,a=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",r),h.length!==0&&h[h.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(u=this._readPredicate,this._subject===this.RDF_NIL)return u}else if(u=this._getContextEndReader(),this._object===this.RDF_NIL)return u;a=this.RDF_NIL;break;case"literal":r.prefix.length===0?(this._literalValue=r.value,u=this._readListItemDataTypeOrLang):(n=this._factory.literal(r.value,this._factory.namedNode(r.prefix)),u=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);default:if((n=this._readEntity(r))===void 0)return}if(a===null&&(this._subject=a=this._factory.blankNode()),c===null?b.predicate===null?b.subject=a:b.object=a:this._emit(c,this.RDF_REST,a,this._graph),n!==null){if(this._n3Mode&&(r.type==="IRI"||r.type==="prefixed"))return this._saveContext("item",this._graph,a,this.RDF_FIRST,n),this._subject=n,this._predicate=null,this._getPathReader(this._readListItem);this._emit(a,this.RDF_FIRST,n,this._graph)}return u}_readDataTypeOrLang(r){return this._completeObjectLiteral(r,!1)}_readListItemDataTypeOrLang(r){return this._completeObjectLiteral(r,!0)}_completeLiteral(r){let n=this._factory.literal(this._literalValue);switch(r.type){case"type":case"typeIRI":let a=this._readEntity(r);if(a===void 0)return;n=this._factory.literal(this._literalValue,a),r=null;break;case"langcode":n=this._factory.literal(this._literalValue,r.value),r=null;break}return{token:r,literal:n}}_completeSubjectLiteral(r){return this._subject=this._completeLiteral(r).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(r,n){let a=this._completeLiteral(r);if(a)return this._object=a.literal,n&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),a.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(a.token))}_readFormulaTail(r){return r.type!=="}"?this._readPunctuation(r):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",r),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(r){let n,a=this._graph,u=this._subject,c=this._inversePredicate;switch(r.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",r);if(this._n3Mode)return this._readFormulaTail(r);this._graph=null;case".":this._subject=null,n=this._contextStack.length?this._readSubject:this._readInTopContext,c&&(this._inversePredicate=!1);break;case";":n=this._readPredicate;break;case",":n=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",r);let h=this._predicate,b=this._object;this._subject=this._factory.quad(u,h,b,this.DEFAULTGRAPH),n=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",r);this._subject=null,n=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(a=this._readEntity(r))!==void 0){n=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}if(u!==null){let h=this._predicate,b=this._object;c?this._emit(b,h,u,a):this._emit(u,h,b,a)}return n}_readBlankNodePunctuation(r){let n;switch(r.type){case";":n=this._readPredicate;break;case",":n=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}return this._emit(this._subject,this._predicate,this._object,this._graph),n}_readQuadPunctuation(r){return r.type!=="."?this._error("Expected dot to follow quad",r):this._readInTopContext}_readPrefix(r){return r.type!=="prefix"?this._error("Expected prefix to follow @prefix",r):(this._prefix=r.value,this._readPrefixIRI)}_readPrefixIRI(r){if(r.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,r);let n=this._readEntity(r);return this._prefixes[this._prefix]=n.value,this._prefixCallback(this._prefix,n),this._readDeclarationPunctuation}_readBaseIRI(r){let n=r.type==="IRI"&&this._resolveIRI(r.value);return n?(this._setBase(n),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",r)}_readNamedGraphLabel(r){switch(r.type){case"IRI":case"blank":case"prefixed":return this._readSubject(r),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",r)}}_readNamedGraphBlankLabel(r){return r.type!=="]"?this._error("Invalid graph label",r):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(r){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(r)):r.type!=="."?this._error("Expected declaration to end with a dot",r):this._readInTopContext}_readQuantifierList(r){let n;switch(r.type){case"IRI":case"prefixed":if((n=this._readEntity(r,!0))!==void 0)break;default:return this._error(`Unexpected ${r.type}`,r)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,n,this.QUANTIFIERS_GRAPH)):this._quantified[n.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(r){return r.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(r))}_getPathReader(r){return this._afterPath=r,this._readPath}_readPath(r){switch(r.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:let n=this._contextStack,a=n.length&&n[n.length-1];if(a&&a.type==="item"){let u=this._subject;this._restoreContext("item",r),this._emit(this._subject,this.RDF_FIRST,u,this._graph)}return this._afterPath(r)}}_readForwardPath(r){let n,a,u=this._factory.blankNode();if((a=this._readEntity(r))!==void 0)return this._predicate===null?(n=this._subject,this._subject=u):(n=this._object,this._object=u),this._emit(n,a,u,this._graph),this._readPath}_readBackwardPath(r){let n=this._factory.blankNode(),a,u;if((a=this._readEntity(r))!==void 0)return this._predicate===null?(u=this._subject,this._subject=n):(u=this._object,this._object=n),this._emit(n,a,u,this._graph),this._readPath}_readRDFStarTailOrGraph(r){return r.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(r))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,r):this._readRDFStarTail(r)}_readRDFStarTail(r){if(r.type!==">>")return this._error(`Expected >> but got ${r.type}`,r);let n=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",r),this._subject===null?(this._subject=n,this._readPredicate):(this._object=n,this._getContextEndReader())}_getContextEndReader(){let r=this._contextStack;if(!r.length)return this._readPunctuation;switch(r[r.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(r,n,a,u){this._callback(null,this._factory.quad(r,n,a,u||this.DEFAULTGRAPH))}_error(r,n){let a=new Error(`${r} on line ${n.line}.`);a.context={token:n,line:n.line,previousToken:this._lexer.previousToken},this._callback(a),this._callback=sf}_resolveIRI(r){return/^[a-z][a-z0-9+.-]*:/i.test(r)?r:this._resolveRelativeIRI(r)}_resolveRelativeIRI(r){if(!r.length)return this._base;switch(r[0]){case"#":return this._base+r;case"?":return this._base.replace(/(?:\?.*)?$/,r);case"/":return(r[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(r);default:return/^[^/:]*:/.test(r)?null:this._removeDotSegments(this._basePath+r)}}_removeDotSegments(r){if(!/(^|\/)\.\.?($|[/#?])/.test(r))return r;let n=r.length,a="",u=-1,c=-1,h=0,b="/";for(;u<n;){switch(b){case":":if(c<0&&r[++u]==="/"&&r[++u]==="/")for(;(c=u+1)<n&&r[c]!=="/";)u=c;break;case"?":case"#":u=n;break;case"/":if(r[u+1]===".")switch(b=r[++u+1],b){case"/":a+=r.substring(h,u-1),h=u+1;break;case void 0:case"?":case"#":return a+r.substring(h,u)+r.substr(u+1);case".":if(b=r[++u+1],b===void 0||b==="/"||b==="?"||b==="#"){if(a+=r.substring(h,u-2),(h=a.lastIndexOf("/"))>=c&&(a=a.substr(0,h)),b!=="/")return`${a}/${r.substr(u+1)}`;h=u+1}}}b=r[++u]}return a+r.substring(h)}parse(r,n,a){let u,c,h;if(n&&(n.onQuad||n.onPrefix||n.onComment)?(u=n.onQuad,c=n.onPrefix,h=n.onComment):(u=n,c=a),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${R0++}_`,this._prefixCallback=c||sf,this._inversePredicate=!1,this._quantified=Object.create(null),!u){let x=[],_;if(this._callback=(I,F)=>{I?_=I:F&&x.push(F)},this._lexer.tokenize(r).every(I=>this._readCallback=this._readCallback(I)),_)throw _;return x}let b=(x,_)=>{x!==null?(this._callback(x),this._callback=sf):this._readCallback&&(this._readCallback=this._readCallback(_))};h&&(this._lexer.comments=!0,b=(x,_)=>{x!==null?(this._callback(x),this._callback=sf):this._readCallback&&(_.type==="comment"?h(_.value):this._readCallback=this._readCallback(_))}),this._callback=u,this._lexer.tokenize(r,b)}};function sf(){}function S0(e,r){e._factory=r,e.DEFAULTGRAPH=r.defaultGraph(),e.RDF_FIRST=r.namedNode(Bn.rdf.first),e.RDF_REST=r.namedNode(Bn.rdf.rest),e.RDF_NIL=r.namedNode(Bn.rdf.nil),e.N3_FORALL=r.namedNode(Bn.r.forAll),e.N3_FORSOME=r.namedNode(Bn.r.forSome),e.ABBREVIATIONS={a:r.namedNode(Bn.rdf.type),"=":r.namedNode(Bn.owl.sameAs),">":r.namedNode(Bn.log.implies),"<":r.namedNode(Bn.log.isImpliedBy)},e.QUANTIFIERS_GRAPH=r.namedNode("urn:n3:quantifiers")}S0(ao.prototype,y0);function vc(e){if(e.termType==="NamedNode")return{value:e.value,type:"uri"};if(e.termType==="Literal"){let r={value:e.value,type:"literal"},n=e.language;n&&(r["xml:lang"]=n);let a=e.datatypeString;return a&&(r.datatype=a),r}return e.termType==="BlankNode"?{value:e.value,type:"bnode"}:{value:e.value,type:"uri"}}function E0(e){let r=yc(e),n=["subject","predicate","object"],a=r.map(u=>({subject:vc(u.subject),predicate:vc(u.predicate),object:vc(u.object)}));return{head:{vars:n},results:{bindings:a}}}function yc(e){return new ao().parse(e||"")}function t_(e){let r={vars:[]};for(let n=0;n<e.childNodes.length;n++){let a=e.childNodes[n];if(a.nodeName=="variable"){let u=a.getAttribute("name");u&&r.vars.push(u)}}return r}var r_=["uri","literal","bnode","typed-literal"];function n_(e,r){let n={bindings:[]};for(let a=0;a<e.childNodes.length;a++){let u=e.childNodes[a],c={};for(let h=0;h<u.childNodes.length;h++){let b=u.childNodes[h];if(b.nodeName=="binding"){let x=b.getAttribute("name");if(x)for(let _=0;_<b.childNodes.length;_++){let I=b.childNodes[_];if(I.nodeName==="#text"||r_.indexOf(I.nodeName)<0)continue;let F={type:I.nodeName,value:Gd(I.innerHTML)},G=I.getAttribute("datatype");G&&(F.datatype=G),c[x]=F}}}zu(c)||n.bindings.push(r(c))}return n}function i_(e){return e.innerHTML==="true"}function xc(e,r){if(typeof e!="string")return;let a=new DOMParser().parseFromString(e,"text/xml");if(!a.childNodes.length)return;let u=a.childNodes[0],c={};for(let h=0;h<u.childNodes.length;h++){let b=u.childNodes[h];b.nodeName=="head"&&(c.head=t_(b)),b.nodeName=="results"&&(c.results=n_(b,r)),b.nodeName=="boolean"&&(c.boolean=i_(b))}return c}var _0=Gr(A0());function N0(e){let r=_0.parse(e,{header:!0,skipEmptyLines:!0});if(r.meta.fields===void 0)throw new Error("Could not parse CSV, no headers found!");let n=r.meta.fields,u=r.data.map(h=>{let b={};for(let x in h)b[x]={value:h[x],type:"literal"};return b});return{head:{vars:n},results:{bindings:u}}}function F0(e){let r=e.split(`
45
- `);r.pop();let[n,...a]=r,u=n.split(" ").map(b=>b.substring(1)),c=a.map(b=>{let x={};for(let[_,I]of b.split(" ").entries()){let F=u[_];if(I[0]==="<")x[F]={value:I.substring(1,I.length-1),type:"uri"};else if(I[0]==='"'){let G=I.lastIndexOf('"'),W=I.substring(1,G);if(G===I.length-1)x[F]={value:W,type:"literal"};else if(G<I.lastIndexOf("@")){let U=I.substring(I.lastIndexOf("@")+1);x[F]={value:W,type:"literal","xml:lang":U}}else if(G<I.lastIndexOf("^^")){let U=I.substring(I.lastIndexOf("^^")+2);x[F]={value:W,type:"typed-literal",datatype:U}}}}return x});return{head:{vars:u},results:{bindings:c}}}function sl(e){return e==null?"":`${e}`}function uf(e={}){let{separator:r,decimals:n}=e;return r?n?a=>a.toFixed(n).replace(".",r):a=>`${a}`.replace(".",r):n?a=>a.toFixed(n):a=>`${a}`}function ta(e={}){let r=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${r}${r}`;if(!r||r===n)return u=>u;let a=new RegExp(r,"g");return u=>(u.includes(r)&&(u=u.replace(a,n)),`${r}${u}${r}`)}var a_='"';var YO=new RegExp(a_,"g");function ff(e={stringFormatter:ta()}){return r=>e.stringFormatter(r.toString().slice(7,-1))}function df(e={stringFormatter:ta()}){return r=>{if(r===null)return"";let n=JSON.stringify(r);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}var o_=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function l_(e){var r,n,a;let u=[],c;for(;c=o_.exec(e);)u.push((a=(r=c[3])!==null&&r!==void 0?r:(n=c[1])===null||n===void 0?void 0:n.trim())!==null&&a!==void 0?a:c[0]);return u}function Ic(e,r,n){if(r in e){let c=e[r];return c===void 0?n:c}let a=Array.isArray(r)?r:l_(r,e),u=e;for(let c of a)if(u=u?.[c],u===void 0)return n;return u}function cf(e,r){try{return Array.isArray(r)?e.push(...r):e.push(r),e}catch{return e.concat(r)}}function Rs(e,r){let n=!0;return e.reduce((a,u)=>(u==null&&(u=""),n?(n=!1,`${u}`):`${a}${r}${u}`),"")}var wc;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(wc||(wc={}));var oo=class{constructor(r){this.opts=this.preprocessOpts(r)}preprocessOpts(r){let n=Object.assign({},r);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];let a=n.formatters&&n.formatters.string||ta(),u=df({stringFormatter:a}),c={header:a,undefined:sl,boolean:sl,number:uf(),bigint:sl,string:a,symbol:ff({stringFormatter:a}),function:u,object:u};return n.formatters=Object.assign(Object.assign({},c),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
46
- `,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(r,n){return r.map(a=>{if(typeof a=="string")return{label:a,value:u=>Ic(u,a,n)};if(typeof a=="object"){let u="default"in a?a.default:n;if(typeof a.value=="string"){let c=a.value;return{label:a.label||a.value,value:h=>Ic(h,c,u)}}if(typeof a.value=="function"){let c=a.label||a.value.name||"",h={label:c,default:u},b=a.value;return{label:c,value(x){let _=b(x,h);return _===void 0?u:_}}}}throw new Error("Invalid field info option. "+JSON.stringify(a))})}getHeader(){return Rs(this.opts.fields.map(r=>this.opts.formatters.header(r.label)),this.opts.delimiter)}preprocessRow(r){return this.opts.transforms.reduce((n,a)=>n.map(u=>a(u)).reduce(cf,[]),[r])}processRow(r){if(!r)return;let n=this.opts.fields.map(a=>this.processCell(r,a));if(!(!this.opts.includeEmptyRows&&n.every(a=>a==="")))return Rs(n,this.opts.delimiter)}processCell(r,n){return this.processValue(n.value(r))}processValue(r){let n=this.opts.formatters[typeof r];return n(r)}};var ul=class extends oo{constructor(r){super(r)}parse(r){let n=this.preprocessData(r);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((h,b)=>(Object.keys(b).forEach(x=>{h.includes(x)||h.push(x)}),h),[]),this.opts.defaultValue);let a=this.opts.header?this.getHeader():"",u=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+a+(a&&u?this.opts.eol:"")+u}preprocessData(r){let n=Array.isArray(r)?r:[r];if(!this.opts.fields){if(r==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(a=>this.preprocessRow(a)).reduce(cf,[])}processData(r){return Rs(r.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}};var Wr;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Wr||(Wr={}));var s_={[Wr.QUOTATION_MARK]:Wr.QUOTATION_MARK,[Wr.REVERSE_SOLIDUS]:Wr.REVERSE_SOLIDUS,[Wr.SOLIDUS]:Wr.SOLIDUS,[Wr.LATIN_SMALL_LETTER_B]:Wr.BACKSPACE,[Wr.LATIN_SMALL_LETTER_F]:Wr.FORM_FEED,[Wr.LATIN_SMALL_LETTER_N]:Wr.NEWLINE,[Wr.LATIN_SMALL_LETTER_R]:Wr.CARRIAGE_RETURN,[Wr.LATIN_SMALL_LETTER_T]:Wr.TAB};var L0;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(L0||(L0={}));var B0;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(B0||(B0={}));var hf;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(hf||(hf={}));var U0;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(U0||(U0={}));function D0(e){let r=e.head.vars,n=e.results?.bindings;return new ul({fields:r}).parse(n?n.map(u=>os(u,c=>c.value)):[])}var pf=e=>{for(let r in e)e[r].type!=="uri"&&(e[r].value=e[r].value.replace(/{{(.*?)}}/g,n=>(n=n.substring(2,n.length-2).trim(),e[n]?e[n].value:n)));return e},Sc=class{constructor(r,n){r.executionTime&&(this.executionTime=r.executionTime),n&&(this.executionTime=n),r instanceof Error?this.error=r:r.content?this.setResponse(r):this.setSummary(r)}setResponse(r){this.res=r}setSummary(r){!r.data&&!r.error?this.summary={data:r}:this.summary=r}hasError(){return!!(this.res&&this.res.status>=400||this.errorSummary||this.error||this.summary&&this.summary.error)}getError(){if(!this.errorSummary){if(this.res&&this.res.status>=400){let r=this.res.content||this.res.statusText;this.errorSummary={text:r,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}}if(this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error){let r=this.error;this.errorSummary={text:this.error.message,status:r.status,statusText:r.statusText}}}return this.errorSummary}getContentType(){if(this.res)return this.res.headers.get("content-type")||void 0;if(this.summary)return this.summary.contentType}getAsJson(){if(this.json)return this.json;if(!(this.json===!1||this.hasError()))return this.getParserFromContentType()?this.json:this.doLuckyGuess()?this.json:(this.json||(this.json=!1),this.json)}getData(){if(this.res){if(this.res.content)return this.res.content;if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}getResponseTime(){return this.executionTime}getParserFromContentType(){let r=this.getContentType();if(r){let n=$o(this.getData());try{if(r.indexOf("json")>-1){if(r.indexOf("sparql-results+json")>=0)return this.json=nc(n,pf),this.type="json",!0;if(r.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(r.indexOf("xml")>-1)return this.json=xc(n,pf),this.type="xml",!0;if(r.indexOf("csv")>-1)return this.json=N0(n),this.type="csv",!0;if(r.indexOf("tab-separated")>-1)return this.json=F0(n),this.type="tsv",!0;if(r.indexOf("turtle")>0||r.indexOf("trig")>0||r.indexOf("triple")>0||r.indexOf("quad")>0)return this.json=E0(n),this.type="ttl",!0}}catch(a){a instanceof Error?this.errorSummary={text:a.message}:this.errorSummary={text:a}}}return!1}doLuckyGuess(){let r=$o(this.getData());try{return this.json=nc(r,pf),this.type="json",!0}catch{}try{return this.json=xc(r,pf),this.type="xml",!0}catch{}return!1}getVariables(){let r=this.getAsJson();return r&&r.head?r.head.vars:[]}getBoolean(){let r=this.getAsJson();if(r&&"boolean"in r)return r.boolean}getBindings(){let r=this.getAsJson();return r&&r.results?r.results.bindings:null}getStatements(){return!this.statements&&this.type==="ttl"&&(this.statements=yc(this.getData())),this.statements?this.statements:null}getOriginalResponseAsString(){let r=this.getData();return typeof r=="string"?r:this.type==="json"?JSON.stringify(r,void 0,2):r}getType(){return this.type||this.getAsJson(),this.type}getStatus(){if(this.res)return this.res.status;if(this.summary)return this.summary.status}getAsStoreObject(r){let n=this.summary;if(!n&&this.res&&(n={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),n)return n.data&&n.data.length>r?void 0:n;if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}asCsv(){let r=this.getAsJson();if(this.type==="csv")return this.getOriginalResponseAsString();if(r&&r.results)return D0(r)}},gf=Sc;function mf(e){var r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(r)}function bf(e,r){return new Promise((n,a)=>{var u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("async",""),u.setAttribute("src",e),r&&(u.innerHTML=r),u.onload=()=>n(),document.getElementsByTagName("head")[0].appendChild(u)})}cs.addHook("afterSanitizeAttributes",e=>{e instanceof HTMLAnchorElement&&(e.target="_blank",e.rel="noopener noreferrer")});var Mi=cs.sanitize;var cN=Gr(X0()),hN=Gr($0());var ev='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>';var tv='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',rv='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>';var Iv=Gr(Ec(),1);var Q=Iv.default,ye=function(e,r){if(ye.factory(e,r))return ye;if(this instanceof ye)return Q(e).DataTable(r);r=e;var n=this,a=r===void 0,u=this.length;return a&&(r={}),this.api=function(){return new _t(this)},this.each(function(){var c={},h=u>1?pv(c,r,!0):r,b=0,x,_=this.getAttribute("id"),I=ye.defaults,F=Q(this);if(this.nodeName.toLowerCase()!="table"){ui(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}h.on&&h.on.options&&gv(F,"options",h.on.options),F.trigger("options.dt",h),ov(I),Av(I.column),Fa(I,I,!0),Fa(I.column,I.column,!0),Fa(I,Q.extend(h,Xv(F.data())),!0);var G=ye.settings;for(b=0,x=G.length;b<x;b++){var W=G[b];if(W.nTable==this||W.nTHead&&W.nTHead.parentNode==this||W.nTFoot&&W.nTFoot.parentNode==this){var U=h.bRetrieve!==void 0?h.bRetrieve:I.bRetrieve,X=h.bDestroy!==void 0?h.bDestroy:I.bDestroy;if(a||U)return W.oInstance;if(X){new ye.Api(W).destroy();break}else{ui(W,0,"Cannot reinitialise DataTable",3);return}}if(W.sTableId==this.id){G.splice(b,1);break}}(_===null||_==="")&&(_="DataTables_Table_"+ye.ext._unique++,this.id=_),F.children("colgroup").remove();var A=Q.extend(!0,{},ye.models.oSettings,{sDestroyWidth:F[0].style.width,sInstance:_,sTableId:_,colgroup:Q("<colgroup>").prependTo(this),fastData:function(ae,Ie,Fe){return fi(A,ae,Ie,Fe)}});A.nTable=this,A.oInit=h,G.push(A),A.api=new _t(A),A.oInstance=n.length===1?n:F.dataTable(),ov(h),h.aLengthMenu&&!h.iDisplayLength&&(h.iDisplayLength=Array.isArray(h.aLengthMenu[0])?h.aLengthMenu[0][0]:Q.isPlainObject(h.aLengthMenu[0])?h.aLengthMenu[0].value:h.aLengthMenu[0]),h=pv(Q.extend(!0,{},I),h),Ba(A.oFeatures,h,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Ba(A,h,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Ba(A.oScroll,h,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Ba(A.oLanguage,h,"fnInfoCallback"),si(A,"aoDrawCallback",h.fnDrawCallback),si(A,"aoStateSaveParams",h.fnStateSaveParams),si(A,"aoStateLoadParams",h.fnStateLoadParams),si(A,"aoStateLoaded",h.fnStateLoaded),si(A,"aoRowCallback",h.fnRowCallback),si(A,"aoRowCreatedCallback",h.fnCreatedRow),si(A,"aoHeaderCallback",h.fnHeaderCallback),si(A,"aoFooterCallback",h.fnFooterCallback),si(A,"aoInitComplete",h.fnInitComplete),si(A,"aoPreDrawCallback",h.fnPreDrawCallback),A.rowIdFn=hl(h.rowId),h.on&&Object.keys(h.on).forEach(function(ae){gv(F,ae,h.on[ae])}),b_(A);var k=A.oClasses;Q.extend(k,ye.ext.classes,h.oClasses),F.addClass(k.table),A.oFeatures.bPaginate||(h.iDisplayStart=0),A.iInitDisplayStart===void 0&&(A.iInitDisplayStart=h.iDisplayStart,A._iDisplayStart=h.iDisplayStart);var K=h.iDeferLoading;if(K!==null){A.deferLoading=!0;var V=Array.isArray(K);A._iRecordsDisplay=V?K[0]:K,A._iRecordsTotal=V?K[1]:K}var D=[],ee=this.getElementsByTagName("thead"),m=kv(A,ee[0]);if(h.aoColumns)D=h.aoColumns;else if(m.length)for(b=0,x=m[0].length;b<x;b++)D.push(null);for(b=0,x=D.length;b<x;b++)_v(A);x_(A,h.aoColumnDefs,D,m,function(ae,Ie){Uc(A,ae,Ie)});var Z=F.children("tbody").find("tr:first-child").eq(0);if(Z.length){var z=function(ae,Ie){return ae.getAttribute("data-"+Ie)!==null?Ie:null};Q(Z[0]).children("th, td").each(function(ae,Ie){var Fe=A.aoColumns[ae];if(Fe||ui(A,0,"Incorrect column count",18),Fe.mData===ae){var nt=z(Ie,"sort")||z(Ie,"order"),Ke=z(Ie,"filter")||z(Ie,"search");(nt!==null||Ke!==null)&&(Fe.mData={_:ae+".display",sort:nt!==null?ae+".@data-"+nt:void 0,type:nt!==null?ae+".@data-"+nt:void 0,filter:Ke!==null?ae+".@data-"+Ke:void 0},Fe._isArrayHost=!0,Uc(A,ae))}})}si(A,"aoDrawCallback",Gf);var se=A.oFeatures;if(h.bStateSave&&(se.bStateSave=!0),h.aaSorting===void 0){var Te=A.aaSorting;for(b=0,x=Te.length;b<x;b++)Te[b][1]=A.aoColumns[b].asSorting[0]}Dc(A),si(A,"aoDrawCallback",function(){(A.bSorted||Hn(A)==="ssp"||se.bDeferRender)&&Dc(A)});var q=F.children("caption");A.caption&&(q.length===0&&(q=Q("<caption/>").appendTo(F)),q.html(A.caption)),q.length&&(q[0]._captionSide=q.css("caption-side"),A.captionNode=q[0]),ee.length===0&&(ee=Q("<thead/>").appendTo(F)),A.nTHead=ee[0];var he=F.children("tbody");he.length===0&&(he=Q("<tbody/>").insertAfter(ee)),A.nTBody=he[0];var L=F.children("tfoot");L.length===0&&(L=Q("<tfoot/>").appendTo(F)),A.nTFoot=L[0],A.aiDisplay=A.aiDisplayMaster.slice(),A.bInitialised=!0;var xe=A.oLanguage;Q.extend(!0,xe,h.oLanguage),xe.sUrl?Q.ajax({dataType:"json",url:xe.sUrl,success:function(ae){Fa(I.oLanguage,ae),Q.extend(!0,xe,ae,A.oInit.oLanguage),Dt(A,null,"i18n",[A],!0),Cf(A)},error:function(){ui(A,0,"i18n file loading error",21),Cf(A)}}):(Dt(A,null,"i18n",[A],!0),Cf(A))}),n=null,this};ye.ext=Xr={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",escape:{attributes:!1},feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:ye.fnVersionCheck,iApiIndex:0,sVersion:ye.version};Q.extend(Xr,{afnFiltering:Xr.search,aTypes:Xr.type.detect,ofnSearch:Xr.type.search,oSort:Xr.type.order,afnSortData:Xr.order,aoFeatures:Xr.feature,oStdClasses:Xr.classes,oPagination:Xr.pager});Q.extend(ye.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var Xr,_t,ze,Qt,Ac={},c_=/[\r\n\u2028]/g,Zc=/<([^>]*>)/g,h_=Math.pow(2,28),av=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,p_=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),Mc=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Vn=function(e){return!e||e===!0||e==="-"},wv=function(e){var r=parseInt(e,10);return!isNaN(r)&&isFinite(e)?r:null},Rv=function(e,r){return Ac[r]||(Ac[r]=new RegExp(Gc(r),"g")),typeof e=="string"&&r!=="."?e.replace(/\./g,"").replace(Ac[r],"."):e},Es=function(e,r,n,a){var u=typeof e,c=u==="string";return u==="number"||u==="bigint"||a&&Vn(e)?!0:(r&&c&&(e=Rv(e,r)),n&&c&&(e=e.replace(Mc,"")),!isNaN(parseFloat(e))&&isFinite(e))},g_=function(e){return Vn(e)||typeof e=="string"},If=function(e,r,n,a){if(a&&Vn(e))return!0;if(typeof e=="string"&&e.match(/<(input|select)/i))return null;var u=g_(e);return u&&Es(ra(e),r,n,a)?!0:null},ln=function(e,r,n){var a=[],u=0,c=e.length;if(n!==void 0)for(;u<c;u++)e[u]&&e[u][r]&&a.push(e[u][r][n]);else for(;u<c;u++)e[u]&&a.push(e[u][r]);return a},Ns=function(e,r,n,a){var u=[],c=0,h=r.length;if(a!==void 0)for(;c<h;c++)e[r[c]]&&e[r[c]][n]&&u.push(e[r[c]][n][a]);else for(;c<h;c++)e[r[c]]&&u.push(e[r[c]][n]);return u},Na=function(e,r){var n=[],a;r===void 0?(r=0,a=e):(a=r,r=e);for(var u=r;u<a;u++)n.push(u);return n},Sv=function(e){for(var r=[],n=0,a=e.length;n<a;n++)e[n]&&r.push(e[n]);return r},ra=function(e){if(!e||typeof e!="string")return e;if(e.length>h_)throw new Error("Exceeded max str len");var r;e=e.replace(Zc,"");do r=e,e=e.replace(/<script/i,"");while(e!==r);return r},uo=function(e){return Array.isArray(e)&&(e=e.join(",")),typeof e=="string"?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},wf=function(e,r){if(typeof e!="string")return e;var n=e.normalize?e.normalize("NFD"):e;return n.length!==e.length?(r===!0?e+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},m_=function(e){if(e.length<2)return!0;for(var r=e.slice().sort(),n=r[0],a=1,u=r.length;a<u;a++){if(r[a]===n)return!1;n=r[a]}return!0},gl=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(m_(e))return e.slice();var r=[],n,a,u=e.length,c,h=0;e:for(a=0;a<u;a++){for(n=e[a],c=0;c<h;c++)if(r[c]===n)continue e;r.push(n),h++}return r},Ev=function(e,r){if(Array.isArray(r))for(var n=0;n<r.length;n++)Ev(e,r[n]);else e.push(r);return e};function cl(e,r){r&&r.split(" ").forEach(function(n){n&&e.classList.add(n)})}ye.util={diacritics:function(e,r){var n=typeof e;if(n!=="function")return wf(e,r);wf=e},debounce:function(e,r){var n;return function(){var a=this,u=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(a,u)},r||250)}},throttle:function(e,r){var n=r!==void 0?r:200,a,u;return function(){var c=this,h=+new Date,b=arguments;a&&h<a+n?(clearTimeout(u),u=setTimeout(function(){a=void 0,e.apply(c,b)},n)):(a=h,e.apply(c,b))}},escapeRegex:function(e){return e.replace(p_,"\\$1")},set:function(e){if(Q.isPlainObject(e))return ye.util.set(e._);if(e===null)return function(){};if(typeof e=="function")return function(n,a,u){e(n,"set",a,u)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var r=function(n,a,u){for(var c=sv(u),h,b=c[c.length-1],x,_,I,F,G=0,W=c.length-1;G<W;G++){if(c[G]==="__proto__"||c[G]==="constructor")throw new Error("Cannot set prototype values");if(x=c[G].match(Ss),_=c[G].match(fl),x){if(c[G]=c[G].replace(Ss,""),n[c[G]]=[],h=c.slice(),h.splice(0,G+1),F=h.join("."),Array.isArray(a))for(var U=0,X=a.length;U<X;U++)I={},r(I,a[U],F),n[c[G]].push(I);else n[c[G]]=a;return}else _&&(c[G]=c[G].replace(fl,""),n=n[c[G]](a));(n[c[G]]===null||n[c[G]]===void 0)&&(n[c[G]]={}),n=n[c[G]]}b.match(fl)?n=n[b.replace(fl,"")](a):n[b.replace(Ss,"")]=a};return function(n,a){return r(n,a,e)}}else return function(n,a){n[e]=a}},get:function(e){if(Q.isPlainObject(e)){var r={};return Q.each(e,function(a,u){u&&(r[a]=ye.util.get(u))}),function(a,u,c,h){var b=r[u]||r._;return b!==void 0?b(a,u,c,h):a}}else{if(e===null)return function(a){return a};if(typeof e=="function")return function(a,u,c,h){return e(a,u,c,h)};if(typeof e=="string"&&(e.indexOf(".")!==-1||e.indexOf("[")!==-1||e.indexOf("(")!==-1)){var n=function(a,u,c){var h,b,x,_;if(c!=="")for(var I=sv(c),F=0,G=I.length;F<G;F++){if(h=I[F].match(Ss),b=I[F].match(fl),h){if(I[F]=I[F].replace(Ss,""),I[F]!==""&&(a=a[I[F]]),x=[],I.splice(0,F+1),_=I.join("."),Array.isArray(a))for(var W=0,U=a.length;W<U;W++)x.push(n(a[W],u,_));var X=h[0].substring(1,h[0].length-1);a=X===""?x:x.join(X);break}else if(b){I[F]=I[F].replace(fl,""),a=a[I[F]]();continue}if(a===null||a[I[F]]===null)return null;if(a===void 0||a[I[F]]===void 0)return;a=a[I[F]]}return a};return function(a,u){return n(a,u,e)}}else return function(a){return a[e]}}},stripHtml:function(e){var r=typeof e;if(r==="function"){ra=e;return}else if(r==="string")return ra(e);return e},escapeHtml:function(e){var r=typeof e;if(r==="function"){uo=e;return}else if(r==="string"||Array.isArray(e))return uo(e);return e},unique:gl};function Nf(e){var r="a aa ai ao as b fn i m o s ",n,a,u={};Q.each(e,function(c){n=c.match(/^([^A-Z]+?)([A-Z])/),n&&r.indexOf(n[1]+" ")!==-1&&(a=c.replace(n[0],n[2].toLowerCase()),u[a]=c,n[1]==="o"&&Nf(e[c]))}),e._hungarianMap=u}function Fa(e,r,n){e._hungarianMap||Nf(e);var a;Q.each(r,function(u){a=e._hungarianMap[u],a!==void 0&&(n||r[a]===void 0)&&(a.charAt(0)==="o"?(r[a]||(r[a]={}),Q.extend(!0,r[a],r[u]),Fa(e[a],r[a],n)):r[a]=r[u])})}var Un=function(e,r,n){e[r]!==void 0&&(e[n]=e[r])};function ov(e){Un(e,"ordering","bSort"),Un(e,"orderMulti","bSortMulti"),Un(e,"orderClasses","bSortClasses"),Un(e,"orderCellsTop","bSortCellsTop"),Un(e,"order","aaSorting"),Un(e,"orderFixed","aaSortingFixed"),Un(e,"paging","bPaginate"),Un(e,"pagingType","sPaginationType"),Un(e,"pageLength","iDisplayLength"),Un(e,"searching","bFilter"),typeof e.sScrollX=="boolean"&&(e.sScrollX=e.sScrollX?"100%":""),typeof e.scrollX=="boolean"&&(e.scrollX=e.scrollX?"100%":""),typeof e.bSort=="object"?(e.orderIndicators=e.bSort.indicators!==void 0?e.bSort.indicators:!0,e.orderHandler=e.bSort.handler!==void 0?e.bSort.handler:!0,e.bSort=!0):e.bSort===!1?(e.orderIndicators=!1,e.orderHandler=!1):e.bSort===!0&&(e.orderIndicators=!0,e.orderHandler=!0),typeof e.bSortCellsTop=="boolean"&&(e.titleRow=e.bSortCellsTop);var r=e.aoSearchCols;if(r)for(var n=0,a=r.length;n<a;n++)r[n]&&Fa(ye.models.oSearch,r[n]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function Av(e){Un(e,"orderable","bSortable"),Un(e,"orderData","aDataSort"),Un(e,"orderSequence","asSorting"),Un(e,"orderDataType","sortDataType");var r=e.aDataSort;typeof r=="number"&&!Array.isArray(r)&&(e.aDataSort=[r])}function b_(e){if(!ye.__browser){var r={};ye.__browser=r;var n=Q("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(Q("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(Q("<div/>").css({width:"100%",height:10}))).appendTo("body"),a=n.children(),u=a.children();r.barWidth=a[0].offsetWidth-a[0].clientWidth,r.bScrollbarLeft=Math.round(u.offset().left)!==1,n.remove()}Q.extend(e.oBrowser,ye.__browser),e.oScroll.iBarWidth=ye.__browser.barWidth}function _v(e){var r=ye.defaults.column,n=e.aoColumns.length,a=Q.extend({},ye.models.oColumn,r,{aDataSort:r.aDataSort?r.aDataSort:[n],mData:r.mData?r.mData:n,idx:n,searchFixed:{},colEl:Q("<col>").attr("data-dt-column",n)});e.aoColumns.push(a);var u=e.aoPreSearchCols;u[n]=Q.extend({},ye.models.oSearch,u[n])}function Uc(e,r,n){var a=e.aoColumns[r];if(n!=null){Av(n),Fa(ye.defaults.column,n,!0),n.mDataProp!==void 0&&!n.mData&&(n.mData=n.mDataProp),n.sType&&(a._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className);var u=a.sClass;Q.extend(a,n),Ba(a,n,"sWidth","sWidthOrig"),u!==a.sClass&&(a.sClass=u+" "+a.sClass),n.iDataSort!==void 0&&(a.aDataSort=[n.iDataSort]),Ba(a,n,"aDataSort")}var c=a.mData,h=hl(c);if(a.mRender&&Array.isArray(a.mRender)){var b=a.mRender.slice(),x=b.shift();a.mRender=ye.render[x].apply(window,b)}a._render=a.mRender?hl(a.mRender):null;var _=function(I){return typeof I=="string"&&I.indexOf("@")!==-1};a._bAttrSrc=Q.isPlainObject(c)&&(_(c.sort)||_(c.type)||_(c.filter)),a._setter=null,a.fnGetData=function(I,F,G){var W=h(I,F,void 0,G);return a._render&&F?a._render(W,F,I,G):W},a.fnSetData=function(I,F,G){return lo(c)(I,F,G)},typeof c!="number"&&!a._isArrayHost&&(e._rowReadObject=!0),e.oFeatures.bSort||(a.bSortable=!1)}function Ff(e){k_(e),v_(e);var r=e.oScroll;(r.sY!==""||r.sX!=="")&&Ov(e),Dt(e,null,"column-sizing",[e])}function v_(e){for(var r=e.aoColumns,n=0;n<r.length;n++){var a=Nv(e,[n],!1,!1);r[n].colEl.css("width",a),e.oScroll.sX&&r[n].colEl.css("min-width",a)}}function Vc(e,r){var n=Qc(e,"bVisible");return typeof n[r]=="number"?n[r]:null}function Fs(e,r){var n=Qc(e,"bVisible"),a=n.indexOf(r);return a!==-1?a:null}function Lf(e){var r=e.aoHeader,n=e.aoColumns,a=0;if(r.length)for(var u=0,c=r[0].length;u<c;u++)n[u].bVisible&&Q(r[0][u].cell).css("display")!=="none"&&a++;return a}function Qc(e,r){var n=[];return e.aoColumns.map(function(a,u){a[r]&&n.push(u)}),n}function _c(e,r){return r===!0?e._name:r}function Bf(e){var r=e.aoColumns,n=e.aoData,a=ye.ext.type.detect,u,c,h,b,x,_,I,F,G;for(u=0,c=r.length;u<c;u++){if(I=r[u],G=[],!I.sType&&I._sManualType)I.sType=I._sManualType;else if(!I.sType){if(!e.typeDetect)return;for(h=0,b=a.length;h<b;h++){var W=a[h],U=W.oneOf,X=W.allOf||W,A=W.init,k=!1;if(F=null,A&&(F=_c(W,A(e,I,u)),F)){I.sType=F;break}for(x=0,_=n.length;x<_&&!(n[x]&&(G[x]===void 0&&(G[x]=fi(e,x,u,"type")),U&&!k&&(k=_c(W,U(G[x],e))),F=_c(W,X(G[x],e)),!F&&h!==a.length-3||F==="html"&&!Vn(G[x])));x++);if(U&&k&&F||!U&&F){I.sType=F;break}}I.sType||(I.sType="string")}var K=Xr.type.className[I.sType];K&&(lv(e.aoHeader,u,K),lv(e.aoFooter,u,K));var V=Xr.type.render[I.sType];V&&!I._render&&(I._render=ye.util.get(V),y_(e,u))}}function y_(e,r){for(var n=e.aoData,a=0;a<n.length;a++)if(n[a].nTr){var u=fi(e,a,r,"display");n[a].displayData[r]=u,Rf(n[a].anCells[r],u)}}function lv(e,r,n){e.forEach(function(a){a[r]&&a[r].unique&&cl(a[r].cell,n)})}function x_(e,r,n,a,u){var c,h,b,x,_,I,F,G=e.aoColumns;if(n)for(c=0,h=n.length;c<h;c++)n[c]&&n[c].name&&(G[c].sName=n[c].name);if(r)for(c=r.length-1;c>=0;c--){F=r[c];var W=F.target!==void 0?F.target:F.targets!==void 0?F.targets:F.aTargets;for(Array.isArray(W)||(W=[W]),b=0,x=W.length;b<x;b++){var U=W[b];if(typeof U=="number"&&U>=0){for(;G.length<=U;)_v(e);u(U,F)}else if(typeof U=="number"&&U<0)u(G.length+U,F);else if(typeof U=="string")for(_=0,I=G.length;_<I;_++)U==="_all"?u(_,F):U.indexOf(":name")!==-1?G[_].sName===U.replace(":name","")&&u(_,F):a.forEach(function(X){if(X[_]){var A=Q(X[_].cell);U.match(/^[a-z][\w-]*$/i)&&(U="."+U),A.is(U)&&u(_,F)}})}}if(n)for(c=0,h=n.length;c<h;c++)u(c,n[c])}function Nv(e,r,n,a){Array.isArray(r)||(r=Hc(r));for(var u=0,c,h=e.aoColumns,b=0,x=r.length;b<x;b++){var _=h[r[b]],I=n?_.sWidthOrig:_.sWidth;if(!(!a&&_.bVisible===!1)){if(I==null)return null;if(typeof I=="number")c="px",u+=I;else{var F=I.match(/([\d\.]+)([^\d]*)/);F&&(u+=F[1]*1,c=F.length===3?F[2]:"px")}}}return u+c}function Hc(e){var r=Q(e).closest("[data-dt-column]").attr("data-dt-column");return r?r.split(",").map(function(n){return n*1}):[]}function fo(e,r,n,a){var u=e.aoData.length,c=Q.extend(!0,{},ye.models.oRow,{src:n?"dom":"data",idx:u});c._aData=r,e.aoData.push(c);for(var h=e.aoColumns,b=0,x=h.length;b<x;b++)h[b].sType=null;e.aiDisplayMaster.push(u);var _=e.rowIdFn(r);return _!==void 0&&(e.aIds[_]=c),(n||!e.oFeatures.bDeferRender)&&Lv(e,u,n,a),u}function Xc(e,r){var n;return r instanceof Q||(r=Q(r)),r.map(function(a,u){return n=Fv(e,u),fo(e,n.data,u,n.cells)})}function fi(e,r,n,a){a==="search"?a="filter":a==="order"&&(a="sort");var u=e.aoData[r];if(u){var c=e.iDraw,h=e.aoColumns[n],b=u._aData,x=h.sDefaultContent,_=h.fnGetData(b,a,{settings:e,row:r,col:n});if(a!=="display"&&_&&typeof _=="object"&&_.nodeName&&(_=_.innerHTML),_===void 0)return e.iDrawError!=c&&x===null&&(ui(e,0,"Requested unknown parameter "+(typeof h.mData=="function"?"{function}":"'"+h.mData+"'")+" for row "+r+", column "+n,4),e.iDrawError=c),x;if((_===b||_===null)&&x!==null&&a!==void 0)_=x;else if(typeof _=="function")return _.call(b);if(_===null&&a==="display")return"";if(a==="filter"){var I=ye.ext.type.search;I[h.sType]&&(_=I[h.sType](_))}return _}}function T_(e,r,n,a){var u=e.aoColumns[n],c=e.aoData[r]._aData;u.fnSetData(c,a,{settings:e,row:r,col:n})}function Rf(e,r){r&&typeof r=="object"&&r.nodeName?Q(e).empty().append(r):e.innerHTML=r}var Ss=/\[.*?\]$/,fl=/\(\)$/;function sv(e){var r=e.match(/(\\.|[^.])+/g)||[""];return r.map(function(n){return n.replace(/\\\./g,".")})}var hl=ye.util.get,lo=ye.util.set;function uv(e){return ln(e.aoData,"_aData")}function Jc(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function Uf(e,r,n,a){var u=e.aoData[r],c,h;if(u._aSortData=null,u._aFilterData=null,u.displayData=null,n==="dom"||(!n||n==="auto")&&u.src==="dom")u._aData=Fv(e,u,a,a===void 0?void 0:u._aData).data;else{var b=u.anCells,x=jc(e,r);if(b)if(a!==void 0)Rf(b[a],x[a]);else for(c=0,h=b.length;c<h;c++)Rf(b[c],x[c])}var _=e.aoColumns;if(a!==void 0)_[a].sType=null,_[a].wideStrings=null;else{for(c=0,h=_.length;c<h;c++)_[c].sType=null,_[c].wideStrings=null;Bv(e,u)}}function Fv(e,r,n,a){var u=[],c=r.firstChild,h,b,x=0,_,I=e.aoColumns,F=e._rowReadObject;a=a!==void 0?a:F?{}:[];var G=function(K,V){if(typeof K=="string"){var D=K.indexOf("@");if(D!==-1){var ee=K.substring(D+1),m=lo(K);m(a,V.getAttribute(ee))}}},W=function(K){if(n===void 0||n===x)if(b=I[x],_=K.innerHTML.trim(),b&&b._bAttrSrc){var V=lo(b.mData._);V(a,_),G(b.mData.sort,K),G(b.mData.type,K),G(b.mData.filter,K)}else F?(b._setter||(b._setter=lo(b.mData)),b._setter(a,_)):a[x]=_;x++};if(c)for(;c;)h=c.nodeName.toUpperCase(),(h=="TD"||h=="TH")&&(W(c),u.push(c)),c=c.nextSibling;else{u=r.anCells;for(var U=0,X=u.length;U<X;U++)W(u[U])}var A=r.firstChild?r:r.nTr;if(A){var k=A.getAttribute("id");k&&lo(e.rowId)(a,k)}return{data:a,cells:u}}function jc(e,r){var n=e.aoData[r],a=e.aoColumns;if(!n.displayData){n.displayData=[];for(var u=0,c=a.length;u<c;u++)n.displayData.push(fi(e,r,u,"display"))}return n.displayData}function Lv(e,r,n,a){var u=e.aoData[r],c=u._aData,h=[],b,x,_,I,F,G,W=e.oClasses.tbody.row;if(u.nTr===null){for(b=n||document.createElement("tr"),u.nTr=b,u.anCells=h,cl(b,W),b._DT_RowIndex=r,Bv(e,u),I=0,F=e.aoColumns.length;I<F;I++){_=e.aoColumns[I],G=!(n&&a[I]),x=G?document.createElement(_.sCellType):a[I],x||ui(e,0,"Incorrect column count",18),x._DT_CellIndex={row:r,column:I},h.push(x);var U=jc(e,r);(G||(_.mRender||_.mData!==I)&&(!Q.isPlainObject(_.mData)||_.mData._!==I+".display"))&&Rf(x,U[I]),cl(x,_.sClass),_.bVisible&&G?b.appendChild(x):!_.bVisible&&!G&&x.parentNode.removeChild(x),_.fnCreatedCell&&_.fnCreatedCell.call(e.oInstance,x,fi(e,r,I),c,r,I)}Dt(e,"aoRowCreatedCallback","row-created",[b,c,r,h])}else cl(u.nTr,W)}function Bv(e,r){var n=r.nTr,a=r._aData;if(n){var u=e.rowIdFn(a);if(u&&(n.id=u),a.DT_RowClass){var c=a.DT_RowClass.split(" ");r.__rowc=r.__rowc?gl(r.__rowc.concat(c)):c,Q(n).removeClass(r.__rowc.join(" ")).addClass(a.DT_RowClass)}a.DT_RowAttr&&Q(n).attr(a.DT_RowAttr),a.DT_RowData&&Q(n).data(a.DT_RowData)}}function fv(e,r){var n=e.oClasses,a=e.aoColumns,u,c,h,b=r==="header"?e.nTHead:e.nTFoot,x=r==="header"?"sTitle":r;if(b){if((r==="header"||ln(e.aoColumns,x).join(""))&&(h=Q("tr",b),h.length||(h=Q("<tr/>").appendTo(b)),h.length===1)){var _=0;for(Q("td, th",h).each(function(){_+=this.colSpan}),u=_,c=a.length;u<c;u++)Q("<th/>").html(a[u][x]||"").appendTo(h)}var I=kv(e,b,!0);r==="header"?(e.aoHeader=I,Q("tr",b).addClass(n.thead.row)):(e.aoFooter=I,Q("tr",b).addClass(n.tfoot.row)),Q(b).children("tr").children("th, td").each(function(){Af(e,r)(e,Q(this),n)})}}function Uv(e,r,n){var a,u,c,h=[],b=[],x=e.aoColumns,_=x.length,I,F;if(r){for(n||(n=Na(_).filter(function(U){return x[U].bVisible})),a=0;a<r.length;a++)h[a]=r[a].slice().filter(function(U,X){return n.includes(X)}),b.push([]);for(a=0;a<h.length;a++)for(u=0;u<h[a].length;u++)if(I=1,F=1,b[a][u]===void 0){for(c=h[a][u].cell;h[a+I]!==void 0&&h[a][u].cell==h[a+I][u].cell;)b[a+I][u]=null,I++;for(;h[a][u+F]!==void 0&&h[a][u].cell==h[a][u+F].cell;){for(var G=0;G<I;G++)b[a+G][u+F]=null;F++}var W=Q("span.dt-column-title",c);b[a][u]={cell:c,colspan:F,rowspan:I,title:W.length?W.html():Q(c).html()}}return b}}function Sf(e,r){for(var n=Uv(e,r),a,u,c=0;c<r.length;c++){if(a=r[c].row,a)for(;u=a.firstChild;)a.removeChild(u);for(var h=0;h<n[c].length;h++){var b=n[c][h];b&&Q(b.cell).appendTo(a).attr("rowspan",b.rowspan).attr("colspan",b.colspan)}}}function ml(e,r){S_(e);var n=Dt(e,"aoPreDrawCallback","preDraw",[e]);if(n.indexOf(!1)!==-1){Qn(e,!1);return}var a=[],u=0,c=Hn(e)=="ssp",h=e.aiDisplay,b=e._iDisplayStart,x=e.fnDisplayEnd(),_=e.aoColumns,I=Q(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,Qn(e,!1);else if(!c)e.iDraw++;else if(!e.bDestroying&&!r){e.iDraw===0&&I.empty().append(dv(e)),E_(e);return}if(h.length!==0)for(var F=c?0:b,G=c?e.aoData.length:x,W=F;W<G;W++){var U=h[W],X=e.aoData[U];if(X!==null){X.nTr===null&&Lv(e,U);for(var A=X.nTr,k=0;k<_.length;k++){var K=_[k],V=X.anCells[k];cl(V,Xr.type.className[K.sType]),cl(V,e.oClasses.tbody.cell)}Dt(e,"aoRowCallback",null,[A,X._aData,u,W,U]),a.push(A),u++}}else a[0]=dv(e);Dt(e,"aoHeaderCallback","header",[Q(e.nTHead).children("tr")[0],uv(e),b,x,h]),Dt(e,"aoFooterCallback","footer",[Q(e.nTFoot).children("tr")[0],uv(e),b,x,h]),I[0].replaceChildren?I[0].replaceChildren.apply(I[0],a):(I.children().detach(),I.append(Q(a))),Q(e.nTableWrapper).toggleClass("dt-empty-footer",Q("tr",e.nTFoot).length===0),Dt(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function pl(e,r,n){var a=e.oFeatures,u=a.bSort,c=a.bFilter;(n===void 0||n===!0)&&(Bf(e),u&&zc(e),c?_s(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),r!==!0&&(e._iDisplayStart=0),e._drawHold=r,ml(e),e.api.one("draw",function(){e._drawHold=!1})}function dv(e){var r=e.oLanguage,n=r.sZeroRecords,a=Hn(e);return(a==="ssp"||a==="ajax")&&!e.json?n=r.sLoadingRecords:r.sEmptyTable&&e.fnRecordsTotal()===0&&(n=r.sEmptyTable),Q("<tr/>").append(Q("<td />",{colSpan:Lf(e),class:e.oClasses.empty.row}).html(n))[0]}function kc(e,r,n){if(Array.isArray(n)){for(var a=0;a<n.length;a++)kc(e,r,n[a]);return}var u=e[r];Q.isPlainObject(n)?n.features?(n.rowId&&(e.id=n.rowId),n.rowClass&&(e.className=n.rowClass),u.id=n.id,u.className=n.className,kc(e,r,n.features)):Object.keys(n).map(function(c){u.contents.push({feature:c,opts:n[c]})}):u.contents.push(n)}function C_(e,r,n){for(var a,u=0;u<e.length;u++)if(a=e[u],a.rowNum===r&&(n==="full"&&a.full||(n==="start"||n==="end")&&(a.start||a.end)))return a[n]||(a[n]={contents:[]}),a;return a={rowNum:r},a[n]={contents:[]},e.push(a),a}function cv(e,r,n){var a=[];Q.each(r,function(c,h){if(h!==null){var b=c.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),x=b[2]?b[2]*1:0,_=b[3]?b[3].toLowerCase():"full";if(b[1]===n){var I=C_(a,x,_);kc(I,_,h)}}}),a.sort(function(c,h){var b=c.rowNum,x=h.rowNum;if(b===x){var _=c.full&&!h.full?-1:1;return n==="bottom"?_*-1:_}return x-b}),n==="bottom"&&a.reverse();for(var u=0;u<a.length;u++)delete a[u].rowNum,I_(e,a[u]);return a}function I_(e,r){var n=function(u,c){return Xr.features[u]||ui(e,0,"Unknown feature: "+u),Xr.features[u].apply(this,[e,c])},a=function(u){if(r[u])for(var c=r[u].contents,h=0,b=c.length;h<b;h++)if(c[h]){if(typeof c[h]=="string")c[h]=n(c[h],null);else if(Q.isPlainObject(c[h]))c[h]=n(c[h].feature,c[h].opts);else if(typeof c[h].node=="function")c[h]=c[h].node(e);else if(typeof c[h]=="function"){var x=c[h](e);c[h]=typeof x.node=="function"?x.node():x}}else continue};a("start"),a("end"),a("full")}function w_(e){var r=e.oClasses,n=Q(e.nTable),a=Q("<div/>").attr({id:e.sTableId+"_wrapper",class:r.container}).insertBefore(n);if(e.nTableWrapper=a[0],e.sDom)R_(e,e.sDom,a);else{var u=cv(e,e.layout,"top"),c=cv(e,e.layout,"bottom"),h=Af(e,"layout");u.forEach(function(b){h(e,a,b)}),h(e,a,{full:{table:!0,contents:[Wv(e)]}}),c.forEach(function(b){h(e,a,b)})}U_(e)}function R_(e,r,n){for(var a=r.match(/(".*?")|('.*?')|./g),u,c,h,b,x,_=0;_<a.length;_++){if(u=null,c=a[_],c=="<"){if(h=Q("<div/>"),b=a[_+1],b[0]=="'"||b[0]=='"'){x=b.replace(/['"]/g,"");var I="",F;if(x.indexOf(".")!=-1){var G=x.split(".");I=G[0],F=G[1]}else x[0]=="#"?I=x:F=x;h.attr("id",I.substring(1)).addClass(F),_++}n.append(h),n=h}else c==">"?n=n.parent():c=="t"?u=Wv(e):ye.ext.feature.forEach(function(W){c==W.cFeature&&(u=W.fnInit(e))});u&&n.append(u)}}function kv(e,r,n){var a=e.aoColumns,u=Q(r).children("tr"),c,h,b,x,_,I,F,G,W,U,X=e.titleRow,A=r&&r.nodeName.toLowerCase()==="thead",k=[],K,V=function(Te,q,he){for(var L=Te[q];L[he];)he++;return he};for(b=0,I=u.length;b<I;b++)k.push([]);for(b=0,I=u.length;b<I;b++)for(c=u[b],G=0,h=c.firstChild;h;){if(h.nodeName.toUpperCase()=="TD"||h.nodeName.toUpperCase()=="TH"){var D=[],ee=Q(h);if(W=h.getAttribute("colspan")*1,U=h.getAttribute("rowspan")*1,W=!W||W===0||W===1?1:W,U=!U||U===0||U===1?1:U,F=V(k,b,G),K=W===1,n){if(K){Uc(e,F,Xv(ee.data()));var m=a[F],Z=h.getAttribute("width")||null,z=h.style.width.match(/width:\s*(\d+[pxem%]+)/);z&&(Z=z[1]),m.sWidthOrig=m.sWidth||Z,A?(m.sTitle!==null&&!m.autoTitle&&(X===!0&&b===0||X===!1&&b===u.length-1||X===b||X===null)&&(h.innerHTML=m.sTitle),!m.sTitle&&K&&(m.sTitle=ra(h.innerHTML),m.autoTitle=!0)):m.footer&&(h.innerHTML=m.footer),m.ariaTitle||(m.ariaTitle=ee.attr("aria-label")||m.sTitle),m.className&&ee.addClass(m.className)}Q("span.dt-column-title",h).length===0&&Q("<span>").addClass("dt-column-title").append(h.childNodes).appendTo(h),e.orderIndicators&&A&&ee.filter(":not([data-dt-order=disable])").length!==0&&ee.parent(":not([data-dt-order=disable])").length!==0&&Q("span.dt-column-order",h).length===0&&Q("<span>").addClass("dt-column-order").appendTo(h);var se=A?"header":"footer";Q("span.dt-column-"+se,h).length===0&&Q("<div>").addClass("dt-column-"+se).append(h.childNodes).appendTo(h)}for(_=0;_<W;_++){for(x=0;x<U;x++)k[b+x][F+_]={cell:h,unique:K},k[b+x].row=c;D.push(F+_)}h.setAttribute("data-dt-column",gl(D).join(","))}h=h.nextSibling}return k}function S_(e){var r=Hn(e)=="ssp",n=e.iInitDisplayStart;n!==void 0&&n!==-1&&(e._iDisplayStart=r?n:n>=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function Yc(e,r,n){var a,u=e.ajax,c=e.oInstance,h=function(I){var F=e.jqXHR?e.jqXHR.status:null;(I===null||typeof F=="number"&&F==204)&&(I={},As(e,I,[]));var G=I.error||I.sError;if(G&&ui(e,0,G),I.d&&typeof I.d=="string")try{I=JSON.parse(I.d)}catch{}e.json=I,Dt(e,null,"xhr",[e,I,e.jqXHR],!0),n(I)};if(Q.isPlainObject(u)&&u.data){a=u.data;var b=typeof a=="function"?a(r,e):a;r=typeof a=="function"&&b?b:Q.extend(!0,r,b),delete u.data}var x={url:typeof u=="string"?u:"",data:r,success:h,dataType:"json",cache:!1,type:e.sServerMethod,error:function(I,F){var G=Dt(e,null,"xhr",[e,null,e.jqXHR],!0);G.indexOf(!0)===-1&&(F=="parsererror"?ui(e,0,"Invalid JSON response",1):I.readyState===4&&ui(e,0,"Ajax error",7)),Qn(e,!1)}};if(Q.isPlainObject(u)&&Q.extend(x,u),e.oAjaxData=r,Dt(e,null,"preXhr",[e,r,x],!0),x.submitAs==="json"&&typeof r=="object"&&(x.data=JSON.stringify(r)),typeof u=="function")e.jqXHR=u.call(c,r,h,e);else if(u.url===""){var _={};As(e,_,[]),h(_)}else e.jqXHR=Q.ajax(x);a&&(u.data=a)}function E_(e){e.iDraw++,Qn(e,!0),Yc(e,A_(e),function(r){__(e,r)})}function A_(e){var r=e.aoColumns,n=e.oFeatures,a=e.oPreviousSearch,u=e.aoPreSearchCols,c=function(h,b){return typeof r[h][b]=="function"?"function":r[h][b]};return{draw:e.iDraw,columns:r.map(function(h,b){return{data:c(b,"mData"),name:h.sName,searchable:h.bSearchable,orderable:h.bSortable,search:{value:u[b].search,regex:u[b].regex,fixed:Object.keys(h.searchFixed).map(function(x){return{name:x,term:typeof h.searchFixed[x]!="function"?h.searchFixed[x].toString():"function"}})}}}),order:kf(e).map(function(h){return{column:h.col,dir:h.dir,name:c(h.col,"sName")}}),start:e._iDisplayStart,length:n.bPaginate?e._iDisplayLength:-1,search:{value:a.search,regex:a.regex,fixed:Object.keys(e.searchFixed).map(function(h){return{name:h,term:typeof e.searchFixed[h]!="function"?e.searchFixed[h].toString():"function"}})}}}function __(e,r){var n=As(e,r),a=Nc(e,"draw",r),u=Nc(e,"recordsTotal",r),c=Nc(e,"recordsFiltered",r);if(a!==void 0){if(a*1<e.iDraw)return;e.iDraw=a*1}n||(n=[]),Jc(e),e._iRecordsTotal=parseInt(u,10),e._iRecordsDisplay=parseInt(c,10);for(var h=0,b=n.length;h<b;h++)fo(e,n[h]);e.aiDisplay=e.aiDisplayMaster.slice(),Bf(e),ml(e,!0),Ef(e),Qn(e,!1)}function As(e,r,n){var a="data";if(Q.isPlainObject(e.ajax)&&e.ajax.dataSrc!==void 0){var u=e.ajax.dataSrc;typeof u=="string"||typeof u=="function"?a=u:u.data!==void 0&&(a=u.data)}if(!n)return a==="data"?r.aaData||r[a]:a!==""?hl(a)(r):r;lo(a)(r,n)}function Nc(e,r,n){var a=Q.isPlainObject(e.ajax)?e.ajax.dataSrc:null;if(a&&a[r])return hl(a[r])(n);var u="";return r==="draw"?u="sEcho":r==="recordsTotal"?u="iTotalRecords":r==="recordsFiltered"&&(u="iTotalDisplayRecords"),n[u]!==void 0?n[u]:n[r]}function _s(e,r){var n=e.aoPreSearchCols;if(Hn(e)!="ssp"){B_(e),e.aiDisplay=e.aiDisplayMaster.slice(),yf(e.aiDisplay,e,r.search,r),Q.each(e.searchFixed,function(c,h){yf(e.aiDisplay,e,h,{})});for(var a=0;a<n.length;a++){var u=n[a];yf(e.aiDisplay,e,u.search,u,a),Q.each(e.aoColumns[a].searchFixed,function(c,h){yf(e.aiDisplay,e,h,{},a)})}N_(e)}e.bFiltered=!0,Dt(e,null,"search",[e])}function N_(e){for(var r=ye.ext.search,n=e.aiDisplay,a,u,c=0,h=r.length;c<h;c++){for(var b=[],x=0,_=n.length;x<_;x++)u=n[x],a=e.aoData[u],r[c](e,a._aFilterData,u,a._aData,x)&&b.push(u);n.length=0,Df(n,b)}}function yf(e,r,n,a,u){if(n!==""){var c=0,h=[],b=typeof n=="function"?n:null,x=n instanceof RegExp?n:b?null:F_(n,a);for(c=0;c<e.length;c++){var _=r.aoData[e[c]],I=u===void 0?_._sFilterRow:_._aFilterData[u];(b&&b(I,_._aData,e[c],u)||x&&x.test(I))&&h.push(e[c])}for(e.length=h.length,c=0;c<h.length;c++)e[c]=h[c]}}function F_(e,r){var n=[],a=Q.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},r);if(typeof e!="string"&&(e=e.toString()),e=wf(e),a.exact)return new RegExp("^"+Gc(e)+"$",a.caseInsensitive?"i":"");if(e=a.regex?e:Gc(e),a.smart){var u=e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],c=u.map(function(x){var _=!1,I;return x.charAt(0)==="!"&&(_=!0,x=x.substring(1)),x.charAt(0)==='"'?(I=x.match(/^"(.*)"$/),x=I?I[1]:x):x.charAt(0)==="\u201C"&&(I=x.match(/^\u201C(.*)\u201D$/),x=I?I[1]:x),_&&(x.length>1&&n.push("(?!"+x+")"),x=""),x.replace(/"/g,"")}),h=n.length?n.join(""):"",b=a.boundary?"\\b":"";e="^(?=.*?"+b+c.join(")(?=.*?"+b)+")("+h+".)*$"}return new RegExp(e,a.caseInsensitive?"i":"")}var Gc=ye.util.escapeRegex,Tf=Q("<div>")[0],L_=Tf.textContent!==void 0;function B_(e){for(var r=e.aoColumns,n=e.aoData,a,u,c,h,b,x,_=!1,I=0;I<n.length;I++)if(n[I]&&(x=n[I],!x._aFilterData)){for(h=[],u=0,c=r.length;u<c;u++)a=r[u],a.bSearchable?(b=fi(e,I,u,"filter"),b===null&&(b=""),typeof b!="string"&&b.toString&&(b=b.toString())):b="",b.indexOf&&b.indexOf("&")!==-1&&(Tf.innerHTML=b,b=L_?Tf.textContent:Tf.innerText),b.replace&&(b=b.replace(/[\r\n\u2028]/g,"")),h.push(b);x._aFilterData=h,x._sFilterRow=h.join(" "),_=!0}return _}function Cf(e){var r,n=e.oInit,a=e.deferLoading,u=Hn(e);if(!e.bInitialised){setTimeout(function(){Cf(e)},200);return}fv(e,"header"),fv(e,"footer"),Z_(e,n,function(){Sf(e,e.aoHeader),Sf(e,e.aoFooter);var c=e.iInitDisplayStart;if(n.aaData)for(r=0;r<n.aaData.length;r++)fo(e,n.aaData[r]);else(a||u=="dom")&&Xc(e,Q(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),w_(e),D_(e),Zv(e),Qn(e,!0),Dt(e,null,"preInit",[e],!0),pl(e),(u!="ssp"||a)&&(u=="ajax"?Yc(e,{},function(h){var b=As(e,h);for(r=0;r<b.length;r++)fo(e,b[r]);e.iInitDisplayStart=c,pl(e),Qn(e,!1),Ef(e)},e):(Ef(e),Qn(e,!1)))})}function Ef(e){if(!e._bInitComplete){var r=[e,e.json];e._bInitComplete=!0,Ff(e),Dt(e,null,"plugin-init",r,!0),Dt(e,"aoInitComplete","init",r,!0)}}function Gv(e,r){var n=parseInt(r,10);e._iDisplayLength=n,Hv(e),Dt(e,null,"length",[e,n])}function Pc(e,r,n){var a=e._iDisplayStart,u=e._iDisplayLength,c=e.fnRecordsDisplay();if(c===0||u===-1)a=0;else if(typeof r=="number")a=r*u,a>c&&(a=0);else if(r=="first")a=0;else if(r=="previous")a=u>=0?a-u:0,a<0&&(a=0);else if(r=="next")a+u<c&&(a+=u);else if(r=="last")a=Math.floor((c-1)/u)*u;else{if(r==="ellipsis")return;ui(e,0,"Unknown paging action: "+r,5)}var h=e._iDisplayStart!==a;return e._iDisplayStart=a,Dt(e,null,h?"page":"page-nc",[e]),h&&n&&ml(e),h}function U_(e){var r=e.nTable,n=e.oScroll.sX!==""||e.oScroll.sY!=="";if(e.oFeatures.bProcessing){var a=Q("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");n?a.prependTo(Q("div.dt-scroll",e.nTableWrapper)):a.insertBefore(r),Q(r).on("processing.dt.DT",function(u,c,h){a.css("display",h?"block":"none")})}}function Qn(e,r){e.bDrawing&&r===!1||Dt(e,null,"processing",[e,r])}function Dv(e,r,n){r?(Qn(e,!0),setTimeout(function(){n(),Qn(e,!1)},0)):n()}function Wv(e){var r=Q(e.nTable),n=e.oScroll;if(n.sX===""&&n.sY==="")return e.nTable;var a=n.sX,u=n.sY,c=e.oClasses.scrolling,h=e.captionNode,b=h?h._captionSide:null,x=Q(r[0].cloneNode(!1)),_=Q(r[0].cloneNode(!1)),I=r.children("tfoot"),F="<div/>",G=function(K){return K?La(K):null};I.length||(I=null);var W=Q(F,{class:c.container}).append(Q(F,{class:c.header.self}).css({overflow:"hidden",position:"relative",border:0,width:a?G(a):"100%"}).append(Q(F,{class:c.header.inner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(x.removeAttr("id").css("margin-left",0).append(b==="top"?h:null).append(r.children("thead"))))).append(Q(F,{class:c.body}).css({position:"relative",overflow:"auto",width:G(a)}).append(r));I&&W.append(Q(F,{class:c.footer.self}).css({overflow:"hidden",border:0,width:a?G(a):"100%"}).append(Q(F,{class:c.footer.inner}).append(_.removeAttr("id").css("margin-left",0).append(b==="bottom"?h:null).append(r.children("tfoot")))));var U=W.children(),X=U[0],A=U[1],k=I?U[2]:null;return Q(A).on("scroll.DT",function(){var K=this.scrollLeft;X.scrollLeft=K,I&&(k.scrollLeft=K)}),Q("th, td",X).on("focus",function(){var K=X.scrollLeft;A.scrollLeft=K,I&&(A.scrollLeft=K)}),Q(A).css("max-height",u),n.bCollapse||Q(A).css("height",u),e.nScrollHead=X,e.nScrollBody=A,e.nScrollFoot=k,e.aoDrawCallback.push(Ov),W[0]}function Ov(e){var r=e.oScroll,n=r.iBarWidth,a=Q(e.nScrollHead),u=a.children("div"),c=u.children("table"),h=e.nScrollBody,b=Q(h),x=Q(e.nScrollFoot),_=x.children("div"),I=_.children("table"),F=Q(e.nTHead),G=Q(e.nTable),W=e.nTFoot&&Q("th, td",e.nTFoot).length?Q(e.nTFoot):null,U=e.oBrowser,X,A,k=h.scrollHeight>h.clientHeight;if(e.scrollBarVis!==k&&e.scrollBarVis!==void 0){e.scrollBarVis=k,Ff(e);return}else e.scrollBarVis=k;if(G.children("thead, tfoot").remove(),X=F.clone().prependTo(G),X.find("th, td").removeAttr("tabindex"),X.find("[id]").removeAttr("id"),W&&(A=W.clone().prependTo(G),A.find("[id]").removeAttr("id")),e.aiDisplay.length){var K=null,V=Hn(e)!=="ssp"?e._iDisplayStart:0;for(Z=V;Z<V+e.aiDisplay.length;Z++){var D=e.aiDisplay[Z],ee=e.aoData[D].nTr;if(ee){K=ee;break}}if(K)for(var m=Q(K).children("th, td").map(function(L){return{idx:Vc(e,L),width:Q(this).outerWidth()}}),Z=0;Z<m.length;Z++){var z=e.aoColumns[m[Z].idx].colEl[0],se=z.style.width.replace("px","");se!==m[Z].width&&(z.style.width=m[Z].width+"px",r.sX&&(z.style.minWidth=m[Z].width+"px"))}}c.find("colgroup").remove(),c.append(e.colgroup.clone()),W&&(I.find("colgroup").remove(),I.append(e.colgroup.clone())),Q("th, td",X).each(function(){Q(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}),W&&Q("th, td",A).each(function(){Q(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')});var Te=Math.floor(G.height())>h.clientHeight||b.css("overflow-y")=="scroll",q="padding"+(U.bScrollbarLeft?"Left":"Right"),he=G.outerWidth();c.css("width",La(he)),u.css("width",La(he)).css(q,Te?n+"px":"0px"),W&&(I.css("width",La(he)),_.css("width",La(he)).css(q,Te?n+"px":"0px")),G.children("colgroup").prependTo(G),b.trigger("scroll"),(e.bSorted||e.bFiltered)&&!e._drawHold&&(h.scrollTop=0)}function k_(e){if(e.oFeatures.bAutoWidth){var r=e.nTable,n=e.aoColumns,a=e.oScroll,u=a.sY,c=a.sX,h=a.sXInner,b=Qc(e,"bVisible"),x=r.getAttribute("width"),_=r.parentNode,I,F,G,W,U=r.style.width,X=hv(e);if(X===e.containerWidth)return!1;e.containerWidth=X,!U&&!x&&(r.style.width="100%",U="100%"),U&&U.indexOf("%")!==-1&&(x=U),Dt(e,null,"column-calc",{visible:b},!1);var A=Q(r.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");A.append("<tbody/>"),A.append(Q(e.nTHead).clone()).append(Q(e.nTFoot).clone()),A.find("tfoot th, tfoot td").css("width",""),A.find("thead th, thead td").each(function(){var ae=Nv(e,this,!0,!1);ae?(this.style.width=ae,c&&(this.style.minWidth=ae,Q(this).append(Q("<div/>").css({width:ae,margin:0,padding:0,border:0,height:1})))):this.style.width=""});var k=[];for(I=0;I<b.length;I++)k.push(G_(e,b[I]));if(k.length)for(I=0;I<k[0].length;I++){var K=Q("<tr/>").appendTo(A.find("tbody"));for(F=0;F<b.length;F++){W=b[F],G=n[W];var V=k[F][I]||"",D=Xr.type.className[G.sType],ee=G.sContentPadding||(c?"-":""),m=V+ee,Z=V.indexOf("<")===-1?document.createTextNode(m):m;Q("<td/>").addClass(D).addClass(G.sClass).append(Z).appendTo(K)}}Q("[name]",A).removeAttr("name");var z=Q("<div/>").css(c||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(A).appendTo(_);c&&h?A.width(h):c?(A.css("width","auto"),A.removeAttr("width"),A.outerWidth()<_.clientWidth&&x&&A.outerWidth(_.clientWidth)):u?A.outerWidth(_.clientWidth):x&&A.outerWidth(x);var se=0,Te=A.find("tbody tr").eq(0).children();for(I=0;I<b.length;I++){var q=Te[I].getBoundingClientRect().width;se+=q,n[b[I]].sWidth=La(q)}if(r.style.width=La(se),z.remove(),x&&(r.style.width=La(x)),(x||c)&&!e._reszEvt){var he=ye.util.throttle(function(){var ae=hv(e);!e.bDestroying&&ae!==0&&Ff(e)});if(window.ResizeObserver){var L=Q(e.nTableWrapper).is(":visible"),xe=Q("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(e.nTableWrapper);e.resizeObserver=new ResizeObserver(function(ae){L?L=!1:he()}),e.resizeObserver.observe(xe[0])}else Q(window).on("resize.DT-"+e.sInstance,he);e._reszEvt=!0}}}function hv(e){return Q(e.nTableWrapper).is(":visible")?Q(e.nTableWrapper).width():0}function G_(e,r){var n=e.aoColumns[r];if(!n.wideStrings){for(var a=[],u=[],c=0,h=e.aiDisplayMaster.length;c<h;c++){var b=e.aiDisplayMaster[c],x=jc(e,b)[r],_=x&&typeof x=="object"&&x.nodeType?x.innerHTML:x+"";_=_.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");var I=ra(_).replace(/&nbsp;/g," ");u.push({str:I,len:I.length}),a.push(I)}u.sort(function(G,W){return W.len-G.len}).splice(3),n.wideStrings=u.map(function(G){return G.str});let F=a.join(" ").split(" ");F.sort(function(G,W){return W.length-G.length}),F.length&&n.wideStrings.push(F[0]),F.length>1&&n.wideStrings.push(F[1]),F.length>2&&n.wideStrings.push(F[3])}return n.wideStrings}function La(e){return e===null?"0px":typeof e=="number"?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Zv(e){var r=e.aoColumns;for(e.colgroup.empty(),_r=0;_r<r.length;_r++)r[_r].bVisible&&e.colgroup.append(r[_r].colEl)}function D_(e){var r=e.nTHead,n=r.querySelectorAll("tr"),a=e.titleRow,u=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';a===!0?r=n[0]:a===!1?r=n[n.length-1]:a!==null&&(r=n[a]),e.orderHandler&&Mv(e,r,r===e.nTHead?"tr"+u+" th"+u+", tr"+u+" td"+u:"th"+u+", td"+u);var c=[];so(e,c,e.aaSorting),e.aaSorting=c}function Mv(e,r,n,a,u){Qv(r,n,function(c){var h=!1,b=a===void 0?Hc(c.target):typeof a=="function"?a():Array.isArray(a)?a:[a];if(b.length){for(var x=0,_=b.length;x<_;x++){var I=W_(e,b[x],x,c.shiftKey);if(I!==!1&&(h=!0),e.aaSorting.length===1&&e.aaSorting[0][1]==="")break}h&&Dv(e,!0,function(){zc(e),Vv(e,e.aiDisplay),pl(e,!1,!1),u&&u()})}})}function Vv(e,r){if(!(r.length<2)){var n=e.aiDisplayMaster,a={},u={},c;for(c=0;c<n.length;c++)a[n[c]]=c;for(c=0;c<r.length;c++)u[r[c]]=a[r[c]];r.sort(function(h,b){return u[h]-u[b]})}}function so(e,r,n){var a=function(c){if(Q.isPlainObject(c)){if(c.idx!==void 0)r.push([c.idx,c.dir]);else if(c.name){var h=ln(e.aoColumns,"sName"),b=h.indexOf(c.name);b!==-1&&r.push([b,c.dir])}}else r.push(c)};if(Q.isPlainObject(n))a(n);else if(n.length&&typeof n[0]=="number")a(n);else if(n.length)for(var u=0;u<n.length;u++)a(n[u])}function kf(e){var r,n,a,u=[],c=ye.ext.type.order,h=e.aoColumns,b,x,_,I,F=e.aaSortingFixed,G=Q.isPlainObject(F),W=[];if(!e.oFeatures.bSort)return u;for(Array.isArray(F)&&so(e,W,F),G&&F.pre&&so(e,W,F.pre),so(e,W,e.aaSorting),G&&F.post&&so(e,W,F.post),r=0;r<W.length;r++)if(I=W[r][0],h[I])for(b=h[I].aDataSort,n=0,a=b.length;n<a;n++)x=b[n],_=h[x].sType||"string",W[r]._idx===void 0&&(W[r]._idx=h[x].asSorting.indexOf(W[r][1])),W[r][1]&&u.push({src:I,col:x,dir:W[r][1],index:W[r]._idx,type:_,formatter:c[_+"-pre"],sorter:c[_+"-"+W[r][1]]});return u}function zc(e,r,n){var a,u,c=[],h=ye.ext.type.order,b=e.aoData,x,_=e.aiDisplayMaster,I;if(Bf(e),r!==void 0){var F=e.aoColumns[r];I=[{src:r,col:r,dir:n,index:0,type:F.sType,formatter:h[F.sType+"-pre"],sorter:h[F.sType+"-"+n]}],_=_.slice()}else I=kf(e);for(a=0,u=I.length;a<u;a++)x=I[a],O_(e,x.col);if(Hn(e)!="ssp"&&I.length!==0){for(a=0,u=_.length;a<u;a++)c[a]=a;I.length&&I[0].dir==="desc"&&e.orderDescReverse&&c.reverse(),_.sort(function(G,W){var U,X,A,k,K,V=I.length,D=b[G]._aSortData,ee=b[W]._aSortData;for(A=0;A<V;A++)if(K=I[A],U=D[K.col],X=ee[K.col],K.sorter){if(k=K.sorter(U,X),k!==0)return k}else if(k=U<X?-1:U>X?1:0,k!==0)return K.dir==="asc"?k:-k;return U=c[G],X=c[W],U<X?-1:U>X?1:0})}else I.length===0&&_.sort(function(G,W){return G<W?-1:G>W?1:0});return r===void 0&&(e.bSorted=!0,e.sortDetails=I,Dt(e,null,"order",[e,I])),_}function W_(e,r,n,a){var u=e.aoColumns[r],c=e.aaSorting,h=u.asSorting,b,x=function(I,F){var G=I._idx;return G===void 0&&(G=h.indexOf(I[1])),G+1<h.length?G+1:F?null:0};if(!u.bSortable)return!1;if(typeof c[0]=="number"&&(c=e.aaSorting=[c]),(a||n)&&e.oFeatures.bSortMulti){var _=ln(c,"0").indexOf(r);_!==-1?(b=x(c[_],!0),b===null&&c.length===1&&(b=0),b===null||h[b]===""?c.splice(_,1):(c[_][1]=h[b],c[_]._idx=b)):a?(c.push([r,h[0],0]),c[c.length-1]._idx=0):(c.push([r,c[0][1],0]),c[c.length-1]._idx=0)}else c.length&&c[0][0]==r?(b=x(c[0]),c.length=1,c[0][1]=h[b],c[0]._idx=b):(c.length=0,c.push([r,h[0]]),c[0]._idx=0)}function Dc(e){var r=e.aLastSort,n=e.oClasses.order.position,a=kf(e),u=e.oFeatures,c,h,b;if(u.bSort&&u.bSortClasses){for(c=0,h=r.length;c<h;c++)b=r[c].src,Q(ln(e.aoData,"anCells",b)).removeClass(n+(c<2?c+1:3));for(c=0,h=a.length;c<h;c++)b=a[c].src,Q(ln(e.aoData,"anCells",b)).addClass(n+(c<2?c+1:3))}e.aLastSort=a}function O_(e,r){var n=e.aoColumns[r],a=ye.ext.order[n.sSortDataType],u;a&&(u=a.call(e.oInstance,e,r,Fs(e,r)));for(var c,h,b=ye.ext.type.order[n.sType+"-pre"],x=e.aoData,_=0;_<x.length;_++)x[_]&&(c=x[_],c._aSortData||(c._aSortData=[]),(!c._aSortData[r]||a)&&(h=a?u[_]:fi(e,_,r,"sort"),c._aSortData[r]=b?b(h,e):h))}function Gf(e){if(!e._bLoadingState){var r=[];so(e,r,e.aaSorting);var n=e.aoColumns,a={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:r.map(function(u){return n[u[0]]&&n[u[0]].sName?[n[u[0]].sName,u[1]]:u.slice()}),search:Q.extend({},e.oPreviousSearch),columns:e.aoColumns.map(function(u,c){return{name:u.sName,visible:u.bVisible,search:Q.extend({},e.aoPreSearchCols[c])}})};e.oSavedState=a,Dt(e,"aoStateSaveParams","stateSaveParams",[e,a]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,a)}}function Z_(e,r,n){if(!e.oFeatures.bStateSave){n();return}var a=function(c){Wc(e,c,n)},u=e.fnStateLoadCallback.call(e.oInstance,e,a);return u!==void 0&&Wc(e,u,n),!0}function Wc(e,r,n){var a,u,c=e.aoColumns,h=ln(e.aoColumns,"sName");e._bLoadingState=!0;var b=e._bInitComplete?new ye.Api(e):null;if(!r||!r.time){e._bLoadingState=!1,n();return}var x=e.iStateDuration;if(x>0&&r.time<+new Date-x*1e3){e._bLoadingState=!1,n();return}var _=Dt(e,"aoStateLoadParams","stateLoadParams",[e,r]);if(_.indexOf(!1)!==-1){e._bLoadingState=!1,n();return}if(e.oLoadedState=Q.extend(!0,{},r),Dt(e,null,"stateLoadInit",[e,r],!0),r.length!==void 0&&(b?b.page.len(r.length):e._iDisplayLength=r.length),r.start!==void 0&&(b===null?(e._iDisplayStart=r.start,e.iInitDisplayStart=r.start):Pc(e,r.start/e._iDisplayLength)),r.order!==void 0&&(e.aaSorting=[],Q.each(r.order,function(U,X){var A=[X[0],X[1]];if(typeof X[0]=="string"){var k=h.indexOf(X[0]);if(k<0)return;A[0]=k}else if(A[0]>=c.length)return;e.aaSorting.push(A)})),r.search!==void 0&&Q.extend(e.oPreviousSearch,r.search),r.columns){var I=r.columns,F=ln(r.columns,"name");if(F.join("").length&&F.join("")!==h.join(""))for(I=[],a=0;a<h.length;a++)if(h[a]!=""){var G=F.indexOf(h[a]);G>=0?I.push(r.columns[G]):I.push({})}else I.push({});if(I.length===c.length){for(a=0,u=I.length;a<u;a++){var W=I[a];W.visible!==void 0&&(b?b.column(a).visible(W.visible,!1):c[a].bVisible=W.visible),W.search!==void 0&&Q.extend(e.aoPreSearchCols[a],W.search)}b&&b.one("draw",function(){b.columns.adjust()})}}e._bLoadingState=!1,Dt(e,"aoStateLoaded","stateLoaded",[e,r]),n()}function ui(e,r,n,a){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,a&&(n+=". For more information about this error, please see https://datatables.net/tn/"+a),r)window.console&&console.log&&console.log(n);else{var u=ye.ext,c=u.sErrMode||u.errMode;if(e&&Dt(e,null,"dt-error",[e,a,n],!0),c=="alert")alert(n);else{if(c=="throw")throw new Error(n);typeof c=="function"&&c(e,a,n)}}}function Ba(e,r,n,a){if(Array.isArray(n)){Q.each(n,function(u,c){Array.isArray(c)?Ba(e,r,c[0],c[1]):Ba(e,r,c)});return}a===void 0&&(a=n),r[n]!==void 0&&(e[a]=r[n])}function pv(e,r,n){var a;for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a=r[u],Q.isPlainObject(a)?(Q.isPlainObject(e[u])||(e[u]={}),Q.extend(!0,e[u],a)):n&&u!=="data"&&u!=="aaData"&&Array.isArray(a)?e[u]=a.slice():e[u]=a);return e}function Qv(e,r,n){Q(e).on("click.DT",r,function(a){n(a)}).on("keypress.DT",r,function(a){a.which===13&&(a.preventDefault(),n(a))}).on("selectstart.DT",r,function(){return!1})}function si(e,r,n){n&&e[r].push(n)}function Dt(e,r,n,a,u){var c=[];if(r&&(c=e[r].slice().reverse().map(function(x){return x.apply(e.oInstance,a)})),n!==null){var h=Q.Event(n+".dt"),b=Q(e.nTable);h.dt=e.api,b[u?"trigger":"triggerHandler"](h,a),u&&b.parents("body").length===0&&Q("body").trigger(h,a),c.push(h.result)}return c}function Hv(e){var r=e._iDisplayStart,n=e.fnDisplayEnd(),a=e._iDisplayLength;r>=n&&(r=n-a),r-=r%a,(a===-1||r<0)&&(r=0),e._iDisplayStart=r}function Af(e,r){var n=e.renderer,a=ye.ext.renderer[r];return Q.isPlainObject(n)&&n[r]?a[n[r]]||a._:typeof n=="string"&&a[n]||a._}function Hn(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function qc(e,r,n){var a=e.fnFormatNumber,u=e._iDisplayStart+1,c=e._iDisplayLength,h=e.fnRecordsDisplay(),b=e.fnRecordsTotal(),x=c===-1;return r.replace(/_START_/g,a.call(e,u)).replace(/_END_/g,a.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,a.call(e,b)).replace(/_TOTAL_/g,a.call(e,h)).replace(/_PAGE_/g,a.call(e,x?1:Math.ceil(u/c))).replace(/_PAGES_/g,a.call(e,x?1:Math.ceil(h/c))).replace(/_ENTRIES_/g,e.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",b)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",h))}function Df(e,r){if(r)if(r.length<1e4)e.push.apply(e,r);else for(_r=0;_r<r.length;_r++)e.push(r[_r])}function gv(e,r,n){for(Array.isArray(n)||(n=[n]),_r=0;_r<n.length;_r++)e.on(r+".dt",n[_r])}function Xv(e){return ye.ext.escape.attributes&&Q.each(e,function(r,n){e[r]=uo(n)}),e}var Kc=[],yn=Array.prototype,M_=function(e){var r,n,a=ye.settings,u=ln(a,"nTable");if(e){if(e.nTable&&e.oFeatures)return[e];if(e.nodeName&&e.nodeName.toLowerCase()==="table")return r=u.indexOf(e),r!==-1?[a[r]]:null;if(e&&typeof e.settings=="function")return e.settings().toArray();typeof e=="string"?n=Q(e).get():e instanceof Q&&(n=e.get())}else return[];if(n)return a.filter(function(c,h){return n.includes(u[h])})};_t=function(e,r){if(!(this instanceof _t))return new _t(e,r);var n,a=[],u=function(c){var h=M_(c);h&&a.push.apply(a,h)};if(Array.isArray(e))for(n=0;n<e.length;n++)u(e[n]);else u(e);this.context=a.length>1?gl(a):a,Df(this,r),this.selector={rows:null,cols:null,opts:null},_t.extend(this,this,Kc)};ye.Api=_t;Q.extend(_t.prototype,{any:function(){return this.count()!==0},context:[],count:function(){return this.flatten().length},each:function(e){for(var r=0,n=this.length;r<n;r++)e.call(this,this[r],r,this);return this},eq:function(e){var r=this.context;return r.length>e?new _t(r[e],this[e]):null},filter:function(e){var r=yn.filter.call(this,e,this);return new _t(this.context,r)},flatten:function(){var e=[];return new _t(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:yn.join,includes:function(e){return this.indexOf(e)!==-1},indexOf:yn.indexOf,iterator:function(e,r,n,a){var u=[],c,h,b,x,_,I=this.context,F,G,W,U=this.selector;for(typeof e=="string"&&(a=n,n=r,r=e,e=!1),h=0,b=I.length;h<b;h++){var X=new _t(I[h]);if(r==="table")c=n.call(X,I[h],h),c!==void 0&&u.push(c);else if(r==="columns"||r==="rows")c=n.call(X,I[h],this[h],h),c!==void 0&&u.push(c);else if(r==="every"||r==="column"||r==="column-rows"||r==="row"||r==="cell")for(G=this[h],r==="column-rows"&&(F=Wf(I[h],U.opts)),x=0,_=G.length;x<_;x++)W=G[x],r==="cell"?c=n.call(X,I[h],W.row,W.column,h,x):c=n.call(X,I[h],W,h,x,F),c!==void 0&&u.push(c)}if(u.length||a){var A=new _t(I,e?u.concat.apply([],u):u),k=A.selector;return k.rows=U.rows,k.cols=U.cols,k.opts=U.opts,A}return this},lastIndexOf:yn.lastIndexOf,length:0,map:function(e){var r=yn.map.call(this,e,this);return new _t(this.context,r)},pluck:function(e){var r=ye.util.get(e);return this.map(function(n){return r(n)})},pop:yn.pop,push:yn.push,reduce:yn.reduce,reduceRight:yn.reduceRight,reverse:yn.reverse,selector:null,shift:yn.shift,slice:function(){return new _t(this.context,this)},sort:yn.sort,splice:yn.splice,toArray:function(){return yn.slice.call(this)},to$:function(){return Q(this)},toJQuery:function(){return Q(this)},unique:function(){return new _t(this.context,gl(this.toArray()))},unshift:yn.unshift});function V_(e,r,n){return function(){var a=r.apply(e||this,arguments);return _t.extend(a,a,n.methodExt),a}}function Q_(e,r){for(var n=0,a=e.length;n<a;n++)if(e[n].name===r)return e[n];return null}window.__apiStruct=Kc;_t.extend=function(e,r,n){if(!(!n.length||!r||!(r instanceof _t)&&!r.__dt_wrapper)){var a,u,c;for(a=0,u=n.length;a<u;a++)c=n[a],c.name!=="__proto__"&&(r[c.name]=c.type==="function"?V_(e,c.val,c):c.type==="object"?{}:c.val,r[c.name].__dt_wrapper=!0,_t.extend(e,r[c.name],c.propExt))}};_t.register=ze=function(e,r){if(Array.isArray(e)){for(var n=0,a=e.length;n<a;n++)_t.register(e[n],r);return}var u,c,h=e.split("."),b=Kc,x,_;for(u=0,c=h.length;u<c;u++){_=h[u].indexOf("()")!==-1,x=_?h[u].replace("()",""):h[u];var I=Q_(b,x);I||(I={name:x,val:{},methodExt:[],propExt:[],type:"object"},b.push(I)),u===c-1?(I.val=r,I.type=typeof r=="function"?"function":Q.isPlainObject(r)?"object":"other"):b=_?I.methodExt:I.propExt}};_t.registerPlural=Qt=function(e,r,n){_t.register(e,n),_t.register(r,function(){var a=n.apply(this,arguments);return a===this?this:a instanceof _t?a.length?Array.isArray(a[0])?new _t(a.context,a[0]):a[0]:void 0:a})};var Jv=function(e,r){if(Array.isArray(e)){var n=[];return e.forEach(function(u){var c=Jv(u,r);Df(n,c)}),n.filter(function(u){return u})}if(typeof e=="number")return[r[e]];var a=r.map(function(u){return u.nTable});return Q(a).filter(e).map(function(){var u=a.indexOf(this);return r[u]}).toArray()};ze("tables()",function(e){return e!=null?new _t(Jv(e,this.context)):this});ze("table()",function(e){var r=this.tables(e),n=r.context;return n.length?new _t(n[0]):r});[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach(function(e){Qt("tables()."+e[0]+"()","table()."+e[1]+"()",function(){return this.iterator("table",function(r){return r[e[2]]},1)})});[["header","aoHeader"],["footer","aoFooter"]].forEach(function(e){ze("table()."+e[0]+".structure()",function(r){var n=this.columns(r).indexes().flatten().toArray(),a=this.context[0],u=Uv(a,a[e[1]],n),c=n.slice().sort(function(h,b){return h-b});return u.map(function(h){return n.map(function(b){return h[c.indexOf(b)]})})})});Qt("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)});ze("tables().every()",function(e){var r=this;return this.iterator("table",function(n,a){e.call(r.table(a),a)})});ze("caption()",function(e,r){var n=this.context;if(e===void 0){var a=n[0].captionNode;return a&&n.length?a.innerHTML:null}return this.iterator("table",function(u){var c=Q(u.nTable),h=Q(u.captionNode),b=Q(u.nTableWrapper);if(h.length||(h=Q("<caption/>").html(e),u.captionNode=h[0],r||(c.prepend(h),r=h.css("caption-side"))),h.html(e),r&&(h.css("caption-side",r),h[0]._captionSide=r),b.find("div.dataTables_scroll").length){var x=r==="top"?"Head":"Foot";b.find("div.dataTables_scroll"+x+" table").prepend(h)}else c.prepend(h)},1)});ze("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null});ze("draw()",function(e){return this.iterator("table",function(r){e==="page"?ml(r):(typeof e=="string"&&(e=e!=="full-hold"),pl(r,e===!1))})});ze("page()",function(e){return e===void 0?this.page.info().page:this.iterator("table",function(r){Pc(r,e)})});ze("page.info()",function(){if(this.context.length!==0){var e=this.context[0],r=e._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,a=e.fnRecordsDisplay(),u=n===-1;return{page:u?0:Math.floor(r/n),pages:u?1:Math.ceil(a/n),start:r,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:a,serverSide:Hn(e)==="ssp"}}});ze("page.len()",function(e){return e===void 0?this.context.length!==0?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(r){Gv(r,e)})});var jv=function(e,r,n){if(n){var a=new _t(e);a.one("draw",function(){n(a.ajax.json())})}if(Hn(e)=="ssp")pl(e,r);else{Qn(e,!0);var u=e.jqXHR;u&&u.readyState!==4&&u.abort(),Yc(e,{},function(c){Jc(e);for(var h=As(e,c),b=0,x=h.length;b<x;b++)fo(e,h[b]);pl(e,r),Ef(e),Qn(e,!1)})}};ze("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json});ze("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].oAjaxData});ze("ajax.reload()",function(e,r){return this.iterator("table",function(n){jv(n,r===!1,e)})});ze("ajax.url()",function(e){var r=this.context;return e===void 0?r.length===0?void 0:(r=r[0],Q.isPlainObject(r.ajax)?r.ajax.url:r.ajax):this.iterator("table",function(n){Q.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e})});ze("ajax.url().load()",function(e,r){return this.iterator("table",function(n){jv(n,r===!1,e)})});var $c=function(e,r,n,a,u){var c=[],h,b,x,_=typeof r;for((!r||_==="string"||_==="function"||r.length===void 0)&&(r=[r]),b=0,x=r.length;b<x;b++)h=n(typeof r[b]=="string"?r[b].trim():r[b]),h=h.filter(function(F){return F!=null}),h&&h.length&&(c=c.concat(h));var I=Xr.selector[e];if(I.length)for(b=0,x=I.length;b<x;b++)c=I[b](a,u,c);return gl(c)},eh=function(e){return e||(e={}),e.filter&&e.search===void 0&&(e.search=e.filter),Q.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)},th=function(e){var r=new _t(e.context[0]);return e.length&&r.push(e[0]),r.selector=e.selector,r.length&&r[0].length>1&&r[0].splice(1),r},Wf=function(e,r){var n,a,u,c=[],h=e.aiDisplay,b=e.aiDisplayMaster,x=r.search,_=r.order,I=r.page;if(Hn(e)=="ssp")return x==="removed"?[]:Na(0,b.length);if(I=="current")for(n=e._iDisplayStart,a=e.fnDisplayEnd();n<a;n++)c.push(h[n]);else if(_=="current"||_=="applied"){if(x=="none")c=b.slice();else if(x=="applied")c=h.slice();else if(x=="removed"){var F={};for(n=0,a=h.length;n<a;n++)F[h[n]]=null;b.forEach(function(W){Object.prototype.hasOwnProperty.call(F,W)||c.push(W)})}}else if(_=="index"||_=="original")for(n=0,a=e.aoData.length;n<a;n++)e.aoData[n]&&(x=="none"?c.push(n):(u=h.indexOf(n),(u===-1&&x=="removed"||u>=0&&x=="applied")&&c.push(n)));else if(typeof _=="number"){var G=zc(e,_,"asc");if(x==="none")c=G;else for(n=0;n<G.length;n++)u=h.indexOf(G[n]),(u===-1&&x=="removed"||u>=0&&x=="applied")&&c.push(G[n])}return c},H_=function(e,r,n){var a,u=function(h){var b=wv(h),x=e.aoData;if(b!==null&&!n)return[b];if(a||(a=Wf(e,n)),b!==null&&a.indexOf(b)!==-1)return[b];if(h==null||h==="")return a;if(typeof h=="function")return a.map(function(U){var X=x[U];return h(U,X._aData,X.nTr)?U:null});if(h.nodeName){var _=h._DT_RowIndex,I=h._DT_CellIndex;if(_!==void 0)return x[_]&&x[_].nTr===h?[_]:[];if(I)return x[I.row]&&x[I.row].nTr===h.parentNode?[I.row]:[];var F=Q(h).closest("*[data-dt-row]");return F.length?[F.data("dt-row")]:[]}if(typeof h=="string"&&h.charAt(0)==="#"){var G=e.aIds[h.replace(/^#/,"")];if(G!==void 0)return[G.idx]}var W=Sv(Ns(e.aoData,a,"nTr"));return Q(W).filter(h).map(function(){return this._DT_RowIndex}).toArray()},c=$c("row",r,u,e,n);return(n.order==="current"||n.order==="applied")&&Vv(e,c),c};ze("rows()",function(e,r){e===void 0?e="":Q.isPlainObject(e)&&(r=e,e=""),r=eh(r);var n=this.iterator("table",function(a){return H_(a,e,r)},1);return n.selector.rows=e,n.selector.opts=r,n});ze("rows().nodes()",function(){return this.iterator("row",function(e,r){return e.aoData[r].nTr||void 0},1)});ze("rows().data()",function(){return this.iterator(!0,"rows",function(e,r){return Ns(e.aoData,r,"_aData")},1)});Qt("rows().cache()","row().cache()",function(e){return this.iterator("row",function(r,n){var a=r.aoData[n];return e==="search"?a._aFilterData:a._aSortData},1)});Qt("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(r,n){Uf(r,n,e)})});Qt("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,r){return r},1)});Qt("rows().ids()","row().id()",function(e){for(var r=[],n=this.context,a=0,u=n.length;a<u;a++)for(var c=0,h=this[a].length;c<h;c++){var b=n[a].rowIdFn(n[a].aoData[this[a][c]]._aData);r.push((e===!0?"#":"")+b)}return new _t(n,r)});Qt("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,r){var n=e.aoData,a=n[r],u=e.aiDisplayMaster.indexOf(r);u!==-1&&e.aiDisplayMaster.splice(u,1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,Hv(e);var c=e.rowIdFn(a._aData);c!==void 0&&delete e.aIds[c],n[r]=null}),this});ze("rows.add()",function(e){var r=this.iterator("table",function(a){var u,c,h,b=[];for(c=0,h=e.length;c<h;c++)u=e[c],u.nodeName&&u.nodeName.toUpperCase()==="TR"?b.push(Xc(a,u)[0]):b.push(fo(a,u));return b},1),n=this.rows(-1);return n.pop(),Df(n,r),n});ze("row()",function(e,r){return th(this.rows(e,r))});ze("row().data()",function(e){var r=this.context;if(e===void 0)return r.length&&this.length&&this[0].length?r[0].aoData[this[0]]._aData:void 0;var n=r[0].aoData[this[0]];return n._aData=e,Array.isArray(e)&&n.nTr&&n.nTr.id&&lo(r[0].rowId)(e,n.nTr.id),Uf(r[0],this[0],"data"),this});ze("row().node()",function(){var e=this.context;if(e.length&&this.length&&this[0].length){var r=e[0].aoData[this[0]];if(r&&r.nTr)return r.nTr}return null});ze("row.add()",function(e){e instanceof Q&&e.length&&(e=e[0]);var r=this.iterator("table",function(n){return e.nodeName&&e.nodeName.toUpperCase()==="TR"?Xc(n,e)[0]:fo(n,e)});return this.row(r[0])});Q(document).on("plugin-init.dt",function(e,r){var n=new _t(r);n.on("stateSaveParams.DT",function(a,u,c){for(var h=u.rowIdFn,b=u.aiDisplayMaster,x=[],_=0;_<b.length;_++){var I=b[_],F=u.aoData[I];F._detailsShow&&x.push("#"+h(F._aData))}c.childRows=x}),n.on("stateLoaded.DT",function(a,u,c){mv(n,c)}),mv(n,n.state.loaded())});var mv=function(e,r){r&&r.childRows&&e.rows(r.childRows.map(function(n){return n.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){Dt(e.settings()[0],null,"requestChild",[this])})},X_=function(e,r,n,a){var u=[],c=function(h,b){if(Array.isArray(h)||h instanceof Q){for(var x=0,_=h.length;x<_;x++)c(h[x],b);return}if(h.nodeName&&h.nodeName.toLowerCase()==="tr")h.setAttribute("data-dt-row",r.idx),u.push(h);else{var I=Q("<tr><td></td></tr>").attr("data-dt-row",r.idx).addClass(b);Q("td",I).addClass(b).html(h)[0].colSpan=Lf(e),u.push(I[0])}};c(n,a),r._details&&r._details.detach(),r._details=Q(u),r._detailsShow&&r._details.insertAfter(r.nTr)},Yv=ye.util.throttle(function(e){Gf(e[0])},500),rh=function(e,r){var n=e.context;if(n.length){var a=n[0].aoData[r!==void 0?r:e[0]];a&&a._details&&(a._details.detach(),a._detailsShow=void 0,a._details=void 0,Q(a.nTr).removeClass("dt-hasChild"),Yv(n))}},Pv=function(e,r){var n=e.context;if(n.length&&e.length){var a=n[0].aoData[e[0]];a._details&&(a._detailsShow=r,r?(a._details.insertAfter(a.nTr),Q(a.nTr).addClass("dt-hasChild")):(a._details.detach(),Q(a.nTr).removeClass("dt-hasChild")),Dt(n[0],null,"childRow",[r,e.row(e[0])]),J_(n[0]),Yv(n))}},J_=function(e){var r=new _t(e),n=".dt.DT_details",a="draw"+n,u="column-sizing"+n,c="destroy"+n,h=e.aoData;r.off(a+" "+u+" "+c),ln(h,"_details").length>0&&(r.on(a,function(b,x){e===x&&r.rows({page:"current"}).eq(0).each(function(_){var I=h[_];I._detailsShow&&I._details.insertAfter(I.nTr)})}),r.on(u,function(b,x){if(e===x)for(var _,I=Lf(x),F=0,G=h.length;F<G;F++)_=h[F],_&&_._details&&_._details.each(function(){var W=Q(this).children("td");W.length==1&&W.attr("colspan",I)})}),r.on(c,function(b,x){if(e===x)for(var _=0,I=h.length;_<I;_++)h[_]&&h[_]._details&&rh(r,_)}))},j_="",Ls=j_+"row().child",Of=Ls+"()";ze(Of,function(e,r){var n=this.context;return e===void 0?n.length&&this.length&&n[0].aoData[this[0]]?n[0].aoData[this[0]]._details:void 0:(e===!0?this.child.show():e===!1?rh(this):n.length&&this.length&&X_(n[0],n[0].aoData[this[0]],e,r),this)});ze([Ls+".show()",Of+".show()"],function(){return Pv(this,!0),this});ze([Ls+".hide()",Of+".hide()"],function(){return Pv(this,!1),this});ze([Ls+".remove()",Of+".remove()"],function(){return rh(this),this});ze(Ls+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]&&e[0].aoData[this[0]]._detailsShow||!1});var Y_=/^([^:]+)?:(name|title|visIdx|visible)$/,nh=function(e,r,n,a,u,c){for(var h=[],b=0,x=u.length;b<x;b++)h.push(fi(e,u[b],r,c));return h},zv=function(e,r,n){var a=e.aoHeader,u=e.titleRow,c=null;if(n!==void 0)c=n;else if(u===!0)c=0;else if(u===!1)c=a.length-1;else if(u!==null)c=u;else{for(var h=0;h<a.length;h++)a[h][r].unique&&Q("span.dt-column-title",a[h][r].cell).text()&&(c=h);c===null&&(c=0)}return a[c][r].cell},P_=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=0;a<e[n].length;a++){var u=e[n][a].cell;r.includes(u)||r.push(u)}return r},z_=function(e,r,n){var a=e.aoColumns,u,c,h=P_(e.aoHeader),b=function(_){var I=wv(_);if(_==="")return Na(a.length);if(I!==null)return[I>=0?I:a.length+I];if(typeof _=="function"){var F=Wf(e,n);return a.map(function(k,K){return _(K,nh(e,K,0,0,F),zv(e,K))?K:null})}var G=typeof _=="string"?_.match(Y_):"";if(G)switch(G[2]){case"visIdx":case"visible":if(G[1]&&G[1].match(/^\d+$/)){var W=parseInt(G[1],10);if(W<0){var U=a.map(function(k,K){return k.bVisible?K:null});return[U[U.length+W]]}return[Vc(e,W)]}return a.map(function(k,K){return k.bVisible?G[1]?Q(h[K]).filter(G[1]).length>0?K:null:K:null});case"name":return u||(u=ln(a,"sName")),u.map(function(k,K){return k===G[1]?K:null});case"title":return c||(c=ln(a,"sTitle")),c.map(function(k,K){return k===G[1]?K:null});default:return[]}if(_.nodeName&&_._DT_CellIndex)return[_._DT_CellIndex.column];var X=Q(h).filter(_).map(function(){return Hc(this)}).toArray().sort(function(k,K){return k-K});if(X.length||!_.nodeName)return X;var A=Q(_).closest("*[data-dt-column]");return A.length?[A.data("dt-column")]:[]},x=$c("column",r,b,e,n);return n.columnOrder&&n.columnOrder==="index"?x.sort(function(_,I){return _-I}):x},q_=function(e,r,n){var a=e.aoColumns,u=a[r],c=e.aoData,h,b,x,_;if(n===void 0)return u.bVisible;if(u.bVisible===n)return!1;if(n){var I=ln(a,"bVisible").indexOf(!0,r+1);for(b=0,x=c.length;b<x;b++)c[b]&&(_=c[b].nTr,h=c[b].anCells,_&&_.insertBefore(h[r],h[I]||null))}else Q(ln(e.aoData,"anCells",r)).detach();return u.bVisible=n,Zv(e),!0};ze("columns()",function(e,r){e===void 0?e="":Q.isPlainObject(e)&&(r=e,e=""),r=eh(r);var n=this.iterator("table",function(a){return z_(a,e,r)},1);return n.selector.cols=e,n.selector.opts=r,n});Qt("columns().header()","column().header()",function(e){return this.iterator("column",function(r,n){return zv(r,n,e)},1)});Qt("columns().footer()","column().footer()",function(e){return this.iterator("column",function(r,n){var a=r.aoFooter;return a.length?r.aoFooter[e!==void 0?e:0][n].cell:null},1)});Qt("columns().data()","column().data()",function(){return this.iterator("column-rows",nh,1)});Qt("columns().render()","column().render()",function(e){return this.iterator("column-rows",function(r,n,a,u,c){return nh(r,n,a,u,c,e)},1)});Qt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,r){return e.aoColumns[r].mData},1)});Qt("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(r,n,a,u,c){return Ns(r.aoData,c,e==="search"?"_aFilterData":"_aSortData",n)},1)});Qt("columns().init()","column().init()",function(){return this.iterator("column",function(e,r){return e.aoColumns[r]},1)});Qt("columns().names()","column().name()",function(){return this.iterator("column",function(e,r){return e.aoColumns[r].sName},1)});Qt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,r,n,a,u){return Ns(e.aoData,u,"anCells",r)},1)});Qt("columns().titles()","column().title()",function(e,r){return this.iterator("column",function(n,a){typeof e=="number"&&(r=e,e=void 0);var u=Q("span.dt-column-title",this.column(a).header(r));return e!==void 0?(u.html(e),this):u.html()},1)});Qt("columns().types()","column().type()",function(){return this.iterator("column",function(e,r){var n=e.aoColumns[r],a=n.sType;return a||(Bf(e),a=n.sType),a},1)});Qt("columns().visible()","column().visible()",function(e,r){var n=this,a=[],u=this.iterator("column",function(c,h){if(e===void 0)return c.aoColumns[h].bVisible;q_(c,h,e)&&a.push(h)});return e!==void 0&&this.iterator("table",function(c){Sf(c,c.aoHeader),Sf(c,c.aoFooter),c.aiDisplay.length||Q(c.nTBody).find("td[colspan]").attr("colspan",Lf(c)),Gf(c),n.iterator("column",function(h,b){a.includes(b)&&Dt(h,null,"column-visibility",[h,b,e,r])}),a.length&&(r===void 0||r)&&n.columns.adjust()}),u});Qt("columns().widths()","column().width()",function(){var e=this.columns(":visible").count(),r=Q("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>");Q(this.table().body()).append(r);var n=r.children().map(function(){return Q(this).outerWidth()});return r.remove(),this.iterator("column",function(a,u){var c=Fs(a,u);return c!==null?n[c]:0},1)});Qt("columns().indexes()","column().index()",function(e){return this.iterator("column",function(r,n){return e==="visible"?Fs(r,n):n},1)});ze("columns.adjust()",function(){return this.iterator("table",function(e){e.containerWidth=-1,Ff(e)},1)});ze("column.index()",function(e,r){if(this.context.length!==0){var n=this.context[0];if(e==="fromVisible"||e==="toData")return Vc(n,r);if(e==="fromData"||e==="toVisible")return Fs(n,r)}});ze("column()",function(e,r){return th(this.columns(e,r))});var K_=function(e,r,n){var a=e.aoData,u=Wf(e,n),c=Sv(Ns(a,u,"anCells")),h=Q(Ev([],c)),b,x=e.aoColumns.length,_,I,F,G,W,U,X=function(A){var k=typeof A=="function";if(A==null||k){for(_=[],I=0,F=u.length;I<F;I++)for(b=u[I],G=0;G<x;G++)W={row:b,column:G},k?(U=a[b],A(W,fi(e,b,G),U.anCells?U.anCells[G]:null)&&_.push(W)):_.push(W);return _}if(Q.isPlainObject(A))return A.column!==void 0&&A.row!==void 0&&u.indexOf(A.row)!==-1?[A]:[];var K=h.filter(A).map(function(V,D){return{row:D._DT_CellIndex.row,column:D._DT_CellIndex.column}}).toArray();return K.length||!A.nodeName?K:(U=Q(A).closest("*[data-dt-row]"),U.length?[{row:U.data("dt-row"),column:U.data("dt-column")}]:[])};return $c("cell",r,X,e,n)};ze("cells()",function(e,r,n){if(Q.isPlainObject(e)&&(e.row===void 0?(n=e,e=null):(n=r,r=null)),Q.isPlainObject(r)&&(n=r,r=null),r==null)return this.iterator("table",function(G){return K_(G,e,eh(n))});var a=n?{page:n.page,order:n.order,search:n.search}:{},u=this.columns(r,a),c=this.rows(e,a),h,b,x,_,I=this.iterator("table",function(G,W){var U=[];for(h=0,b=c[W].length;h<b;h++)for(x=0,_=u[W].length;x<_;x++)U.push({row:c[W][h],column:u[W][x]});return U},1),F=n&&n.selected?this.cells(I,n):I;return Q.extend(F.selector,{cols:r,rows:e,opts:n}),F});Qt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,r,n){var a=e.aoData[r];return a&&a.anCells?a.anCells[n]:void 0},1)});ze("cells().data()",function(){return this.iterator("cell",function(e,r,n){return fi(e,r,n)},1)});Qt("cells().cache()","cell().cache()",function(e){return e=e==="search"?"_aFilterData":"_aSortData",this.iterator("cell",function(r,n,a){return r.aoData[n][e][a]},1)});Qt("cells().render()","cell().render()",function(e){return this.iterator("cell",function(r,n,a){return fi(r,n,a,e)},1)});Qt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,r,n){return{row:r,column:n,columnVisible:Fs(e,n)}},1)});Qt("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(r,n,a){Uf(r,n,e,a)})});ze("cell()",function(e,r,n){return th(this.cells(e,r,n))});ze("cell().data()",function(e){var r=this.context,n=this[0];return e===void 0?r.length&&n.length?fi(r[0],n[0].row,n[0].column):void 0:(T_(r[0],n[0].row,n[0].column,e),Uf(r[0],n[0].row,"data",n[0].column),this)});ze("order()",function(e,r){var n=this.context,a=Array.prototype.slice.call(arguments);return e===void 0?n.length!==0?n[0].aaSorting:void 0:(typeof e=="number"?e=[[e,r]]:a.length>1&&(e=a),this.iterator("table",function(u){var c=[];so(u,c,e),u.aaSorting=c}))});ze("order.listener()",function(e,r,n){return this.iterator("table",function(a){Mv(a,e,{},r,n)})});ze("order.fixed()",function(e){if(!e){var r=this.context,n=r.length?r[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",function(a){a.aaSortingFixed=Q.extend(!0,{},e)})});ze(["columns().order()","column().order()"],function(e){var r=this;return e?this.iterator("table",function(n,a){n.aaSorting=r[a].map(function(u){return[u,e]})}):this.iterator("column",function(n,a){for(var u=kf(n),c=0,h=u.length;c<h;c++)if(u[c].col===a)return u[c].dir;return null},1)});Qt("columns().orderable()","column().orderable()",function(e){return this.iterator("column",function(r,n){var a=r.aoColumns[n];return e?a.asSorting:a.bSortable},1)});ze("processing()",function(e){return this.iterator("table",function(r){Qn(r,e)})});ze("search()",function(e,r,n,a){var u=this.context;return e===void 0?u.length!==0?u[0].oPreviousSearch.search:void 0:this.iterator("table",function(c){c.oFeatures.bFilter&&(typeof r=="object"?_s(c,Q.extend(c.oPreviousSearch,r,{search:e})):_s(c,Q.extend(c.oPreviousSearch,{search:e,regex:r===null?!1:r,smart:n===null?!0:n,caseInsensitive:a===null?!0:a})))})});ze("search.fixed()",function(e,r){var n=this.iterator(!0,"table",function(a){var u=a.searchFixed;if(e){if(r===void 0)return u[e];r===null?delete u[e]:u[e]=r}else return Object.keys(u);return this});return e!==void 0&&r===void 0?n[0]:n});Qt("columns().search()","column().search()",function(e,r,n,a){return this.iterator("column",function(u,c){var h=u.aoPreSearchCols;if(e===void 0)return h[c].search;u.oFeatures.bFilter&&(typeof r=="object"?Q.extend(h[c],r,{search:e}):Q.extend(h[c],{search:e,regex:r===null?!1:r,smart:n===null?!0:n,caseInsensitive:a===null?!0:a}),_s(u,u.oPreviousSearch))})});ze(["columns().search.fixed()","column().search.fixed()"],function(e,r){var n=this.iterator(!0,"column",function(a,u){var c=a.aoColumns[u].searchFixed;if(e){if(r===void 0)return c[e]||null;r===null?delete c[e]:c[e]=r}else return Object.keys(c);return this});return e!==void 0&&r===void 0?n[0]:n});ze("state()",function(e,r){if(!e)return this.context.length?this.context[0].oSavedState:null;var n=Q.extend(!0,{},e);return this.iterator("table",function(a){r!==!1&&(n.time=+new Date+100),Wc(a,n,function(){})})});ze("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})});ze("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});ze("state.save()",function(){return this.iterator("table",function(e){Gf(e)})});var bv,vv;ye.use=function(e,r){var n=typeof e=="string"?r:e,a=typeof r=="string"?r:e;if(n===void 0&&typeof a=="string")switch(a){case"lib":case"jq":return Q;case"win":return window;case"datetime":return ye.DateTime;case"luxon":return Ua;case"moment":return co;case"bootstrap":return bv||window.bootstrap;case"foundation":return vv||window.Foundation;default:return null}a==="lib"||a==="jq"||n&&n.fn&&n.fn.jquery?Q=n:a==="win"||n&&n.document?(window=n,document=n.document):a==="datetime"||n&&n.type==="DateTime"?ye.DateTime=n:a==="luxon"||n&&n.FixedOffsetZone?Ua=n:a==="moment"||n&&n.isMoment?co=n:a==="bootstrap"||n&&n.Modal&&n.Modal.NAME==="modal"?bv=n:(a==="foundation"||n&&n.Reveal)&&(vv=n)};ye.factory=function(e,r){var n=!1;return e&&e.document&&(window=e,document=e.document),r&&r.fn&&r.fn.jquery&&(Q=r,n=!0),n};ye.versionCheck=function(e,r){for(var n=r?r.split("."):ye.version.split("."),a=e.split("."),u,c,h=0,b=a.length;h<b;h++)if(u=parseInt(n[h],10)||0,c=parseInt(a[h],10)||0,u!==c)return u>c;return!0};ye.isDataTable=function(e){var r=Q(e).get(0),n=!1;return e instanceof ye.Api?!0:(Q.each(ye.settings,function(a,u){var c=u.nScrollHead?Q("table",u.nScrollHead)[0]:null,h=u.nScrollFoot?Q("table",u.nScrollFoot)[0]:null;(u.nTable===r||c===r||h===r)&&(n=!0)}),n)};ye.tables=function(e){var r=!1;Q.isPlainObject(e)&&(r=e.api,e=e.visible);var n=ye.settings.filter(function(a){return!!(!e||e&&Q(a.nTable).is(":visible"))}).map(function(a){return a.nTable});return r?new _t(n):n};ye.camelToHungarian=Fa;ze("$()",function(e,r){var n=this.rows(r).nodes(),a=Q(n);return Q([].concat(a.filter(e).toArray(),a.find(e).toArray()))});Q.each(["on","one","off"],function(e,r){ze(r+"()",function(){var n=Array.prototype.slice.call(arguments);n[0]=n[0].split(/\s/).map(function(u){return u.match(/\.dt\b/)?u:u+".dt"}).join(" ");var a=Q(this.tables().nodes());return a[r].apply(a,n),this})});ze("clear()",function(){return this.iterator("table",function(e){Jc(e)})});ze("error()",function(e){return this.iterator("table",function(r){ui(r,0,e)})});ze("settings()",function(){return new _t(this.context,this.context)});ze("init()",function(){var e=this.context;return e.length?e[0].oInit:null});ze("data()",function(){return this.iterator("table",function(e){return ln(e.aoData,"_aData")}).flatten()});ze("trigger()",function(e,r,n){return this.iterator("table",function(a){return Dt(a,null,e,r,n)}).flatten()});ze("ready()",function(e){var r=this.context;return e?this.tables().every(function(){var n=this;this.context[0]._bInitComplete?e.call(n):this.on("init.dt.DT",function(){e.call(n)})}):r.length?r[0]._bInitComplete||!1:null});ze("destroy()",function(e){return e=e||!1,this.iterator("table",function(r){var n=r.oClasses,a=r.nTable,u=r.nTBody,c=r.nTHead,h=r.nTFoot,b=Q(a),x=Q(u),_=Q(r.nTableWrapper),I=r.aoData.map(function(A){return A?A.nTr:null}),F=n.order;r.bDestroying=!0,Dt(r,"aoDestroyCallback","destroy",[r],!0),e||new _t(r).columns().visible(!0),r.resizeObserver&&r.resizeObserver.disconnect(),_.off(".DT").find(":not(tbody *)").off(".DT"),Q(window).off(".DT-"+r.sInstance),a!=c.parentNode&&(b.children("thead").detach(),b.append(c)),h&&a!=h.parentNode&&(b.children("tfoot").detach(),b.append(h)),yv(c,"header"),yv(h,"footer"),r.colgroup.remove(),r.aaSorting=[],r.aaSortingFixed=[],Dc(r),Q(b).find("th, td").removeClass(Q.map(ye.ext.type.className,function(A){return A}).join(" ")),Q("th, td",c).removeClass(F.none+" "+F.canAsc+" "+F.canDesc+" "+F.isAsc+" "+F.isDesc).css("width","").removeAttr("aria-sort"),x.children().detach(),x.append(I);var G=r.nTableWrapper.parentNode,W=r.nTableWrapper.nextSibling,U=e?"remove":"detach";b[U](),_[U](),!e&&G&&(G.insertBefore(a,W),b.css("width",r.sDestroyWidth).removeClass(n.table));var X=ye.settings.indexOf(r);X!==-1&&ye.settings.splice(X,1)})});Q.each(["column","row","cell"],function(e,r){ze(r+"s().every()",function(n){var a=this.selector.opts,u=this,c,h=0;return this.iterator("every",function(b,x,_){c=u[r](x,a),r==="cell"?n.call(c,c[0][0].row,c[0][0].column,_,h):n.call(c,x,_,h),h++})})});ze("i18n()",function(e,r,n){var a=this.context[0],u=hl(e)(a.oLanguage);return u===void 0&&(u=r),Q.isPlainObject(u)&&(u=n!==void 0&&u[n]!==void 0?u[n]:n===!1?u:u._),typeof u=="string"?u.replace("%d",n):u});function yv(e,r){Q(e).find("span.dt-column-order").remove(),Q(e).find("span.dt-column-title").each(function(){var n=Q(this).html();Q(this).parent().parent().append(n),Q(this).remove()}),Q(e).find("div.dt-column-"+r).remove(),Q("th, td",e).removeAttr("data-dt-column")}ye.version="2.3.5";ye.settings=[];ye.models={};ye.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1};ye.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null};ye.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,wideStrings:null,searchFixed:null};ye.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((e.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch{return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,r){try{(e.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(r))}catch{}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"\xAB",sLast:"\xBB",sNext:"\u203A",sPrevious:"\u2039"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:Q.extend({},ye.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null};Nf(ye.defaults);ye.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Nf(ye.defaults.column);ye.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return Hn(this)=="ssp"?this._iRecordsTotal*1:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return Hn(this)=="ssp"?this._iRecordsDisplay*1:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,r=this._iDisplayStart,n=r+e,a=this.aiDisplay.length,u=this.oFeatures,c=u.bPaginate;return u.bServerSide?c===!1||e===-1?r+a:Math.min(r+e,this._iRecordsDisplay):!c||n>a||e===-1?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null};var $_=ye.ext.pager;Q.extend($_,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:ey,numbers_length:7});Q.extend(!0,ye.ext.renderer,{pagingButton:{_:function(e,r,n,a,u){var c=e.oClasses.paging,h=[c.button],b;return a&&h.push(c.active),u&&h.push(c.disabled),r==="ellipsis"?b=Q('<span class="ellipsis"></span>').html(n)[0]:b=Q("<button>",{class:h.join(" "),role:"link",type:"button"}).html(n),{display:b,clicker:b}}},pagingContainer:{_:function(e,r){return r}}});var bl=function(e,r){return function(n){return Vn(n)||typeof n!="string"||(n=n.replace(c_," "),e&&(n=ra(n)),r&&(n=wf(n,!1))),n}};function xv(e,r,n,a,u){return co?e[r](u):Ua?e[n](u):a?e[a](u):e}var Tv=!1,Ua,co;function eN(){window.luxon&&!Ua&&(Ua=window.luxon),window.moment&&!co&&(co=window.moment)}function _f(e,r,n){var a;if(eN(),co){if(a=co.utc(e,r,n,!0),!a.isValid())return null}else if(Ua){if(a=r&&typeof e=="string"?Ua.DateTime.fromFormat(e,r):Ua.DateTime.fromISO(e),!a.isValid)return null;a=a.setLocale(n)}else r?(Tv||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Tv=!0):a=new Date(e);return a}function Fc(e){return function(r,n,a,u){arguments.length===0?(a="en",n=null,r=null):arguments.length===1?(a="en",n=r,r=null):arguments.length===2&&(a=n,n=r,r=null);var c="datetime"+(n?"-"+n:"");return ye.ext.type.order[c+"-pre"]||ye.type(c,{detect:function(h){return h===c?c:!1},order:{pre:function(h){return h.valueOf()}},className:"dt-right"}),function(h,b){if(h==null)if(u==="--now"){var x=new Date;h=new Date(Date.UTC(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds()))}else h="";if(b==="type")return c;if(h==="")return b!=="sort"?"":_f("0000-01-01 00:00:00",null,a);if(n!==null&&r===n&&b!=="sort"&&b!=="type"&&!(h instanceof Date))return h;var _=_f(h,r,a);if(_===null)return h;if(b==="sort")return _;var I=n===null?xv(_,"toDate","toJSDate","")[e](navigator.language,{timeZone:"UTC"}):xv(_,"format","toFormat","toISOString",n);return b==="display"?uo(I):I}}}var qv=",",Kv=".";if(window.Intl!==void 0)try{for(dl=new Intl.NumberFormat().formatToParts(100000.1),_r=0;_r<dl.length;_r++)dl[_r].type==="group"?qv=dl[_r].value:dl[_r].type==="decimal"&&(Kv=dl[_r].value)}catch{}var dl,_r;ye.datetime=function(e,r){var n="datetime-"+e;r||(r="en"),ye.ext.type.order[n]||ye.type(n,{detect:function(a){var u=_f(a,e,r);return a===""||u?n:!1},order:{pre:function(a){return _f(a,e,r)||0}},className:"dt-right"})};ye.render={date:Fc("toLocaleDateString"),datetime:Fc("toLocaleString"),time:Fc("toLocaleTimeString"),number:function(e,r,n,a,u){return e==null&&(e=qv),r==null&&(r=Kv),{display:function(c){if(typeof c!="number"&&typeof c!="string"||c===""||c===null)return c;var h=c<0?"-":"",b=parseFloat(c),x=Math.abs(b);if(x>=1e11||x<1e-4&&x!==0){var _=b.toExponential(n).split(/e\+?/);return _[0]+" x 10<sup>"+_[1]+"</sup>"}if(isNaN(b))return uo(c);b=b.toFixed(n),c=Math.abs(b);var I=parseInt(c,10),F=n?r+(c-I).toFixed(n).substring(2):"";return I===0&&parseFloat(F)===0&&(h=""),h+(a||"")+I.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+F+(u||"")}}},text:function(){return{display:uo,filter:uo}}};var xn=ye.ext.type;ye.type=function(e,r,n){if(!r)return{className:xn.className[e],detect:xn.detect.find(function(h){return h._name===e}),order:{pre:xn.order[e+"-pre"],asc:xn.order[e+"-asc"],desc:xn.order[e+"-desc"]},render:xn.render[e],search:xn.search[e]};var a=function(h,b){xn[h][e]=b},u=function(h){Object.defineProperty(h,"_name",{value:e});var b=xn.detect.findIndex(function(x){return x._name===e});b===-1?xn.detect.unshift(h):xn.detect.splice(b,1,h)},c=function(h){xn.order[e+"-pre"]=h.pre,xn.order[e+"-asc"]=h.asc,xn.order[e+"-desc"]=h.desc};n===void 0&&(n=r,r=null),r==="className"?a("className",n):r==="detect"?u(n):r==="order"?c(n):r==="render"?a("render",n):r==="search"?a("search",n):r||(n.className&&a("className",n.className),n.detect!==void 0&&u(n.detect),n.order&&c(n.order),n.render!==void 0&&a("render",n.render),n.search!==void 0&&a("search",n.search))};ye.types=function(){return xn.detect.map(function(e){return e._name})};var Oc=function(e,r){return e=e!=null?e.toString().toLowerCase():"",r=r!=null?r.toString().toLowerCase():"",e.localeCompare(r,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},Cv=function(e,r){return e=ra(e),r=ra(r),Oc(e,r)};ye.type("string",{detect:function(){return"string"},order:{pre:function(e){return Vn(e)&&typeof e!="boolean"?"":typeof e=="string"?e.toLowerCase():e.toString?e.toString():""}},search:bl(!1,!0)});ye.type("string-utf8",{detect:{allOf:function(e){return!0},oneOf:function(e){return!Vn(e)&&navigator.languages&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:Oc,desc:function(e,r){return Oc(e,r)*-1}},search:bl(!1,!0)});ye.type("html",{detect:{allOf:function(e){return Vn(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return!Vn(e)&&typeof e=="string"&&e.indexOf("<")!==-1}},order:{pre:function(e){return Vn(e)?"":e.replace?ra(e).trim().toLowerCase():e+""}},search:bl(!0,!0)});ye.type("html-utf8",{detect:{allOf:function(e){return Vn(e)||typeof e=="string"&&e.indexOf("<")!==-1},oneOf:function(e){return navigator.languages&&!Vn(e)&&typeof e=="string"&&e.indexOf("<")!==-1&&typeof e=="string"&&e.match(/[^\x00-\x7F]/)}},order:{asc:Cv,desc:function(e,r){return Cv(e,r)*-1}},search:bl(!0,!0)});ye.type("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!av.test(e))return null;var r=Date.parse(e);return r!==null&&!isNaN(r)||Vn(e)},oneOf:function(e){return e instanceof Date||typeof e=="string"&&av.test(e)}},order:{pre:function(e){var r=Date.parse(e);return isNaN(r)?-1/0:r}}});ye.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,r){var n=r.oLanguage.sDecimal;return If(e,n,!0,!1)},oneOf:function(e,r){var n=r.oLanguage.sDecimal;return If(e,n,!0,!1)}},order:{pre:function(e,r){var n=r.oLanguage.sDecimal;return Zf(e,n,Zc,Mc)}},search:bl(!0,!0)});ye.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,r){var n=r.oLanguage.sDecimal;return If(e,n,!1,!0)},oneOf:function(e,r){var n=r.oLanguage.sDecimal;return If(e,n,!1,!1)}},order:{pre:function(e,r){var n=r.oLanguage.sDecimal;return Zf(e,n,Zc)}},search:bl(!0,!0)});ye.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,r){var n=r.oLanguage.sDecimal;return Es(e,n,!0,!0)},oneOf:function(e,r){var n=r.oLanguage.sDecimal;return Es(e,n,!0,!1)}},order:{pre:function(e,r){var n=r.oLanguage.sDecimal;return Zf(e,n,Mc)}}});ye.type("num",{className:"dt-type-numeric",detect:{allOf:function(e,r){var n=r.oLanguage.sDecimal;return Es(e,n,!1,!0)},oneOf:function(e,r){var n=r.oLanguage.sDecimal;return Es(e,n,!1,!1)}},order:{pre:function(e,r){var n=r.oLanguage.sDecimal;return Zf(e,n)}}});var Zf=function(e,r,n,a){if(e!==0&&(!e||e==="-"))return-1/0;var u=typeof e;return u==="number"||u==="bigint"?e:(r&&(e=Rv(e,r)),e.replace&&(n&&(e=e.replace(n,"")),a&&(e=e.replace(a,""))),e*1)};Q.extend(!0,ye.ext.renderer,{footer:{_:function(e,r,n){r.addClass(n.tfoot.cell)}},header:{_:function(e,r,n){r.addClass(n.thead.cell),e.oFeatures.bSort||r.addClass(n.order.none);var a=e.titleRow,u=r.closest("thead").find("tr"),c=r.parent().index();r.attr("data-dt-order")==="disable"||r.parent().attr("data-dt-order")==="disable"||a===!0&&c!==0||a===!1&&c!==u.length-1||typeof a=="number"&&c!==a||Q(e.nTable).on("order.dt.DT column-visibility.dt.DT",function(h,b,x){if(e===b){var _=b.sortDetails;if(_){var I=ln(_,"col");if(!(h.type==="column-visibility"&&!I.includes(x))){var F,G=n.order,W=b.api.columns(r),U=e.aoColumns[W.flatten()[0]],X=W.orderable().includes(!0),A="",k=W.indexes(),K=W.orderable(!0).flatten(),V=e.iTabIndex,D=b.orderHandler&&X;r.removeClass(G.isAsc+" "+G.isDesc).toggleClass(G.none,!X).toggleClass(G.canAsc,D&&K.includes("asc")).toggleClass(G.canDesc,D&&K.includes("desc"));var ee=!0;for(F=0;F<k.length;F++)I.includes(k[F])||(ee=!1);if(ee){var m=W.order();r.addClass(m.includes("asc")?G.isAsc:""+m.includes("desc")?G.isDesc:"")}var Z=-1;for(F=0;F<I.length;F++)if(e.aoColumns[I[F]].bVisible){Z=I[F];break}if(k[0]==Z){var z=_[0],se=U.asSorting;r.attr("aria-sort",z.dir==="asc"?"ascending":"descending"),A=se[z.index+1]?"Reverse":"Remove"}else r.removeAttr("aria-sort");if(X){var Te=r.find(".dt-column-order");Te.attr("role","button").attr("aria-label",X?U.ariaTitle+b.api.i18n("oAria.orderable"+A):U.ariaTitle),V!==-1&&Te.attr("tabindex",V)}}}}})}},layout:{_:function(e,r,n){var a=e.oClasses.layout,u=Q("<div/>").attr("id",n.id||null).addClass(n.className||a.row).appendTo(r);ye.ext.renderer.layout._forLayoutRow(n,function(c,h){if(!(c==="id"||c==="className")){var b="";h.table&&(u.addClass(a.tableRow),b+=a.tableCell+" "),c==="start"?b+=a.start:c==="end"?b+=a.end:b+=a.full,Q("<div/>").attr({id:h.id||null,class:h.className?h.className:a.cell+" "+b}).append(h.contents).appendTo(u)}})},_forLayoutRow:function(e,r){var n=function(a){switch(a){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(e).sort(function(a,u){return n(a)-n(u)}).forEach(function(a){r(a,e[a])})}}});ye.feature={};ye.feature.register=function(e,r,n){ye.ext.features[e]=r,n&&Xr.feature.push({cFeature:n,fnInit:r})};function xf(e,r,n){n&&(e[r]=n)}ye.feature.register("div",function(e,r){var n=Q("<div>")[0];return r&&(xf(n,"className",r.className),xf(n,"id",r.id),xf(n,"innerHTML",r.html),xf(n,"textContent",r.text)),n});ye.feature.register("info",function(e,r){if(!e.oFeatures.bInfo)return null;var n=e.oLanguage,a=e.sTableId,u=Q("<div/>",{class:e.oClasses.info.container});return r=Q.extend({callback:n.fnInfoCallback,empty:n.sInfoEmpty,postfix:n.sInfoPostFix,search:n.sInfoFiltered,text:n.sInfo},r),e.aoDrawCallback.push(function(c){tN(c,r,u)}),e._infoEl||(u.attr({"aria-live":"polite",id:a+"_info",role:"status"}),Q(e.nTable).attr("aria-describedby",a+"_info"),e._infoEl=u),u},"i");function tN(e,r,n){var a=e._iDisplayStart+1,u=e.fnDisplayEnd(),c=e.fnRecordsTotal(),h=e.fnRecordsDisplay(),b=h?r.text:r.empty;h!==c&&(b+=" "+r.search),b+=r.postfix,b=qc(e,b),r.callback&&(b=r.callback.call(e.oInstance,e,a,u,c,h,b)),n.html(b),Dt(e,null,"info",[e,n[0],b])}var Lc=0;ye.feature.register("search",function(e,r){if(!e.oFeatures.bFilter)return null;var n=e.oClasses.search,a=e.sTableId,u=e.oLanguage,c=e.oPreviousSearch,h='<input type="search" class="'+n.input+'"/>';r=Q.extend({placeholder:u.sSearchPlaceholder,processing:!1,text:u.sSearch},r),r.text.indexOf("_INPUT_")===-1&&(r.text+="_INPUT_"),r.text=qc(e,r.text);var b=r.text.match(/_INPUT_$/),x=r.text.match(/^_INPUT_/),_=r.text.replace(/_INPUT_/,""),I="<label>"+r.text+"</label>";x?I="_INPUT_<label>"+_+"</label>":b&&(I="<label>"+_+"</label>_INPUT_");var F=Q("<div>").addClass(n.container).append(I.replace(/_INPUT_/,h));F.find("label").attr("for","dt-search-"+Lc),F.find("input").attr("id","dt-search-"+Lc),Lc++;var G=function(X){var A=this.value;c.return&&X.key!=="Enter"||A!=c.search&&Dv(e,r.processing,function(){c.search=A,_s(e,c),e._iDisplayStart=0,ml(e)})},W=e.searchDelay!==null?e.searchDelay:0,U=Q("input",F).val(c.search).attr("placeholder",r.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",W?ye.util.debounce(G,W):G).on("mouseup.DT",function(X){setTimeout(function(){G.call(U[0],X)},10)}).on("keypress.DT",function(X){if(X.keyCode==13)return!1}).attr("aria-controls",a);return Q(e.nTable).on("search.dt.DT",function(X,A){e===A&&U[0]!==document.activeElement&&U.val(typeof c.search!="function"?c.search:"")}),F},"f");ye.feature.register("paging",function(e,r){if(!e.oFeatures.bPaginate)return null;r=Q.extend({buttons:ye.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},r);var n=Q("<div/>").addClass(e.oClasses.paging.container+(r.type?" paging_"+r.type:"")).append(Q("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav)),a=function(){$v(e,n.children(),r)};return e.aoDrawCallback.push(a),Q(e.nTable).on("column-sizing.dt.DT",a),n},"p");function rN(e){var r=[];return e.numbers&&r.push("numbers"),e.previousNext&&(r.unshift("previous"),r.push("next")),e.firstLast&&(r.unshift("first"),r.push("last")),r}function $v(e,r,n){if(e._bInitComplete){var a=n.type?ye.ext.pager[n.type]:rN,u=e.oLanguage.oAria.paginate||{},c=e._iDisplayStart,h=e._iDisplayLength,b=e.fnRecordsDisplay(),x=h===-1,_=x?0:Math.ceil(c/h),I=x?1:Math.ceil(b/h),F=[],G=[],W=a(n).map(function(m){return m==="numbers"?ey(_,I,n.buttons,n.boundaryNumbers):m});F=F.concat.apply(F,W);for(var U=0;U<F.length;U++){var X=F[U],A=nN(e,X,_,I),k=Af(e,"pagingButton")(e,X,A.display,A.active,A.disabled),K=typeof X=="string"?u[X]:u.number?u.number+(X+1):null;Q(k.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":A.disabled?"true":null,"aria-current":A.active?"page":null,"aria-label":K,"data-dt-idx":X,tabIndex:A.disabled?-1:e.iTabIndex&&k.clicker[0].nodeName.toLowerCase()!=="span"?e.iTabIndex:null}),typeof X!="number"&&Q(k.clicker).addClass(X),Qv(k.clicker,{action:X},function(m){m.preventDefault(),Pc(e,m.data.action,!0)}),G.push(k.display)}var V=Af(e,"pagingContainer")(e,G),D=r.find(document.activeElement).data("dt-idx");if(r.empty().append(V),D!==void 0&&r.find("[data-dt-idx="+D+"]").trigger("focus"),G.length){var ee=Q(G[0]).outerHeight();n.buttons>1&&ee>0&&Q(r).height()>=ee*2-10&&$v(e,r,Q.extend({},n,{buttons:n.buttons-2}))}}}function nN(e,r,n,a){var u=e.oLanguage.oPaginate,c={display:"",active:!1,disabled:!1};switch(r){case"ellipsis":c.display="&#x2026;";break;case"first":c.display=u.sFirst,n===0&&(c.disabled=!0);break;case"previous":c.display=u.sPrevious,n===0&&(c.disabled=!0);break;case"next":c.display=u.sNext,(a===0||n===a-1)&&(c.disabled=!0);break;case"last":c.display=u.sLast,(a===0||n===a-1)&&(c.disabled=!0);break;default:typeof r=="number"&&(c.display=e.fnFormatNumber(r+1),n===r&&(c.active=!0));break}return c}function ey(e,r,n,a){var u=[],c=Math.floor(n/2),h=a?2:1,b=a?1:0;return r<=n?u=Na(0,r):n===1?u=[e]:n===3?e<=1?u=[0,1,"ellipsis"]:e>=r-2?(u=Na(r-2,r),u.unshift("ellipsis")):u=["ellipsis",e,"ellipsis"]:e<=c?(u=Na(0,n-h),u.push("ellipsis"),a&&u.push(r-1)):e>=r-1-c?(u=Na(r-(n-h),r),u.unshift("ellipsis"),a&&u.unshift(0)):(u=Na(e-c+h,e+c-b),u.push("ellipsis"),u.unshift("ellipsis"),a&&(u.push(r-1),u.unshift(0))),u}var Bc=0;ye.feature.register("pageLength",function(e,r){var n=e.oFeatures;if(!n.bPaginate||!n.bLengthChange)return null;r=Q.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},r);var a=e.oClasses.length,u=e.sTableId,c=r.menu,h=[],b=[],x;if(Array.isArray(c[0]))h=c[0],b=c[1];else for(x=0;x<c.length;x++)Q.isPlainObject(c[x])?(h.push(c[x].value),b.push(c[x].label)):(h.push(c[x]),b.push(c[x]));var _=r.text.match(/_MENU_$/),I=r.text.match(/^_MENU_/),F=r.text.replace(/_MENU_/,""),G="<label>"+r.text+"</label>";I?G="_MENU_<label>"+F+"</label>":_&&(G="<label>"+F+"</label>_MENU_");var W="tmp-"+ +new Date,U=Q("<div/>").addClass(a.container).append(G.replace("_MENU_",'<span id="'+W+'"></span>')),X=[];Array.prototype.slice.call(U.find("label")[0].childNodes).forEach(function(V){V.nodeType===Node.TEXT_NODE&&X.push({el:V,text:V.textContent})});var A=function(V){X.forEach(function(D){D.el.textContent=qc(e,D.text,V)})},k=Q("<select/>",{"aria-controls":u,class:a.select});for(x=0;x<h.length;x++){var K=e.api.i18n("lengthLabels."+h[x],null);K===null&&(K=typeof b[x]=="number"?e.fnFormatNumber(b[x]):b[x]),k[0][x]=new Option(K,h[x])}return U.find("label").attr("for","dt-length-"+Bc),k.attr("id","dt-length-"+Bc),Bc++,U.find("#"+W).replaceWith(k),Q("select",U).val(e._iDisplayLength).on("change.DT",function(){Gv(e,Q(this).val()),ml(e)}),Q(e.nTable).on("length.dt.DT",function(V,D,ee){e===D&&(Q("select",U).val(ee),A(ee))}),A(e._iDisplayLength),U},"l");Q.fn.dataTable=ye;ye.$=Q;Q.fn.dataTableSettings=ye.settings;Q.fn.dataTableExt=ye.ext;Q.fn.DataTable=function(e){return Q(this).dataTable(e).api()};Q.each(ye,function(e,r){Q.fn.DataTable[e]=r});var dy=Gr(Ec());var iN=Gr(sy());var cy=Gr(uy()),ah=50;function fy(e){Tt(this,"expanded"),e.preventDefault()}var Mf=class Mf{constructor(r){this.persistentConfig={};this.helpReference="https://docs.triply.cc/yasgui/#table";this.label="Table";this.priority=10;this.setEllipsisHandlers=()=>{this.dataTable?.cells({page:"current"}).every((r,n)=>{let a=this.dataTable?.cell(r,n);if(a?.data()==="")return;let u=a?.node();if(u){let c=u.firstChild;(c.firstElementChild?.getBoundingClientRect().width||0)>c.getBoundingClientRect().width?c.classList.contains("expandable")||(Tt(c,"expandable"),c.addEventListener("click",fy,{once:!0})):c.classList.contains("expandable")&&(Fn(c,"expandable"),c.removeEventListener("click",fy))}})};this.handleTableSearch=r=>{this.dataTable?.search(r.target.value).draw("page")};this.handleTableSizeSelect=r=>{let n=parseInt(r.target.value);this.dataTable?.page.len(n).draw("page"),this.persistentConfig.pageSize=n,this.yasr.storePluginConfig("table",this.persistentConfig)};this.handleSetCompactToggle=r=>{this.persistentConfig.compact=r.target.checked,this.draw(this.persistentConfig),this.yasr.storePluginConfig("table",this.persistentConfig)};this.handleSetCompactViewToggle=r=>{this.persistentConfig.isCompactView=r.target.checked,this.draw(this.persistentConfig),this.yasr.storePluginConfig("table",this.persistentConfig)};this.handleSetUriPrefixToggle=r=>{this.persistentConfig.showUriPrefixes=r.target.checked,this.draw(this.persistentConfig),this.yasr.storePluginConfig("table",this.persistentConfig)};this.handleSetDatatypeToggle=r=>{this.persistentConfig.showDatatypes=r.target.checked,this.draw(this.persistentConfig),this.yasr.storePluginConfig("table",this.persistentConfig)};this.handleCopyMarkdown=async r=>{let n=this.getMarkdownTable(),a=r.target;if(a.disabled)return;a.disabled=!0;let u="Copy as Markdown";try{await navigator.clipboard.writeText(n),a.textContent="Copied!",setTimeout(()=>{a.textContent=u,a.disabled=!1},2e3)}catch{a.textContent="Copy failed",setTimeout(()=>{a.textContent=u,a.disabled=!1},2e3)}};this.yasr=r,this.config=Mf.defaults}getIcon(){return ii(ro(iN))}getRows(){if(!this.yasr.results)return[];let r=this.yasr.results.getBindings();if(!r)return[];let n=this.yasr.results.getVariables();return r.map((a,u)=>[u+1,...n.map(c=>a[c]??"")])}getMarkdownTable(){if(!this.yasr.results)return"";let r=this.yasr.results.getBindings();if(!r)return"";let n=this.yasr.results.getVariables(),a=h=>h.replace(/\\/g,"\\\\").replace(/\|/g,"\\|"),u=h=>h===""?"":a(h.value),c="| "+n.map(a).join(" | ")+` |
47
- `;return c+="| "+n.map(()=>"---").join(" | ")+` |
48
- `,r.forEach(h=>{let b=n.map(x=>u(h[x]??""));c+="| "+b.join(" | ")+` |
49
- `}),c}getUriLinkFromBinding(r,n){let a=Mi(r.value),u=a,c=!1;if(this.persistentConfig.showUriPrefixes!==!1&&n){for(let x in n)if(u.indexOf(n[x])==0){u=x+":"+a.substring(n[x].length),c=!0;break}}let h=c||this.persistentConfig.compact,b=`${h?"":"&lt;"}<a class='iri' target='${this.config.openIriInNewWindow?"_blank":"_self"}'${this.config.openIriInNewWindow?" ref='noopener noreferrer'":""} href='${a}'>${Mi(u)}</a>${h?"":"&gt;"}`;return Mi(b)}getCellContent(r,n){let a;return r.type=="uri"?a=`<span>${this.getUriLinkFromBinding(r,n)}</span>`:a=`<span class='nonIri'>${this.formatLiteral(r,n)}</span>`,`<div>${a}</div>`}formatLiteral(r,n){let a=Mi(Bd(r.value));if(this.persistentConfig.compact)return a;if(this.persistentConfig.showDatatypes!==!1){if(r["xml:lang"])a=`"${a}"<sup>@${r["xml:lang"]}</sup>`;else if(r.datatype){let u=this.getUriLinkFromBinding({type:"uri",value:r.datatype},n);a=`"${a}"<sup>^^${u}</sup>`}}return a}getColumns(){if(!this.yasr.results)return[];let r=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:`${this.getSizeFirstColumn()}px`,type:"num",orderable:!1,visible:this.persistentConfig.compact!==!0,render:(n,a)=>a==="filter"||a==="sort"||!a?n:`<div class="rowNumber">${n}</div>`},...this.yasr.results?.getVariables().map(n=>({name:n,title:Mi(n),render:(a,u,c,h)=>a===""?a:u==="filter"||u==="sort"||!u?Mi(a.value):this.getCellContent(a,r)}))]}getSizeFirstColumn(){return(this.yasr.results?.getBindings()?.length||0).toString().length*8}draw(r){this.persistentConfig={...this.persistentConfig,...r},this.tableEl=document.createElement("table");let n=this.getRows(),a=this.getColumns();n.length<=(r?.pageSize||ah)?(this.yasr.pluginControls,Tt(this.yasr.rootEl,"isSinglePage")):Fn(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);let u={...$o(this.config.tableConfig),pageLength:r?.pageSize?r.pageSize:ah,data:n,columns:a};this.dataTable=(0,dy.default)(this.tableEl).DataTable(u),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px";let c=Array.from(this.tableEl.querySelectorAll("th")).map(h=>h.offsetWidth-26);this.tableResizer=new cy.default(this.tableEl,{widths:this.persistentConfig.compact===!0?c:[this.getSizeFirstColumn(),...c.slice(1)],partialRefresh:!0,onResize:this.persistentConfig.isCompactView!==!1&&this.setEllipsisHandlers,headerOnly:!0}),this.persistentConfig.isCompactView!==!1&&(this.dataTable?.on("preDraw",()=>(this.tableResizer?.reset({disable:!0}),Fn(this.tableEl,"compactTable"),this.tableEl?.style.removeProperty("width"),this.tableEl?.style.setProperty("width",this.tableEl.clientWidth+"px"),!0)),this.dataTable?.on("draw",()=>{if(!this.tableEl)return;let h=this.tableEl.clientWidth;this.tableEl.style.removeProperty("width"),h>this.tableEl.clientWidth&&(h=this.tableEl.clientWidth),this.tableEl?.style.setProperty("width",`${h}px`),this.tableResizer?.reset({disable:!1,partialRefresh:!0,onResize:this.setEllipsisHandlers,headerOnly:!0}),Tt(this.tableEl,"compactTable"),this.setEllipsisHandlers()})),this.drawControls(),this.persistentConfig.isCompactView!==!1&&(Tt(this.tableEl,"compactTable"),this.setEllipsisHandlers())}drawControls(){this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls";let r=document.createElement("div"),n=document.createElement("label"),a=document.createElement("span");a.innerText="Simple view",Tt(a,"label"),n.appendChild(a),Tt(n,"switch"),r.appendChild(n),this.tableCompactSwitch=document.createElement("input"),n.addEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch.type="checkbox",n.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(r);let u=document.createElement("div"),c=document.createElement("label"),h=document.createElement("span");h.innerText="Compact",Tt(h,"label"),c.appendChild(h),Tt(c,"switch"),u.appendChild(c),this.tableCompactViewSwitch=document.createElement("input"),c.addEventListener("change",this.handleSetCompactViewToggle),this.tableCompactViewSwitch.type="checkbox",c.appendChild(this.tableCompactViewSwitch),this.tableCompactViewSwitch.defaultChecked=this.persistentConfig.isCompactView!==!1,this.tableControls.appendChild(u);let b=document.createElement("div"),x=document.createElement("label"),_=document.createElement("span");_.innerText="Prefixes",Tt(_,"label"),x.appendChild(_),Tt(x,"switch"),b.appendChild(x),this.tableUriPrefixSwitch=document.createElement("input"),x.addEventListener("change",this.handleSetUriPrefixToggle),this.tableUriPrefixSwitch.type="checkbox",x.appendChild(this.tableUriPrefixSwitch),this.tableUriPrefixSwitch.defaultChecked=this.persistentConfig.showUriPrefixes!==!1,this.tableControls.appendChild(b);let I=document.createElement("div"),F=document.createElement("label"),G=document.createElement("span");G.innerText="Datatypes",Tt(G,"label"),F.appendChild(G),Tt(F,"switch"),I.appendChild(F),this.tableDatatypeSwitch=document.createElement("input"),F.addEventListener("change",this.handleSetDatatypeToggle),this.tableDatatypeSwitch.type="checkbox",F.appendChild(this.tableDatatypeSwitch),this.tableDatatypeSwitch.defaultChecked=this.persistentConfig.showDatatypes!==!1,this.tableControls.appendChild(I),this.tableFilterField=document.createElement("input"),this.tableFilterField.className="tableFilter",this.tableFilterField.placeholder="Filter query results",this.tableFilterField.setAttribute("aria-label","Filter query results"),this.tableControls.appendChild(this.tableFilterField),this.tableFilterField.addEventListener("keyup",this.handleTableSearch);let W=document.createElement("button");W.className="copyMarkdownBtn",W.textContent="Copy as Markdown",W.setAttribute("aria-label","Copy table as markdown"),W.addEventListener("click",this.handleCopyMarkdown),this.tableControls.appendChild(W);let U=document.createElement("div");U.className="pageSizeWrapper";let X=document.createElement("span");X.textContent="Page size: ",X.className="pageSizerLabel",U.appendChild(X),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";let A=[10,50,100,1e3,-1];for(let k of A){let K=document.createElement("option");K.value=k+"",K.innerText=k>0?k+"":"All",this.dataTable?.page.len()===k&&(K.selected=!0),this.tableSizeField.appendChild(K)}U.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(U),this.yasr.pluginControls.appendChild(this.tableControls)}download(r){return{getData:()=>this.yasr.results?.asCsv()||"",contentType:"text/csv",title:"Download result",filename:`${r||"queryResults"}.csv`}}canHandleResults(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}removeControls(){for(this.tableFilterField?.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,this.tableSizeField?.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,this.tableCompactSwitch?.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,this.tableCompactViewSwitch?.removeEventListener("change",this.handleSetCompactViewToggle),this.tableCompactViewSwitch=void 0,this.tableUriPrefixSwitch?.removeEventListener("change",this.handleSetUriPrefixToggle),this.tableUriPrefixSwitch=void 0,this.tableDatatypeSwitch?.removeEventListener("change",this.handleSetDatatypeToggle),this.tableDatatypeSwitch=void 0;this.tableControls?.firstChild;)this.tableControls.firstChild.remove();this.tableControls?.remove()}destroyResizer(){this.tableResizer&&(this.tableResizer.reset({disable:!0}),window.removeEventListener("resize",this.tableResizer.onResize),this.tableResizer=void 0)}destroy(){this.removeControls(),this.destroyResizer(),this.dataTable?.destroy(!0),this.dataTable=void 0,Fn(this.yasr.rootEl,"isSinglePage")}};Mf.defaults={openIriInNewWindow:!0,tableConfig:{layout:{top:null,topStart:null,topEnd:null},pageLength:ah,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"&lt;&lt;",last:"&gt;&gt;",next:"&gt;",previous:"&lt;"}}}};var Us=Mf;var oN='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>',lN='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>',ks=class{constructor(r){this.priority=10;this.hideFromSelection=!0;this.yasr=r}draw(){let r=document.createElement("div");r.className="booleanResult";let n=this.yasr.results?.getBoolean();r.appendChild(ii(n?lN:oN));let a=document.createElement("span");a.textContent=n?"True":"False",r.appendChild(a),this.yasr.resultsEl.appendChild(r)}canHandleResults(){return!!this.yasr.results?.getBoolean&&(this.yasr.results.getBoolean()===!0||this.yasr.results.getBoolean()==!1)}getIcon(){return document.createElement("")}};var My=Gr(na()),XM=Gr(sh()),JM=Gr(by()),jM=Gr(xy()),YM=Gr(Iy()),PM=Gr(Sy()),zM=Gr(_y()),qM=Gr(Ly());var uN=Gr(Zy());var Vf=class Vf{constructor(r){this.label="Response";this.priority=2;this.helpReference="https://docs.triply.cc/yasgui/#response";this.yasr=r,this.config=Vf.defaults,r.config.plugins.response&&r.config.plugins.response.dynamicConfig&&(this.config={...this.config,...r.config.plugins.response.dynamicConfig})}canHandleResults(){if(!this.yasr.results||!this.yasr.results.getOriginalResponseAsString)return!1;var r=this.yasr.results.getOriginalResponseAsString();return!((!r||r.length==0)&&this.yasr.results.getError())}getIcon(){return ii(ro(uN))}download(r){if(!this.yasr.results)return;let n=this.yasr.results.getContentType(),a=this.yasr.results.getType(),u=a==="xml"?"rdf":a;return{getData:()=>this.yasr.results?.getOriginalResponseAsString()||"",filename:`${r||"queryResults"}${u?"."+u:""}`,contentType:n||"text/plain",title:"Download result"}}draw(r){let n={...this.config,...r},a=this.yasr.results?.getOriginalResponseAsString()||"",u=a.split(`
50
- `);u.length>n.maxLines&&(a=u.slice(0,n.maxLines).join(`
51
- `));let h=document.documentElement.getAttribute("data-theme")==="dark"?"material-palenight":"default",b={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:a,extraKeys:{Tab:!1},theme:h};this.yasr.results?.getType()==="json"&&(b.mode={name:"javascript",json:!0}),this.cm=(0,My.default)(this.yasr.resultsEl,b),u.length>n.maxLines&&this.showLess(!1)}limitData(r){let n=r.split(`
52
- `);return n.length>this.config.maxLines&&(r=n.slice(0,this.config.maxLines).join(`
53
- `)),r}showLess(r=!0){if(!this.cm)return;Tt(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Tt(this.overLay,"overlay");let n=document.createElement("div");Tt(n,"overlay_content");let a=document.createElement("button");a.title="Show all",Tt(a,"yasr_btn","overlay_btn"),a.textContent="Show all",a.addEventListener("click",()=>this.showMore()),n.append(a);let u=document.createElement("button");u.title="Download result",Tt(u,"yasr_btn","overlay_btn");let c=document.createElement("span");c.innerText="Download result",u.appendChild(c),u.appendChild(ii(ev)),u.addEventListener("click",()=>this.yasr.download()),u.addEventListener("keydown",h=>{(h.code==="Space"||h.code==="Enter")&&this.yasr.download()}),n.appendChild(u),this.overLay.appendChild(n),this.cm.getWrapperElement().appendChild(this.overLay),r&&this.cm.setValue(this.limitData(this.yasr.results?.getOriginalResponseAsString()||""))}showMore(){this.cm&&(Fn(this.cm.getWrapperElement(),"overflow"),this.overLay?.remove(),this.overLay=void 0,this.cm.setValue(this.yasr.results?.getOriginalResponseAsString()||""),this.cm.refresh())}};Vf.defaults={maxLines:30};var Gs=Vf;var Ds=class{constructor(r){this.priority=20;this.hideFromSelection=!0;this.yasr=r}canHandleResults(){return!!this.yasr.results&&!!this.yasr.results.getError()}getTryBtn(r){let n=document.createElement("a");return n.href=r,n.rel="noopener noreferrer",n.target="_blank",n.className="yasr_tryQuery",n.textContent="Try query in a new browser window",n}getCorsMessage(){let r=document.createElement("div");r.className="redOutline";let n=document.createElement("p");n.textContent="Unable to get response from endpoint. Possible reasons:",r.appendChild(n);let a=document.createElement("ul"),u=document.createElement("li");u.textContent="Incorrect endpoint URL",a.appendChild(u);let c=document.createElement("li");c.textContent="Endpoint is down",a.appendChild(c);let h=document.createElement("li"),b=document.createElement("span");b.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",h.appendChild(b);let x=document.createElement("a");return x.textContent="CORS-enabled",x.href="http://enable-cors.org/",x.target="_blank",x.rel="noopener noreferrer",h.appendChild(x),a.appendChild(h),r.appendChild(a),r}getStatusSpecificGuidance(r){let n=document.createElement("div");n.className="statusGuidance";let a=document.createElement("h4"),u=document.createElement("ul");switch(r){case 401:a.textContent="Authentication Required",n.appendChild(a);let c=document.createElement("li");c.textContent="The endpoint requires authentication credentials",u.appendChild(c);let h=document.createElement("li");h.textContent="Check if you need to provide an API key, username/password, or bearer token",u.appendChild(h);let b=document.createElement("li");return b.textContent="Verify your credentials are correct and not expired",u.appendChild(b),n.appendChild(u),n;case 403:a.textContent="Access Forbidden",n.appendChild(a);let x=document.createElement("li");x.textContent="You don't have permission to access this endpoint",u.appendChild(x);let _=document.createElement("li");_.textContent="Your credentials may be valid but lack sufficient privileges",u.appendChild(_);let I=document.createElement("li");return I.textContent="Contact the endpoint administrator to request access",u.appendChild(I),n.appendChild(u),n;case 404:a.textContent="Endpoint Not Found",n.appendChild(a);let F=document.createElement("li");F.textContent="The endpoint URL may be incorrect or has changed",u.appendChild(F);let G=document.createElement("li");G.textContent="Check for typos in the endpoint address",u.appendChild(G);let W=document.createElement("li");return W.textContent="Verify the endpoint is still active and hasn't been moved",u.appendChild(W),n.appendChild(u),n;case 429:a.textContent="Too Many Requests",n.appendChild(a);let U=document.createElement("li");U.textContent="You've exceeded the rate limit for this endpoint",u.appendChild(U);let X=document.createElement("li");X.textContent="Wait a few moments before trying again",u.appendChild(X);let A=document.createElement("li");return A.textContent="Consider reducing query frequency or contacting the endpoint provider for higher limits",u.appendChild(A),n.appendChild(u),n;case 500:a.textContent="Internal Server Error",n.appendChild(a);let k=document.createElement("li");k.textContent="The SPARQL endpoint encountered an error while processing your query",u.appendChild(k);let K=document.createElement("li");K.textContent="Try simplifying your query or reducing the result limit",u.appendChild(K);let V=document.createElement("li");V.textContent="Check the error message below for specific details",u.appendChild(V);let D=document.createElement("li");return D.textContent="If the problem persists, contact the endpoint administrator",u.appendChild(D),n.appendChild(u),n;case 502:case 503:case 504:a.textContent=r===502?"Bad Gateway":r===503?"Service Unavailable":"Gateway Timeout",n.appendChild(a);let ee=document.createElement("li");ee.textContent="The endpoint is temporarily unavailable or overloaded",u.appendChild(ee);let m=document.createElement("li");m.textContent="Try again in a few moments",u.appendChild(m);let Z=document.createElement("li");return Z.textContent="The service may be undergoing maintenance",u.appendChild(Z),n.appendChild(u),n;default:if(r>=400&&r<500){a.textContent="Client Error",n.appendChild(a);let z=document.createElement("li");z.textContent="There's an issue with the request",u.appendChild(z);let se=document.createElement("li");return se.textContent="Check the error message below for details",u.appendChild(se),n.appendChild(u),n}return null}}async draw(){let r=document.createElement("div");r.className="errorResult",this.yasr.resultsEl.appendChild(r);let n=this.yasr.results?.getError();if(!n)return;let a=document.createElement("div");a.className="errorHeader",r.appendChild(a);let u=await this.yasr.renderError(n);if(u){let h=document.createElement("div");h.className="redOutline",h.appendChild(u),r.appendChild(h);return}if(n.status){var c="Error";n.statusText&&n.statusText.length<100&&(c=n.statusText),c+=` (#${n.status})`;let h=document.createElement("span");if(h.className="status",h.textContent=c,a.appendChild(h),this.yasr.config.getPlainQueryLinkToEndpoint){let x=this.yasr.config.getPlainQueryLinkToEndpoint();x&&a.appendChild(this.getTryBtn(x))}let b=this.getStatusSpecificGuidance(n.status);if(b&&r.appendChild(b),n.text){let x=document.createElement("div");Tt(x,"errorMessageContainer"),r.appendChild(x);let _=document.createElement("pre");Tt(_,"errorMessage"),_.textContent=n.text,x.appendChild(_)}}else{if(this.yasr.config.getPlainQueryLinkToEndpoint){let b=this.yasr.config.getPlainQueryLinkToEndpoint();b&&a.appendChild(this.getTryBtn(b))}if(!n.text||n.text.indexOf("Request has been terminated")>=0||n.text.indexOf("Failed to fetch")>=0||n.text.indexOf("NetworkError")>=0||n.text.indexOf("Network request failed")>=0)r.appendChild(this.getCorsMessage());else{let b=document.createElement("pre");b.textContent=n.text,r.appendChild(b)}}}getIcon(){return document.createElement("")}};var Tn=class Tn extends Vy.EventEmitter{constructor(n,a={},u){super();this.plugins={};this.helpDrawn=!1;this.isFullscreen=!1;this.isLoading=!1;this.utils={addScript:bf,addCSS:mf,sanitize:Mi};if(!n)throw new Error("No parent passed as argument. Dont know where to draw YASR");this.rootEl=document.createElement("div"),this.rootEl.className="yasr",n.appendChild(this.rootEl),this.config=kd({},Tn.defaults,a),this.storage=new to(Tn.storageNamespace),this.getConfigFromStorage(),this.headerEl=document.createElement("div"),this.headerEl.className="yasr_header",this.rootEl.appendChild(this.headerEl),this.fallbackInfoEl=document.createElement("div"),this.fallbackInfoEl.className="yasr_fallback_info",this.rootEl.appendChild(this.fallbackInfoEl),this.resultsEl=document.createElement("div"),this.resultsEl.className="yasr_results",this.resultsEl.id=Dd("resultsId"),this.rootEl.appendChild(this.resultsEl),this.createLoadingElement(),this.initializePlugins(),this.drawHeader();let c=u||this.getResponseFromStorage();c&&this.setResponse(c)}getConfigFromStorage(){let n=this.getStorageId(this.config.persistenceLabelConfig);if(n){let a=this.storage.get(n);if(a){this.selectedPlugin=a.selectedPlugin;for(let u in a.pluginsConfig){let c=a.pluginsConfig[u];c&&this.config.plugins[u]&&(this.config.plugins[u].dynamicConfig=c)}}}}async renderError(n){let a;if(this.config.errorRenderers!==void 0){for(let u of this.config.errorRenderers)if(a=await u(n),a!==void 0)break}return a}getStorageId(n,a){let u=a||this.config.persistenceId;if(u)return typeof u=="string"?u+"_"+n:u(this)+"_"+n}somethingDrawn(){return!!this.resultsEl.children.length}emptyFallbackElement(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}getSelectedPluginName(){return this.selectedPlugin||this.config.defaultPlugin}getSelectedPlugin(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn(`Tried using plugin ${this.getSelectedPluginName()}, but seems this plugin isnt registered in yasr.`)}updatePluginSelectors(n){if(this.pluginSelectorsEl)for(let a in this.config.plugins){let u=this.plugins[a];u&&!u.hideFromSelection&&(n&&(n.indexOf(a)>=0?Fn(this.pluginSelectorsEl.querySelector(".select_"+a),"disabled"):Tt(this.pluginSelectorsEl.querySelector(".select_"+a),"disabled")),a===this.getSelectedPluginName()?Tt(this.pluginSelectorsEl.querySelector(".select_"+a),"selected"):Fn(this.pluginSelectorsEl.querySelector(".select_"+a),"selected"))}}getCompatiblePlugins(){if(!this.results)return Object.keys(Ud(this.config.plugins,a=>typeof a=="object"&&a.enabled||a===!0));let n=[];for(let a in this.plugins)this.plugins[a].canHandleResults()&&n.push({name:a,priority:this.plugins[a].priority});return n.sort((a,u)=>u.priority-a.priority).map(a=>a.name)}draw(){if(this.updateHelpButton(),this.updateResponseInfo(),!this.results)return;let n=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();this.plugins[this.drawnPlugin].destroy?.()}let a;if(this.getSelectedPlugin()&&this.getSelectedPlugin()?.canHandleResults()?(a=this.getSelectedPluginName(),this.emptyFallbackElement()):n[0]&&(this.drawnPlugin&&this.plugins[this.drawnPlugin].destroy?.(),a=n[0],this.fillFallbackBox(a)),a){this.drawnPlugin=a,this.emit("draw",this,this.plugins[a]);let u=this.plugins[a];(u.initialize?u.initialize():Promise.resolve()).then(async()=>{if(a){for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();await this.plugins[a].draw(this.config.plugins[a].dynamicConfig),this.emit("drawn",this,this.plugins[a]),this.updateExportHeaders(),this.updatePluginSelectors(n)}},h=>console.error)}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(n)}refresh(){this.draw()}destroy(){this.drawnPlugin&&this.plugins[this.drawnPlugin]?.destroy?.(),this.removeAllListeners(),this.rootEl.remove()}getPrefixes(){return this.config.prefixes?typeof this.config.prefixes=="function"?this.config.prefixes(this):this.config.prefixes:{}}selectPlugin(n){this.selectedPlugin!==n&&(this.config.plugins[n]?this.selectedPlugin=n:(console.warn(`Plugin ${n} does not exist.`),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}drawPluginSelectors(){this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";let n=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach(a=>{n.indexOf(a)===-1&&n.push(a)});for(let a of n){if(!this.config.plugins[a]||!this.config.plugins[a].enabled)continue;let u=this.plugins[a];if(!u||u.hideFromSelection)continue;let c=u.label||a,h=document.createElement("button");if(Tt(h,"yasr_btn","select_"+a),h.title=c,h.type="button",h.setAttribute("aria-label",`Shows ${c} view`),u.getIcon){let _=u.getIcon();_&&(Tt(_,"plugin_icon"),h.appendChild(_))}let b=document.createElement("span");b.textContent=c,h.appendChild(b),h.addEventListener("click",()=>this.selectPlugin(a));let x=document.createElement("li");x.appendChild(h),this.pluginSelectorsEl.appendChild(x)}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}fillFallbackBox(n){if(this.emptyFallbackElement(),this.plugins[n||this.drawnPlugin||""]?.hideFromSelection)return;let a=this.getSelectedPlugin(),u=this.plugins[n||this.drawnPlugin||""]?.label||n||this.drawnPlugin,c=a?.label||this.getSelectedPluginName(),h=document.createElement("p");if(h.innerText=`Could not render results with the ${c} plugin, the results currently are rendered with the ${u} plugin. ${this.getSelectedPlugin()?.helpReference?"See ":""}`,a?.helpReference){let b=document.createElement("a");b.innerText=`${c} documentation`,b.href=a.helpReference,b.rel="noopener noreferrer",b.target="_blank",h.append(b),h.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(h)}drawPluginElement(){let n=document.createElement("div");Tt(n,"space_element"),this.headerEl.appendChild(n),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),Tt(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls)}drawHeader(){this.drawPluginSelectors(),this.drawResponseInfo(),this.drawPluginElement(),this.drawDownloadIcon(),this.drawFullscreenButton(),this.loadingEl&&this.headerEl.appendChild(this.loadingEl),this.drawDocumentationButton()}drawDownloadIcon(){this.downloadBtn=document.createElement("a"),Tt(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label","Download Results"),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");let n=ii(ro(cN));n.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(n),this.downloadBtn.addEventListener("click",()=>{bs(this.downloadBtn,"disabled")||this.download()}),this.downloadBtn.addEventListener("keydown",a=>{if(a.code==="Space"||a.code==="Enter"){if(bs(this.downloadBtn,"disabled"))return;this.download()}}),this.headerEl.appendChild(this.downloadBtn)}drawResponseInfo(){this.dataElement=document.createElement("div"),Tt(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}updateResponseInfo(){let n="";if(this.results){Fn(this.dataElement,"empty");let a=this.results.getBindings();a&&(n+=`${a.length} result${a.length===1?"":"s"}`);let u=this.results.getResponseTime();if(u){n||(n="Response");let c=u/1e3;n+=` in ${c} second${c===1?"":"s"}`}}else Tt(this.dataElement,"empty");this.dataElement.innerText=n}updateHelpButton(){let n=this.getSelectedPlugin();if(n?.helpReference){let a=`View documentation of ${n.label||this.getSelectedPluginName()}`;this.documentationLink.href=n.helpReference,this.documentationLink.title=a,this.documentationLink.setAttribute("aria-label",a),Fn(this.documentationLink,"disabled")}else Tt(this.documentationLink,"disabled"),this.documentationLink.title="This plugin doesn't have a help reference yet. Please contact the maintainer to fix this"}updateExportHeaders(){if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";let n=this.plugins[this.drawnPlugin];if(n&&n.download){let a=n.download(this.config.getDownloadFileName?.());if(Fn(this.downloadBtn,"disabled"),a){a.title&&(this.downloadBtn.title=a.title);return}}this.downloadBtn.title="Download not supported",Tt(this.downloadBtn,"disabled")}}drawFullscreenButton(){this.fullscreenBtn=document.createElement("button"),Tt(this.fullscreenBtn,"yasr_btn","yasr_fullscreenButton","btn_icon"),this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this.fullscreenBtn.setAttribute("tabindex","0"),this.fullscreenBtn.setAttribute("role","button");let n=ii(tv);Tt(n,"fullscreenIcon"),n.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(n);let a=ii(rv);Tt(a,"fullscreenExitIcon"),a.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(a),this.fullscreenBtn.title="Toggle fullscreen (F10)",this.fullscreenBtn.addEventListener("click",()=>{this.toggleFullscreen()}),this.fullscreenBtn.addEventListener("keydown",u=>{(u.code==="Space"||u.code==="Enter")&&this.toggleFullscreen()}),this.headerEl.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Tt(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Exit fullscreen (F10)")):(Fn(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Toggle fullscreen (F10)"))}getIsFullscreen(){return this.isFullscreen}createLoadingElement(){this.loadingEl=document.createElement("div"),this.loadingEl.className="yasr_loading_indicator",this.loadingEl.title="Executing query...",this.loadingEl.innerHTML='<div class="yasr_loading_spinner"></div>',this.loadingEl.style.display="none"}showLoading(){this.isLoading=!0,this.loadingEl&&(this.loadingEl.style.display="flex")}hideLoading(){this.isLoading=!1,this.loadingEl&&(this.loadingEl.style.display="none")}drawDocumentationButton(){this.documentationLink=document.createElement("a"),Tt(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild(ii(ro(hN))),this.documentationLink.href="https://docs.triply.cc/yasgui/",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}download(){if(!this.drawnPlugin)return;let n=this.plugins[this.drawnPlugin];if(n&&n.download){let a=n.download(this.config.getDownloadFileName?.());if(!a)return;let u=a.getData(),c;if(u.startsWith("data:"))c=u;else{let b=new Blob([u],{type:a.contentType??"text/plain"});c=window.URL.createObjectURL(b)}let h=document.createElement("a");h.href=c,h.download=a.filename,h.click()}}handleLocalStorageQuotaFull(n){console.warn("Localstorage quota exceeded. Clearing all queries"),Tn.clearStorage()}getResponseFromStorage(){let n=this.getStorageId(this.config.persistenceLabelResponse);if(n)return this.storage.get(n)}getPersistentConfig(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:os(this.config.plugins,n=>n.dynamicConfig)}}storePluginConfig(n,a){this.config.plugins[n].dynamicConfig=a,this.storeConfig(),this.emit("change",this)}storeConfig(){let n=this.getStorageId(this.config.persistenceLabelConfig);n&&this.storage.set(n,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}storeResponse(){let n=this.getStorageId(this.config.persistenceLabelResponse);if(n&&this.results){let a=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);a&&!a.error?this.storage.set(n,a,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(n)}}setResponse(n,a){n&&(this.hideLoading(),this.results=new gf(n,a),this.draw(),this.storeResponse())}initializePlugins(){for(let n in this.config.plugins)this.config.plugins[n]&&(Tn.plugins[n]?this.plugins[n]=new Tn.plugins[n](this):console.warn("Wanted to initialize plugin "+n+" but could not find a matching registered plugin"))}static registerPlugin(n,a,u=!0){Tn.plugins[n]=a,u?Tn.defaults.plugins[n]={enabled:!0}:Tn.defaults.plugins[n]={enabled:!1}}static clearStorage(){new to(Tn.storageNamespace).removeNamespace()}};Tn.defaults=Wd(),Tn.plugins={},Tn.Dependencies={},Tn.storageNamespace="triply";var Ei=Tn;function pN(e,r,n=!0){Ei.plugins[e]=r,n?Ei.defaults.plugins[e]={enabled:!0}:Ei.defaults.plugins[e]={enabled:!1}}Ei.registerPlugin("table",Us);Ei.registerPlugin("boolean",ks);Ei.registerPlugin("response",Gs);Ei.registerPlugin("error",Ds);var gN=Ei;return u1(mN);})();
18
+ b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],i=e.length;t<=i;){var s=e.indexOf(`
19
+ `,t);s==-1&&(s=e.length);var u=e.slice(t,e.charAt(s-1)=="\r"?s-1:s),d=u.indexOf("\r");d!=-1?(o.push(u.slice(0,d)),t+=d+1):(o.push(u),t=s+1)}return o}:function(e){return e.split(/\r\n?|\n/)},Br=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Cn=function(){var e=x("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ur=null;function Tr(e){if(ur!=null)return ur;var t=oe(e,x("span","x")),o=t.getBoundingClientRect(),i=Z(t,0,1).getBoundingClientRect();return ur=Math.abs(o.left-i.left)>1}var an={},fr={};function cr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),an[e]=t}function Qr(e,t){fr[e]=t}function An(e){if(typeof e=="string"&&fr.hasOwnProperty(e))e=fr[e];else if(e&&typeof e.name=="string"&&fr.hasOwnProperty(e.name)){var t=fr[e.name];typeof t=="string"&&(t={name:t}),e=lt(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return An("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return An("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function xe(e,t){t=An(t);var o=an[t.name];if(!o)return xe(e,"text/plain");var i=o(e,t);if(N.hasOwnProperty(t.name)){var s=N[t.name];for(var u in s)s.hasOwnProperty(u)&&(i.hasOwnProperty(u)&&(i["_"+u]=i[u]),i[u]=s[u])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var d in t.modeProps)i[d]=t.modeProps[d];return i}var N={};function K(e,t){var o=N.hasOwnProperty(e)?N[e]:N[e]={};le(t,o)}function be(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var i in t){var s=t[i];s instanceof Array&&(s=s.concat([])),o[i]=s}return o}function Xe(e,t){for(var o;e.innerMode&&(o=e.innerMode(t),!(!o||o.mode==e));)t=o.state,e=o.mode;return o||{mode:e,state:t}}function dt(e,t,o){return e.startState?e.startState(t,o):!0}var Ue=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};Ue.prototype.eol=function(){return this.pos>=this.string.length},Ue.prototype.sol=function(){return this.pos==this.lineStart},Ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ue.prototype.eat=function(e){var t=this.string.charAt(this.pos),o;if(typeof e=="string"?o=t==e:o=t&&(e.test?e.test(t):e(t)),o)return++this.pos,t},Ue.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ue.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ue.prototype.skipToEnd=function(){this.pos=this.string.length},Ue.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ue.prototype.backUp=function(e){this.pos-=e},Ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.match=function(e,t,o){if(typeof e=="string"){var i=function(d){return o?d.toLowerCase():d},s=this.string.substr(this.pos,e.length);if(i(s)==i(e))return t!==!1&&(this.pos+=e.length),!0}else{var u=this.string.slice(this.pos).match(e);return u&&u.index>0?null:(u&&t!==!1&&(this.pos+=u[0].length),u)}},Ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ue.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ue.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ue.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function de(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var i=0;;++i){var s=o.children[i],u=s.chunkSize();if(t<u){o=s;break}t-=u}return o.lines[t]}function Rt(e,t,o){var i=[],s=t.line;return e.iter(t.line,o.line+1,function(u){var d=u.text;s==o.line&&(d=d.slice(0,o.ch)),s==t.line&&(d=d.slice(t.ch)),i.push(d),++s}),i}function Ar(e,t,o){var i=[];return e.iter(t,o,function(s){i.push(s.text)}),i}function Zt(e,t){var o=t-e.height;if(o)for(var i=e;i;i=i.parent)i.height+=o}function v(e){if(e.parent==null)return null;for(var t=e.parent,o=ue(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var s=0;i.children[s]!=t;++s)o+=i.children[s].chunkSize();return o+t.first}function E(e,t){var o=e.first;e:do{for(var i=0;i<e.children.length;++i){var s=e.children[i],u=s.height;if(t<u){e=s;continue e}t-=u,o+=s.chunkSize()}return o}while(!e.lines);for(var d=0;d<e.lines.length;++d){var h=e.lines[d],m=h.height;if(t<m)break;t-=m}return o+d}function V(e,t){return t>=e.first&&t<e.first+e.size}function Y(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function G(e,t,o){if(o===void 0&&(o=null),!(this instanceof G))return new G(e,t,o);this.line=e,this.ch=t,this.sticky=o}function fe(e,t){return e.line-t.line||e.ch-t.ch}function Qe(e,t){return e.sticky==t.sticky&&fe(e,t)==0}function _t(e){return G(e.line,e.ch)}function zt(e,t){return fe(e,t)<0?t:e}function hi(e,t){return fe(e,t)<0?e:t}function Wu(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Se(e,t){if(t.line<e.first)return G(e.first,0);var o=e.first+e.size-1;return t.line>o?G(o,de(e,o).text.length):zm(t,de(e,t.line).text.length)}function zm(e,t){var o=e.ch;return o==null||o>t?G(e.line,t):o<0?G(e.line,0):e}function Zu(e,t){for(var o=[],i=0;i<t.length;i++)o[i]=Se(e,t[i]);return o}var fa=function(e,t){this.state=e,this.lookAhead=t},Hr=function(e,t,o,i){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};Hr.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Hr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Hr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hr.fromSaved=function(e,t,o){return t instanceof fa?new Hr(e,be(e.mode,t.state),o,t.lookAhead):new Hr(e,be(e.mode,t),o)},Hr.prototype.save=function(e){var t=e!==!1?be(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fa(t,this.maxLookAhead):t};function Du(e,t,o,i){var s=[e.state.modeGen],u={};Xu(e,t.text,e.doc.mode,o,function(b,T){return s.push(b,T)},u,i);for(var d=o.state,h=function(b){o.baseTokens=s;var T=e.state.overlays[b],C=1,B=0;o.state=!0,Xu(e,t.text,T.mode,o,function(L,W){for(var P=C;B<L;){var z=s[C];z>L&&s.splice(C,1,L,s[C+1],z),C+=2,B=Math.min(L,z)}if(W)if(T.opaque)s.splice(P,C-P,L,"overlay "+W),C=P+2;else for(;P<C;P+=2){var ne=s[P+1];s[P+1]=(ne?ne+" ":"")+"overlay "+W}},u),o.state=d,o.baseTokens=null,o.baseTokenPos=1},m=0;m<e.state.overlays.length;++m)h(m);return{styles:s,classes:u.bgClass||u.textClass?u:null}}function Vu(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=so(e,v(t)),s=t.text.length>e.options.maxHighlightLength&&be(e.doc.mode,i.state),u=Du(e,t,i);s&&(i.state=s),t.stateAfter=i.save(!s),t.styles=u.styles,u.classes?t.styleClasses=u.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function so(e,t,o){var i=e.doc,s=e.display;if(!i.mode.startState)return new Hr(i,!0,t);var u=qm(e,t,o),d=u>i.first&&de(i,u-1).stateAfter,h=d?Hr.fromSaved(i,d,u):new Hr(i,dt(i.mode),u);return i.iter(u,t,function(m){Qs(e,m.text,h);var b=h.line;m.stateAfter=b==t-1||b%5==0||b>=s.viewFrom&&b<s.viewTo?h.save():null,h.nextLine()}),o&&(i.modeFrontier=h.line),h}function Qs(e,t,o,i){var s=e.doc.mode,u=new Ue(t,e.options.tabSize,o);for(u.start=u.pos=i||0,t==""&&Qu(s,o.state);!u.eol();)Hs(s,u,o.state),u.start=u.pos}function Qu(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var o=Xe(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function Hs(e,t,o,i){for(var s=0;s<10;s++){i&&(i[0]=Xe(e,o).mode);var u=e.token(t,o);if(t.pos>t.start)return u}throw new Error("Mode "+e.name+" failed to advance stream.")}var Hu=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Pu(e,t,o,i){var s=e.doc,u=s.mode,d;t=Se(s,t);var h=de(s,t.line),m=so(e,t.line,o),b=new Ue(h.text,e.options.tabSize,m),T;for(i&&(T=[]);(i||b.pos<t.ch)&&!b.eol();)b.start=b.pos,d=Hs(u,b,m.state),i&&T.push(new Hu(b,d,be(s.mode,m.state)));return i?T:new Hu(b,d,m.state)}function Ju(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var i=o[1]?"bgClass":"textClass";t[i]==null?t[i]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+o[2])}return e}function Xu(e,t,o,i,s,u,d){var h=o.flattenSpans;h==null&&(h=e.options.flattenSpans);var m=0,b=null,T=new Ue(t,e.options.tabSize,i),C,B=e.options.addModeClass&&[null];for(t==""&&Ju(Qu(o,i.state),u);!T.eol();){if(T.pos>e.options.maxHighlightLength?(h=!1,d&&Qs(e,t,i,T.pos),T.pos=t.length,C=null):C=Ju(Hs(o,T,i.state,B),u),B){var L=B[0].name;L&&(C="m-"+(C?L+" "+C:L))}if(!h||b!=C){for(;m<T.start;)m=Math.min(T.start,m+5e3),s(m,b);b=C}T.start=T.pos}for(;m<T.pos;){var W=Math.min(T.pos,m+5e3);s(W,b),m=W}}function qm(e,t,o){for(var i,s,u=e.doc,d=o?-1:t-(e.doc.mode.innerMode?1e3:100),h=t;h>d;--h){if(h<=u.first)return u.first;var m=de(u,h-1),b=m.stateAfter;if(b&&(!o||h+(b instanceof fa?b.lookAhead:0)<=u.modeFrontier))return h;var T=ye(m.text,null,e.options.tabSize);(s==null||i>T)&&(s=h-1,i=T)}return s}function Km(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var o=e.first,i=t-1;i>o;i--){var s=de(e,i).stateAfter;if(s&&(!(s instanceof fa)||i+s.lookAhead<t)){o=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var Yu=!1,sn=!1;function $m(){Yu=!0}function e0(){sn=!0}function ca(e,t,o){this.marker=e,this.from=t,this.to=o}function lo(e,t){if(e)for(var o=0;o<e.length;++o){var i=e[o];if(i.marker==t)return i}}function t0(e,t){for(var o,i=0;i<e.length;++i)e[i]!=t&&(o||(o=[])).push(e[i]);return o}function r0(e,t,o){var i=o&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function n0(e,t,o){var i;if(e)for(var s=0;s<e.length;++s){var u=e[s],d=u.marker,h=u.from==null||(d.inclusiveLeft?u.from<=t:u.from<t);if(h||u.from==t&&d.type=="bookmark"&&(!o||!u.marker.insertLeft)){var m=u.to==null||(d.inclusiveRight?u.to>=t:u.to>t);(i||(i=[])).push(new ca(d,u.from,m?null:u.to))}}return i}function i0(e,t,o){var i;if(e)for(var s=0;s<e.length;++s){var u=e[s],d=u.marker,h=u.to==null||(d.inclusiveRight?u.to>=t:u.to>t);if(h||u.from==t&&d.type=="bookmark"&&(!o||u.marker.insertLeft)){var m=u.from==null||(d.inclusiveLeft?u.from<=t:u.from<t);(i||(i=[])).push(new ca(d,m?null:u.from-t,u.to==null?null:u.to-t))}}return i}function Ps(e,t){if(t.full)return null;var o=V(e,t.from.line)&&de(e,t.from.line).markedSpans,i=V(e,t.to.line)&&de(e,t.to.line).markedSpans;if(!o&&!i)return null;var s=t.from.ch,u=t.to.ch,d=fe(t.from,t.to)==0,h=n0(o,s,d),m=i0(i,u,d),b=t.text.length==1,T=Ie(t.text).length+(b?s:0);if(h)for(var C=0;C<h.length;++C){var B=h[C];if(B.to==null){var L=lo(m,B.marker);L?b&&(B.to=L.to==null?null:L.to+T):B.to=s}}if(m)for(var W=0;W<m.length;++W){var P=m[W];if(P.to!=null&&(P.to+=T),P.from==null){var z=lo(h,P.marker);z||(P.from=T,b&&(h||(h=[])).push(P))}else P.from+=T,b&&(h||(h=[])).push(P)}h&&(h=ju(h)),m&&m!=h&&(m=ju(m));var ne=[h];if(!b){var he=t.text.length-2,ie;if(he>0&&h)for(var me=0;me<h.length;++me)h[me].to==null&&(ie||(ie=[])).push(new ca(h[me].marker,null,null));for(var Ae=0;Ae<he;++Ae)ne.push(ie);ne.push(m)}return ne}function ju(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function o0(e,t,o){var i=null;if(e.iter(t.line,o.line+1,function(L){if(L.markedSpans)for(var W=0;W<L.markedSpans.length;++W){var P=L.markedSpans[W].marker;P.readOnly&&(!i||ue(i,P)==-1)&&(i||(i=[])).push(P)}}),!i)return null;for(var s=[{from:t,to:o}],u=0;u<i.length;++u)for(var d=i[u],h=d.find(0),m=0;m<s.length;++m){var b=s[m];if(!(fe(b.to,h.from)<0||fe(b.from,h.to)>0)){var T=[m,1],C=fe(b.from,h.from),B=fe(b.to,h.to);(C<0||!d.inclusiveLeft&&!C)&&T.push({from:b.from,to:h.from}),(B>0||!d.inclusiveRight&&!B)&&T.push({from:h.to,to:b.to}),s.splice.apply(s,T),m+=T.length-3}}return s}function zu(e){var t=e.markedSpans;if(t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function qu(e,t){if(t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function da(e){return e.inclusiveLeft?-1:0}function ha(e){return e.inclusiveRight?1:0}function Js(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var i=e.find(),s=t.find(),u=fe(i.from,s.from)||da(e)-da(t);if(u)return-u;var d=fe(i.to,s.to)||ha(e)-ha(t);return d||t.id-e.id}function Ku(e,t){var o=sn&&e.markedSpans,i;if(o)for(var s=void 0,u=0;u<o.length;++u)s=o[u],s.marker.collapsed&&(t?s.from:s.to)==null&&(!i||Js(i,s.marker)<0)&&(i=s.marker);return i}function $u(e){return Ku(e,!0)}function pa(e){return Ku(e,!1)}function a0(e,t){var o=sn&&e.markedSpans,i;if(o)for(var s=0;s<o.length;++s){var u=o[s];u.marker.collapsed&&(u.from==null||u.from<t)&&(u.to==null||u.to>t)&&(!i||Js(i,u.marker)<0)&&(i=u.marker)}return i}function ef(e,t,o,i,s){var u=de(e,t),d=sn&&u.markedSpans;if(d)for(var h=0;h<d.length;++h){var m=d[h];if(m.marker.collapsed){var b=m.marker.find(0),T=fe(b.from,o)||da(m.marker)-da(s),C=fe(b.to,i)||ha(m.marker)-ha(s);if(!(T>=0&&C<=0||T<=0&&C>=0)&&(T<=0&&(m.marker.inclusiveRight&&s.inclusiveLeft?fe(b.to,o)>=0:fe(b.to,o)>0)||T>=0&&(m.marker.inclusiveRight&&s.inclusiveLeft?fe(b.from,i)<=0:fe(b.from,i)<0)))return!0}}}function Ur(e){for(var t;t=$u(e);)e=t.find(-1,!0).line;return e}function s0(e){for(var t;t=pa(e);)e=t.find(1,!0).line;return e}function l0(e){for(var t,o;t=pa(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Xs(e,t){var o=de(e,t),i=Ur(o);return o==i?t:v(i)}function tf(e,t){if(t>e.lastLine())return t;var o=de(e,t),i;if(!Rn(e,o))return t;for(;i=pa(o);)o=i.find(1,!0).line;return v(o)+1}function Rn(e,t){var o=sn&&t.markedSpans;if(o){for(var i=void 0,s=0;s<o.length;++s)if(i=o[s],!!i.marker.collapsed){if(i.from==null)return!0;if(!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&Ys(e,t,i))return!0}}}function Ys(e,t,o){if(o.to==null){var i=o.marker.find(1,!0);return Ys(e,i.line,lo(i.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var s=void 0,u=0;u<t.markedSpans.length;++u)if(s=t.markedSpans[u],s.marker.collapsed&&!s.marker.widgetNode&&s.from==o.to&&(s.to==null||s.to!=o.from)&&(s.marker.inclusiveLeft||o.marker.inclusiveRight)&&Ys(e,t,s))return!0}function ln(e){e=Ur(e);for(var t=0,o=e.parent,i=0;i<o.lines.length;++i){var s=o.lines[i];if(s==e)break;t+=s.height}for(var u=o.parent;u;o=u,u=o.parent)for(var d=0;d<u.children.length;++d){var h=u.children[d];if(h==o)break;t+=h.height}return t}function ga(e){if(e.height==0)return 0;for(var t=e.text.length,o,i=e;o=$u(i);){var s=o.find(0,!0);i=s.from.line,t+=s.from.ch-s.to.ch}for(i=e;o=pa(i);){var u=o.find(0,!0);t-=i.text.length-u.from.ch,i=u.to.line,t+=i.text.length-u.to.ch}return t}function js(e){var t=e.display,o=e.doc;t.maxLine=de(o,o.first),t.maxLineLength=ga(t.maxLine),t.maxLineChanged=!0,o.iter(function(i){var s=ga(i);s>t.maxLineLength&&(t.maxLineLength=s,t.maxLine=i)})}var pi=function(e,t,o){this.text=e,qu(this,t),this.height=o?o(this):1};pi.prototype.lineNo=function(){return v(this)},Ir(pi);function u0(e,t,o,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zu(e),qu(e,o);var s=i?i(e):1;s!=e.height&&Zt(e,s)}function f0(e){e.parent=null,zu(e)}var c0={},d0={};function rf(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?d0:c0;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function nf(e,t){var o=ee("span",null,null,I?"padding-right: .1px":null),i={pre:ee("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var s=0;s<=(t.rest?t.rest.length:0);s++){var u=s?t.rest[s-1]:t.line,d=void 0;i.pos=0,i.addToken=p0,Pt(e.display.measure)&&(d=Ne(u,e.doc.direction))&&(i.addToken=m0(i.addToken,d)),i.map=[];var h=t!=e.display.externalMeasured&&v(u);b0(u,i,Vu(e,u,h)),u.styleClasses&&(u.styleClasses.bgClass&&(i.bgClass=_e(u.styleClasses.bgClass,i.bgClass||"")),u.styleClasses.textClass&&(i.textClass=_e(u.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(di(e.display.measure))),s==0?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var m=i.content.lastChild;(/\bcm-tab\b/.test(m.className)||m.querySelector&&m.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return qe(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=_e(i.pre.className,i.textClass||"")),i}function h0(e){var t=x("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function p0(e,t,o,i,s,u,d){if(t){var h=e.splitSpaces?g0(t,e.trailingSpace):t,m=e.cm.state.specialChars,b=!1,T;if(!m.test(t))e.col+=t.length,T=document.createTextNode(h),e.map.push(e.pos,e.pos+t.length,T),g&&y<9&&(b=!0),e.pos+=t.length;else{T=document.createDocumentFragment();for(var C=0;;){m.lastIndex=C;var B=m.exec(t),L=B?B.index-C:t.length-C;if(L){var W=document.createTextNode(h.slice(C,C+L));g&&y<9?T.appendChild(x("span",[W])):T.appendChild(W),e.map.push(e.pos,e.pos+L,W),e.col+=L,e.pos+=L}if(!B)break;C+=L+1;var P=void 0;if(B[0]==" "){var z=e.cm.options.tabSize,ne=z-e.col%z;P=T.appendChild(x("span",Ve(ne),"cm-tab")),P.setAttribute("role","presentation"),P.setAttribute("cm-text"," "),e.col+=ne}else B[0]=="\r"||B[0]==`
20
+ `?(P=T.appendChild(x("span",B[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),P.setAttribute("cm-text",B[0]),e.col+=1):(P=e.cm.options.specialCharPlaceholder(B[0]),P.setAttribute("cm-text",B[0]),g&&y<9?T.appendChild(x("span",[P])):T.appendChild(P),e.col+=1);e.map.push(e.pos,e.pos+1,P),e.pos++}}if(e.trailingSpace=h.charCodeAt(t.length-1)==32,o||i||s||b||u||d){var he=o||"";i&&(he+=i),s&&(he+=s);var ie=x("span",[T],he,u);if(d)for(var me in d)d.hasOwnProperty(me)&&me!="style"&&me!="class"&&ie.setAttribute(me,d[me]);return e.content.appendChild(ie)}e.content.appendChild(T)}}function g0(e,t){if(e.length>1&&!/ /.test(e))return e;for(var o=t,i="",s=0;s<e.length;s++){var u=e.charAt(s);u==" "&&o&&(s==e.length-1||e.charCodeAt(s+1)==32)&&(u="\xA0"),i+=u,o=u==" "}return i}function m0(e,t){return function(o,i,s,u,d,h,m){s=s?s+" cm-force-border":"cm-force-border";for(var b=o.pos,T=b+i.length;;){for(var C=void 0,B=0;B<t.length&&(C=t[B],!(C.to>b&&C.from<=b));B++);if(C.to>=T)return e(o,i,s,u,d,h,m);e(o,i.slice(0,C.to-b),s,u,null,h,m),u=null,i=i.slice(C.to-b),b=C.to}}}function of(e,t,o,i){var s=!i&&o.widgetNode;s&&e.map.push(e.pos,e.pos+t,s),!i&&e.cm.display.input.needsContentAttribute&&(s||(s=e.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",o.id)),s&&(e.cm.display.input.setUneditable(s),e.content.appendChild(s)),e.pos+=t,e.trailingSpace=!1}function b0(e,t,o){var i=e.markedSpans,s=e.text,u=0;if(!i){for(var d=1;d<o.length;d+=2)t.addToken(t,s.slice(u,u=o[d]),rf(o[d+1],t.cm.options));return}for(var h=s.length,m=0,b=1,T="",C,B,L=0,W,P,z,ne,he;;){if(L==m){W=P=z=B="",he=null,ne=null,L=1/0;for(var ie=[],me=void 0,Ae=0;Ae<i.length;++Ae){var Ee=i[Ae],ke=Ee.marker;if(ke.type=="bookmark"&&Ee.from==m&&ke.widgetNode)ie.push(ke);else if(Ee.from<=m&&(Ee.to==null||Ee.to>m||ke.collapsed&&Ee.to==m&&Ee.from==m)){if(Ee.to!=null&&Ee.to!=m&&L>Ee.to&&(L=Ee.to,P=""),ke.className&&(W+=" "+ke.className),ke.css&&(B=(B?B+";":"")+ke.css),ke.startStyle&&Ee.from==m&&(z+=" "+ke.startStyle),ke.endStyle&&Ee.to==L&&(me||(me=[])).push(ke.endStyle,Ee.to),ke.title&&((he||(he={})).title=ke.title),ke.attributes)for(var $e in ke.attributes)(he||(he={}))[$e]=ke.attributes[$e];ke.collapsed&&(!ne||Js(ne.marker,ke)<0)&&(ne=Ee)}else Ee.from>m&&L>Ee.from&&(L=Ee.from)}if(me)for(var Lt=0;Lt<me.length;Lt+=2)me[Lt+1]==L&&(P+=" "+me[Lt]);if(!ne||ne.from==m)for(var ct=0;ct<ie.length;++ct)of(t,0,ie[ct]);if(ne&&(ne.from||0)==m){if(of(t,(ne.to==null?h+1:ne.to)-m,ne.marker,ne.from==null),ne.to==null)return;ne.to==m&&(ne=!1)}}if(m>=h)break;for(var hr=Math.min(h,L);;){if(T){var $t=m+T.length;if(!ne){var bt=$t>hr?T.slice(0,hr-m):T;t.addToken(t,bt,C?C+W:W,z,m+bt.length==L?P:"",B,he)}if($t>=hr){T=T.slice(hr-m),m=hr;break}m=$t,z=""}T=s.slice(u,u=o[b++]),C=rf(o[b++],t.cm.options)}}}function af(e,t,o){this.line=t,this.rest=l0(t),this.size=this.rest?v(Ie(this.rest))-o+1:1,this.node=this.text=null,this.hidden=Rn(e,t)}function ma(e,t,o){for(var i=[],s,u=t;u<o;u=s){var d=new af(e.doc,de(e.doc,u),u);s=u+d.size,i.push(d)}return i}var gi=null;function v0(e){gi?gi.ops.push(e):e.ownsGroup=gi={ops:[e],delayedCallbacks:[]}}function y0(e){var t=e.delayedCallbacks,o=0;do{for(;o<t.length;o++)t[o].call(null);for(var i=0;i<e.ops.length;i++){var s=e.ops[i];if(s.cursorActivityHandlers)for(;s.cursorActivityCalled<s.cursorActivityHandlers.length;)s.cursorActivityHandlers[s.cursorActivityCalled++].call(null,s.cm)}}while(o<t.length)}function x0(e,t){var o=e.ownsGroup;if(o)try{y0(o)}finally{gi=null,t(o)}}var uo=null;function Nt(e,t){var o=xr(e,t);if(o.length){var i=Array.prototype.slice.call(arguments,2),s;gi?s=gi.delayedCallbacks:uo?s=uo:(s=uo=[],setTimeout(I0,0));for(var u=function(h){s.push(function(){return o[h].apply(null,i)})},d=0;d<o.length;++d)u(d)}}function I0(){var e=uo;uo=null;for(var t=0;t<e.length;++t)e[t]()}function sf(e,t,o,i){for(var s=0;s<t.changes.length;s++){var u=t.changes[s];u=="text"?E0(e,t):u=="gutter"?uf(e,t,o,i):u=="class"?zs(e,t):u=="widget"&&C0(e,t,i)}t.changes=null}function fo(e){return e.node==e.text&&(e.node=x("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),g&&y<8&&(e.node.style.zIndex=2)),e.node}function T0(e,t){var o=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(o&&(o+=" CodeMirror-linebackground"),t.background)o?t.background.className=o:(t.background.parentNode.removeChild(t.background),t.background=null);else if(o){var i=fo(t);t.background=i.insertBefore(x("div",null,o),i.firstChild),e.display.input.setUneditable(t.background)}}function lf(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):nf(e,t)}function E0(e,t){var o=t.text.className,i=lf(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,zs(e,t)):o&&(t.text.className=o)}function zs(e,t){T0(e,t),t.line.wrapClass?fo(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function uf(e,t,o,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var s=fo(t);t.gutterBackground=x("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),s.insertBefore(t.gutterBackground,t.text)}var u=t.line.gutterMarkers;if(e.options.lineNumbers||u){var d=fo(t),h=t.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(h.setAttribute("aria-hidden","true"),e.display.input.setUneditable(h),d.insertBefore(h,t.text),t.line.gutterClass&&(h.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!u||!u["CodeMirror-linenumbers"])&&(t.lineNumber=h.appendChild(x("div",Y(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),u)for(var m=0;m<e.display.gutterSpecs.length;++m){var b=e.display.gutterSpecs[m].className,T=u.hasOwnProperty(b)&&u[b];T&&h.appendChild(x("div",[T],"CodeMirror-gutter-elt","left: "+i.gutterLeft[b]+"px; width: "+i.gutterWidth[b]+"px"))}}}function C0(e,t,o){t.alignable&&(t.alignable=null);for(var i=$("CodeMirror-linewidget"),s=t.node.firstChild,u=void 0;s;s=u)u=s.nextSibling,i.test(s.className)&&t.node.removeChild(s);ff(e,t,o)}function A0(e,t,o,i){var s=lf(e,t);return t.text=t.node=s.pre,s.bgClass&&(t.bgClass=s.bgClass),s.textClass&&(t.textClass=s.textClass),zs(e,t),uf(e,t,o,i),ff(e,t,i),t.node}function ff(e,t,o){if(cf(e,t.line,t,o,!0),t.rest)for(var i=0;i<t.rest.length;i++)cf(e,t.rest[i],t,o,!1)}function cf(e,t,o,i,s){if(t.widgets)for(var u=fo(o),d=0,h=t.widgets;d<h.length;++d){var m=h[d],b=x("div",[m.node],"CodeMirror-linewidget"+(m.className?" "+m.className:""));m.handleMouseEvents||b.setAttribute("cm-ignore-events","true"),R0(m,b,o,i),e.display.input.setUneditable(b),s&&m.above?u.insertBefore(b,o.gutter||o.text):u.appendChild(b),Nt(m,"redraw")}}function R0(e,t,o,i){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var s=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(s-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=s+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function co(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ce(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),oe(t.display.measure,x("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function un(e,t){for(var o=En(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function ba(e){return e.lineSpace.offsetTop}function qs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function df(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=oe(e.measure,x("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function Pr(e){return Fe-e.display.nativeBarWidth}function Pn(e){return e.display.scroller.clientWidth-Pr(e)-e.display.barWidth}function Ks(e){return e.display.scroller.clientHeight-Pr(e)-e.display.barHeight}function _0(e,t,o){var i=e.options.lineWrapping,s=i&&Pn(e);if(!t.measure.heights||i&&t.measure.width!=s){var u=t.measure.heights=[];if(i){t.measure.width=s;for(var d=t.text.firstChild.getClientRects(),h=0;h<d.length-1;h++){var m=d[h],b=d[h+1];Math.abs(m.bottom-b.bottom)>2&&u.push((m.bottom+b.top)/2-o.top)}}u.push(o.bottom-o.top)}}function hf(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var s=0;s<e.rest.length;s++)if(v(e.rest[s])>o)return{map:e.measure.maps[s],cache:e.measure.caches[s],before:!0}}}function N0(e,t){t=Ur(t);var o=v(t),i=e.display.externalMeasured=new af(e.doc,t,o);i.lineN=o;var s=i.built=nf(e,i);return i.text=s.pre,oe(e.display.lineMeasure,s.pre),i}function pf(e,t,o,i){return Jr(e,mi(e,t),o,i)}function $s(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Yn(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function mi(e,t){var o=v(t),i=$s(e,o);i&&!i.text?i=null:i&&i.changes&&(sf(e,i,o,il(e)),e.curOp.forceUpdate=!0),i||(i=N0(e,t));var s=hf(i,t,o);return{line:t,view:i,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function Jr(e,t,o,i,s){t.before&&(o=-1);var u=o+(i||""),d;return t.cache.hasOwnProperty(u)?d=t.cache[u]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(_0(e,t.view,t.rect),t.hasHeights=!0),d=w0(e,t,o,i),d.bogus||(t.cache[u]=d)),{left:d.left,right:d.right,top:s?d.rtop:d.top,bottom:s?d.rbottom:d.bottom}}var gf={left:0,right:0,top:0,bottom:0};function mf(e,t,o){for(var i,s,u,d,h,m,b=0;b<e.length;b+=3)if(h=e[b],m=e[b+1],t<h?(s=0,u=1,d="left"):t<m?(s=t-h,u=s+1):(b==e.length-3||t==m&&e[b+3]>t)&&(u=m-h,s=u-1,t>=m&&(d="right")),s!=null){if(i=e[b+2],h==m&&o==(i.insertLeft?"left":"right")&&(d=o),o=="left"&&s==0)for(;b&&e[b-2]==e[b-3]&&e[b-1].insertLeft;)i=e[(b-=3)+2],d="left";if(o=="right"&&s==m-h)for(;b<e.length-3&&e[b+3]==e[b+4]&&!e[b+5].insertLeft;)i=e[(b+=3)+2],d="right";break}return{node:i,start:s,end:u,collapse:d,coverStart:h,coverEnd:m}}function S0(e,t){var o=gf;if(t=="left")for(var i=0;i<e.length&&(o=e[i]).left==o.right;i++);else for(var s=e.length-1;s>=0&&(o=e[s]).left==o.right;s--);return o}function w0(e,t,o,i){var s=mf(t.map,o,i),u=s.node,d=s.start,h=s.end,m=s.collapse,b;if(u.nodeType==3){for(var T=0;T<4;T++){for(;d&&ze(t.line.text.charAt(s.coverStart+d));)--d;for(;s.coverStart+h<s.coverEnd&&ze(t.line.text.charAt(s.coverStart+h));)++h;if(g&&y<9&&d==0&&h==s.coverEnd-s.coverStart?b=u.parentNode.getBoundingClientRect():b=S0(Z(u,d,h).getClientRects(),i),b.left||b.right||d==0)break;h=d,d=d-1,m="right"}g&&y<11&&(b=L0(e.display.measure,b))}else{d>0&&(m=i="right");var C;e.options.lineWrapping&&(C=u.getClientRects()).length>1?b=C[i=="right"?C.length-1:0]:b=u.getBoundingClientRect()}if(g&&y<9&&!d&&(!b||!b.left&&!b.right)){var B=u.parentNode.getClientRects()[0];B?b={left:B.left,right:B.left+vi(e.display),top:B.top,bottom:B.bottom}:b=gf}for(var L=b.top-t.rect.top,W=b.bottom-t.rect.top,P=(L+W)/2,z=t.view.measure.heights,ne=0;ne<z.length-1&&!(P<z[ne]);ne++);var he=ne?z[ne-1]:0,ie=z[ne],me={left:(m=="right"?b.right:b.left)-t.rect.left,right:(m=="left"?b.left:b.right)-t.rect.left,top:he,bottom:ie};return!b.left&&!b.right&&(me.bogus=!0),e.options.singleCursorHeightPerLine||(me.rtop=L,me.rbottom=W),me}function L0(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tr(e))return t;var o=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*o,right:t.right*o,top:t.top*i,bottom:t.bottom*i}}function bf(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function vf(e){e.display.externalMeasure=null,k(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)bf(e.display.view[t])}function ho(e){vf(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function yf(e){return A&&M?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function xf(e){return A&&M?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function el(e){var t=Ur(e),o=t.widgets,i=0;if(o)for(var s=0;s<o.length;++s)o[s].above&&(i+=co(o[s]));return i}function va(e,t,o,i,s){if(!s){var u=el(t);o.top+=u,o.bottom+=u}if(i=="line")return o;i||(i="local");var d=ln(t);if(i=="local"?d+=ba(e.display):d-=e.display.viewOffset,i=="page"||i=="window"){var h=e.display.lineSpace.getBoundingClientRect();d+=h.top+(i=="window"?0:xf(re(e)));var m=h.left+(i=="window"?0:yf(re(e)));o.left+=m,o.right+=m}return o.top+=d,o.bottom+=d,o}function If(e,t,o){if(o=="div")return t;var i=t.left,s=t.top;if(o=="page")i-=yf(re(e)),s-=xf(re(e));else if(o=="local"||!o){var u=e.display.sizer.getBoundingClientRect();i+=u.left,s+=u.top}var d=e.display.lineSpace.getBoundingClientRect();return{left:i-d.left,top:s-d.top}}function ya(e,t,o,i,s){return i||(i=de(e.doc,t.line)),va(e,i,pf(e,i,t.ch,s),o)}function kr(e,t,o,i,s,u){i=i||de(e.doc,t.line),s||(s=mi(e,i));function d(W,P){var z=Jr(e,s,W,P?"right":"left",u);return P?z.left=z.right:z.right=z.left,va(e,i,z,o)}var h=Ne(i,e.doc.direction),m=t.ch,b=t.sticky;if(m>=i.text.length?(m=i.text.length,b="before"):m<=0&&(m=0,b="after"),!h)return d(b=="before"?m-1:m,b=="before");function T(W,P,z){var ne=h[P],he=ne.level==1;return d(z?W-1:W,he!=z)}var C=yr(h,m,b),B=vr,L=T(m,C,b=="before");return B!=null&&(L.other=T(m,B,b!="before")),L}function Tf(e,t){var o=0;t=Se(e.doc,t),e.options.lineWrapping||(o=vi(e.display)*t.ch);var i=de(e.doc,t.line),s=ln(i)+ba(e.display);return{left:o,right:o,top:s,bottom:s+i.height}}function tl(e,t,o,i,s){var u=G(e,t,o);return u.xRel=s,i&&(u.outside=i),u}function rl(e,t,o){var i=e.doc;if(o+=e.display.viewOffset,o<0)return tl(i.first,0,null,-1,-1);var s=E(i,o),u=i.first+i.size-1;if(s>u)return tl(i.first+i.size-1,de(i,u).text.length,null,1,1);t<0&&(t=0);for(var d=de(i,s);;){var h=F0(e,d,s,t,o),m=a0(d,h.ch+(h.xRel>0||h.outside>0?1:0));if(!m)return h;var b=m.find(1);if(b.line==s)return b;d=de(i,s=b.line)}}function Ef(e,t,o,i){i-=el(t);var s=t.text.length,u=ft(function(d){return Jr(e,o,d-1).bottom<=i},s,0);return s=ft(function(d){return Jr(e,o,d).top>i},u,s),{begin:u,end:s}}function Cf(e,t,o,i){o||(o=mi(e,t));var s=va(e,t,Jr(e,o,i),"line").top;return Ef(e,t,o,s)}function nl(e,t,o,i){return e.bottom<=o?!1:e.top>o?!0:(i?e.left:e.right)>t}function F0(e,t,o,i,s){s-=ln(t);var u=mi(e,t),d=el(t),h=0,m=t.text.length,b=!0,T=Ne(t,e.doc.direction);if(T){var C=(e.options.lineWrapping?U0:B0)(e,t,o,u,T,i,s);b=C.level!=1,h=b?C.from:C.to-1,m=b?C.to:C.from-1}var B=null,L=null,W=ft(function(Ae){var Ee=Jr(e,u,Ae);return Ee.top+=d,Ee.bottom+=d,nl(Ee,i,s,!1)?(Ee.top<=s&&Ee.left<=i&&(B=Ae,L=Ee),!0):!1},h,m),P,z,ne=!1;if(L){var he=i-L.left<L.right-i,ie=he==b;W=B+(ie?0:1),z=ie?"after":"before",P=he?L.left:L.right}else{!b&&(W==m||W==h)&&W++,z=W==0?"after":W==t.text.length?"before":Jr(e,u,W-(b?1:0)).bottom+d<=s==b?"after":"before";var me=kr(e,G(o,W,z),"line",t,u);P=me.left,ne=s<me.top?-1:s>=me.bottom?1:0}return W=kt(t.text,W,1),tl(o,W,z,ne,i-P)}function B0(e,t,o,i,s,u,d){var h=ft(function(C){var B=s[C],L=B.level!=1;return nl(kr(e,G(o,L?B.to:B.from,L?"before":"after"),"line",t,i),u,d,!0)},0,s.length-1),m=s[h];if(h>0){var b=m.level!=1,T=kr(e,G(o,b?m.from:m.to,b?"after":"before"),"line",t,i);nl(T,u,d,!0)&&T.top>d&&(m=s[h-1])}return m}function U0(e,t,o,i,s,u,d){var h=Ef(e,t,i,d),m=h.begin,b=h.end;/\s/.test(t.text.charAt(b-1))&&b--;for(var T=null,C=null,B=0;B<s.length;B++){var L=s[B];if(!(L.from>=b||L.to<=m)){var W=L.level!=1,P=Jr(e,i,W?Math.min(b,L.to)-1:Math.max(m,L.from)).right,z=P<u?u-P+1e9:P-u;(!T||C>z)&&(T=L,C=z)}}return T||(T=s[s.length-1]),T.from<m&&(T={from:m,to:T.to,level:T.level}),T.to>b&&(T={from:T.from,to:b,level:T.level}),T}var Jn;function bi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Jn==null){Jn=x("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Jn.appendChild(document.createTextNode("x")),Jn.appendChild(x("br"));Jn.appendChild(document.createTextNode("x"))}oe(e.measure,Jn);var o=Jn.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),k(e.measure),o||1}function vi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=x("span","xxxxxxxxxx"),o=x("pre",[t],"CodeMirror-line-like");oe(e.measure,o);var i=t.getBoundingClientRect(),s=(i.right-i.left)/10;return s>2&&(e.cachedCharWidth=s),s||10}function il(e){for(var t=e.display,o={},i={},s=t.gutters.clientLeft,u=t.gutters.firstChild,d=0;u;u=u.nextSibling,++d){var h=e.display.gutterSpecs[d].className;o[h]=u.offsetLeft+u.clientLeft+s,i[h]=u.clientWidth}return{fixedPos:ol(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function ol(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Af(e){var t=bi(e.display),o=e.options.lineWrapping,i=o&&Math.max(5,e.display.scroller.clientWidth/vi(e.display)-3);return function(s){if(Rn(e.doc,s))return 0;var u=0;if(s.widgets)for(var d=0;d<s.widgets.length;d++)s.widgets[d].height&&(u+=s.widgets[d].height);return o?u+(Math.ceil(s.text.length/i)||1)*t:u+t}}function al(e){var t=e.doc,o=Af(e);t.iter(function(i){var s=o(i);s!=i.height&&Zt(i,s)})}function Xn(e,t,o,i){var s=e.display;if(!o&&En(t).getAttribute("cm-not-content")=="true")return null;var u,d,h=s.lineSpace.getBoundingClientRect();try{u=t.clientX-h.left,d=t.clientY-h.top}catch{return null}var m=rl(e,u,d),b;if(i&&m.xRel>0&&(b=de(e.doc,m.line).text).length==m.ch){var T=ye(b,b.length,e.options.tabSize)-b.length;m=G(m.line,Math.max(0,Math.round((u-df(e.display).left)/vi(e.display))-T))}return m}function Yn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var o=e.display.view,i=0;i<o.length;i++)if(t-=o[i].size,t<0)return i}function qt(e,t,o,i){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),i||(i=0);var s=e.display;if(i&&o<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>t)&&(s.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=s.viewTo)sn&&Xs(e.doc,t)<s.viewTo&&Nn(e);else if(o<=s.viewFrom)sn&&tf(e.doc,o+i)>s.viewFrom?Nn(e):(s.viewFrom+=i,s.viewTo+=i);else if(t<=s.viewFrom&&o>=s.viewTo)Nn(e);else if(t<=s.viewFrom){var u=xa(e,o,o+i,1);u?(s.view=s.view.slice(u.index),s.viewFrom=u.lineN,s.viewTo+=i):Nn(e)}else if(o>=s.viewTo){var d=xa(e,t,t,-1);d?(s.view=s.view.slice(0,d.index),s.viewTo=d.lineN):Nn(e)}else{var h=xa(e,t,t,-1),m=xa(e,o,o+i,1);h&&m?(s.view=s.view.slice(0,h.index).concat(ma(e,h.lineN,m.lineN)).concat(s.view.slice(m.index)),s.viewTo+=i):Nn(e)}var b=s.externalMeasured;b&&(o<b.lineN?b.lineN+=i:t<b.lineN+b.size&&(s.externalMeasured=null))}function _n(e,t,o){e.curOp.viewChanged=!0;var i=e.display,s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var u=i.view[Yn(e,t)];if(u.node!=null){var d=u.changes||(u.changes=[]);ue(d,o)==-1&&d.push(o)}}}function Nn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xa(e,t,o,i){var s=Yn(e,t),u,d=e.display.view;if(!sn||o==e.doc.first+e.doc.size)return{index:s,lineN:o};for(var h=e.display.viewFrom,m=0;m<s;m++)h+=d[m].size;if(h!=t){if(i>0){if(s==d.length-1)return null;u=h+d[s].size-t,s++}else u=h-t;t+=u,o+=u}for(;Xs(e.doc,o)!=o;){if(s==(i<0?0:d.length-1))return null;o+=i*d[s-(i<0?1:0)].size,s+=i}return{index:s,lineN:o}}function k0(e,t,o){var i=e.display,s=i.view;s.length==0||t>=i.viewTo||o<=i.viewFrom?(i.view=ma(e,t,o),i.viewFrom=t):(i.viewFrom>t?i.view=ma(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Yn(e,t))),i.viewFrom=t,i.viewTo<o?i.view=i.view.concat(ma(e,i.viewTo,o)):i.viewTo>o&&(i.view=i.view.slice(0,Yn(e,o)))),i.viewTo=o}function Rf(e){for(var t=e.display.view,o=0,i=0;i<t.length;i++){var s=t[i];!s.hidden&&(!s.node||s.changes)&&++o}return o}function po(e){e.display.input.showSelection(e.display.input.prepareSelection())}function _f(e,t){t===void 0&&(t=!0);var o=e.doc,i={},s=i.cursors=document.createDocumentFragment(),u=i.selection=document.createDocumentFragment(),d=e.options.$customCursor;d&&(t=!0);for(var h=0;h<o.sel.ranges.length;h++)if(!(!t&&h==o.sel.primIndex)){var m=o.sel.ranges[h];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var b=m.empty();if(d){var T=d(e,m);T&&sl(e,T,s)}else(b||e.options.showCursorWhenSelecting)&&sl(e,m.head,s);b||O0(e,m,u)}}return i}function sl(e,t,o){var i=kr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),s=o.appendChild(x("div","\xA0","CodeMirror-cursor"));if(s.style.left=i.left+"px",s.style.top=i.top+"px",s.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var u=ya(e,t,"div",null,null),d=u.right-u.left;s.style.width=(d>0?d:e.defaultCharWidth())+"px"}if(i.other){var h=o.appendChild(x("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));h.style.display="",h.style.left=i.other.left+"px",h.style.top=i.other.top+"px",h.style.height=(i.other.bottom-i.other.top)*.85+"px"}}function Ia(e,t){return e.top-t.top||e.left-t.left}function O0(e,t,o){var i=e.display,s=e.doc,u=document.createDocumentFragment(),d=df(e.display),h=d.left,m=Math.max(i.sizerWidth,Pn(e)-i.sizer.offsetLeft)-d.right,b=s.direction=="ltr";function T(ie,me,Ae,Ee){me<0&&(me=0),me=Math.round(me),Ee=Math.round(Ee),u.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ie+`px;
21
+ top: `+me+"px; width: "+(Ae??m-ie)+`px;
22
+ height: `+(Ee-me)+"px"))}function C(ie,me,Ae){var Ee=de(s,ie),ke=Ee.text.length,$e,Lt;function ct(bt,er){return ya(e,G(ie,bt),"div",Ee,er)}function hr(bt,er,Mt){var xt=Cf(e,Ee,null,bt),vt=er=="ltr"==(Mt=="after")?"left":"right",ht=Mt=="after"?xt.begin:xt.end-(/\s/.test(Ee.text.charAt(xt.end-1))?2:1);return ct(ht,vt)[vt]}var $t=Ne(Ee,s.direction);return Ot($t,me||0,Ae??ke,function(bt,er,Mt,xt){var vt=Mt=="ltr",ht=ct(bt,vt?"left":"right"),tr=ct(er-1,vt?"right":"left"),Li=me==null&&bt==0,Un=Ae==null&&er==ke,Vt=xt==0,Xr=!$t||xt==$t.length-1;if(tr.top-ht.top<=3){var Ft=(b?Li:Un)&&Vt,Ul=(b?Un:Li)&&Xr,dn=Ft?h:(vt?ht:tr).left,$n=Ul?m:(vt?tr:ht).right;T(dn,ht.top,$n-dn,ht.bottom)}else{var ei,Xt,Fi,kl;vt?(ei=b&&Li&&Vt?h:ht.left,Xt=b?m:hr(bt,Mt,"before"),Fi=b?h:hr(er,Mt,"after"),kl=b&&Un&&Xr?m:tr.right):(ei=b?hr(bt,Mt,"before"):h,Xt=!b&&Li&&Vt?m:ht.right,Fi=!b&&Un&&Xr?h:tr.left,kl=b?hr(er,Mt,"after"):m),T(ei,ht.top,Xt-ei,ht.bottom),ht.bottom<tr.top&&T(h,ht.bottom,null,tr.top),T(Fi,tr.top,kl-Fi,tr.bottom)}(!$e||Ia(ht,$e)<0)&&($e=ht),Ia(tr,$e)<0&&($e=tr),(!Lt||Ia(ht,Lt)<0)&&(Lt=ht),Ia(tr,Lt)<0&&(Lt=tr)}),{start:$e,end:Lt}}var B=t.from(),L=t.to();if(B.line==L.line)C(B.line,B.ch,L.ch);else{var W=de(s,B.line),P=de(s,L.line),z=Ur(W)==Ur(P),ne=C(B.line,B.ch,z?W.text.length+1:null).end,he=C(L.line,z?0:null,L.ch).start;z&&(ne.top<he.top-2?(T(ne.right,ne.top,null,ne.bottom),T(h,he.top,he.left,he.bottom)):T(ne.right,ne.top,he.left-ne.right,ne.bottom)),ne.bottom<he.top&&T(h,ne.bottom,null,he.top)}o.appendChild(u)}function ll(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||yi(e),t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Nf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||fl(e))}function ul(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&yi(e))},100)}function fl(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(qe(e,"focus",e,t),e.state.focused=!0,Ge(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ll(e))}function yi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(qe(e,"blur",e,t),e.state.focused=!1,pe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ta(e){for(var t=e.display,o=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),s=t.lineDiv.getBoundingClientRect().top,u=0,d=0;d<t.view.length;d++){var h=t.view[d],m=e.options.lineWrapping,b=void 0,T=0;if(!h.hidden){if(s+=h.line.height,g&&y<8){var C=h.node.offsetTop+h.node.offsetHeight;b=C-o,o=C}else{var B=h.node.getBoundingClientRect();b=B.bottom-B.top,!m&&h.text.firstChild&&(T=h.text.firstChild.getBoundingClientRect().right-B.left-1)}var L=h.line.height-b;if((L>.005||L<-.005)&&(s<i&&(u-=L),Zt(h.line,b),Sf(h.line),h.rest))for(var W=0;W<h.rest.length;W++)Sf(h.rest[W]);if(T>e.display.sizerWidth){var P=Math.ceil(T/vi(e.display));P>e.display.maxLineLength&&(e.display.maxLineLength=P,e.display.maxLine=h.line,e.display.maxLineChanged=!0)}}}Math.abs(u)>2&&(t.scroller.scrollTop+=u)}function Sf(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],i=o.node.parentNode;i&&(o.height=i.offsetHeight)}}function Ea(e,t,o){var i=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;i=Math.floor(i-ba(e));var s=o&&o.bottom!=null?o.bottom:i+e.wrapper.clientHeight,u=E(t,i),d=E(t,s);if(o&&o.ensure){var h=o.ensure.from.line,m=o.ensure.to.line;h<u?(u=h,d=E(t,ln(de(t,h))+e.wrapper.clientHeight)):Math.min(m,t.lastLine())>=d&&(u=E(t,ln(de(t,m))-e.wrapper.clientHeight),d=m)}return{from:u,to:Math.max(d,u+1)}}function M0(e,t){if(!Ke(e,"scrollCursorIntoView")){var o=e.display,i=o.sizer.getBoundingClientRect(),s=null,u=o.wrapper.ownerDocument;if(t.top+i.top<0?s=!0:t.bottom+i.top>(u.defaultView.innerHeight||u.documentElement.clientHeight)&&(s=!1),s!=null&&!D){var d=x("div","\u200B",null,`position: absolute;
23
+ top: `+(t.top-o.viewOffset-ba(e.display))+`px;
24
+ height: `+(t.bottom-t.top+Pr(e)+o.barHeight)+`px;
25
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(d),d.scrollIntoView(s),e.display.lineSpace.removeChild(d)}}}function G0(e,t,o,i){i==null&&(i=0);var s;!e.options.lineWrapping&&t==o&&(o=t.sticky=="before"?G(t.line,t.ch+1,"before"):t,t=t.ch?G(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var u=0;u<5;u++){var d=!1,h=kr(e,t),m=!o||o==t?h:kr(e,o);s={left:Math.min(h.left,m.left),top:Math.min(h.top,m.top)-i,right:Math.max(h.left,m.left),bottom:Math.max(h.bottom,m.bottom)+i};var b=cl(e,s),T=e.doc.scrollTop,C=e.doc.scrollLeft;if(b.scrollTop!=null&&(mo(e,b.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(d=!0)),b.scrollLeft!=null&&(jn(e,b.scrollLeft),Math.abs(e.doc.scrollLeft-C)>1&&(d=!0)),!d)break}return s}function W0(e,t){var o=cl(e,t);o.scrollTop!=null&&mo(e,o.scrollTop),o.scrollLeft!=null&&jn(e,o.scrollLeft)}function cl(e,t){var o=e.display,i=bi(e.display);t.top<0&&(t.top=0);var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,u=Ks(e),d={};t.bottom-t.top>u&&(t.bottom=t.top+u);var h=e.doc.height+qs(o),m=t.top<i,b=t.bottom>h-i;if(t.top<s)d.scrollTop=m?0:t.top;else if(t.bottom>s+u){var T=Math.min(t.top,(b?h:t.bottom)-u);T!=s&&(d.scrollTop=T)}var C=e.options.fixedGutter?0:o.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-C,L=Pn(e)-o.gutters.offsetWidth,W=t.right-t.left>L;return W&&(t.right=t.left+L),t.left<10?d.scrollLeft=0:t.left<B?d.scrollLeft=Math.max(0,t.left+C-(W?0:10)):t.right>L+B-3&&(d.scrollLeft=t.right+(W?0:10)-L),d}function dl(e,t){t!=null&&(Ca(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function xi(e){Ca(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function go(e,t,o){(t!=null||o!=null)&&Ca(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Z0(e,t){Ca(e),e.curOp.scrollToPos=t}function Ca(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var o=Tf(e,t.from),i=Tf(e,t.to);wf(e,o,i,t.margin)}}function wf(e,t,o,i){var s=cl(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-i,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+i});go(e,s.scrollLeft,s.scrollTop)}function mo(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||pl(e,{top:t}),Lf(e,t,!0),a&&pl(e),yo(e,100))}function Lf(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function jn(e,t,o,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i)&&(e.doc.scrollLeft=t,Of(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function bo(e){var t=e.display,o=t.gutters.offsetWidth,i=Math.round(e.doc.height+qs(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:i,scrollHeight:i+Pr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var zn=function(e,t,o){this.cm=o;var i=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=s.tabIndex=-1,e(i),e(s),Te(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Te(s,"scroll",function(){s.clientWidth&&t(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,g&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};zn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var s=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+s)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var u=e.viewWidth-e.barLeft-(o?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?i:0,bottom:t?i:0}},zn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},zn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},zn.prototype.zeroWidthHack=function(){var e=q&&!S?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Me,this.disableVert=new Me},zn.prototype.enableZeroWidthBar=function(e,t,o){e.style.visibility="";function i(){var s=e.getBoundingClientRect(),u=o=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1);u!=e?e.style.visibility="hidden":t.set(1e3,i)}t.set(1e3,i)},zn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vo=function(){};vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};function Ii(e,t){t||(t=bo(e));var o=e.display.barWidth,i=e.display.barHeight;Ff(e,t);for(var s=0;s<4&&o!=e.display.barWidth||i!=e.display.barHeight;s++)o!=e.display.barWidth&&e.options.lineWrapping&&Ta(e),Ff(e,bo(e)),o=e.display.barWidth,i=e.display.barHeight}function Ff(e,t){var o=e.display,i=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=i.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=i.bottom)+"px",o.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=i.bottom+"px",o.scrollbarFiller.style.width=i.right+"px"):o.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=i.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}var Bf={native:zn,null:vo};function Uf(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&pe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Bf[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Te(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?jn(e,t):mo(e,t)},e),e.display.scrollbars.addClass&&Ge(e.display.wrapper,e.display.scrollbars.addClass)}var D0=0;function qn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++D0,markArrays:null},v0(e.curOp)}function Kn(e){var t=e.curOp;t&&x0(t,function(o){for(var i=0;i<o.ops.length;i++)o.ops[i].cm.curOp=null;V0(o)})}function V0(e){for(var t=e.ops,o=0;o<t.length;o++)Q0(t[o]);for(var i=0;i<t.length;i++)H0(t[i]);for(var s=0;s<t.length;s++)P0(t[s]);for(var u=0;u<t.length;u++)J0(t[u]);for(var d=0;d<t.length;d++)X0(t[d])}function Q0(e){var t=e.cm,o=t.display;j0(t),e.updateMaxLine&&js(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Aa(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function H0(e){e.updatedDisplay=e.mustUpdate&&hl(e.cm,e.update)}function P0(e){var t=e.cm,o=t.display;e.updatedDisplay&&Ta(t),e.barMeasure=bo(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=pf(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+Pr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function J0(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&jn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==ge(De(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ii(t,e.barMeasure),e.updatedDisplay&&ml(t,e.barMeasure),e.selectionChanged&&ll(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&Nf(e.cm)}function X0(e){var t=e.cm,o=t.display,i=t.doc;if(e.updatedDisplay&&kf(t,e.update),o.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&Lf(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&jn(t,e.scrollLeft,!0,!0),e.scrollToPos){var s=G0(t,Se(i,e.scrollToPos.from),Se(i,e.scrollToPos.to),e.scrollToPos.margin);M0(t,s)}var u=e.maybeHiddenMarkers,d=e.maybeUnhiddenMarkers;if(u)for(var h=0;h<u.length;++h)u[h].lines.length||qe(u[h],"hide");if(d)for(var m=0;m<d.length;++m)d[m].lines.length&&qe(d[m],"unhide");o.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&qe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function dr(e,t){if(e.curOp)return t();qn(e);try{return t()}finally{Kn(e)}}function St(e,t){return function(){if(e.curOp)return t.apply(e,arguments);qn(e);try{return t.apply(e,arguments)}finally{Kn(e)}}}function Jt(e){return function(){if(this.curOp)return e.apply(this,arguments);qn(this);try{return e.apply(this,arguments)}finally{Kn(this)}}}function wt(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);qn(t);try{return e.apply(this,arguments)}finally{Kn(t)}}}function yo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,se(Y0,e))}function Y0(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,i=so(e,t.highlightFrontier),s=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(u){if(i.line>=e.display.viewFrom){var d=u.styles,h=u.text.length>e.options.maxHighlightLength?be(t.mode,i.state):null,m=Du(e,u,i,!0);h&&(i.state=h),u.styles=m.styles;var b=u.styleClasses,T=m.classes;T?u.styleClasses=T:b&&(u.styleClasses=null);for(var C=!d||d.length!=u.styles.length||b!=T&&(!b||!T||b.bgClass!=T.bgClass||b.textClass!=T.textClass),B=0;!C&&B<d.length;++B)C=d[B]!=u.styles[B];C&&s.push(i.line),u.stateAfter=i.save(),i.nextLine()}else u.text.length<=e.options.maxHighlightLength&&Qs(e,u.text,i),u.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>o)return yo(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),s.length&&dr(e,function(){for(var u=0;u<s.length;u++)_n(e,s[u],"text")})}}var Aa=function(e,t,o){var i=e.display;this.viewport=t,this.visible=Ea(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Pn(e),this.force=o,this.dims=il(e),this.events=[]};Aa.prototype.signal=function(e,t){yt(e,t)&&this.events.push(arguments)},Aa.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function j0(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Pr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Pr(e)+"px",t.scrollbarsClipped=!0)}function z0(e){if(e.hasFocus())return null;var t=ge(De(e));if(!t||!ce(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var i=ve(e).getSelection();i.anchorNode&&i.extend&&ce(e.display.lineDiv,i.anchorNode)&&(o.anchorNode=i.anchorNode,o.anchorOffset=i.anchorOffset,o.focusNode=i.focusNode,o.focusOffset=i.focusOffset)}return o}function q0(e){if(!(!e||!e.activeElt||e.activeElt==ge(Ce(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ce(document.body,e.anchorNode)&&ce(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,o=t.defaultView.getSelection(),i=t.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),o.removeAllRanges(),o.addRange(i),o.extend(e.focusNode,e.focusOffset)}}function hl(e,t){var o=e.display,i=e.doc;if(t.editorIsHidden)return Nn(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&Rf(e)==0)return!1;Mf(e)&&(Nn(e),t.dims=il(e));var s=i.first+i.size,u=Math.max(t.visible.from-e.options.viewportMargin,i.first),d=Math.min(s,t.visible.to+e.options.viewportMargin);o.viewFrom<u&&u-o.viewFrom<20&&(u=Math.max(i.first,o.viewFrom)),o.viewTo>d&&o.viewTo-d<20&&(d=Math.min(s,o.viewTo)),sn&&(u=Xs(e.doc,u),d=tf(e.doc,d));var h=u!=o.viewFrom||d!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;k0(e,u,d),o.viewOffset=ln(de(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var m=Rf(e);if(!h&&m==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var b=z0(e);return m>4&&(o.lineDiv.style.display="none"),K0(e,o.updateLineNumbers,t.dims),m>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,q0(b),k(o.cursorDiv),k(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,h&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,yo(e,400)),o.updateLineNumbers=null,!0}function kf(e,t){for(var o=t.viewport,i=!0;;i=!1){if(!i||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+qs(e.display)-Ks(e),o.top)}),t.visible=Ea(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else i&&(t.visible=Ea(e.display,e.doc,o));if(!hl(e,t))break;Ta(e);var s=bo(e);po(e),Ii(e,s),ml(e,s),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function pl(e,t){var o=new Aa(e,t);if(hl(e,o)){Ta(e),kf(e,o);var i=bo(e);po(e),Ii(e,i),ml(e,i),o.finish()}}function K0(e,t,o){var i=e.display,s=e.options.lineNumbers,u=i.lineDiv,d=u.firstChild;function h(W){var P=W.nextSibling;return I&&q&&e.display.currentWheelTarget==W?W.style.display="none":W.parentNode.removeChild(W),P}for(var m=i.view,b=i.viewFrom,T=0;T<m.length;T++){var C=m[T];if(!C.hidden)if(!C.node||C.node.parentNode!=u){var B=A0(e,C,b,o);u.insertBefore(B,d)}else{for(;d!=C.node;)d=h(d);var L=s&&t!=null&&t<=b&&C.lineNumber;C.changes&&(ue(C.changes,"gutter")>-1&&(L=!1),sf(e,C,b,o)),L&&(k(C.lineNumber),C.lineNumber.appendChild(document.createTextNode(Y(e.options,b)))),d=C.node.nextSibling}b+=C.size}for(;d;)d=h(d)}function gl(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nt(e,"gutterChanged",e)}function ml(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Pr(e)+"px"}function Of(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var i=ol(t)-t.scroller.scrollLeft+e.doc.scrollLeft,s=t.gutters.offsetWidth,u=i+"px",d=0;d<o.length;d++)if(!o[d].hidden){e.options.fixedGutter&&(o[d].gutter&&(o[d].gutter.style.left=u),o[d].gutterBackground&&(o[d].gutterBackground.style.left=u));var h=o[d].alignable;if(h)for(var m=0;m<h.length;m++)h[m].style.left=u}e.options.fixedGutter&&(t.gutters.style.left=i+s+"px")}}function Mf(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=Y(e.options,t.first+t.size-1),i=e.display;if(o.length!=i.lineNumChars){var s=i.measure.appendChild(x("div",[x("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),u=s.firstChild.offsetWidth,d=s.offsetWidth-u;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(u,i.lineGutter.offsetWidth-d)+1,i.lineNumWidth=i.lineNumInnerWidth+d,i.lineNumChars=i.lineNumInnerWidth?o.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",gl(e.display),!0}return!1}function bl(e,t){for(var o=[],i=!1,s=0;s<e.length;s++){var u=e[s],d=null;if(typeof u!="string"&&(d=u.style,u=u.className),u=="CodeMirror-linenumbers")if(t)i=!0;else continue;o.push({className:u,style:d})}return t&&!i&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Gf(e){var t=e.gutters,o=e.gutterSpecs;k(t),e.lineGutter=null;for(var i=0;i<o.length;++i){var s=o[i],u=s.className,d=s.style,h=t.appendChild(x("div",null,"CodeMirror-gutter "+u));d&&(h.style.cssText=d),u=="CodeMirror-linenumbers"&&(e.lineGutter=h,h.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",gl(e)}function xo(e){Gf(e.display),qt(e),Of(e)}function $0(e,t,o,i){var s=this;this.input=o,s.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=ee("div",null,"CodeMirror-code"),s.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=x("div",null,"CodeMirror-cursors"),s.measure=x("div",null,"CodeMirror-measure"),s.lineMeasure=x("div",null,"CodeMirror-measure"),s.lineSpace=ee("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var u=ee("div",[s.lineSpace],"CodeMirror-lines");s.mover=x("div",[u],null,"position: relative"),s.sizer=x("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=x("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),s.gutters=x("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=x("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=x("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),A&&F===105&&(s.wrapper.style.clipPath="inset(0px)"),s.wrapper.setAttribute("translate","no"),g&&y<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),!I&&!(a&&J)&&(s.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(s.wrapper):e(s.wrapper)),s.viewFrom=s.viewTo=t.first,s.reportedViewFrom=s.reportedViewTo=t.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=bl(i.gutters,i.lineNumbers),Gf(s),o.init(s)}var Ra=0,fn=null;g?fn=-.53:a?fn=15:A?fn=-.7:X&&(fn=-1/3);function Wf(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function eb(e){var t=Wf(e);return t.x*=fn,t.y*=fn,t}function Zf(e,t){A&&F==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var o=Wf(t),i=o.x,s=o.y,u=fn;t.deltaMode===0&&(i=t.deltaX,s=t.deltaY,u=1);var d=e.display,h=d.scroller,m=h.scrollWidth>h.clientWidth,b=h.scrollHeight>h.clientHeight;if(i&&m||s&&b){if(s&&q&&I){e:for(var T=t.target,C=d.view;T!=h;T=T.parentNode)for(var B=0;B<C.length;B++)if(C[B].node==T){e.display.currentWheelTarget=T;break e}}if(i&&!a&&!O&&u!=null){s&&b&&mo(e,Math.max(0,h.scrollTop+s*u)),jn(e,Math.max(0,h.scrollLeft+i*u)),(!s||s&&b)&&At(t),d.wheelStartX=null;return}if(s&&u!=null){var L=s*u,W=e.doc.scrollTop,P=W+d.wrapper.clientHeight;L<0?W=Math.max(0,W+L-50):P=Math.min(e.doc.height,P+L+50),pl(e,{top:W,bottom:P})}Ra<20&&t.deltaMode!==0&&(d.wheelStartX==null?(d.wheelStartX=h.scrollLeft,d.wheelStartY=h.scrollTop,d.wheelDX=i,d.wheelDY=s,setTimeout(function(){if(d.wheelStartX!=null){var z=h.scrollLeft-d.wheelStartX,ne=h.scrollTop-d.wheelStartY,he=ne&&d.wheelDY&&ne/d.wheelDY||z&&d.wheelDX&&z/d.wheelDX;d.wheelStartX=d.wheelStartY=null,he&&(fn=(fn*Ra+he)/(Ra+1),++Ra)}},200)):(d.wheelDX+=i,d.wheelDY+=s))}}var Er=function(e,t){this.ranges=e,this.primIndex=t};Er.prototype.primary=function(){return this.ranges[this.primIndex]},Er.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],i=e.ranges[t];if(!Qe(o.anchor,i.anchor)||!Qe(o.head,i.head))return!1}return!0},Er.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new He(_t(this.ranges[t].anchor),_t(this.ranges[t].head));return new Er(e,this.primIndex)},Er.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Er.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var i=this.ranges[o];if(fe(t,i.from())>=0&&fe(e,i.to())<=0)return o}return-1};var He=function(e,t){this.anchor=e,this.head=t};He.prototype.from=function(){return hi(this.anchor,this.head)},He.prototype.to=function(){return zt(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Or(e,t,o){var i=e&&e.options.selectionsMayTouch,s=t[o];t.sort(function(B,L){return fe(B.from(),L.from())}),o=ue(t,s);for(var u=1;u<t.length;u++){var d=t[u],h=t[u-1],m=fe(h.to(),d.from());if(i&&!d.empty()?m>0:m>=0){var b=hi(h.from(),d.from()),T=zt(h.to(),d.to()),C=h.empty()?d.from()==d.head:h.from()==h.head;u<=o&&--o,t.splice(--u,2,new He(C?T:b,C?b:T))}}return new Er(t,o)}function Sn(e,t){return new Er([new He(e,t||e)],0)}function wn(e){return e.text?G(e.from.line+e.text.length-1,Ie(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Df(e,t){if(fe(e,t.from)<0)return e;if(fe(e,t.to)<=0)return wn(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=wn(t).ch-t.to.ch),G(o,i)}function vl(e,t){for(var o=[],i=0;i<e.sel.ranges.length;i++){var s=e.sel.ranges[i];o.push(new He(Df(s.anchor,t),Df(s.head,t)))}return Or(e.cm,o,e.sel.primIndex)}function Vf(e,t,o){return e.line==t.line?G(o.line,e.ch-t.ch+o.ch):G(o.line+(e.line-t.line),e.ch)}function tb(e,t,o){for(var i=[],s=G(e.first,0),u=s,d=0;d<t.length;d++){var h=t[d],m=Vf(h.from,s,u),b=Vf(wn(h),s,u);if(s=h.to,u=b,o=="around"){var T=e.sel.ranges[d],C=fe(T.head,T.anchor)<0;i[d]=new He(C?b:m,C?m:b)}else i[d]=new He(m,m)}return new Er(i,e.sel.primIndex)}function yl(e){e.doc.mode=xe(e.options,e.doc.modeOption),Io(e)}function Io(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,yo(e,100),e.state.modeGen++,e.curOp&&qt(e)}function Qf(e,t){return t.from.ch==0&&t.to.ch==0&&Ie(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function xl(e,t,o,i){function s(he){return o?o[he]:null}function u(he,ie,me){u0(he,ie,me,i),Nt(he,"change",he,t)}function d(he,ie){for(var me=[],Ae=he;Ae<ie;++Ae)me.push(new pi(b[Ae],s(Ae),i));return me}var h=t.from,m=t.to,b=t.text,T=de(e,h.line),C=de(e,m.line),B=Ie(b),L=s(b.length-1),W=m.line-h.line;if(t.full)e.insert(0,d(0,b.length)),e.remove(b.length,e.size-b.length);else if(Qf(e,t)){var P=d(0,b.length-1);u(C,C.text,L),W&&e.remove(h.line,W),P.length&&e.insert(h.line,P)}else if(T==C)if(b.length==1)u(T,T.text.slice(0,h.ch)+B+T.text.slice(m.ch),L);else{var z=d(1,b.length-1);z.push(new pi(B+T.text.slice(m.ch),L,i)),u(T,T.text.slice(0,h.ch)+b[0],s(0)),e.insert(h.line+1,z)}else if(b.length==1)u(T,T.text.slice(0,h.ch)+b[0]+C.text.slice(m.ch),s(0)),e.remove(h.line+1,W);else{u(T,T.text.slice(0,h.ch)+b[0],s(0)),u(C,B+C.text.slice(m.ch),L);var ne=d(1,b.length-1);W>1&&e.remove(h.line+1,W-1),e.insert(h.line+1,ne)}Nt(e,"change",e,t)}function Ln(e,t,o){function i(s,u,d){if(s.linked)for(var h=0;h<s.linked.length;++h){var m=s.linked[h];if(m.doc!=u){var b=d&&m.sharedHist;o&&!b||(t(m.doc,b),i(m.doc,s,b))}}}i(e,null,!0)}function Hf(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,al(e),yl(e),Pf(e),e.options.direction=t.direction,e.options.lineWrapping||js(e),e.options.mode=t.modeOption,qt(e)}function Pf(e){(e.doc.direction=="rtl"?Ge:pe)(e.display.lineDiv,"CodeMirror-rtl")}function rb(e){dr(e,function(){Pf(e),qt(e)})}function _a(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Il(e,t){var o={from:_t(t.from),to:wn(t),text:Rt(e,t.from,t.to)};return Yf(e,o,t.from.line,t.to.line+1),Ln(e,function(i){return Yf(i,o,t.from.line,t.to.line+1)},!0),o}function Jf(e){for(;e.length;){var t=Ie(e);if(t.ranges)e.pop();else break}}function nb(e,t){if(t)return Jf(e.done),Ie(e.done);if(e.done.length&&!Ie(e.done).ranges)return Ie(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ie(e.done)}function Xf(e,t,o,i){var s=e.history;s.undone.length=0;var u=+new Date,d,h;if((s.lastOp==i||s.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&s.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(d=nb(s,s.lastOp==i)))h=Ie(d.changes),fe(t.from,t.to)==0&&fe(t.from,h.to)==0?h.to=wn(t):d.changes.push(Il(e,t));else{var m=Ie(s.done);for((!m||!m.ranges)&&Na(e.sel,s.done),d={changes:[Il(e,t)],generation:s.generation},s.done.push(d);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(o),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=u,s.lastOp=s.lastSelOp=i,s.lastOrigin=s.lastSelOrigin=t.origin,h||qe(e,"historyAdded")}function ib(e,t,o,i){var s=t.charAt(0);return s=="*"||s=="+"&&o.ranges.length==i.ranges.length&&o.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ob(e,t,o,i){var s=e.history,u=i&&i.origin;o==s.lastSelOp||u&&s.lastSelOrigin==u&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==u||ib(e,u,Ie(s.done),t))?s.done[s.done.length-1]=t:Na(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=u,s.lastSelOp=o,i&&i.clearRedo!==!1&&Jf(s.undone)}function Na(e,t){var o=Ie(t);o&&o.ranges&&o.equals(e)||t.push(e)}function Yf(e,t,o,i){var s=t["spans_"+e.id],u=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,i),function(d){d.markedSpans&&((s||(s=t["spans_"+e.id]={}))[u]=d.markedSpans),++u})}function ab(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function sb(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var i=[],s=0;s<t.text.length;++s)i.push(ab(o[s]));return i}function jf(e,t){var o=sb(e,t),i=Ps(e,t);if(!o)return i;if(!i)return o;for(var s=0;s<o.length;++s){var u=o[s],d=i[s];if(u&&d)e:for(var h=0;h<d.length;++h){for(var m=d[h],b=0;b<u.length;++b)if(u[b].marker==m.marker)continue e;u.push(m)}else d&&(o[s]=d)}return o}function Ti(e,t,o){for(var i=[],s=0;s<e.length;++s){var u=e[s];if(u.ranges){i.push(o?Er.prototype.deepCopy.call(u):u);continue}var d=u.changes,h=[];i.push({changes:h});for(var m=0;m<d.length;++m){var b=d[m],T=void 0;if(h.push({from:b.from,to:b.to,text:b.text}),t)for(var C in b)(T=C.match(/^spans_(\d+)$/))&&ue(t,Number(T[1]))>-1&&(Ie(h)[C]=b[C],delete b[C])}}return i}function Tl(e,t,o,i){if(i){var s=e.anchor;if(o){var u=fe(t,s)<0;u!=fe(o,s)<0?(s=t,t=o):u!=fe(t,o)<0&&(t=o)}return new He(s,t)}else return new He(o||t,t)}function Sa(e,t,o,i,s){s==null&&(s=e.cm&&(e.cm.display.shift||e.extend)),Dt(e,new Er([Tl(e.sel.primary(),t,o,s)],0),i)}function zf(e,t,o){for(var i=[],s=e.cm&&(e.cm.display.shift||e.extend),u=0;u<e.sel.ranges.length;u++)i[u]=Tl(e.sel.ranges[u],t[u],null,s);var d=Or(e.cm,i,e.sel.primIndex);Dt(e,d,o)}function El(e,t,o,i){var s=e.sel.ranges.slice(0);s[t]=o,Dt(e,Or(e.cm,s,e.sel.primIndex),i)}function qf(e,t,o,i){Dt(e,Sn(t,o),i)}function lb(e,t,o){var i={ranges:t.ranges,update:function(s){this.ranges=[];for(var u=0;u<s.length;u++)this.ranges[u]=new He(Se(e,s[u].anchor),Se(e,s[u].head))},origin:o&&o.origin};return qe(e,"beforeSelectionChange",e,i),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?Or(e.cm,i.ranges,i.ranges.length-1):t}function Kf(e,t,o){var i=e.history.done,s=Ie(i);s&&s.ranges?(i[i.length-1]=t,wa(e,t,o)):Dt(e,t,o)}function Dt(e,t,o){wa(e,t,o),ob(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function wa(e,t,o){(yt(e,"beforeSelectionChange")||e.cm&&yt(e.cm,"beforeSelectionChange"))&&(t=lb(e,t,o));var i=o&&o.bias||(fe(t.primary().head,e.sel.primary().head)<0?-1:1);$f(e,tc(e,t,i,!0)),!(o&&o.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&xi(e.cm)}function $f(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,lr(e.cm)),Nt(e,"cursorActivity",e))}function ec(e){$f(e,tc(e,e.sel,null,!1))}function tc(e,t,o,i){for(var s,u=0;u<t.ranges.length;u++){var d=t.ranges[u],h=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[u],m=La(e,d.anchor,h&&h.anchor,o,i),b=d.head==d.anchor?m:La(e,d.head,h&&h.head,o,i);(s||m!=d.anchor||b!=d.head)&&(s||(s=t.ranges.slice(0,u)),s[u]=new He(m,b))}return s?Or(e.cm,s,t.primIndex):t}function Ei(e,t,o,i,s){var u=de(e,t.line);if(u.markedSpans)for(var d=0;d<u.markedSpans.length;++d){var h=u.markedSpans[d],m=h.marker,b="selectLeft"in m?!m.selectLeft:m.inclusiveLeft,T="selectRight"in m?!m.selectRight:m.inclusiveRight;if((h.from==null||(b?h.from<=t.ch:h.from<t.ch))&&(h.to==null||(T?h.to>=t.ch:h.to>t.ch))){if(s&&(qe(m,"beforeCursorEnter"),m.explicitlyCleared))if(u.markedSpans){--d;continue}else break;if(!m.atomic)continue;if(o){var C=m.find(i<0?1:-1),B=void 0;if((i<0?T:b)&&(C=rc(e,C,-i,C&&C.line==t.line?u:null)),C&&C.line==t.line&&(B=fe(C,o))&&(i<0?B<0:B>0))return Ei(e,C,t,i,s)}var L=m.find(i<0?-1:1);return(i<0?b:T)&&(L=rc(e,L,i,L.line==t.line?u:null)),L?Ei(e,L,t,i,s):null}}return t}function La(e,t,o,i,s){var u=i||1,d=Ei(e,t,o,u,s)||!s&&Ei(e,t,o,u,!0)||Ei(e,t,o,-u,s)||!s&&Ei(e,t,o,-u,!0);return d||(e.cantEdit=!0,G(e.first,0))}function rc(e,t,o,i){return o<0&&t.ch==0?t.line>e.first?Se(e,G(t.line-1)):null:o>0&&t.ch==(i||de(e,t.line)).text.length?t.line<e.first+e.size-1?G(t.line+1,0):null:new G(t.line,t.ch+o)}function nc(e){e.setSelection(G(e.firstLine(),0),G(e.lastLine()),Oe)}function ic(e,t,o){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return o&&(i.update=function(s,u,d,h){s&&(i.from=Se(e,s)),u&&(i.to=Se(e,u)),d&&(i.text=d),h!==void 0&&(i.origin=h)}),qe(e,"beforeChange",e,i),e.cm&&qe(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Ci(e,t,o){if(e.cm){if(!e.cm.curOp)return St(e.cm,Ci)(e,t,o);if(e.cm.state.suppressEdits)return}if(!((yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"))&&(t=ic(e,t,!0),!t))){var i=Yu&&!o&&o0(e,t.from,t.to);if(i)for(var s=i.length-1;s>=0;--s)oc(e,{from:i[s].from,to:i[s].to,text:s?[""]:t.text,origin:t.origin});else oc(e,t)}}function oc(e,t){if(!(t.text.length==1&&t.text[0]==""&&fe(t.from,t.to)==0)){var o=vl(e,t);Xf(e,t,o,e.cm?e.cm.curOp.id:NaN),To(e,t,o,Ps(e,t));var i=[];Ln(e,function(s,u){!u&&ue(i,s.history)==-1&&(uc(s.history,t),i.push(s.history)),To(s,t,null,Ps(s,t))})}}function Fa(e,t,o){var i=e.cm&&e.cm.state.suppressEdits;if(!(i&&!o)){for(var s=e.history,u,d=e.sel,h=t=="undo"?s.done:s.undone,m=t=="undo"?s.undone:s.done,b=0;b<h.length&&(u=h[b],!(o?u.ranges&&!u.equals(e.sel):!u.ranges));b++);if(b!=h.length){for(s.lastOrigin=s.lastSelOrigin=null;;)if(u=h.pop(),u.ranges){if(Na(u,m),o&&!u.equals(e.sel)){Dt(e,u,{clearRedo:!1});return}d=u}else if(i){h.push(u);return}else break;var T=[];Na(d,m),m.push({changes:T,generation:s.generation}),s.generation=u.generation||++s.maxGeneration;for(var C=yt(e,"beforeChange")||e.cm&&yt(e.cm,"beforeChange"),B=function(P){var z=u.changes[P];if(z.origin=t,C&&!ic(e,z,!1))return h.length=0,{};T.push(Il(e,z));var ne=P?vl(e,z):Ie(h);To(e,z,ne,jf(e,z)),!P&&e.cm&&e.cm.scrollIntoView({from:z.from,to:wn(z)});var he=[];Ln(e,function(ie,me){!me&&ue(he,ie.history)==-1&&(uc(ie.history,z),he.push(ie.history)),To(ie,z,null,jf(ie,z))})},L=u.changes.length-1;L>=0;--L){var W=B(L);if(W)return W.v}}}}function ac(e,t){if(t!=0&&(e.first+=t,e.sel=new Er(Tt(e.sel.ranges,function(s){return new He(G(s.anchor.line+t,s.anchor.ch),G(s.head.line+t,s.head.ch))}),e.sel.primIndex),e.cm)){qt(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,i=o.viewFrom;i<o.viewTo;i++)_n(e.cm,i,"gutter")}}function To(e,t,o,i){if(e.cm&&!e.cm.curOp)return St(e.cm,To)(e,t,o,i);if(t.to.line<e.first){ac(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var s=t.text.length-1-(e.first-t.from.line);ac(e,s),t={from:G(e.first,0),to:G(t.to.line+s,t.to.ch),text:[Ie(t.text)],origin:t.origin}}var u=e.lastLine();t.to.line>u&&(t={from:t.from,to:G(u,de(e,u).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Rt(e,t.from,t.to),o||(o=vl(e,t)),e.cm?ub(e.cm,t,i):xl(e,t,i),wa(e,o,Oe),e.cantEdit&&La(e,G(e.firstLine(),0))&&(e.cantEdit=!1)}}function ub(e,t,o){var i=e.doc,s=e.display,u=t.from,d=t.to,h=!1,m=u.line;e.options.lineWrapping||(m=v(Ur(de(i,u.line))),i.iter(m,d.line+1,function(L){if(L==s.maxLine)return h=!0,!0})),i.sel.contains(t.from,t.to)>-1&&lr(e),xl(i,t,o,Af(e)),e.options.lineWrapping||(i.iter(m,u.line+t.text.length,function(L){var W=ga(L);W>s.maxLineLength&&(s.maxLine=L,s.maxLineLength=W,s.maxLineChanged=!0,h=!1)}),h&&(e.curOp.updateMaxLine=!0)),Km(i,u.line),yo(e,400);var b=t.text.length-(d.line-u.line)-1;t.full?qt(e):u.line==d.line&&t.text.length==1&&!Qf(e.doc,t)?_n(e,u.line,"text"):qt(e,u.line,d.line+1,b);var T=yt(e,"changes"),C=yt(e,"change");if(C||T){var B={from:u,to:d,text:t.text,removed:t.removed,origin:t.origin};C&&Nt(e,"change",e,B),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function Ai(e,t,o,i,s){var u;i||(i=o),fe(i,o)<0&&(u=[i,o],o=u[0],i=u[1]),typeof t=="string"&&(t=e.splitLines(t)),Ci(e,{from:o,to:i,text:t,origin:s})}function sc(e,t,o,i){o<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function lc(e,t,o,i){for(var s=0;s<e.length;++s){var u=e[s],d=!0;if(u.ranges){u.copied||(u=e[s]=u.deepCopy(),u.copied=!0);for(var h=0;h<u.ranges.length;h++)sc(u.ranges[h].anchor,t,o,i),sc(u.ranges[h].head,t,o,i);continue}for(var m=0;m<u.changes.length;++m){var b=u.changes[m];if(o<b.from.line)b.from=G(b.from.line+i,b.from.ch),b.to=G(b.to.line+i,b.to.ch);else if(t<=b.to.line){d=!1;break}}d||(e.splice(0,s+1),s=0)}}function uc(e,t){var o=t.from.line,i=t.to.line,s=t.text.length-(i-o)-1;lc(e.done,o,i,s),lc(e.undone,o,i,s)}function Eo(e,t,o,i){var s=t,u=t;return typeof t=="number"?u=de(e,Wu(e,t)):s=v(t),s==null?null:(i(u,s)&&e.cm&&_n(e.cm,s,o),u)}function Co(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,i=e+t;o<i;++o){var s=this.lines[o];this.height-=s.height,f0(s),Nt(s,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,o){for(var i=e+t;e<i;++e)if(o(this.lines[e]))return!0}};function Ao(e){this.children=e;for(var t=0,o=0,i=0;i<e.length;++i){var s=e[i];t+=s.chunkSize(),o+=s.height,s.parent=this}this.size=t,this.height=o,this.parent=null}Ao.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var i=this.children[o],s=i.chunkSize();if(e<s){var u=Math.min(t,s-e),d=i.height;if(i.removeInner(e,u),this.height-=d-i.height,s==u&&(this.children.splice(o--,1),i.parent=null),(t-=u)==0)break;e=0}else e-=s}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var h=[];this.collapse(h),this.children=[new Co(h)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var i=0;i<this.children.length;++i){var s=this.children[i],u=s.chunkSize();if(e<=u){if(s.insertInner(e,t,o),s.lines&&s.lines.length>50){for(var d=s.lines.length%25+25,h=d;h<s.lines.length;){var m=new Co(s.lines.slice(h,h+=25));s.height-=m.height,this.children.splice(++i,0,m),m.parent=this}s.lines=s.lines.slice(0,d),this.maybeSpill()}break}e-=u}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),o=new Ao(t);if(e.parent){e.size-=o.size,e.height-=o.height;var s=ue(e.parent.children,e);e.parent.children.splice(s+1,0,o)}else{var i=new Ao(e.children);i.parent=e,e.children=[i,o],e=i}o.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var i=0;i<this.children.length;++i){var s=this.children[i],u=s.chunkSize();if(e<u){var d=Math.min(t,u-e);if(s.iterN(e,d,o))return!0;if((t-=d)==0)break;e=0}else e-=u}}};var Ro=function(e,t,o){if(o)for(var i in o)o.hasOwnProperty(i)&&(this[i]=o[i]);this.doc=e,this.node=t};Ro.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,i=v(o);if(!(i==null||!t)){for(var s=0;s<t.length;++s)t[s]==this&&t.splice(s--,1);t.length||(o.widgets=null);var u=co(this);Zt(o,Math.max(0,o.height-u)),e&&(dr(e,function(){fc(e,o,-u),_n(e,i,"widget")}),Nt(e,"lineWidgetCleared",e,this,i))}},Ro.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,i=this.line;this.height=null;var s=co(this)-t;s&&(Rn(this.doc,i)||Zt(i,i.height+s),o&&dr(o,function(){o.curOp.forceUpdate=!0,fc(o,i,s),Nt(o,"lineWidgetChanged",o,e,v(i))}))},Ir(Ro);function fc(e,t,o){ln(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&dl(e,o)}function fb(e,t,o,i){var s=new Ro(e,o,i),u=e.cm;return u&&s.noHScroll&&(u.display.alignWidgets=!0),Eo(e,t,"widget",function(d){var h=d.widgets||(d.widgets=[]);if(s.insertAt==null?h.push(s):h.splice(Math.min(h.length,Math.max(0,s.insertAt)),0,s),s.line=d,u&&!Rn(e,d)){var m=ln(d)<e.scrollTop;Zt(d,d.height+co(s)),m&&dl(u,s.height),u.curOp.forceUpdate=!0}return!0}),u&&Nt(u,"lineWidgetAdded",u,s,typeof t=="number"?t:v(t)),s}var cc=0,Fn=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++cc};Fn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qn(e),yt(this,"clear")){var o=this.find();o&&Nt(this,"clear",o.from,o.to)}for(var i=null,s=null,u=0;u<this.lines.length;++u){var d=this.lines[u],h=lo(d.markedSpans,this);e&&!this.collapsed?_n(e,v(d),"text"):e&&(h.to!=null&&(s=v(d)),h.from!=null&&(i=v(d))),d.markedSpans=t0(d.markedSpans,h),h.from==null&&this.collapsed&&!Rn(this.doc,d)&&e&&Zt(d,bi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var m=0;m<this.lines.length;++m){var b=Ur(this.lines[m]),T=ga(b);T>e.display.maxLineLength&&(e.display.maxLine=b,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&qt(e,i,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ec(e.doc)),e&&Nt(e,"markerCleared",e,this,i,s),t&&Kn(e),this.parent&&this.parent.clear()}},Fn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var o,i,s=0;s<this.lines.length;++s){var u=this.lines[s],d=lo(u.markedSpans,this);if(d.from!=null&&(o=G(t?u:v(u),d.from),e==-1))return o;if(d.to!=null&&(i=G(t?u:v(u),d.to),e==1))return i}return o&&{from:o,to:i}},Fn.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,i=this.doc.cm;!t||!i||dr(i,function(){var s=t.line,u=v(t.line),d=$s(i,u);if(d&&(bf(d),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!Rn(o.doc,s)&&o.height!=null){var h=o.height;o.height=null;var m=co(o)-h;m&&Zt(s,s.height+m)}Nt(i,"markerChanged",i,e)})},Fn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ue(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Fn.prototype.detachLine=function(e){if(this.lines.splice(ue(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ir(Fn);function Ri(e,t,o,i,s){if(i&&i.shared)return cb(e,t,o,i,s);if(e.cm&&!e.cm.curOp)return St(e.cm,Ri)(e,t,o,i,s);var u=new Fn(e,s),d=fe(t,o);if(i&&le(i,u,!1),d>0||d==0&&u.clearWhenEmpty!==!1)return u;if(u.replacedWith&&(u.collapsed=!0,u.widgetNode=ee("span",[u.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||u.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(u.widgetNode.insertLeft=!0)),u.collapsed){if(ef(e,t.line,t,o,u)||t.line!=o.line&&ef(e,o.line,t,o,u))throw new Error("Inserting collapsed marker partially overlapping an existing one");e0()}u.addToHistory&&Xf(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var h=t.line,m=e.cm,b;if(e.iter(h,o.line+1,function(C){m&&u.collapsed&&!m.options.lineWrapping&&Ur(C)==m.display.maxLine&&(b=!0),u.collapsed&&h!=t.line&&Zt(C,0),r0(C,new ca(u,h==t.line?t.ch:null,h==o.line?o.ch:null),e.cm&&e.cm.curOp),++h}),u.collapsed&&e.iter(t.line,o.line+1,function(C){Rn(e,C)&&Zt(C,0)}),u.clearOnEnter&&Te(u,"beforeCursorEnter",function(){return u.clear()}),u.readOnly&&($m(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),u.collapsed&&(u.id=++cc,u.atomic=!0),m){if(b&&(m.curOp.updateMaxLine=!0),u.collapsed)qt(m,t.line,o.line+1);else if(u.className||u.startStyle||u.endStyle||u.css||u.attributes||u.title)for(var T=t.line;T<=o.line;T++)_n(m,T,"text");u.atomic&&ec(m.doc),Nt(m,"markerAdded",m,u)}return u}var _o=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};_o.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Nt(this,"clear")}},_o.prototype.find=function(e,t){return this.primary.find(e,t)},Ir(_o);function cb(e,t,o,i,s){i=le(i),i.shared=!1;var u=[Ri(e,t,o,i,s)],d=u[0],h=i.widgetNode;return Ln(e,function(m){h&&(i.widgetNode=h.cloneNode(!0)),u.push(Ri(m,Se(m,t),Se(m,o),i,s));for(var b=0;b<m.linked.length;++b)if(m.linked[b].isParent)return;d=Ie(u)}),new _o(u,d)}function dc(e){return e.findMarks(G(e.first,0),e.clipPos(G(e.lastLine())),function(t){return t.parent})}function db(e,t){for(var o=0;o<t.length;o++){var i=t[o],s=i.find(),u=e.clipPos(s.from),d=e.clipPos(s.to);if(fe(u,d)){var h=Ri(e,u,d,i.primary,i.primary.type);i.markers.push(h),h.parent=i}}}function hb(e){for(var t=function(i){var s=e[i],u=[s.primary.doc];Ln(s.primary.doc,function(m){return u.push(m)});for(var d=0;d<s.markers.length;d++){var h=s.markers[d];ue(u,h.doc)==-1&&(h.parent=null,s.markers.splice(d--,1))}},o=0;o<e.length;o++)t(o)}var pb=0,Kt=function(e,t,o,i,s){if(!(this instanceof Kt))return new Kt(e,t,o,i,s);o==null&&(o=0),Ao.call(this,[new Co([new pi("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var u=G(o,0);this.sel=Sn(u),this.history=new _a(null),this.id=++pb,this.modeOption=t,this.lineSep=i,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),xl(this,{from:u,to:u,text:e}),Dt(this,Sn(u),Oe)};Kt.prototype=lt(Ao.prototype,{constructor:Kt,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,i=0;i<t.length;++i)o+=t[i].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ar(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:wt(function(e){var t=G(this.first,0),o=this.first+this.size-1;Ci(this,{from:t,to:G(o,de(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&go(this.cm,0,0),Dt(this,Sn(t),Oe)}),replaceRange:function(e,t,o,i){t=Se(this,t),o=o?Se(this,o):t,Ai(this,e,t,o,i)},getRange:function(e,t,o){var i=Rt(this,Se(this,e),Se(this,t));return o===!1?i:o===""?i.join(""):i.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(V(this,e))return de(this,e)},getLineNumber:function(e){return v(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=de(this,e)),Ur(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Se(this,e)},getCursor:function(e){var t=this.sel.primary(),o;return e==null||e=="head"?o=t.head:e=="anchor"?o=t.anchor:e=="end"||e=="to"||e===!1?o=t.to():o=t.from(),o},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wt(function(e,t,o){qf(this,Se(this,typeof e=="number"?G(e,t||0):e),null,o)}),setSelection:wt(function(e,t,o){qf(this,Se(this,e),Se(this,t||e),o)}),extendSelection:wt(function(e,t,o){Sa(this,Se(this,e),t&&Se(this,t),o)}),extendSelections:wt(function(e,t){zf(this,Zu(this,e),t)}),extendSelectionsBy:wt(function(e,t){var o=Tt(this.sel.ranges,e);zf(this,Zu(this,o),t)}),setSelections:wt(function(e,t,o){if(e.length){for(var i=[],s=0;s<e.length;s++)i[s]=new He(Se(this,e[s].anchor),Se(this,e[s].head||e[s].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Dt(this,Or(this.cm,i,t),o)}}),addSelection:wt(function(e,t,o){var i=this.sel.ranges.slice(0);i.push(new He(Se(this,e),Se(this,t||e))),Dt(this,Or(this.cm,i,i.length-1),o)}),getSelection:function(e){for(var t=this.sel.ranges,o,i=0;i<t.length;i++){var s=Rt(this,t[i].from(),t[i].to());o=o?o.concat(s):s}return e===!1?o:o.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,i=0;i<o.length;i++){var s=Rt(this,o[i].from(),o[i].to());e!==!1&&(s=s.join(e||this.lineSeparator())),t[i]=s}return t},replaceSelection:function(e,t,o){for(var i=[],s=0;s<this.sel.ranges.length;s++)i[s]=e;this.replaceSelections(i,t,o||"+input")},replaceSelections:wt(function(e,t,o){for(var i=[],s=this.sel,u=0;u<s.ranges.length;u++){var d=s.ranges[u];i[u]={from:d.from(),to:d.to(),text:this.splitLines(e[u]),origin:o}}for(var h=t&&t!="end"&&tb(this,i,t),m=i.length-1;m>=0;m--)Ci(this,i[m]);h?Kf(this,h):this.cm&&xi(this.cm)}),undo:wt(function(){Fa(this,"undo")}),redo:wt(function(){Fa(this,"redo")}),undoSelection:wt(function(){Fa(this,"undo",!0)}),redoSelection:wt(function(){Fa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var s=0;s<e.undone.length;s++)e.undone[s].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new _a(this.history),Ln(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ti(this.history.done),undone:Ti(this.history.undone)}},setHistory:function(e){var t=this.history=new _a(this.history);t.done=Ti(e.done.slice(0),null,!0),t.undone=Ti(e.undone.slice(0),null,!0)},setGutterMarker:wt(function(e,t,o){return Eo(this,e,"gutter",function(i){var s=i.gutterMarkers||(i.gutterMarkers={});return s[t]=o,!o&&mt(s)&&(i.gutterMarkers=null),!0})}),clearGutter:wt(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&Eo(t,o,"gutter",function(){return o.gutterMarkers[e]=null,mt(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!V(this,e)||(t=e,e=de(this,e),!e))return null}else if(t=v(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:wt(function(e,t,o){return Eo(this,e,t=="gutter"?"gutter":"class",function(i){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!i[s])i[s]=o;else{if($(o).test(i[s]))return!1;i[s]+=" "+o}return!0})}),removeLineClass:wt(function(e,t,o){return Eo(this,e,t=="gutter"?"gutter":"class",function(i){var s=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",u=i[s];if(u)if(o==null)i[s]=null;else{var d=u.match($(o));if(!d)return!1;var h=d.index+d[0].length;i[s]=u.slice(0,d.index)+(!d.index||h==u.length?"":" ")+u.slice(h)||null}else return!1;return!0})}),addLineWidget:wt(function(e,t,o){return fb(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return Ri(this,Se(this,e),Se(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Se(this,e),Ri(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Se(this,e);var t=[],o=de(this,e.line).markedSpans;if(o)for(var i=0;i<o.length;++i){var s=o[i];(s.from==null||s.from<=e.ch)&&(s.to==null||s.to>=e.ch)&&t.push(s.marker.parent||s.marker)}return t},findMarks:function(e,t,o){e=Se(this,e),t=Se(this,t);var i=[],s=e.line;return this.iter(e.line,t.line+1,function(u){var d=u.markedSpans;if(d)for(var h=0;h<d.length;h++){var m=d[h];!(m.to!=null&&s==e.line&&e.ch>=m.to||m.from==null&&s!=e.line||m.from!=null&&s==t.line&&m.from>=t.ch)&&(!o||o(m.marker))&&i.push(m.marker.parent||m.marker)}++s}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var i=0;i<o.length;++i)o[i].from!=null&&e.push(o[i].marker)}),e},posFromIndex:function(e){var t,o=this.first,i=this.lineSeparator().length;return this.iter(function(s){var u=s.text.length+i;if(u>e)return t=e,!0;e-=u,++o}),Se(this,G(o,t))},indexFromPos:function(e){e=Se(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){t+=i.text.length+o}),t},copy:function(e){var t=new Kt(Ar(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var i=new Kt(Ar(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],db(i,dc(this)),i},unlinkDoc:function(e){if(e instanceof at&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var o=this.linked[t];if(o.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),hb(dc(this));break}}if(e.history==this.history){var i=[e.id];Ln(e,function(s){return i.push(s.id)},!0),e.history=new _a(null),e.history.done=Ti(this.history.done,i),e.history.undone=Ti(this.history.undone,i)}},iterLinkedDocs:function(e){Ln(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):jt(e)},lineSeparator:function(){return this.lineSep||`
26
+ `},setDirection:wt(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&rb(this.cm))})}),Kt.prototype.eachLine=Kt.prototype.iter;var hc=0;function gb(e){var t=this;if(pc(t),!(Ke(t,e)||un(t.display,e))){At(e),g&&(hc=+new Date);var o=Xn(t,e,!0),i=e.dataTransfer.files;if(!(!o||t.isReadOnly()))if(i&&i.length&&window.FileReader&&window.File)for(var s=i.length,u=Array(s),d=0,h=function(){++d==s&&St(t,function(){o=Se(t.doc,o);var L={from:o,to:o,text:t.doc.splitLines(u.filter(function(W){return W!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ci(t.doc,L),Kf(t.doc,Sn(Se(t.doc,o),Se(t.doc,wn(L))))})()},m=function(L,W){if(t.options.allowDropFileTypes&&ue(t.options.allowDropFileTypes,L.type)==-1){h();return}var P=new FileReader;P.onerror=function(){return h()},P.onload=function(){var z=P.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(z)){h();return}u[W]=z,h()},P.readAsText(L)},b=0;b<i.length;b++)m(i[b],b);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var C;if(t.state.draggingText&&!t.state.draggingText.copy&&(C=t.listSelections()),wa(t.doc,Sn(o,o)),C)for(var B=0;B<C.length;++B)Ai(t.doc,"",C[B].anchor,C[B].head,"drag");t.replaceSelection(T,"around","paste"),t.display.input.focus()}}catch{}}}}function mb(e,t){if(g&&(!e.state.draggingText||+new Date-hc<100)){Vr(t);return}if(!(Ke(e,t)||un(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!X)){var o=x("img",null,null,"position: fixed; left: 0; top: 0;");o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",O&&(o.width=o.height=1,e.display.wrapper.appendChild(o),o._top=o.offsetTop),t.dataTransfer.setDragImage(o,0,0),O&&o.parentNode.removeChild(o)}}function bb(e,t){var o=Xn(e,t);if(o){var i=document.createDocumentFragment();sl(e,o,i),e.display.dragCursor||(e.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),oe(e.display.dragCursor,i)}}function pc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function gc(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],i=0;i<t.length;i++){var s=t[i].CodeMirror;s&&o.push(s)}o.length&&o[0].operation(function(){for(var u=0;u<o.length;u++)e(o[u])})}}var mc=!1;function vb(){mc||(yb(),mc=!0)}function yb(){var e;Te(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,gc(xb)},100))}),Te(window,"blur",function(){return gc(yi)})}function xb(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},No=0;No<10;No++)Bn[No+48]=Bn[No+96]=String(No);for(var Ba=65;Ba<=90;Ba++)Bn[Ba]=String.fromCharCode(Ba);for(var So=1;So<=12;So++)Bn[So+111]=Bn[So+63235]="F"+So;var cn={};cn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},cn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},cn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},cn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},cn.default=q?cn.macDefault:cn.pcDefault;function Ib(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var o,i,s,u,d=0;d<t.length-1;d++){var h=t[d];if(/^(cmd|meta|m)$/i.test(h))u=!0;else if(/^a(lt)?$/i.test(h))o=!0;else if(/^(c|ctrl|control)$/i.test(h))i=!0;else if(/^s(hift)?$/i.test(h))s=!0;else throw new Error("Unrecognized modifier name: "+h)}return o&&(e="Alt-"+e),i&&(e="Ctrl-"+e),u&&(e="Cmd-"+e),s&&(e="Shift-"+e),e}function Tb(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(i=="..."){delete e[o];continue}for(var s=Tt(o.split(" "),Ib),u=0;u<s.length;u++){var d=void 0,h=void 0;u==s.length-1?(h=s.join(" "),d=i):(h=s.slice(0,u+1).join(" "),d="...");var m=t[h];if(!m)t[h]=d;else if(m!=d)throw new Error("Inconsistent bindings for "+h)}delete e[o]}for(var b in t)e[b]=t[b];return e}function _i(e,t,o,i){t=Ua(t);var s=t.call?t.call(e,i):t[e];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&o(s))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return _i(e,t.fallthrough,o,i);for(var u=0;u<t.fallthrough.length;u++){var d=_i(e,t.fallthrough[u],o,i);if(d)return d}}}function bc(e){var t=typeof e=="string"?e:Bn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function vc(e,t,o){var i=e;return t.altKey&&i!="Alt"&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&i!="Mod"&&(e="Cmd-"+e),!o&&t.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function yc(e,t){if(O&&e.keyCode==34&&e.char)return!1;var o=Bn[e.keyCode];return o==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(o=e.code),vc(o,e,t))}function Ua(e){return typeof e=="string"?cn[e]:e}function Ni(e,t){for(var o=e.doc.sel.ranges,i=[],s=0;s<o.length;s++){for(var u=t(o[s]);i.length&&fe(u.from,Ie(i).to)<=0;){var d=i.pop();if(fe(d.from,u.from)<0){u.from=d.from;break}}i.push(u)}dr(e,function(){for(var h=i.length-1;h>=0;h--)Ai(e.doc,"",i[h].from,i[h].to,"+delete");xi(e)})}function Cl(e,t,o){var i=kt(e.text,t+o,o);return i<0||i>e.text.length?null:i}function Al(e,t,o){var i=Cl(e,t.ch,o);return i==null?null:new G(t.line,i,o<0?"after":"before")}function Rl(e,t,o,i,s){if(e){t.doc.direction=="rtl"&&(s=-s);var u=Ne(o,t.doc.direction);if(u){var d=s<0?Ie(u):u[0],h=s<0==(d.level==1),m=h?"after":"before",b;if(d.level>0||t.doc.direction=="rtl"){var T=mi(t,o);b=s<0?o.text.length-1:0;var C=Jr(t,T,b).top;b=ft(function(B){return Jr(t,T,B).top==C},s<0==(d.level==1)?d.from:d.to-1,b),m=="before"&&(b=Cl(o,b,1))}else b=s<0?d.to:d.from;return new G(i,b,m)}}return new G(i,s<0?o.text.length:0,s<0?"before":"after")}function Eb(e,t,o,i){var s=Ne(t,e.doc.direction);if(!s)return Al(t,o,i);o.ch>=t.text.length?(o.ch=t.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");var u=yr(s,o.ch,o.sticky),d=s[u];if(e.doc.direction=="ltr"&&d.level%2==0&&(i>0?d.to>o.ch:d.from<o.ch))return Al(t,o,i);var h=function(ne,he){return Cl(t,ne instanceof G?ne.ch:ne,he)},m,b=function(ne){return e.options.lineWrapping?(m=m||mi(e,t),Cf(e,t,m,ne)):{begin:0,end:t.text.length}},T=b(o.sticky=="before"?h(o,-1):o.ch);if(e.doc.direction=="rtl"||d.level==1){var C=d.level==1==i<0,B=h(o,C?1:-1);if(B!=null&&(C?B<=d.to&&B<=T.end:B>=d.from&&B>=T.begin)){var L=C?"before":"after";return new G(o.line,B,L)}}var W=function(ne,he,ie){for(var me=function($e,Lt){return Lt?new G(o.line,h($e,1),"before"):new G(o.line,$e,"after")};ne>=0&&ne<s.length;ne+=he){var Ae=s[ne],Ee=he>0==(Ae.level!=1),ke=Ee?ie.begin:h(ie.end,-1);if(Ae.from<=ke&&ke<Ae.to||(ke=Ee?Ae.from:h(Ae.to,-1),ie.begin<=ke&&ke<ie.end))return me(ke,Ee)}},P=W(u+i,i,T);if(P)return P;var z=i>0?T.end:h(T.begin,-1);return z!=null&&!(i>0&&z==t.text.length)&&(P=W(i>0?0:s.length-1,i,b(z)),P)?P:null}var wo={selectAll:nc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Oe)},killLine:function(e){return Ni(e,function(t){if(t.empty()){var o=de(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:G(t.head.line+1,0)}:{from:t.head,to:G(t.head.line,o)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Ni(e,function(t){return{from:G(t.from().line,0),to:Se(e.doc,G(t.to().line+1,0))}})},delLineLeft:function(e){return Ni(e,function(t){return{from:G(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Ni(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return{from:i,to:t.from()}})},delWrappedLineRight:function(e){return Ni(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(G(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(G(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return xc(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ic(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Cb(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},Re)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},Re)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return i.ch<e.getLine(i.line).search(/\S/)?Ic(e,t.head):i},Re)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],o=e.listSelections(),i=e.options.tabSize,s=0;s<o.length;s++){var u=o[s].from(),d=ye(e.getLine(u.line),u.ch,i);t.push(Ve(i-d%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return dr(e,function(){for(var t=e.listSelections(),o=[],i=0;i<t.length;i++)if(t[i].empty()){var s=t[i].head,u=de(e.doc,s.line).text;if(u){if(s.ch==u.length&&(s=new G(s.line,s.ch-1)),s.ch>0)s=new G(s.line,s.ch+1),e.replaceRange(u.charAt(s.ch-1)+u.charAt(s.ch-2),G(s.line,s.ch-2),s,"+transpose");else if(s.line>e.doc.first){var d=de(e.doc,s.line-1).text;d&&(s=new G(s.line,1),e.replaceRange(u.charAt(0)+e.doc.lineSeparator()+d.charAt(d.length-1),G(s.line-1,d.length-1),s,"+transpose"))}}o.push(new He(s,s))}e.setSelections(o)})},newlineAndIndent:function(e){return dr(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);xi(e)})},openLine:function(e){return e.replaceSelection(`
27
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function xc(e,t){var o=de(e.doc,t),i=Ur(o);return i!=o&&(t=v(i)),Rl(!0,e,i,t,1)}function Cb(e,t){var o=de(e.doc,t),i=s0(o);return i!=o&&(t=v(i)),Rl(!0,e,o,t,-1)}function Ic(e,t){var o=xc(e,t.line),i=de(e.doc,o.line),s=Ne(i,e.doc.direction);if(!s||s[0].level==0){var u=Math.max(o.ch,i.text.search(/\S/)),d=t.line==o.line&&t.ch<=u&&t.ch;return G(o.line,d?0:u,o.sticky)}return o}function ka(e,t,o){if(typeof t=="string"&&(t=wo[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),s=t(e)!=Pe}finally{e.display.shift=i,e.state.suppressEdits=!1}return s}function Ab(e,t,o){for(var i=0;i<e.state.keyMaps.length;i++){var s=_i(t,e.state.keyMaps[i],o,e);if(s)return s}return e.options.extraKeys&&_i(t,e.options.extraKeys,o,e)||_i(t,e.options.keyMap,o,e)}var Rb=new Me;function Lo(e,t,o,i){var s=e.state.keySeq;if(s){if(bc(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Rb.set(50,function(){e.state.keySeq==s&&(e.state.keySeq=null,e.display.input.reset())}),Tc(e,s+" "+t,o,i))return!0}return Tc(e,t,o,i)}function Tc(e,t,o,i){var s=Ab(e,t,i);return s=="multi"&&(e.state.keySeq=t),s=="handled"&&Nt(e,"keyHandled",e,t,o),(s=="handled"||s=="multi")&&(At(o),ll(e)),!!s}function Ec(e,t){var o=yc(t,!0);return o?t.shiftKey&&!e.state.keySeq?Lo(e,"Shift-"+o,t,function(i){return ka(e,i,!0)})||Lo(e,o,t,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return ka(e,i)}):Lo(e,o,t,function(i){return ka(e,i)}):!1}function _b(e,t,o){return Lo(e,"'"+o+"'",t,function(i){return ka(e,i,!0)})}var _l=null;function Cc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ge(De(t)),!Ke(t,e))){g&&y<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var i=Ec(t,e);O&&(_l=i?o:null,!i&&o==88&&!Cn&&(q?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),a&&!q&&!i&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Nb(t)}}function Nb(e){var t=e.display.lineDiv;Ge(t,"CodeMirror-crosshair");function o(i){(i.keyCode==18||!i.altKey)&&(pe(t,"CodeMirror-crosshair"),Ct(document,"keyup",o),Ct(document,"mouseover",o))}Te(document,"keyup",o),Te(document,"mouseover",o)}function Ac(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ke(this,e)}function Rc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(un(t.display,e)||Ke(t,e)||e.ctrlKey&&!e.altKey||q&&e.metaKey)){var o=e.keyCode,i=e.charCode;if(O&&o==_l){_l=null,At(e);return}if(!(O&&(!e.which||e.which<10)&&Ec(t,e))){var s=String.fromCharCode(i??o);s!="\b"&&(_b(t,e,s)||t.display.input.onKeyPress(e))}}}var Sb=400,Nl=function(e,t,o){this.time=e,this.pos=t,this.button=o};Nl.prototype.compare=function(e,t,o){return this.time+Sb>e&&fe(t,this.pos)==0&&o==this.button};var Fo,Bo;function wb(e,t){var o=+new Date;return Bo&&Bo.compare(o,e,t)?(Fo=Bo=null,"triple"):Fo&&Fo.compare(o,e,t)?(Bo=new Nl(o,e,t),Fo=null,"double"):(Fo=new Nl(o,e,t),Bo=null,"single")}function _c(e){var t=this,o=t.display;if(!(Ke(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,un(o,e)){I||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!Sl(t,e)){var i=Xn(t,e),s=Yt(e),u=i?wb(i,s):"single";ve(t).focus(),s==1&&t.state.selectingText&&t.state.selectingText(e),!(i&&Lb(t,s,i,u,e))&&(s==1?i?Bb(t,i,u,e):En(e)==o.scroller&&At(e):s==2?(i&&Sa(t.doc,i),setTimeout(function(){return o.input.focus()},20)):s==3&&(H?t.display.input.onContextMenu(e):ul(t)))}}}function Lb(e,t,o,i,s){var u="Click";return i=="double"?u="Double"+u:i=="triple"&&(u="Triple"+u),u=(t==1?"Left":t==2?"Middle":"Right")+u,Lo(e,vc(u,s),s,function(d){if(typeof d=="string"&&(d=wo[d]),!d)return!1;var h=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),h=d(e,o)!=Pe}finally{e.state.suppressEdits=!1}return h})}function Fb(e,t,o){var i=e.getOption("configureMouse"),s=i?i(e,t,o):{};if(s.unit==null){var u=te?o.shiftKey&&o.metaKey:o.altKey;s.unit=u?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(s.extend==null||e.doc.extend)&&(s.extend=e.doc.extend||o.shiftKey),s.addNew==null&&(s.addNew=q?o.metaKey:o.ctrlKey),s.moveOnDrag==null&&(s.moveOnDrag=!(q?o.altKey:o.ctrlKey)),s}function Bb(e,t,o,i){g?setTimeout(se(Nf,e),0):e.curOp.focus=ge(De(e));var s=Fb(e,o,i),u=e.doc.sel,d;e.options.dragDrop&&ci&&!e.isReadOnly()&&o=="single"&&(d=u.contains(t))>-1&&(fe((d=u.ranges[d]).from(),t)<0||t.xRel>0)&&(fe(d.to(),t)>0||t.xRel<0)?Ub(e,i,t,s):kb(e,i,t,s)}function Ub(e,t,o,i){var s=e.display,u=!1,d=St(e,function(b){I&&(s.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ul(e)),Ct(s.wrapper.ownerDocument,"mouseup",d),Ct(s.wrapper.ownerDocument,"mousemove",h),Ct(s.scroller,"dragstart",m),Ct(s.scroller,"drop",d),u||(At(b),i.addNew||Sa(e.doc,o,null,null,i.extend),I&&!X||g&&y==9?setTimeout(function(){s.wrapper.ownerDocument.body.focus({preventScroll:!0}),s.input.focus()},20):s.input.focus())}),h=function(b){u=u||Math.abs(t.clientX-b.clientX)+Math.abs(t.clientY-b.clientY)>=10},m=function(){return u=!0};I&&(s.scroller.draggable=!0),e.state.draggingText=d,d.copy=!i.moveOnDrag,Te(s.wrapper.ownerDocument,"mouseup",d),Te(s.wrapper.ownerDocument,"mousemove",h),Te(s.scroller,"dragstart",m),Te(s.scroller,"drop",d),e.state.delayingBlurEvent=!0,setTimeout(function(){return s.input.focus()},20),s.scroller.dragDrop&&s.scroller.dragDrop()}function Nc(e,t,o){if(o=="char")return new He(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new He(G(t.line,0),Se(e.doc,G(t.line+1,0)));var i=o(e,t);return new He(i.from,i.to)}function kb(e,t,o,i){g&&ul(e);var s=e.display,u=e.doc;At(t);var d,h,m=u.sel,b=m.ranges;if(i.addNew&&!i.extend?(h=u.sel.contains(o),h>-1?d=b[h]:d=new He(o,o)):(d=u.sel.primary(),h=u.sel.primIndex),i.unit=="rectangle")i.addNew||(d=new He(o,o)),o=Xn(e,t,!0,!0),h=-1;else{var T=Nc(e,o,i.unit);i.extend?d=Tl(d,T.anchor,T.head,i.extend):d=T}i.addNew?h==-1?(h=b.length,Dt(u,Or(e,b.concat([d]),h),{scroll:!1,origin:"*mouse"})):b.length>1&&b[h].empty()&&i.unit=="char"&&!i.extend?(Dt(u,Or(e,b.slice(0,h).concat(b.slice(h+1)),0),{scroll:!1,origin:"*mouse"}),m=u.sel):El(u,h,d,Le):(h=0,Dt(u,new Er([d],0),Le),m=u.sel);var C=o;function B(ie){if(fe(C,ie)!=0)if(C=ie,i.unit=="rectangle"){for(var me=[],Ae=e.options.tabSize,Ee=ye(de(u,o.line).text,o.ch,Ae),ke=ye(de(u,ie.line).text,ie.ch,Ae),$e=Math.min(Ee,ke),Lt=Math.max(Ee,ke),ct=Math.min(o.line,ie.line),hr=Math.min(e.lastLine(),Math.max(o.line,ie.line));ct<=hr;ct++){var $t=de(u,ct).text,bt=Ze($t,$e,Ae);$e==Lt?me.push(new He(G(ct,bt),G(ct,bt))):$t.length>bt&&me.push(new He(G(ct,bt),G(ct,Ze($t,Lt,Ae))))}me.length||me.push(new He(o,o)),Dt(u,Or(e,m.ranges.slice(0,h).concat(me),h),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ie)}else{var er=d,Mt=Nc(e,ie,i.unit),xt=er.anchor,vt;fe(Mt.anchor,xt)>0?(vt=Mt.head,xt=hi(er.from(),Mt.anchor)):(vt=Mt.anchor,xt=zt(er.to(),Mt.head));var ht=m.ranges.slice(0);ht[h]=Ob(e,new He(Se(u,xt),vt)),Dt(u,Or(e,ht,h),Le)}}var L=s.wrapper.getBoundingClientRect(),W=0;function P(ie){var me=++W,Ae=Xn(e,ie,!0,i.unit=="rectangle");if(Ae)if(fe(Ae,C)!=0){e.curOp.focus=ge(De(e)),B(Ae);var Ee=Ea(s,u);(Ae.line>=Ee.to||Ae.line<Ee.from)&&setTimeout(St(e,function(){W==me&&P(ie)}),150)}else{var ke=ie.clientY<L.top?-20:ie.clientY>L.bottom?20:0;ke&&setTimeout(St(e,function(){W==me&&(s.scroller.scrollTop+=ke,P(ie))}),50)}}function z(ie){e.state.selectingText=!1,W=1/0,ie&&(At(ie),s.input.focus()),Ct(s.wrapper.ownerDocument,"mousemove",ne),Ct(s.wrapper.ownerDocument,"mouseup",he),u.history.lastSelOrigin=null}var ne=St(e,function(ie){ie.buttons===0||!Yt(ie)?z(ie):P(ie)}),he=St(e,z);e.state.selectingText=he,Te(s.wrapper.ownerDocument,"mousemove",ne),Te(s.wrapper.ownerDocument,"mouseup",he)}function Ob(e,t){var o=t.anchor,i=t.head,s=de(e.doc,o.line);if(fe(o,i)==0&&o.sticky==i.sticky)return t;var u=Ne(s);if(!u)return t;var d=yr(u,o.ch,o.sticky),h=u[d];if(h.from!=o.ch&&h.to!=o.ch)return t;var m=d+(h.from==o.ch==(h.level!=1)?0:1);if(m==0||m==u.length)return t;var b;if(i.line!=o.line)b=(i.line-o.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=yr(u,i.ch,i.sticky),C=T-d||(i.ch-o.ch)*(h.level==1?-1:1);T==m-1||T==m?b=C<0:b=C>0}var B=u[m+(b?-1:0)],L=b==(B.level==1),W=L?B.from:B.to,P=L?"after":"before";return o.ch==W&&o.sticky==P?t:new He(new G(o.line,W,P),i)}function Sc(e,t,o,i){var s,u;if(t.touches)s=t.touches[0].clientX,u=t.touches[0].clientY;else try{s=t.clientX,u=t.clientY}catch{return!1}if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&At(t);var d=e.display,h=d.lineDiv.getBoundingClientRect();if(u>h.bottom||!yt(e,o))return pt(t);u-=h.top-d.viewOffset;for(var m=0;m<e.display.gutterSpecs.length;++m){var b=d.gutters.childNodes[m];if(b&&b.getBoundingClientRect().right>=s){var T=E(e.doc,u),C=e.display.gutterSpecs[m];return qe(e,o,e,T,C.className,t),pt(t)}}}function Sl(e,t){return Sc(e,t,"gutterClick",!0)}function wc(e,t){un(e.display,t)||Mb(e,t)||Ke(e,t,"contextmenu")||H||e.display.input.onContextMenu(t)}function Mb(e,t){return yt(e,"gutterContextMenu")?Sc(e,t,"gutterContextMenu",!1):!1}function Lc(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ho(e)}var Si={toString:function(){return"CodeMirror.Init"}},Fc={},Oa={};function Gb(e){var t=e.optionHandlers;function o(i,s,u,d){e.defaults[i]=s,u&&(t[i]=d?function(h,m,b){b!=Si&&u(h,m,b)}:u)}e.defineOption=o,e.Init=Si,o("value","",function(i,s){return i.setValue(s)},!0),o("mode",null,function(i,s){i.doc.modeOption=s,yl(i)},!0),o("indentUnit",2,yl,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(i){Io(i),ho(i),qt(i)},!0),o("lineSeparator",null,function(i,s){if(i.doc.lineSep=s,!!s){var u=[],d=i.doc.first;i.doc.iter(function(m){for(var b=0;;){var T=m.text.indexOf(s,b);if(T==-1)break;b=T+s.length,u.push(G(d,T))}d++});for(var h=u.length-1;h>=0;h--)Ai(i.doc,s,u[h],G(u[h].line,u[h].ch+s.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(i,s,u){i.state.specialChars=new RegExp(s.source+(s.test(" ")?"":"| "),"g"),u!=Si&&i.refresh()}),o("specialCharPlaceholder",h0,function(i){return i.refresh()},!0),o("electricChars",!0),o("inputStyle",J?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(i,s){return i.getInputField().spellcheck=s},!0),o("autocorrect",!1,function(i,s){return i.getInputField().autocorrect=s},!0),o("autocapitalize",!1,function(i,s){return i.getInputField().autocapitalize=s},!0),o("rtlMoveVisually",!ae),o("wholeLineUpdateBefore",!0),o("theme","default",function(i){Lc(i),xo(i)},!0),o("keyMap","default",function(i,s,u){var d=Ua(s),h=u!=Si&&Ua(u);h&&h.detach&&h.detach(i,d),d.attach&&d.attach(i,h||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Zb,!0),o("gutters",[],function(i,s){i.display.gutterSpecs=bl(s,i.options.lineNumbers),xo(i)},!0),o("fixedGutter",!0,function(i,s){i.display.gutters.style.left=s?ol(i.display)+"px":"0",i.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(i){return Ii(i)},!0),o("scrollbarStyle","native",function(i){Uf(i),Ii(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),o("lineNumbers",!1,function(i,s){i.display.gutterSpecs=bl(i.options.gutters,s),xo(i)},!0),o("firstLineNumber",1,xo,!0),o("lineNumberFormatter",function(i){return i},xo,!0),o("showCursorWhenSelecting",!1,po,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(i,s){s=="nocursor"&&(yi(i),i.display.input.blur()),i.display.input.readOnlyChanged(s)}),o("screenReaderLabel",null,function(i,s){s=s===""?null:s,i.display.input.screenReaderLabelChanged(s)}),o("disableInput",!1,function(i,s){s||i.display.input.reset()},!0),o("dragDrop",!0,Wb),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,po,!0),o("singleCursorHeightPerLine",!0,po,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,Io,!0),o("addModeClass",!1,Io,!0),o("pollInterval",100),o("undoDepth",200,function(i,s){return i.doc.history.undoDepth=s}),o("historyEventDelay",1250),o("viewportMargin",10,function(i){return i.refresh()},!0),o("maxHighlightLength",1e4,Io,!0),o("moveInputWithCursor",!0,function(i,s){s||i.display.input.resetPosition()}),o("tabindex",null,function(i,s){return i.display.input.getField().tabIndex=s||""}),o("autofocus",null),o("direction","ltr",function(i,s){return i.doc.setDirection(s)},!0),o("phrases",null)}function Wb(e,t,o){var i=o&&o!=Si;if(!t!=!i){var s=e.display.dragFunctions,u=t?Te:Ct;u(e.display.scroller,"dragstart",s.start),u(e.display.scroller,"dragenter",s.enter),u(e.display.scroller,"dragover",s.over),u(e.display.scroller,"dragleave",s.leave),u(e.display.scroller,"drop",s.drop)}}function Zb(e){e.options.lineWrapping?(Ge(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(pe(e.display.wrapper,"CodeMirror-wrap"),js(e)),al(e),qt(e),ho(e),setTimeout(function(){return Ii(e)},100)}function at(e,t){var o=this;if(!(this instanceof at))return new at(e,t);this.options=t=t?le(t):{},le(Fc,t,!1);var i=t.value;typeof i=="string"?i=new Kt(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var s=new at.inputStyles[t.inputStyle](this),u=this.display=new $0(e,i,s,t);u.wrapper.CodeMirror=this,Lc(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uf(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Me,keySeq:null,specialChars:null},t.autofocus&&!J&&u.input.focus(),g&&y<11&&setTimeout(function(){return o.display.input.reset(!0)},20),Db(this),vb(),qn(this),this.curOp.forceUpdate=!0,Hf(this,i),t.autofocus&&!J||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&fl(o)},20):yi(this);for(var d in Oa)Oa.hasOwnProperty(d)&&Oa[d](this,t[d],Si);Mf(this),t.finishInit&&t.finishInit(this);for(var h=0;h<wl.length;++h)wl[h](this);Kn(this),I&&t.lineWrapping&&getComputedStyle(u.lineDiv).textRendering=="optimizelegibility"&&(u.lineDiv.style.textRendering="auto")}at.defaults=Fc,at.optionHandlers=Oa;function Db(e){var t=e.display;Te(t.scroller,"mousedown",St(e,_c)),g&&y<11?Te(t.scroller,"dblclick",St(e,function(m){if(!Ke(e,m)){var b=Xn(e,m);if(!(!b||Sl(e,m)||un(e.display,m))){At(m);var T=e.findWordAt(b);Sa(e.doc,T.anchor,T.head)}}})):Te(t.scroller,"dblclick",function(m){return Ke(e,m)||At(m)}),Te(t.scroller,"contextmenu",function(m){return wc(e,m)}),Te(t.input.getField(),"contextmenu",function(m){t.scroller.contains(m.target)||wc(e,m)});var o,i={end:0};function s(){t.activeTouch&&(o=setTimeout(function(){return t.activeTouch=null},1e3),i=t.activeTouch,i.end=+new Date)}function u(m){if(m.touches.length!=1)return!1;var b=m.touches[0];return b.radiusX<=1&&b.radiusY<=1}function d(m,b){if(b.left==null)return!0;var T=b.left-m.left,C=b.top-m.top;return T*T+C*C>20*20}Te(t.scroller,"touchstart",function(m){if(!Ke(e,m)&&!u(m)&&!Sl(e,m)){t.input.ensurePolled(),clearTimeout(o);var b=+new Date;t.activeTouch={start:b,moved:!1,prev:b-i.end<=300?i:null},m.touches.length==1&&(t.activeTouch.left=m.touches[0].pageX,t.activeTouch.top=m.touches[0].pageY)}}),Te(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Te(t.scroller,"touchend",function(m){var b=t.activeTouch;if(b&&!un(t,m)&&b.left!=null&&!b.moved&&new Date-b.start<300){var T=e.coordsChar(t.activeTouch,"page"),C;!b.prev||d(b,b.prev)?C=new He(T,T):!b.prev.prev||d(b,b.prev.prev)?C=e.findWordAt(T):C=new He(G(T.line,0),Se(e.doc,G(T.line+1,0))),e.setSelection(C.anchor,C.head),e.focus(),At(m)}s()}),Te(t.scroller,"touchcancel",s),Te(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mo(e,t.scroller.scrollTop),jn(e,t.scroller.scrollLeft,!0),qe(e,"scroll",e))}),Te(t.scroller,"mousewheel",function(m){return Zf(e,m)}),Te(t.scroller,"DOMMouseScroll",function(m){return Zf(e,m)}),Te(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(m){Ke(e,m)||Vr(m)},over:function(m){Ke(e,m)||(bb(e,m),Vr(m))},start:function(m){return mb(e,m)},drop:St(e,gb),leave:function(m){Ke(e,m)||pc(e)}};var h=t.input.getField();Te(h,"keyup",function(m){return Ac.call(e,m)}),Te(h,"keydown",St(e,Cc)),Te(h,"keypress",St(e,Rc)),Te(h,"focus",function(m){return fl(e,m)}),Te(h,"blur",function(m){return yi(e,m)})}var wl=[];at.defineInitHook=function(e){return wl.push(e)};function Uo(e,t,o,i){var s=e.doc,u;o==null&&(o="add"),o=="smart"&&(s.mode.indent?u=so(e,t).state:o="prev");var d=e.options.tabSize,h=de(s,t),m=ye(h.text,null,d);h.stateAfter&&(h.stateAfter=null);var b=h.text.match(/^\s*/)[0],T;if(!i&&!/\S/.test(h.text))T=0,o="not";else if(o=="smart"&&(T=s.mode.indent(u,h.text.slice(b.length),h.text),T==Pe||T>150)){if(!i)return;o="prev"}o=="prev"?t>s.first?T=ye(de(s,t-1).text,null,d):T=0:o=="add"?T=m+e.options.indentUnit:o=="subtract"?T=m-e.options.indentUnit:typeof o=="number"&&(T=m+o),T=Math.max(0,T);var C="",B=0;if(e.options.indentWithTabs)for(var L=Math.floor(T/d);L;--L)B+=d,C+=" ";if(B<T&&(C+=Ve(T-B)),C!=b)return Ai(s,C,G(t,0),G(t,b.length),"+input"),h.stateAfter=null,!0;for(var W=0;W<s.sel.ranges.length;W++){var P=s.sel.ranges[W];if(P.head.line==t&&P.head.ch<b.length){var z=G(t,b.length);El(s,W,new He(z,z));break}}}var Mr=null;function Ma(e){Mr=e}function Ll(e,t,o,i,s){var u=e.doc;e.display.shift=!1,i||(i=u.sel);var d=+new Date-200,h=s=="paste"||e.state.pasteIncoming>d,m=jt(t),b=null;if(h&&i.ranges.length>1)if(Mr&&Mr.text.join(`
28
+ `)==t){if(i.ranges.length%Mr.text.length==0){b=[];for(var T=0;T<Mr.text.length;T++)b.push(u.splitLines(Mr.text[T]))}}else m.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(b=Tt(m,function(ne){return[ne]}));for(var C=e.curOp.updateInput,B=i.ranges.length-1;B>=0;B--){var L=i.ranges[B],W=L.from(),P=L.to();L.empty()&&(o&&o>0?W=G(W.line,W.ch-o):e.state.overwrite&&!h?P=G(P.line,Math.min(de(u,P.line).text.length,P.ch+Ie(m).length)):h&&Mr&&Mr.lineWise&&Mr.text.join(`
29
+ `)==m.join(`
30
+ `)&&(W=P=G(W.line,0)));var z={from:W,to:P,text:b?b[B%b.length]:m,origin:s||(h?"paste":e.state.cutIncoming>d?"cut":"+input")};Ci(e.doc,z),Nt(e,"inputRead",e,z)}t&&!h&&Uc(e,t),xi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=C),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Bc(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&dr(t,function(){return Ll(t,o,0,null,"paste")}),!0}function Uc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var o=e.doc.sel,i=o.ranges.length-1;i>=0;i--){var s=o.ranges[i];if(!(s.head.ch>100||i&&o.ranges[i-1].head.line==s.head.line)){var u=e.getModeAt(s.head),d=!1;if(u.electricChars){for(var h=0;h<u.electricChars.length;h++)if(t.indexOf(u.electricChars.charAt(h))>-1){d=Uo(e,s.head.line,"smart");break}}else u.electricInput&&u.electricInput.test(de(e.doc,s.head.line).text.slice(0,s.head.ch))&&(d=Uo(e,s.head.line,"smart"));d&&Nt(e,"electricInput",e,s.head.line)}}}function kc(e){for(var t=[],o=[],i=0;i<e.doc.sel.ranges.length;i++){var s=e.doc.sel.ranges[i].head.line,u={anchor:G(s,0),head:G(s+1,0)};o.push(u),t.push(e.getRange(u.anchor,u.head))}return{text:t,ranges:o}}function Fl(e,t,o,i){e.setAttribute("autocorrect",o?"on":"off"),e.setAttribute("autocapitalize",i?"on":"off"),e.setAttribute("spellcheck",!!t)}function Oc(){var e=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=x("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),_&&(e.style.border="1px solid black"),t}function Vb(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){ve(this).focus(),this.display.input.focus()},setOption:function(i,s){var u=this.options,d=u[i];u[i]==s&&i!="mode"||(u[i]=s,t.hasOwnProperty(i)&&St(this,t[i])(this,s,d),qe(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,s){this.state.keyMaps[s?"push":"unshift"](Ua(i))},removeKeyMap:function(i){for(var s=this.state.keyMaps,u=0;u<s.length;++u)if(s[u]==i||s[u].name==i)return s.splice(u,1),!0},addOverlay:Jt(function(i,s){var u=i.token?i:e.getMode(this.options,i);if(u.startState)throw new Error("Overlays may not be stateful.");Et(this.state.overlays,{mode:u,modeSpec:i,opaque:s&&s.opaque,priority:s&&s.priority||0},function(d){return d.priority}),this.state.modeGen++,qt(this)}),removeOverlay:Jt(function(i){for(var s=this.state.overlays,u=0;u<s.length;++u){var d=s[u].modeSpec;if(d==i||typeof i=="string"&&d.name==i){s.splice(u,1),this.state.modeGen++,qt(this);return}}}),indentLine:Jt(function(i,s,u){typeof s!="string"&&typeof s!="number"&&(s==null?s=this.options.smartIndent?"smart":"prev":s=s?"add":"subtract"),V(this.doc,i)&&Uo(this,i,s,u)}),indentSelection:Jt(function(i){for(var s=this.doc.sel.ranges,u=-1,d=0;d<s.length;d++){var h=s[d];if(h.empty())h.head.line>u&&(Uo(this,h.head.line,i,!0),u=h.head.line,d==this.doc.sel.primIndex&&xi(this));else{var m=h.from(),b=h.to(),T=Math.max(u,m.line);u=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var C=T;C<u;++C)Uo(this,C,i);var B=this.doc.sel.ranges;m.ch==0&&s.length==B.length&&B[d].from().ch>0&&El(this.doc,d,new He(m,B[d].to()),Oe)}}}),getTokenAt:function(i,s){return Pu(this,i,s)},getLineTokens:function(i,s){return Pu(this,G(i),s,!0)},getTokenTypeAt:function(i){i=Se(this.doc,i);var s=Vu(this,de(this.doc,i.line)),u=0,d=(s.length-1)/2,h=i.ch,m;if(h==0)m=s[2];else for(;;){var b=u+d>>1;if((b?s[b*2-1]:0)>=h)d=b;else if(s[b*2+1]<h)u=b+1;else{m=s[b*2+2];break}}var T=m?m.indexOf("overlay "):-1;return T<0?m:T==0?null:m.slice(0,T-1)},getModeAt:function(i){var s=this.doc.mode;return s.innerMode?e.innerMode(s,this.getTokenAt(i).state).mode:s},getHelper:function(i,s){return this.getHelpers(i,s)[0]},getHelpers:function(i,s){var u=[];if(!o.hasOwnProperty(s))return u;var d=o[s],h=this.getModeAt(i);if(typeof h[s]=="string")d[h[s]]&&u.push(d[h[s]]);else if(h[s])for(var m=0;m<h[s].length;m++){var b=d[h[s][m]];b&&u.push(b)}else h.helperType&&d[h.helperType]?u.push(d[h.helperType]):d[h.name]&&u.push(d[h.name]);for(var T=0;T<d._global.length;T++){var C=d._global[T];C.pred(h,this)&&ue(u,C.val)==-1&&u.push(C.val)}return u},getStateAfter:function(i,s){var u=this.doc;return i=Wu(u,i??u.first+u.size-1),so(this,i+1,s).state},cursorCoords:function(i,s){var u,d=this.doc.sel.primary();return i==null?u=d.head:typeof i=="object"?u=Se(this.doc,i):u=i?d.from():d.to(),kr(this,u,s||"page")},charCoords:function(i,s){return ya(this,Se(this.doc,i),s||"page")},coordsChar:function(i,s){return i=If(this,i,s||"page"),rl(this,i.left,i.top)},lineAtHeight:function(i,s){return i=If(this,{top:i,left:0},s||"page").top,E(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,s,u){var d=!1,h;if(typeof i=="number"){var m=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>m&&(i=m,d=!0),h=de(this.doc,i)}else h=i;return va(this,h,{top:0,left:0},s||"page",u||d).top+(d?this.doc.height-ln(h):0)},defaultTextHeight:function(){return bi(this.display)},defaultCharWidth:function(){return vi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,s,u,d,h){var m=this.display;i=kr(this,Se(this.doc,i));var b=i.bottom,T=i.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),m.sizer.appendChild(s),d=="over")b=i.top;else if(d=="above"||d=="near"){var C=Math.max(m.wrapper.clientHeight,this.doc.height),B=Math.max(m.sizer.clientWidth,m.lineSpace.clientWidth);(d=="above"||i.bottom+s.offsetHeight>C)&&i.top>s.offsetHeight?b=i.top-s.offsetHeight:i.bottom+s.offsetHeight<=C&&(b=i.bottom),T+s.offsetWidth>B&&(T=B-s.offsetWidth)}s.style.top=b+"px",s.style.left=s.style.right="",h=="right"?(T=m.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(h=="left"?T=0:h=="middle"&&(T=(m.sizer.clientWidth-s.offsetWidth)/2),s.style.left=T+"px"),u&&W0(this,{left:T,top:b,right:T+s.offsetWidth,bottom:b+s.offsetHeight})},triggerOnKeyDown:Jt(Cc),triggerOnKeyPress:Jt(Rc),triggerOnKeyUp:Ac,triggerOnMouseDown:Jt(_c),execCommand:function(i){if(wo.hasOwnProperty(i))return wo[i].call(null,this)},triggerElectric:Jt(function(i){Uc(this,i)}),findPosH:function(i,s,u,d){var h=1;s<0&&(h=-1,s=-s);for(var m=Se(this.doc,i),b=0;b<s&&(m=Bl(this.doc,m,h,u,d),!m.hitSide);++b);return m},moveH:Jt(function(i,s){var u=this;this.extendSelectionsBy(function(d){return u.display.shift||u.doc.extend||d.empty()?Bl(u.doc,d.head,i,s,u.options.rtlMoveVisually):i<0?d.from():d.to()},Re)}),deleteH:Jt(function(i,s){var u=this.doc.sel,d=this.doc;u.somethingSelected()?d.replaceSelection("",null,"+delete"):Ni(this,function(h){var m=Bl(d,h.head,i,s,!1);return i<0?{from:m,to:h.head}:{from:h.head,to:m}})}),findPosV:function(i,s,u,d){var h=1,m=d;s<0&&(h=-1,s=-s);for(var b=Se(this.doc,i),T=0;T<s;++T){var C=kr(this,b,"div");if(m==null?m=C.left:C.left=m,b=Mc(this,C,h,u),b.hitSide)break}return b},moveV:Jt(function(i,s){var u=this,d=this.doc,h=[],m=!this.display.shift&&!d.extend&&d.sel.somethingSelected();if(d.extendSelectionsBy(function(T){if(m)return i<0?T.from():T.to();var C=kr(u,T.head,"div");T.goalColumn!=null&&(C.left=T.goalColumn),h.push(C.left);var B=Mc(u,C,i,s);return s=="page"&&T==d.sel.primary()&&dl(u,ya(u,B,"div").top-C.top),B},Re),h.length)for(var b=0;b<d.sel.ranges.length;b++)d.sel.ranges[b].goalColumn=h[b]}),findWordAt:function(i){var s=this.doc,u=de(s,i.line).text,d=i.ch,h=i.ch;if(u){var m=this.getHelper(i,"wordChars");(i.sticky=="before"||h==u.length)&&d?--d:++h;for(var b=u.charAt(d),T=Je(b,m)?function(C){return Je(C,m)}:/\s/.test(b)?function(C){return/\s/.test(C)}:function(C){return!/\s/.test(C)&&!Je(C)};d>0&&T(u.charAt(d-1));)--d;for(;h<u.length&&T(u.charAt(h));)++h}return new He(G(i.line,d),G(i.line,h))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ge(this.display.cursorDiv,"CodeMirror-overwrite"):pe(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ge(De(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Jt(function(i,s){go(this,i,s)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-Pr(this)-this.display.barHeight,width:i.scrollWidth-Pr(this)-this.display.barWidth,clientHeight:Ks(this),clientWidth:Pn(this)}},scrollIntoView:Jt(function(i,s){i==null?(i={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof i=="number"?i={from:G(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=s||0,i.from.line!=null?Z0(this,i):wf(this,i.from,i.to,i.margin)}),setSize:Jt(function(i,s){var u=this,d=function(m){return typeof m=="number"||/^\d+$/.test(String(m))?m+"px":m};i!=null&&(this.display.wrapper.style.width=d(i)),s!=null&&(this.display.wrapper.style.height=d(s)),this.options.lineWrapping&&vf(this);var h=this.display.viewFrom;this.doc.iter(h,this.display.viewTo,function(m){if(m.widgets){for(var b=0;b<m.widgets.length;b++)if(m.widgets[b].noHScroll){_n(u,h,"widget");break}}++h}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(i){return dr(this,i)},startOperation:function(){return qn(this)},endOperation:function(){return Kn(this)},refresh:Jt(function(){var i=this.display.cachedTextHeight;qt(this),this.curOp.forceUpdate=!0,ho(this),go(this,this.doc.scrollLeft,this.doc.scrollTop),gl(this.display),(i==null||Math.abs(i-bi(this.display))>.5||this.options.lineWrapping)&&al(this),qe(this,"refresh",this)}),swapDoc:Jt(function(i){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),Hf(this,i),ho(this),this.display.input.reset(),go(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,Nt(this,"swapDoc",this,s),s}),phrase:function(i){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,i)?s[i]:i},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ir(e),e.registerHelper=function(i,s,u){o.hasOwnProperty(i)||(o[i]=e[i]={_global:[]}),o[i][s]=u},e.registerGlobalHelper=function(i,s,u,d){e.registerHelper(i,s,d),o[i]._global.push({pred:u,val:d})}}function Bl(e,t,o,i,s){var u=t,d=o,h=de(e,t.line),m=s&&e.direction=="rtl"?-o:o;function b(){var he=t.line+m;return he<e.first||he>=e.first+e.size?!1:(t=new G(he,t.ch,t.sticky),h=de(e,he))}function T(he){var ie;if(i=="codepoint"){var me=h.text.charCodeAt(t.ch+(o>0?0:-1));if(isNaN(me))ie=null;else{var Ae=o>0?me>=55296&&me<56320:me>=56320&&me<57343;ie=new G(t.line,Math.max(0,Math.min(h.text.length,t.ch+o*(Ae?2:1))),-o)}}else s?ie=Eb(e.cm,h,t,o):ie=Al(h,t,o);if(ie==null)if(!he&&b())t=Rl(s,e.cm,h,t.line,m);else return!1;else t=ie;return!0}if(i=="char"||i=="codepoint")T();else if(i=="column")T(!0);else if(i=="word"||i=="group")for(var C=null,B=i=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),W=!0;!(o<0&&!T(!W));W=!1){var P=h.text.charAt(t.ch)||`
31
+ `,z=Je(P,L)?"w":B&&P==`
32
+ `?"n":!B||/\s/.test(P)?null:"p";if(B&&!W&&!z&&(z="s"),C&&C!=z){o<0&&(o=1,T(),t.sticky="after");break}if(z&&(C=z),o>0&&!T(!W))break}var ne=La(e,t,u,d,!0);return Qe(u,ne)&&(ne.hitSide=!0),ne}function Mc(e,t,o,i){var s=e.doc,u=t.left,d;if(i=="page"){var h=Math.min(e.display.wrapper.clientHeight,ve(e).innerHeight||s(e).documentElement.clientHeight),m=Math.max(h-.5*bi(e.display),3);d=(o>0?t.bottom:t.top)+o*m}else i=="line"&&(d=o>0?t.bottom+3:t.top-3);for(var b;b=rl(e,u,d),!!b.outside;){if(o<0?d<=0:d>=s.height){b.hitSide=!0;break}d+=o*5}return b}var Ye=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ye.prototype.init=function(e){var t=this,o=this,i=o.cm,s=o.div=e.lineDiv;s.contentEditable=!0,Fl(s,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize);function u(h){for(var m=h.target;m;m=m.parentNode){if(m==s)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(m.className))break}return!1}Te(s,"paste",function(h){!u(h)||Ke(i,h)||Bc(h,i)||y<=11&&setTimeout(St(i,function(){return t.updateFromDOM()}),20)}),Te(s,"compositionstart",function(h){t.composing={data:h.data,done:!1}}),Te(s,"compositionupdate",function(h){t.composing||(t.composing={data:h.data,done:!1})}),Te(s,"compositionend",function(h){t.composing&&(h.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Te(s,"touchstart",function(){return o.forceCompositionEnd()}),Te(s,"input",function(){t.composing||t.readFromDOMSoon()});function d(h){if(!(!u(h)||Ke(i,h))){if(i.somethingSelected())Ma({lineWise:!1,text:i.getSelections()}),h.type=="cut"&&i.replaceSelection("",null,"cut");else if(i.options.lineWiseCopyCut){var m=kc(i);Ma({lineWise:!0,text:m.text}),h.type=="cut"&&i.operation(function(){i.setSelections(m.ranges,0,Oe),i.replaceSelection("",null,"cut")})}else return;if(h.clipboardData){h.clipboardData.clearData();var b=Mr.text.join(`
33
+ `);if(h.clipboardData.setData("Text",b),h.clipboardData.getData("Text")==b){h.preventDefault();return}}var T=Oc(),C=T.firstChild;Fl(C),i.display.lineSpace.insertBefore(T,i.display.lineSpace.firstChild),C.value=Mr.text.join(`
34
+ `);var B=ge(Ce(s));we(C),setTimeout(function(){i.display.lineSpace.removeChild(T),B.focus(),B==s&&o.showPrimarySelection()},50)}}Te(s,"copy",d),Te(s,"cut",d)},Ye.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ye.prototype.prepareSelection=function(){var e=_f(this.cm,!1);return e.focus=ge(Ce(this.div))==this.div,e},Ye.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ye.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ye.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),i=o.from(),s=o.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||s.line<t.display.viewFrom){e.removeAllRanges();return}var u=Ga(t,e.anchorNode,e.anchorOffset),d=Ga(t,e.focusNode,e.focusOffset);if(!(u&&!u.bad&&d&&!d.bad&&fe(hi(u,d),i)==0&&fe(zt(u,d),s)==0)){var h=t.display.view,m=i.line>=t.display.viewFrom&&Gc(t,i)||{node:h[0].measure.map[2],offset:0},b=s.line<t.display.viewTo&&Gc(t,s);if(!b){var T=h[h.length-1].measure,C=T.maps?T.maps[T.maps.length-1]:T.map;b={node:C[C.length-1],offset:C[C.length-2]-C[C.length-3]}}if(!m||!b){e.removeAllRanges();return}var B=e.rangeCount&&e.getRangeAt(0),L;try{L=Z(m.node,m.offset,b.offset,b.node)}catch{}L&&(!a&&t.state.focused?(e.collapse(m.node,m.offset),L.collapsed||(e.removeAllRanges(),e.addRange(L))):(e.removeAllRanges(),e.addRange(L)),B&&e.anchorNode==null?e.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},Ye.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ye.prototype.showMultipleSelections=function(e){oe(this.cm.display.cursorDiv,e.cursors),oe(this.cm.display.selectionDiv,e.selection)},Ye.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ye.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ce(this.div,t)},Ye.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ge(Ce(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ye.prototype.blur=function(){this.div.blur()},Ye.prototype.getField=function(){return this.div},Ye.prototype.supportsTouch=function(){return!0},Ye.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):dr(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function o(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,o))}this.polling.set(this.cm.options.pollInterval,o)},Ye.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ye.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(M&&A&&this.cm.display.gutterSpecs.length&&Qb(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var o=Ga(t,e.anchorNode,e.anchorOffset),i=Ga(t,e.focusNode,e.focusOffset);o&&i&&dr(t,function(){Dt(t.doc,Sn(o,i),Oe),(o.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},Ye.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,o=e.doc.sel.primary(),i=o.from(),s=o.to();if(i.ch==0&&i.line>e.firstLine()&&(i=G(i.line-1,de(e.doc,i.line-1).length)),s.ch==de(e.doc,s.line).text.length&&s.line<e.lastLine()&&(s=G(s.line+1,0)),i.line<t.viewFrom||s.line>t.viewTo-1)return!1;var u,d,h;i.line==t.viewFrom||(u=Yn(e,i.line))==0?(d=v(t.view[0].line),h=t.view[0].node):(d=v(t.view[u].line),h=t.view[u-1].node.nextSibling);var m=Yn(e,s.line),b,T;if(m==t.view.length-1?(b=t.viewTo-1,T=t.lineDiv.lastChild):(b=v(t.view[m+1].line)-1,T=t.view[m+1].node.previousSibling),!h)return!1;for(var C=e.doc.splitLines(Hb(e,h,T,d,b)),B=Rt(e.doc,G(d,0),G(b,de(e.doc,b).text.length));C.length>1&&B.length>1;)if(Ie(C)==Ie(B))C.pop(),B.pop(),b--;else if(C[0]==B[0])C.shift(),B.shift(),d++;else break;for(var L=0,W=0,P=C[0],z=B[0],ne=Math.min(P.length,z.length);L<ne&&P.charCodeAt(L)==z.charCodeAt(L);)++L;for(var he=Ie(C),ie=Ie(B),me=Math.min(he.length-(C.length==1?L:0),ie.length-(B.length==1?L:0));W<me&&he.charCodeAt(he.length-W-1)==ie.charCodeAt(ie.length-W-1);)++W;if(C.length==1&&B.length==1&&d==i.line)for(;L&&L>i.ch&&he.charCodeAt(he.length-W-1)==ie.charCodeAt(ie.length-W-1);)L--,W++;C[C.length-1]=he.slice(0,he.length-W).replace(/^\u200b+/,""),C[0]=C[0].slice(L).replace(/\u200b+$/,"");var Ae=G(d,L),Ee=G(b,B.length?Ie(B).length-W:0);if(C.length>1||C[0]||fe(Ae,Ee))return Ai(e.doc,C,Ae,Ee,"+input"),!0},Ye.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ye.prototype.reset=function(){this.forceCompositionEnd()},Ye.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ye.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ye.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&dr(this.cm,function(){return qt(e.cm)})},Ye.prototype.setUneditable=function(e){e.contentEditable="false"},Ye.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||St(this.cm,Ll)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ye.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ye.prototype.onContextMenu=function(){},Ye.prototype.resetPosition=function(){},Ye.prototype.needsContentAttribute=!0;function Gc(e,t){var o=$s(e,t.line);if(!o||o.hidden)return null;var i=de(e.doc,t.line),s=hf(o,i,t.line),u=Ne(i,e.doc.direction),d="left";if(u){var h=yr(u,t.ch);d=h%2?"right":"left"}var m=mf(s.map,t.ch,d);return m.offset=m.collapse=="right"?m.end:m.start,m}function Qb(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function wi(e,t){return t&&(e.bad=!0),e}function Hb(e,t,o,i,s){var u="",d=!1,h=e.doc.lineSeparator(),m=!1;function b(L){return function(W){return W.id==L}}function T(){d&&(u+=h,m&&(u+=h),d=m=!1)}function C(L){L&&(T(),u+=L)}function B(L){if(L.nodeType==1){var W=L.getAttribute("cm-text");if(W){C(W);return}var P=L.getAttribute("cm-marker"),z;if(P){var ne=e.findMarks(G(i,0),G(s+1,0),b(+P));ne.length&&(z=ne[0].find(0))&&C(Rt(e.doc,z.from,z.to).join(h));return}if(L.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;he&&T();for(var ie=0;ie<L.childNodes.length;ie++)B(L.childNodes[ie]);/^(pre|p)$/i.test(L.nodeName)&&(m=!0),he&&(d=!0)}else L.nodeType==3&&C(L.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(t),t!=o;)t=t.nextSibling,m=!1;return u}function Ga(e,t,o){var i;if(t==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[o],!i)return wi(e.clipPos(G(e.display.viewTo-1)),!0);t=null,o=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var s=0;s<e.display.view.length;s++){var u=e.display.view[s];if(u.node==i)return Pb(u,t,o)}}function Pb(e,t,o){var i=e.text.firstChild,s=!1;if(!t||!ce(i,t))return wi(G(v(e.line),0),!0);if(t==i&&(s=!0,t=i.childNodes[o],o=0,!t)){var u=e.rest?Ie(e.rest):e.line;return wi(G(v(u),u.text.length),s)}var d=t.nodeType==3?t:null,h=t;for(!d&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(d=t.firstChild,o&&(o=d.nodeValue.length));h.parentNode!=i;)h=h.parentNode;var m=e.measure,b=m.maps;function T(z,ne,he){for(var ie=-1;ie<(b?b.length:0);ie++)for(var me=ie<0?m.map:b[ie],Ae=0;Ae<me.length;Ae+=3){var Ee=me[Ae+2];if(Ee==z||Ee==ne){var ke=v(ie<0?e.line:e.rest[ie]),$e=me[Ae]+he;return(he<0||Ee!=z)&&($e=me[Ae+(he?1:0)]),G(ke,$e)}}}var C=T(d,h,o);if(C)return wi(C,s);for(var B=h.nextSibling,L=d?d.nodeValue.length-o:0;B;B=B.nextSibling){if(C=T(B,B.firstChild,0),C)return wi(G(C.line,C.ch-L),s);L+=B.textContent.length}for(var W=h.previousSibling,P=o;W;W=W.previousSibling){if(C=T(W,W.firstChild,-1),C)return wi(G(C.line,C.ch+P),s);P+=W.textContent.length}}var gt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Me,this.hasSelection=!1,this.composing=null,this.resetting=!1};gt.prototype.init=function(e){var t=this,o=this,i=this.cm;this.createField(e);var s=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),_&&(s.style.width="0px"),Te(s,"input",function(){g&&y>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),Te(s,"paste",function(d){Ke(i,d)||Bc(d,i)||(i.state.pasteIncoming=+new Date,o.fastPoll())});function u(d){if(!Ke(i,d)){if(i.somethingSelected())Ma({lineWise:!1,text:i.getSelections()});else if(i.options.lineWiseCopyCut){var h=kc(i);Ma({lineWise:!0,text:h.text}),d.type=="cut"?i.setSelections(h.ranges,null,Oe):(o.prevInput="",s.value=h.text.join(`
35
+ `),we(s))}else return;d.type=="cut"&&(i.state.cutIncoming=+new Date)}}Te(s,"cut",u),Te(s,"copy",u),Te(e.scroller,"paste",function(d){if(!(un(e,d)||Ke(i,d))){if(!s.dispatchEvent){i.state.pasteIncoming=+new Date,o.focus();return}var h=new Event("paste");h.clipboardData=d.clipboardData,s.dispatchEvent(h)}}),Te(e.lineSpace,"selectstart",function(d){un(e,d)||At(d)}),Te(s,"compositionstart",function(){var d=i.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:d,range:i.markText(d,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Te(s,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},gt.prototype.createField=function(e){this.wrapper=Oc(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Fl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},gt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},gt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,i=_f(e);if(e.options.moveInputWithCursor){var s=kr(e,o.sel.primary().head,"div"),u=t.wrapper.getBoundingClientRect(),d=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,s.top+d.top-u.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,s.left+d.left-u.left))}return i},gt.prototype.showSelection=function(e){var t=this.cm,o=t.display;oe(o.cursorDiv,e.cursors),oe(o.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},gt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&we(this.textarea),g&&y>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",g&&y>=9&&(this.hasSelection=null));this.resetting=!1}},gt.prototype.getField=function(){return this.textarea},gt.prototype.supportsTouch=function(){return!1},gt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!J||ge(Ce(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},gt.prototype.blur=function(){this.textarea.blur()},gt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gt.prototype.receivedFocus=function(){this.slowPoll()},gt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},gt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function o(){var i=t.poll();!i&&!e?(e=!0,t.polling.set(60,o)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,o)},gt.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Br(o)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var s=o.value;if(s==i&&!t.somethingSelected())return!1;if(g&&y>=9&&this.hasSelection===s||q&&/[\uf700-\uf7ff]/.test(s))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var u=s.charCodeAt(0);if(u==8203&&!i&&(i="\u200B"),u==8666)return this.reset(),this.cm.execCommand("undo")}for(var d=0,h=Math.min(i.length,s.length);d<h&&i.charCodeAt(d)==s.charCodeAt(d);)++d;return dr(t,function(){Ll(t,s.slice(d),i.length-d,null,e.composing?"*compose":null),s.length>1e3||s.indexOf(`
36
+ `)>-1?o.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gt.prototype.onKeyPress=function(){g&&y>=9&&(this.hasSelection=null),this.fastPoll()},gt.prototype.onContextMenu=function(e){var t=this,o=t.cm,i=o.display,s=t.textarea;t.contextMenuPending&&t.contextMenuPending();var u=Xn(o,e),d=i.scroller.scrollTop;if(!u||O)return;var h=o.options.resetSelectionOnContextMenu;h&&o.doc.sel.contains(u)==-1&&St(o,Dt)(o.doc,Sn(u),Oe);var m=s.style.cssText,b=t.wrapper.style.cssText,T=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px;
37
+ top: `+(e.clientY-T.top-5)+"px; left: "+(e.clientX-T.left-5)+`px;
38
+ z-index: 1000; background: `+(g?"rgba(255, 255, 255, .05)":"transparent")+`;
39
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var C;I&&(C=s.ownerDocument.defaultView.scrollY),i.input.focus(),I&&s.ownerDocument.defaultView.scrollTo(null,C),i.input.reset(),o.somethingSelected()||(s.value=t.prevInput=" "),t.contextMenuPending=L,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll);function B(){if(s.selectionStart!=null){var P=o.somethingSelected(),z="\u200B"+(P?s.value:"");s.value="\u21DA",s.value=z,t.prevInput=P?"":"\u200B",s.selectionStart=1,s.selectionEnd=z.length,i.selForContextMenu=o.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=b,s.style.cssText=m,g&&y<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=d),s.selectionStart!=null)){(!g||g&&y<9)&&B();var P=0,z=function(){i.selForContextMenu==o.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&t.prevInput=="\u200B"?St(o,nc)(o):P++<10?i.detectingSelectAll=setTimeout(z,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(z,200)}}if(g&&y>=9&&B(),H){Vr(e);var W=function(){Ct(window,"mouseup",W),setTimeout(L,20)};Te(window,"mouseup",W)}else setTimeout(L,50)},gt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},gt.prototype.setUneditable=function(){},gt.prototype.needsContentAttribute=!1;function Jb(e,t){if(t=t?le(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=ge(Ce(e));t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function i(){e.value=h.getValue()}var s;if(e.form&&(Te(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var u=e.form;s=u.submit;try{var d=u.submit=function(){i(),u.submit=s,u.submit(),u.submit=d}}catch{}}t.finishInit=function(m){m.save=i,m.getTextArea=function(){return e},m.toTextArea=function(){m.toTextArea=isNaN,i(),e.parentNode.removeChild(m.getWrapperElement()),e.style.display="",e.form&&(Ct(e.form,"submit",i),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=s))}},e.style.display="none";var h=at(function(m){return e.parentNode.insertBefore(m,e.nextSibling)},t);return h}function Xb(e){e.off=Ct,e.on=Te,e.wheelEventPixels=eb,e.Doc=Kt,e.splitLines=jt,e.countColumn=ye,e.findColumn=Ze,e.isWordChar=je,e.Pass=Pe,e.signal=qe,e.Line=pi,e.changeEnd=wn,e.scrollbarModel=Bf,e.Pos=G,e.cmpPos=fe,e.modes=an,e.mimeModes=fr,e.resolveMode=An,e.getMode=xe,e.modeExtensions=N,e.extendMode=K,e.copyState=be,e.startState=dt,e.innerMode=Xe,e.commands=wo,e.keyMap=cn,e.keyName=yc,e.isModifierKey=bc,e.lookupKey=_i,e.normalizeKeyMap=Tb,e.StringStream=Ue,e.SharedTextMarker=_o,e.TextMarker=Fn,e.LineWidget=Ro,e.e_preventDefault=At,e.e_stopPropagation=rt,e.e_stop=Vr,e.addClass=Ge,e.contains=ce,e.rmClass=pe,e.keyNames=Bn}Gb(at),Vb(at);var Yb="iter insert remove copy getEditor constructor".split(" ");for(var Wa in Kt.prototype)Kt.prototype.hasOwnProperty(Wa)&&ue(Yb,Wa)<0&&(at.prototype[Wa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Kt.prototype[Wa]));return Ir(Kt),at.inputStyles={textarea:gt,contenteditable:Ye},at.defineMode=function(e){!at.defaults.mode&&e!="null"&&(at.defaults.mode=e),cr.apply(this,arguments)},at.defineMIME=Qr,at.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),at.defineMIME("text/plain","null"),at.defineExtension=function(e,t){at.prototype[e]=t},at.defineDocExtension=function(e,t){Kt.prototype[e]=t},at.fromTextArea=Jb,Xb(at),at.version="5.65.20",at})});var Gu=et((xm,Im)=>{(function(r){typeof xm=="object"&&typeof Im=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";function n(p,g,y,I){if(y&&y.call){var U=y;y=null}else var U=c(p,y,"rangeFinder");typeof g=="number"&&(g=r.Pos(g,0));var A=c(p,y,"minFoldSize");function F(D){var _=U(p,g);if(!_||_.to.line-_.from.line<A)return null;if(I==="fold")return _;for(var M=p.findMarksAt(_.from),J=0;J<M.length;++J)if(M[J].__isFold){if(!D)return null;_.cleared=!0,M[J].clear()}return _}var O=F(!0);if(c(p,y,"scanUp"))for(;!O&&g.line>p.firstLine();)g=r.Pos(g.line-1,0),O=F(!1);if(!(!O||O.cleared||I==="unfold")){var X=a(p,y,O);r.on(X,"mousedown",function(D){S.clear(),r.e_preventDefault(D)});var S=p.markText(O.from,O.to,{replacedWith:X,clearOnEnter:c(p,y,"clearOnEnter"),__isFold:!0});S.on("clear",function(D,_){r.signal(p,"unfold",p,D,_)}),r.signal(p,"fold",p,O.from,O.to)}}function a(p,g,y){var I=c(p,g,"widget");if(typeof I=="function"&&(I=I(y.from,y.to)),typeof I=="string"){var U=document.createTextNode(I);I=document.createElement("span"),I.appendChild(U),I.className="CodeMirror-foldmarker"}else I&&(I=I.cloneNode(!0));return I}r.newFoldFunction=function(p,g){return function(y,I){n(y,I,{rangeFinder:p,widget:g})}},r.defineExtension("foldCode",function(p,g,y){n(this,p,g,y)}),r.defineExtension("isFolded",function(p){for(var g=this.findMarksAt(p),y=0;y<g.length;++y)if(g[y].__isFold)return!0}),r.commands.toggleFold=function(p){p.foldCode(p.getCursor())},r.commands.fold=function(p){p.foldCode(p.getCursor(),null,"fold")},r.commands.unfold=function(p){p.foldCode(p.getCursor(),{scanUp:!1},"unfold")},r.commands.foldAll=function(p){p.operation(function(){for(var g=p.firstLine(),y=p.lastLine();g<=y;g++)p.foldCode(r.Pos(g,0),{scanUp:!1},"fold")})},r.commands.unfoldAll=function(p){p.operation(function(){for(var g=p.firstLine(),y=p.lastLine();g<=y;g++)p.foldCode(r.Pos(g,0),{scanUp:!1},"unfold")})},r.registerHelper("fold","combine",function(){var p=Array.prototype.slice.call(arguments,0);return function(g,y){for(var I=0;I<p.length;++I){var U=p[I](g,y);if(U)return U}}}),r.registerHelper("fold","auto",function(p,g){for(var y=p.getHelpers(g,"fold"),I=0;I<y.length;I++){var U=y[I](p,g);if(U)return U}});var l={rangeFinder:r.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};r.defineOption("foldOptions",null);function c(p,g,y){if(g&&g[y]!==void 0)return g[y];var I=p.options.foldOptions;return I&&I[y]!==void 0?I[y]:l[y]}r.defineExtension("foldOption",function(p,g){return c(this,p,g)})})});var Cm=et((Tm,Em)=>{(function(r){typeof Tm=="object"&&typeof Em=="object"?r(In(),Gu()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],r):r(CodeMirror)})(function(r){"use strict";r.defineOption("foldGutter",!1,function(S,D,_){_&&_!=r.Init&&(S.clearGutter(S.state.foldGutter.options.gutter),S.state.foldGutter=null,S.off("gutterClick",U),S.off("changes",F),S.off("viewportChange",O),S.off("fold",X),S.off("unfold",X),S.off("swapDoc",F),S.off("optionChange",A)),D&&(S.state.foldGutter=new a(l(D)),I(S),S.on("gutterClick",U),S.on("changes",F),S.on("viewportChange",O),S.on("fold",X),S.on("unfold",X),S.on("swapDoc",F),S.on("optionChange",A))});var n=r.Pos;function a(S){this.options=S,this.from=this.to=0}function l(S){return S===!0&&(S={}),S.gutter==null&&(S.gutter="CodeMirror-foldgutter"),S.indicatorOpen==null&&(S.indicatorOpen="CodeMirror-foldgutter-open"),S.indicatorFolded==null&&(S.indicatorFolded="CodeMirror-foldgutter-folded"),S}function c(S,D){for(var _=S.findMarks(n(D,0),n(D+1,0)),M=0;M<_.length;++M)if(_[M].__isFold){var J=_[M].find(-1);if(J&&J.line===D)return _[M]}}function p(S){if(typeof S=="string"){var D=document.createElement("div");return D.className=S+" CodeMirror-guttermarker-subtle",D}else return S.cloneNode(!0)}function g(S,D,_){var M=S.state.foldGutter.options,J=D-1,q=S.foldOption(M,"minFoldSize"),te=S.foldOption(M,"rangeFinder"),ae=typeof M.indicatorFolded=="string"&&y(M.indicatorFolded),R=typeof M.indicatorOpen=="string"&&y(M.indicatorOpen);S.eachLine(D,_,function(w){++J;var H=null,$=w.gutterMarkers;if($&&($=$[M.gutter]),c(S,J)){if(ae&&$&&ae.test($.className))return;H=p(M.indicatorFolded)}else{var pe=n(J,0),k=te&&te(S,pe);if(k&&k.to.line-k.from.line>=q){if(R&&$&&R.test($.className))return;H=p(M.indicatorOpen)}}!H&&!$||S.setGutterMarker(w,M.gutter,H)})}function y(S){return new RegExp("(^|\\s)"+S+"(?:$|\\s)\\s*")}function I(S){var D=S.getViewport(),_=S.state.foldGutter;_&&(S.operation(function(){g(S,D.from,D.to)}),_.from=D.from,_.to=D.to)}function U(S,D,_){var M=S.state.foldGutter;if(M){var J=M.options;if(_==J.gutter){var q=c(S,D);q?q.clear():S.foldCode(n(D,0),J)}}}function A(S,D){D=="mode"&&F(S)}function F(S){var D=S.state.foldGutter;if(D){var _=D.options;D.from=D.to=0,clearTimeout(D.changeUpdate),D.changeUpdate=setTimeout(function(){I(S)},_.foldOnChangeTimeSpan||600)}}function O(S){var D=S.state.foldGutter;if(D){var _=D.options;clearTimeout(D.changeUpdate),D.changeUpdate=setTimeout(function(){var M=S.getViewport();D.from==D.to||M.from-D.to>20||D.from-M.to>20?I(S):S.operation(function(){M.from<D.from&&(g(S,M.from,D.from),D.from=M.from),M.to>D.to&&(g(S,D.to,M.to),D.to=M.to)})},_.updateViewportTimeSpan||400)}}function X(S,D){var _=S.state.foldGutter;if(_){var M=D.line;M>=_.from&&M<_.to&&g(S,M,M+1)}}})});var _m=et((Am,Rm)=>{(function(r){typeof Am=="object"&&typeof Rm=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";var n=r.Pos;function a(_,M){return _.line-M.line||_.ch-M.ch}var l="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",c=l+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+l+"]["+c+"]*)","g");function g(_,M,J,q){this.line=M,this.ch=J,this.cm=_,this.text=_.getLine(M),this.min=q?Math.max(q.from,_.firstLine()):_.firstLine(),this.max=q?Math.min(q.to-1,_.lastLine()):_.lastLine()}function y(_,M){var J=_.cm.getTokenTypeAt(n(_.line,M));return J&&/\btag\b/.test(J)}function I(_){if(!(_.line>=_.max))return _.ch=0,_.text=_.cm.getLine(++_.line),!0}function U(_){if(!(_.line<=_.min))return _.text=_.cm.getLine(--_.line),_.ch=_.text.length,!0}function A(_){for(;;){var M=_.text.indexOf(">",_.ch);if(M==-1){if(I(_))continue;return}if(!y(_,M+1)){_.ch=M+1;continue}var J=_.text.lastIndexOf("/",M),q=J>-1&&!/\S/.test(_.text.slice(J+1,M));return _.ch=M+1,q?"selfClose":"regular"}}function F(_){for(;;){var M=_.ch?_.text.lastIndexOf("<",_.ch-1):-1;if(M==-1){if(U(_))continue;return}if(!y(_,M+1)){_.ch=M;continue}p.lastIndex=M,_.ch=M;var J=p.exec(_.text);if(J&&J.index==M)return J}}function O(_){for(;;){p.lastIndex=_.ch;var M=p.exec(_.text);if(!M){if(I(_))continue;return}if(!y(_,M.index+1)){_.ch=M.index+1;continue}return _.ch=M.index+M[0].length,M}}function X(_){for(;;){var M=_.ch?_.text.lastIndexOf(">",_.ch-1):-1;if(M==-1){if(U(_))continue;return}if(!y(_,M+1)){_.ch=M;continue}var J=_.text.lastIndexOf("/",M),q=J>-1&&!/\S/.test(_.text.slice(J+1,M));return _.ch=M+1,q?"selfClose":"regular"}}function S(_,M){for(var J=[];;){var q=O(_),te,ae=_.line,R=_.ch-(q?q[0].length:0);if(!q||!(te=A(_)))return;if(te!="selfClose")if(q[1]){for(var w=J.length-1;w>=0;--w)if(J[w]==q[2]){J.length=w;break}if(w<0&&(!M||M==q[2]))return{tag:q[2],from:n(ae,R),to:n(_.line,_.ch)}}else J.push(q[2])}}function D(_,M){for(var J=[];;){var q=X(_);if(!q)return;if(q=="selfClose"){F(_);continue}var te=_.line,ae=_.ch,R=F(_);if(!R)return;if(R[1])J.push(R[2]);else{for(var w=J.length-1;w>=0;--w)if(J[w]==R[2]){J.length=w;break}if(w<0&&(!M||M==R[2]))return{tag:R[2],from:n(_.line,_.ch),to:n(te,ae)}}}}r.registerHelper("fold","xml",function(_,M){for(var J=new g(_,M.line,0);;){var q=O(J);if(!q||J.line!=M.line)return;var te=A(J);if(!te)return;if(!q[1]&&te!="selfClose"){var ae=n(J.line,J.ch),R=S(J,q[2]);return R&&a(R.from,ae)>0?{from:ae,to:R.from}:null}}}),r.findMatchingTag=function(_,M,J){var q=new g(_,M.line,M.ch,J);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var te=A(q),ae=te&&n(q.line,q.ch),R=te&&F(q);if(!(!te||!R||a(q,M)>0)){var w={from:n(q.line,q.ch),to:ae,tag:R[2]};return te=="selfClose"?{open:w,close:null,at:"open"}:R[1]?{open:D(q,R[2]),close:w,at:"close"}:(q=new g(_,ae.line,ae.ch,J),{open:w,close:S(q,R[2]),at:"open"})}}},r.findEnclosingTag=function(_,M,J,q){for(var te=new g(_,M.line,M.ch,J);;){var ae=D(te,q);if(!ae)break;var R=new g(_,M.line,M.ch,J),w=S(R,ae.tag);if(w)return{open:ae,close:w}}},r.scanForClosingTag=function(_,M,J,q){var te=new g(_,M.line,M.ch,q?{from:0,to:q}:null);return S(te,J)}})});var wm=et((Nm,Sm)=>{(function(r){typeof Nm=="object"&&typeof Sm=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";function n(a){return function(l,c){var p=c.line,g=l.getLine(p);function y(X){for(var S,D=c.ch,_=0;;){var M=D<=0?-1:g.lastIndexOf(X[0],D-1);if(M==-1){if(_==1)break;_=1,D=g.length;continue}if(_==1&&M<c.ch)break;if(S=l.getTokenTypeAt(r.Pos(p,M+1)),!/^(comment|string)/.test(S))return{ch:M+1,tokenType:S,pair:X};D=M-1}}function I(X){var S=1,D=l.lastLine(),_,M=X.ch,J;e:for(var q=p;q<=D;++q)for(var te=l.getLine(q),ae=q==p?M:0;;){var R=te.indexOf(X.pair[0],ae),w=te.indexOf(X.pair[1],ae);if(R<0&&(R=te.length),w<0&&(w=te.length),ae=Math.min(R,w),ae==te.length)break;if(l.getTokenTypeAt(r.Pos(q,ae+1))==X.tokenType){if(ae==R)++S;else if(!--S){_=q,J=ae;break e}}++ae}return _==null||p==_?null:{from:r.Pos(p,M),to:r.Pos(_,J)}}for(var U=[],A=0;A<a.length;A++){var F=y(a[A]);F&&U.push(F)}U.sort(function(X,S){return X.ch-S.ch});for(var A=0;A<U.length;A++){var O=I(U[A]);if(O)return O}return null}}r.registerHelper("fold","brace",n([["{","}"],["[","]"]])),r.registerHelper("fold","brace-paren",n([["{","}"],["[","]"],["(",")"]])),r.registerHelper("fold","import",function(a,l){function c(A){if(A<a.firstLine()||A>a.lastLine())return null;var F=a.getTokenAt(r.Pos(A,1));if(/\S/.test(F.string)||(F=a.getTokenAt(r.Pos(A,F.end+1))),F.type!="keyword"||F.string!="import")return null;for(var O=A,X=Math.min(a.lastLine(),A+10);O<=X;++O){var S=a.getLine(O),D=S.indexOf(";");if(D!=-1)return{startCh:F.end,end:r.Pos(O,D)}}}var p=l.line,g=c(p),y;if(!g||c(p-1)||(y=c(p-2))&&y.end.line==p-1)return null;for(var I=g.end;;){var U=c(I.line+1);if(U==null)break;I=U.end}return{from:a.clipPos(r.Pos(p,g.startCh+1)),to:I}}),r.registerHelper("fold","include",function(a,l){function c(U){if(U<a.firstLine()||U>a.lastLine())return null;var A=a.getTokenAt(r.Pos(U,1));if(/\S/.test(A.string)||(A=a.getTokenAt(r.Pos(U,A.end+1))),A.type=="meta"&&A.string.slice(0,8)=="#include")return A.start+8}var p=l.line,g=c(p);if(g==null||c(p-1)!=null)return null;for(var y=p;;){var I=c(y+1);if(I==null)break;++y}return{from:r.Pos(p,g+1),to:a.clipPos(r.Pos(y))}})})});var Bm=et((Lm,Fm)=>{(function(r){typeof Lm=="object"&&typeof Fm=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){var n=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),a=r.Pos,l={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function c(A){return A&&A.bracketRegex||/[(){}[\]]/}function p(A,F,O){var X=A.getLineHandle(F.line),S=F.ch-1,D=O&&O.afterCursor;D==null&&(D=/(^| )cm-fat-cursor($| )/.test(A.getWrapperElement().className));var _=c(O),M=!D&&S>=0&&_.test(X.text.charAt(S))&&l[X.text.charAt(S)]||_.test(X.text.charAt(S+1))&&l[X.text.charAt(++S)];if(!M)return null;var J=M.charAt(1)==">"?1:-1;if(O&&O.strict&&J>0!=(S==F.ch))return null;var q=A.getTokenTypeAt(a(F.line,S+1)),te=g(A,a(F.line,S+(J>0?1:0)),J,q,O);return te==null?null:{from:a(F.line,S),to:te&&te.pos,match:te&&te.ch==M.charAt(0),forward:J>0}}function g(A,F,O,X,S){for(var D=S&&S.maxScanLineLength||1e4,_=S&&S.maxScanLines||1e3,M=[],J=c(S),q=O>0?Math.min(F.line+_,A.lastLine()+1):Math.max(A.firstLine()-1,F.line-_),te=F.line;te!=q;te+=O){var ae=A.getLine(te);if(ae){var R=O>0?0:ae.length-1,w=O>0?ae.length:-1;if(!(ae.length>D))for(te==F.line&&(R=F.ch-(O<0?1:0));R!=w;R+=O){var H=ae.charAt(R);if(J.test(H)&&(X===void 0||(A.getTokenTypeAt(a(te,R+1))||"")==(X||""))){var $=l[H];if($&&$.charAt(1)==">"==O>0)M.push(H);else if(M.length)M.pop();else return{pos:a(te,R),ch:H}}}}}return te-O==(O>0?A.lastLine():A.firstLine())?!1:null}function y(A,F,O){for(var X=A.state.matchBrackets.maxHighlightLineLength||1e3,S=O&&O.highlightNonMatching,D=[],_=A.listSelections(),M=0;M<_.length;M++){var J=_[M].empty()&&p(A,_[M].head,O);if(J&&(J.match||S!==!1)&&A.getLine(J.from.line).length<=X){var q=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";D.push(A.markText(J.from,a(J.from.line,J.from.ch+1),{className:q})),J.to&&A.getLine(J.to.line).length<=X&&D.push(A.markText(J.to,a(J.to.line,J.to.ch+1),{className:q}))}}if(D.length){n&&A.state.focused&&A.focus();var te=function(){A.operation(function(){for(var ae=0;ae<D.length;ae++)D[ae].clear()})};if(F)setTimeout(te,800);else return te}}function I(A){A.operation(function(){A.state.matchBrackets.currentlyHighlighted&&(A.state.matchBrackets.currentlyHighlighted(),A.state.matchBrackets.currentlyHighlighted=null),A.state.matchBrackets.currentlyHighlighted=y(A,!1,A.state.matchBrackets)})}function U(A){A.state.matchBrackets&&A.state.matchBrackets.currentlyHighlighted&&(A.state.matchBrackets.currentlyHighlighted(),A.state.matchBrackets.currentlyHighlighted=null)}r.defineOption("matchBrackets",!1,function(A,F,O){O&&O!=r.Init&&(A.off("cursorActivity",I),A.off("focus",I),A.off("blur",U),U(A)),F&&(A.state.matchBrackets=typeof F=="object"?F:{},A.on("cursorActivity",I),A.on("focus",I),A.on("blur",U))}),r.defineExtension("matchBrackets",function(){y(this,!0)}),r.defineExtension("findMatchingBracket",function(A,F,O){return(O||typeof F=="boolean")&&(O?(O.strict=F,F=O):F=F?{strict:!0}:null),p(this,A,F)}),r.defineExtension("scanForBracket",function(A,F,O,X){return g(this,A,F,O,X)})})});var Om=et((Um,km)=>{(function(r){typeof Um=="object"&&typeof km=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";var n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(l,c){var p=l.indentUnit,g={},y=c.htmlMode?n:a;for(var I in y)g[I]=y[I];for(var I in c)g[I]=c[I];var U,A;function F(x,ee){function Z(Ge){return ee.tokenize=Ge,Ge(x,ee)}var ce=x.next();if(ce=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?Z(S("atom","]]>")):null:x.match("--")?Z(S("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),Z(D(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),ee.tokenize=S("meta","?>"),"meta"):(U=x.eat("/")?"closeTag":"openTag",ee.tokenize=O,"tag bracket");if(ce=="&"){var ge;return x.eat("#")?x.eat("x")?ge=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ge=x.eatWhile(/[\d]/)&&x.eat(";"):ge=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ge?"atom":"error"}else return x.eatWhile(/[^&<]/),null}F.isInText=!0;function O(x,ee){var Z=x.next();if(Z==">"||Z=="/"&&x.eat(">"))return ee.tokenize=F,U=Z==">"?"endTag":"selfcloseTag","tag bracket";if(Z=="=")return U="equals",null;if(Z=="<"){ee.tokenize=F,ee.state=te,ee.tagName=ee.tagStart=null;var ce=ee.tokenize(x,ee);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(Z)?(ee.tokenize=X(Z),ee.stringStartCol=x.column(),ee.tokenize(x,ee)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function X(x){var ee=function(Z,ce){for(;!Z.eol();)if(Z.next()==x){ce.tokenize=O;break}return"string"};return ee.isInAttribute=!0,ee}function S(x,ee){return function(Z,ce){for(;!Z.eol();){if(Z.match(ee)){ce.tokenize=F;break}Z.next()}return x}}function D(x){return function(ee,Z){for(var ce;(ce=ee.next())!=null;){if(ce=="<")return Z.tokenize=D(x+1),Z.tokenize(ee,Z);if(ce==">")if(x==1){Z.tokenize=F;break}else return Z.tokenize=D(x-1),Z.tokenize(ee,Z)}return"meta"}}function _(x){return x&&x.toLowerCase()}function M(x,ee,Z){this.prev=x.context,this.tagName=ee||"",this.indent=x.indented,this.startOfLine=Z,(g.doNotIndent.hasOwnProperty(ee)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function J(x){x.context&&(x.context=x.context.prev)}function q(x,ee){for(var Z;;){if(!x.context||(Z=x.context.tagName,!g.contextGrabbers.hasOwnProperty(_(Z))||!g.contextGrabbers[_(Z)].hasOwnProperty(_(ee))))return;J(x)}}function te(x,ee,Z){return x=="openTag"?(Z.tagStart=ee.column(),ae):x=="closeTag"?R:te}function ae(x,ee,Z){return x=="word"?(Z.tagName=ee.current(),A="tag",$):g.allowMissingTagName&&x=="endTag"?(A="tag bracket",$(x,ee,Z)):(A="error",ae)}function R(x,ee,Z){if(x=="word"){var ce=ee.current();return Z.context&&Z.context.tagName!=ce&&g.implicitlyClosed.hasOwnProperty(_(Z.context.tagName))&&J(Z),Z.context&&Z.context.tagName==ce||g.matchClosing===!1?(A="tag",w):(A="tag error",H)}else return g.allowMissingTagName&&x=="endTag"?(A="tag bracket",w(x,ee,Z)):(A="error",H)}function w(x,ee,Z){return x!="endTag"?(A="error",w):(J(Z),te)}function H(x,ee,Z){return A="error",w(x,ee,Z)}function $(x,ee,Z){if(x=="word")return A="attribute",pe;if(x=="endTag"||x=="selfcloseTag"){var ce=Z.tagName,ge=Z.tagStart;return Z.tagName=Z.tagStart=null,x=="selfcloseTag"||g.autoSelfClosers.hasOwnProperty(_(ce))?q(Z,ce):(q(Z,ce),Z.context=new M(Z,ce,ge==Z.indented)),te}return A="error",$}function pe(x,ee,Z){return x=="equals"?k:(g.allowMissing||(A="error"),$(x,ee,Z))}function k(x,ee,Z){return x=="string"?oe:x=="word"&&g.allowUnquoted?(A="string",$):(A="error",$(x,ee,Z))}function oe(x,ee,Z){return x=="string"?oe:$(x,ee,Z)}return{startState:function(x){var ee={tokenize:F,state:te,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(ee.baseIndent=x),ee},token:function(x,ee){if(!ee.tagName&&x.sol()&&(ee.indented=x.indentation()),x.eatSpace())return null;U=null;var Z=ee.tokenize(x,ee);return(Z||U)&&Z!="comment"&&(A=null,ee.state=ee.state(U||Z,x,ee),A&&(Z=A=="error"?Z+" error":A)),Z},indent:function(x,ee,Z){var ce=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+p;if(ce&&ce.noIndent)return r.Pass;if(x.tokenize!=O&&x.tokenize!=F)return Z?Z.match(/^(\s*)/)[0].length:0;if(x.tagName)return g.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+p*(g.multilineTagIndentFactor||1);if(g.alignCDATA&&/<!\[CDATA\[/.test(ee))return 0;var ge=ee&&/^<(\/)?([\w_:\.-]*)/.exec(ee);if(ge&&ge[1])for(;ce;)if(ce.tagName==ge[2]){ce=ce.prev;break}else if(g.implicitlyClosed.hasOwnProperty(_(ce.tagName)))ce=ce.prev;else break;else if(ge)for(;ce;){var Ge=g.contextGrabbers[_(ce.tagName)];if(Ge&&Ge.hasOwnProperty(_(ge[2])))ce=ce.prev;else break}for(;ce&&ce.prev&&!ce.startOfLine;)ce=ce.prev;return ce?ce.indent+p:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:g.htmlMode?"html":"xml",helperType:g.htmlMode?"html":"xml",skipAttribute:function(x){x.state==k&&(x.state=$)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var ee=[],Z=x.context;Z;Z=Z.prev)ee.push(Z.tagName);return ee.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var Wm=et((Mm,Gm)=>{(function(r){typeof Mm=="object"&&typeof Gm=="object"?r(In()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],r):r(CodeMirror)})(function(r){"use strict";r.defineMode("javascript",function(n,a){var l=n.indentUnit,c=a.statementIndent,p=a.jsonld,g=a.json||p,y=a.trackScope!==!1,I=a.typescript,U=a.wordCharacters||/[\w$\xa1-\uffff]/,A=function(){function v(_t){return{type:_t,style:"keyword"}}var E=v("keyword a"),V=v("keyword b"),Y=v("keyword c"),G=v("keyword d"),fe=v("operator"),Qe={type:"atom",style:"atom"};return{if:v("if"),while:E,with:E,else:V,do:V,try:V,finally:V,return:G,break:G,continue:G,new:v("new"),delete:Y,void:Y,throw:Y,debugger:v("debugger"),var:v("var"),const:v("var"),let:v("var"),function:v("function"),catch:v("catch"),for:v("for"),switch:v("switch"),case:v("case"),default:v("default"),in:fe,typeof:fe,instanceof:fe,true:Qe,false:Qe,null:Qe,undefined:Qe,NaN:Qe,Infinity:Qe,this:v("this"),class:v("class"),super:v("atom"),yield:Y,export:v("export"),import:v("import"),extends:Y,await:Y}}(),F=/[+\-*&%=<>!?|~^@]/,O=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function X(v){for(var E=!1,V,Y=!1;(V=v.next())!=null;){if(!E){if(V=="/"&&!Y)return;V=="["?Y=!0:Y&&V=="]"&&(Y=!1)}E=!E&&V=="\\"}}var S,D;function _(v,E,V){return S=v,D=V,E}function M(v,E){var V=v.next();if(V=='"'||V=="'")return E.tokenize=J(V),E.tokenize(v,E);if(V=="."&&v.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return _("number","number");if(V=="."&&v.match(".."))return _("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return _(V);if(V=="="&&v.eat(">"))return _("=>","operator");if(V=="0"&&v.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return _("number","number");if(/\d/.test(V))return v.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),_("number","number");if(V=="/")return v.eat("*")?(E.tokenize=q,q(v,E)):v.eat("/")?(v.skipToEnd(),_("comment","comment")):Zt(v,E,1)?(X(v),v.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),_("regexp","string-2")):(v.eat("="),_("operator","operator",v.current()));if(V=="`")return E.tokenize=te,te(v,E);if(V=="#"&&v.peek()=="!")return v.skipToEnd(),_("meta","meta");if(V=="#"&&v.eatWhile(U))return _("variable","property");if(V=="<"&&v.match("!--")||V=="-"&&v.match("->")&&!/\S/.test(v.string.slice(0,v.start)))return v.skipToEnd(),_("comment","comment");if(F.test(V))return(V!=">"||!E.lexical||E.lexical.type!=">")&&(v.eat("=")?(V=="!"||V=="=")&&v.eat("="):/[<>*+\-|&?]/.test(V)&&(v.eat(V),V==">"&&v.eat(V))),V=="?"&&v.eat(".")?_("."):_("operator","operator",v.current());if(U.test(V)){v.eatWhile(U);var Y=v.current();if(E.lastType!="."){if(A.propertyIsEnumerable(Y)){var G=A[Y];return _(G.type,G.style,Y)}if(Y=="async"&&v.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return _("async","keyword",Y)}return _("variable","variable",Y)}}function J(v){return function(E,V){var Y=!1,G;if(p&&E.peek()=="@"&&E.match(O))return V.tokenize=M,_("jsonld-keyword","meta");for(;(G=E.next())!=null&&!(G==v&&!Y);)Y=!Y&&G=="\\";return Y||(V.tokenize=M),_("string","string")}}function q(v,E){for(var V=!1,Y;Y=v.next();){if(Y=="/"&&V){E.tokenize=M;break}V=Y=="*"}return _("comment","comment")}function te(v,E){for(var V=!1,Y;(Y=v.next())!=null;){if(!V&&(Y=="`"||Y=="$"&&v.eat("{"))){E.tokenize=M;break}V=!V&&Y=="\\"}return _("quasi","string-2",v.current())}var ae="([{}])";function R(v,E){E.fatArrowAt&&(E.fatArrowAt=null);var V=v.string.indexOf("=>",v.start);if(!(V<0)){if(I){var Y=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start,V));Y&&(V=Y.index)}for(var G=0,fe=!1,Qe=V-1;Qe>=0;--Qe){var _t=v.string.charAt(Qe),zt=ae.indexOf(_t);if(zt>=0&&zt<3){if(!G){++Qe;break}if(--G==0){_t=="("&&(fe=!0);break}}else if(zt>=3&&zt<6)++G;else if(U.test(_t))fe=!0;else if(/["'\/`]/.test(_t))for(;;--Qe){if(Qe==0)return;var hi=v.string.charAt(Qe-1);if(hi==_t&&v.string.charAt(Qe-2)!="\\"){Qe--;break}}else if(fe&&!G){++Qe;break}}fe&&!G&&(E.fatArrowAt=Qe)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(v,E,V,Y,G,fe){this.indented=v,this.column=E,this.type=V,this.prev=G,this.info=fe,Y!=null&&(this.align=Y)}function $(v,E){if(!y)return!1;for(var V=v.localVars;V;V=V.next)if(V.name==E)return!0;for(var Y=v.context;Y;Y=Y.prev)for(var V=Y.vars;V;V=V.next)if(V.name==E)return!0}function pe(v,E,V,Y,G){var fe=v.cc;for(k.state=v,k.stream=G,k.marked=null,k.cc=fe,k.style=E,v.lexical.hasOwnProperty("align")||(v.lexical.align=!0);;){var Qe=fe.length?fe.pop():g?ue:ye;if(Qe(V,Y)){for(;fe.length&&fe[fe.length-1].lex;)fe.pop()();return k.marked?k.marked:V=="variable"&&$(v,Y)?"variable-2":E}}}var k={state:null,column:null,marked:null,cc:null};function oe(){for(var v=arguments.length-1;v>=0;v--)k.cc.push(arguments[v])}function x(){return oe.apply(null,arguments),!0}function ee(v,E){for(var V=E;V;V=V.next)if(V.name==v)return!0;return!1}function Z(v){var E=k.state;if(k.marked="def",!!y){if(E.context){if(E.lexical.info=="var"&&E.context&&E.context.block){var V=ce(v,E.context);if(V!=null){E.context=V;return}}else if(!ee(v,E.localVars)){E.localVars=new _e(v,E.localVars);return}}a.globalVars&&!ee(v,E.globalVars)&&(E.globalVars=new _e(v,E.globalVars))}}function ce(v,E){if(E)if(E.block){var V=ce(v,E.prev);return V?V==E.prev?E:new Ge(V,E.vars,!0):null}else return ee(v,E.vars)?E:new Ge(E.prev,new _e(v,E.vars),!1);else return null}function ge(v){return v=="public"||v=="private"||v=="protected"||v=="abstract"||v=="readonly"}function Ge(v,E,V){this.prev=v,this.vars=E,this.block=V}function _e(v,E){this.name=v,this.next=E}var we=new _e("this",new _e("arguments",null));function re(){k.state.context=new Ge(k.state.context,k.state.localVars,!1),k.state.localVars=we}function De(){k.state.context=new Ge(k.state.context,k.state.localVars,!0),k.state.localVars=null}re.lex=De.lex=!0;function Ce(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}Ce.lex=!0;function ve(v,E){var V=function(){var Y=k.state,G=Y.indented;if(Y.lexical.type=="stat")G=Y.lexical.indented;else for(var fe=Y.lexical;fe&&fe.type==")"&&fe.align;fe=fe.prev)G=fe.indented;Y.lexical=new H(G,k.stream.column(),v,null,Y.lexical,E)};return V.lex=!0,V}function se(){var v=k.state;v.lexical.prev&&(v.lexical.type==")"&&(v.indented=v.lexical.indented),v.lexical=v.lexical.prev)}se.lex=!0;function le(v){function E(V){return V==v?x():v==";"||V=="}"||V==")"||V=="]"?oe():x(E)}return E}function ye(v,E){return v=="var"?x(ve("vardef",E),rt,le(";"),se):v=="keyword a"?x(ve("form"),Pe,ye,se):v=="keyword b"?x(ve("form"),ye,se):v=="keyword d"?k.stream.match(/^\s*$/,!1)?x():x(ve("stat"),Le,le(";"),se):v=="debugger"?x(le(";")):v=="{"?x(ve("}"),De,ft,se,Ce):v==";"?x():v=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==se&&k.state.cc.pop()(),x(ve("form"),Pe,ye,se,on)):v=="function"?x(jt):v=="for"?x(ve("form"),De,di,ye,Ce,se):v=="class"||I&&E=="interface"?(k.marked="keyword",x(ve("form",v=="class"?v:E),an,se)):v=="variable"?I&&E=="declare"?(k.marked="keyword",x(ye)):I&&(E=="module"||E=="enum"||E=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",E=="enum"?x(de):E=="type"?x(Cn,le("operator"),Ne,le(";")):x(ve("form"),pt,le("{"),ve("}"),ft,se,se)):I&&E=="namespace"?(k.marked="keyword",x(ve("form"),ue,ye,se)):I&&E=="abstract"?(k.marked="keyword",x(ye)):x(ve("stat"),Qt):v=="switch"?x(ve("form"),Pe,le("{"),ve("}","switch"),De,ft,se,se,Ce):v=="case"?x(ue,le(":")):v=="default"?x(le(":")):v=="catch"?x(ve("form"),re,Me,ye,se,Ce):v=="export"?x(ve("stat"),An,se):v=="import"?x(ve("stat"),N,se):v=="async"?x(ye):E=="@"?x(ue,ye):oe(ve("stat"),ue,le(";"),se)}function Me(v){if(v=="(")return x(ur,le(")"))}function ue(v,E){return Oe(v,E,!1)}function Fe(v,E){return Oe(v,E,!0)}function Pe(v){return v!="("?oe():x(ve(")"),Le,le(")"),se)}function Oe(v,E,V){if(k.state.fatArrowAt==k.stream.start){var Y=V?Tt:Ie;if(v=="(")return x(re,ve(")"),ze(ur,")"),se,le("=>"),Y,Ce);if(v=="variable")return oe(re,pt,le("=>"),Y,Ce)}var G=V?Ze:Re;return w.hasOwnProperty(v)?x(G):v=="function"?x(jt,G):v=="class"||I&&E=="interface"?(k.marked="keyword",x(ve("form"),Tr,se)):v=="keyword c"||v=="async"?x(V?Fe:ue):v=="("?x(ve(")"),Le,le(")"),se,G):v=="operator"||v=="spread"?x(V?Fe:ue):v=="["?x(ve("]"),Ue,se,G):v=="{"?kt(Je,"}",null,G):v=="quasi"?oe(Be,G):v=="new"?x(Et(V)):x()}function Le(v){return v.match(/[;\}\)\],]/)?oe():oe(ue)}function Re(v,E){return v==","?x(Le):Ze(v,E,!1)}function Ze(v,E,V){var Y=V==!1?Re:Ze,G=V==!1?ue:Fe;if(v=="=>")return x(re,V?Tt:Ie,Ce);if(v=="operator")return/\+\+|--/.test(E)||I&&E=="!"?x(Y):I&&E=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ve(">"),ze(Ne,">"),se,Y):E=="?"?x(ue,le(":"),G):x(G);if(v=="quasi")return oe(Be,Y);if(v!=";"){if(v=="(")return kt(Fe,")","call",Y);if(v==".")return x(je,Y);if(v=="[")return x(ve("]"),Le,le("]"),se,Y);if(I&&E=="as")return k.marked="keyword",x(Ne,Y);if(v=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),x(G)}}function Be(v,E){return v!="quasi"?oe():E.slice(E.length-2)!="${"?x(Be):x(Le,Ve)}function Ve(v){if(v=="}")return k.marked="string-2",k.state.tokenize=te,x(Be)}function Ie(v){return R(k.stream,k.state),oe(v=="{"?ye:ue)}function Tt(v){return R(k.stream,k.state),oe(v=="{"?ye:Fe)}function Et(v){return function(E){return E=="."?x(v?lt:br):E=="variable"&&I?x(yt,v?Ze:Re):oe(v?Fe:ue)}}function br(v,E){if(E=="target")return k.marked="keyword",x(Re)}function lt(v,E){if(E=="target")return k.marked="keyword",x(Ze)}function Qt(v){return v==":"?x(se,ye):oe(Re,le(";"),se)}function je(v){if(v=="variable")return k.marked="property",x()}function Je(v,E){if(v=="async")return k.marked="property",x(Je);if(v=="variable"||k.style=="keyword"){if(k.marked="property",E=="get"||E=="set")return x(mt);var V;return I&&k.state.fatArrowAt==k.stream.start&&(V=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+V[0].length),x(ut)}else{if(v=="number"||v=="string")return k.marked=p?"property":k.style+" property",x(ut);if(v=="jsonld-keyword")return x(ut);if(I&&ge(E))return k.marked="keyword",x(Je);if(v=="[")return x(ue,Ot,le("]"),ut);if(v=="spread")return x(Fe,ut);if(E=="*")return k.marked="keyword",x(Je);if(v==":")return oe(ut)}}function mt(v){return v!="variable"?oe(ut):(k.marked="property",x(jt))}function ut(v){if(v==":")return x(Fe);if(v=="(")return oe(jt)}function ze(v,E,V){function Y(G,fe){if(V?V.indexOf(G)>-1:G==","){var Qe=k.state.lexical;return Qe.info=="call"&&(Qe.pos=(Qe.pos||0)+1),x(function(_t,zt){return _t==E||zt==E?oe():oe(v)},Y)}return G==E||fe==E?x():V&&V.indexOf(";")>-1?oe(v):x(le(E))}return function(G,fe){return G==E||fe==E?x():oe(v,Y)}}function kt(v,E,V){for(var Y=3;Y<arguments.length;Y++)k.cc.push(arguments[Y]);return x(ve(E,V),ze(v,E),se)}function ft(v){return v=="}"?x():oe(ye,ft)}function Ot(v,E){if(I){if(v==":")return x(Ne);if(E=="?")return x(Ot)}}function vr(v,E){if(I&&(v==":"||E=="in"))return x(Ne)}function yr(v){if(I&&v==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?x(ue,Tn,Ne):x(Ne)}function Tn(v,E){if(E=="is")return k.marked="keyword",x()}function Ne(v,E){if(E=="keyof"||E=="typeof"||E=="infer"||E=="readonly")return k.marked="keyword",x(E=="typeof"?Fe:Ne);if(v=="variable"||E=="void")return k.marked="type",x(lr);if(E=="|"||E=="&")return x(Ne);if(v=="string"||v=="number"||v=="atom")return x(lr);if(v=="[")return x(ve("]"),ze(Ne,"]",","),se,lr);if(v=="{")return x(ve("}"),Te,se,lr);if(v=="(")return x(ze(Ke,")"),Fr,lr);if(v=="<")return x(ze(Ne,">"),Ne);if(v=="quasi")return oe(Ct,lr)}function Fr(v){if(v=="=>")return x(Ne)}function Te(v){return v.match(/[\}\)\]]/)?x():v==","||v==";"?x(Te):oe(xr,Te)}function xr(v,E){if(v=="variable"||k.style=="keyword")return k.marked="property",x(xr);if(E=="?"||v=="number"||v=="string")return x(xr);if(v==":")return x(Ne);if(v=="[")return x(le("variable"),vr,le("]"),xr);if(v=="(")return oe(Br,xr);if(!v.match(/[;\}\)\],]/))return x()}function Ct(v,E){return v!="quasi"?oe():E.slice(E.length-2)!="${"?x(Ct):x(Ne,qe)}function qe(v){if(v=="}")return k.marked="string-2",k.state.tokenize=te,x(Ct)}function Ke(v,E){return v=="variable"&&k.stream.match(/^\s*[?:]/,!1)||E=="?"?x(Ke):v==":"?x(Ne):v=="spread"?x(Ke):oe(Ne)}function lr(v,E){if(E=="<")return x(ve(">"),ze(Ne,">"),se,lr);if(E=="|"||v=="."||E=="&")return x(Ne);if(v=="[")return x(Ne,le("]"),lr);if(E=="extends"||E=="implements")return k.marked="keyword",x(Ne);if(E=="?")return x(Ne,le(":"),Ne)}function yt(v,E){if(E=="<")return x(ve(">"),ze(Ne,">"),se,lr)}function Ir(){return oe(Ne,At)}function At(v,E){if(E=="=")return x(Ne)}function rt(v,E){return E=="enum"?(k.marked="keyword",x(de)):oe(pt,Ot,Yt,ci)}function pt(v,E){if(I&&ge(E))return k.marked="keyword",x(pt);if(v=="variable")return Z(E),x();if(v=="spread")return x(pt);if(v=="[")return kt(En,"]");if(v=="{")return kt(Vr,"}")}function Vr(v,E){return v=="variable"&&!k.stream.match(/^\s*:/,!1)?(Z(E),x(Yt)):(v=="variable"&&(k.marked="property"),v=="spread"?x(pt):v=="}"?oe():v=="["?x(ue,le("]"),le(":"),Vr):x(le(":"),pt,Yt))}function En(){return oe(pt,Yt)}function Yt(v,E){if(E=="=")return x(Fe)}function ci(v){if(v==",")return x(rt)}function on(v,E){if(v=="keyword b"&&E=="else")return x(ve("form","else"),ye,se)}function di(v,E){if(E=="await")return x(di);if(v=="(")return x(ve(")"),Ht,se)}function Ht(v){return v=="var"?x(rt,Pt):v=="variable"?x(Pt):oe(Pt)}function Pt(v,E){return v==")"?x():v==";"?x(Pt):E=="in"||E=="of"?(k.marked="keyword",x(ue,Pt)):oe(ue,Pt)}function jt(v,E){if(E=="*")return k.marked="keyword",x(jt);if(v=="variable")return Z(E),x(jt);if(v=="(")return x(re,ve(")"),ze(ur,")"),se,yr,ye,Ce);if(I&&E=="<")return x(ve(">"),ze(Ir,">"),se,jt)}function Br(v,E){if(E=="*")return k.marked="keyword",x(Br);if(v=="variable")return Z(E),x(Br);if(v=="(")return x(re,ve(")"),ze(ur,")"),se,yr,Ce);if(I&&E=="<")return x(ve(">"),ze(Ir,">"),se,Br)}function Cn(v,E){if(v=="keyword"||v=="variable")return k.marked="type",x(Cn);if(E=="<")return x(ve(">"),ze(Ir,">"),se)}function ur(v,E){return E=="@"&&x(ue,ur),v=="spread"?x(ur):I&&ge(E)?(k.marked="keyword",x(ur)):I&&v=="this"?x(Ot,Yt):oe(pt,Ot,Yt)}function Tr(v,E){return v=="variable"?an(v,E):fr(v,E)}function an(v,E){if(v=="variable")return Z(E),x(fr)}function fr(v,E){if(E=="<")return x(ve(">"),ze(Ir,">"),se,fr);if(E=="extends"||E=="implements"||I&&v==",")return E=="implements"&&(k.marked="keyword"),x(I?Ne:ue,fr);if(v=="{")return x(ve("}"),cr,se)}function cr(v,E){if(v=="async"||v=="variable"&&(E=="static"||E=="get"||E=="set"||I&&ge(E))&&k.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return k.marked="keyword",x(cr);if(v=="variable"||k.style=="keyword")return k.marked="property",x(Qr,cr);if(v=="number"||v=="string")return x(Qr,cr);if(v=="[")return x(ue,Ot,le("]"),Qr,cr);if(E=="*")return k.marked="keyword",x(cr);if(I&&v=="(")return oe(Br,cr);if(v==";"||v==",")return x(cr);if(v=="}")return x();if(E=="@")return x(ue,cr)}function Qr(v,E){if(E=="!"||E=="?")return x(Qr);if(v==":")return x(Ne,Yt);if(E=="=")return x(Fe);var V=k.state.lexical.prev,Y=V&&V.info=="interface";return oe(Y?Br:jt)}function An(v,E){return E=="*"?(k.marked="keyword",x(dt,le(";"))):E=="default"?(k.marked="keyword",x(ue,le(";"))):v=="{"?x(ze(xe,"}"),dt,le(";")):oe(ye)}function xe(v,E){if(E=="as")return k.marked="keyword",x(le("variable"));if(v=="variable")return oe(Fe,xe)}function N(v){return v=="string"?x():v=="("?oe(ue):v=="."?oe(Re):oe(K,be,dt)}function K(v,E){return v=="{"?kt(K,"}"):(v=="variable"&&Z(E),E=="*"&&(k.marked="keyword"),x(Xe))}function be(v){if(v==",")return x(K,be)}function Xe(v,E){if(E=="as")return k.marked="keyword",x(K)}function dt(v,E){if(E=="from")return k.marked="keyword",x(ue)}function Ue(v){return v=="]"?x():oe(ze(Fe,"]"))}function de(){return oe(ve("form"),pt,le("{"),ve("}"),ze(Rt,"}"),se,se)}function Rt(){return oe(pt,Yt)}function Ar(v,E){return v.lastType=="operator"||v.lastType==","||F.test(E.charAt(0))||/[,.]/.test(E.charAt(0))}function Zt(v,E,V){return E.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(E.lastType)||E.lastType=="quasi"&&/\{\s*$/.test(v.string.slice(0,v.pos-(V||0)))}return{startState:function(v){var E={tokenize:M,lastType:"sof",cc:[],lexical:new H((v||0)-l,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Ge(null,null,!1),indented:v||0};return a.globalVars&&typeof a.globalVars=="object"&&(E.globalVars=a.globalVars),E},token:function(v,E){if(v.sol()&&(E.lexical.hasOwnProperty("align")||(E.lexical.align=!1),E.indented=v.indentation(),R(v,E)),E.tokenize!=q&&v.eatSpace())return null;var V=E.tokenize(v,E);return S=="comment"?V:(E.lastType=S=="operator"&&(D=="++"||D=="--")?"incdec":S,pe(E,V,S,D,v))},indent:function(v,E){if(v.tokenize==q||v.tokenize==te)return r.Pass;if(v.tokenize!=M)return 0;var V=E&&E.charAt(0),Y=v.lexical,G;if(!/^\s*else\b/.test(E))for(var fe=v.cc.length-1;fe>=0;--fe){var Qe=v.cc[fe];if(Qe==se)Y=Y.prev;else if(Qe!=on&&Qe!=Ce)break}for(;(Y.type=="stat"||Y.type=="form")&&(V=="}"||(G=v.cc[v.cc.length-1])&&(G==Re||G==Ze)&&!/^[,\.=+\-*:?[\(]/.test(E));)Y=Y.prev;c&&Y.type==")"&&Y.prev.type=="stat"&&(Y=Y.prev);var _t=Y.type,zt=V==_t;return _t=="vardef"?Y.indented+(v.lastType=="operator"||v.lastType==","?Y.info.length+1:0):_t=="form"&&V=="{"?Y.indented:_t=="form"?Y.indented+l:_t=="stat"?Y.indented+(Ar(v,E)?c||l:0):Y.info=="switch"&&!zt&&a.doubleIndentSwitch!=!1?Y.indented+(/^(?:case|default)\b/.test(E)?l:2*l):Y.align?Y.column+(zt?0:1):Y.indented+(zt?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:p,jsonMode:g,expressionAllowed:Zt,skipExpression:function(v){pe(v,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var Xm=et(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Zm="fas",Dm="align-left",Vm=448,Qm=512,Hm=[],Pm="f036",Jm="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";Lr.definition={prefix:Zm,iconName:Dm,icon:[Vm,Qm,Hm,Pm,Jm]};Lr.faAlignLeft=Lr.definition;Lr.prefix=Zm;Lr.iconName=Dm;Lr.width=Vm;Lr.height=Qm;Lr.ligatures=Hm;Lr.unicode=Pm;Lr.svgPathData=Jm});var fR={};ev(fR,{Parser:()=>Ws,Yasr:()=>nn,default:()=>uR,registerPlugin:()=>lR});var jm=rr(zc());var lv=typeof global=="object"&&global&&global.Object===Object&&global,Qa=lv;var uv=typeof self=="object"&&self&&self.Object===Object&&self,fv=Qa||uv||Function("return this")(),It=fv;var cv=It.Symbol,nr=cv;var qc=Object.prototype,dv=qc.hasOwnProperty,hv=qc.toString,ko=nr?nr.toStringTag:void 0;function pv(r){var n=dv.call(r,ko),a=r[ko];try{r[ko]=void 0;var l=!0}catch{}var c=hv.call(r);return l&&(n?r[ko]=a:delete r[ko]),c}var Kc=pv;var gv=Object.prototype,mv=gv.toString;function bv(r){return mv.call(r)}var $c=bv;var vv="[object Null]",yv="[object Undefined]",ed=nr?nr.toStringTag:void 0;function xv(r){return r==null?r===void 0?yv:vv:ed&&ed in Object(r)?Kc(r):$c(r)}var Cr=xv;function Iv(r){return r!=null&&typeof r=="object"}var Bt=Iv;var Tv="[object Symbol]";function Ev(r){return typeof r=="symbol"||Bt(r)&&Cr(r)==Tv}var Ui=Ev;function Cv(r,n){for(var a=-1,l=r==null?0:r.length,c=Array(l);++a<l;)c[a]=n(r[a],a,r);return c}var td=Cv;var Av=Array.isArray,nt=Av;var Rv=1/0,rd=nr?nr.prototype:void 0,nd=rd?rd.toString:void 0;function id(r){if(typeof r=="string")return r;if(nt(r))return td(r,id)+"";if(Ui(r))return nd?nd.call(r):"";var n=r+"";return n=="0"&&1/r==-Rv?"-0":n}var od=id;function _v(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var Gt=_v;function Nv(r){return r}var ki=Nv;var Sv="[object AsyncFunction]",wv="[object Function]",Lv="[object GeneratorFunction]",Fv="[object Proxy]";function Bv(r){if(!Gt(r))return!1;var n=Cr(r);return n==wv||n==Lv||n==Sv||n==Fv}var Oi=Bv;var Uv=It["__core-js_shared__"],Ha=Uv;var ad=function(){var r=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function kv(r){return!!ad&&ad in r}var sd=kv;var Ov=Function.prototype,Mv=Ov.toString;function Gv(r){if(r!=null){try{return Mv.call(r)}catch{}try{return r+""}catch{}}return""}var hn=Gv;var Wv=/[\\^$.*+?()[\]{}|]/g,Zv=/^\[object .+?Constructor\]$/,Dv=Function.prototype,Vv=Object.prototype,Qv=Dv.toString,Hv=Vv.hasOwnProperty,Pv=RegExp("^"+Qv.call(Hv).replace(Wv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jv(r){if(!Gt(r)||sd(r))return!1;var n=Oi(r)?Pv:Zv;return n.test(hn(r))}var ld=Jv;function Xv(r,n){return r?.[n]}var ud=Xv;function Yv(r,n){var a=ud(r,n);return ld(a)?a:void 0}var pr=Yv;var jv=pr(It,"WeakMap"),Pa=jv;var fd=Object.create,zv=function(){function r(){}return function(n){if(!Gt(n))return{};if(fd)return fd(n);r.prototype=n;var a=new r;return r.prototype=void 0,a}}(),cd=zv;function qv(r,n,a){switch(a.length){case 0:return r.call(n);case 1:return r.call(n,a[0]);case 2:return r.call(n,a[0],a[1]);case 3:return r.call(n,a[0],a[1],a[2])}return r.apply(n,a)}var dd=qv;function Kv(r,n){var a=-1,l=r.length;for(n||(n=Array(l));++a<l;)n[a]=r[a];return n}var Ja=Kv;var $v=800,ey=16,ty=Date.now;function ry(r){var n=0,a=0;return function(){var l=ty(),c=ey-(l-a);if(a=l,c>0){if(++n>=$v)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}var hd=ry;function ny(r){return function(){return r}}var pd=ny;var iy=function(){try{var r=pr(Object,"defineProperty");return r({},"",{}),r}catch{}}(),Mi=iy;var oy=Mi?function(r,n){return Mi(r,"toString",{configurable:!0,enumerable:!1,value:pd(n),writable:!0})}:ki,gd=oy;var ay=hd(gd),md=ay;function sy(r,n){for(var a=-1,l=r==null?0:r.length;++a<l&&n(r[a],a,r)!==!1;);return r}var bd=sy;var ly=9007199254740991,uy=/^(?:0|[1-9]\d*)$/;function fy(r,n){var a=typeof r;return n=n??ly,!!n&&(a=="number"||a!="symbol"&&uy.test(r))&&r>-1&&r%1==0&&r<n}var Gi=fy;function cy(r,n,a){n=="__proto__"&&Mi?Mi(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}var kn=cy;function dy(r,n){return r===n||r!==r&&n!==n}var Yr=dy;var hy=Object.prototype,py=hy.hasOwnProperty;function gy(r,n,a){var l=r[n];(!(py.call(r,n)&&Yr(l,a))||a===void 0&&!(n in r))&&kn(r,n,a)}var Xa=gy;function my(r,n,a,l){var c=!a;a||(a={});for(var p=-1,g=n.length;++p<g;){var y=n[p],I=l?l(a[y],r[y],y,a,r):void 0;I===void 0&&(I=r[y]),c?kn(a,y,I):Xa(a,y,I)}return a}var jr=my;var vd=Math.max;function by(r,n,a){return n=vd(n===void 0?r.length-1:n,0),function(){for(var l=arguments,c=-1,p=vd(l.length-n,0),g=Array(p);++c<p;)g[c]=l[n+c];c=-1;for(var y=Array(n+1);++c<n;)y[c]=l[c];return y[n]=a(g),dd(r,this,y)}}var yd=by;function vy(r,n){return md(yd(r,n,ki),r+"")}var xd=vy;var yy=9007199254740991;function xy(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=yy}var Wi=xy;function Iy(r){return r!=null&&Wi(r.length)&&!Oi(r)}var Rr=Iy;function Ty(r,n,a){if(!Gt(a))return!1;var l=typeof n;return(l=="number"?Rr(a)&&Gi(n,a.length):l=="string"&&n in a)?Yr(a[n],r):!1}var Id=Ty;function Ey(r){return xd(function(n,a){var l=-1,c=a.length,p=c>1?a[c-1]:void 0,g=c>2?a[2]:void 0;for(p=r.length>3&&typeof p=="function"?(c--,p):void 0,g&&Id(a[0],a[1],g)&&(p=c<3?void 0:p,c=1),n=Object(n);++l<c;){var y=a[l];y&&r(n,y,l,p)}return n})}var Td=Ey;var Cy=Object.prototype;function Ay(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||Cy;return r===a}var On=Ay;function Ry(r,n){for(var a=-1,l=Array(r);++a<r;)l[a]=n(a);return l}var Ed=Ry;var _y="[object Arguments]";function Ny(r){return Bt(r)&&Cr(r)==_y}var Ml=Ny;var Cd=Object.prototype,Sy=Cd.hasOwnProperty,wy=Cd.propertyIsEnumerable,Ly=Ml(function(){return arguments}())?Ml:function(r){return Bt(r)&&Sy.call(r,"callee")&&!wy.call(r,"callee")},pn=Ly;function Fy(){return!1}var Ad=Fy;var Nd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rd=Nd&&typeof module=="object"&&module&&!module.nodeType&&module,By=Rd&&Rd.exports===Nd,_d=By?It.Buffer:void 0,Uy=_d?_d.isBuffer:void 0,ky=Uy||Ad,Gr=ky;var Oy="[object Arguments]",My="[object Array]",Gy="[object Boolean]",Wy="[object Date]",Zy="[object Error]",Dy="[object Function]",Vy="[object Map]",Qy="[object Number]",Hy="[object Object]",Py="[object RegExp]",Jy="[object Set]",Xy="[object String]",Yy="[object WeakMap]",jy="[object ArrayBuffer]",zy="[object DataView]",qy="[object Float32Array]",Ky="[object Float64Array]",$y="[object Int8Array]",ex="[object Int16Array]",tx="[object Int32Array]",rx="[object Uint8Array]",nx="[object Uint8ClampedArray]",ix="[object Uint16Array]",ox="[object Uint32Array]",st={};st[qy]=st[Ky]=st[$y]=st[ex]=st[tx]=st[rx]=st[nx]=st[ix]=st[ox]=!0;st[Oy]=st[My]=st[jy]=st[Gy]=st[zy]=st[Wy]=st[Zy]=st[Dy]=st[Vy]=st[Qy]=st[Hy]=st[Py]=st[Jy]=st[Xy]=st[Yy]=!1;function ax(r){return Bt(r)&&Wi(r.length)&&!!st[Cr(r)]}var Sd=ax;function sx(r){return function(n){return r(n)}}var Zi=sx;var wd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oo=wd&&typeof module=="object"&&module&&!module.nodeType&&module,lx=Oo&&Oo.exports===wd,Gl=lx&&Qa.process,ux=function(){try{var r=Oo&&Oo.require&&Oo.require("util").types;return r||Gl&&Gl.binding&&Gl.binding("util")}catch{}}(),gn=ux;var Ld=gn&&gn.isTypedArray,fx=Ld?Zi(Ld):Sd,Mn=fx;var cx=Object.prototype,dx=cx.hasOwnProperty;function hx(r,n){var a=nt(r),l=!a&&pn(r),c=!a&&!l&&Gr(r),p=!a&&!l&&!c&&Mn(r),g=a||l||c||p,y=g?Ed(r.length,String):[],I=y.length;for(var U in r)(n||dx.call(r,U))&&!(g&&(U=="length"||c&&(U=="offset"||U=="parent")||p&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||Gi(U,I)))&&y.push(U);return y}var Ya=hx;function px(r,n){return function(a){return r(n(a))}}var ja=px;var gx=ja(Object.keys,Object),Fd=gx;var mx=Object.prototype,bx=mx.hasOwnProperty;function vx(r){if(!On(r))return Fd(r);var n=[];for(var a in Object(r))bx.call(r,a)&&a!="constructor"&&n.push(a);return n}var za=vx;function yx(r){return Rr(r)?Ya(r):za(r)}var zr=yx;function xx(r){var n=[];if(r!=null)for(var a in Object(r))n.push(a);return n}var Bd=xx;var Ix=Object.prototype,Tx=Ix.hasOwnProperty;function Ex(r){if(!Gt(r))return Bd(r);var n=On(r),a=[];for(var l in r)l=="constructor"&&(n||!Tx.call(r,l))||a.push(l);return a}var Ud=Ex;function Cx(r){return Rr(r)?Ya(r,!0):Ud(r)}var qr=Cx;var Ax=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rx=/^\w*$/;function _x(r,n){if(nt(r))return!1;var a=typeof r;return a=="number"||a=="symbol"||a=="boolean"||r==null||Ui(r)?!0:Rx.test(r)||!Ax.test(r)||n!=null&&r in Object(n)}var Di=_x;var Nx=pr(Object,"create"),mn=Nx;function Sx(){this.__data__=mn?mn(null):{},this.size=0}var kd=Sx;function wx(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}var Od=wx;var Lx="__lodash_hash_undefined__",Fx=Object.prototype,Bx=Fx.hasOwnProperty;function Ux(r){var n=this.__data__;if(mn){var a=n[r];return a===Lx?void 0:a}return Bx.call(n,r)?n[r]:void 0}var Md=Ux;var kx=Object.prototype,Ox=kx.hasOwnProperty;function Mx(r){var n=this.__data__;return mn?n[r]!==void 0:Ox.call(n,r)}var Gd=Mx;var Gx="__lodash_hash_undefined__";function Wx(r,n){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=mn&&n===void 0?Gx:n,this}var Wd=Wx;function Vi(r){var n=-1,a=r==null?0:r.length;for(this.clear();++n<a;){var l=r[n];this.set(l[0],l[1])}}Vi.prototype.clear=kd;Vi.prototype.delete=Od;Vi.prototype.get=Md;Vi.prototype.has=Gd;Vi.prototype.set=Wd;var Wl=Vi;function Zx(){this.__data__=[],this.size=0}var Zd=Zx;function Dx(r,n){for(var a=r.length;a--;)if(Yr(r[a][0],n))return a;return-1}var Gn=Dx;var Vx=Array.prototype,Qx=Vx.splice;function Hx(r){var n=this.__data__,a=Gn(n,r);if(a<0)return!1;var l=n.length-1;return a==l?n.pop():Qx.call(n,a,1),--this.size,!0}var Dd=Hx;function Px(r){var n=this.__data__,a=Gn(n,r);return a<0?void 0:n[a][1]}var Vd=Px;function Jx(r){return Gn(this.__data__,r)>-1}var Qd=Jx;function Xx(r,n){var a=this.__data__,l=Gn(a,r);return l<0?(++this.size,a.push([r,n])):a[l][1]=n,this}var Hd=Xx;function Qi(r){var n=-1,a=r==null?0:r.length;for(this.clear();++n<a;){var l=r[n];this.set(l[0],l[1])}}Qi.prototype.clear=Zd;Qi.prototype.delete=Dd;Qi.prototype.get=Vd;Qi.prototype.has=Qd;Qi.prototype.set=Hd;var Wn=Qi;var Yx=pr(It,"Map"),Zn=Yx;function jx(){this.size=0,this.__data__={hash:new Wl,map:new(Zn||Wn),string:new Wl}}var Pd=jx;function zx(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Jd=zx;function qx(r,n){var a=r.__data__;return Jd(n)?a[typeof n=="string"?"string":"hash"]:a.map}var Dn=qx;function Kx(r){var n=Dn(this,r).delete(r);return this.size-=n?1:0,n}var Xd=Kx;function $x(r){return Dn(this,r).get(r)}var Yd=$x;function e1(r){return Dn(this,r).has(r)}var jd=e1;function t1(r,n){var a=Dn(this,r),l=a.size;return a.set(r,n),this.size+=a.size==l?0:1,this}var zd=t1;function Hi(r){var n=-1,a=r==null?0:r.length;for(this.clear();++n<a;){var l=r[n];this.set(l[0],l[1])}}Hi.prototype.clear=Pd;Hi.prototype.delete=Xd;Hi.prototype.get=Yd;Hi.prototype.has=jd;Hi.prototype.set=zd;var ti=Hi;var r1="Expected a function";function Zl(r,n){if(typeof r!="function"||n!=null&&typeof n!="function")throw new TypeError(r1);var a=function(){var l=arguments,c=n?n.apply(this,l):l[0],p=a.cache;if(p.has(c))return p.get(c);var g=r.apply(this,l);return a.cache=p.set(c,g)||p,g};return a.cache=new(Zl.Cache||ti),a}Zl.Cache=ti;var qd=Zl;var n1=500;function i1(r){var n=qd(r,function(l){return a.size===n1&&a.clear(),l}),a=n.cache;return n}var Kd=i1;var o1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a1=/\\(\\)?/g,s1=Kd(function(r){var n=[];return r.charCodeAt(0)===46&&n.push(""),r.replace(o1,function(a,l,c,p){n.push(c?p.replace(a1,"$1"):l||a)}),n}),$d=s1;function l1(r){return r==null?"":od(r)}var Pi=l1;function u1(r,n){return nt(r)?r:Di(r,n)?[r]:$d(Pi(r))}var qa=u1;var f1=1/0;function c1(r){if(typeof r=="string"||Ui(r))return r;var n=r+"";return n=="0"&&1/r==-f1?"-0":n}var Vn=c1;function d1(r,n){n=qa(n,r);for(var a=0,l=n.length;r!=null&&a<l;)r=r[Vn(n[a++])];return a&&a==l?r:void 0}var Ka=d1;function h1(r,n,a){var l=r==null?void 0:Ka(r,n);return l===void 0?a:l}var eh=h1;function p1(r,n){for(var a=-1,l=n.length,c=r.length;++a<l;)r[c+a]=n[a];return r}var $a=p1;var g1=ja(Object.getPrototypeOf,Object),Ji=g1;var m1="[object Object]",b1=Function.prototype,v1=Object.prototype,th=b1.toString,y1=v1.hasOwnProperty,x1=th.call(Object);function I1(r){if(!Bt(r)||Cr(r)!=m1)return!1;var n=Ji(r);if(n===null)return!0;var a=y1.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&th.call(a)==x1}var rh=I1;function T1(r){return function(n){return r?.[n]}}var nh=T1;function E1(){this.__data__=new Wn,this.size=0}var ih=E1;function C1(r){var n=this.__data__,a=n.delete(r);return this.size=n.size,a}var oh=C1;function A1(r){return this.__data__.get(r)}var ah=A1;function R1(r){return this.__data__.has(r)}var sh=R1;var _1=200;function N1(r,n){var a=this.__data__;if(a instanceof Wn){var l=a.__data__;if(!Zn||l.length<_1-1)return l.push([r,n]),this.size=++a.size,this;a=this.__data__=new ti(l)}return a.set(r,n),this.size=a.size,this}var lh=N1;function Xi(r){var n=this.__data__=new Wn(r);this.size=n.size}Xi.prototype.clear=ih;Xi.prototype.delete=oh;Xi.prototype.get=ah;Xi.prototype.has=sh;Xi.prototype.set=lh;var Kr=Xi;function S1(r,n){return r&&jr(n,zr(n),r)}var uh=S1;function w1(r,n){return r&&jr(n,qr(n),r)}var fh=w1;var ph=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ch=ph&&typeof module=="object"&&module&&!module.nodeType&&module,L1=ch&&ch.exports===ph,dh=L1?It.Buffer:void 0,hh=dh?dh.allocUnsafe:void 0;function F1(r,n){if(n)return r.slice();var a=r.length,l=hh?hh(a):new r.constructor(a);return r.copy(l),l}var es=F1;function B1(r,n){for(var a=-1,l=r==null?0:r.length,c=0,p=[];++a<l;){var g=r[a];n(g,a,r)&&(p[c++]=g)}return p}var ts=B1;function U1(){return[]}var rs=U1;var k1=Object.prototype,O1=k1.propertyIsEnumerable,gh=Object.getOwnPropertySymbols,M1=gh?function(r){return r==null?[]:(r=Object(r),ts(gh(r),function(n){return O1.call(r,n)}))}:rs,Yi=M1;function G1(r,n){return jr(r,Yi(r),n)}var mh=G1;var W1=Object.getOwnPropertySymbols,Z1=W1?function(r){for(var n=[];r;)$a(n,Yi(r)),r=Ji(r);return n}:rs,ns=Z1;function D1(r,n){return jr(r,ns(r),n)}var bh=D1;function V1(r,n,a){var l=n(r);return nt(r)?l:$a(l,a(r))}var is=V1;function Q1(r){return is(r,zr,Yi)}var Mo=Q1;function H1(r){return is(r,qr,ns)}var vh=H1;var P1=pr(It,"DataView"),os=P1;var J1=pr(It,"Promise"),as=J1;var X1=pr(It,"Set"),ss=X1;var yh="[object Map]",Y1="[object Object]",xh="[object Promise]",Ih="[object Set]",Th="[object WeakMap]",Eh="[object DataView]",j1=hn(os),z1=hn(Zn),q1=hn(as),K1=hn(ss),$1=hn(Pa),ri=Cr;(os&&ri(new os(new ArrayBuffer(1)))!=Eh||Zn&&ri(new Zn)!=yh||as&&ri(as.resolve())!=xh||ss&&ri(new ss)!=Ih||Pa&&ri(new Pa)!=Th)&&(ri=function(r){var n=Cr(r),a=n==Y1?r.constructor:void 0,l=a?hn(a):"";if(l)switch(l){case j1:return Eh;case z1:return yh;case q1:return xh;case K1:return Ih;case $1:return Th}return n});var Wr=ri;var eI=Object.prototype,tI=eI.hasOwnProperty;function rI(r){var n=r.length,a=new r.constructor(n);return n&&typeof r[0]=="string"&&tI.call(r,"index")&&(a.index=r.index,a.input=r.input),a}var Ch=rI;var nI=It.Uint8Array,ji=nI;function iI(r){var n=new r.constructor(r.byteLength);return new ji(n).set(new ji(r)),n}var zi=iI;function oI(r,n){var a=n?zi(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}var Ah=oI;var aI=/\w*$/;function sI(r){var n=new r.constructor(r.source,aI.exec(r));return n.lastIndex=r.lastIndex,n}var Rh=sI;var _h=nr?nr.prototype:void 0,Nh=_h?_h.valueOf:void 0;function lI(r){return Nh?Object(Nh.call(r)):{}}var Sh=lI;function uI(r,n){var a=n?zi(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}var ls=uI;var fI="[object Boolean]",cI="[object Date]",dI="[object Map]",hI="[object Number]",pI="[object RegExp]",gI="[object Set]",mI="[object String]",bI="[object Symbol]",vI="[object ArrayBuffer]",yI="[object DataView]",xI="[object Float32Array]",II="[object Float64Array]",TI="[object Int8Array]",EI="[object Int16Array]",CI="[object Int32Array]",AI="[object Uint8Array]",RI="[object Uint8ClampedArray]",_I="[object Uint16Array]",NI="[object Uint32Array]";function SI(r,n,a){var l=r.constructor;switch(n){case vI:return zi(r);case fI:case cI:return new l(+r);case yI:return Ah(r,a);case xI:case II:case TI:case EI:case CI:case AI:case RI:case _I:case NI:return ls(r,a);case dI:return new l;case hI:case mI:return new l(r);case pI:return Rh(r);case gI:return new l;case bI:return Sh(r)}}var wh=SI;function wI(r){return typeof r.constructor=="function"&&!On(r)?cd(Ji(r)):{}}var us=wI;var LI="[object Map]";function FI(r){return Bt(r)&&Wr(r)==LI}var Lh=FI;var Fh=gn&&gn.isMap,BI=Fh?Zi(Fh):Lh,Bh=BI;var UI="[object Set]";function kI(r){return Bt(r)&&Wr(r)==UI}var Uh=kI;var kh=gn&&gn.isSet,OI=kh?Zi(kh):Uh,Oh=OI;var MI=1,GI=2,WI=4,Mh="[object Arguments]",ZI="[object Array]",DI="[object Boolean]",VI="[object Date]",QI="[object Error]",Gh="[object Function]",HI="[object GeneratorFunction]",PI="[object Map]",JI="[object Number]",Wh="[object Object]",XI="[object RegExp]",YI="[object Set]",jI="[object String]",zI="[object Symbol]",qI="[object WeakMap]",KI="[object ArrayBuffer]",$I="[object DataView]",eT="[object Float32Array]",tT="[object Float64Array]",rT="[object Int8Array]",nT="[object Int16Array]",iT="[object Int32Array]",oT="[object Uint8Array]",aT="[object Uint8ClampedArray]",sT="[object Uint16Array]",lT="[object Uint32Array]",it={};it[Mh]=it[ZI]=it[KI]=it[$I]=it[DI]=it[VI]=it[eT]=it[tT]=it[rT]=it[nT]=it[iT]=it[PI]=it[JI]=it[Wh]=it[XI]=it[YI]=it[jI]=it[zI]=it[oT]=it[aT]=it[sT]=it[lT]=!0;it[QI]=it[Gh]=it[qI]=!1;function fs(r,n,a,l,c,p){var g,y=n&MI,I=n&GI,U=n&WI;if(a&&(g=c?a(r,l,c,p):a(r)),g!==void 0)return g;if(!Gt(r))return r;var A=nt(r);if(A){if(g=Ch(r),!y)return Ja(r,g)}else{var F=Wr(r),O=F==Gh||F==HI;if(Gr(r))return es(r,y);if(F==Wh||F==Mh||O&&!c){if(g=I||O?{}:us(r),!y)return I?bh(r,fh(g,r)):mh(r,uh(g,r))}else{if(!it[F])return c?r:{};g=wh(r,F,y)}}p||(p=new Kr);var X=p.get(r);if(X)return X;p.set(r,g),Oh(r)?r.forEach(function(_){g.add(fs(_,n,a,_,r,p))}):Bh(r)&&r.forEach(function(_,M){g.set(M,fs(_,n,a,M,r,p))});var S=U?I?vh:Mo:I?qr:zr,D=A?void 0:S(r);return bd(D||r,function(_,M){D&&(M=_,_=r[M]),Xa(g,M,fs(_,n,a,M,r,p))}),g}var Zh=fs;var uT=1,fT=4;function cT(r){return Zh(r,uT|fT)}var cs=cT;var dT="__lodash_hash_undefined__";function hT(r){return this.__data__.set(r,dT),this}var Dh=hT;function pT(r){return this.__data__.has(r)}var Vh=pT;function ds(r){var n=-1,a=r==null?0:r.length;for(this.__data__=new ti;++n<a;)this.add(r[n])}ds.prototype.add=ds.prototype.push=Dh;ds.prototype.has=Vh;var Qh=ds;function gT(r,n){for(var a=-1,l=r==null?0:r.length;++a<l;)if(n(r[a],a,r))return!0;return!1}var Hh=gT;function mT(r,n){return r.has(n)}var Ph=mT;var bT=1,vT=2;function yT(r,n,a,l,c,p){var g=a&bT,y=r.length,I=n.length;if(y!=I&&!(g&&I>y))return!1;var U=p.get(r),A=p.get(n);if(U&&A)return U==n&&A==r;var F=-1,O=!0,X=a&vT?new Qh:void 0;for(p.set(r,n),p.set(n,r);++F<y;){var S=r[F],D=n[F];if(l)var _=g?l(D,S,F,n,r,p):l(S,D,F,r,n,p);if(_!==void 0){if(_)continue;O=!1;break}if(X){if(!Hh(n,function(M,J){if(!Ph(X,J)&&(S===M||c(S,M,a,l,p)))return X.push(J)})){O=!1;break}}else if(!(S===D||c(S,D,a,l,p))){O=!1;break}}return p.delete(r),p.delete(n),O}var hs=yT;function xT(r){var n=-1,a=Array(r.size);return r.forEach(function(l,c){a[++n]=[c,l]}),a}var Jh=xT;function IT(r){var n=-1,a=Array(r.size);return r.forEach(function(l){a[++n]=l}),a}var Xh=IT;var TT=1,ET=2,CT="[object Boolean]",AT="[object Date]",RT="[object Error]",_T="[object Map]",NT="[object Number]",ST="[object RegExp]",wT="[object Set]",LT="[object String]",FT="[object Symbol]",BT="[object ArrayBuffer]",UT="[object DataView]",Yh=nr?nr.prototype:void 0,Dl=Yh?Yh.valueOf:void 0;function kT(r,n,a,l,c,p,g){switch(a){case UT:if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)return!1;r=r.buffer,n=n.buffer;case BT:return!(r.byteLength!=n.byteLength||!p(new ji(r),new ji(n)));case CT:case AT:case NT:return Yr(+r,+n);case RT:return r.name==n.name&&r.message==n.message;case ST:case LT:return r==n+"";case _T:var y=Jh;case wT:var I=l&TT;if(y||(y=Xh),r.size!=n.size&&!I)return!1;var U=g.get(r);if(U)return U==n;l|=ET,g.set(r,n);var A=hs(y(r),y(n),l,c,p,g);return g.delete(r),A;case FT:if(Dl)return Dl.call(r)==Dl.call(n)}return!1}var jh=kT;var OT=1,MT=Object.prototype,GT=MT.hasOwnProperty;function WT(r,n,a,l,c,p){var g=a&OT,y=Mo(r),I=y.length,U=Mo(n),A=U.length;if(I!=A&&!g)return!1;for(var F=I;F--;){var O=y[F];if(!(g?O in n:GT.call(n,O)))return!1}var X=p.get(r),S=p.get(n);if(X&&S)return X==n&&S==r;var D=!0;p.set(r,n),p.set(n,r);for(var _=g;++F<I;){O=y[F];var M=r[O],J=n[O];if(l)var q=g?l(J,M,O,n,r,p):l(M,J,O,r,n,p);if(!(q===void 0?M===J||c(M,J,a,l,p):q)){D=!1;break}_||(_=O=="constructor")}if(D&&!_){var te=r.constructor,ae=n.constructor;te!=ae&&"constructor"in r&&"constructor"in n&&!(typeof te=="function"&&te instanceof te&&typeof ae=="function"&&ae instanceof ae)&&(D=!1)}return p.delete(r),p.delete(n),D}var zh=WT;var ZT=1,qh="[object Arguments]",Kh="[object Array]",ps="[object Object]",DT=Object.prototype,$h=DT.hasOwnProperty;function VT(r,n,a,l,c,p){var g=nt(r),y=nt(n),I=g?Kh:Wr(r),U=y?Kh:Wr(n);I=I==qh?ps:I,U=U==qh?ps:U;var A=I==ps,F=U==ps,O=I==U;if(O&&Gr(r)){if(!Gr(n))return!1;g=!0,A=!1}if(O&&!A)return p||(p=new Kr),g||Mn(r)?hs(r,n,a,l,c,p):jh(r,n,I,a,l,c,p);if(!(a&ZT)){var X=A&&$h.call(r,"__wrapped__"),S=F&&$h.call(n,"__wrapped__");if(X||S){var D=X?r.value():r,_=S?n.value():n;return p||(p=new Kr),c(D,_,a,l,p)}}return O?(p||(p=new Kr),zh(r,n,a,l,c,p)):!1}var ep=VT;function tp(r,n,a,l,c){return r===n?!0:r==null||n==null||!Bt(r)&&!Bt(n)?r!==r&&n!==n:ep(r,n,a,l,tp,c)}var gs=tp;var QT=1,HT=2;function PT(r,n,a,l){var c=a.length,p=c,g=!l;if(r==null)return!p;for(r=Object(r);c--;){var y=a[c];if(g&&y[2]?y[1]!==r[y[0]]:!(y[0]in r))return!1}for(;++c<p;){y=a[c];var I=y[0],U=r[I],A=y[1];if(g&&y[2]){if(U===void 0&&!(I in r))return!1}else{var F=new Kr;if(l)var O=l(U,A,I,r,n,F);if(!(O===void 0?gs(A,U,QT|HT,l,F):O))return!1}}return!0}var rp=PT;function JT(r){return r===r&&!Gt(r)}var ms=JT;function XT(r){for(var n=zr(r),a=n.length;a--;){var l=n[a],c=r[l];n[a]=[l,c,ms(c)]}return n}var np=XT;function YT(r,n){return function(a){return a==null?!1:a[r]===n&&(n!==void 0||r in Object(a))}}var bs=YT;function jT(r){var n=np(r);return n.length==1&&n[0][2]?bs(n[0][0],n[0][1]):function(a){return a===r||rp(a,r,n)}}var ip=jT;function zT(r,n){return r!=null&&n in Object(r)}var op=zT;function qT(r,n,a){n=qa(n,r);for(var l=-1,c=n.length,p=!1;++l<c;){var g=Vn(n[l]);if(!(p=r!=null&&a(r,g)))break;r=r[g]}return p||++l!=c?p:(c=r==null?0:r.length,!!c&&Wi(c)&&Gi(g,c)&&(nt(r)||pn(r)))}var ap=qT;function KT(r,n){return r!=null&&ap(r,n,op)}var sp=KT;var $T=1,eE=2;function tE(r,n){return Di(r)&&ms(n)?bs(Vn(r),n):function(a){var l=eh(a,r);return l===void 0&&l===n?sp(a,r):gs(n,l,$T|eE)}}var lp=tE;function rE(r){return function(n){return n?.[r]}}var up=rE;function nE(r){return function(n){return Ka(n,r)}}var fp=nE;function iE(r){return Di(r)?up(Vn(r)):fp(r)}var cp=iE;function oE(r){return typeof r=="function"?r:r==null?ki:typeof r=="object"?nt(r)?lp(r[0],r[1]):ip(r):cp(r)}var vs=oE;function aE(r){return function(n,a,l){for(var c=-1,p=Object(n),g=l(n),y=g.length;y--;){var I=g[r?y:++c];if(a(p[I],I,p)===!1)break}return n}}var dp=aE;var sE=dp(),ys=sE;function lE(r,n){return r&&ys(r,n,zr)}var xs=lE;function uE(r,n){return function(a,l){if(a==null)return a;if(!Rr(a))return r(a,l);for(var c=a.length,p=n?c:-1,g=Object(a);(n?p--:++p<c)&&l(g[p],p,g)!==!1;);return a}}var hp=uE;var fE=hp(xs),pp=fE;function cE(r,n,a){(a!==void 0&&!Yr(r[n],a)||a===void 0&&!(n in r))&&kn(r,n,a)}var Go=cE;function dE(r){return Bt(r)&&Rr(r)}var gp=dE;function hE(r,n){if(!(n==="constructor"&&typeof r[n]=="function")&&n!="__proto__")return r[n]}var Wo=hE;function pE(r){return jr(r,qr(r))}var mp=pE;function gE(r,n,a,l,c,p,g){var y=Wo(r,a),I=Wo(n,a),U=g.get(I);if(U){Go(r,a,U);return}var A=p?p(y,I,a+"",r,n,g):void 0,F=A===void 0;if(F){var O=nt(I),X=!O&&Gr(I),S=!O&&!X&&Mn(I);A=I,O||X||S?nt(y)?A=y:gp(y)?A=Ja(y):X?(F=!1,A=es(I,!0)):S?(F=!1,A=ls(I,!0)):A=[]:rh(I)||pn(I)?(A=y,pn(y)?A=mp(y):(!Gt(y)||Oi(y))&&(A=us(I))):F=!1}F&&(g.set(I,A),c(A,I,l,p,g),g.delete(I)),Go(r,a,A)}var bp=gE;function vp(r,n,a,l,c){r!==n&&ys(n,function(p,g){if(c||(c=new Kr),Gt(p))bp(r,n,g,a,vp,l,c);else{var y=l?l(Wo(r,g),p,g+"",r,n,c):void 0;y===void 0&&(y=p),Go(r,g,y)}},qr)}var yp=vp;function mE(r,n){var a=[];return pp(r,function(l,c,p){n(l,c,p)&&a.push(l)}),a}var xp=mE;function bE(r,n){var a=nt(r)?ts:xp;return a(r,vs(n,3))}var Vl=bE;var vE="[object Map]",yE="[object Set]",xE=Object.prototype,IE=xE.hasOwnProperty;function TE(r){if(r==null)return!0;if(Rr(r)&&(nt(r)||typeof r=="string"||typeof r.splice=="function"||Gr(r)||Mn(r)||pn(r)))return!r.length;var n=Wr(r);if(n==vE||n==yE)return!r.size;if(On(r))return!za(r).length;for(var a in r)if(IE.call(r,a))return!1;return!0}var Is=TE;function EE(r,n){var a={};return n=vs(n,3),xs(r,function(l,c,p){kn(a,c,n(l,c,p))}),a}var Zo=EE;var CE=Td(function(r,n,a){yp(r,n,a)}),Ql=CE;var AE={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},RE=nh(AE),Ip=RE;var Tp=/&(?:amp|lt|gt|quot|#39);/g,_E=RegExp(Tp.source);function NE(r){return r=Pi(r),r&&_E.test(r)?r.replace(Tp,Ip):r}var Hl=NE;var SE=0;function wE(r){var n=++SE;return Pi(r)+n}var Pl=wE;function Jl(){return{persistenceId:function(r){var n="",a=r.rootEl;for(a.id&&(n=a.id);a&&a!==document;a=a.parentNode)if(a){a.id&&(n=a.id);break}return"yasr_"+n},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:60*60*24*30,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["Table","response","Geo","Graph"],defaultPlugin:"Table"}}var{entries:Lp,setPrototypeOf:Ep,isFrozen:LE,getPrototypeOf:FE,getOwnPropertyDescriptor:BE}=Object,{freeze:or,seal:_r,create:$l}=Object,{apply:eu,construct:tu}=typeof Reflect<"u"&&Reflect;or||(or=function(n){return n});_r||(_r=function(n){return n});eu||(eu=function(n,a){for(var l=arguments.length,c=new Array(l>2?l-2:0),p=2;p<l;p++)c[p-2]=arguments[p];return n.apply(a,c)});tu||(tu=function(n){for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];return new n(...l)});var Ts=ar(Array.prototype.forEach),UE=ar(Array.prototype.lastIndexOf),Cp=ar(Array.prototype.pop),Do=ar(Array.prototype.push),kE=ar(Array.prototype.splice),Cs=ar(String.prototype.toLowerCase),Xl=ar(String.prototype.toString),Yl=ar(String.prototype.match),Vo=ar(String.prototype.replace),OE=ar(String.prototype.indexOf),ME=ar(String.prototype.trim),Zr=ar(Object.prototype.hasOwnProperty),ir=ar(RegExp.prototype.test),Qo=GE(TypeError);function ar(r){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];return eu(r,n,l)}}function GE(r){return function(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return tu(r,a)}}function We(r,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cs;Ep&&Ep(r,null);let l=n.length;for(;l--;){let c=n[l];if(typeof c=="string"){let p=a(c);p!==c&&(LE(n)||(n[l]=p),c=p)}r[c]=!0}return r}function WE(r){for(let n=0;n<r.length;n++)Zr(r,n)||(r[n]=null);return r}function $r(r){let n=$l(null);for(let[a,l]of Lp(r))Zr(r,a)&&(Array.isArray(l)?n[a]=WE(l):l&&typeof l=="object"&&l.constructor===Object?n[a]=$r(l):n[a]=l);return n}function Ho(r,n){for(;r!==null;){let l=BE(r,n);if(l){if(l.get)return ar(l.get);if(typeof l.value=="function")return ar(l.value)}r=FE(r)}function a(){return null}return a}var Ap=or(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jl=or(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zl=or(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ZE=or(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ql=or(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DE=or(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rp=or(["#text"]),_p=or(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Kl=or(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Np=or(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Es=or(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VE=_r(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QE=_r(/<%[\w\W]*|[\w\W]*%>/gm),HE=_r(/\$\{[\w\W]*/gm),PE=_r(/^data-[\-\w.\u00B7-\uFFFF]+$/),JE=_r(/^aria-[\-\w]+$/),Fp=_r(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),XE=_r(/^(?:\w+script|data):/i),YE=_r(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bp=_r(/^html$/i),jE=_r(/^[a-z][.\w]*(-[.\w]+)+$/i),Sp=Object.freeze({__proto__:null,ARIA_ATTR:JE,ATTR_WHITESPACE:YE,CUSTOM_ELEMENT:jE,DATA_ATTR:PE,DOCTYPE_NAME:Bp,ERB_EXPR:QE,IS_ALLOWED_URI:Fp,IS_SCRIPT_OR_DATA:XE,MUSTACHE_EXPR:VE,TMPLIT_EXPR:HE}),Po={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zE=function(){return typeof window>"u"?null:window},qE=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let l=null,c="data-tt-policy-suffix";a&&a.hasAttribute(c)&&(l=a.getAttribute(c));let p="dompurify"+(l?"#"+l:"");try{return n.createPolicy(p,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},wp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Up(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zE(),n=xe=>Up(xe);if(n.version="3.3.1",n.removed=[],!r||!r.document||r.document.nodeType!==Po.document||!r.Element)return n.isSupported=!1,n;let{document:a}=r,l=a,c=l.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:y,Element:I,NodeFilter:U,NamedNodeMap:A=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:F,DOMParser:O,trustedTypes:X}=r,S=I.prototype,D=Ho(S,"cloneNode"),_=Ho(S,"remove"),M=Ho(S,"nextSibling"),J=Ho(S,"childNodes"),q=Ho(S,"parentNode");if(typeof g=="function"){let xe=a.createElement("template");xe.content&&xe.content.ownerDocument&&(a=xe.content.ownerDocument)}let te,ae="",{implementation:R,createNodeIterator:w,createDocumentFragment:H,getElementsByTagName:$}=a,{importNode:pe}=l,k=wp();n.isSupported=typeof Lp=="function"&&typeof q=="function"&&R&&R.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:oe,ERB_EXPR:x,TMPLIT_EXPR:ee,DATA_ATTR:Z,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:_e}=Sp,{IS_ALLOWED_URI:we}=Sp,re=null,De=We({},[...Ap,...jl,...zl,...ql,...Rp]),Ce=null,ve=We({},[..._p,...Kl,...Np,...Es]),se=Object.seal($l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),le=null,ye=null,Me=Object.seal($l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ue=!0,Fe=!0,Pe=!1,Oe=!0,Le=!1,Re=!0,Ze=!1,Be=!1,Ve=!1,Ie=!1,Tt=!1,Et=!1,br=!0,lt=!1,Qt="user-content-",je=!0,Je=!1,mt={},ut=null,ze=We({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),kt=null,ft=We({},["audio","video","img","source","image","track"]),Ot=null,vr=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",Tn="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml",Fr=Ne,Te=!1,xr=null,Ct=We({},[yr,Tn,Ne],Xl),qe=We({},["mi","mo","mn","ms","mtext"]),Ke=We({},["annotation-xml"]),lr=We({},["title","style","font","a","script"]),yt=null,Ir=["application/xhtml+xml","text/html"],At="text/html",rt=null,pt=null,Vr=a.createElement("form"),En=function(N){return N instanceof RegExp||N instanceof Function},Yt=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pt&&pt===N)){if((!N||typeof N!="object")&&(N={}),N=$r(N),yt=Ir.indexOf(N.PARSER_MEDIA_TYPE)===-1?At:N.PARSER_MEDIA_TYPE,rt=yt==="application/xhtml+xml"?Xl:Cs,re=Zr(N,"ALLOWED_TAGS")?We({},N.ALLOWED_TAGS,rt):De,Ce=Zr(N,"ALLOWED_ATTR")?We({},N.ALLOWED_ATTR,rt):ve,xr=Zr(N,"ALLOWED_NAMESPACES")?We({},N.ALLOWED_NAMESPACES,Xl):Ct,Ot=Zr(N,"ADD_URI_SAFE_ATTR")?We($r(vr),N.ADD_URI_SAFE_ATTR,rt):vr,kt=Zr(N,"ADD_DATA_URI_TAGS")?We($r(ft),N.ADD_DATA_URI_TAGS,rt):ft,ut=Zr(N,"FORBID_CONTENTS")?We({},N.FORBID_CONTENTS,rt):ze,le=Zr(N,"FORBID_TAGS")?We({},N.FORBID_TAGS,rt):$r({}),ye=Zr(N,"FORBID_ATTR")?We({},N.FORBID_ATTR,rt):$r({}),mt=Zr(N,"USE_PROFILES")?N.USE_PROFILES:!1,ue=N.ALLOW_ARIA_ATTR!==!1,Fe=N.ALLOW_DATA_ATTR!==!1,Pe=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=N.SAFE_FOR_TEMPLATES||!1,Re=N.SAFE_FOR_XML!==!1,Ze=N.WHOLE_DOCUMENT||!1,Ie=N.RETURN_DOM||!1,Tt=N.RETURN_DOM_FRAGMENT||!1,Et=N.RETURN_TRUSTED_TYPE||!1,Ve=N.FORCE_BODY||!1,br=N.SANITIZE_DOM!==!1,lt=N.SANITIZE_NAMED_PROPS||!1,je=N.KEEP_CONTENT!==!1,Je=N.IN_PLACE||!1,we=N.ALLOWED_URI_REGEXP||Fp,Fr=N.NAMESPACE||Ne,qe=N.MATHML_TEXT_INTEGRATION_POINTS||qe,Ke=N.HTML_INTEGRATION_POINTS||Ke,se=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&En(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&En(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Fe=!1),Tt&&(Ie=!0),mt&&(re=We({},Rp),Ce=[],mt.html===!0&&(We(re,Ap),We(Ce,_p)),mt.svg===!0&&(We(re,jl),We(Ce,Kl),We(Ce,Es)),mt.svgFilters===!0&&(We(re,zl),We(Ce,Kl),We(Ce,Es)),mt.mathMl===!0&&(We(re,ql),We(Ce,Np),We(Ce,Es))),N.ADD_TAGS&&(typeof N.ADD_TAGS=="function"?Me.tagCheck=N.ADD_TAGS:(re===De&&(re=$r(re)),We(re,N.ADD_TAGS,rt))),N.ADD_ATTR&&(typeof N.ADD_ATTR=="function"?Me.attributeCheck=N.ADD_ATTR:(Ce===ve&&(Ce=$r(Ce)),We(Ce,N.ADD_ATTR,rt))),N.ADD_URI_SAFE_ATTR&&We(Ot,N.ADD_URI_SAFE_ATTR,rt),N.FORBID_CONTENTS&&(ut===ze&&(ut=$r(ut)),We(ut,N.FORBID_CONTENTS,rt)),N.ADD_FORBID_CONTENTS&&(ut===ze&&(ut=$r(ut)),We(ut,N.ADD_FORBID_CONTENTS,rt)),je&&(re["#text"]=!0),Ze&&We(re,["html","head","body"]),re.table&&(We(re,["tbody"]),delete le.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=N.TRUSTED_TYPES_POLICY,ae=te.createHTML("")}else te===void 0&&(te=qE(X,c)),te!==null&&typeof ae=="string"&&(ae=te.createHTML(""));or&&or(N),pt=N}},ci=We({},[...jl,...zl,...ZE]),on=We({},[...ql,...DE]),di=function(N){let K=q(N);(!K||!K.tagName)&&(K={namespaceURI:Fr,tagName:"template"});let be=Cs(N.tagName),Xe=Cs(K.tagName);return xr[N.namespaceURI]?N.namespaceURI===Tn?K.namespaceURI===Ne?be==="svg":K.namespaceURI===yr?be==="svg"&&(Xe==="annotation-xml"||qe[Xe]):!!ci[be]:N.namespaceURI===yr?K.namespaceURI===Ne?be==="math":K.namespaceURI===Tn?be==="math"&&Ke[Xe]:!!on[be]:N.namespaceURI===Ne?K.namespaceURI===Tn&&!Ke[Xe]||K.namespaceURI===yr&&!qe[Xe]?!1:!on[be]&&(lr[be]||!ci[be]):!!(yt==="application/xhtml+xml"&&xr[N.namespaceURI]):!1},Ht=function(N){Do(n.removed,{element:N});try{q(N).removeChild(N)}catch{_(N)}},Pt=function(N,K){try{Do(n.removed,{attribute:K.getAttributeNode(N),from:K})}catch{Do(n.removed,{attribute:null,from:K})}if(K.removeAttribute(N),N==="is")if(Ie||Tt)try{Ht(K)}catch{}else try{K.setAttribute(N,"")}catch{}},jt=function(N){let K=null,be=null;if(Ve)N="<remove></remove>"+N;else{let Ue=Yl(N,/^[\r\n\t ]+/);be=Ue&&Ue[0]}yt==="application/xhtml+xml"&&Fr===Ne&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");let Xe=te?te.createHTML(N):N;if(Fr===Ne)try{K=new O().parseFromString(Xe,yt)}catch{}if(!K||!K.documentElement){K=R.createDocument(Fr,"template",null);try{K.documentElement.innerHTML=Te?ae:Xe}catch{}}let dt=K.body||K.documentElement;return N&&be&&dt.insertBefore(a.createTextNode(be),dt.childNodes[0]||null),Fr===Ne?$.call(K,Ze?"html":"body")[0]:Ze?K.documentElement:dt},Br=function(N){return w.call(N.ownerDocument||N,N,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},Cn=function(N){return N instanceof F&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof A)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},ur=function(N){return typeof y=="function"&&N instanceof y};function Tr(xe,N,K){Ts(xe,be=>{be.call(n,N,K,pt)})}let an=function(N){let K=null;if(Tr(k.beforeSanitizeElements,N,null),Cn(N))return Ht(N),!0;let be=rt(N.nodeName);if(Tr(k.uponSanitizeElement,N,{tagName:be,allowedTags:re}),Re&&N.hasChildNodes()&&!ur(N.firstElementChild)&&ir(/<[/\w!]/g,N.innerHTML)&&ir(/<[/\w!]/g,N.textContent)||N.nodeType===Po.progressingInstruction||Re&&N.nodeType===Po.comment&&ir(/<[/\w]/g,N.data))return Ht(N),!0;if(!(Me.tagCheck instanceof Function&&Me.tagCheck(be))&&(!re[be]||le[be])){if(!le[be]&&cr(be)&&(se.tagNameCheck instanceof RegExp&&ir(se.tagNameCheck,be)||se.tagNameCheck instanceof Function&&se.tagNameCheck(be)))return!1;if(je&&!ut[be]){let Xe=q(N)||N.parentNode,dt=J(N)||N.childNodes;if(dt&&Xe){let Ue=dt.length;for(let de=Ue-1;de>=0;--de){let Rt=D(dt[de],!0);Rt.__removalCount=(N.__removalCount||0)+1,Xe.insertBefore(Rt,M(N))}}}return Ht(N),!0}return N instanceof I&&!di(N)||(be==="noscript"||be==="noembed"||be==="noframes")&&ir(/<\/no(script|embed|frames)/i,N.innerHTML)?(Ht(N),!0):(Le&&N.nodeType===Po.text&&(K=N.textContent,Ts([oe,x,ee],Xe=>{K=Vo(K,Xe," ")}),N.textContent!==K&&(Do(n.removed,{element:N.cloneNode()}),N.textContent=K)),Tr(k.afterSanitizeElements,N,null),!1)},fr=function(N,K,be){if(br&&(K==="id"||K==="name")&&(be in a||be in Vr))return!1;if(!(Fe&&!ye[K]&&ir(Z,K))){if(!(ue&&ir(ce,K))){if(!(Me.attributeCheck instanceof Function&&Me.attributeCheck(K,N))){if(!Ce[K]||ye[K]){if(!(cr(N)&&(se.tagNameCheck instanceof RegExp&&ir(se.tagNameCheck,N)||se.tagNameCheck instanceof Function&&se.tagNameCheck(N))&&(se.attributeNameCheck instanceof RegExp&&ir(se.attributeNameCheck,K)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(K,N))||K==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&ir(se.tagNameCheck,be)||se.tagNameCheck instanceof Function&&se.tagNameCheck(be))))return!1}else if(!Ot[K]){if(!ir(we,Vo(be,Ge,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&N!=="script"&&OE(be,"data:")===0&&kt[N])){if(!(Pe&&!ir(ge,Vo(be,Ge,"")))){if(be)return!1}}}}}}}return!0},cr=function(N){return N!=="annotation-xml"&&Yl(N,_e)},Qr=function(N){Tr(k.beforeSanitizeAttributes,N,null);let{attributes:K}=N;if(!K||Cn(N))return;let be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},Xe=K.length;for(;Xe--;){let dt=K[Xe],{name:Ue,namespaceURI:de,value:Rt}=dt,Ar=rt(Ue),Zt=Rt,v=Ue==="value"?Zt:ME(Zt);if(be.attrName=Ar,be.attrValue=v,be.keepAttr=!0,be.forceKeepAttr=void 0,Tr(k.uponSanitizeAttribute,N,be),v=be.attrValue,lt&&(Ar==="id"||Ar==="name")&&(Pt(Ue,N),v=Qt+v),Re&&ir(/((--!?|])>)|<\/(style|title|textarea)/i,v)){Pt(Ue,N);continue}if(Ar==="attributename"&&Yl(v,"href")){Pt(Ue,N);continue}if(be.forceKeepAttr)continue;if(!be.keepAttr){Pt(Ue,N);continue}if(!Oe&&ir(/\/>/i,v)){Pt(Ue,N);continue}Le&&Ts([oe,x,ee],V=>{v=Vo(v,V," ")});let E=rt(N.nodeName);if(!fr(E,Ar,v)){Pt(Ue,N);continue}if(te&&typeof X=="object"&&typeof X.getAttributeType=="function"&&!de)switch(X.getAttributeType(E,Ar)){case"TrustedHTML":{v=te.createHTML(v);break}case"TrustedScriptURL":{v=te.createScriptURL(v);break}}if(v!==Zt)try{de?N.setAttributeNS(de,Ue,v):N.setAttribute(Ue,v),Cn(N)?Ht(N):Cp(n.removed)}catch{Pt(Ue,N)}}Tr(k.afterSanitizeAttributes,N,null)},An=function xe(N){let K=null,be=Br(N);for(Tr(k.beforeSanitizeShadowDOM,N,null);K=be.nextNode();)Tr(k.uponSanitizeShadowNode,K,null),an(K),Qr(K),K.content instanceof p&&xe(K.content);Tr(k.afterSanitizeShadowDOM,N,null)};return n.sanitize=function(xe){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,be=null,Xe=null,dt=null;if(Te=!xe,Te&&(xe="<!-->"),typeof xe!="string"&&!ur(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw Qo("dirty is not a string, aborting")}else throw Qo("toString is not a function");if(!n.isSupported)return xe;if(Be||Yt(N),n.removed=[],typeof xe=="string"&&(Je=!1),Je){if(xe.nodeName){let Rt=rt(xe.nodeName);if(!re[Rt]||le[Rt])throw Qo("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof y)K=jt("<!---->"),be=K.ownerDocument.importNode(xe,!0),be.nodeType===Po.element&&be.nodeName==="BODY"||be.nodeName==="HTML"?K=be:K.appendChild(be);else{if(!Ie&&!Le&&!Ze&&xe.indexOf("<")===-1)return te&&Et?te.createHTML(xe):xe;if(K=jt(xe),!K)return Ie?null:Et?ae:""}K&&Ve&&Ht(K.firstChild);let Ue=Br(Je?xe:K);for(;Xe=Ue.nextNode();)an(Xe),Qr(Xe),Xe.content instanceof p&&An(Xe.content);if(Je)return xe;if(Ie){if(Tt)for(dt=H.call(K.ownerDocument);K.firstChild;)dt.appendChild(K.firstChild);else dt=K;return(Ce.shadowroot||Ce.shadowrootmode)&&(dt=pe.call(l,dt,!0)),dt}let de=Ze?K.outerHTML:K.innerHTML;return Ze&&re["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&ir(Bp,K.ownerDocument.doctype.name)&&(de="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
40
+ `+de),Le&&Ts([oe,x,ee],Rt=>{de=Vo(de,Rt," ")}),te&&Et?te.createHTML(de):de},n.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(xe),Be=!0},n.clearConfig=function(){pt=null,Be=!1},n.isValidAttribute=function(xe,N,K){pt||Yt({});let be=rt(xe),Xe=rt(N);return fr(be,Xe,K)},n.addHook=function(xe,N){typeof N=="function"&&Do(k[xe],N)},n.removeHook=function(xe,N){if(N!==void 0){let K=UE(k[xe],N);return K===-1?void 0:kE(k[xe],K,1)[0]}return Cp(k[xe])},n.removeHooks=function(xe){k[xe]=[]},n.removeAllHooks=function(){k=wp()},n}var Jo=Up();var Dr=rr(cg()),ai=class{constructor(n){this.namespace=n}set(n,a,l,c){if(Dr.default.enabled&&(this.removeExpiredKeys(),n&&a!==void 0)){a.documentElement&&(a=new XMLSerializer().serializeToString(a.documentElement));try{Dr.default.set(n,{namespace:this.namespace,val:a,exp:l,time:new Date().getTime()/1e3})}catch(p){if(p instanceof Error){let g=p;if(g.quotaExceeded=tA(p),g.quotaExceeded&&c)c(p);else throw g}throw p}}}remove(n){Dr.default.enabled&&n&&Dr.default.remove(n)}removeExpiredKeys(){Dr.default.enabled&&Dr.default.each((n,a)=>{n&&n.exp&&new Date().getTime()/1e3-n.time>n.exp&&this.remove(a)})}removeAll(){Dr.default.enabled}removeNamespace(){Dr.default.each((n,a)=>{n.namespace&&n.namespace===this.namespace&&this.remove(a)})}get(n){if(Dr.default.enabled&&n)if(this.removeExpiredKeys(),n){var a=Dr.default.get(n);return a?a.val:void 0}else return}};function tA(r){var n=!1;if(r)if(r.code)switch(r.code){case 22:n=!0;break;case 1014:r.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(n=!0);break}else r.number===-2147024882&&(n=!0);return n}var{sanitize:lk}=Jo;function en(r){if(r&&r.trim().indexOf("<svg")==0){var n=new DOMParser,a=n.parseFromString(r,"text/xml"),l=a.documentElement;l.setAttribute("aria-hidden","true");var c=document.createElement("div");return c.className="svgImg",c.appendChild(l),c}throw new Error("No svg string given. Cannot draw")}function qo(r){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r.width} ${r.height}" aria-hidden="true"><path fill="currentColor" d="${r.svgPathData}"></path></svg>`}function Ko(r,n){if(r)return r.classList?r.classList.contains(n):!!r.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}function ot(r,...n){if(r)for(let a of n)r.classList?r.classList.add(a):Ko(r,a)||(r.className+=" "+a)}function bn(r,n){if(r){if(r.classList)r.classList.remove(n);else if(Ko(r,n)){var a=new RegExp("(\\s|^)"+n+"(\\s|$)");r.className=r.className.replace(a," ")}}}function cu(r,n){if(typeof r=="string"){let a=JSON.parse(r);if(n&&a.results)for(let l in a.results.bindings)a.results.bindings[l]=n(a.results.bindings[l]);return a}if(typeof r=="object"&&r.constructor==={}.constructor){if(n&&r.results)for(let a in r.results.bindings)r.results.bindings[a]=n(r.results.bindings[a]);return r}throw new Error("Could not parse json")}var Ug=rr(Fg());var ea="http://www.w3.org/1999/02/22-rdf-syntax-ns#",ta="http://www.w3.org/2001/XMLSchema#",Ns="http://www.w3.org/2000/10/swap/",mr={xsd:{decimal:`${ta}decimal`,boolean:`${ta}boolean`,double:`${ta}double`,integer:`${ta}integer`,string:`${ta}string`},rdf:{type:`${ea}type`,nil:`${ea}nil`,first:`${ea}first`,rest:`${ea}rest`,langString:`${ea}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Ns}reify#forSome`,forAll:`${Ns}reify#forAll`},log:{implies:`${Ns}log#implies`,isImpliedBy:`${Ns}log#isImpliedBy`}};var{xsd:Ss}=mr,UA=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Bg={"\\":"\\","'":"'",'"':'"',n:`
41
+ `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},kA=/[\x00-\x20<>\\"\{\}\|\^\`]/,OA={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},MA=/$0^/,ra=class{constructor(n){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,n=n||{},this._isImpliedBy=n.isImpliedBy,this._lineMode=!!n.lineMode){this._n3Mode=!1;for(let a in this)!(a in OA)&&this[a]instanceof RegExp&&(this[a]=MA)}else this._n3Mode=n.n3!==!1;this.comments=!!n.comments,this._literalClosingPos=0}_tokenizeToEnd(n,a){let l=this._input,c=l.length;for(;;){let y,I;for(;y=this._newline.exec(l);)this.comments&&(I=this._comment.exec(y[0]))&&p("comment",I[1],"",this._line,y[0].length),l=l.substr(y[0].length,l.length),c=l.length,this._line++;if(!y&&(y=this._whitespace.exec(l))&&(l=l.substr(y[0].length,l.length)),this._endOfFile.test(l))return a&&(this.comments&&(I=this._comment.exec(l))&&p("comment",I[1],"",this._line,l.length),l=null,p("eof","","",this._line,0)),this._input=l;let U=this._line,A=l[0],F="",O="",X="",S=null,D=0,_=!1;switch(A){case"^":if(l.length<3)break;if(l[1]==="^"){if(this._previousMarker="^^",l=l.substr(2),l[0]!=="<"){_=!0;break}}else{this._n3Mode&&(D=1,F="^");break}case"<":if(S=this._unescapedIri.exec(l))F="IRI",O=S[1];else if(S=this._iri.exec(l)){if(O=this._unescape(S[1]),O===null||kA.test(O))return g(this);F="IRI"}else l.length>1&&l[1]==="<"?(F="<<",D=2):this._n3Mode&&l.length>1&&l[1]==="="&&(D=2,this._isImpliedBy?(F="abbreviation",O="<"):(F="inverse",O=">"));break;case">":l.length>1&&l[1]===">"&&(F=">>",D=2);break;case"_":((S=this._blank.exec(l))||a&&(S=this._blank.exec(`${l} `)))&&(F="blank",X="_",O=S[1]);break;case'"':if(S=this._simpleQuotedString.exec(l))O=S[1];else if({value:O,matchLength:D}=this._parseLiteral(l),O===null)return g(this);(S!==null||D!==0)&&(F="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(S=this._simpleApostropheString.exec(l))O=S[1];else if({value:O,matchLength:D}=this._parseLiteral(l),O===null)return g(this);(S!==null||D!==0)&&(F="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(S=this._variable.exec(l))&&(F="var",O=S[0]);break;case"@":this._previousMarker==="literal"&&(S=this._langcode.exec(l))?(F="langcode",O=S[1]):(S=this._keyword.exec(l))&&(F=S[0]);break;case".":if(l.length===1?a:l[1]<"0"||l[1]>"9"){F=".",D=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(S=this._number.exec(l)||a&&(S=this._number.exec(`${l} `)))&&(F="literal",O=S[0],X=typeof S[1]=="string"?Ss.double:typeof S[2]=="string"?Ss.decimal:Ss.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(S=this._sparqlKeyword.exec(l))?F=S[0].toUpperCase():_=!0;break;case"f":case"t":(S=this._boolean.exec(l))?(F="literal",O=S[0],X=Ss.boolean):_=!0;break;case"a":(S=this._shortPredicates.exec(l))?(F="abbreviation",O="a"):_=!0;break;case"=":this._n3Mode&&l.length>1&&(F="abbreviation",l[1]!==">"?(D=1,O="="):(D=2,O=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(D=1,F=A);break;case"{":!this._lineMode&&l.length>=2&&(l[1]==="|"?(F="{|",D=2):(F=A,D=1));break;case"|":l.length>=2&&l[1]==="}"&&(F="|}",D=2);break;default:_=!0}if(_&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(S=this._prefix.exec(l))?(F="prefix",O=S[1]||""):((S=this._prefixed.exec(l))||a&&(S=this._prefixed.exec(`${l} `)))&&(F="prefixed",X=S[1]||"",O=this._unescape(S[2]))),this._previousMarker==="^^")switch(F){case"prefixed":F="type";break;case"IRI":F="typeIRI";break;default:F=""}if(!F)return a||!/^'''|^"""/.test(l)&&/\n|\r/.test(l)?g(this):this._input=l;let M=D||S[0].length,J=p(F,O,X,U,M);this.previousToken=J,this._previousMarker=F,l=l.substr(M,l.length)}function p(y,I,U,A,F){let O=l?c-l.length:c,X=O+F,S={type:y,value:I,prefix:U,line:A,start:O,end:X};return n(null,S),S}function g(y){n(y._syntaxError(/^\S*/.exec(l)[0]))}}_unescape(n){let a=!1,l=n.replace(UA,(c,p,g,y)=>{if(typeof p=="string")return String.fromCharCode(Number.parseInt(p,16));if(typeof g=="string"){let I=Number.parseInt(g,16);return I<=65535?String.fromCharCode(Number.parseInt(g,16)):String.fromCharCode(55296+((I-=65536)>>10),56320+(I&1023))}return y in Bg?Bg[y]:(a=!0,"")});return a?null:l}_parseLiteral(n){if(n.length>=3){let a=n.match(/^(?:"""|"|'''|'|)/)[0],l=a.length,c=Math.max(this._literalClosingPos,l);for(;(c=n.indexOf(a,c))>0;){let p=0;for(;n[c-p-1]==="\\";)p++;if(p%2===0){let g=n.substring(l,c),y=g.split(/\r\n|\r|\n/).length-1,I=c+l;if(l===1&&y!==0||l===3&&this._lineMode)break;return this._line+=y,{value:this._unescape(g),matchLength:I}}c++}this._literalClosingPos=n.length-l+1}return{value:"",matchLength:0}}_syntaxError(n){this._input=null;let a=new Error(`Unexpected "${n}" on line ${this._line}.`);return a.context={token:void 0,line:this._line,previousToken:this.previousToken},a}_readStartingBom(n){return n.startsWith("\uFEFF")?n.substr(1):n}tokenize(n,a){if(this._line=1,typeof n=="string")if(this._input=this._readStartingBom(n),typeof a=="function")queueMicrotask(()=>this._tokenizeToEnd(a,!0));else{let l=[],c;if(this._tokenizeToEnd((p,g)=>p?c=p:l.push(g),!0),c)throw c;return l}else this._pendingBuffer=null,typeof n.setEncoding=="function"&&n.setEncoding("utf8"),n.on("data",l=>{this._input!==null&&l.length!==0&&(this._pendingBuffer&&(l=Ug.Buffer.concat([this._pendingBuffer,l]),this._pendingBuffer=null),l[l.length-1]&128?this._pendingBuffer=l:(typeof this._input>"u"?this._input=this._readStartingBom(typeof l=="string"?l:l.toString()):this._input+=l,this._tokenizeToEnd(a,!1)))}),n.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(a,!0)}),n.on("error",a)}};var{rdf:GA,xsd:io}=mr,oa,WA=0;var ZA={namedNode:Og,blankNode:Mg,variable:Wg,literal:Gg,defaultGraph:DA,quad:Au,triple:Au,fromTerm:na,fromQuad:Zg},kg=ZA,yn=class r{constructor(n){this.id=n}get value(){return this.id}equals(n){return n instanceof r?this.id===n.id:!!n&&this.termType===n.termType&&this.value===n.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},ws=class extends yn{get termType(){return"NamedNode"}},ia=class r extends yn{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){let n=this.id,a=n.lastIndexOf('"')+1;return a<n.length&&n[a++]==="@"?n.substr(a).toLowerCase():""}get datatype(){return new ws(this.datatypeString)}get datatypeString(){let n=this.id,a=n.lastIndexOf('"')+1,l=a<n.length?n[a]:"";return l==="^"?n.substr(a+2):l!=="@"?io.string:GA.langString}equals(n){return n instanceof r?this.id===n.id:!!n&&!!n.datatype&&this.termType===n.termType&&this.value===n.value&&this.language===n.language&&this.datatype.value===n.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},Tu=class extends yn{constructor(n){super(`_:${n}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},Eu=class extends yn{constructor(n){super(`?${n}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},Cu=class extends yn{constructor(){return super(""),oa||this}get termType(){return"DefaultGraph"}equals(n){return this===n||!!n&&this.termType===n.termType}};oa=new Cu;var Ls=class extends yn{constructor(n,a,l,c){super(""),this._subject=n,this._predicate=a,this._object=l,this._graph=c||oa}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(n){return!!n&&this._subject.equals(n.subject)&&this._predicate.equals(n.predicate)&&this._object.equals(n.object)&&this._graph.equals(n.graph)}};function Og(r){return new ws(r)}function Mg(r){return new Tu(r||`n3-${WA++}`)}function Gg(r,n){if(typeof n=="string")return new ia(`"${r}"@${n.toLowerCase()}`);let a=n?n.value:"";return a===""&&(typeof r=="boolean"?a=io.boolean:typeof r=="number"&&(Number.isFinite(r)?a=Number.isInteger(r)?io.integer:io.double:(a=io.double,Number.isNaN(r)||(r=r>0?"INF":"-INF")))),a===""||a===io.string?new ia(`"${r}"`):new ia(`"${r}"^^${a}`)}function Wg(r){return new Eu(r)}function DA(){return oa}function Au(r,n,a,l){return new Ls(r,n,a,l)}function na(r){if(r instanceof yn)return r;switch(r.termType){case"NamedNode":return Og(r.value);case"BlankNode":return Mg(r.value);case"Variable":return Wg(r.value);case"DefaultGraph":return oa;case"Literal":return Gg(r.value,r.language||r.datatype);case"Quad":return Zg(r);default:throw new Error(`Unexpected termType: ${r.termType}`)}}function Zg(r){if(r instanceof Ls)return r;if(r.termType!=="Quad")throw new Error(`Unexpected termType: ${r.termType}`);return Au(na(r.subject),na(r.predicate),na(r.object),na(r.graph))}var Dg=0,ui=class{constructor(n){this._contextStack=[],this._graph=null,n=n||{},this._setBase(n.baseIRI),n.factory&&Vg(this,n.factory);let a=typeof n.format=="string"?n.format.match(/\w*$/)[0].toLowerCase():"",l=/turtle/.test(a),c=/trig/.test(a),p=/triple/.test(a),g=/quad/.test(a),y=this._n3Mode=/n3/.test(a),I=p||g;(this._supportsNamedGraphs=!(l||y))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(l||c||p||y),this._isImpliedBy=n.isImpliedBy,this._supportsRDFStar=a===""||/star|\*$/.test(a),I&&(this._resolveRelativeIRI=U=>null),this._blankNodePrefix=typeof n.blankNodePrefix!="string"?"":n.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=n.lexer||new ra({lineMode:I,n3:y,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!n.explicitQuantifiers}static _resetBlankNodePrefix(){Dg=0}_setBase(n){if(!n)this._base="",this._basePath="";else{let a=n.indexOf("#");a>=0&&(n=n.substr(0,a)),this._base=n,this._basePath=n.indexOf("/")<0?n:n.replace(/[^\/?]*(?:\?.*)?$/,""),n=n.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=n[0],this._baseScheme=n[1]}}_saveContext(n,a,l,c,p){let g=this._n3Mode;this._contextStack.push({type:n,subject:l,predicate:c,object:p,graph:a,inverse:g?this._inversePredicate:!1,blankPrefix:g?this._prefixes._:"",quantified:g?this._quantified:null}),g&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(n,a){let l=this._contextStack.pop();if(!l||l.type!==n)return this._error(`Unexpected ${a.type}`,a);this._subject=l.subject,this._predicate=l.predicate,this._object=l.object,this._graph=l.graph,this._n3Mode&&(this._inversePredicate=l.inverse,this._prefixes._=l.blankPrefix,this._quantified=l.quantified)}_readInTopContext(n){switch(n.type){case"eof":return this._graph!==null?this._error("Unclosed graph",n):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(n)}}_readEntity(n,a){let l;switch(n.type){case"IRI":case"typeIRI":let c=this._resolveIRI(n.value);if(c===null)return this._error("Invalid IRI",n);l=this._factory.namedNode(c);break;case"type":case"prefixed":let p=this._prefixes[n.prefix];if(p===void 0)return this._error(`Undefined prefix "${n.prefix}:"`,n);l=this._factory.namedNode(p+n.value);break;case"blank":l=this._factory.blankNode(this._prefixes[n.prefix]+n.value);break;case"var":l=this._factory.variable(n.value.substr(1));break;default:return this._error(`Expected entity but got ${n.type}`,n)}return!a&&this._n3Mode&&l.id in this._quantified&&(l=this._quantified[l.id]),l}_readSubject(n){switch(this._predicate=null,n.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",n);case"}":return this._readPunctuation(n);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',n);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',n);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",n);if(n.prefix.length===0)return this._literalValue=n.value,this._completeSubjectLiteral;this._subject=this._factory.literal(n.value,this._factory.namedNode(n.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",n);default:if((this._subject=this._readEntity(n))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(n){let a=n.type;switch(a){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[n.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${a}`,n):(this._subject=null,a==="]"?this._readBlankNodeTail(n):this._readPunctuation(n));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",n);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",n);default:if((this._predicate=this._readEntity(n))===void 0)return}return this._readObject}_readObject(n){switch(n.type){case"literal":if(n.prefix.length===0)return this._literalValue=n.value,this._readDataTypeOrLang;this._object=this._factory.literal(n.value,this._factory.namedNode(n.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",n);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",n);default:if((this._object=this._readEntity(n))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(n){return n.type==="{"?this._readGraph(n):this._readPredicate(n)}_readGraph(n){return n.type!=="{"?this._error(`Expected graph but got ${n.type}`,n):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(n){return n.type==="]"?(this._subject=null,this._readBlankNodeTail(n)):(this._predicate=null,this._readPredicate(n))}_readBlankNodeTail(n){if(n.type!=="]")return this._readBlankNodePunctuation(n);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);let a=this._predicate===null;return this._restoreContext("blank",n),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:a?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(n){switch(n.type){case".":case"}":return this._subject=null,this._readPunctuation(n);default:return this._readPredicate(n)}}_readListItem(n){let a=null,l=null,c=this._readListItem,p=this._subject,g=this._contextStack,y=g[g.length-1];switch(n.type){case"[":this._saveContext("blank",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this._subject=a=this._factory.blankNode()),c=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",n),g.length!==0&&g[g.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(c=this._readPredicate,this._subject===this.RDF_NIL)return c}else if(c=this._getContextEndReader(),this._object===this.RDF_NIL)return c;l=this.RDF_NIL;break;case"literal":n.prefix.length===0?(this._literalValue=n.value,c=this._readListItemDataTypeOrLang):(a=this._factory.literal(n.value,this._factory.namedNode(n.prefix)),c=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",n);default:if((a=this._readEntity(n))===void 0)return}if(l===null&&(this._subject=l=this._factory.blankNode()),p===null?y.predicate===null?y.subject=l:y.object=l:this._emit(p,this.RDF_REST,l,this._graph),a!==null){if(this._n3Mode&&(n.type==="IRI"||n.type==="prefixed"))return this._saveContext("item",this._graph,l,this.RDF_FIRST,a),this._subject=a,this._predicate=null,this._getPathReader(this._readListItem);this._emit(l,this.RDF_FIRST,a,this._graph)}return c}_readDataTypeOrLang(n){return this._completeObjectLiteral(n,!1)}_readListItemDataTypeOrLang(n){return this._completeObjectLiteral(n,!0)}_completeLiteral(n){let a=this._factory.literal(this._literalValue);switch(n.type){case"type":case"typeIRI":let l=this._readEntity(n);if(l===void 0)return;a=this._factory.literal(this._literalValue,l),n=null;break;case"langcode":a=this._factory.literal(this._literalValue,n.value),n=null;break}return{token:n,literal:a}}_completeSubjectLiteral(n){return this._subject=this._completeLiteral(n).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(n,a){let l=this._completeLiteral(n);if(l)return this._object=l.literal,a&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),l.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(l.token))}_readFormulaTail(n){return n.type!=="}"?this._readPunctuation(n):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",n),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(n){let a,l=this._graph,c=this._subject,p=this._inversePredicate;switch(n.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",n);if(this._n3Mode)return this._readFormulaTail(n);this._graph=null;case".":this._subject=null,a=this._contextStack.length?this._readSubject:this._readInTopContext,p&&(this._inversePredicate=!1);break;case";":a=this._readPredicate;break;case",":a=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",n);let g=this._predicate,y=this._object;this._subject=this._factory.quad(c,g,y,this.DEFAULTGRAPH),a=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",n);this._subject=null,a=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(l=this._readEntity(n))!==void 0){a=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,n)}if(c!==null){let g=this._predicate,y=this._object;p?this._emit(y,g,c,l):this._emit(c,g,y,l)}return a}_readBlankNodePunctuation(n){let a;switch(n.type){case";":a=this._readPredicate;break;case",":a=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,n)}return this._emit(this._subject,this._predicate,this._object,this._graph),a}_readQuadPunctuation(n){return n.type!=="."?this._error("Expected dot to follow quad",n):this._readInTopContext}_readPrefix(n){return n.type!=="prefix"?this._error("Expected prefix to follow @prefix",n):(this._prefix=n.value,this._readPrefixIRI)}_readPrefixIRI(n){if(n.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,n);let a=this._readEntity(n);return this._prefixes[this._prefix]=a.value,this._prefixCallback(this._prefix,a),this._readDeclarationPunctuation}_readBaseIRI(n){let a=n.type==="IRI"&&this._resolveIRI(n.value);return a?(this._setBase(a),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",n)}_readNamedGraphLabel(n){switch(n.type){case"IRI":case"blank":case"prefixed":return this._readSubject(n),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",n)}}_readNamedGraphBlankLabel(n){return n.type!=="]"?this._error("Invalid graph label",n):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(n){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(n)):n.type!=="."?this._error("Expected declaration to end with a dot",n):this._readInTopContext}_readQuantifierList(n){let a;switch(n.type){case"IRI":case"prefixed":if((a=this._readEntity(n,!0))!==void 0)break;default:return this._error(`Unexpected ${n.type}`,n)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,a,this.QUANTIFIERS_GRAPH)):this._quantified[a.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(n){return n.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(n))}_getPathReader(n){return this._afterPath=n,this._readPath}_readPath(n){switch(n.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:let a=this._contextStack,l=a.length&&a[a.length-1];if(l&&l.type==="item"){let c=this._subject;this._restoreContext("item",n),this._emit(this._subject,this.RDF_FIRST,c,this._graph)}return this._afterPath(n)}}_readForwardPath(n){let a,l,c=this._factory.blankNode();if((l=this._readEntity(n))!==void 0)return this._predicate===null?(a=this._subject,this._subject=c):(a=this._object,this._object=c),this._emit(a,l,c,this._graph),this._readPath}_readBackwardPath(n){let a=this._factory.blankNode(),l,c;if((l=this._readEntity(n))!==void 0)return this._predicate===null?(c=this._subject,this._subject=a):(c=this._object,this._object=a),this._emit(a,l,c,this._graph),this._readPath}_readRDFStarTailOrGraph(n){return n.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(n))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,n):this._readRDFStarTail(n)}_readRDFStarTail(n){if(n.type!==">>")return this._error(`Expected >> but got ${n.type}`,n);let a=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",n),this._subject===null?(this._subject=a,this._readPredicate):(this._object=a,this._getContextEndReader())}_getContextEndReader(){let n=this._contextStack;if(!n.length)return this._readPunctuation;switch(n[n.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(n,a,l,c){this._callback(null,this._factory.quad(n,a,l,c||this.DEFAULTGRAPH))}_error(n,a){let l=new Error(`${n} on line ${a.line}.`);l.context={token:a,line:a.line,previousToken:this._lexer.previousToken},this._callback(l),this._callback=Fs}_resolveIRI(n){return/^[a-z][a-z0-9+.-]*:/i.test(n)?n:this._resolveRelativeIRI(n)}_resolveRelativeIRI(n){if(!n.length)return this._base;switch(n[0]){case"#":return this._base+n;case"?":return this._base.replace(/(?:\?.*)?$/,n);case"/":return(n[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(n);default:return/^[^/:]*:/.test(n)?null:this._removeDotSegments(this._basePath+n)}}_removeDotSegments(n){if(!/(^|\/)\.\.?($|[/#?])/.test(n))return n;let a=n.length,l="",c=-1,p=-1,g=0,y="/";for(;c<a;){switch(y){case":":if(p<0&&n[++c]==="/"&&n[++c]==="/")for(;(p=c+1)<a&&n[p]!=="/";)c=p;break;case"?":case"#":c=a;break;case"/":if(n[c+1]===".")switch(y=n[++c+1],y){case"/":l+=n.substring(g,c-1),g=c+1;break;case void 0:case"?":case"#":return l+n.substring(g,c)+n.substr(c+1);case".":if(y=n[++c+1],y===void 0||y==="/"||y==="?"||y==="#"){if(l+=n.substring(g,c-2),(g=l.lastIndexOf("/"))>=p&&(l=l.substr(0,g)),y!=="/")return`${l}/${n.substr(c+1)}`;g=c+1}}}y=n[++c]}return l+n.substring(g)}parse(n,a,l){let c,p,g;if(a&&(a.onQuad||a.onPrefix||a.onComment)?(c=a.onQuad,p=a.onPrefix,g=a.onComment):(c=a,p=l),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${Dg++}_`,this._prefixCallback=p||Fs,this._inversePredicate=!1,this._quantified=Object.create(null),!c){let I=[],U;if(this._callback=(A,F)=>{A?U=A:F&&I.push(F)},this._lexer.tokenize(n).every(A=>this._readCallback=this._readCallback(A)),U)throw U;return I}let y=(I,U)=>{I!==null?(this._callback(I),this._callback=Fs):this._readCallback&&(this._readCallback=this._readCallback(U))};g&&(this._lexer.comments=!0,y=(I,U)=>{I!==null?(this._callback(I),this._callback=Fs):this._readCallback&&(U.type==="comment"?g(U.value):this._readCallback=this._readCallback(U))}),this._callback=c,this._lexer.tokenize(n,y)}};function Fs(){}function Vg(r,n){r._factory=n,r.DEFAULTGRAPH=n.defaultGraph(),r.RDF_FIRST=n.namedNode(mr.rdf.first),r.RDF_REST=n.namedNode(mr.rdf.rest),r.RDF_NIL=n.namedNode(mr.rdf.nil),r.N3_FORALL=n.namedNode(mr.r.forAll),r.N3_FORSOME=n.namedNode(mr.r.forSome),r.ABBREVIATIONS={a:n.namedNode(mr.rdf.type),"=":n.namedNode(mr.owl.sameAs),">":n.namedNode(mr.log.implies),"<":n.namedNode(mr.log.isImpliedBy)},r.QUANTIFIERS_GRAPH=n.namedNode("urn:n3:quantifiers")}Vg(ui.prototype,kg);function Ru(r){if(r.termType==="NamedNode")return{value:r.value,type:"uri"};if(r.termType==="Literal"){let n={value:r.value,type:"literal"},a=r.language;a&&(n["xml:lang"]=a);let l=r.datatypeString;return l&&(n.datatype=l),n}return r.termType==="BlankNode"?{value:r.value,type:"bnode"}:{value:r.value,type:"uri"}}function Qg(r){let n=_u(r),a=["subject","predicate","object"],l=n.map(c=>({subject:Ru(c.subject),predicate:Ru(c.predicate),object:Ru(c.object)}));return{head:{vars:a},results:{bindings:l}}}function _u(r){return new ui().parse(r||"")}function QA(r){let n={vars:[]};for(let a=0;a<r.childNodes.length;a++){let l=r.childNodes[a];if(l.nodeName=="variable"){let c=l.getAttribute("name");c&&n.vars.push(c)}}return n}var HA=["uri","literal","bnode","typed-literal"];function PA(r,n){let a={bindings:[]};for(let l=0;l<r.childNodes.length;l++){let c=r.childNodes[l],p={};for(let g=0;g<c.childNodes.length;g++){let y=c.childNodes[g];if(y.nodeName=="binding"){let I=y.getAttribute("name");if(I)for(let U=0;U<y.childNodes.length;U++){let A=y.childNodes[U];if(A.nodeName==="#text"||HA.indexOf(A.nodeName)<0)continue;let F={type:A.nodeName,value:Hl(A.innerHTML)},O=A.getAttribute("datatype");O&&(F.datatype=O),p[I]=F}}}Is(p)||a.bindings.push(n(p))}return a}function JA(r){return r.innerHTML==="true"}function Nu(r,n){if(typeof r!="string")return;let l=new DOMParser().parseFromString(r,"text/xml");if(!l.childNodes.length)return;let c=l.childNodes[0],p={};for(let g=0;g<c.childNodes.length;g++){let y=c.childNodes[g];y.nodeName=="head"&&(p.head=QA(y)),y.nodeName=="results"&&(p.results=PA(y,n)),y.nodeName=="boolean"&&(p.boolean=JA(y))}return p}var Pg=rr(Hg());function Jg(r){let n=Pg.parse(r,{header:!0,skipEmptyLines:!0});if(n.meta.fields===void 0)throw new Error("Could not parse CSV, no headers found!");let a=n.meta.fields,c=n.data.map(g=>{let y={};for(let I in g)y[I]={value:g[I],type:"literal"};return y});return{head:{vars:a},results:{bindings:c}}}function Xg(r){let n=r.split(`
42
+ `);n.pop();let[a,...l]=n,c=a.split(" ").map(y=>y.substring(1)),p=l.map(y=>{let I={};for(let[U,A]of y.split(" ").entries()){let F=c[U];if(A[0]==="<")I[F]={value:A.substring(1,A.length-1),type:"uri"};else if(A[0]==='"'){let O=A.lastIndexOf('"'),X=A.substring(1,O);if(O===A.length-1)I[F]={value:X,type:"literal"};else if(O<A.lastIndexOf("@")){let S=A.substring(A.lastIndexOf("@")+1);I[F]={value:X,type:"literal","xml:lang":S}}else if(O<A.lastIndexOf("^^")){let S=A.substring(A.lastIndexOf("^^")+2);I[F]={value:X,type:"typed-literal",datatype:S}}}}return I});return{head:{vars:c},results:{bindings:p}}}function oo(r){return r==null?"":`${r}`}function Bs(r={}){let{separator:n,decimals:a}=r;return n?a?l=>l.toFixed(a).replace(".",n):l=>`${l}`.replace(".",n):a?l=>l.toFixed(a):l=>`${l}`}function xn(r={}){let n=typeof r.quote=="string"?r.quote:'"',a=typeof r.escapedQuote=="string"?r.escapedQuote:`${n}${n}`;if(!n||n===a)return c=>c;let l=new RegExp(n,"g");return c=>(c.includes(n)&&(c=c.replace(l,a)),`${n}${c}${n}`)}var XA='"';var Ok=new RegExp(XA,"g");function Us(r={stringFormatter:xn()}){return n=>r.stringFormatter(n.toString().slice(7,-1))}function ks(r={stringFormatter:xn()}){return n=>{if(n===null)return"";let a=JSON.stringify(n);return a===void 0?"":(a[0]==='"'&&(a=a.replace(/^"(.+)"$/,"$1")),r.stringFormatter(a))}}var YA=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function jA(r){var n,a,l;let c=[],p;for(;p=YA.exec(r);)c.push((l=(n=p[3])!==null&&n!==void 0?n:(a=p[1])===null||a===void 0?void 0:a.trim())!==null&&l!==void 0?l:p[0]);return c}function Lu(r,n,a){if(n in r){let p=r[n];return p===void 0?a:p}let l=Array.isArray(n)?n:jA(n,r),c=r;for(let p of l)if(c=c?.[p],c===void 0)return a;return c}function Os(r,n){try{return Array.isArray(n)?r.push(...n):r.push(n),r}catch{return r.concat(n)}}function aa(r,n){let a=!0;return r.reduce((l,c)=>(c==null&&(c=""),a?(a=!1,`${c}`):`${l}${n}${c}`),"")}var Fu;(function(r){r.header="header",r.undefined="undefined",r.boolean="boolean",r.number="number",r.bigint="bigint",r.string="string",r.symbol="symbol",r.function="function",r.object="object"})(Fu||(Fu={}));var fi=class{constructor(n){this.opts=this.preprocessOpts(n)}preprocessOpts(n){let a=Object.assign({},n);a.fields&&(a.fields=this.preprocessFieldsInfo(a.fields,a.defaultValue)),a.transforms=a.transforms||[];let l=a.formatters&&a.formatters.string||xn(),c=ks({stringFormatter:l}),p={header:l,undefined:oo,boolean:oo,number:Bs(),bigint:oo,string:l,symbol:Us({stringFormatter:l}),function:c,object:c};return a.formatters=Object.assign(Object.assign({},p),a.formatters),a.delimiter=a.delimiter||",",a.eol=a.eol||`
43
+ `,a.header=a.header!==!1,a.includeEmptyRows=a.includeEmptyRows||!1,a.withBOM=a.withBOM||!1,a}preprocessFieldsInfo(n,a){return n.map(l=>{if(typeof l=="string")return{label:l,value:c=>Lu(c,l,a)};if(typeof l=="object"){let c="default"in l?l.default:a;if(typeof l.value=="string"){let p=l.value;return{label:l.label||l.value,value:g=>Lu(g,p,c)}}if(typeof l.value=="function"){let p=l.label||l.value.name||"",g={label:p,default:c},y=l.value;return{label:p,value(I){let U=y(I,g);return U===void 0?c:U}}}}throw new Error("Invalid field info option. "+JSON.stringify(l))})}getHeader(){return aa(this.opts.fields.map(n=>this.opts.formatters.header(n.label)),this.opts.delimiter)}preprocessRow(n){return this.opts.transforms.reduce((a,l)=>a.map(c=>l(c)).reduce(Os,[]),[n])}processRow(n){if(!n)return;let a=this.opts.fields.map(l=>this.processCell(n,l));if(!(!this.opts.includeEmptyRows&&a.every(l=>l==="")))return aa(a,this.opts.delimiter)}processCell(n,a){return this.processValue(a.value(n))}processValue(n){let a=this.opts.formatters[typeof n];return a(n)}};var ao=class extends fi{constructor(n){super(n)}parse(n){let a=this.preprocessData(n);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(a.reduce((g,y)=>(Object.keys(y).forEach(I=>{g.includes(I)||g.push(I)}),g),[]),this.opts.defaultValue);let l=this.opts.header?this.getHeader():"",c=this.processData(a);return(this.opts.withBOM?"\uFEFF":"")+l+(l&&c?this.opts.eol:"")+c}preprocessData(n){let a=Array.isArray(n)?n:[n];if(!this.opts.fields){if(n==null||a.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof a[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?a:a.map(l=>this.preprocessRow(l)).reduce(Os,[])}processData(n){return aa(n.map(a=>this.processRow(a)).filter(a=>a),this.opts.eol)}};var Ut;(function(r){r[r.BACKSPACE=8]="BACKSPACE",r[r.FORM_FEED=12]="FORM_FEED",r[r.NEWLINE=10]="NEWLINE",r[r.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",r[r.TAB=9]="TAB",r[r.SPACE=32]="SPACE",r[r.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",r[r.QUOTATION_MARK=34]="QUOTATION_MARK",r[r.NUMBER_SIGN=35]="NUMBER_SIGN",r[r.DOLLAR_SIGN=36]="DOLLAR_SIGN",r[r.PERCENT_SIGN=37]="PERCENT_SIGN",r[r.AMPERSAND=38]="AMPERSAND",r[r.APOSTROPHE=39]="APOSTROPHE",r[r.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",r[r.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",r[r.ASTERISK=42]="ASTERISK",r[r.PLUS_SIGN=43]="PLUS_SIGN",r[r.COMMA=44]="COMMA",r[r.HYPHEN_MINUS=45]="HYPHEN_MINUS",r[r.FULL_STOP=46]="FULL_STOP",r[r.SOLIDUS=47]="SOLIDUS",r[r.DIGIT_ZERO=48]="DIGIT_ZERO",r[r.DIGIT_ONE=49]="DIGIT_ONE",r[r.DIGIT_TWO=50]="DIGIT_TWO",r[r.DIGIT_THREE=51]="DIGIT_THREE",r[r.DIGIT_FOUR=52]="DIGIT_FOUR",r[r.DIGIT_FIVE=53]="DIGIT_FIVE",r[r.DIGIT_SIX=54]="DIGIT_SIX",r[r.DIGIT_SEVEN=55]="DIGIT_SEVEN",r[r.DIGIT_EIGHT=56]="DIGIT_EIGHT",r[r.DIGIT_NINE=57]="DIGIT_NINE",r[r.COLON=58]="COLON",r[r.SEMICOLON=59]="SEMICOLON",r[r.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",r[r.EQUALS_SIGN=61]="EQUALS_SIGN",r[r.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",r[r.QUESTION_MARK=63]="QUESTION_MARK",r[r.COMMERCIAL_AT=64]="COMMERCIAL_AT",r[r.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",r[r.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",r[r.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",r[r.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",r[r.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",r[r.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",r[r.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",r[r.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",r[r.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",r[r.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",r[r.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",r[r.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",r[r.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",r[r.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",r[r.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",r[r.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",r[r.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",r[r.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",r[r.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",r[r.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",r[r.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",r[r.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",r[r.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",r[r.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",r[r.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",r[r.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",r[r.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",r[r.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",r[r.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",r[r.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",r[r.LOW_LINE=95]="LOW_LINE",r[r.GRAVE_ACCENT=96]="GRAVE_ACCENT",r[r.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",r[r.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",r[r.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",r[r.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",r[r.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",r[r.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",r[r.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",r[r.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",r[r.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",r[r.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",r[r.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",r[r.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",r[r.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",r[r.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",r[r.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",r[r.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",r[r.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",r[r.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",r[r.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",r[r.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",r[r.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",r[r.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",r[r.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",r[r.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",r[r.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",r[r.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",r[r.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",r[r.VERTICAL_LINE=124]="VERTICAL_LINE",r[r.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",r[r.TILDE=126]="TILDE"})(Ut||(Ut={}));var zA={[Ut.QUOTATION_MARK]:Ut.QUOTATION_MARK,[Ut.REVERSE_SOLIDUS]:Ut.REVERSE_SOLIDUS,[Ut.SOLIDUS]:Ut.SOLIDUS,[Ut.LATIN_SMALL_LETTER_B]:Ut.BACKSPACE,[Ut.LATIN_SMALL_LETTER_F]:Ut.FORM_FEED,[Ut.LATIN_SMALL_LETTER_N]:Ut.NEWLINE,[Ut.LATIN_SMALL_LETTER_R]:Ut.CARRIAGE_RETURN,[Ut.LATIN_SMALL_LETTER_T]:Ut.TAB};var Yg;(function(r){r[r.LEFT_BRACE=0]="LEFT_BRACE",r[r.RIGHT_BRACE=1]="RIGHT_BRACE",r[r.LEFT_BRACKET=2]="LEFT_BRACKET",r[r.RIGHT_BRACKET=3]="RIGHT_BRACKET",r[r.COLON=4]="COLON",r[r.COMMA=5]="COMMA",r[r.TRUE=6]="TRUE",r[r.FALSE=7]="FALSE",r[r.NULL=8]="NULL",r[r.STRING=9]="STRING",r[r.NUMBER=10]="NUMBER",r[r.SEPARATOR=11]="SEPARATOR"})(Yg||(Yg={}));var jg;(function(r){r[r.START=0]="START",r[r.ENDED=1]="ENDED",r[r.ERROR=2]="ERROR",r[r.TRUE1=3]="TRUE1",r[r.TRUE2=4]="TRUE2",r[r.TRUE3=5]="TRUE3",r[r.FALSE1=6]="FALSE1",r[r.FALSE2=7]="FALSE2",r[r.FALSE3=8]="FALSE3",r[r.FALSE4=9]="FALSE4",r[r.NULL1=10]="NULL1",r[r.NULL2=11]="NULL2",r[r.NULL3=12]="NULL3",r[r.STRING_DEFAULT=13]="STRING_DEFAULT",r[r.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",r[r.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",r[r.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",r[r.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",r[r.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",r[r.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",r[r.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",r[r.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",r[r.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",r[r.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",r[r.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",r[r.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",r[r.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",r[r.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",r[r.SEPARATOR=28]="SEPARATOR",r[r.BOM_OR_START=29]="BOM_OR_START",r[r.BOM=30]="BOM"})(jg||(jg={}));var Ms;(function(r){r[r.OBJECT=0]="OBJECT",r[r.ARRAY=1]="ARRAY"})(Ms||(Ms={}));var zg;(function(r){r[r.VALUE=0]="VALUE",r[r.KEY=1]="KEY",r[r.COLON=2]="COLON",r[r.COMMA=3]="COMMA",r[r.ENDED=4]="ENDED",r[r.ERROR=5]="ERROR",r[r.SEPARATOR=6]="SEPARATOR"})(zg||(zg={}));function $g(r){let n=r.head.vars,a=r.results?.bindings;return new ao({fields:n}).parse(a?a.map(c=>Zo(c,p=>p.value)):[])}var Gs=r=>{for(let n in r)r[n].type!=="uri"&&(r[n].value=r[n].value.replace(/{{(.*?)}}/g,a=>(a=a.substring(2,a.length-2).trim(),r[a]?r[a].value:a)));return r},Uu=class{constructor(n,a){n.executionTime&&(this.executionTime=n.executionTime),a&&(this.executionTime=a),n instanceof Error?this.error=n:n.content?this.setResponse(n):this.setSummary(n)}setResponse(n){this.res=n}setSummary(n){!n.data&&!n.error?this.summary={data:n}:this.summary=n}hasError(){return!!(this.res&&this.res.status>=400||this.errorSummary||this.error||this.summary&&this.summary.error)}getError(){if(!this.errorSummary){if(this.res&&this.res.status>=400){let n=this.res.content||this.res.statusText;this.errorSummary={text:n,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}}if(this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error){let n=this.error;this.errorSummary={text:this.error.message,status:n.status,statusText:n.statusText}}}return this.errorSummary}getContentType(){if(this.res)return this.res.headers.get("content-type")||void 0;if(this.summary)return this.summary.contentType}getAsJson(){if(this.json)return this.json;if(!(this.json===!1||this.hasError()))return this.getParserFromContentType()?this.json:this.doLuckyGuess()?this.json:(this.json||(this.json=!1),this.json)}getData(){if(this.res){if(this.res.content)return this.res.content;if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}getResponseTime(){return this.executionTime}getParserFromContentType(){let n=this.getContentType();if(n){let a=cs(this.getData());try{if(n.indexOf("json")>-1){if(n.indexOf("sparql-results+json")>=0)return this.json=cu(a,Gs),this.type="json",!0;if(n.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(n.indexOf("xml")>-1)return this.json=Nu(a,Gs),this.type="xml",!0;if(n.indexOf("csv")>-1)return this.json=Jg(a),this.type="csv",!0;if(n.indexOf("tab-separated")>-1)return this.json=Xg(a),this.type="tsv",!0;if(n.indexOf("turtle")>0||n.indexOf("trig")>0||n.indexOf("triple")>0||n.indexOf("quad")>0)return this.json=Qg(a),this.type="ttl",!0}}catch(l){l instanceof Error?this.errorSummary={text:l.message}:this.errorSummary={text:l}}}return!1}doLuckyGuess(){let n=cs(this.getData());try{return this.json=cu(n,Gs),this.type="json",!0}catch{}try{return this.json=Nu(n,Gs),this.type="xml",!0}catch{}return!1}getVariables(){let n=this.getAsJson();return n&&n.head?n.head.vars:[]}getBoolean(){let n=this.getAsJson();if(n&&"boolean"in n)return n.boolean}getBindings(){let n=this.getAsJson();return n&&n.results?n.results.bindings:null}getStatements(){return!this.statements&&this.type==="ttl"&&(this.statements=_u(this.getData())),this.statements?this.statements:null}getOriginalResponseAsString(){let n=this.getData();return typeof n=="string"?n:this.type==="json"?JSON.stringify(n,void 0,2):n}getType(){return this.type||this.getAsJson(),this.type}getStatus(){if(this.res)return this.res.status;if(this.summary)return this.summary.status}getAsStoreObject(n){let a=this.summary;if(!a&&this.res&&(a={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),a)return a.data&&a.data.length>n?void 0:a;if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}asCsv(){let n=this.getAsJson();if(this.type==="csv")return this.getOriginalResponseAsString();if(n&&n.results)return $g(n)}},Ws=Uu;function Zs(r){var n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",r),document.getElementsByTagName("head")[0].appendChild(n)}function Ds(r,n){return new Promise((a,l)=>{var c=document.createElement("script");c.setAttribute("type","text/javascript"),c.setAttribute("async",""),c.setAttribute("src",r),n&&(c.innerHTML=n),c.onload=()=>a(),document.getElementsByTagName("head")[0].appendChild(c)})}Jo.addHook("afterSanitizeAttributes",r=>{r instanceof HTMLAnchorElement&&(r.target="_blank",r.rel="noopener noreferrer")});var ku=Jo.sanitize;var aR=rr(sm()),sR=rr(gm());var mm='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>';var bm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',vm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>';var eR='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>',tR='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>',sa=class{constructor(n){this.priority=10;this.hideFromSelection=!0;this.yasr=n}draw(){let n=document.createElement("div");n.className="booleanResult";let a=this.yasr.results?.getBoolean();n.appendChild(en(a?tR:eR));let l=document.createElement("span");l.textContent=a?"True":"False",n.appendChild(l),this.yasr.resultsEl.appendChild(n)}canHandleResults(){return!!this.yasr.results?.getBoolean&&(this.yasr.results.getBoolean()===!0||this.yasr.results.getBoolean()==!1)}getIcon(){return document.createElement("")}};var Ym=rr(In()),xM=rr(Gu()),IM=rr(Cm()),TM=rr(_m()),EM=rr(wm()),CM=rr(Bm()),AM=rr(Om()),RM=rr(Wm());var nR=rr(Xm());var Vs=class Vs{constructor(n){this.label="Response";this.priority=2;this.helpReference="https://docs.triply.cc/yasgui/#response";this.yasr=n,this.config=Vs.defaults,n.config.plugins.response&&n.config.plugins.response.dynamicConfig&&(this.config={...this.config,...n.config.plugins.response.dynamicConfig})}canHandleResults(){if(!this.yasr.results||!this.yasr.results.getOriginalResponseAsString)return!1;var n=this.yasr.results.getOriginalResponseAsString();return!((!n||n.length==0)&&this.yasr.results.getError())}getIcon(){return en(qo(nR))}download(n){if(!this.yasr.results)return;let a=this.yasr.results.getContentType(),l=this.yasr.results.getType(),c=l==="xml"?"rdf":l;return{getData:()=>this.yasr.results?.getOriginalResponseAsString()||"",filename:`${n||"queryResults"}${c?"."+c:""}`,contentType:a||"text/plain",title:"Download result"}}draw(n){let a={...this.config,...n},l=this.yasr.results?.getOriginalResponseAsString()||"",c=l.split(`
44
+ `);c.length>a.maxLines&&(l=c.slice(0,a.maxLines).join(`
45
+ `));let g=document.documentElement.getAttribute("data-theme")==="dark"?"material-palenight":"default",y={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:l,extraKeys:{Tab:!1},theme:g};this.yasr.results?.getType()==="json"&&(y.mode={name:"javascript",json:!0}),this.cm=(0,Ym.default)(this.yasr.resultsEl,y),c.length>a.maxLines&&this.showLess(!1)}limitData(n){let a=n.split(`
46
+ `);return a.length>this.config.maxLines&&(n=a.slice(0,this.config.maxLines).join(`
47
+ `)),n}showLess(n=!0){if(!this.cm)return;ot(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),ot(this.overLay,"overlay");let a=document.createElement("div");ot(a,"overlay_content");let l=document.createElement("button");l.title="Show all",ot(l,"yasr_btn","overlay_btn"),l.textContent="Show all",l.addEventListener("click",()=>this.showMore()),a.append(l);let c=document.createElement("button");c.title="Download result",ot(c,"yasr_btn","overlay_btn");let p=document.createElement("span");p.innerText="Download result",c.appendChild(p),c.appendChild(en(mm)),c.addEventListener("click",()=>this.yasr.download()),c.addEventListener("keydown",g=>{(g.code==="Space"||g.code==="Enter")&&this.yasr.download()}),a.appendChild(c),this.overLay.appendChild(a),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData(this.yasr.results?.getOriginalResponseAsString()||""))}showMore(){this.cm&&(bn(this.cm.getWrapperElement(),"overflow"),this.overLay?.remove(),this.overLay=void 0,this.cm.setValue(this.yasr.results?.getOriginalResponseAsString()||""),this.cm.refresh())}};Vs.defaults={maxLines:30};var la=Vs;var ua=class{constructor(n){this.priority=20;this.hideFromSelection=!0;this.yasr=n}canHandleResults(){return!!this.yasr.results&&!!this.yasr.results.getError()}getTryBtn(n){let a=document.createElement("a");return a.href=n,a.rel="noopener noreferrer",a.target="_blank",a.className="yasr_tryQuery",a.textContent="Try query in a new browser window",a}getCorsMessage(){let n=document.createElement("div");n.className="redOutline";let a=document.createElement("p");a.textContent="Unable to get response from endpoint. Possible reasons:",n.appendChild(a);let l=document.createElement("ul"),c=document.createElement("li");c.textContent="Incorrect endpoint URL",l.appendChild(c);let p=document.createElement("li");p.textContent="Endpoint is down",l.appendChild(p);let g=document.createElement("li");g.textContent="Credentials have expired",l.appendChild(g);let y=document.createElement("li"),I=document.createElement("span");I.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",y.appendChild(I);let U=document.createElement("a");return U.textContent="CORS-enabled",U.href="http://enable-cors.org/",U.target="_blank",U.rel="noopener noreferrer",y.appendChild(U),l.appendChild(y),n.appendChild(l),n}getStatusSpecificGuidance(n){let a=document.createElement("div");a.className="statusGuidance";let l=document.createElement("h4"),c=document.createElement("ul");switch(n){case 401:l.textContent="Authentication Required",a.appendChild(l);let p=document.createElement("li");p.textContent="The endpoint requires authentication credentials",c.appendChild(p);let g=document.createElement("li");g.textContent="Check if you need to provide an API key, username/password, or bearer token",c.appendChild(g);let y=document.createElement("li");return y.textContent="Verify your credentials are correct and not expired",c.appendChild(y),a.appendChild(c),a;case 403:l.textContent="Access Forbidden",a.appendChild(l);let I=document.createElement("li");I.textContent="You don't have permission to access this endpoint",c.appendChild(I);let U=document.createElement("li");U.textContent="Your credentials may be valid but lack sufficient privileges",c.appendChild(U);let A=document.createElement("li");return A.textContent="Contact the endpoint administrator to request access",c.appendChild(A),a.appendChild(c),a;case 404:l.textContent="Endpoint Not Found",a.appendChild(l);let F=document.createElement("li");F.textContent="The endpoint URL may be incorrect or has changed",c.appendChild(F);let O=document.createElement("li");O.textContent="Check for typos in the endpoint address",c.appendChild(O);let X=document.createElement("li");return X.textContent="Verify the endpoint is still active and hasn't been moved",c.appendChild(X),a.appendChild(c),a;case 429:l.textContent="Too Many Requests",a.appendChild(l);let S=document.createElement("li");S.textContent="You've exceeded the rate limit for this endpoint",c.appendChild(S);let D=document.createElement("li");D.textContent="Wait a few moments before trying again",c.appendChild(D);let _=document.createElement("li");return _.textContent="Consider reducing query frequency or contacting the endpoint provider for higher limits",c.appendChild(_),a.appendChild(c),a;case 500:l.textContent="Internal Server Error",a.appendChild(l);let M=document.createElement("li");M.textContent="The SPARQL endpoint encountered an error while processing your query",c.appendChild(M);let J=document.createElement("li");J.textContent="Try simplifying your query or reducing the result limit",c.appendChild(J);let q=document.createElement("li");q.textContent="Check the error message below for specific details",c.appendChild(q);let te=document.createElement("li");return te.textContent="If the problem persists, contact the endpoint administrator",c.appendChild(te),a.appendChild(c),a;case 502:case 503:case 504:l.textContent=n===502?"Bad Gateway":n===503?"Service Unavailable":"Gateway Timeout",a.appendChild(l);let ae=document.createElement("li");ae.textContent="The endpoint is temporarily unavailable or overloaded",c.appendChild(ae);let R=document.createElement("li");R.textContent="Try again in a few moments",c.appendChild(R);let w=document.createElement("li");return w.textContent="The service may be undergoing maintenance",c.appendChild(w),a.appendChild(c),a;default:if(n>=400&&n<500){l.textContent="Client Error",a.appendChild(l);let H=document.createElement("li");H.textContent="There's an issue with the request",c.appendChild(H);let $=document.createElement("li");return $.textContent="Check the error message below for details",c.appendChild($),a.appendChild(c),a}return null}}async draw(){let n=document.createElement("div");n.className="errorResult",this.yasr.resultsEl.appendChild(n);let a=this.yasr.results?.getError();if(!a)return;let l=document.createElement("div");l.className="errorHeader",n.appendChild(l);let c=await this.yasr.renderError(a);if(c){let g=document.createElement("div");g.className="redOutline",g.appendChild(c),n.appendChild(g);return}if(a.status){var p="Error";a.statusText&&a.statusText.length<100&&(p=a.statusText),p+=` (#${a.status})`;let g=document.createElement("span");if(g.className="status",g.textContent=p,l.appendChild(g),this.yasr.config.getPlainQueryLinkToEndpoint){let I=this.yasr.config.getPlainQueryLinkToEndpoint();I&&l.appendChild(this.getTryBtn(I))}let y=this.getStatusSpecificGuidance(a.status);if(y&&n.appendChild(y),a.text){let I=document.createElement("div");ot(I,"errorMessageContainer"),n.appendChild(I);let U=document.createElement("pre");ot(U,"errorMessage"),U.textContent=a.text,I.appendChild(U)}}else{if(this.yasr.config.getPlainQueryLinkToEndpoint){let y=this.yasr.config.getPlainQueryLinkToEndpoint();y&&l.appendChild(this.getTryBtn(y))}if(!a.text||a.text.indexOf("Request has been terminated")>=0||a.text.indexOf("Failed to fetch")>=0||a.text.indexOf("NetworkError")>=0||a.text.indexOf("Network request failed")>=0)n.appendChild(this.getCorsMessage());else{let y=document.createElement("pre");y.textContent=a.text,n.appendChild(y)}}}getIcon(){return document.createElement("")}};var sr=class sr extends jm.EventEmitter{constructor(a,l={},c){super();this.plugins={};this.helpDrawn=!1;this.isFullscreen=!1;this.isLoading=!1;this.utils={addScript:Ds,addCSS:Zs,sanitize:ku};if(!a)throw new Error("No parent passed as argument. Dont know where to draw YASR");this.rootEl=document.createElement("div"),this.rootEl.className="yasr",a.appendChild(this.rootEl),this.config=Ql({},sr.defaults,l),this.storage=new ai(sr.storageNamespace),this.getConfigFromStorage(),this.headerEl=document.createElement("div"),this.headerEl.className="yasr_header",this.rootEl.appendChild(this.headerEl),this.fallbackInfoEl=document.createElement("div"),this.fallbackInfoEl.className="yasr_fallback_info",this.rootEl.appendChild(this.fallbackInfoEl),this.resultsEl=document.createElement("div"),this.resultsEl.className="yasr_results",this.resultsEl.id=Pl("resultsId"),this.rootEl.appendChild(this.resultsEl),this.createLoadingElement(),this.initializePlugins(),this.drawHeader();let p=c||this.getResponseFromStorage();p&&this.setResponse(p)}getConfigFromStorage(){let a=this.getStorageId(this.config.persistenceLabelConfig);if(a){let l=this.storage.get(a);if(l){this.selectedPlugin=l.selectedPlugin;for(let c in l.pluginsConfig){let p=l.pluginsConfig[c];p&&this.config.plugins[c]&&(this.config.plugins[c].dynamicConfig=p)}}}}async renderError(a){let l;if(this.config.errorRenderers!==void 0){for(let c of this.config.errorRenderers)if(l=await c(a),l!==void 0)break}return l}getStorageId(a,l){let c=l||this.config.persistenceId;if(c)return typeof c=="string"?c+"_"+a:c(this)+"_"+a}somethingDrawn(){return!!this.resultsEl.children.length}emptyFallbackElement(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}getSelectedPluginName(){return this.selectedPlugin||this.config.defaultPlugin}getSelectedPlugin(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn(`Tried using plugin ${this.getSelectedPluginName()}, but seems this plugin isnt registered in yasr.`)}updatePluginSelectors(a){if(this.pluginSelectorsEl)for(let l in this.config.plugins){let c=this.plugins[l];c&&!c.hideFromSelection&&(a&&(a.indexOf(l)>=0?bn(this.pluginSelectorsEl.querySelector(".select_"+l),"disabled"):ot(this.pluginSelectorsEl.querySelector(".select_"+l),"disabled")),l===this.getSelectedPluginName()?ot(this.pluginSelectorsEl.querySelector(".select_"+l),"selected"):bn(this.pluginSelectorsEl.querySelector(".select_"+l),"selected"))}}getCompatiblePlugins(){if(!this.results)return Object.keys(Vl(this.config.plugins,l=>typeof l=="object"&&l.enabled||l===!0));let a=[];for(let l in this.plugins)this.plugins[l].canHandleResults()&&a.push({name:l,priority:this.plugins[l].priority});return a.sort((l,c)=>c.priority-l.priority).map(l=>l.name)}draw(){if(this.updateHelpButton(),this.updateResponseInfo(),!this.results)return;let a=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();this.plugins[this.drawnPlugin].destroy?.()}let l;if(this.getSelectedPlugin()&&this.getSelectedPlugin()?.canHandleResults()?(l=this.getSelectedPluginName(),this.emptyFallbackElement()):a[0]&&(this.drawnPlugin&&this.plugins[this.drawnPlugin].destroy?.(),l=a[0],this.fillFallbackBox(l)),l){this.drawnPlugin=l,this.emit("draw",this,this.plugins[l]);let c=this.plugins[l];(c.initialize?c.initialize():Promise.resolve()).then(async()=>{if(l){for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();await this.plugins[l].draw(this.config.plugins[l].dynamicConfig),this.emit("drawn",this,this.plugins[l]),this.updateExportHeaders(),this.updatePluginSelectors(a)}},g=>console.error)}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(a)}refresh(){this.draw()}destroy(){this.drawnPlugin&&this.plugins[this.drawnPlugin]?.destroy?.(),this.removeAllListeners(),this.rootEl.remove()}getPrefixes(){return this.config.prefixes?typeof this.config.prefixes=="function"?this.config.prefixes(this):this.config.prefixes:{}}selectPlugin(a){this.selectedPlugin!==a&&(this.config.plugins[a]?this.selectedPlugin=a:(console.warn(`Plugin ${a} does not exist.`),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}drawPluginSelectors(){this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";let a=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach(l=>{a.indexOf(l)===-1&&a.push(l)});for(let l of a){if(!this.config.plugins[l]||!this.config.plugins[l].enabled)continue;let c=this.plugins[l];if(!c||c.hideFromSelection)continue;let p=c.label||l,g=document.createElement("button");if(ot(g,"yasr_btn","select_"+l),g.title=p,g.type="button",g.setAttribute("aria-label",`Shows ${p} view`),c.getIcon){let U=c.getIcon();U&&(ot(U,"plugin_icon"),g.appendChild(U))}let y=document.createElement("span");y.textContent=p,g.appendChild(y),g.addEventListener("click",()=>this.selectPlugin(l));let I=document.createElement("li");I.appendChild(g),this.pluginSelectorsEl.appendChild(I)}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}fillFallbackBox(a){if(this.emptyFallbackElement(),this.plugins[a||this.drawnPlugin||""]?.hideFromSelection)return;let l=this.getSelectedPlugin(),c=this.plugins[a||this.drawnPlugin||""]?.label||a||this.drawnPlugin,p=l?.label||this.getSelectedPluginName(),g=document.createElement("p");if(g.innerText=`Could not render results with the ${p} plugin, the results currently are rendered with the ${c} plugin. ${this.getSelectedPlugin()?.helpReference?"See ":""}`,l?.helpReference){let y=document.createElement("a");y.innerText=`${p} documentation`,y.href=l.helpReference,y.rel="noopener noreferrer",y.target="_blank",g.append(y),g.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(g)}drawPluginElement(){let a=document.createElement("div");ot(a,"space_element"),this.headerEl.appendChild(a),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),ot(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls)}drawHeader(){this.drawPluginSelectors(),this.drawResponseInfo(),this.drawPluginElement(),this.drawDownloadIcon(),this.drawFullscreenButton(),this.loadingEl&&this.headerEl.appendChild(this.loadingEl),this.drawDocumentationButton()}drawDownloadIcon(){this.downloadBtn=document.createElement("a"),ot(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label","Download Results"),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");let a=en(qo(aR));a.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(a),this.downloadBtn.addEventListener("click",()=>{Ko(this.downloadBtn,"disabled")||this.download()}),this.downloadBtn.addEventListener("keydown",l=>{if(l.code==="Space"||l.code==="Enter"){if(Ko(this.downloadBtn,"disabled"))return;this.download()}}),this.headerEl.appendChild(this.downloadBtn)}drawResponseInfo(){this.dataElement=document.createElement("div"),ot(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}updateResponseInfo(){let a="";if(this.results){bn(this.dataElement,"empty");let l=this.results.getBindings();l&&(a+=`${l.length} result${l.length===1?"":"s"}`);let c=this.results.getResponseTime();if(c){a||(a="Response");let p=c/1e3;a+=` in ${p} second${p===1?"":"s"}`}}else ot(this.dataElement,"empty");this.dataElement.innerText=a}updateHelpButton(){let a=this.getSelectedPlugin();if(a?.helpReference){let l=`View documentation of ${a.label||this.getSelectedPluginName()}`;this.documentationLink.href=a.helpReference,this.documentationLink.title=l,this.documentationLink.setAttribute("aria-label",l),bn(this.documentationLink,"disabled")}else ot(this.documentationLink,"disabled"),this.documentationLink.title="This plugin doesn't have a help reference yet. Please contact the maintainer to fix this"}updateExportHeaders(){if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";let a=this.plugins[this.drawnPlugin];if(a&&a.download){let l=a.download(this.config.getDownloadFileName?.());if(bn(this.downloadBtn,"disabled"),l){l.title&&(this.downloadBtn.title=l.title);return}}this.downloadBtn.title="Download not supported",ot(this.downloadBtn,"disabled")}}drawFullscreenButton(){this.fullscreenBtn=document.createElement("button"),ot(this.fullscreenBtn,"yasr_btn","yasr_fullscreenButton","btn_icon"),this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this.fullscreenBtn.setAttribute("tabindex","0"),this.fullscreenBtn.setAttribute("role","button");let a=en(bm);ot(a,"fullscreenIcon"),a.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(a);let l=en(vm);ot(l,"fullscreenExitIcon"),l.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(l),this.fullscreenBtn.title="Toggle fullscreen (F10)",this.fullscreenBtn.addEventListener("click",()=>{this.toggleFullscreen()}),this.fullscreenBtn.addEventListener("keydown",c=>{(c.code==="Space"||c.code==="Enter")&&this.toggleFullscreen()}),this.headerEl.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(ot(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Exit fullscreen (F10)")):(bn(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Toggle fullscreen (F10)"))}getIsFullscreen(){return this.isFullscreen}createLoadingElement(){this.loadingEl=document.createElement("div"),this.loadingEl.className="yasr_loading_indicator",this.loadingEl.title="Executing query...",this.loadingEl.innerHTML='<div class="yasr_loading_spinner"></div>',this.loadingEl.style.display="none"}showLoading(){this.isLoading=!0,this.loadingEl&&(this.loadingEl.style.display="flex")}hideLoading(){this.isLoading=!1,this.loadingEl&&(this.loadingEl.style.display="none")}drawDocumentationButton(){this.documentationLink=document.createElement("a"),ot(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild(en(qo(sR))),this.documentationLink.href="https://docs.triply.cc/yasgui/",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}download(){if(!this.drawnPlugin)return;let a=this.plugins[this.drawnPlugin];if(a&&a.download){let l=a.download(this.config.getDownloadFileName?.());if(!l)return;let c=l.getData(),p;if(c.startsWith("data:"))p=c;else{let y=new Blob([c],{type:l.contentType??"text/plain"});p=window.URL.createObjectURL(y)}let g=document.createElement("a");g.href=p,g.download=l.filename,g.click()}}handleLocalStorageQuotaFull(a){console.warn("Localstorage quota exceeded. Clearing all queries"),sr.clearStorage()}getResponseFromStorage(){let a=this.getStorageId(this.config.persistenceLabelResponse);if(a)return this.storage.get(a)}getPersistentConfig(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:Zo(this.config.plugins,a=>a.dynamicConfig)}}storePluginConfig(a,l){this.config.plugins[a].dynamicConfig=l,this.storeConfig(),this.emit("change",this)}storeConfig(){let a=this.getStorageId(this.config.persistenceLabelConfig);a&&this.storage.set(a,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}storeResponse(){let a=this.getStorageId(this.config.persistenceLabelResponse);if(a&&this.results){let l=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);l&&!l.error?this.storage.set(a,l,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(a)}}setResponse(a,l){a&&(this.hideLoading(),this.results=new Ws(a,l),this.draw(),this.storeResponse())}initializePlugins(){for(let a in this.config.plugins)this.config.plugins[a]&&(sr.plugins[a]?this.plugins[a]=new sr.plugins[a](this):console.warn("Wanted to initialize plugin "+a+" but could not find a matching registered plugin"))}static registerPlugin(a,l,c=!0){sr.plugins[a]=l,c?sr.defaults.plugins[a]={enabled:!0}:sr.defaults.plugins[a]={enabled:!1}}static clearStorage(){new ai(sr.storageNamespace).removeNamespace()}};sr.defaults=Jl(),sr.plugins={},sr.Dependencies={},sr.storageNamespace="triply";var nn=sr;function lR(r,n,a=!0){nn.plugins[r]=n,a?nn.defaults.plugins[r]={enabled:!0}:nn.defaults.plugins[r]={enabled:!1}}nn.registerPlugin("boolean",sa);nn.registerPlugin("response",la);nn.registerPlugin("error",ua);var uR=nn;return tv(fR);})();
54
48
  /*! Bundled license information:
55
49
 
56
50
  ieee754/index.js:
@@ -72,18 +66,6 @@ papaparse/papaparse.min.js:
72
66
  License: MIT
73
67
  *)
74
68
 
75
- jquery/dist/jquery.js:
76
- (*!
77
- * jQuery JavaScript Library v3.7.1
78
- * https://jquery.com/
79
- *
80
- * Copyright OpenJS Foundation and other contributors
81
- * Released under the MIT license
82
- * https://jquery.org/license
83
- *
84
- * Date: 2023-08-28T13:37Z
85
- *)
86
-
87
69
  lodash-es/lodash.js:
88
70
  (**
89
71
  * @license
@@ -96,12 +78,7 @@ lodash-es/lodash.js:
96
78
  *)
97
79
 
98
80
  dompurify/dist/purify.es.mjs:
99
- (*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE *)
100
-
101
- datatables.net/js/dataTables.mjs:
102
- (*! DataTables 2.3.5
103
- * © SpryMedia Ltd - datatables.net/license
104
- *)
81
+ (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
105
82
  */
106
83
  if (typeof Yasr !== 'undefined' && Yasr?.default) { Yasr = Yasr.default; }
107
84
  //# sourceMappingURL=yasr.min.js.map