@matdata/yasr 5.2.0 → 5.4.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/README.md +128 -144
- package/build/ts/src/plugins/table/__tests__/table-test.d.ts +1 -0
- package/build/ts/src/plugins/table/__tests__/table-test.js +190 -0
- package/build/ts/src/plugins/table/__tests__/table-test.js.map +1 -0
- package/build/ts/src/plugins/table/index.d.ts +11 -3
- package/build/ts/src/plugins/table/index.js +138 -35
- package/build/ts/src/plugins/table/index.js.map +1 -1
- package/build/yasr.min.css +1 -1
- package/build/yasr.min.css.map +3 -3
- package/build/yasr.min.js +35 -32
- package/build/yasr.min.js.map +3 -3
- package/package.json +1 -1
- package/src/bin/takeScreenshot.js +5 -6
- package/src/bindingsToCsv.ts +1 -1
- package/src/parsers/xml.ts +1 -1
- package/src/plugins/table/__tests__/table-test.ts +246 -0
- package/src/plugins/table/column-resizer.d.ts +29 -0
- package/src/plugins/table/index.scss +32 -19
- package/src/plugins/table/index.ts +157 -37
package/build/yasr.min.js
CHANGED
|
@@ -1,53 +1,56 @@
|
|
|
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 _p=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||_p(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||_p(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 A=x.length,I=Fp(x,A),a=0;a<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 Rp(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,Rp(this,r,n)),this};Jt.prototype.prependOnceListener=function(r,n){return bu(n),this.prependListener(r,Rp(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 Ap(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 Ap(this,r,!0)};Jt.prototype.rawListeners=function(r){return Ap(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 jd=hE(),fE=pE(),dE=gE(),cE=typeof window<"u"?window:global;xb.exports={assign:jd,create:fE,trim:dE,bind:mE,slice:Yd,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=Yd(arguments,1);return jd.apply(this,[Object.create(n)].concat(h))};{let r=function(){};var e=r;return function(a,u,c,h){var b=Yd(arguments,1);return r.prototype=a,jd.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 Yd(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 Ra=Ka(),xE=Ra.slice,TE=Ra.pluck,el=Ra.each,CE=Ra.bind,IE=Ra.create,Kd=Ra.isList,$d=Ra.isFunction,wE=Ra.isObject;Tb.exports={createStore:ec};var _E={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 A="__storejs__test__";x.write(A,A);var I=x.read(A)===A;return x.remove(A),I}catch{return!1}},_assignPluginFnProp:function(x,A){var I=this[A];this[A]=function(){var G=xE(arguments,0),O=this;function U(){if(I)return el(arguments,function(R,k){G[k]=R}),I.apply(O,G)}var J=[U].concat(G);return x.apply(O,J)}},_serialize:function(x){return JSON.stringify(x)},_deserialize:function(x,A){if(!x)return A;var I="";try{I=JSON.parse(x)}catch{I=x}return I!==void 0?I:A},_addStorage:function(x){this.enabled||this._testStorage(x)&&(this.storage=x,this.enabled=!0)},_addPlugin:function(x){var A=this;if(Kd(x)){el(x,function(G){A._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,O){if(!$d(G))throw new Error("Bad plugin property: "+O+" from plugin "+x.name+". Plugins should only return functions.");A._assignPluginFnProp(G,O)})}},addStorage:function(x){SE("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(x)}},b=IE(h,_E,{plugins:[]});return b.raw={},el(b,function(x,A){$d(x)&&(b.raw[A]=CE(b,x))}),el(e,function(x){b._addStorage(x)}),el(r,function(x){b._addPlugin(x)}),b}});var _b=Wt((uO,wb)=>{var EE=Ka(),RE=EE.Global;wb.exports={name:"localStorage",read:Ib,write:AE,each:NE,remove:FE,clearAll:LE};function tl(){return RE.localStorage}function Ib(e){return tl().getItem(e)}function AE(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 Rb=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:ME,read:ZE,each:VE,remove:QE,clearAll:HE};var ps="storejs",hs=tc.document,gs=JE(),Ab=(tc.navigator?tc.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ME(e,r){if(!Ab){var n=rc(e);gs(function(a){a.setAttribute(n,r),a.save(ps)})}}function ZE(e){if(!Ab){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(),PE=Lb.Global,jE=Lb.trim;Gb.exports={name:"cookieStorage",read:YE,write:zE,each:Bb,remove:Ub,clearAll:qE};var ms=PE.document;function YE(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(jE(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 Mb=Wt((hO,Ob)=>{var KE=Ka(),$E=KE.Global;Ob.exports={name:"sessionStorage",read:Wb,write:eR,each:tR,remove:rR,clearAll:nR};function rl(){return $E.sessionStorage}function Wb(e){return rl().getItem(e)}function eR(e,r){return rl().setItem(e,r)}function tR(e){for(var r=rl().length-1;r>=0;r--){var n=rl().key(r);e(Wb(n),n)}}function rR(e){return rl().removeItem(e)}function nR(){return rl().clear()}});var Vb=Wt((pO,Zb)=>{Zb.exports={name:"memoryStorage",read:iR,write:aR,each:oR,remove:lR,clearAll:sR};var eo={};function iR(e){return eo[e]}function aR(e,r){eo[e]=r}function oR(e){for(var r in eo)eo.hasOwnProperty(r)&&e(eo[r],r)}function lR(e){delete eo[e]}function sR(e){eo={}}});var Hb=Wt((gO,Qb)=>{Qb.exports=[_b(),Rb(),Fb(),Db(),Mb(),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?`[
|
|
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 Dr=(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 Do=typeof Reflect=="object"?Reflect:null,Ip=Do&&typeof Do.apply=="function"?Do.apply:function(r,n,a){return Function.prototype.apply.call(r,n,a)},mu;Do&&typeof Do.ownKeys=="function"?mu=Do.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 Sp=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||Sp(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||Sp(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 Rp(e){return e._maxListeners===void 0?jt.defaultMaxListeners:e._maxListeners}jt.prototype.getMaxListeners=function(){return Rp(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=Rp(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 Jd=hE(),fE=pE(),dE=gE(),cE=typeof window<"u"?window:global;xb.exports={assign:Jd,create:fE,trim:dE,bind:mE,slice:Yd,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=Yd(arguments,1);return Jd.apply(this,[Object.create(n)].concat(h))};{let r=function(){};var e=r;return function(a,u,c,h){var b=Yd(arguments,1);return r.prototype=a,Jd.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 Yd(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 SE={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 RE(){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 D=xE(arguments,0),W=this;function U(){if(I)return el(arguments,function(A,k){D[k]=A}),I.apply(W,D)}var P=[U].concat(D);return x.apply(W,P)}},_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(D){_._addPlugin(D)});return}var I=TE(this.plugins,function(D){return x===D});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(D,W){if(!$d(D))throw new Error("Bad plugin property: "+W+" from plugin "+x.name+". Plugins should only return functions.");_._assignPluginFnProp(D,W)})}},addStorage:function(x){RE("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(x)}},b=IE(h,SE,{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 Sb=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:DE,each:Rb,remove:GE,clearAll:WE};var $a=UE.globalStorage;function kE(e){return $a[e]}function DE(e,r){$a[e]=r}function Rb(e){for(var r=$a.length-1;r>=0;r--){var n=$a.key(r);e($a[n],n)}}function GE(e){return $a.removeItem(e)}function WE(){Rb(function(e,r){delete $a[e]})}});var Fb=Wt((dO,Nb)=>{var OE=Ka(),tc=OE.Global;Nb.exports={name:"oldIE-userDataStorage",write:ME,read:ZE,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 ME(e,r){if(!_b){var n=rc(e);gs(function(a){a.setAttribute(n,r),a.save(ps)})}}function ZE(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 Gb=Wt((cO,Db)=>{var Lb=Ka(),PE=Lb.Global,JE=Lb.trim;Db.exports={name:"cookieStorage",read:YE,write:zE,each:Bb,remove:Ub,clearAll:qE};var ms=PE.document;function YE(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(JE(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 Mb=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,Zb)=>{Zb.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=[Sb(),Ab(),Fb(),Gb(),Mb(),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
2
|
`+gap+b.join(`,
|
|
3
3
|
`+gap)+`
|
|
4
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
5
|
`+gap+b.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 Pb=Wt((mO,Jb)=>{Jb.exports=uR;function uR(){return Xb(),{}}});var Yb=Wt((bO,jb)=>{var fR=Cb(),dR=Hb(),cR=[Pb()];jb.exports=fR.createStore(dR,cR)});var Kb=Wt(ef=>{"use strict";ef.byteLength=gR;ef.toByteArray=bR;ef.fromByteArray=xR;var Oi=[],ai=[],pR=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 gR(e){var r=qb(e),n=r[0],a=r[1];return(n+a)*3/4-a}function mR(e,r,n){return(r+n)*3/4-n}function bR(e){var r,n=qb(e),a=n[0],u=n[1],c=new pR(mR(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 vR(e){return Oi[e>>18&63]+Oi[e>>12&63]+Oi[e>>6&63]+Oi[e&63]}function yR(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(vR(a));return u.join("")}function xR(e){for(var r,n=e.length,a=n%3,u=[],c=16383,h=0,b=n-a;h<b;h+=c)u.push(yR(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,A=x>>1,I=-7,F=n?u-1:0,G=n?-1:1,O=e[r+F];for(F+=G,c=O&(1<<-I)-1,O>>=-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-A;else{if(c===x)return h?NaN:(O?-1:1)*(1/0);h=h+Math.pow(2,a),c=c-A}return(O?-1:1)*h*Math.pow(2,c-a)};ac.write=function(e,r,n,a,u,c){var h,b,x,A=c*8-u-1,I=(1<<A)-1,F=I>>1,G=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=a?0:c-1,U=a?1:-1,J=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+O]=b&255,O+=U,b/=256,u-=8);for(h=h<<u|b,A+=u;A>0;e[n+O]=h&255,O+=U,h/=256,A-=8);e[n+O-U]|=J*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=SR;ol.INSPECT_MAX_BYTES=50;var tf=2147483647;ol.kMaxLength=tf;ge.TYPED_ARRAY_SUPPORT=TR();!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 TR(){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 IR(e,r);if(ArrayBuffer.isView(e))return wR(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(Mi(e,ArrayBuffer)||e&&Mi(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mi(e,SharedArrayBuffer)||e&&Mi(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=_R(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 CR(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 CR(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 IR(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 wR(e){if(Mi(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 _R(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 SR(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(Mi(r,Uint8Array)&&(r=ge.from(r,r.offset,r.byteLength)),Mi(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(Mi(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)||Mi(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 ER(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 DR(this,r,n);case"utf8":case"utf-8":return s0(this,r,n);case"ascii":return kR(this,r,n);case"latin1":case"binary":return GR(this,r,n);case"base64":return BR(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return WR(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):ER.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(Mi(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),A=this.slice(u,c),I=r.slice(n,a);for(let F=0;F<x;++F)if(A[F]!==I[F]){h=A[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 A;if(u){let I=-1;for(A=n;A<h;A++)if(x(e,A)===x(r,I===-1?0:A-I)){if(I===-1&&(I=A),A-I+1===b)return I*c}else I!==-1&&(A-=A-I),I=-1}else for(n+b>h&&(n=h-b),A=n;A>=0;A--){let I=!0;for(let F=0;F<b;F++)if(x(e,A+F)!==x(r,F)){I=!1;break}if(I)return A}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 RR(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 AR(e,r,n,a){return rf(uc(r,e.length-n),e,n,a)}function NR(e,r,n,a){return rf(VR(r),e,n,a)}function FR(e,r,n,a){return rf(g0(r),e,n,a)}function LR(e,r,n,a){return rf(QR(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 RR(this,r,n,a);case"utf8":case"utf-8":return AR(this,r,n,a);case"ascii":case"latin1":case"binary":return NR(this,r,n,a);case"base64":return FR(this,r,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return LR(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 BR(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,A,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],A=e[u+2],(x&192)===128&&(A&192)===128&&(F=(c&15)<<12|(x&63)<<6|A&63,F>2047&&(F<55296||F>57343)&&(h=F));break;case 4:x=e[u+1],A=e[u+2],I=e[u+3],(x&192)===128&&(A&192)===128&&(I&192)===128&&(F=(c&15)<<18|(x&63)<<12|(A&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 UR(a)}var r0=4096;function UR(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 kR(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 GR(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 DR(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+=HR[e[c]];return u}function WR(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=Aa(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=Aa(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=Aa(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=Aa(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=Aa(function(r,n=0){return u0(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))});ge.prototype.writeBigUInt64BE=Aa(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=Aa(function(r,n=0){return u0(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ge.prototype.writeBigInt64BE=Aa(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 OR(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)}OR(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 MR=/[^+/0-9A-Za-z-_]/g;function ZR(e){if(e=e.split("=")[0],e=e.trim().replace(MR,""),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 VR(e){let r=[];for(let n=0;n<e.length;++n)r.push(e.charCodeAt(n)&255);return r}function QR(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(ZR(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 Mi(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 HR=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 Aa(e){return typeof BigInt>"u"?XR:e}function XR(){throw new Error("BigInt not supported")}});var R0=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(M){var K=V(M);K.chunkSize=parseInt(K.chunkSize),M.step||M.chunk||(K.chunkSize=null),this._handle=new O(K),(this._handle.streamer=this)._config=K}.call(this,m),this.parseChunk=function(M,K){var ue=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<ue){let z=this._config.newline;z||(Te=this._config.quoteChar||'"',z=this._handle.guessLineEndings(M,Te)),M=[...M.split(z).slice(ue)].join(z)}this.isFirstChunk&&$(this._config.beforeFirstChunk)&&(Te=this._config.beforeFirstChunk(M))!==void 0&&(M=Te),this.isFirstChunk=!1,this._halted=!1;var ue=this._partialLine+M,Te=(this._partialLine="",this._handle.parse(ue,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(M=Te.meta.cursor,ue=(this._finished||(this._partialLine=ue.substring(M-this._baseIndex),this._baseIndex=M),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:ue});else if($(this._config.chunk)&&!K){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||!ue||!$(this._config.complete)||Te&&Te.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ue||Te&&Te.meta.paused||this._nextChunk(),Te}this._halted=!0},this._sendError=function(M){$(this._config.error)?this._config.error(M):u&&this._config.error&&r.postMessage({workerId:b.WORKER_ID,error:M,finished:!1})}}function A(m){var M;(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(K){this._input=K,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=D(this._chunkLoaded,this),M.onerror=D(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var K,ue=this._config.downloadRequestHeaders;for(K in ue)M.setRequestHeader(K,ue[K])}var Te;this._config.chunkSize&&(Te=this._start+this._config.chunkSize-1,M.setRequestHeader("Range","bytes="+this._start+"-"+Te));try{M.send(this._config.downloadRequestBody)}catch(z){this._chunkError(z.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize||M.responseText.length,this._finished=!this._config.chunkSize||this._start>=(K=>(K=K.getResponseHeader("Content-Range"))!==null?parseInt(K.substring(K.lastIndexOf("/")+1)):-1)(M),this.parseChunk(M.responseText)))},this._chunkError=function(K){K=M.statusText||K,this._sendError(new Error(K))}}function I(m){(m=m||{}).chunkSize||(m.chunkSize=b.LocalChunkSize),x.call(this,m);var M,K,ue=typeof FileReader<"u";this.stream=function(Te){this._input=Te,K=Te.slice||Te.webkitSlice||Te.mozSlice,ue?((M=new FileReader).onload=D(this._chunkLoaded,this),M.onerror=D(this._chunkError,this)):M=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,z=(this._config.chunkSize&&(z=Math.min(this._start+this._config.chunkSize,this._input.size),Te=K.call(Te,this._start,z)),M.readAsText(Te,this._config.encoding));ue||this._chunkLoaded({target:{result:z}})},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(M.error)}}function F(m){var M;x.call(this,m=m||{}),this.stream=function(K){return M=K,this._nextChunk()},this._nextChunk=function(){var K,ue;if(!this._finished)return K=this._config.chunkSize,M=K?(ue=M.substring(0,K),M.substring(K)):(ue=M,""),this._finished=!M,this.parseChunk(ue)}}function G(m){x.call(this,m=m||{});var M=[],K=!0,ue=!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(){ue&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):K=!0},this._streamData=D(function(Te){try{M.push(typeof Te=="string"?Te:Te.toString(this._config.encoding)),K&&(K=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(z){this._streamError(z)}},this),this._streamError=D(function(Te){this._streamCleanUp(),this._sendError(Te)},this),this._streamEnd=D(function(){this._streamCleanUp(),ue=!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 O(m){var M,K,ue,Te,z=Math.pow(2,53),he=-z,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 wt(Ge){return m.skipEmptyLines==="greedy"?Ge.join("").trim()==="":Ge.length===1&&Ge[0].length===0}function Ye(){if(Ne&&ue&&(Le("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),ue=!1),m.skipEmptyLines&&(Ne.data=Ne.data.filter(function(ct){return!wt(ct)})),Qe()){let ct=function(St,pt){$(m.transformHeader)&&(St=m.transformHeader(St,pt)),lt.push(St)};var Ae=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,St){for(var pt=m.header?{}:[],st=0;st<ct.length;st++){var $e=st,Tt=ct[st],Tt=((ut,mt)=>(je=>(m.dynamicTypingFunction&&m.dynamicTyping[je]===void 0&&(m.dynamicTyping[je]=m.dynamicTypingFunction(je)),(m.dynamicTyping[je]||m.dynamicTyping)===!0))(ut)?mt==="true"||mt==="TRUE"||mt!=="false"&&mt!=="FALSE"&&((je=>{if(L.test(je)&&(je=parseFloat(je),he<je&&je<z))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,Tt=m.transform?m.transform(Tt,$e):Tt);$e==="__parsed_extra"?(pt[$e]=pt[$e]||[],pt[$e].push(Tt)):pt[$e]=Tt}return m.header&&(st>lt.length?Le("FieldMismatch","TooManyFields","Too many fields: expected "+lt.length+" fields but parsed "+st,Fe+St):st<lt.length&&Le("FieldMismatch","TooFewFields","Too few fields: expected "+lt.length+" fields but parsed "+st,Fe+St)),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&<.length===0}function Le(Ge,He,bt,Ae){Ge={type:Ge,code:He,message:bt},Ae!==void 0&&(Ge.row=Ae),Ne.errors.push(Ge)}$(m.step)&&(Te=m.step,m.step=function(Ge){Ne=Ge,Qe()?Ye():(Ye(),Ne.data.length!==0&&(Ie+=Ge.data.length,m.preview&&Ie>m.preview?K.abort():(Ne.data=Ne.data[0],Te(Ne,ae))))}),this.parse=function(Ge,He,bt){var Ae=m.quoteChar||'"',Ae=(m.newline||(m.newline=this.guessLineEndings(Ge,Ae)),ue=!1,m.delimiter?$(m.delimiter)&&(m.delimiter=m.delimiter(Ge),Ne.meta.delimiter=m.delimiter):((Ae=((ct,St,pt,st,$e)=>{var Tt,ut,mt,je;$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 J({comments:st,delimiter:tr,newline:St,preview:10}).parse(ct)),lr=0;lr<gt.data.length;lr++)pt&&wt(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)&&(je===void 0||je<cr)&&1.99<cr&&(ut=Ot,Tt=tr,je=cr)}return{successful:!!(m.delimiter=Tt),bestDelimiter:Tt}})(Ge,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess)).successful?m.delimiter=Ae.bestDelimiter:(ue=!0,m.delimiter=b.DefaultDelimiter),Ne.meta.delimiter=m.delimiter),V(m));return m.preview&&m.header&&Ae.preview++,M=Ge,K=new J(Ae),Ne=K.parse(M,He,bt),Ye(),nt?{meta:{paused:!0}}:Ne||{meta:{paused:!1}}},this.paused=function(){return nt},this.pause=function(){nt=!0,K.abort(),M=$(m.chunk)?"":M.substring(K.getCharIndex())},this.resume=function(){ae.streamer._halted?(nt=!1,ae.streamer.parseChunk(M,!0)):setTimeout(ae.resume,3)},this.aborted=function(){return Ke},this.abort=function(){Ke=!0,K.abort(),Ne.meta.aborted=!0,$(m.complete)&&m.complete(Ne),M=""},this.guessLineEndings=function(ct,Ae){ct=ct.substring(0,1048576);var Ae=new RegExp(U(Ae)+"([^]*?)"+U(Ae),"gm"),bt=(ct=ct.replace(Ae,"")).split("\r"),Ae=ct.split(`
|
|
8
|
-
`),ct=1<
|
|
9
|
-
`;for(var
|
|
10
|
-
`&&
|
|
11
|
-
`:"\r"}}function U(m){return m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function
|
|
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 Pb=Wt((mO,jb)=>{jb.exports=uA;function uA(){return Xb(),{}}});var Yb=Wt((bO,Jb)=>{var fA=Cb(),dA=Hb(),cA=[Pb()];Jb.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,D=n?-1:1,W=e[r+F];for(F+=D,c=W&(1<<-I)-1,W>>=-I,I+=b;I>0;c=c*256+e[r+F],F+=D,I-=8);for(h=c&(1<<-I)-1,c>>=-I,I+=a;I>0;h=h*256+e[r+F],F+=D,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,D=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=a?0:c-1,U=a?1:-1,P=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+=D/x:r+=D*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]|=P*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=RA;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(Mi(e,ArrayBuffer)||e&&Mi(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mi(e,SharedArrayBuffer)||e&&Mi(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=SA(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(Mi(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 SA(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 RA(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(Mi(r,Uint8Array)&&(r=ge.from(r,r.offset,r.byteLength)),Mi(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(Mi(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)||Mi(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 GA(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 DA(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(Mi(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 DA(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 GA(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 MA=/[^+/0-9A-Za-z-_]/g;function ZA(e){if(e=e.split("=")[0],e=e.trim().replace(MA,""),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(ZA(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 Mi(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(M){var K=V(M);K.chunkSize=parseInt(K.chunkSize),M.step||M.chunk||(K.chunkSize=null),this._handle=new W(K),(this._handle.streamer=this)._config=K}.call(this,m),this.parseChunk=function(M,K){var ue=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<ue){let z=this._config.newline;z||(Te=this._config.quoteChar||'"',z=this._handle.guessLineEndings(M,Te)),M=[...M.split(z).slice(ue)].join(z)}this.isFirstChunk&&ee(this._config.beforeFirstChunk)&&(Te=this._config.beforeFirstChunk(M))!==void 0&&(M=Te),this.isFirstChunk=!1,this._halted=!1;var ue=this._partialLine+M,Te=(this._partialLine="",this._handle.parse(ue,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(M=Te.meta.cursor,ue=(this._finished||(this._partialLine=ue.substring(M-this._baseIndex),this._baseIndex=M),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:ue});else if(ee(this._config.chunk)&&!K){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||!ue||!ee(this._config.complete)||Te&&Te.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ue||Te&&Te.meta.paused||this._nextChunk(),Te}this._halted=!0},this._sendError=function(M){ee(this._config.error)?this._config.error(M):u&&this._config.error&&r.postMessage({workerId:b.WORKER_ID,error:M,finished:!1})}}function _(m){var M;(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(K){this._input=K,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=G(this._chunkLoaded,this),M.onerror=G(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var K,ue=this._config.downloadRequestHeaders;for(K in ue)M.setRequestHeader(K,ue[K])}var Te;this._config.chunkSize&&(Te=this._start+this._config.chunkSize-1,M.setRequestHeader("Range","bytes="+this._start+"-"+Te));try{M.send(this._config.downloadRequestBody)}catch(z){this._chunkError(z.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize||M.responseText.length,this._finished=!this._config.chunkSize||this._start>=(K=>(K=K.getResponseHeader("Content-Range"))!==null?parseInt(K.substring(K.lastIndexOf("/")+1)):-1)(M),this.parseChunk(M.responseText)))},this._chunkError=function(K){K=M.statusText||K,this._sendError(new Error(K))}}function I(m){(m=m||{}).chunkSize||(m.chunkSize=b.LocalChunkSize),x.call(this,m);var M,K,ue=typeof FileReader<"u";this.stream=function(Te){this._input=Te,K=Te.slice||Te.webkitSlice||Te.mozSlice,ue?((M=new FileReader).onload=G(this._chunkLoaded,this),M.onerror=G(this._chunkError,this)):M=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,z=(this._config.chunkSize&&(z=Math.min(this._start+this._config.chunkSize,this._input.size),Te=K.call(Te,this._start,z)),M.readAsText(Te,this._config.encoding));ue||this._chunkLoaded({target:{result:z}})},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(M.error)}}function F(m){var M;x.call(this,m=m||{}),this.stream=function(K){return M=K,this._nextChunk()},this._nextChunk=function(){var K,ue;if(!this._finished)return K=this._config.chunkSize,M=K?(ue=M.substring(0,K),M.substring(K)):(ue=M,""),this._finished=!M,this.parseChunk(ue)}}function D(m){x.call(this,m=m||{});var M=[],K=!0,ue=!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(){ue&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):K=!0},this._streamData=G(function(Te){try{M.push(typeof Te=="string"?Te:Te.toString(this._config.encoding)),K&&(K=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(z){this._streamError(z)}},this),this._streamError=G(function(Te){this._streamCleanUp(),this._sendError(Te)},this),this._streamEnd=G(function(){this._streamCleanUp(),ue=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function W(m){var M,K,ue,Te,z=Math.pow(2,53),he=-z,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 St(De){return m.skipEmptyLines==="greedy"?De.join("").trim()==="":De.length===1&&De[0].length===0}function Ye(){if(Ne&&ue&&(Le("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),ue=!1),m.skipEmptyLines&&(Ne.data=Ne.data.filter(function(ct){return!St(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 De=0;Qe()&&De<Ne.data.length;De++)Ne.data[De].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)=>(Je=>(m.dynamicTypingFunction&&m.dynamicTyping[Je]===void 0&&(m.dynamicTyping[Je]=m.dynamicTypingFunction(Je)),(m.dynamicTyping[Je]||m.dynamicTyping)===!0))(ut)?mt==="true"||mt==="TRUE"||mt!=="false"&&mt!=="FALSE"&&((Je=>{if(L.test(Je)&&(Je=parseFloat(Je),he<Je&&Je<z))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&<.length===0}function Le(De,He,bt,_e){De={type:De,code:He,message:bt},_e!==void 0&&(De.row=_e),Ne.errors.push(De)}ee(m.step)&&(Te=m.step,m.step=function(De){Ne=De,Qe()?Ye():(Ye(),Ne.data.length!==0&&(Ie+=De.data.length,m.preview&&Ie>m.preview?K.abort():(Ne.data=Ne.data[0],Te(Ne,ae))))}),this.parse=function(De,He,bt){var _e=m.quoteChar||'"',_e=(m.newline||(m.newline=this.guessLineEndings(De,_e)),ue=!1,m.delimiter?ee(m.delimiter)&&(m.delimiter=m.delimiter(De),Ne.meta.delimiter=m.delimiter):((_e=((ct,Et,pt,st,$e)=>{var Ct,ut,mt,Je;$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 P({comments:st,delimiter:tr,newline:Et,preview:10}).parse(ct)),lr=0;lr<gt.data.length;lr++)pt&&St(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)&&(Je===void 0||Je<cr)&&1.99<cr&&(ut=Ot,Ct=tr,Je=cr)}return{successful:!!(m.delimiter=Ct),bestDelimiter:Ct}})(De,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess)).successful?m.delimiter=_e.bestDelimiter:(ue=!0,m.delimiter=b.DefaultDelimiter),Ne.meta.delimiter=m.delimiter),V(m));return m.preview&&m.header&&_e.preview++,M=De,K=new P(_e),Ne=K.parse(M,He,bt),Ye(),nt?{meta:{paused:!0}}:Ne||{meta:{paused:!1}}},this.paused=function(){return nt},this.pause=function(){nt=!0,K.abort(),M=ee(m.chunk)?"":M.substring(K.getCharIndex())},this.resume=function(){ae.streamer._halted?(nt=!1,ae.streamer.parseChunk(M,!0)):setTimeout(ae.resume,3)},this.aborted=function(){return Ke},this.abort=function(){Ke=!0,K.abort(),Ne.meta.aborted=!0,ee(m.complete)&&m.complete(Ne),M=""},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 P(m){var M=(m=m||{}).delimiter,K=m.newline,ue=m.comments,Te=m.step,z=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 M!="string"||-1<b.BAD_DELIMITERS.indexOf(M))&&(M=","),ue===M)throw new Error("Comment character same as delimiter");ue===!0?ue="#":(typeof ue!="string"||-1<b.BAD_DELIMITERS.indexOf(ue))&&(ue=!1),K!==`
|
|
12
12
|
`&&K!=="\r"&&K!==`\r
|
|
13
13
|
`&&(K=`
|
|
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
|
|
15
|
-
`,he='"',L=he+he,xe=!1,ae=null,Ie=!1,Fe=((()=>{if(typeof M=="object"){if(typeof M.delimiter!="string"||b.BAD_DELIMITERS.filter(function(lt){return M.delimiter.indexOf(lt)!==-1}).length||(Te=M.delimiter),typeof M.quotes!="boolean"&&typeof M.quotes!="function"&&!Array.isArray(M.quotes)||(K=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(xe=M.skipEmptyLines),typeof M.newline=="string"&&(z=M.newline),typeof M.quoteChar=="string"&&(he=M.quoteChar),typeof M.header=="boolean"&&(ue=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");ae=M.columns}M.escapeChar!==void 0&&(L=M.escapeChar+he),M.escapeFormulae instanceof RegExp?Ie=M.escapeFormulae:typeof M.escapeFormulae=="boolean"&&M.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,
|
|
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=J,b.ParserHandle=O,b.NetworkStreamer=A,b.FileStreamer=I,b.StringStreamer=F,b.ReadableStreamStreamer=G,r.jQuery&&((n=r.jQuery).fn.parse=function(m){var M=m.config||{},K=[];return this.each(function(z){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++)K.push({file:this.files[he],inputElem:this,instanceConfig:n.extend({},M)})}),ue(),this;function ue(){if(K.length===0)$(m.complete)&&m.complete();else{var z,he,L,xe,ae=K[0];if($(m.before)){var Ie=m.before(ae.file,ae.inputElem);if(typeof Ie=="object"){if(Ie.action==="abort")return z="AbortError",he=ae.file,L=ae.inputElem,xe=Ie.reason,void($(m.error)&&m.error({name:z},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){$(Fe)&&Fe(nt,ae.file,ae.inputElem),Te()},b.parse(ae.file,ae.instanceConfig)}}function Te(){K.splice(0,1),ue()}}),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})}),(A.prototype=Object.create(x.prototype)).constructor=A,(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",M0=512,Z0=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:[M0,Z0,V0,Q0,H0]};oi.faDownload=oi.definition;oi.prefix=W0;oi.iconName=O0;oi.width=M0;oi.height=Z0;oi.ligatures=V0;oi.unicode=Q0;oi.svgPathData=H0});var $0=Wt(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var J0="fas",P0="question-circle",j0=512,Y0=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:P0,icon:[j0,Y0,z0,q0,K0]};li.faQuestionCircle=li.definition;li.prefix=J0;li.iconName=P0;li.width=j0;li.height=Y0;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={},A=x.toString,I=x.hasOwnProperty,F=I.toString,G=F.call(Object),O={},U=function(p){return typeof p=="function"&&typeof p.nodeType!="number"&&typeof p.item!="function"},J=function(p){return p!=null&&p===p.window},R=e.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function te(d,p,v){v=v||R;var T,_,S=v.createElement("script");if(S.text=d,p)for(T in k)_=p[T]||p.getAttribute&&p.getAttribute(T),_&&S.setAttribute(T,_);v.head.appendChild(S).parentNode.removeChild(S)}function V(d){return d==null?d+"":typeof d=="object"||typeof d=="function"?x[A.call(d)]||"object":typeof d}var D="3.7.1",$=/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,_,S,B=arguments[0]||{},Y=1,P=arguments.length,ne=!1;for(typeof B=="boolean"&&(ne=B,B=arguments[Y]||{},Y++),typeof B!="object"&&!U(B)&&(B={}),Y===P&&(B=this,Y--);Y<P;Y++)if((d=arguments[Y])!=null)for(p in d)T=d[p],!(p==="__proto__"||B===T)&&(ne&&T&&(m.isPlainObject(T)||(_=Array.isArray(T)))?(v=B[p],_&&!Array.isArray(v)?S=[]:!_&&!m.isPlainObject(v)?S={}:S=v,_=!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||A.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){te(d,{nonce:p&&p.nonce},v)},each:function(d,p){var v,T=0;if(M(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,_=d.nodeType;if(!_)for(;p=d[T++];)v+=m.text(p);return _===1||_===11?d.textContent:_===9?d.documentElement.textContent:_===3||_===4?d.nodeValue:v},makeArray:function(d,p){var v=p||[];return d!=null&&(M(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!$.test(p||v&&v.nodeName||"HTML")},merge:function(d,p){for(var v=+p.length,T=0,_=d.length;T<v;T++)d[_++]=p[T];return d.length=_,d},grep:function(d,p,v){for(var T,_=[],S=0,B=d.length,Y=!v;S<B;S++)T=!p(d[S],S),T!==Y&&_.push(d[S]);return _},map:function(d,p,v){var T,_,S=0,B=[];if(M(d))for(T=d.length;S<T;S++)_=p(d[S],S,v),_!=null&&B.push(_);else for(S in d)_=p(d[S],S,v),_!=null&&B.push(_);return c(B)},guid:1,support:O}),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 M(d){var p=!!d&&"length"in d&&d.length,v=V(d);return U(d)||J(d)?!1:v==="array"||p===0||typeof p=="number"&&p>0&&p-1 in d}function K(d,p){return d.nodeName&&d.nodeName.toLowerCase()===p.toLowerCase()}var ue=n.pop,Te=n.sort,z=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=R,Fe=h;(function(){var d,p,v,T,_,S=Fe,B,Y,P,ne,ce,be=m.expando,le=0,Se=0,ft=fa(),At=fa(),vt=fa(),gr=fa(),zt=function(Z,ee){return Z===ee&&(_=!0),0},jn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Yn="(?:\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",_t="\\["+he+"*("+Yn+")(?:"+he+"*([*^$|!~]?=)"+he+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Yn+"))|)"+he+"*\\]",On=":("+Yn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+_t+")*)|.*)\\)|)",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("^"+Yn+"$"),qn={ID:new RegExp("^#("+Yn+")"),CLASS:new RegExp("^\\.("+Yn+")"),TAG:new RegExp("^("+Yn+"|[*])"),ATTR:new RegExp("^"+_t),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("^(?:"+jn+")$","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,_n=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Al=/[+~]/,$n=new RegExp("\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\([^\\r\\n\\f])","g"),ei=function(Z,ee){var oe="0x"+Z.slice(1)-65536;return ee||(oe<0?String.fromCharCode(oe+65536):String.fromCharCode(oe>>10|55296,oe&1023|56320))},Yf=function(){xi()},Ma=Za(function(Z){return Z.disabled===!0&&K(Z,"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(ee,oe){Fe.apply(ee,u.call(oe))},call:function(ee){Fe.apply(ee,u.call(arguments,1))}}}function Ut(Z,ee,oe,fe){var me,Re,Ze,Pe,Me,xt,it,dt=ee&&ee.ownerDocument,It=ee?ee.nodeType:9;if(oe=oe||[],typeof Z!="string"||!Z||It!==1&&It!==9&&It!==11)return oe;if(!fe&&(xi(ee),ee=ee||B,P)){if(It!==11&&(Me=_n.exec(Z)))if(me=Me[1]){if(It===9)if(Ze=ee.getElementById(me)){if(Ze.id===me)return S.call(oe,Ze),oe}else return oe;else if(dt&&(Ze=dt.getElementById(me))&&Ut.contains(ee,Ze)&&Ze.id===me)return S.call(oe,Ze),oe}else{if(Me[2])return S.apply(oe,ee.getElementsByTagName(Z)),oe;if((me=Me[3])&&ee.getElementsByClassName)return S.apply(oe,ee.getElementsByClassName(me)),oe}if(!gr[Z+" "]&&(!ne||!ne.test(Z))){if(it=Z,dt=ee,It===1&&(Vi.test(Z)||sa.test(Z))){for(dt=Al.test(Z)&&Fl(ee.parentNode)||ee,(dt!=ee||!O.scope)&&((Pe=ee.getAttribute("id"))?Pe=m.escapeSelector(Pe):ee.setAttribute("id",Pe=be)),xt=ti(Z),Re=xt.length;Re--;)xt[Re]=(Pe?"#"+Pe:":scope")+" "+un(xt[Re]);it=xt.join(",")}try{return S.apply(oe,dt.querySelectorAll(it)),oe}catch{gr(Z,!0)}finally{Pe===be&&ee.removeAttribute("id")}}}return Bl(Z.replace(L,"$1"),ee,oe,fe)}function fa(){var Z=[];function ee(oe,fe){return Z.push(oe+" ")>p.cacheLength&&delete ee[Z.shift()],ee[oe+" "]=fe}return ee}function Sn(Z){return Z[be]=!0,Z}function zr(Z){var ee=B.createElement("fieldset");try{return!!Z(ee)}catch{return!1}finally{ee.parentNode&&ee.parentNode.removeChild(ee),ee=null}}function Qi(Z){return function(ee){return K(ee,"input")&&ee.type===Z}}function Nl(Z){return function(ee){return(K(ee,"input")||K(ee,"button"))&&ee.type===Z}}function Ps(Z){return function(ee){return"form"in ee?ee.parentNode&&ee.disabled===!1?"label"in ee?"label"in ee.parentNode?ee.parentNode.disabled===Z:ee.disabled===Z:ee.isDisabled===Z||ee.isDisabled!==!Z&&Ma(ee)===Z:ee.disabled===Z:"label"in ee?ee.disabled===Z:!1}}function Fi(Z){return Sn(function(ee){return ee=+ee,Sn(function(oe,fe){for(var me,Re=Z([],oe.length,ee),Ze=Re.length;Ze--;)oe[me=Re[Ze]]&&(oe[me]=!(fe[me]=oe[me]))})})}function Fl(Z){return Z&&typeof Z.getElementsByTagName<"u"&&Z}function xi(Z){var ee,oe=Z?Z.ownerDocument||Z:Ie;return oe==B||oe.nodeType!==9||!oe.documentElement||(B=oe,Y=B.documentElement,P=!m.isXMLDoc(B),ce=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&Ie!=B&&(ee=B.defaultView)&&ee.top!==ee&&ee.addEventListener("unload",Yf),O.getById=zr(function(fe){return Y.appendChild(fe).id=m.expando,!B.getElementsByName||!B.getElementsByName(m.expando).length}),O.disconnectedMatch=zr(function(fe){return ce.call(fe,"*")}),O.scope=zr(function(){return B.querySelectorAll(":scope")}),O.cssHas=zr(function(){try{return B.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),O.getById?(p.filter.ID=function(fe){var me=fe.replace($n,ei);return function(Re){return Re.getAttribute("id")===me}},p.find.ID=function(fe,me){if(typeof me.getElementById<"u"&&P){var Re=me.getElementById(fe);return Re?[Re]:[]}}):(p.filter.ID=function(fe){var me=fe.replace($n,ei);return function(Re){var Ze=typeof Re.getAttributeNode<"u"&&Re.getAttributeNode("id");return Ze&&Ze.value===me}},p.find.ID=function(fe,me){if(typeof me.getElementById<"u"&&P){var Re,Ze,Pe,Me=me.getElementById(fe);if(Me){if(Re=Me.getAttributeNode("id"),Re&&Re.value===fe)return[Me];for(Pe=me.getElementsByName(fe),Ze=0;Me=Pe[Ze++];)if(Re=Me.getAttributeNode("id"),Re&&Re.value===fe)return[Me]}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"&&P)return me.getElementsByClassName(fe)},ne=[],zr(function(fe){var me;Y.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|"+jn+")"),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"),Y.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+`*(?:''|"")`)}),O.cssHas||ne.push(":has"),ne=ne.length&&new RegExp(ne.join("|")),zt=function(fe,me){if(fe===me)return _=!0,0;var Re=!fe.compareDocumentPosition-!me.compareDocumentPosition;return Re||(Re=(fe.ownerDocument||fe)==(me.ownerDocument||me)?fe.compareDocumentPosition(me):1,Re&1||!O.sortDetached&&me.compareDocumentPosition(fe)===Re?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:Re&4?-1:1)}),B}Ut.matches=function(Z,ee){return Ut(Z,null,null,ee)},Ut.matchesSelector=function(Z,ee){if(xi(Z),P&&!gr[ee+" "]&&(!ne||!ne.test(ee)))try{var oe=ce.call(Z,ee);if(oe||O.disconnectedMatch||Z.document&&Z.document.nodeType!==11)return oe}catch{gr(ee,!0)}return Ut(ee,B,null,[Z]).length>0},Ut.contains=function(Z,ee){return(Z.ownerDocument||Z)!=B&&xi(Z),m.contains(Z,ee)},Ut.attr=function(Z,ee){(Z.ownerDocument||Z)!=B&&xi(Z);var oe=p.attrHandle[ee.toLowerCase()],fe=oe&&I.call(p.attrHandle,ee.toLowerCase())?oe(Z,ee,!P):void 0;return fe!==void 0?fe:Z.getAttribute(ee)},Ut.error=function(Z){throw new Error("Syntax error, unrecognized expression: "+Z)},m.uniqueSort=function(Z){var ee,oe=[],fe=0,me=0;if(_=!O.sortStable,T=!O.sortStable&&u.call(Z,0),Te.call(Z,zt),_){for(;ee=Z[me++];)ee===Z[me]&&(fe=oe.push(me));for(;fe--;)z.call(Z,oe[fe],1)}return T=null,Z},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(Z){return Z[1]=Z[1].replace($n,ei),Z[3]=(Z[3]||Z[4]||Z[5]||"").replace($n,ei),Z[2]==="~="&&(Z[3]=" "+Z[3]+" "),Z.slice(0,4)},CHILD:function(Z){return Z[1]=Z[1].toLowerCase(),Z[1].slice(0,3)==="nth"?(Z[3]||Ut.error(Z[0]),Z[4]=+(Z[4]?Z[5]+(Z[6]||1):2*(Z[3]==="even"||Z[3]==="odd")),Z[5]=+(Z[7]+Z[8]||Z[3]==="odd")):Z[3]&&Ut.error(Z[0]),Z},PSEUDO:function(Z){var ee,oe=!Z[6]&&Z[2];return qn.CHILD.test(Z[0])?null:(Z[3]?Z[2]=Z[4]||Z[5]||"":oe&&zn.test(oe)&&(ee=ti(oe,!0))&&(ee=oe.indexOf(")",oe.length-ee)-oe.length)&&(Z[0]=Z[0].slice(0,ee),Z[2]=oe.slice(0,ee)),Z.slice(0,3))}},filter:{TAG:function(Z){var ee=Z.replace($n,ei).toLowerCase();return Z==="*"?function(){return!0}:function(oe){return K(oe,ee)}},CLASS:function(Z){var ee=ft[Z+" "];return ee||(ee=new RegExp("(^|"+he+")"+Z+"("+he+"|$)"))&&ft(Z,function(oe){return ee.test(typeof oe.className=="string"&&oe.className||typeof oe.getAttribute<"u"&&oe.getAttribute("class")||"")})},ATTR:function(Z,ee,oe){return function(fe){var me=Ut.attr(fe,Z);return me==null?ee==="!=":ee?(me+="",ee==="="?me===oe:ee==="!="?me!==oe:ee==="^="?oe&&me.indexOf(oe)===0:ee==="*="?oe&&me.indexOf(oe)>-1:ee==="$="?oe&&me.slice(-oe.length)===oe:ee==="~="?(" "+me.replace(rt," ")+" ").indexOf(oe)>-1:ee==="|="?me===oe||me.slice(0,oe.length+1)===oe+"-":!1):!0}},CHILD:function(Z,ee,oe,fe,me){var Re=Z.slice(0,3)!=="nth",Ze=Z.slice(-4)!=="last",Pe=ee==="of-type";return fe===1&&me===0?function(Me){return!!Me.parentNode}:function(Me,xt,it){var dt,It,tt,Ht,mr,fr=Re!==Ze?"nextSibling":"previousSibling",Fr=Me.parentNode,En=Pe&&Me.nodeName.toLowerCase(),Li=!it&&!Pe,Zr=!1;if(Fr){if(Re){for(;fr;){for(tt=Me;tt=tt[fr];)if(Pe?K(tt,En):tt.nodeType===1)return!1;mr=fr=Z==="only"&&!mr&&"nextSibling"}return!0}if(mr=[Ze?Fr.firstChild:Fr.lastChild],Ze&&Li){for(It=Fr[be]||(Fr[be]={}),dt=It[Z]||[],Ht=dt[0]===le&&dt[1],Zr=Ht&&dt[2],tt=Ht&&Fr.childNodes[Ht];tt=++Ht&&tt&&tt[fr]||(Zr=Ht=0)||mr.pop();)if(tt.nodeType===1&&++Zr&&tt===Me){It[Z]=[le,Ht,Zr];break}}else if(Li&&(It=Me[be]||(Me[be]={}),dt=It[Z]||[],Ht=dt[0]===le&&dt[1],Zr=Ht),Zr===!1)for(;(tt=++Ht&&tt&&tt[fr]||(Zr=Ht=0)||mr.pop())&&!((Pe?K(tt,En):tt.nodeType===1)&&++Zr&&(Li&&(It=tt[be]||(tt[be]={}),It[Z]=[le,Zr]),tt===Me)););return Zr-=me,Zr===fe||Zr%fe===0&&Zr/fe>=0}}},PSEUDO:function(Z,ee){var oe,fe=p.pseudos[Z]||p.setFilters[Z.toLowerCase()]||Ut.error("unsupported pseudo: "+Z);return fe[be]?fe(ee):fe.length>1?(oe=[Z,Z,"",ee],p.setFilters.hasOwnProperty(Z.toLowerCase())?Sn(function(me,Re){for(var Ze,Pe=fe(me,ee),Me=Pe.length;Me--;)Ze=b.call(me,Pe[Me]),me[Ze]=!(Re[Ze]=Pe[Me])}):function(me){return fe(me,0,oe)}):fe}},pseudos:{not:Sn(function(Z){var ee=[],oe=[],fe=Hi(Z.replace(L,"$1"));return fe[be]?Sn(function(me,Re,Ze,Pe){for(var Me,xt=fe(me,null,Pe,[]),it=me.length;it--;)(Me=xt[it])&&(me[it]=!(Re[it]=Me))}):function(me,Re,Ze){return ee[0]=me,fe(ee,null,Ze,oe),ee[0]=null,!oe.pop()}}),has:Sn(function(Z){return function(ee){return Ut(Z,ee).length>0}}),contains:Sn(function(Z){return Z=Z.replace($n,ei),function(ee){return(ee.textContent||m.text(ee)).indexOf(Z)>-1}}),lang:Sn(function(Z){return ua.test(Z||"")||Ut.error("unsupported lang: "+Z),Z=Z.replace($n,ei).toLowerCase(),function(ee){var oe;do if(oe=P?ee.lang:ee.getAttribute("xml:lang")||ee.getAttribute("lang"))return oe=oe.toLowerCase(),oe===Z||oe.indexOf(Z+"-")===0;while((ee=ee.parentNode)&&ee.nodeType===1);return!1}}),target:function(Z){var ee=e.location&&e.location.hash;return ee&&ee.slice(1)===Z.id},root:function(Z){return Z===Y},focus:function(Z){return Z===yi()&&B.hasFocus()&&!!(Z.type||Z.href||~Z.tabIndex)},enabled:Ps(!1),disabled:Ps(!0),checked:function(Z){return K(Z,"input")&&!!Z.checked||K(Z,"option")&&!!Z.selected},selected:function(Z){return Z.parentNode&&Z.parentNode.selectedIndex,Z.selected===!0},empty:function(Z){for(Z=Z.firstChild;Z;Z=Z.nextSibling)if(Z.nodeType<6)return!1;return!0},parent:function(Z){return!p.pseudos.empty(Z)},header:function(Z){return vi.test(Z.nodeName)},input:function(Z){return Kn.test(Z.nodeName)},button:function(Z){return K(Z,"input")&&Z.type==="button"||K(Z,"button")},text:function(Z){var ee;return K(Z,"input")&&Z.type==="text"&&((ee=Z.getAttribute("type"))==null||ee.toLowerCase()==="text")},first:Fi(function(){return[0]}),last:Fi(function(Z,ee){return[ee-1]}),eq:Fi(function(Z,ee,oe){return[oe<0?oe+ee:oe]}),even:Fi(function(Z,ee){for(var oe=0;oe<ee;oe+=2)Z.push(oe);return Z}),odd:Fi(function(Z,ee){for(var oe=1;oe<ee;oe+=2)Z.push(oe);return Z}),lt:Fi(function(Z,ee,oe){var fe;for(oe<0?fe=oe+ee:oe>ee?fe=ee:fe=oe;--fe>=0;)Z.push(fe);return Z}),gt:Fi(function(Z,ee,oe){for(var fe=oe<0?oe+ee:oe;++fe<ee;)Z.push(fe);return Z})}},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(Z,ee){var oe,fe,me,Re,Ze,Pe,Me,xt=At[Z+" "];if(xt)return ee?0:xt.slice(0);for(Ze=Z,Pe=[],Me=p.preFilter;Ze;){(!oe||(fe=ar.exec(Ze)))&&(fe&&(Ze=Ze.slice(fe[0].length)||Ze),Pe.push(me=[])),oe=!1,(fe=sa.exec(Ze))&&(oe=fe.shift(),me.push({value:oe,type:fe[0].replace(L," ")}),Ze=Ze.slice(oe.length));for(Re in p.filter)(fe=qn[Re].exec(Ze))&&(!Me[Re]||(fe=Me[Re](fe)))&&(oe=fe.shift(),me.push({value:oe,type:Re,matches:fe}),Ze=Ze.slice(oe.length));if(!oe)break}return ee?Ze.length:Ze?Ut.error(Z):At(Z,Pe).slice(0)}function un(Z){for(var ee=0,oe=Z.length,fe="";ee<oe;ee++)fe+=Z[ee].value;return fe}function Za(Z,ee,oe){var fe=ee.dir,me=ee.next,Re=me||fe,Ze=oe&&Re==="parentNode",Pe=Se++;return ee.first?function(Me,xt,it){for(;Me=Me[fe];)if(Me.nodeType===1||Ze)return Z(Me,xt,it);return!1}:function(Me,xt,it){var dt,It,tt=[le,Pe];if(it){for(;Me=Me[fe];)if((Me.nodeType===1||Ze)&&Z(Me,xt,it))return!0}else for(;Me=Me[fe];)if(Me.nodeType===1||Ze)if(It=Me[be]||(Me[be]={}),me&&K(Me,me))Me=Me[fe]||Me;else{if((dt=It[Re])&&dt[0]===le&&dt[1]===Pe)return tt[2]=dt[2];if(It[Re]=tt,tt[2]=Z(Me,xt,it))return!0}return!1}}function yo(Z){return Z.length>1?function(ee,oe,fe){for(var me=Z.length;me--;)if(!Z[me](ee,oe,fe))return!1;return!0}:Z[0]}function zf(Z,ee,oe){for(var fe=0,me=ee.length;fe<me;fe++)Ut(Z,ee[fe],oe);return oe}function xo(Z,ee,oe,fe,me){for(var Re,Ze=[],Pe=0,Me=Z.length,xt=ee!=null;Pe<Me;Pe++)(Re=Z[Pe])&&(!oe||oe(Re,fe,me))&&(Ze.push(Re),xt&&ee.push(Pe));return Ze}function Ll(Z,ee,oe,fe,me,Re){return fe&&!fe[be]&&(fe=Ll(fe)),me&&!me[be]&&(me=Ll(me,Re)),Sn(function(Ze,Pe,Me,xt){var it,dt,It,tt,Ht=[],mr=[],fr=Pe.length,Fr=Ze||zf(ee||"*",Me.nodeType?[Me]:Me,[]),En=Z&&(Ze||!ee)?xo(Fr,Ht,Z,Me,xt):Fr;if(oe?(tt=me||(Ze?Z:fr||fe)?[]:Pe,oe(En,tt,Me,xt)):tt=En,fe)for(it=xo(tt,mr),fe(it,[],Me,xt),dt=it.length;dt--;)(It=it[dt])&&(tt[mr[dt]]=!(En[mr[dt]]=It));if(Ze){if(me||Z){if(me){for(it=[],dt=tt.length;dt--;)(It=tt[dt])&&it.push(En[dt]=It);me(null,tt=[],it,xt)}for(dt=tt.length;dt--;)(It=tt[dt])&&(it=me?b.call(Ze,It):Ht[dt])>-1&&(Ze[it]=!(Pe[it]=It))}}else tt=xo(tt===Pe?tt.splice(fr,tt.length):tt),me?me(null,Pe,tt,xt):S.apply(Pe,tt)})}function To(Z){for(var ee,oe,fe,me=Z.length,Re=p.relative[Z[0].type],Ze=Re||p.relative[" "],Pe=Re?1:0,Me=Za(function(dt){return dt===ee},Ze,!0),xt=Za(function(dt){return b.call(ee,dt)>-1},Ze,!0),it=[function(dt,It,tt){var Ht=!Re&&(tt||It!=v)||((ee=It).nodeType?Me(dt,It,tt):xt(dt,It,tt));return ee=null,Ht}];Pe<me;Pe++)if(oe=p.relative[Z[Pe].type])it=[Za(yo(it),oe)];else{if(oe=p.filter[Z[Pe].type].apply(null,Z[Pe].matches),oe[be]){for(fe=++Pe;fe<me&&!p.relative[Z[fe].type];fe++);return Ll(Pe>1&&yo(it),Pe>1&&un(Z.slice(0,Pe-1).concat({value:Z[Pe-2].type===" "?"*":""})).replace(L,"$1"),oe,Pe<fe&&To(Z.slice(Pe,fe)),fe<me&&To(Z=Z.slice(fe)),fe<me&&un(Z))}it.push(oe)}return yo(it)}function js(Z,ee){var oe=ee.length>0,fe=Z.length>0,me=function(Re,Ze,Pe,Me,xt){var it,dt,It,tt=0,Ht="0",mr=Re&&[],fr=[],Fr=v,En=Re||fe&&p.find.TAG("*",xt),Li=le+=Fr==null?1:Math.random()||.1,Zr=En.length;for(xt&&(v=Ze==B||Ze||xt);Ht!==Zr&&(it=En[Ht])!=null;Ht++){if(fe&&it){for(dt=0,!Ze&&it.ownerDocument!=B&&(xi(it),Pe=!P);It=Z[dt++];)if(It(it,Ze||B,Pe)){S.call(Me,it);break}xt&&(le=Li)}oe&&((it=!It&&it)&&tt--,Re&&mr.push(it))}if(tt+=Ht,oe&&Ht!==tt){for(dt=0;It=ee[dt++];)It(mr,fr,Ze,Pe);if(Re){if(tt>0)for(;Ht--;)mr[Ht]||fr[Ht]||(fr[Ht]=ue.call(Me));fr=xo(fr)}S.apply(Me,fr),xt&&!Re&&fr.length>0&&tt+ee.length>1&&m.uniqueSort(Me)}return xt&&(le=Li,v=Fr),mr};return oe?Sn(me):me}function Hi(Z,ee){var oe,fe=[],me=[],Re=vt[Z+" "];if(!Re){for(ee||(ee=ti(Z)),oe=ee.length;oe--;)Re=To(ee[oe]),Re[be]?fe.push(Re):me.push(Re);Re=vt(Z,js(me,fe)),Re.selector=Z}return Re}function Bl(Z,ee,oe,fe){var me,Re,Ze,Pe,Me,xt=typeof Z=="function"&&Z,it=!fe&&ti(Z=xt.selector||Z);if(oe=oe||[],it.length===1){if(Re=it[0]=it[0].slice(0),Re.length>2&&(Ze=Re[0]).type==="ID"&&ee.nodeType===9&&P&&p.relative[Re[1].type]){if(ee=(p.find.ID(Ze.matches[0].replace($n,ei),ee)||[])[0],ee)xt&&(ee=ee.parentNode);else return oe;Z=Z.slice(Re.shift().value.length)}for(me=qn.needsContext.test(Z)?0:Re.length;me--&&(Ze=Re[me],!p.relative[Pe=Ze.type]);)if((Me=p.find[Pe])&&(fe=Me(Ze.matches[0].replace($n,ei),Al.test(Re[0].type)&&Fl(ee.parentNode)||ee))){if(Re.splice(me,1),Z=fe.length&&un(Re),!Z)return S.apply(oe,fe),oe;break}}return(xt||Hi(Z,it))(fe,ee,!P,oe,!ee||Al.test(Z)&&Fl(ee.parentNode)||ee),oe}O.sortStable=be.split("").sort(zt).join("")===be,xi(),O.sortDetached=zr(function(Z){return Z.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=[],_=v!==void 0;(d=d[p])&&d.nodeType!==9;)if(d.nodeType===1){if(_&&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 wt(d,p,v){return U(p)?m.grep(d,function(T,_){return!!p.call(T,_,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(_){return _.nodeType===1}))},m.fn.extend({find:function(d){var p,v,T=this.length,_=this;if(typeof d!="string")return this.pushStack(m(d).filter(function(){for(p=0;p<T;p++)if(m.contains(_[p],this))return!0}));for(v=this.pushStack([]),p=0;p<T;p++)m.find(d,_[p],v);return T>1?m.uniqueSort(v):v},filter:function(d){return this.pushStack(wt(this,d||[],!1))},not:function(d){return this.pushStack(wt(this,d||[],!0))},is:function(d){return!!wt(this,typeof d=="string"&<.test(d)?m(d):d||[],!1).length}});var Ye,Qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Le=m.fn.init=function(d,p,v){var T,_;if(!d)return this;if(v=v||Ye,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:R,!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.getElementById(T[2]),_&&(this[0]=_,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,Ye=m(R);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,_=this.length,S=[],B=typeof d!="string"&&m(d);if(!lt.test(d)){for(;T<_;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:(K(d,"template")&&(d=d.content||d),m.merge([],d.childNodes))}},function(d,p){m.fn[d]=function(v,T){var _=m.map(this,p,v);return d.slice(-5)!=="Until"&&(T=v),T&&typeof T=="string"&&(_=m.filter(T,_)),this.length>1&&(He[d]||m.uniqueSort(_),Ge.test(d)&&_.reverse()),this.pushStack(_)}});var Ae=/[^\x20\t\r\n\f]+/g;function ct(d){var p={};return m.each(d.match(Ae)||[],function(v,T){p[T]=!0}),p}m.Callbacks=function(d){d=typeof d=="string"?ct(d):m.extend({},d);var p,v,T,_,S=[],B=[],Y=-1,P=function(){for(_=_||d.once,T=p=!0;B.length;Y=-1)for(v=B.shift();++Y<S.length;)S[Y].apply(v[0],v[1])===!1&&d.stopOnFalse&&(Y=S.length,v=!1);d.memory||(v=!1),p=!1,_&&(v?S=[]:S="")},ne={add:function(){return S&&(v&&!p&&(Y=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&&P()),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<=Y&&Y--}),this},has:function(ce){return ce?m.inArray(ce,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return _=B=[],S=v="",this},disabled:function(){return!S},lock:function(){return _=B=[],!v&&!p&&(S=v=""),this},locked:function(){return!!_},fireWith:function(ce,be){return _||(be=be||[],be=[ce,be.slice?be.slice():be],B.push(be),p||P()),this},fire:function(){return ne.fireWith(this,arguments),this},fired:function(){return!!T}};return ne};function St(d){return d}function pt(d){throw d}function st(d,p,v,T){var _;try{d&&U(_=d.promise)?_.call(d).done(p).fail(v):d&&U(_=d.then)?_.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 _.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(Y,P){var ne=U(S[P[4]])&&S[P[4]];_[P[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[P[0]+"With"](this,ne?[ce]:arguments)})}),S=null}).promise()},then:function(S,B,Y){var P=0;function ne(ce,be,le,Se){return function(){var ft=this,At=arguments,vt=function(){var zt,jn;if(!(ce<P)){if(zt=le.apply(ft,At),zt===be.promise())throw new TypeError("Thenable self-resolution");jn=zt&&(typeof zt=="object"||typeof zt=="function")&&zt.then,U(jn)?Se?jn.call(zt,ne(P,be,St,Se),ne(P,be,pt,Se)):(P++,jn.call(zt,ne(P,be,St,Se),ne(P,be,pt,Se),ne(P,be,St,be.notifyWith))):(le!==St&&(ft=void 0,At=[zt]),(Se||be.resolveWith)(ft,At))}},gr=Se?vt:function(){try{vt()}catch(zt){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(zt,gr.error),ce+1>=P&&(le!==pt&&(ft=void 0,At=[zt]),be.rejectWith(ft,At))}};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(Y)?Y:St,ce.notifyWith)),p[1][3].add(ne(0,ce,U(S)?S:St)),p[2][3].add(ne(0,ce,U(B)?B:pt))}).promise()},promise:function(S){return S!=null?m.extend(S,T):T}},_={};return m.each(p,function(S,B){var Y=B[2],P=B[5];T[B[1]]=Y.add,P&&Y.add(function(){v=P},p[3-S][2].disable,p[3-S][3].disable,p[0][2].lock,p[0][3].lock),Y.add(B[3].fire),_[B[0]]=function(){return _[B[0]+"With"](this===_?void 0:this,arguments),this},_[B[0]+"With"]=Y.fireWith}),T.promise(_),d&&d.call(_,_),_},when:function(d){var p=arguments.length,v=p,T=Array(v),_=u.call(arguments),S=m.Deferred(),B=function(Y){return function(P){T[Y]=this,_[Y]=arguments.length>1?u.call(arguments):P,--p||S.resolveWith(T,_)}};if(p<=1&&(st(d,S.done(B(v)).resolve,S.reject,!p),S.state()==="pending"||U(_[v]&&_[v].then)))return S.then();for(;v--;)st(_[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 Tt=m.Deferred();m.fn.ready=function(d){return Tt.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)&&Tt.resolveWith(R,[m]))}}),m.ready.then=Tt.then;function ut(){R.removeEventListener("DOMContentLoaded",ut),e.removeEventListener("load",ut),m.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?e.setTimeout(m.ready):(R.addEventListener("DOMContentLoaded",ut),e.addEventListener("load",ut));var mt=function(d,p,v,T,_,S,B){var Y=0,P=d.length,ne=v==null;if(V(v)==="object"){_=!0;for(Y in v)mt(d,p,Y,v[Y],!0,S,B)}else if(T!==void 0&&(_=!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(;Y<P;Y++)p(d[Y],v,B?T:T.call(d[Y],Y,p(d[Y],v)));return _?d:ne?p.call(d):P?p(d[0],v):S},je=/^-ms-/,vr=/-([a-z])/g;function yr(d,p){return p.toUpperCase()}function tr(d){return d.replace(je,"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,_=this.cache(d);if(typeof p=="string")_[tr(p)]=v;else for(T in p)_[tr(T)]=p[T];return _},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(Ae)||[]),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 Zt(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=Zt(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,_,S=this[0],B=S&&S.attributes;if(d===void 0){if(this.length&&(_=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,_[T])));Be.set(S,"hasDataAttrs",!0)}return _}return typeof d=="object"?this.each(function(){gt.set(this,d)}):mt(this,function(Y){var P;if(S&&Y===void 0)return P=gt.get(S,d),P!==void 0||(P=xr(S,d),P!==void 0)?P:void 0;this.each(function(){gt.set(this,d,Y)})},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,_=v.shift(),S=m._queueHooks(d,p),B=function(){m.dequeue(d,p)};_==="inprogress"&&(_=v.shift(),T--),_&&(p==="fx"&&v.unshift("inprogress"),delete S.stop,_.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,_=m.Deferred(),S=this,B=this.length,Y=function(){--T||_.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(Y));return Y(),_.promise(p)}});var Pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rr=new RegExp("^(?:([+-])=|)("+Pt+")([a-z%]*)$","i"),sr=["Top","Right","Bottom","Left"],Tr=R.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 _,S,B=20,Y=T?function(){return T.cur()}:function(){return m.css(d,p,"")},P=Y(),ne=v&&v[3]||(m.cssNumber[p]?"":"px"),ce=d.nodeType&&(m.cssNumber[p]||ne!=="px"&&+P)&&rr.exec(m.css(d,p));if(ce&&ce[3]!==ne){for(P=P/2,ne=ne||ce[3],ce=+P||1;B--;)m.style(d,p,ce+ne),(1-S)*(1-(S=Y()/P||.5))<=0&&(B=0),ce=ce/S;ce=ce*2,m.style(d,p,ce+ne),v=v||[]}return v&&(ce=+ce||+P||0,_=v[1]?ce+(v[1]+1)*v[2]:+v[2],T&&(T.unit=ne,T.start=ce,T.end=_)),_}var en={};function Cr(d){var p,v=d.ownerDocument,T=d.nodeName,_=en[T];return _||(p=v.body.appendChild(v.createElement(T)),_=m.css(p,"display"),p.parentNode.removeChild(p),_==="none"&&(_="block"),en[T]=_,_)}function Ft(d,p){for(var v,T,_=[],S=0,B=d.length;S<B;S++)T=d[S],T.style&&(v=T.style.display,p?(v==="none"&&(_[S]=Be.get(T,"display")||null,_[S]||(T.style.display="")),T.style.display===""&&$r(T)&&(_[S]=Cr(T))):v!=="none"&&(_[S]="none",Be.set(T,"display",v)));for(S=0;S<B;S++)_[S]!=null&&(d[S].style.display=_[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=R.createDocumentFragment(),p=d.appendChild(R.createElement("div")),v=R.createElement("input");v.setAttribute("type","radio"),v.setAttribute("checked","checked"),v.setAttribute("name","t"),p.appendChild(v),O.checkClone=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="<textarea>x</textarea>",O.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue,p.innerHTML="<option></option>",O.option=!!p.lastChild})();var jt={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,"",""]};jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td,O.option||(jt.optgroup=jt.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&&K(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,_){for(var S,B,Y,P,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")),Y=(Jr.exec(S)||["",""])[1].toLowerCase(),P=jt[Y]||jt._default,B.innerHTML=P[1]+m.htmlPrefilter(S)+P[2],ce=P[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){_&&_.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,_,S){var B,Y;if(typeof p=="object"){typeof v!="string"&&(T=T||v,v=void 0);for(Y in p)Dn(d,Y,v,T,p[Y],S);return d}if(T==null&&_==null?(_=v,T=v=void 0):_==null&&(typeof v=="string"?(_=T,T=void 0):(_=T,T=v,v=void 0)),_===!1)_=Gn;else if(!_)return d;return S===1&&(B=_,_=function(P){return m().off(P),B.apply(this,arguments)},_.guid=B.guid||(B.guid=m.guid++)),d.each(function(){m.event.add(this,p,_,T,v)})}m.event={global:{},add:function(d,p,v,T,_){var S,B,Y,P,ne,ce,be,le,Se,ft,At,vt=Be.get(d);if(Ot(d))for(v.handler&&(S=v,v=S.handler,_=S.selector),_&&m.find.matchesSelector(Tr,_),v.guid||(v.guid=m.guid++),(P=vt.events)||(P=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(Ae)||[""],ne=p.length;ne--;)Y=hi.exec(p[ne])||[],Se=At=Y[1],ft=(Y[2]||"").split(".").sort(),Se&&(be=m.event.special[Se]||{},Se=(_?be.delegateType:be.bindType)||Se,be=m.event.special[Se]||{},ce=m.extend({type:Se,origType:At,data:T,handler:v,guid:v.guid,selector:_,needsContext:_&&m.expr.match.needsContext.test(_),namespace:ft.join(".")},S),(le=P[Se])||(le=P[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)),_?le.splice(le.delegateCount++,0,ce):le.push(ce),m.event.global[Se]=!0)},remove:function(d,p,v,T,_){var S,B,Y,P,ne,ce,be,le,Se,ft,At,vt=Be.hasData(d)&&Be.get(d);if(!(!vt||!(P=vt.events))){for(p=(p||"").match(Ae)||[""],ne=p.length;ne--;){if(Y=hi.exec(p[ne])||[],Se=At=Y[1],ft=(Y[2]||"").split(".").sort(),!Se){for(Se in P)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=P[Se]||[],Y=Y[2]&&new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"),B=S=le.length;S--;)ce=le[S],(_||At===ce.origType)&&(!v||v.guid===ce.guid)&&(!Y||Y.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 P[Se])}m.isEmptyObject(P)&&Be.remove(d,"handle events")}},dispatch:function(d){var p,v,T,_,S,B,Y=new Array(arguments.length),P=m.event.fix(d),ne=(Be.get(this,"events")||Object.create(null))[P.type]||[],ce=m.event.special[P.type]||{};for(Y[0]=P,p=1;p<arguments.length;p++)Y[p]=arguments[p];if(P.delegateTarget=this,!(ce.preDispatch&&ce.preDispatch.call(this,P)===!1)){for(B=m.event.handlers.call(this,P,ne),p=0;(_=B[p++])&&!P.isPropagationStopped();)for(P.currentTarget=_.elem,v=0;(S=_.handlers[v++])&&!P.isImmediatePropagationStopped();)(!P.rnamespace||S.namespace===!1||P.rnamespace.test(S.namespace))&&(P.handleObj=S,P.data=S.data,T=((m.event.special[S.origType]||{}).handle||S.handler).apply(_.elem,Y),T!==void 0&&(P.result=T)===!1&&(P.preventDefault(),P.stopPropagation()));return ce.postDispatch&&ce.postDispatch.call(this,P),P.result}},handlers:function(d,p){var v,T,_,S,B,Y=[],P=p.delegateCount,ne=d.target;if(P&&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<P;v++)T=p[v],_=T.selector+" ",B[_]===void 0&&(B[_]=T.needsContext?m(_,this).index(ne)>-1:m.find(_,this,null,[ne]).length),B[_]&&S.push(T);S.length&&Y.push({elem:ne,handlers:S})}}return ne=this,P<p.length&&Y.push({elem:ne,handlers:p.slice(P)}),Y},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&&K(p,"input")&&pi(p,"click",!0),!1},trigger:function(d){var p=this||d;return Lt.test(p.type)&&p.click&&K(p,"input")&&pi(p,"click"),!0},_default:function(d){var p=d.target;return Lt.test(p.type)&&p.click&&K(p,"input")&&Be.get(p,"click")||K(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 _,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](),_=Be.get(this,p),Be.set(this,p,!1),S!==_)return T.stopImmediatePropagation(),T.preventDefault(),_}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(R.documentMode){var _=Be.get(this,"handle"),S=m.event.fix(T);S.type=T.type==="focusin"?"focus":"blur",S.isSimulated=!0,_(T),S.target===S.currentTarget&&_(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),R.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(R.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.documentMode?this:T,S=Be.get(_,p);S||(R.documentMode?this.addEventListener(p,v):T.addEventListener(d,v,!0)),Be.set(_,p,(S||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,_=R.documentMode?this:T,S=Be.get(_,p)-1;S?Be.set(_,p,S):(R.documentMode?this.removeEventListener(p,v):T.removeEventListener(d,v,!0),Be.remove(_,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,_=this,S=v.relatedTarget,B=v.handleObj;return(!S||S!==_&&!m.contains(_,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,_;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(_ in d)this.off(_,p,d[_]);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,Mr=/checked\s*(?:[^=]|=\s*.checked.)/i,Pr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Cn(d,p){return K(d,"table")&&K(p.nodeType!==11?p:p.firstChild,"tr")&&m(d).children("tbody")[0]||d}function Ri(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,_,S,B,Y,P;if(p.nodeType===1){if(Be.hasData(d)&&(S=Be.get(d),P=S.events,P)){Be.remove(p,"handle events");for(_ in P)for(v=0,T=P[_].length;v<T;v++)m.event.add(p,_,P[_][v])}gt.hasData(d)&&(B=gt.access(d),Y=m.extend({},B),gt.set(p,Y))}}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 _,S,B,Y,P,ne,ce=0,be=d.length,le=be-1,Se=p[0],ft=U(Se);if(ft||be>1&&typeof Se=="string"&&!O.checkClone&&Mr.test(Se))return d.each(function(At){var vt=d.eq(At);ft&&(p[0]=Se.call(this,At,vt.html())),Ir(vt,p,v,T)});if(be&&(_=kn(p,d[0].ownerDocument,!1,d,T),S=_.firstChild,_.childNodes.length===1&&(_=S),S||T)){for(B=m.map(Bt(_,"script"),Ri),Y=B.length;ce<be;ce++)P=_,ce!==le&&(P=m.clone(P,!0,!0),Y&&m.merge(B,Bt(P,"script"))),v.call(d[ce],P,ce);if(Y)for(ne=B[B.length-1].ownerDocument,m.map(B,tn),ce=0;ce<Y;ce++)P=B[ce],ur.test(P.type||"")&&!Be.access(P,"globalEval")&&m.contains(ne,P)&&(P.src&&(P.type||"").toLowerCase()!=="module"?m._evalUrl&&!P.noModule&&m._evalUrl(P.src,{nonce:P.nonce||P.getAttribute("nonce")},ne):te(P.textContent.replace(Pr,""),P,ne))}return d}function jr(d,p,v){for(var T,_=p?m.filter(p,d):d,S=0;(T=_[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,_,S,B,Y=d.cloneNode(!0),P=sn(d);if(!O.noCloneChecked&&(d.nodeType===1||d.nodeType===11)&&!m.isXMLDoc(d))for(B=Bt(Y),S=Bt(d),T=0,_=S.length;T<_;T++)gi(S[T],B[T]);if(p)if(v)for(S=S||Bt(d),B=B||Bt(Y),T=0,_=S.length;T<_;T++)rn(S[T],B[T]);else rn(d,Y);return B=Bt(Y,"script"),B.length>0&&Vt(B,!P&&Bt(d,"script")),Y},cleanData:function(d){for(var p,v,T,_=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)_[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 jr(this,d,!0)},remove:function(d){return jr(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,_=this.length;if(p===void 0&&v.nodeType===1)return v.innerHTML;if(typeof p=="string"&&!Or.test(p)&&!jt[(Jr.exec(p)||["",""])[1].toLowerCase()]){p=m.htmlPrefilter(p);try{for(;T<_;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,_=[],S=m(v),B=S.length-1,Y=0;Y<=B;Y++)T=Y===B?this:this.clone(!0),m(S[Y])[p](T),h.apply(_,T.get());return this.pushStack(_)}});var In=new RegExp("^("+Pt+")(?!px)[a-z%]+$","i"),Xn=/^--/,Xe=function(d){var p=d.ownerDocument.defaultView;return(!p||!p.opener)&&(p=e),p.getComputedStyle(d)},q=function(d,p,v){var T,_,S={};for(_ in p)S[_]=d.style[_],d.style[_]=p[_];T=v.call(d);for(_ in p)d.style[_]=S[_];return T},we=new RegExp(sr.join("|"),"i");(function(){function d(){if(ne){P.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(P).appendChild(ne);var ce=e.getComputedStyle(ne);v=ce.top!=="1%",Y=p(ce.marginLeft)===12,ne.style.right="60%",S=p(ce.right)===36,T=p(ce.width)===36,ne.style.position="absolute",_=p(ne.offsetWidth/3)===12,Tr.removeChild(P),ne=null}}function p(ce){return Math.round(parseFloat(ce))}var v,T,_,S,B,Y,P=R.createElement("div"),ne=R.createElement("div");ne.style&&(ne.style.backgroundClip="content-box",ne.cloneNode(!0).style.backgroundClip="",O.clearCloneStyle=ne.style.backgroundClip==="content-box",m.extend(O,{boxSizingReliable:function(){return d(),T},pixelBoxStyles:function(){return d(),S},pixelPosition:function(){return d(),v},reliableMarginLeft:function(){return d(),Y},scrollboxSize:function(){return d(),_},reliableTrDimensions:function(){var ce,be,le,Se;return B==null&&(ce=R.createElement("table"),be=R.createElement("tr"),le=R.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,_,S,B,Y=Xn.test(p),P=d.style;return v=v||Xe(d),v&&(B=v.getPropertyValue(p)||v[p],Y&&B&&(B=B.replace(L,"$1")||void 0),B===""&&!sn(d)&&(B=m.style(d,p)),!O.pixelBoxStyles()&&In.test(B)&&we.test(p)&&(T=P.width,_=P.minWidth,S=P.maxWidth,P.minWidth=P.maxWidth=P.width=B,B=v.width,P.width=T,P.minWidth=_,P.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 Yt=["Webkit","Moz","ms"],ht=R.createElement("div").style,De={};function wr(d){for(var p=d[0].toUpperCase()+d.slice(1),v=Yt.length;v--;)if(d=Yt[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,_,S){var B=p==="width"?1:0,Y=0,P=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,_)),T?(v==="content"&&(P-=m.css(d,"padding"+sr[B],!0,_)),v!=="margin"&&(P-=m.css(d,"border"+sr[B]+"Width",!0,_))):(P+=m.css(d,"padding"+sr[B],!0,_),v!=="padding"?P+=m.css(d,"border"+sr[B]+"Width",!0,_):Y+=m.css(d,"border"+sr[B]+"Width",!0,_));return!T&&S>=0&&(P+=Math.max(0,Math.ceil(d["offset"+p[0].toUpperCase()+p.slice(1)]-S-P-Y-.5))||0),P+ne}function se(d,p,v){var T=Xe(d),_=!O.boxSizingReliable()||v,S=_&&m.css(d,"boxSizing",!1,T)==="border-box",B=S,Y=Oe(d,p,T),P="offset"+p[0].toUpperCase()+p.slice(1);if(In.test(Y)){if(!v)return Y;Y="auto"}return(!O.boxSizingReliable()&&S||!O.reliableTrDimensions()&&K(d,"tr")||Y==="auto"||!parseFloat(Y)&&m.css(d,"display",!1,T)==="inline")&&d.getClientRects().length&&(S=m.css(d,"boxSizing",!1,T)==="border-box",B=P in d,B&&(Y=d[P])),Y=parseFloat(Y)||0,Y+Ce(d,p,v||(S?"border":"content"),B,T,Y)+"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 _,S,B,Y=tr(p),P=Xn.test(p),ne=d.style;if(P||(p=nn(Y)),B=m.cssHooks[p]||m.cssHooks[Y],v!==void 0){if(S=typeof v,S==="string"&&(_=rr.exec(v))&&_[1]&&(v=Je(d,p,_),S="number"),v==null||v!==v)return;S==="number"&&!P&&(v+=_&&_[3]||(m.cssNumber[Y]?"":"px")),!O.clearCloneStyle&&v===""&&p.indexOf("background")===0&&(ne[p]="inherit"),(!B||!("set"in B)||(v=B.set(d,v,T))!==void 0)&&(P?ne.setProperty(p,v):ne[p]=v)}else return B&&"get"in B&&(_=B.get(d,!1,T))!==void 0?_:ne[p]}},css:function(d,p,v,T){var _,S,B,Y=tr(p),P=Xn.test(p);return P||(p=nn(Y)),B=m.cssHooks[p]||m.cssHooks[Y],B&&"get"in B&&(_=B.get(d,!0,v)),_===void 0&&(_=Oe(d,p,T)),_==="normal"&&p in H&&(_=H[p]),v===""||v?(S=parseFloat(_),v===!0||isFinite(S)?S||0:_):_}}),m.each(["height","width"],function(d,p){m.cssHooks[p]={get:function(v,T,_){if(T)return Nr.test(m.css(v,"display"))&&(!v.getClientRects().length||!v.getBoundingClientRect().width)?q(v,N,function(){return se(v,p,_)}):se(v,p,_)},set:function(v,T,_){var S,B=Xe(v),Y=!O.scrollboxSize()&&B.position==="absolute",P=Y||_,ne=P&&m.css(v,"boxSizing",!1,B)==="border-box",ce=_?Ce(v,p,_,ne,B):0;return ne&&Y&&(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(O.reliableMarginLeft,function(d,p){if(p)return(parseFloat(Oe(d,"marginLeft"))||d.getBoundingClientRect().left-q(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,_={},S=typeof v=="string"?v.split(" "):[v];T<4;T++)_[d+sr[T]+p]=S[T]||S[T-2]||S[0];return _}},d!=="margin"&&(m.cssHooks[d+p].set=pe)}),m.fn.extend({css:function(d,p){return mt(this,function(v,T,_){var S,B,Y={},P=0;if(Array.isArray(T)){for(S=Xe(v),B=T.length;P<B;P++)Y[T[P]]=m.css(v,T[P],!1,S);return Y}return _!==void 0?m.style(v,T,_):m.css(v,T)},d,p,arguments.length>1)}});function Ee(d,p,v,T,_){return new Ee.prototype.init(d,p,v,T,_)}m.Tween=Ee,Ee.prototype={constructor:Ee,init:function(d,p,v,T,_,S){this.elem=d,this.prop=v,this.easing=_||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 Ct,ir,Yr=/^(?:toggle|show|hide)$/,ia=/queueHooks$/;function ho(){ir&&(R.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(ho):e.setTimeout(ho,m.fx.interval),m.fx.tick())}function ot(){return e.setTimeout(function(){Ct=void 0}),Ct=Date.now()}function po(d,p){var v,T=0,_={height:d};for(p=p?1:0;T<4;T+=2-p)v=sr[T],_["margin"+v]=_["padding"+v]=d;return p&&(_.opacity=_.width=d),_}function vl(d,p,v){for(var T,_=(wn.tweeners[p]||[]).concat(wn.tweeners["*"]),S=0,B=_.length;S<B;S++)if(T=_[S].call(v,p,d))return T}function go(d,p,v){var T,_,S,B,Y,P,ne,ce,be="width"in p||"height"in p,le=this,Se={},ft=d.style,At=d.nodeType&&$r(d),vt=Be.get(d,"fxshow");v.queue||(B=m._queueHooks(d,"fx"),B.unqueued==null&&(B.unqueued=0,Y=B.empty.fire,B.empty.fire=function(){B.unqueued||Y()}),B.unqueued++,le.always(function(){le.always(function(){B.unqueued--,m.queue(d,"fx").length||B.empty.fire()})}));for(T in p)if(_=p[T],Yr.test(_)){if(delete p[T],S=S||_==="toggle",_===(At?"hide":"show"))if(_==="show"&&vt&&vt[T]!==void 0)At=!0;else continue;Se[T]=vt&&vt[T]||m.style(d,T)}if(P=!m.isEmptyObject(p),!(!P&&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"&&(P||(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]})),P=!1;for(T in Se)P||(vt?"hidden"in vt&&(At=vt.hidden):vt=Be.access(d,"fxshow",{display:ne}),S&&(vt.hidden=!At),At&&Ft([d],!0),le.done(function(){At||Ft([d]),Be.remove(d,"fxshow");for(T in Se)m.style(d,T,Se[T])})),P=vl(At?vt[T]:0,T,le),T in vt||(vt[T]=P.start,At&&(P.end=P.start,P.start=0))}}function Jn(d,p){var v,T,_,S,B;for(v in d)if(T=tr(v),_=p[T],S=d[v],Array.isArray(S)&&(_=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]=_)}else p[T]=_}function wn(d,p,v){var T,_,S=0,B=wn.prefilters.length,Y=m.Deferred().always(function(){delete P.elem}),P=function(){if(_)return!1;for(var be=Ct||ot(),le=Math.max(0,ne.startTime+ne.duration-be),Se=le/ne.duration||0,ft=1-Se,At=0,vt=ne.tweens.length;At<vt;At++)ne.tweens[At].run(ft);return Y.notifyWith(d,[ne,ft,le]),ft<1&&vt?le:(vt||Y.notifyWith(d,[ne,1,0]),Y.resolveWith(d,[ne]),!1)},ne=Y.promise({elem:d,props:m.extend({},p),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},v),originalProperties:p,originalOptions:v,startTime:Ct||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(_)return this;for(_=!0;le<Se;le++)ne.tweens[le].run(1);return be?(Y.notifyWith(d,[ne,1,0]),Y.resolveWith(d,[ne,be])):Y.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(P,{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(Ae);for(var v,T=0,_=d.length;T<_;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 _=m.isEmptyObject(d),S=m.speed(p,v,T),B=function(){var Y=wn(this,m.extend({},d),S);(_||Be.get(this,"finish"))&&Y.stop(!0)};return B.finish=B,_||S.queue===!1?this.each(B):this.queue(S.queue,B)},stop:function(d,p,v){var T=function(_){var S=_.stop;delete _.stop,S(v)};return typeof d!="string"&&(v=p,p=d,d=void 0),p&&this.queue(d||"fx",[]),this.each(function(){var _=!0,S=d!=null&&d+"queueHooks",B=m.timers,Y=Be.get(this);if(S)Y[S]&&Y[S].stop&&T(Y[S]);else for(S in Y)Y[S]&&Y[S].stop&&ia.test(S)&&T(Y[S]);for(S=B.length;S--;)B[S].elem===this&&(d==null||B[S].queue===d)&&(B[S].anim.stop(v),_=!1,B.splice(S,1));(_||!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"],_=v[d+"queueHooks"],S=m.timers,B=T?T.length:0;for(v.finish=!0,m.queue(this,d,[]),_&&_.stop&&_.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,_,S){return T==null||typeof T=="boolean"?v.apply(this,arguments):this.animate(po(p,!0),T,_,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,_){return this.animate(p,v,T,_)}}),m.timers=[],m.fx.tick=function(){var d,p=0,v=m.timers;for(Ct=Date.now();p<v.length;p++)d=v[p],!d()&&v[p]===d&&v.splice(p--,1);v.length||m.fx.stop(),Ct=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 _=e.setTimeout(v,d);T.stop=function(){e.clearTimeout(_)}})},function(){var d=R.createElement("input"),p=R.createElement("select"),v=p.appendChild(R.createElement("option"));d.type="checkbox",O.checkOn=d.value!=="",O.optSelected=v.selected,d=R.createElement("input"),d.value="t",d.type="radio",O.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,_,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))&&(_=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 _&&"set"in _&&(T=_.set(d,v,p))!==void 0?T:(d.setAttribute(p,v+""),v)}return _&&"get"in _&&(T=_.get(d,p))!==null?T:(T=m.find.attr(d,p),T??void 0)}},attrHooks:{type:{set:function(d,p){if(!O.radioValue&&p==="radio"&&K(d,"input")){var v=d.value;return d.setAttribute("type",p),v&&(d.value=v),p}}}},removeAttr:function(d,p){var v,T=0,_=p&&p.match(Ae);if(_&&d.nodeType===1)for(;v=_[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,_,S){var B,Y,P=_.toLowerCase();return S||(Y=mi[P],mi[P]=B,B=v(T,_,S)!=null?P:null,mi[P]=Y),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,_,S=d.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!m.isXMLDoc(d))&&(p=m.propFix[p]||p,_=m.propHooks[p]),v!==void 0?_&&"set"in _&&(T=_.set(d,v,p))!==void 0?T:d[p]=v:_&&"get"in _&&(T=_.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"}}),O.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(Ae)||[];return p.join(" ")}function Ai(d){return d.getAttribute&&d.getAttribute("class")||""}function mo(d){return Array.isArray(d)?d:typeof d=="string"?d.match(Ae)||[]:[]}m.fn.extend({addClass:function(d){var p,v,T,_,S,B;return U(d)?this.each(function(Y){m(this).addClass(d.call(this,Y,Ai(this)))}):(p=mo(d),p.length?this.each(function(){if(T=Ai(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(S=0;S<p.length;S++)_=p[S],v.indexOf(" "+_+" ")<0&&(v+=_+" ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this)},removeClass:function(d){var p,v,T,_,S,B;return U(d)?this.each(function(Y){m(this).removeClass(d.call(this,Y,Ai(this)))}):arguments.length?(p=mo(d),p.length?this.each(function(){if(T=Ai(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(S=0;S<p.length;S++)for(_=p[S];v.indexOf(" "+_+" ")>-1;)v=v.replace(" "+_+" "," ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this):this.attr("class","")},toggleClass:function(d,p){var v,T,_,S,B=typeof d,Y=B==="string"||Array.isArray(d);return U(d)?this.each(function(P){m(this).toggleClass(d.call(this,P,Ai(this),p),p)}):typeof p=="boolean"&&Y?p?this.addClass(d):this.removeClass(d):(v=mo(d),this.each(function(){if(Y)for(S=m(this),_=0;_<v.length;_++)T=v[_],S.hasClass(T)?S.removeClass(T):S.addClass(T);else(d===void 0||B==="boolean")&&(T=Ai(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(Ai(v))+" ").indexOf(p)>-1)return!0;return!1}});var Os=/\r/g;m.fn.extend({val:function(d){var p,v,T,_=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(Y){return Y==null?"":Y+""})),p=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!p||!("set"in p)||p.set(this,B,"value")===void 0)&&(this.value=B))})):_?(p=m.valHooks[_.type]||m.valHooks[_.nodeName.toLowerCase()],p&&"get"in p&&(v=p.get(_,"value"))!==void 0?v:(v=_.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,_=d.options,S=d.selectedIndex,B=d.type==="select-one",Y=B?null:[],P=B?S+1:_.length;for(S<0?T=P:T=B?S:0;T<P;T++)if(v=_[T],(v.selected||T===S)&&!v.disabled&&(!v.parentNode.disabled||!K(v.parentNode,"optgroup"))){if(p=m(v).val(),B)return p;Y.push(p)}return Y},set:function(d,p){for(var v,T,_=d.options,S=m.makeArray(p),B=_.length;B--;)T=_[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}},O.checkOn||(m.valHooks[this].get=function(d){return d.getAttribute("value")===null?"on":d.value})});var aa=e.location,Ms={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)$/,Pn=function(d){d.stopPropagation()};m.extend(m.event,{trigger:function(d,p,v,T){var
|
|
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 St=Ke.length,Ye=M.length,Qe=K.length,Le=ue.length,De=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(K),pt=0;pt<Et.length;pt++){if(_e=Et[pt],Fe+=_e.length,pt!==Et.length-1)Fe+=K.length;else if(Ne)return Ot();if(!ue||_e.substring(0,Le)!==ue){if(De){if(He=[],Je(_e.split(M)),cr(),nt)return Ot()}else Je(_e.split(M));if(z&&z<=pt)return He=He.slice(0,z),Ot(!0)}}return Ot()}for(var st=Ke.indexOf(M,Fe),$e=Ke.indexOf(K,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===St-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(M,ut+1));var mt=vr(($e=$e!==-1&&$e<ut+1?Ke.indexOf(K,ut+1):$e)===-1?st:Math.min(st,$e));if(Ke.substr(ut+1+mt,Ye)===M){_e.push(Ke.substring(Fe,ut).replace(Ct,ae)),Ke[Fe=ut+1+mt+Ye]!==ae&&(ut=Ke.indexOf(ae,Fe)),st=Ke.indexOf(M,Fe),$e=Ke.indexOf(K,Fe);break}if(mt=vr($e),Ke.substring(ut+1+mt,ut+1+mt+Qe)===K){if(_e.push(Ke.substring(Fe,ut).replace(Ct,ae)),tr(ut+1+mt+Qe),st=Ke.indexOf(M,Fe),ut=Ke.indexOf(ae,Fe),De&&(cr(),nt))return Ot();if(z&&He.length>=z)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(ue&&_e.length===0&&Ke.substring(Fe,Fe+Le)===ue){if($e===-1)return Ot();Fe=$e+Qe,$e=Ke.indexOf(K,Fe),st=Ke.indexOf(M,Fe)}else if(st!==-1&&(st<$e||$e===-1))_e.push(Ke.substring(Fe,st)),Fe=st+Ye,st=Ke.indexOf(M,Fe);else{if($e===-1)break;if(_e.push(Ke.substring(Fe,$e)),tr($e+Qe),De&&(cr(),nt))return Ot();if(z&&He.length>=z)return Ot(!0)}return yr();function Je(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=St,Je(_e),De&&cr()),Ot()}function tr(Be){Fe=Be,Je(_e),_e=[],$e=Ke.indexOf(K,Fe)}function Ot(Be){if(m.header&&!lt&&He.length&&!xe){var gt=He[0],lr=Object.create(null),hr=new Set(gt);let Zt=!1;for(let xr=0;xr<gt.length;xr++){let Pt=gt[xr];if(lr[Pt=ee(m.transformHeader)?m.transformHeader(Pt,xr):Pt]){let rr,sr=lr[Pt];for(;rr=Pt+"_"+sr,sr++,hr.has(rr););hr.add(rr),gt[xr]=rr,lr[Pt]++,Zt=!0,(L=L===null?{}:L)[rr]=Pt}else lr[Pt]=1,gt[xr]=Pt;hr.add(Pt)}Zt&&console.warn("Duplicate headers found and renamed."),xe=!0}return{data:He,errors:bt,meta:{delimiter:M,linebreak:K,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 M=m.data,K=c[M.workerId],ue=!1;if(M.error)K.userError(M.error,M.file);else if(M.results&&M.results.data){var Te={abort:function(){ue=!0,k(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(ee(K.userStep)){for(var z=0;z<M.results.data.length&&(K.userStep({data:M.results.data[z],errors:M.results.errors,meta:M.results.meta},Te),!ue);z++);delete M.results}else ee(K.userChunk)&&(K.userChunk(M.results,Te,M.file),delete M.results)}M.finished&&!ue&&k(M.workerId,M.results)}function k(m,M){var K=c[m];ee(K.userComplete)&&K.userComplete(M),K.terminate(),delete c[m]}function $(){throw new Error("Not implemented.")}function V(m){if(typeof m!="object"||m===null)return m;var M,K=Array.isArray(m)?[]:{};for(M in m)K[M]=V(m[M]);return K}function G(m,M){return function(){m.apply(M,arguments)}}function ee(m){return typeof m=="function"}return b.parse=function(m,M){var K=(M=M||{}).dynamicTyping||!1;if(ee(K)&&(M.dynamicTypingFunction=K,K={}),M.dynamicTyping=K,M.transform=!!ee(M.transform)&&M.transform,!M.worker||!b.WORKERS_SUPPORTED)return K=null,b.NODE_STREAM_INPUT,typeof m=="string"?(m=(ue=>ue.charCodeAt(0)!==65279?ue:ue.slice(1))(m),K=new(M.download?_:F)(M)):m.readable===!0&&ee(m.read)&&ee(m.on)?K=new D(M):(r.File&&m instanceof File||m instanceof Object)&&(K=new I(M)),K.stream(m);(K=(()=>{var ue;return!!b.WORKERS_SUPPORTED&&(ue=(()=>{var Te=r.URL||r.webkitURL||null,z=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; ","(",z,")();"],{type:"text/javascript"})))})(),(ue=new r.Worker(ue)).onmessage=A,ue.id=h++,c[ue.id]=ue)})()).userStep=M.step,K.userChunk=M.chunk,K.userComplete=M.complete,K.userError=M.error,M.step=ee(M.step),M.chunk=ee(M.chunk),M.complete=ee(M.complete),M.error=ee(M.error),delete M.worker,K.postMessage({input:m,config:M,workerId:K.id})},b.unparse=function(m,M){var K=!1,ue=!0,Te=",",z=`\r
|
|
15
|
+
`,he='"',L=he+he,xe=!1,ae=null,Ie=!1,Fe=((()=>{if(typeof M=="object"){if(typeof M.delimiter!="string"||b.BAD_DELIMITERS.filter(function(lt){return M.delimiter.indexOf(lt)!==-1}).length||(Te=M.delimiter),typeof M.quotes!="boolean"&&typeof M.quotes!="function"&&!Array.isArray(M.quotes)||(K=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(xe=M.skipEmptyLines),typeof M.newline=="string"&&(z=M.newline),typeof M.quoteChar=="string"&&(he=M.quoteChar),typeof M.header=="boolean"&&(ue=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");ae=M.columns}M.escapeChar!==void 0&&(L=M.escapeChar+he),M.escapeFormulae instanceof RegExp?Ie=M.escapeFormulae:typeof M.escapeFormulae=="boolean"&&M.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,St){var Ye="",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&&ue){for(var De=0;De<lt.length;De++)0<De&&(Ye+=Te),Ye+=Ke(lt[De],De);0<Ne.length&&(Ye+=z)}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(St&&!Qe&&(_e=St==="greedy"?Ne[He].join("").trim()==="":Ne[He].length===1&&Ne[He][0].length===0),St==="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&&(Ye+=Te);var Ct=Qe&&Le?lt[$e]:$e;Ye+=Ke(Ne[He][Ct],$e)}He<Ne.length-1&&(!St||0<bt&&!ct)&&(Ye+=z)}}return Ye}function Ke(lt,Ne){var St,Ye;return lt==null?"":lt.constructor===Date?JSON.stringify(lt).slice(1,25):(Ye=!1,Ie&&typeof lt=="string"&&Ie.test(lt)&&(lt="'"+lt,Ye=!0),St=lt.toString().replace(Fe,L),(Ye=Ye||K===!0||typeof K=="function"&&K(lt,Ne)||Array.isArray(K)&&K[Ne]||((Qe,Le)=>{for(var De=0;De<Le.length;De++)if(-1<Qe.indexOf(Le[De]))return!0;return!1})(St,b.BAD_DELIMITERS)||-1<St.indexOf(Te)||St.charAt(0)===" "||St.charAt(St.length-1)===" ")?he+St+he:St)}},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=P,b.ParserHandle=W,b.NetworkStreamer=_,b.FileStreamer=I,b.StringStreamer=F,b.ReadableStreamStreamer=D,r.jQuery&&((n=r.jQuery).fn.parse=function(m){var M=m.config||{},K=[];return this.each(function(z){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++)K.push({file:this.files[he],inputElem:this,instanceConfig:n.extend({},M)})}),ue(),this;function ue(){if(K.length===0)ee(m.complete)&&m.complete();else{var z,he,L,xe,ae=K[0];if(ee(m.before)){var Ie=m.before(ae.file,ae.inputElem);if(typeof Ie=="object"){if(Ie.action==="abort")return z="AbortError",he=ae.file,L=ae.inputElem,xe=Ie.reason,void(ee(m.error)&&m.error({name:z},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(){K.splice(0,1),ue()}}),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,(D.prototype=Object.create(x.prototype)).constructor=D,b})});var X0=Wt(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var W0="fas",O0="download",M0=512,Z0=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:[M0,Z0,V0,Q0,H0]};oi.faDownload=oi.definition;oi.prefix=W0;oi.iconName=O0;oi.width=M0;oi.height=Z0;oi.ligatures=V0;oi.unicode=Q0;oi.svgPathData=H0});var $0=Wt(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var j0="fas",P0="question-circle",J0=512,Y0=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:P0,icon:[J0,Y0,z0,q0,K0]};li.faQuestionCircle=li.definition;li.prefix=j0;li.iconName=P0;li.width=J0;li.height=Y0;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,D=F.call(Object),W={},U=function(p){return typeof p=="function"&&typeof p.nodeType!="number"&&typeof p.item!="function"},P=function(p){return p!=null&&p===p.window},A=e.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function $(d,p,v){v=v||A;var T,S,R=v.createElement("script");if(R.text=d,p)for(T in k)S=p[T]||p.getAttribute&&p.getAttribute(T),S&&R.setAttribute(T,S);v.head.appendChild(R).parentNode.removeChild(R)}function V(d){return d==null?d+"":typeof d=="object"||typeof d=="function"?x[_.call(d)]||"object":typeof d}var G="3.7.1",ee=/HTML$/i,m=function(d,p){return new m.fn.init(d,p)};m.fn=m.prototype={jquery:G,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,S,R,B=arguments[0]||{},Y=1,J=arguments.length,ne=!1;for(typeof B=="boolean"&&(ne=B,B=arguments[Y]||{},Y++),typeof B!="object"&&!U(B)&&(B={}),Y===J&&(B=this,Y--);Y<J;Y++)if((d=arguments[Y])!=null)for(p in d)T=d[p],!(p==="__proto__"||B===T)&&(ne&&T&&(m.isPlainObject(T)||(S=Array.isArray(T)))?(v=B[p],S&&!Array.isArray(v)?R=[]:!S&&!m.isPlainObject(v)?R={}:R=v,S=!1,B[p]=m.extend(ne,R,T)):T!==void 0&&(B[p]=T));return B},m.extend({expando:"jQuery"+(G+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)===D):!0)},isEmptyObject:function(d){var p;for(p in d)return!1;return!0},globalEval:function(d,p,v){$(d,{nonce:p&&p.nonce},v)},each:function(d,p){var v,T=0;if(M(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,S=d.nodeType;if(!S)for(;p=d[T++];)v+=m.text(p);return S===1||S===11?d.textContent:S===9?d.documentElement.textContent:S===3||S===4?d.nodeValue:v},makeArray:function(d,p){var v=p||[];return d!=null&&(M(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,S=d.length;T<v;T++)d[S++]=p[T];return d.length=S,d},grep:function(d,p,v){for(var T,S=[],R=0,B=d.length,Y=!v;R<B;R++)T=!p(d[R],R),T!==Y&&S.push(d[R]);return S},map:function(d,p,v){var T,S,R=0,B=[];if(M(d))for(T=d.length;R<T;R++)S=p(d[R],R,v),S!=null&&B.push(S);else for(R in d)S=p(d[R],R,v),S!=null&&B.push(S);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 M(d){var p=!!d&&"length"in d&&d.length,v=V(d);return U(d)||P(d)?!1:v==="array"||p===0||typeof p=="number"&&p>0&&p-1 in d}function K(d,p){return d.nodeName&&d.nodeName.toLowerCase()===p.toLowerCase()}var ue=n.pop,Te=n.sort,z=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,S,R=Fe,B,Y,J,ne,ce,be=m.expando,le=0,Re=0,ft=fa(),Nt=fa(),vt=fa(),gr=fa(),zt=function(Z,te){return Z===te&&(S=!0),0},Jn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Yn="(?:\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Rt="\\["+he+"*("+Yn+")(?:"+he+"*([*^$|!~]?=)"+he+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Yn+"))|)"+he+"*\\]",On=":("+Yn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Rt+")*)|.*)\\)|)",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("^"+Yn+"$"),qn={ID:new RegExp("^#("+Yn+")"),CLASS:new RegExp("^\\.("+Yn+")"),TAG:new RegExp("^("+Yn+"|[*])"),ATTR:new RegExp("^"+Rt),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("^(?:"+Jn+")$","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,Sn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_l=/[+~]/,$n=new RegExp("\\\\[\\da-fA-F]{1,6}"+he+"?|\\\\([^\\r\\n\\f])","g"),ei=function(Z,te){var oe="0x"+Z.slice(1)-65536;return te||(oe<0?String.fromCharCode(oe+65536):String.fromCharCode(oe>>10|55296,oe&1023|56320))},Yf=function(){xi()},Ma=Za(function(Z){return Z.disabled===!0&&K(Z,"fieldset")},{dir:"parentNode",next:"legend"});function yi(){try{return B.activeElement}catch{}}try{R.apply(n=u.call(Ie.childNodes),Ie.childNodes),n[Ie.childNodes.length].nodeType}catch{R={apply:function(te,oe){Fe.apply(te,u.call(oe))},call:function(te){Fe.apply(te,u.call(arguments,1))}}}function Ut(Z,te,oe,fe){var me,Ae,Ze,Pe,Me,xt,it,dt=te&&te.ownerDocument,wt=te?te.nodeType:9;if(oe=oe||[],typeof Z!="string"||!Z||wt!==1&&wt!==9&&wt!==11)return oe;if(!fe&&(xi(te),te=te||B,J)){if(wt!==11&&(Me=Sn.exec(Z)))if(me=Me[1]){if(wt===9)if(Ze=te.getElementById(me)){if(Ze.id===me)return R.call(oe,Ze),oe}else return oe;else if(dt&&(Ze=dt.getElementById(me))&&Ut.contains(te,Ze)&&Ze.id===me)return R.call(oe,Ze),oe}else{if(Me[2])return R.apply(oe,te.getElementsByTagName(Z)),oe;if((me=Me[3])&&te.getElementsByClassName)return R.apply(oe,te.getElementsByClassName(me)),oe}if(!gr[Z+" "]&&(!ne||!ne.test(Z))){if(it=Z,dt=te,wt===1&&(Vi.test(Z)||sa.test(Z))){for(dt=_l.test(Z)&&Fl(te.parentNode)||te,(dt!=te||!W.scope)&&((Pe=te.getAttribute("id"))?Pe=m.escapeSelector(Pe):te.setAttribute("id",Pe=be)),xt=ti(Z),Ae=xt.length;Ae--;)xt[Ae]=(Pe?"#"+Pe:":scope")+" "+un(xt[Ae]);it=xt.join(",")}try{return R.apply(oe,dt.querySelectorAll(it)),oe}catch{gr(Z,!0)}finally{Pe===be&&te.removeAttribute("id")}}}return Bl(Z.replace(L,"$1"),te,oe,fe)}function fa(){var Z=[];function te(oe,fe){return Z.push(oe+" ")>p.cacheLength&&delete te[Z.shift()],te[oe+" "]=fe}return te}function Rn(Z){return Z[be]=!0,Z}function zr(Z){var te=B.createElement("fieldset");try{return!!Z(te)}catch{return!1}finally{te.parentNode&&te.parentNode.removeChild(te),te=null}}function Qi(Z){return function(te){return K(te,"input")&&te.type===Z}}function Nl(Z){return function(te){return(K(te,"input")||K(te,"button"))&&te.type===Z}}function Ps(Z){return function(te){return"form"in te?te.parentNode&&te.disabled===!1?"label"in te?"label"in te.parentNode?te.parentNode.disabled===Z:te.disabled===Z:te.isDisabled===Z||te.isDisabled!==!Z&&Ma(te)===Z:te.disabled===Z:"label"in te?te.disabled===Z:!1}}function Fi(Z){return Rn(function(te){return te=+te,Rn(function(oe,fe){for(var me,Ae=Z([],oe.length,te),Ze=Ae.length;Ze--;)oe[me=Ae[Ze]]&&(oe[me]=!(fe[me]=oe[me]))})})}function Fl(Z){return Z&&typeof Z.getElementsByTagName<"u"&&Z}function xi(Z){var te,oe=Z?Z.ownerDocument||Z:Ie;return oe==B||oe.nodeType!==9||!oe.documentElement||(B=oe,Y=B.documentElement,J=!m.isXMLDoc(B),ce=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&Ie!=B&&(te=B.defaultView)&&te.top!==te&&te.addEventListener("unload",Yf),W.getById=zr(function(fe){return Y.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"&&J){var Ae=me.getElementById(fe);return Ae?[Ae]:[]}}):(p.filter.ID=function(fe){var me=fe.replace($n,ei);return function(Ae){var Ze=typeof Ae.getAttributeNode<"u"&&Ae.getAttributeNode("id");return Ze&&Ze.value===me}},p.find.ID=function(fe,me){if(typeof me.getElementById<"u"&&J){var Ae,Ze,Pe,Me=me.getElementById(fe);if(Me){if(Ae=Me.getAttributeNode("id"),Ae&&Ae.value===fe)return[Me];for(Pe=me.getElementsByName(fe),Ze=0;Me=Pe[Ze++];)if(Ae=Me.getAttributeNode("id"),Ae&&Ae.value===fe)return[Me]}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"&&J)return me.getElementsByClassName(fe)},ne=[],zr(function(fe){var me;Y.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|"+Jn+")"),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"),Y.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 S=!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(Z,te){return Ut(Z,null,null,te)},Ut.matchesSelector=function(Z,te){if(xi(Z),J&&!gr[te+" "]&&(!ne||!ne.test(te)))try{var oe=ce.call(Z,te);if(oe||W.disconnectedMatch||Z.document&&Z.document.nodeType!==11)return oe}catch{gr(te,!0)}return Ut(te,B,null,[Z]).length>0},Ut.contains=function(Z,te){return(Z.ownerDocument||Z)!=B&&xi(Z),m.contains(Z,te)},Ut.attr=function(Z,te){(Z.ownerDocument||Z)!=B&&xi(Z);var oe=p.attrHandle[te.toLowerCase()],fe=oe&&I.call(p.attrHandle,te.toLowerCase())?oe(Z,te,!J):void 0;return fe!==void 0?fe:Z.getAttribute(te)},Ut.error=function(Z){throw new Error("Syntax error, unrecognized expression: "+Z)},m.uniqueSort=function(Z){var te,oe=[],fe=0,me=0;if(S=!W.sortStable,T=!W.sortStable&&u.call(Z,0),Te.call(Z,zt),S){for(;te=Z[me++];)te===Z[me]&&(fe=oe.push(me));for(;fe--;)z.call(Z,oe[fe],1)}return T=null,Z},m.fn.uniqueSort=function(){return this.pushStack(m.uniqueSort(u.apply(this)))},p=m.expr={cacheLength:50,createPseudo:Rn,match:qn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Z){return Z[1]=Z[1].replace($n,ei),Z[3]=(Z[3]||Z[4]||Z[5]||"").replace($n,ei),Z[2]==="~="&&(Z[3]=" "+Z[3]+" "),Z.slice(0,4)},CHILD:function(Z){return Z[1]=Z[1].toLowerCase(),Z[1].slice(0,3)==="nth"?(Z[3]||Ut.error(Z[0]),Z[4]=+(Z[4]?Z[5]+(Z[6]||1):2*(Z[3]==="even"||Z[3]==="odd")),Z[5]=+(Z[7]+Z[8]||Z[3]==="odd")):Z[3]&&Ut.error(Z[0]),Z},PSEUDO:function(Z){var te,oe=!Z[6]&&Z[2];return qn.CHILD.test(Z[0])?null:(Z[3]?Z[2]=Z[4]||Z[5]||"":oe&&zn.test(oe)&&(te=ti(oe,!0))&&(te=oe.indexOf(")",oe.length-te)-oe.length)&&(Z[0]=Z[0].slice(0,te),Z[2]=oe.slice(0,te)),Z.slice(0,3))}},filter:{TAG:function(Z){var te=Z.replace($n,ei).toLowerCase();return Z==="*"?function(){return!0}:function(oe){return K(oe,te)}},CLASS:function(Z){var te=ft[Z+" "];return te||(te=new RegExp("(^|"+he+")"+Z+"("+he+"|$)"))&&ft(Z,function(oe){return te.test(typeof oe.className=="string"&&oe.className||typeof oe.getAttribute<"u"&&oe.getAttribute("class")||"")})},ATTR:function(Z,te,oe){return function(fe){var me=Ut.attr(fe,Z);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(Z,te,oe,fe,me){var Ae=Z.slice(0,3)!=="nth",Ze=Z.slice(-4)!=="last",Pe=te==="of-type";return fe===1&&me===0?function(Me){return!!Me.parentNode}:function(Me,xt,it){var dt,wt,tt,Ht,mr,fr=Ae!==Ze?"nextSibling":"previousSibling",Fr=Me.parentNode,En=Pe&&Me.nodeName.toLowerCase(),Li=!it&&!Pe,Zr=!1;if(Fr){if(Ae){for(;fr;){for(tt=Me;tt=tt[fr];)if(Pe?K(tt,En):tt.nodeType===1)return!1;mr=fr=Z==="only"&&!mr&&"nextSibling"}return!0}if(mr=[Ze?Fr.firstChild:Fr.lastChild],Ze&&Li){for(wt=Fr[be]||(Fr[be]={}),dt=wt[Z]||[],Ht=dt[0]===le&&dt[1],Zr=Ht&&dt[2],tt=Ht&&Fr.childNodes[Ht];tt=++Ht&&tt&&tt[fr]||(Zr=Ht=0)||mr.pop();)if(tt.nodeType===1&&++Zr&&tt===Me){wt[Z]=[le,Ht,Zr];break}}else if(Li&&(wt=Me[be]||(Me[be]={}),dt=wt[Z]||[],Ht=dt[0]===le&&dt[1],Zr=Ht),Zr===!1)for(;(tt=++Ht&&tt&&tt[fr]||(Zr=Ht=0)||mr.pop())&&!((Pe?K(tt,En):tt.nodeType===1)&&++Zr&&(Li&&(wt=tt[be]||(tt[be]={}),wt[Z]=[le,Zr]),tt===Me)););return Zr-=me,Zr===fe||Zr%fe===0&&Zr/fe>=0}}},PSEUDO:function(Z,te){var oe,fe=p.pseudos[Z]||p.setFilters[Z.toLowerCase()]||Ut.error("unsupported pseudo: "+Z);return fe[be]?fe(te):fe.length>1?(oe=[Z,Z,"",te],p.setFilters.hasOwnProperty(Z.toLowerCase())?Rn(function(me,Ae){for(var Ze,Pe=fe(me,te),Me=Pe.length;Me--;)Ze=b.call(me,Pe[Me]),me[Ze]=!(Ae[Ze]=Pe[Me])}):function(me){return fe(me,0,oe)}):fe}},pseudos:{not:Rn(function(Z){var te=[],oe=[],fe=Hi(Z.replace(L,"$1"));return fe[be]?Rn(function(me,Ae,Ze,Pe){for(var Me,xt=fe(me,null,Pe,[]),it=me.length;it--;)(Me=xt[it])&&(me[it]=!(Ae[it]=Me))}):function(me,Ae,Ze){return te[0]=me,fe(te,null,Ze,oe),te[0]=null,!oe.pop()}}),has:Rn(function(Z){return function(te){return Ut(Z,te).length>0}}),contains:Rn(function(Z){return Z=Z.replace($n,ei),function(te){return(te.textContent||m.text(te)).indexOf(Z)>-1}}),lang:Rn(function(Z){return ua.test(Z||"")||Ut.error("unsupported lang: "+Z),Z=Z.replace($n,ei).toLowerCase(),function(te){var oe;do if(oe=J?te.lang:te.getAttribute("xml:lang")||te.getAttribute("lang"))return oe=oe.toLowerCase(),oe===Z||oe.indexOf(Z+"-")===0;while((te=te.parentNode)&&te.nodeType===1);return!1}}),target:function(Z){var te=e.location&&e.location.hash;return te&&te.slice(1)===Z.id},root:function(Z){return Z===Y},focus:function(Z){return Z===yi()&&B.hasFocus()&&!!(Z.type||Z.href||~Z.tabIndex)},enabled:Ps(!1),disabled:Ps(!0),checked:function(Z){return K(Z,"input")&&!!Z.checked||K(Z,"option")&&!!Z.selected},selected:function(Z){return Z.parentNode&&Z.parentNode.selectedIndex,Z.selected===!0},empty:function(Z){for(Z=Z.firstChild;Z;Z=Z.nextSibling)if(Z.nodeType<6)return!1;return!0},parent:function(Z){return!p.pseudos.empty(Z)},header:function(Z){return vi.test(Z.nodeName)},input:function(Z){return Kn.test(Z.nodeName)},button:function(Z){return K(Z,"input")&&Z.type==="button"||K(Z,"button")},text:function(Z){var te;return K(Z,"input")&&Z.type==="text"&&((te=Z.getAttribute("type"))==null||te.toLowerCase()==="text")},first:Fi(function(){return[0]}),last:Fi(function(Z,te){return[te-1]}),eq:Fi(function(Z,te,oe){return[oe<0?oe+te:oe]}),even:Fi(function(Z,te){for(var oe=0;oe<te;oe+=2)Z.push(oe);return Z}),odd:Fi(function(Z,te){for(var oe=1;oe<te;oe+=2)Z.push(oe);return Z}),lt:Fi(function(Z,te,oe){var fe;for(oe<0?fe=oe+te:oe>te?fe=te:fe=oe;--fe>=0;)Z.push(fe);return Z}),gt:Fi(function(Z,te,oe){for(var fe=oe<0?oe+te:oe;++fe<te;)Z.push(fe);return Z})}},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(Z,te){var oe,fe,me,Ae,Ze,Pe,Me,xt=Nt[Z+" "];if(xt)return te?0:xt.slice(0);for(Ze=Z,Pe=[],Me=p.preFilter;Ze;){(!oe||(fe=ar.exec(Ze)))&&(fe&&(Ze=Ze.slice(fe[0].length)||Ze),Pe.push(me=[])),oe=!1,(fe=sa.exec(Ze))&&(oe=fe.shift(),me.push({value:oe,type:fe[0].replace(L," ")}),Ze=Ze.slice(oe.length));for(Ae in p.filter)(fe=qn[Ae].exec(Ze))&&(!Me[Ae]||(fe=Me[Ae](fe)))&&(oe=fe.shift(),me.push({value:oe,type:Ae,matches:fe}),Ze=Ze.slice(oe.length));if(!oe)break}return te?Ze.length:Ze?Ut.error(Z):Nt(Z,Pe).slice(0)}function un(Z){for(var te=0,oe=Z.length,fe="";te<oe;te++)fe+=Z[te].value;return fe}function Za(Z,te,oe){var fe=te.dir,me=te.next,Ae=me||fe,Ze=oe&&Ae==="parentNode",Pe=Re++;return te.first?function(Me,xt,it){for(;Me=Me[fe];)if(Me.nodeType===1||Ze)return Z(Me,xt,it);return!1}:function(Me,xt,it){var dt,wt,tt=[le,Pe];if(it){for(;Me=Me[fe];)if((Me.nodeType===1||Ze)&&Z(Me,xt,it))return!0}else for(;Me=Me[fe];)if(Me.nodeType===1||Ze)if(wt=Me[be]||(Me[be]={}),me&&K(Me,me))Me=Me[fe]||Me;else{if((dt=wt[Ae])&&dt[0]===le&&dt[1]===Pe)return tt[2]=dt[2];if(wt[Ae]=tt,tt[2]=Z(Me,xt,it))return!0}return!1}}function yo(Z){return Z.length>1?function(te,oe,fe){for(var me=Z.length;me--;)if(!Z[me](te,oe,fe))return!1;return!0}:Z[0]}function zf(Z,te,oe){for(var fe=0,me=te.length;fe<me;fe++)Ut(Z,te[fe],oe);return oe}function xo(Z,te,oe,fe,me){for(var Ae,Ze=[],Pe=0,Me=Z.length,xt=te!=null;Pe<Me;Pe++)(Ae=Z[Pe])&&(!oe||oe(Ae,fe,me))&&(Ze.push(Ae),xt&&te.push(Pe));return Ze}function Ll(Z,te,oe,fe,me,Ae){return fe&&!fe[be]&&(fe=Ll(fe)),me&&!me[be]&&(me=Ll(me,Ae)),Rn(function(Ze,Pe,Me,xt){var it,dt,wt,tt,Ht=[],mr=[],fr=Pe.length,Fr=Ze||zf(te||"*",Me.nodeType?[Me]:Me,[]),En=Z&&(Ze||!te)?xo(Fr,Ht,Z,Me,xt):Fr;if(oe?(tt=me||(Ze?Z:fr||fe)?[]:Pe,oe(En,tt,Me,xt)):tt=En,fe)for(it=xo(tt,mr),fe(it,[],Me,xt),dt=it.length;dt--;)(wt=it[dt])&&(tt[mr[dt]]=!(En[mr[dt]]=wt));if(Ze){if(me||Z){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(Ze,wt):Ht[dt])>-1&&(Ze[it]=!(Pe[it]=wt))}}else tt=xo(tt===Pe?tt.splice(fr,tt.length):tt),me?me(null,Pe,tt,xt):R.apply(Pe,tt)})}function To(Z){for(var te,oe,fe,me=Z.length,Ae=p.relative[Z[0].type],Ze=Ae||p.relative[" "],Pe=Ae?1:0,Me=Za(function(dt){return dt===te},Ze,!0),xt=Za(function(dt){return b.call(te,dt)>-1},Ze,!0),it=[function(dt,wt,tt){var Ht=!Ae&&(tt||wt!=v)||((te=wt).nodeType?Me(dt,wt,tt):xt(dt,wt,tt));return te=null,Ht}];Pe<me;Pe++)if(oe=p.relative[Z[Pe].type])it=[Za(yo(it),oe)];else{if(oe=p.filter[Z[Pe].type].apply(null,Z[Pe].matches),oe[be]){for(fe=++Pe;fe<me&&!p.relative[Z[fe].type];fe++);return Ll(Pe>1&&yo(it),Pe>1&&un(Z.slice(0,Pe-1).concat({value:Z[Pe-2].type===" "?"*":""})).replace(L,"$1"),oe,Pe<fe&&To(Z.slice(Pe,fe)),fe<me&&To(Z=Z.slice(fe)),fe<me&&un(Z))}it.push(oe)}return yo(it)}function Js(Z,te){var oe=te.length>0,fe=Z.length>0,me=function(Ae,Ze,Pe,Me,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,Zr=En.length;for(xt&&(v=Ze==B||Ze||xt);Ht!==Zr&&(it=En[Ht])!=null;Ht++){if(fe&&it){for(dt=0,!Ze&&it.ownerDocument!=B&&(xi(it),Pe=!J);wt=Z[dt++];)if(wt(it,Ze||B,Pe)){R.call(Me,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,Ze,Pe);if(Ae){if(tt>0)for(;Ht--;)mr[Ht]||fr[Ht]||(fr[Ht]=ue.call(Me));fr=xo(fr)}R.apply(Me,fr),xt&&!Ae&&fr.length>0&&tt+te.length>1&&m.uniqueSort(Me)}return xt&&(le=Li,v=Fr),mr};return oe?Rn(me):me}function Hi(Z,te){var oe,fe=[],me=[],Ae=vt[Z+" "];if(!Ae){for(te||(te=ti(Z)),oe=te.length;oe--;)Ae=To(te[oe]),Ae[be]?fe.push(Ae):me.push(Ae);Ae=vt(Z,Js(me,fe)),Ae.selector=Z}return Ae}function Bl(Z,te,oe,fe){var me,Ae,Ze,Pe,Me,xt=typeof Z=="function"&&Z,it=!fe&&ti(Z=xt.selector||Z);if(oe=oe||[],it.length===1){if(Ae=it[0]=it[0].slice(0),Ae.length>2&&(Ze=Ae[0]).type==="ID"&&te.nodeType===9&&J&&p.relative[Ae[1].type]){if(te=(p.find.ID(Ze.matches[0].replace($n,ei),te)||[])[0],te)xt&&(te=te.parentNode);else return oe;Z=Z.slice(Ae.shift().value.length)}for(me=qn.needsContext.test(Z)?0:Ae.length;me--&&(Ze=Ae[me],!p.relative[Pe=Ze.type]);)if((Me=p.find[Pe])&&(fe=Me(Ze.matches[0].replace($n,ei),_l.test(Ae[0].type)&&Fl(te.parentNode)||te))){if(Ae.splice(me,1),Z=fe.length&&un(Ae),!Z)return R.apply(oe,fe),oe;break}}return(xt||Hi(Z,it))(fe,te,!J,oe,!te||_l.test(Z)&&Fl(te.parentNode)||te),oe}W.sortStable=be.split("").sort(zt).join("")===be,xi(),W.sortDetached=zr(function(Z){return Z.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=[],S=v!==void 0;(d=d[p])&&d.nodeType!==9;)if(d.nodeType===1){if(S&&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 St(d,p,v){return U(p)?m.grep(d,function(T,S){return!!p.call(T,S,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(S){return S.nodeType===1}))},m.fn.extend({find:function(d){var p,v,T=this.length,S=this;if(typeof d!="string")return this.pushStack(m(d).filter(function(){for(p=0;p<T;p++)if(m.contains(S[p],this))return!0}));for(v=this.pushStack([]),p=0;p<T;p++)m.find(d,S[p],v);return T>1?m.uniqueSort(v):v},filter:function(d){return this.pushStack(St(this,d||[],!1))},not:function(d){return this.pushStack(St(this,d||[],!0))},is:function(d){return!!St(this,typeof d=="string"&<.test(d)?m(d):d||[],!1).length}});var Ye,Qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Le=m.fn.init=function(d,p,v){var T,S;if(!d)return this;if(v=v||Ye,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 S=A.getElementById(T[2]),S&&(this[0]=S,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,Ye=m(A);var De=/^(?: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,S=this.length,R=[],B=typeof d!="string"&&m(d);if(!lt.test(d)){for(;T<S;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))){R.push(v);break}}return this.pushStack(R.length>1?m.uniqueSort(R):R)},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:(K(d,"template")&&(d=d.content||d),m.merge([],d.childNodes))}},function(d,p){m.fn[d]=function(v,T){var S=m.map(this,p,v);return d.slice(-5)!=="Until"&&(T=v),T&&typeof T=="string"&&(S=m.filter(T,S)),this.length>1&&(He[d]||m.uniqueSort(S),De.test(d)&&S.reverse()),this.pushStack(S)}});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,S,R=[],B=[],Y=-1,J=function(){for(S=S||d.once,T=p=!0;B.length;Y=-1)for(v=B.shift();++Y<R.length;)R[Y].apply(v[0],v[1])===!1&&d.stopOnFalse&&(Y=R.length,v=!1);d.memory||(v=!1),p=!1,S&&(v?R=[]:R="")},ne={add:function(){return R&&(v&&!p&&(Y=R.length-1,B.push(v)),function ce(be){m.each(be,function(le,Re){U(Re)?(!d.unique||!ne.has(Re))&&R.push(Re):Re&&Re.length&&V(Re)!=="string"&&ce(Re)})}(arguments),v&&!p&&J()),this},remove:function(){return m.each(arguments,function(ce,be){for(var le;(le=m.inArray(be,R,le))>-1;)R.splice(le,1),le<=Y&&Y--}),this},has:function(ce){return ce?m.inArray(ce,R)>-1:R.length>0},empty:function(){return R&&(R=[]),this},disable:function(){return S=B=[],R=v="",this},disabled:function(){return!R},lock:function(){return S=B=[],!v&&!p&&(R=v=""),this},locked:function(){return!!S},fireWith:function(ce,be){return S||(be=be||[],be=[ce,be.slice?be.slice():be],B.push(be),p||J()),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 S;try{d&&U(S=d.promise)?S.call(d).done(p).fail(v):d&&U(S=d.then)?S.call(d,p,v):p.apply(void 0,[d].slice(T))}catch(R){v.apply(void 0,[R])}}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 S.done(arguments).fail(arguments),this},catch:function(R){return T.then(null,R)},pipe:function(){var R=arguments;return m.Deferred(function(B){m.each(p,function(Y,J){var ne=U(R[J[4]])&&R[J[4]];S[J[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[J[0]+"With"](this,ne?[ce]:arguments)})}),R=null}).promise()},then:function(R,B,Y){var J=0;function ne(ce,be,le,Re){return function(){var ft=this,Nt=arguments,vt=function(){var zt,Jn;if(!(ce<J)){if(zt=le.apply(ft,Nt),zt===be.promise())throw new TypeError("Thenable self-resolution");Jn=zt&&(typeof zt=="object"||typeof zt=="function")&&zt.then,U(Jn)?Re?Jn.call(zt,ne(J,be,Et,Re),ne(J,be,pt,Re)):(J++,Jn.call(zt,ne(J,be,Et,Re),ne(J,be,pt,Re),ne(J,be,Et,be.notifyWith))):(le!==Et&&(ft=void 0,Nt=[zt]),(Re||be.resolveWith)(ft,Nt))}},gr=Re?vt:function(){try{vt()}catch(zt){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(zt,gr.error),ce+1>=J&&(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(Y)?Y:Et,ce.notifyWith)),p[1][3].add(ne(0,ce,U(R)?R:Et)),p[2][3].add(ne(0,ce,U(B)?B:pt))}).promise()},promise:function(R){return R!=null?m.extend(R,T):T}},S={};return m.each(p,function(R,B){var Y=B[2],J=B[5];T[B[1]]=Y.add,J&&Y.add(function(){v=J},p[3-R][2].disable,p[3-R][3].disable,p[0][2].lock,p[0][3].lock),Y.add(B[3].fire),S[B[0]]=function(){return S[B[0]+"With"](this===S?void 0:this,arguments),this},S[B[0]+"With"]=Y.fireWith}),T.promise(S),d&&d.call(S,S),S},when:function(d){var p=arguments.length,v=p,T=Array(v),S=u.call(arguments),R=m.Deferred(),B=function(Y){return function(J){T[Y]=this,S[Y]=arguments.length>1?u.call(arguments):J,--p||R.resolveWith(T,S)}};if(p<=1&&(st(d,R.done(B(v)).resolve,R.reject,!p),R.state()==="pending"||U(S[v]&&S[v].then)))return R.then();for(;v--;)st(S[v],B(v),R.reject);return R.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,S,R,B){var Y=0,J=d.length,ne=v==null;if(V(v)==="object"){S=!0;for(Y in v)mt(d,p,Y,v[Y],!0,R,B)}else if(T!==void 0&&(S=!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(;Y<J;Y++)p(d[Y],v,B?T:T.call(d[Y],Y,p(d[Y],v)));return S?d:ne?p.call(d):J?p(d[0],v):R},Je=/^-ms-/,vr=/-([a-z])/g;function yr(d,p){return p.toUpperCase()}function tr(d){return d.replace(Je,"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,S=this.cache(d);if(typeof p=="string")S[tr(p)]=v;else for(T in p)S[tr(T)]=p[T];return S},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 Zt(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=Zt(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,S,R=this[0],B=R&&R.attributes;if(d===void 0){if(this.length&&(S=gt.get(R),R.nodeType===1&&!Be.get(R,"hasDataAttrs"))){for(v=B.length;v--;)B[v]&&(T=B[v].name,T.indexOf("data-")===0&&(T=tr(T.slice(5)),xr(R,T,S[T])));Be.set(R,"hasDataAttrs",!0)}return S}return typeof d=="object"?this.each(function(){gt.set(this,d)}):mt(this,function(Y){var J;if(R&&Y===void 0)return J=gt.get(R,d),J!==void 0||(J=xr(R,d),J!==void 0)?J:void 0;this.each(function(){gt.set(this,d,Y)})},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,S=v.shift(),R=m._queueHooks(d,p),B=function(){m.dequeue(d,p)};S==="inprogress"&&(S=v.shift(),T--),S&&(p==="fx"&&v.unshift("inprogress"),delete R.stop,S.call(d,B,R)),!T&&R&&R.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,S=m.Deferred(),R=this,B=this.length,Y=function(){--T||S.resolveWith(R,[R])};for(typeof d!="string"&&(p=d,d=void 0),d=d||"fx";B--;)v=Be.get(R[B],d+"queueHooks"),v&&v.empty&&(T++,v.empty.add(Y));return Y(),S.promise(p)}});var Pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rr=new RegExp("^(?:([+-])=|)("+Pt+")([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 S,R,B=20,Y=T?function(){return T.cur()}:function(){return m.css(d,p,"")},J=Y(),ne=v&&v[3]||(m.cssNumber[p]?"":"px"),ce=d.nodeType&&(m.cssNumber[p]||ne!=="px"&&+J)&&rr.exec(m.css(d,p));if(ce&&ce[3]!==ne){for(J=J/2,ne=ne||ce[3],ce=+J||1;B--;)m.style(d,p,ce+ne),(1-R)*(1-(R=Y()/J||.5))<=0&&(B=0),ce=ce/R;ce=ce*2,m.style(d,p,ce+ne),v=v||[]}return v&&(ce=+ce||+J||0,S=v[1]?ce+(v[1]+1)*v[2]:+v[2],T&&(T.unit=ne,T.start=ce,T.end=S)),S}var en={};function Cr(d){var p,v=d.ownerDocument,T=d.nodeName,S=en[T];return S||(p=v.body.appendChild(v.createElement(T)),S=m.css(p,"display"),p.parentNode.removeChild(p),S==="none"&&(S="block"),en[T]=S,S)}function Ft(d,p){for(var v,T,S=[],R=0,B=d.length;R<B;R++)T=d[R],T.style&&(v=T.style.display,p?(v==="none"&&(S[R]=Be.get(T,"display")||null,S[R]||(T.style.display="")),T.style.display===""&&$r(T)&&(S[R]=Cr(T))):v!=="none"&&(S[R]="none",Be.set(T,"display",v)));for(R=0;R<B;R++)S[R]!=null&&(d[R].style.display=S[R]);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 Jt={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,"",""]};Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td,W.option||(Jt.optgroup=Jt.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&&K(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,S){for(var R,B,Y,J,ne,ce,be=p.createDocumentFragment(),le=[],Re=0,ft=d.length;Re<ft;Re++)if(R=d[Re],R||R===0)if(V(R)==="object")m.merge(le,R.nodeType?[R]:R);else if(!nr.test(R))le.push(p.createTextNode(R));else{for(B=B||be.appendChild(p.createElement("div")),Y=(jr.exec(R)||["",""])[1].toLowerCase(),J=Jt[Y]||Jt._default,B.innerHTML=J[1]+m.htmlPrefilter(R)+J[2],ce=J[0];ce--;)B=B.lastChild;m.merge(le,B.childNodes),B=be.firstChild,B.textContent=""}for(be.textContent="",Re=0;R=le[Re++];){if(T&&m.inArray(R,T)>-1){S&&S.push(R);continue}if(ne=sn(R),B=Bt(be.appendChild(R),"script"),ne&&Vt(B),v)for(ce=0;R=B[ce++];)ur.test(R.type||"")&&v.push(R)}return be}var hi=/^([^.]*)(?:\.(.+)|)/;function pr(){return!0}function Dn(){return!1}function Gn(d,p,v,T,S,R){var B,Y;if(typeof p=="object"){typeof v!="string"&&(T=T||v,v=void 0);for(Y in p)Gn(d,Y,v,T,p[Y],R);return d}if(T==null&&S==null?(S=v,T=v=void 0):S==null&&(typeof v=="string"?(S=T,T=void 0):(S=T,T=v,v=void 0)),S===!1)S=Dn;else if(!S)return d;return R===1&&(B=S,S=function(J){return m().off(J),B.apply(this,arguments)},S.guid=B.guid||(B.guid=m.guid++)),d.each(function(){m.event.add(this,p,S,T,v)})}m.event={global:{},add:function(d,p,v,T,S){var R,B,Y,J,ne,ce,be,le,Re,ft,Nt,vt=Be.get(d);if(Ot(d))for(v.handler&&(R=v,v=R.handler,S=R.selector),S&&m.find.matchesSelector(Tr,S),v.guid||(v.guid=m.guid++),(J=vt.events)||(J=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--;)Y=hi.exec(p[ne])||[],Re=Nt=Y[1],ft=(Y[2]||"").split(".").sort(),Re&&(be=m.event.special[Re]||{},Re=(S?be.delegateType:be.bindType)||Re,be=m.event.special[Re]||{},ce=m.extend({type:Re,origType:Nt,data:T,handler:v,guid:v.guid,selector:S,needsContext:S&&m.expr.match.needsContext.test(S),namespace:ft.join(".")},R),(le=J[Re])||(le=J[Re]=[],le.delegateCount=0,(!be.setup||be.setup.call(d,T,ft,B)===!1)&&d.addEventListener&&d.addEventListener(Re,B)),be.add&&(be.add.call(d,ce),ce.handler.guid||(ce.handler.guid=v.guid)),S?le.splice(le.delegateCount++,0,ce):le.push(ce),m.event.global[Re]=!0)},remove:function(d,p,v,T,S){var R,B,Y,J,ne,ce,be,le,Re,ft,Nt,vt=Be.hasData(d)&&Be.get(d);if(!(!vt||!(J=vt.events))){for(p=(p||"").match(_e)||[""],ne=p.length;ne--;){if(Y=hi.exec(p[ne])||[],Re=Nt=Y[1],ft=(Y[2]||"").split(".").sort(),!Re){for(Re in J)m.event.remove(d,Re+p[ne],v,T,!0);continue}for(be=m.event.special[Re]||{},Re=(T?be.delegateType:be.bindType)||Re,le=J[Re]||[],Y=Y[2]&&new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"),B=R=le.length;R--;)ce=le[R],(S||Nt===ce.origType)&&(!v||v.guid===ce.guid)&&(!Y||Y.test(ce.namespace))&&(!T||T===ce.selector||T==="**"&&ce.selector)&&(le.splice(R,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,Re,vt.handle),delete J[Re])}m.isEmptyObject(J)&&Be.remove(d,"handle events")}},dispatch:function(d){var p,v,T,S,R,B,Y=new Array(arguments.length),J=m.event.fix(d),ne=(Be.get(this,"events")||Object.create(null))[J.type]||[],ce=m.event.special[J.type]||{};for(Y[0]=J,p=1;p<arguments.length;p++)Y[p]=arguments[p];if(J.delegateTarget=this,!(ce.preDispatch&&ce.preDispatch.call(this,J)===!1)){for(B=m.event.handlers.call(this,J,ne),p=0;(S=B[p++])&&!J.isPropagationStopped();)for(J.currentTarget=S.elem,v=0;(R=S.handlers[v++])&&!J.isImmediatePropagationStopped();)(!J.rnamespace||R.namespace===!1||J.rnamespace.test(R.namespace))&&(J.handleObj=R,J.data=R.data,T=((m.event.special[R.origType]||{}).handle||R.handler).apply(S.elem,Y),T!==void 0&&(J.result=T)===!1&&(J.preventDefault(),J.stopPropagation()));return ce.postDispatch&&ce.postDispatch.call(this,J),J.result}},handlers:function(d,p){var v,T,S,R,B,Y=[],J=p.delegateCount,ne=d.target;if(J&&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(R=[],B={},v=0;v<J;v++)T=p[v],S=T.selector+" ",B[S]===void 0&&(B[S]=T.needsContext?m(S,this).index(ne)>-1:m.find(S,this,null,[ne]).length),B[S]&&R.push(T);R.length&&Y.push({elem:ne,handlers:R})}}return ne=this,J<p.length&&Y.push({elem:ne,handlers:p.slice(J)}),Y},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&&K(p,"input")&&pi(p,"click",!0),!1},trigger:function(d){var p=this||d;return Lt.test(p.type)&&p.click&&K(p,"input")&&pi(p,"click"),!0},_default:function(d){var p=d.target;return Lt.test(p.type)&&p.click&&K(p,"input")&&Be.get(p,"click")||K(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 S,R=Be.get(this,p);if(T.isTrigger&1&&this[p]){if(R)(m.event.special[p]||{}).delegateType&&T.stopPropagation();else if(R=u.call(arguments),Be.set(this,p,R),this[p](),S=Be.get(this,p),Be.set(this,p,!1),R!==S)return T.stopImmediatePropagation(),T.preventDefault(),S}else R&&(Be.set(this,p,m.event.trigger(R[0],R.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:Dn,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:Dn,isPropagationStopped:Dn,isImmediatePropagationStopped:Dn,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 S=Be.get(this,"handle"),R=m.event.fix(T);R.type=T.type==="focusin"?"focus":"blur",R.isSimulated=!0,S(T),R.target===R.currentTarget&&S(R)}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,S=A.documentMode?this:T,R=Be.get(S,p);R||(A.documentMode?this.addEventListener(p,v):T.addEventListener(d,v,!0)),Be.set(S,p,(R||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,S=A.documentMode?this:T,R=Be.get(S,p)-1;R?Be.set(S,p,R):(A.documentMode?this.removeEventListener(p,v):T.removeEventListener(d,v,!0),Be.remove(S,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,S=this,R=v.relatedTarget,B=v.handleObj;return(!R||R!==S&&!m.contains(S,R))&&(v.type=B.origType,T=B.handler.apply(this,arguments),v.type=p),T}}}),m.fn.extend({on:function(d,p,v,T){return Gn(this,d,p,v,T)},one:function(d,p,v,T){return Gn(this,d,p,v,T,1)},off:function(d,p,v){var T,S;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(S in d)this.off(S,p,d[S]);return this}return(p===!1||typeof p=="function")&&(v=p,p=void 0),v===!1&&(v=Dn),this.each(function(){m.event.remove(this,d,v,p)})}});var Or=/<script|<style|<link/i,Mr=/checked\s*(?:[^=]|=\s*.checked.)/i,Pr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Cn(d,p){return K(d,"table")&&K(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,S,R,B,Y,J;if(p.nodeType===1){if(Be.hasData(d)&&(R=Be.get(d),J=R.events,J)){Be.remove(p,"handle events");for(S in J)for(v=0,T=J[S].length;v<T;v++)m.event.add(p,S,J[S][v])}gt.hasData(d)&&(B=gt.access(d),Y=m.extend({},B),gt.set(p,Y))}}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 S,R,B,Y,J,ne,ce=0,be=d.length,le=be-1,Re=p[0],ft=U(Re);if(ft||be>1&&typeof Re=="string"&&!W.checkClone&&Mr.test(Re))return d.each(function(Nt){var vt=d.eq(Nt);ft&&(p[0]=Re.call(this,Nt,vt.html())),Ir(vt,p,v,T)});if(be&&(S=kn(p,d[0].ownerDocument,!1,d,T),R=S.firstChild,S.childNodes.length===1&&(S=R),R||T)){for(B=m.map(Bt(S,"script"),Ai),Y=B.length;ce<be;ce++)J=S,ce!==le&&(J=m.clone(J,!0,!0),Y&&m.merge(B,Bt(J,"script"))),v.call(d[ce],J,ce);if(Y)for(ne=B[B.length-1].ownerDocument,m.map(B,tn),ce=0;ce<Y;ce++)J=B[ce],ur.test(J.type||"")&&!Be.access(J,"globalEval")&&m.contains(ne,J)&&(J.src&&(J.type||"").toLowerCase()!=="module"?m._evalUrl&&!J.noModule&&m._evalUrl(J.src,{nonce:J.nonce||J.getAttribute("nonce")},ne):$(J.textContent.replace(Pr,""),J,ne))}return d}function Jr(d,p,v){for(var T,S=p?m.filter(p,d):d,R=0;(T=S[R])!=null;R++)!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,S,R,B,Y=d.cloneNode(!0),J=sn(d);if(!W.noCloneChecked&&(d.nodeType===1||d.nodeType===11)&&!m.isXMLDoc(d))for(B=Bt(Y),R=Bt(d),T=0,S=R.length;T<S;T++)gi(R[T],B[T]);if(p)if(v)for(R=R||Bt(d),B=B||Bt(Y),T=0,S=R.length;T<S;T++)rn(R[T],B[T]);else rn(d,Y);return B=Bt(Y,"script"),B.length>0&&Vt(B,!J&&Bt(d,"script")),Y},cleanData:function(d){for(var p,v,T,S=m.event.special,R=0;(v=d[R])!==void 0;R++)if(Ot(v)){if(p=v[Be.expando]){if(p.events)for(T in p.events)S[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 Jr(this,d,!0)},remove:function(d){return Jr(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,S=this.length;if(p===void 0&&v.nodeType===1)return v.innerHTML;if(typeof p=="string"&&!Or.test(p)&&!Jt[(jr.exec(p)||["",""])[1].toLowerCase()]){p=m.htmlPrefilter(p);try{for(;T<S;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,S=[],R=m(v),B=R.length-1,Y=0;Y<=B;Y++)T=Y===B?this:this.clone(!0),m(R[Y])[p](T),h.apply(S,T.get());return this.pushStack(S)}});var In=new RegExp("^("+Pt+")(?!px)[a-z%]+$","i"),Xn=/^--/,Xe=function(d){var p=d.ownerDocument.defaultView;return(!p||!p.opener)&&(p=e),p.getComputedStyle(d)},q=function(d,p,v){var T,S,R={};for(S in p)R[S]=d.style[S],d.style[S]=p[S];T=v.call(d);for(S in p)d.style[S]=R[S];return T},we=new RegExp(sr.join("|"),"i");(function(){function d(){if(ne){J.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(J).appendChild(ne);var ce=e.getComputedStyle(ne);v=ce.top!=="1%",Y=p(ce.marginLeft)===12,ne.style.right="60%",R=p(ce.right)===36,T=p(ce.width)===36,ne.style.position="absolute",S=p(ne.offsetWidth/3)===12,Tr.removeChild(J),ne=null}}function p(ce){return Math.round(parseFloat(ce))}var v,T,S,R,B,Y,J=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(),R},pixelPosition:function(){return d(),v},reliableMarginLeft:function(){return d(),Y},scrollboxSize:function(){return d(),S},reliableTrDimensions:function(){var ce,be,le,Re;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),Re=e.getComputedStyle(be),B=parseInt(Re.height,10)+parseInt(Re.borderTopWidth,10)+parseInt(Re.borderBottomWidth,10)===be.offsetHeight,Tr.removeChild(ce)),B}}))})();function Oe(d,p,v){var T,S,R,B,Y=Xn.test(p),J=d.style;return v=v||Xe(d),v&&(B=v.getPropertyValue(p)||v[p],Y&&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=J.width,S=J.minWidth,R=J.maxWidth,J.minWidth=J.maxWidth=J.width=B,B=v.width,J.width=T,J.minWidth=S,J.maxWidth=R)),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 Yt=["Webkit","Moz","ms"],ht=A.createElement("div").style,Ge={};function wr(d){for(var p=d[0].toUpperCase()+d.slice(1),v=Yt.length;v--;)if(d=Yt[v]+p,d in ht)return d}function nn(d){var p=m.cssProps[d]||Ge[d];return p||(d in ht?d:Ge[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,S,R){var B=p==="width"?1:0,Y=0,J=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,S)),T?(v==="content"&&(J-=m.css(d,"padding"+sr[B],!0,S)),v!=="margin"&&(J-=m.css(d,"border"+sr[B]+"Width",!0,S))):(J+=m.css(d,"padding"+sr[B],!0,S),v!=="padding"?J+=m.css(d,"border"+sr[B]+"Width",!0,S):Y+=m.css(d,"border"+sr[B]+"Width",!0,S));return!T&&R>=0&&(J+=Math.max(0,Math.ceil(d["offset"+p[0].toUpperCase()+p.slice(1)]-R-J-Y-.5))||0),J+ne}function se(d,p,v){var T=Xe(d),S=!W.boxSizingReliable()||v,R=S&&m.css(d,"boxSizing",!1,T)==="border-box",B=R,Y=Oe(d,p,T),J="offset"+p[0].toUpperCase()+p.slice(1);if(In.test(Y)){if(!v)return Y;Y="auto"}return(!W.boxSizingReliable()&&R||!W.reliableTrDimensions()&&K(d,"tr")||Y==="auto"||!parseFloat(Y)&&m.css(d,"display",!1,T)==="inline")&&d.getClientRects().length&&(R=m.css(d,"boxSizing",!1,T)==="border-box",B=J in d,B&&(Y=d[J])),Y=parseFloat(Y)||0,Y+Ce(d,p,v||(R?"border":"content"),B,T,Y)+"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 S,R,B,Y=tr(p),J=Xn.test(p),ne=d.style;if(J||(p=nn(Y)),B=m.cssHooks[p]||m.cssHooks[Y],v!==void 0){if(R=typeof v,R==="string"&&(S=rr.exec(v))&&S[1]&&(v=je(d,p,S),R="number"),v==null||v!==v)return;R==="number"&&!J&&(v+=S&&S[3]||(m.cssNumber[Y]?"":"px")),!W.clearCloneStyle&&v===""&&p.indexOf("background")===0&&(ne[p]="inherit"),(!B||!("set"in B)||(v=B.set(d,v,T))!==void 0)&&(J?ne.setProperty(p,v):ne[p]=v)}else return B&&"get"in B&&(S=B.get(d,!1,T))!==void 0?S:ne[p]}},css:function(d,p,v,T){var S,R,B,Y=tr(p),J=Xn.test(p);return J||(p=nn(Y)),B=m.cssHooks[p]||m.cssHooks[Y],B&&"get"in B&&(S=B.get(d,!0,v)),S===void 0&&(S=Oe(d,p,T)),S==="normal"&&p in H&&(S=H[p]),v===""||v?(R=parseFloat(S),v===!0||isFinite(R)?R||0:S):S}}),m.each(["height","width"],function(d,p){m.cssHooks[p]={get:function(v,T,S){if(T)return Nr.test(m.css(v,"display"))&&(!v.getClientRects().length||!v.getBoundingClientRect().width)?q(v,N,function(){return se(v,p,S)}):se(v,p,S)},set:function(v,T,S){var R,B=Xe(v),Y=!W.scrollboxSize()&&B.position==="absolute",J=Y||S,ne=J&&m.css(v,"boxSizing",!1,B)==="border-box",ce=S?Ce(v,p,S,ne,B):0;return ne&&Y&&(ce-=Math.ceil(v["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(B[p])-Ce(v,p,"border",!1,B)-.5)),ce&&(R=rr.exec(T))&&(R[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-q(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,S={},R=typeof v=="string"?v.split(" "):[v];T<4;T++)S[d+sr[T]+p]=R[T]||R[T-2]||R[0];return S}},d!=="margin"&&(m.cssHooks[d+p].set=pe)}),m.fn.extend({css:function(d,p){return mt(this,function(v,T,S){var R,B,Y={},J=0;if(Array.isArray(T)){for(R=Xe(v),B=T.length;J<B;J++)Y[T[J]]=m.css(v,T[J],!1,R);return Y}return S!==void 0?m.style(v,T,S):m.css(v,T)},d,p,arguments.length>1)}});function Ee(d,p,v,T,S){return new Ee.prototype.init(d,p,v,T,S)}m.Tween=Ee,Ee.prototype={constructor:Ee,init:function(d,p,v,T,S,R){this.elem=d,this.prop=v,this.easing=S||m.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=T,this.unit=R||(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,Yr=/^(?: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,S={height:d};for(p=p?1:0;T<4;T+=2-p)v=sr[T],S["margin"+v]=S["padding"+v]=d;return p&&(S.opacity=S.width=d),S}function vl(d,p,v){for(var T,S=(wn.tweeners[p]||[]).concat(wn.tweeners["*"]),R=0,B=S.length;R<B;R++)if(T=S[R].call(v,p,d))return T}function go(d,p,v){var T,S,R,B,Y,J,ne,ce,be="width"in p||"height"in p,le=this,Re={},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,Y=B.empty.fire,B.empty.fire=function(){B.unqueued||Y()}),B.unqueued++,le.always(function(){le.always(function(){B.unqueued--,m.queue(d,"fx").length||B.empty.fire()})}));for(T in p)if(S=p[T],Yr.test(S)){if(delete p[T],R=R||S==="toggle",S===(Nt?"hide":"show"))if(S==="show"&&vt&&vt[T]!==void 0)Nt=!0;else continue;Re[T]=vt&&vt[T]||m.style(d,T)}if(J=!m.isEmptyObject(p),!(!J&&m.isEmptyObject(Re))){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"&&(J||(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]})),J=!1;for(T in Re)J||(vt?"hidden"in vt&&(Nt=vt.hidden):vt=Be.access(d,"fxshow",{display:ne}),R&&(vt.hidden=!Nt),Nt&&Ft([d],!0),le.done(function(){Nt||Ft([d]),Be.remove(d,"fxshow");for(T in Re)m.style(d,T,Re[T])})),J=vl(Nt?vt[T]:0,T,le),T in vt||(vt[T]=J.start,Nt&&(J.end=J.start,J.start=0))}}function jn(d,p){var v,T,S,R,B;for(v in d)if(T=tr(v),S=p[T],R=d[v],Array.isArray(R)&&(S=R[1],R=d[v]=R[0]),v!==T&&(d[T]=R,delete d[v]),B=m.cssHooks[T],B&&"expand"in B){R=B.expand(R),delete d[T];for(v in R)v in d||(d[v]=R[v],p[v]=S)}else p[T]=S}function wn(d,p,v){var T,S,R=0,B=wn.prefilters.length,Y=m.Deferred().always(function(){delete J.elem}),J=function(){if(S)return!1;for(var be=It||ot(),le=Math.max(0,ne.startTime+ne.duration-be),Re=le/ne.duration||0,ft=1-Re,Nt=0,vt=ne.tweens.length;Nt<vt;Nt++)ne.tweens[Nt].run(ft);return Y.notifyWith(d,[ne,ft,le]),ft<1&&vt?le:(vt||Y.notifyWith(d,[ne,1,0]),Y.resolveWith(d,[ne]),!1)},ne=Y.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 Re=m.Tween(d,ne.opts,be,le,ne.opts.specialEasing[be]||ne.opts.easing);return ne.tweens.push(Re),Re},stop:function(be){var le=0,Re=be?ne.tweens.length:0;if(S)return this;for(S=!0;le<Re;le++)ne.tweens[le].run(1);return be?(Y.notifyWith(d,[ne,1,0]),Y.resolveWith(d,[ne,be])):Y.rejectWith(d,[ne,be]),this}}),ce=ne.props;for(jn(ce,ne.opts.specialEasing);R<B;R++)if(T=wn.prefilters[R].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(J,{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,S=d.length;T<S;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 S=m.isEmptyObject(d),R=m.speed(p,v,T),B=function(){var Y=wn(this,m.extend({},d),R);(S||Be.get(this,"finish"))&&Y.stop(!0)};return B.finish=B,S||R.queue===!1?this.each(B):this.queue(R.queue,B)},stop:function(d,p,v){var T=function(S){var R=S.stop;delete S.stop,R(v)};return typeof d!="string"&&(v=p,p=d,d=void 0),p&&this.queue(d||"fx",[]),this.each(function(){var S=!0,R=d!=null&&d+"queueHooks",B=m.timers,Y=Be.get(this);if(R)Y[R]&&Y[R].stop&&T(Y[R]);else for(R in Y)Y[R]&&Y[R].stop&&ia.test(R)&&T(Y[R]);for(R=B.length;R--;)B[R].elem===this&&(d==null||B[R].queue===d)&&(B[R].anim.stop(v),S=!1,B.splice(R,1));(S||!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"],S=v[d+"queueHooks"],R=m.timers,B=T?T.length:0;for(v.finish=!0,m.queue(this,d,[]),S&&S.stop&&S.stop.call(this,!0),p=R.length;p--;)R[p].elem===this&&R[p].queue===d&&(R[p].anim.stop(!0),R.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,S,R){return T==null||typeof T=="boolean"?v.apply(this,arguments):this.animate(po(p,!0),T,S,R)}}),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,S){return this.animate(p,v,T,S)}}),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 S=e.setTimeout(v,d);T.stop=function(){e.clearTimeout(S)}})},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,S,R=d.nodeType;if(!(R===3||R===8||R===2)){if(typeof d.getAttribute>"u")return m.prop(d,p,v);if((R!==1||!m.isXMLDoc(d))&&(S=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 S&&"set"in S&&(T=S.set(d,v,p))!==void 0?T:(d.setAttribute(p,v+""),v)}return S&&"get"in S&&(T=S.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"&&K(d,"input")){var v=d.value;return d.setAttribute("type",p),v&&(d.value=v),p}}}},removeAttr:function(d,p){var v,T=0,S=p&&p.match(_e);if(S&&d.nodeType===1)for(;v=S[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,S,R){var B,Y,J=S.toLowerCase();return R||(Y=mi[J],mi[J]=B,B=v(T,S,R)!=null?J:null,mi[J]=Y),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,S,R=d.nodeType;if(!(R===3||R===8||R===2))return(R!==1||!m.isXMLDoc(d))&&(p=m.propFix[p]||p,S=m.propHooks[p]),v!==void 0?S&&"set"in S&&(T=S.set(d,v,p))!==void 0?T:d[p]=v:S&&"get"in S&&(T=S.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,S,R,B;return U(d)?this.each(function(Y){m(this).addClass(d.call(this,Y,_i(this)))}):(p=mo(d),p.length?this.each(function(){if(T=_i(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(R=0;R<p.length;R++)S=p[R],v.indexOf(" "+S+" ")<0&&(v+=S+" ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this)},removeClass:function(d){var p,v,T,S,R,B;return U(d)?this.each(function(Y){m(this).removeClass(d.call(this,Y,_i(this)))}):arguments.length?(p=mo(d),p.length?this.each(function(){if(T=_i(this),v=this.nodeType===1&&" "+bi(T)+" ",v){for(R=0;R<p.length;R++)for(S=p[R];v.indexOf(" "+S+" ")>-1;)v=v.replace(" "+S+" "," ");B=bi(v),T!==B&&this.setAttribute("class",B)}}):this):this.attr("class","")},toggleClass:function(d,p){var v,T,S,R,B=typeof d,Y=B==="string"||Array.isArray(d);return U(d)?this.each(function(J){m(this).toggleClass(d.call(this,J,_i(this),p),p)}):typeof p=="boolean"&&Y?p?this.addClass(d):this.removeClass(d):(v=mo(d),this.each(function(){if(Y)for(R=m(this),S=0;S<v.length;S++)T=v[S],R.hasClass(T)?R.removeClass(T):R.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,S=this[0];return arguments.length?(T=U(d),this.each(function(R){var B;this.nodeType===1&&(T?B=d.call(this,R,m(this).val()):B=d,B==null?B="":typeof B=="number"?B+="":Array.isArray(B)&&(B=m.map(B,function(Y){return Y==null?"":Y+""})),p=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!p||!("set"in p)||p.set(this,B,"value")===void 0)&&(this.value=B))})):S?(p=m.valHooks[S.type]||m.valHooks[S.nodeName.toLowerCase()],p&&"get"in p&&(v=p.get(S,"value"))!==void 0?v:(v=S.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,S=d.options,R=d.selectedIndex,B=d.type==="select-one",Y=B?null:[],J=B?R+1:S.length;for(R<0?T=J:T=B?R:0;T<J;T++)if(v=S[T],(v.selected||T===R)&&!v.disabled&&(!v.parentNode.disabled||!K(v.parentNode,"optgroup"))){if(p=m(v).val(),B)return p;Y.push(p)}return Y},set:function(d,p){for(var v,T,S=d.options,R=m.makeArray(p),B=S.length;B--;)T=S[B],(T.selected=m.inArray(m.valHooks.option.get(T),R)>-1)&&(v=!0);return v||(d.selectedIndex=-1),R}}}}),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,Ms={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)$/,Pn=function(d){d.stopPropagation()};m.extend(m.event,{trigger:function(d,p,v,T){var S,R,B,Y,J,ne,ce,be,le=[v||A],Re=I.call(d,"type")?d.type:d,ft=I.call(d,"namespace")?d.namespace.split("."):[];if(R=be=B=v=v||A,!(v.nodeType===3||v.nodeType===8)&&!Cl.test(Re+m.event.triggered)&&(Re.indexOf(".")>-1&&(ft=Re.split("."),Re=ft.shift(),ft.sort()),J=Re.indexOf(":")<0&&"on"+Re,d=d[m.expando]?d:new m.Event(Re,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[Re]||{},!(!T&&ce.trigger&&ce.trigger.apply(v,p)===!1))){if(!T&&!ce.noBubble&&!P(v)){for(Y=ce.delegateType||Re,Cl.test(Y+Re)||(R=R.parentNode);R;R=R.parentNode)le.push(R),B=R;B===(v.ownerDocument||A)&&le.push(B.defaultView||B.parentWindow||e)}for(S=0;(R=le[S++])&&!d.isPropagationStopped();)be=R,d.type=S>1?Y:ce.bindType||Re,ne=(Be.get(R,"events")||Object.create(null))[d.type]&&Be.get(R,"handle"),ne&&ne.apply(R,p),ne=J&&R[J],ne&&ne.apply&&Ot(R)&&(d.result=ne.apply(R,p),d.result===!1&&d.preventDefault());return d.type=Re,!T&&!d.isDefaultPrevented()&&(!ce._default||ce._default.apply(le.pop(),p)===!1)&&Ot(v)&&J&&U(v[Re])&&!P(v)&&(B=v[J],B&&(v[J]=null),m.event.triggered=Re,d.isPropagationStopped()&&be.addEventListener(Re,Pn),v[Re](),d.isPropagationStopped()&&be.removeEventListener(Re,Pn),m.event.triggered=void 0,B&&(v[J]=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=/\[\]$/,Zs=/\r?\n/g,bo=/^(?:submit|button|image|reset|file)$/i,ka=/^(?:input|select|textarea|keygen)/i;function Il(d,p,v,T){var S;if(Array.isArray(p))m.each(p,function(R,B){v||Qf.test(d)?T(d,B):Il(d+"["+(typeof B=="object"&&B!=null?R:"")+"]",B,v,T)});else if(!v&&V(p)==="object")for(S in p)Il(d+"["+S+"]",p[S],v,T);else T(d,p)}m.param=function(d,p){var v,T=[],S=function(R,B){var Y=U(B)?B():B;T[T.length]=encodeURIComponent(R)+"="+encodeURIComponent(Y??"")};if(d==null)return"";if(Array.isArray(d)||d.jquery&&!m.isPlainObject(d))m.each(d,function(){S(this.name,this.value)});else for(v in d)Il(v,d[v],p,S);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(Zs,`\r
|
|
18
18
|
`)}}):{name:p.name,value:v.replace(Zs,`\r
|
|
19
|
-
`)}}).get()}});var Hf=/%20/g,Xf=/#.*$/,Jf=/([?&])_=[^&]*/,wl=/^(.*?):[ \t]*([^\r\n]*)$/mg,Vs=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pf=/^(?:GET|HEAD)$/,Qs=/^\/\//,_l={},oa={},Ga="*/".concat("*"),Da=R.createElement("a");Da.href=aa.href;function Sl(d){return function(p,v){typeof p!="string"&&(v=p,p="*");var T,_=0,S=p.toLowerCase().match(Ae)||[];if(U(v))for(;T=S[_++];)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 _={},S=d===oa;function B(Y){var P;return _[Y]=!0,m.each(d[Y]||[],function(ne,ce){var be=ce(p,v,T);if(typeof be=="string"&&!S&&!_[be])return p.dataTypes.unshift(be),B(be),!1;if(S)return!(P=be)}),P}return B(p.dataTypes[0])||!_["*"]&&B("*")}function la(d,p){var v,T,_=m.ajaxSettings.flatOptions||{};for(v in p)p[v]!==void 0&&((_[v]?d:T||(T={}))[v]=p[v]);return T&&m.extend(!0,d,T),d}function jf(d,p,v){for(var T,_,S,B,Y=d.contents,P=d.dataTypes;P[0]==="*";)P.shift(),T===void 0&&(T=d.mimeType||p.getResponseHeader("Content-Type"));if(T){for(_ in Y)if(Y[_]&&Y[_].test(T)){P.unshift(_);break}}if(P[0]in v)S=P[0];else{for(_ in v){if(!P[0]||d.converters[_+" "+P[0]]){S=_;break}B||(B=_)}S=S||B}if(S)return S!==P[0]&&P.unshift(S),v[S]}function Hs(d,p,v,T){var _,S,B,Y,P,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),!P&&T&&d.dataFilter&&(p=d.dataFilter(p,d.dataType)),P=S,S=ce.shift(),S){if(S==="*")S=P;else if(P!=="*"&&P!==S){if(B=ne[P+" "+S]||ne["* "+S],!B){for(_ in ne)if(Y=_.split(" "),Y[1]===S&&(B=ne[P+" "+Y[0]]||ne["* "+Y[0]],B)){B===!0?B=ne[_]:ne[_]!==!0&&(S=Y[0],ce.unshift(Y[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 "+P+" 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(_l),ajaxTransport:Sl(oa),ajax:function(d,p){typeof d=="object"&&(p=d,d=void 0),p=p||{};var v,T,_,S,B,Y,P,ne,ce,be,le=m.ajaxSetup({},p),Se=le.context||le,ft=le.context&&(Se.nodeType||Se.jquery)?m(Se):m.event,At=m.Deferred(),vt=m.Callbacks("once memory"),gr=le.statusCode||{},zt={},jn={},Yn="canceled",_t={readyState:0,getResponseHeader:function(rt){var ar;if(P){if(!S)for(S={};ar=wl.exec(_);)S[ar[1].toLowerCase()+" "]=(S[ar[1].toLowerCase()+" "]||[]).concat(ar[2]);ar=S[rt.toLowerCase()+" "]}return ar==null?null:ar.join(", ")},getAllResponseHeaders:function(){return P?_:null},setRequestHeader:function(rt,ar){return P==null&&(rt=jn[rt.toLowerCase()]=jn[rt.toLowerCase()]||rt,zt[rt]=ar),this},overrideMimeType:function(rt){return P==null&&(le.mimeType=rt),this},statusCode:function(rt){var ar;if(rt)if(P)_t.always(rt[_t.status]);else for(ar in rt)gr[ar]=[gr[ar],rt[ar]];return this},abort:function(rt){var ar=rt||Yn;return v&&v.abort(ar),On(0,ar),this}};if(At.promise(_t),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(Ae)||[""],le.crossDomain==null){Y=R.createElement("a");try{Y.href=le.url,Y.href=Y.href,le.crossDomain=Da.protocol+"//"+Da.host!=Y.protocol+"//"+Y.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=m.param(le.data,le.traditional)),El(_l,le,p,_t),P)return _t;ne=m.event&&le.global,ne&&m.active++===0&&m.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!Pf.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)?"&":"?")+"_="+Ms.guid+++be),le.url=T+be),le.ifModified&&(m.lastModified[T]&&_t.setRequestHeader("If-Modified-Since",m.lastModified[T]),m.etag[T]&&_t.setRequestHeader("If-None-Match",m.etag[T])),(le.data&&le.hasContent&&le.contentType!==!1||p.contentType)&&_t.setRequestHeader("Content-Type",le.contentType),_t.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)_t.setRequestHeader(ce,le.headers[ce]);if(le.beforeSend&&(le.beforeSend.call(Se,_t,le)===!1||P))return _t.abort();if(Yn="abort",vt.add(le.complete),_t.done(le.success),_t.fail(le.error),v=El(oa,le,p,_t),!v)On(-1,"No Transport");else{if(_t.readyState=1,ne&&ft.trigger("ajaxSend",[_t,le]),P)return _t;le.async&&le.timeout>0&&(B=e.setTimeout(function(){_t.abort("timeout")},le.timeout));try{P=!1,v.send(zt,On)}catch(rt){if(P)throw rt;On(-1,rt)}}function On(rt,ar,sa,Vi){var zn,ua,qn,Kn,vi,_n=ar;P||(P=!0,B&&e.clearTimeout(B),v=void 0,_=Vi||"",_t.readyState=rt>0?4:0,zn=rt>=200&&rt<300||rt===304,sa&&(Kn=jf(le,_t,sa)),!zn&&m.inArray("script",le.dataTypes)>-1&&m.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),Kn=Hs(le,Kn,_t,zn),zn?(le.ifModified&&(vi=_t.getResponseHeader("Last-Modified"),vi&&(m.lastModified[T]=vi),vi=_t.getResponseHeader("etag"),vi&&(m.etag[T]=vi)),rt===204||le.type==="HEAD"?_n="nocontent":rt===304?_n="notmodified":(_n=Kn.state,ua=Kn.data,qn=Kn.error,zn=!qn)):(qn=_n,(rt||!_n)&&(_n="error",rt<0&&(rt=0))),_t.status=rt,_t.statusText=(ar||_n)+"",zn?At.resolveWith(Se,[ua,_n,_t]):At.rejectWith(Se,[_t,_n,qn]),_t.statusCode(gr),gr=void 0,ne&&ft.trigger(zn?"ajaxSuccess":"ajaxError",[_t,le,zn?ua:qn]),vt.fireWith(Se,[_t,_n]),ne&&(ft.trigger("ajaxComplete",[_t,le]),--m.active||m.event.trigger("ajaxStop")))}return _t},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,_,S){return U(T)&&(S=S||_,_=T,T=void 0),m.ajax(m.extend({url:v,type:p,dataType:S,data:T,success:_},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();O.cors=!!Wa&&"withCredentials"in Wa,O.ajax=Wa=!!Wa,m.ajaxTransport(function(d){var p,v;if(O.cors||Wa&&!d.crossDomain)return{send:function(T,_){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(Y){return function(){p&&(p=v=B.onload=B.onerror=B.onabort=B.ontimeout=B.onreadystatechange=null,Y==="abort"?B.abort():Y==="error"?typeof B.status!="number"?_(0,"error"):_(B.status,B.statusText):_(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(Y){if(p)throw Y}},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,_){p=m("<script>").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",v=function(S){p.remove(),v=null,S&&_(S.type==="error"?404:200,S.type)}),R.head.appendChild(p[0])},abort:function(){v&&v()}}}});var Xs=[],Oa=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=Xs.pop()||m.expando+"_"+Ms.guid++;return this[d]=!0,d}}),m.ajaxPrefilter("json jsonp",function(d,p,v){var T,_,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",_=e[T],e[T]=function(){S=arguments},v.always(function(){_===void 0?m(e).removeProp(T):e[T]=_,d[T]&&(d.jsonpCallback=p.jsonpCallback,Xs.push(T)),S&&U(_)&&_(S[0]),S=_=void 0}),"script"}),O.createHTMLDocument=function(){var d=R.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,_,S;return p||(O.createHTMLDocument?(p=R.implementation.createHTMLDocument(""),T=p.createElement("base"),T.href=R.location.href,p.head.appendChild(T)):p=R),_=Ne.exec(d),S=!v&&[],_?[p.createElement(_[1])]:(_=kn([d],p,S),S&&S.length&&m(S).remove(),m.merge([],_.childNodes))},m.fn.load=function(d,p,v){var T,_,S,B=this,Y=d.indexOf(" ");return Y>-1&&(T=bi(d.slice(Y)),d=d.slice(0,Y)),U(p)?(v=p,p=void 0):p&&typeof p=="object"&&(_="POST"),B.length>0&&m.ajax({url:d,type:_||"GET",dataType:"html",data:p}).done(function(P){S=arguments,B.html(T?m("<div>").append(m.parseHTML(P)).find(T):P)}).always(v&&function(P,ne){B.each(function(){v.apply(this,S||[P.responseText,ne,P])})}),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,_,S,B,Y,P,ne,ce=m.css(d,"position"),be=m(d),le={};ce==="static"&&(d.style.position="relative"),Y=be.offset(),S=m.css(d,"top"),P=m.css(d,"left"),ne=(ce==="absolute"||ce==="fixed")&&(S+P).indexOf("auto")>-1,ne?(T=be.position(),B=T.top,_=T.left):(B=parseFloat(S)||0,_=parseFloat(P)||0),U(p)&&(p=p.call(d,v,m.extend({},Y))),p.top!=null&&(le.top=p.top-Y.top+B),p.left!=null&&(le.left=p.left-Y.left+_),"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(_){m.offset.setOffset(this,d,_)});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],_={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&&(_=m(d).offset(),_.top+=m.css(d,"borderTopWidth",!0),_.left+=m.css(d,"borderLeftWidth",!0))}return{top:p.top-_.top-m.css(T,"marginTop",!0),left:p.left-_.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(_,S,B){var Y;if(J(_)?Y=_:_.nodeType===9&&(Y=_.defaultView),B===void 0)return Y?Y[p]:_[S];Y?Y.scrollTo(v?Y.pageXOffset:B,v?B:Y.pageYOffset):_[S]=B},d,T,arguments.length)}}),m.each(["top","left"],function(d,p){m.cssHooks[p]=kt(O.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(_,S){var B=arguments.length&&(v||typeof _!="boolean"),Y=v||(_===!0||S===!0?"margin":"border");return mt(this,function(P,ne,ce){var be;return J(P)?T.indexOf("outer")===0?P["inner"+d]:P.document.documentElement["client"+d]:P.nodeType===9?(be=P.documentElement,Math.max(P.body["scroll"+d],be["scroll"+d],P.body["offset"+d],be["offset"+d],be["client"+d])):ce===void 0?m.css(P,ne,Y):m.style(P,ne,ce,Y)},p,B?_: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,_;if(typeof p=="string"&&(v=d[p],p=d,d=v),!!U(d))return T=u.call(arguments,2),_=function(){return d.apply(p||this,T.concat(u.call(arguments)))},_.guid=d.guid=d.guid||m.guid++,_},m.holdReady=function(d){d?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=K,m.isFunction=U,m.isWindow=J,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,Rl=e.$;return m.noConflict=function(d){return e.$===m&&(e.$=Rl),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(J){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},h(J)}function b(J,R){for(var k=0;k<R.length;k++){var te=R[k];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(J,F(te.key),te)}}function x(J,R,k){return R&&b(J.prototype,R),k&&b(J,k),Object.defineProperty(J,"prototype",{writable:!1}),J}function A(J,R){if(!(J instanceof R))throw new TypeError("Cannot call a class as a function")}function I(J,R,k){return(R=F(R))in J?Object.defineProperty(J,R,{value:k,enumerable:!0,configurable:!0,writable:!0}):J[R]=k,J}function F(J){var R=function(te,V){if(h(te)!=="object"||te===null)return te;var D=te[Symbol.toPrimitive];if(D!==void 0){var $=D.call(te,V||"default");if(h($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(te)}(J,"string");return h(R)==="symbol"?R:String(R)}var G,O=(G=0,function(){return G++}),U=x(function J(R){var k=this,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A(this,J),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,$=0;$<V.columnCnt;$++)D+=V.columns[$].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,$=k.tb,m=$.grips[D.i],M=V.touches;if(m.ox=M?M[0].pageX:V.pageX,m.l=m.offsetLeft,m.x=m.l,k.createStyle(document.querySelector("head"),"*{cursor:"+$.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($.opt.draggingClass),k.grip=m,$.columns[D.i].locked)for(var K,ue=0;ue<$.columnCnt;ue++)(K=$.columns[ue]).locked=!1,K.w=Number(window.getComputedStyle(K).width.replace(/px/,"")).valueOf();V.preventDefault()}),I(this,"onGripDrag",function(V){var D=k.grip;if(D){var $=D.t,m=V.touches,M=(m?m[0].pageX:V.pageX)-D.ox+D.l,K=$.opt.minWidth,ue=D.i,Te=1.5*$.cellSpace+K+$.borderSpace,z=ue===$.columnCnt-1,he=ue?$.grips[ue-1].offsetLeft+$.cellSpace+K:Te,L=$.opt.fixed?ue===$.columnCnt-1?$.tableWidth-Te:$.grips[ue+1].offsetLeft-$.cellSpace-K:1/0;if(M=Math.max(he,Math.min(L,M)),D.x=M,D.style.left=M+k.PX,z&&(D.w=$.columns[ue].w+M-D.l),$.opt.liveDrag){z?($.columns[ue].style.width=D.w+k.PX,!$.opt.fixed&&$.opt.overflow?$.style.minWidth=$.tableWidth+M-D.l+k.PX:$.tableWidth=Number(window.getComputedStyle($).width.replace(/px/,"")).valueOf()):k.syncCols($,ue,!1,$.opt),k.syncGrips();var xe=$.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 $=document.querySelector("head").lastChild;if($.parentNode.removeChild($),D){if(D.classList.remove(D.t.opt.draggingClass),D.x-D.l!=0){var m=D.t,M=m.opt.onResize,K=D.i;if(K===m.columnCnt-1){var ue=m.columns[K];ue.style.width=D.w+k.PX,ue.w=D.w}else k.syncCols(m,K,!0,m.opt);m.opt.fixed||k.applyBounds(),k.syncGrips(),M&&M(V),m.opt.serialize&&k.serializeStore()}k.grip=null}}),I(this,"init",function(V){if(V.disable)return k.destroy();var D=k.tb,$=D.getAttribute(k.ID)||k.RESIZABLE+O();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 M=".grip-handle .grip-resizable:hover{cursor:"+V.hoverCursor+"!important}";k.createStyle(m,M)}D.setAttribute(k.ID,$);var K=D.opt;D.opt=k.extendOptions(V);var ue=k.getTableHeaders(D);if(k.extendTable(ue),V.remoteTable&&V.remoteTable.matches("table")){var Te=k.getTableHeaders(D.opt.remoteTable);ue.length===Te.length?k.extendRemoteTable(D.opt.remoteTable,Te,D):console.warn("column count for remote table did not match")}return K}),I(this,"applyBounds",function(){var V=k.tb,D=V.columns.map(function($){return window.getComputedStyle($).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($,m){$.style.width=D[m];var M=Number(D[m].replace(/px/,"")).valueOf();$.w=M,V.opt.currentWidths[m]=M}),V.classList.add(k.FLEX)}),I(this,"serializeStore",function(){var V=k.store,D=k.tb;V[D.getAttribute(k.ID)]="";for(var $=0,m=0;m<D.columns.length;m++){var M=window.getComputedStyle(D.columns[m]).width.replace(/px/,"");V[D.getAttribute(k.ID)]+=M+";",$+=Number(M).valueOf()}V[D.getAttribute(k.ID)]+=$.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 $=V.columns[D],m=$.getBoundingClientRect(),M=V.getBoundingClientRect();V.grips[D].style.left=m.left-M.left+$.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 $=c()(D).toString(),m=V.querySelectorAll("style"),M=Array.from(m).filter(function(ue){return ue.gripid===$});if(!M.length){var K=document.createElement("style");K.type="text/css",K.gripid=$,K.styleSheet?K.styleSheet.cssText=D:K.appendChild(document.createTextNode(D)),V.appendChild(K)}}),I(this,"extendOptions",function(V){var D=Object.assign({},J.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,$=Array.from(V.querySelectorAll(D+">thead>tr:nth-of-type(1)>th"));return($=$.concat(Array.from(V.querySelectorAll(D+">thead>tr:nth-of-type(1)>td")))).length||($=($=($=($=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($,!1)}),I(this,"filterInvisible",function(V,D){return V.filter(function($){var m=D?-1:$.offsetWidth,M=D?-1:$.offsetHeight;return!(m===0&&M===0||$.style&&$.style.display&&window.getComputedStyle($).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,$){$.opt.removePadding&&V.classList.add("grip-padding"),V.classList.add(k.RESIZABLE),V.getAttribute(k.ID)||V.setAttribute(k.ID,$.getAttribute(k.ID)+"remote"),V.columns=[],D.forEach(function(M,K){var ue=D[K];ue.w=$.columns[K].w,ue.style.width=ue.w+k.PX,ue.removeAttribute("width"),V.columns.push(ue)}),V.tableWidth=$.tableWidth,V.cellSpace=$.cellSpace,V.borderSpace=$.borderSpace;var m=Array.from(V.querySelectorAll("col"));V.columnGrp=k.filterInvisible(m,!0),V.columnGrp.forEach(function(M,K){M.removeAttribute("width"),M.style.width=$.columnGrp[K].style.width}),$.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(M){M.removeAttribute("width")}),D.columnCnt=V.length;var $=!1;k.store[D.getAttribute(k.ID)]&&(k.deserializeStore(V),$=!0),V.forEach(function(M,K){var ue=V[K],Te=D.opt.disabledColumns.indexOf(K)!==-1;k.createDiv(D.gripContainer,"grip-handle");var z=D.gripContainer.lastChild;!Te&&D.opt.gripInnerHtml&&(z.innerHTML=D.opt.gripInnerHtml),k.createDiv(z,k.RESIZABLE),K===D.columnCnt-1&&(z.classList.add("grip-lastgrip"),D.opt.fixed&&(z.innerHTML="")),z.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),z.addEventListener("mousedown",k.onGripMouseDown,!0),Te?z.classList.add("grip-disabledgrip"):(z.classList.remove("grip-disabledgrip"),z.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),z.addEventListener("mousedown",k.onGripMouseDown,!0)),z.t=D,z.i=K,D.opt.widths[K]?ue.w=D.opt.widths[K]:ue.w=$?Number(ue.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(ue).width.replace(/px/,"")).valueOf(),D.opt.currentWidths[K]=ue.w,ue.style.width=ue.w+k.PX,ue.removeAttribute("width"),z.data={i:K,t:D.getAttribute(k.ID),last:K===D.columnCnt-1},D.grips.push(z),D.columns.push(ue)});var m=Array.from(D.querySelectorAll("td"));m.concat(Array.from(D.querySelectorAll("th"))),(m=(m=m.filter(function(M){for(var K=0;K<V.length;K++)if(V[K]===M)return!1;return!0})).filter(function(M){return!(M.querySelectorAll("table th").length||M.querySelectorAll("table td").length)})).forEach(function(M){M.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(K){K.removeAttribute("width")}),D.opt.flush)k.store[D.getAttribute(k.ID)]="";else{var $=k.store[D.getAttribute(k.ID)].split(";"),m=$[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 M=0;M<D.columnCnt;M++)V[M].style.width=$[M]+k.PX,D.columnGrp[M]&&(D.columnGrp[M].style.width=100*Number($[M]).valueOf()/Number($[D.columnCnt]).valueOf()+"%")}}),I(this,"createDiv",function(V,D,$){var m=document.createElement("div");m.classList.add(D),$&&(m.innerHTML=$),V.appendChild(m)}),I(this,"syncCols",function(V,D,$,m){var M=V.remote,K=k.grip.x-k.grip.l,ue=V.columns[D],Te=V.columns[D+1];if(ue&&Te){var z=ue.w+K,he=Te.w-K,L=z+k.PX;if(ue.style.width=L,V.columnGrp[D]&&V.columnGrp[D].style.width&&(V.columnGrp[D].style.width=L),M&&(M.columns[D].style.width=L,M.columnGrp[D]&&M.columnGrp[D].style.width&&(M.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),M&&(M.columns[D+1].style.width=xe,M.columnGrp[D+1]&&M.columnGrp[D+1].style.width&&(M.columnGrp[D+1].style.width=xe))}else m.overflow&&(V.style.minWidth=V.tableWidth+K+k.PX);$&&(ue.w=z,Te.w=m.fixed?he:Te.w,M&&(M.columns[D].w=z,M.columns[D+1].w=m.fixed?he:Te.w))}});try{this.store=sessionStorage}catch{this.store={}}this.grip=null,this.tb=R,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(te)});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),A=x&&/Qt\/\d+\.\d+/.test(e),I=!c&&/Chrome\/(\d+)/.exec(e),F=I&&+I[1],G=/Opera\//.test(e),O=/Apple Computer/.test(navigator.vendor),U=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),J=/PhantomJS/.test(e),R=O&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),k=/Android/.test(e),te=R||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),V=R||/Mac/.test(r),D=/\bCrOS\b/.test(e),$=/win/i.test(r),m=G&&e.match(/Version\/(\d*\.\d*)/);m&&(m=Number(m[1])),m&&m>=15&&(G=!1,x=!0);var M=V&&(A||G&&(m==null||m<12.11)),K=n||h&&b>=9;function ue(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Te=function(t,i){var l=t.className,o=ue(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 z(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return z(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;ue(i).test(l)||(t.className+=(l?" ":"")+i)}function Ke(t,i){for(var l=t.split(" "),o=0;o<l.length;o++)l[o]&&!ue(l[o]).test(i)&&(i+=" "+l[o]);return i}var lt=function(t){t.select()};R?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 wt(t){return Ye(t.display.wrapper)}function Ye(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 Ae(t,i){for(var l=0;l<t.length;++l)if(t[l]==i)return l;return-1}var ct=50,St={toString:function(){return"CodeMirror.Pass"}},pt={scroll:!1},st={origin:"*mouse"},$e={origin:"+move"};function Tt(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(je(ut)+" ");return ut[t]}function je(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 Zt(t){return t.charCodeAt(0)>=768&&hr.test(t)}function xr(t,i,l){for(;(l<0?i>0:i<t.length)&&Zt(t.charAt(i));)i+=l;return i}function Pt(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,W,X){this.level=E,this.from=W,this.to=X}return function(E,W){var X=W=="ltr"?"L":"R";if(E.length==0||W=="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,_e=X;ve<ie;++ve){var Ue=re[ve];Ue=="m"?re[ve]=_e:_e=Ue}for(var We=0,ke=X;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 An=Xt&&re[Xt-1]=="!"||or<ie&&re[or]=="1"?"1":"N",cn=Xt;cn<or;++cn)re[cn]=An;Xt=or-1}}for(var _r=0,hn=X;_r<ie;++_r){var Vr=re[_r];hn=="L"&&Vr=="1"?re[_r]="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]:X)=="L",pn=(Sr<ie?re[Sr]:X)=="L",Uo=dr==pn?dr?"L":"R":X,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 _d=kr;for(++kr;kr<ie&&y.test(re[kr]);++kr);Kr.push(new w(0,_d,kr))}else{var Pi=kr,ja=Kr.length,Ya=W=="rtl"?1:0;for(++kr;kr<ie&&re[kr]!="L";++kr);for(var on=Pi;on<kr;)if(C.test(re[on])){Pi<on&&(Kr.splice(ja,0,new w(1,Pi,on)),ja+=Ya);var ko=on;for(++on;on<kr&&C.test(re[on]);++on);Kr.splice(ja,0,new w(2,ko,on)),ja+=Ya,Pi=on}else++on;Pi<kr&&Kr.splice(ja,0,new w(1,Pi,kr))}return W=="ltr"&&(Kr[0].level==1&&(Bi=E.match(/^\s+/))&&(Kr[0].from=Bi[0].length,Kr.unshift(new w(0,0,Bi[0].length))),je(Kr).level==1&&(Bi=E.match(/\s+$/))&&(je(Kr).to-=Bi[0].length,Kr.push(new w(0,ie-Bi[0].length,ie)))),W=="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=Ae(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)Ae(l,i[o])==-1&&l.push(i[o])}function ur(t,i){return en(t,i).length>0}function jt(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 Mr(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 z(t),!l||l.left==l.right?!1:Or=o.right-l.right<3}var Pr=`
|
|
19
|
+
`)}}).get()}});var Hf=/%20/g,Xf=/#.*$/,jf=/([?&])_=[^&]*/,wl=/^(.*?):[ \t]*([^\r\n]*)$/mg,Vs=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pf=/^(?:GET|HEAD)$/,Qs=/^\/\//,Sl={},oa={},Da="*/".concat("*"),Ga=A.createElement("a");Ga.href=aa.href;function Rl(d){return function(p,v){typeof p!="string"&&(v=p,p="*");var T,S=0,R=p.toLowerCase().match(_e)||[];if(U(v))for(;T=R[S++];)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 S={},R=d===oa;function B(Y){var J;return S[Y]=!0,m.each(d[Y]||[],function(ne,ce){var be=ce(p,v,T);if(typeof be=="string"&&!R&&!S[be])return p.dataTypes.unshift(be),B(be),!1;if(R)return!(J=be)}),J}return B(p.dataTypes[0])||!S["*"]&&B("*")}function la(d,p){var v,T,S=m.ajaxSettings.flatOptions||{};for(v in p)p[v]!==void 0&&((S[v]?d:T||(T={}))[v]=p[v]);return T&&m.extend(!0,d,T),d}function Jf(d,p,v){for(var T,S,R,B,Y=d.contents,J=d.dataTypes;J[0]==="*";)J.shift(),T===void 0&&(T=d.mimeType||p.getResponseHeader("Content-Type"));if(T){for(S in Y)if(Y[S]&&Y[S].test(T)){J.unshift(S);break}}if(J[0]in v)R=J[0];else{for(S in v){if(!J[0]||d.converters[S+" "+J[0]]){R=S;break}B||(B=S)}R=R||B}if(R)return R!==J[0]&&J.unshift(R),v[R]}function Hs(d,p,v,T){var S,R,B,Y,J,ne={},ce=d.dataTypes.slice();if(ce[1])for(B in d.converters)ne[B.toLowerCase()]=d.converters[B];for(R=ce.shift();R;)if(d.responseFields[R]&&(v[d.responseFields[R]]=p),!J&&T&&d.dataFilter&&(p=d.dataFilter(p,d.dataType)),J=R,R=ce.shift(),R){if(R==="*")R=J;else if(J!=="*"&&J!==R){if(B=ne[J+" "+R]||ne["* "+R],!B){for(S in ne)if(Y=S.split(" "),Y[1]===R&&(B=ne[J+" "+Y[0]]||ne["* "+Y[0]],B)){B===!0?B=ne[S]:ne[S]!==!0&&(R=Y[0],ce.unshift(Y[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 "+J+" to "+R}}}}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:{"*":Da,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:Rl(Sl),ajaxTransport:Rl(oa),ajax:function(d,p){typeof d=="object"&&(p=d,d=void 0),p=p||{};var v,T,S,R,B,Y,J,ne,ce,be,le=m.ajaxSetup({},p),Re=le.context||le,ft=le.context&&(Re.nodeType||Re.jquery)?m(Re):m.event,Nt=m.Deferred(),vt=m.Callbacks("once memory"),gr=le.statusCode||{},zt={},Jn={},Yn="canceled",Rt={readyState:0,getResponseHeader:function(rt){var ar;if(J){if(!R)for(R={};ar=wl.exec(S);)R[ar[1].toLowerCase()+" "]=(R[ar[1].toLowerCase()+" "]||[]).concat(ar[2]);ar=R[rt.toLowerCase()+" "]}return ar==null?null:ar.join(", ")},getAllResponseHeaders:function(){return J?S:null},setRequestHeader:function(rt,ar){return J==null&&(rt=Jn[rt.toLowerCase()]=Jn[rt.toLowerCase()]||rt,zt[rt]=ar),this},overrideMimeType:function(rt){return J==null&&(le.mimeType=rt),this},statusCode:function(rt){var ar;if(rt)if(J)Rt.always(rt[Rt.status]);else for(ar in rt)gr[ar]=[gr[ar],rt[ar]];return this},abort:function(rt){var ar=rt||Yn;return v&&v.abort(ar),On(0,ar),this}};if(Nt.promise(Rt),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){Y=A.createElement("a");try{Y.href=le.url,Y.href=Y.href,le.crossDomain=Ga.protocol+"//"+Ga.host!=Y.protocol+"//"+Y.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=m.param(le.data,le.traditional)),El(Sl,le,p,Rt),J)return Rt;ne=m.event&&le.global,ne&&m.active++===0&&m.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!Pf.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)?"&":"?")+"_="+Ms.guid+++be),le.url=T+be),le.ifModified&&(m.lastModified[T]&&Rt.setRequestHeader("If-Modified-Since",m.lastModified[T]),m.etag[T]&&Rt.setRequestHeader("If-None-Match",m.etag[T])),(le.data&&le.hasContent&&le.contentType!==!1||p.contentType)&&Rt.setRequestHeader("Content-Type",le.contentType),Rt.setRequestHeader("Accept",le.dataTypes[0]&&le.accepts[le.dataTypes[0]]?le.accepts[le.dataTypes[0]]+(le.dataTypes[0]!=="*"?", "+Da+"; q=0.01":""):le.accepts["*"]);for(ce in le.headers)Rt.setRequestHeader(ce,le.headers[ce]);if(le.beforeSend&&(le.beforeSend.call(Re,Rt,le)===!1||J))return Rt.abort();if(Yn="abort",vt.add(le.complete),Rt.done(le.success),Rt.fail(le.error),v=El(oa,le,p,Rt),!v)On(-1,"No Transport");else{if(Rt.readyState=1,ne&&ft.trigger("ajaxSend",[Rt,le]),J)return Rt;le.async&&le.timeout>0&&(B=e.setTimeout(function(){Rt.abort("timeout")},le.timeout));try{J=!1,v.send(zt,On)}catch(rt){if(J)throw rt;On(-1,rt)}}function On(rt,ar,sa,Vi){var zn,ua,qn,Kn,vi,Sn=ar;J||(J=!0,B&&e.clearTimeout(B),v=void 0,S=Vi||"",Rt.readyState=rt>0?4:0,zn=rt>=200&&rt<300||rt===304,sa&&(Kn=Jf(le,Rt,sa)),!zn&&m.inArray("script",le.dataTypes)>-1&&m.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),Kn=Hs(le,Kn,Rt,zn),zn?(le.ifModified&&(vi=Rt.getResponseHeader("Last-Modified"),vi&&(m.lastModified[T]=vi),vi=Rt.getResponseHeader("etag"),vi&&(m.etag[T]=vi)),rt===204||le.type==="HEAD"?Sn="nocontent":rt===304?Sn="notmodified":(Sn=Kn.state,ua=Kn.data,qn=Kn.error,zn=!qn)):(qn=Sn,(rt||!Sn)&&(Sn="error",rt<0&&(rt=0))),Rt.status=rt,Rt.statusText=(ar||Sn)+"",zn?Nt.resolveWith(Re,[ua,Sn,Rt]):Nt.rejectWith(Re,[Rt,Sn,qn]),Rt.statusCode(gr),gr=void 0,ne&&ft.trigger(zn?"ajaxSuccess":"ajaxError",[Rt,le,zn?ua:qn]),vt.fireWith(Re,[Rt,Sn]),ne&&(ft.trigger("ajaxComplete",[Rt,le]),--m.active||m.event.trigger("ajaxStop")))}return Rt},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,S,R){return U(T)&&(R=R||S,S=T,T=void 0),m.ajax(m.extend({url:v,type:p,dataType:R,data:T,success:S},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,S){var R,B=d.xhr();if(B.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(R in d.xhrFields)B[R]=d.xhrFields[R];d.mimeType&&B.overrideMimeType&&B.overrideMimeType(d.mimeType),!d.crossDomain&&!T["X-Requested-With"]&&(T["X-Requested-With"]="XMLHttpRequest");for(R in T)B.setRequestHeader(R,T[R]);p=function(Y){return function(){p&&(p=v=B.onload=B.onerror=B.onabort=B.ontimeout=B.onreadystatechange=null,Y==="abort"?B.abort():Y==="error"?typeof B.status!="number"?S(0,"error"):S(B.status,B.statusText):S(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(Y){if(p)throw Y}},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,S){p=m("<script>").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",v=function(R){p.remove(),v=null,R&&S(R.type==="error"?404:200,R.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+"_"+Ms.guid++;return this[d]=!0,d}}),m.ajaxPrefilter("json jsonp",function(d,p,v){var T,S,R,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 R||m.error(T+" was not called"),R[0]},d.dataTypes[0]="json",S=e[T],e[T]=function(){R=arguments},v.always(function(){S===void 0?m(e).removeProp(T):e[T]=S,d[T]&&(d.jsonpCallback=p.jsonpCallback,Xs.push(T)),R&&U(S)&&S(R[0]),R=S=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,S,R;return p||(W.createHTMLDocument?(p=A.implementation.createHTMLDocument(""),T=p.createElement("base"),T.href=A.location.href,p.head.appendChild(T)):p=A),S=Ne.exec(d),R=!v&&[],S?[p.createElement(S[1])]:(S=kn([d],p,R),R&&R.length&&m(R).remove(),m.merge([],S.childNodes))},m.fn.load=function(d,p,v){var T,S,R,B=this,Y=d.indexOf(" ");return Y>-1&&(T=bi(d.slice(Y)),d=d.slice(0,Y)),U(p)?(v=p,p=void 0):p&&typeof p=="object"&&(S="POST"),B.length>0&&m.ajax({url:d,type:S||"GET",dataType:"html",data:p}).done(function(J){R=arguments,B.html(T?m("<div>").append(m.parseHTML(J)).find(T):J)}).always(v&&function(J,ne){B.each(function(){v.apply(this,R||[J.responseText,ne,J])})}),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,S,R,B,Y,J,ne,ce=m.css(d,"position"),be=m(d),le={};ce==="static"&&(d.style.position="relative"),Y=be.offset(),R=m.css(d,"top"),J=m.css(d,"left"),ne=(ce==="absolute"||ce==="fixed")&&(R+J).indexOf("auto")>-1,ne?(T=be.position(),B=T.top,S=T.left):(B=parseFloat(R)||0,S=parseFloat(J)||0),U(p)&&(p=p.call(d,v,m.extend({},Y))),p.top!=null&&(le.top=p.top-Y.top+B),p.left!=null&&(le.left=p.left-Y.left+S),"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(S){m.offset.setOffset(this,d,S)});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],S={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&&(S=m(d).offset(),S.top+=m.css(d,"borderTopWidth",!0),S.left+=m.css(d,"borderLeftWidth",!0))}return{top:p.top-S.top-m.css(T,"marginTop",!0),left:p.left-S.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(S,R,B){var Y;if(P(S)?Y=S:S.nodeType===9&&(Y=S.defaultView),B===void 0)return Y?Y[p]:S[R];Y?Y.scrollTo(v?Y.pageXOffset:B,v?B:Y.pageYOffset):S[R]=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(S,R){var B=arguments.length&&(v||typeof S!="boolean"),Y=v||(S===!0||R===!0?"margin":"border");return mt(this,function(J,ne,ce){var be;return P(J)?T.indexOf("outer")===0?J["inner"+d]:J.document.documentElement["client"+d]:J.nodeType===9?(be=J.documentElement,Math.max(J.body["scroll"+d],be["scroll"+d],J.body["offset"+d],be["offset"+d],be["client"+d])):ce===void 0?m.css(J,ne,Y):m.style(J,ne,ce,Y)},p,B?S: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,S;if(typeof p=="string"&&(v=d[p],p=d,d=v),!!U(d))return T=u.call(arguments,2),S=function(){return d.apply(p||this,T.concat(u.call(arguments)))},S.guid=d.guid=d.guid||m.guid++,S},m.holdReady=function(d){d?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=K,m.isFunction=U,m.isWindow=P,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(P){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(P)}function b(P,A){for(var k=0;k<A.length;k++){var $=A[k];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(P,F($.key),$)}}function x(P,A,k){return A&&b(P.prototype,A),k&&b(P,k),Object.defineProperty(P,"prototype",{writable:!1}),P}function _(P,A){if(!(P instanceof A))throw new TypeError("Cannot call a class as a function")}function I(P,A,k){return(A=F(A))in P?Object.defineProperty(P,A,{value:k,enumerable:!0,configurable:!0,writable:!0}):P[A]=k,P}function F(P){var A=function($,V){if(h($)!=="object"||$===null)return $;var G=$[Symbol.toPrimitive];if(G!==void 0){var ee=G.call($,V||"default");if(h(ee)!=="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)($)}(P,"string");return h(A)==="symbol"?A:String(A)}var D,W=(D=0,function(){return D++}),U=x(function P(A){var k=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,P),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 G=0,ee=0;ee<V.columnCnt;ee++)G+=V.columns[ee].w;for(var m=0;m<V.columnCnt;m++)V.columns[m].style.width=Math.round(1e3*V.columns[m].w/G)/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 G=V.target.parentNode.data,ee=k.tb,m=ee.grips[G.i],M=V.touches;if(m.ox=M?M[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[G.i].locked)for(var K,ue=0;ue<ee.columnCnt;ue++)(K=ee.columns[ue]).locked=!1,K.w=Number(window.getComputedStyle(K).width.replace(/px/,"")).valueOf();V.preventDefault()}),I(this,"onGripDrag",function(V){var G=k.grip;if(G){var ee=G.t,m=V.touches,M=(m?m[0].pageX:V.pageX)-G.ox+G.l,K=ee.opt.minWidth,ue=G.i,Te=1.5*ee.cellSpace+K+ee.borderSpace,z=ue===ee.columnCnt-1,he=ue?ee.grips[ue-1].offsetLeft+ee.cellSpace+K:Te,L=ee.opt.fixed?ue===ee.columnCnt-1?ee.tableWidth-Te:ee.grips[ue+1].offsetLeft-ee.cellSpace-K:1/0;if(M=Math.max(he,Math.min(L,M)),G.x=M,G.style.left=M+k.PX,z&&(G.w=ee.columns[ue].w+M-G.l),ee.opt.liveDrag){z?(ee.columns[ue].style.width=G.w+k.PX,!ee.opt.fixed&&ee.opt.overflow?ee.style.minWidth=ee.tableWidth+M-G.l+k.PX:ee.tableWidth=Number(window.getComputedStyle(ee).width.replace(/px/,"")).valueOf()):k.syncCols(ee,ue,!1,ee.opt),k.syncGrips();var xe=ee.opt.onDrag;xe&&xe(V)}V.preventDefault()}}),I(this,"onGripDragOver",function(V){var G=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),G){if(G.classList.remove(G.t.opt.draggingClass),G.x-G.l!=0){var m=G.t,M=m.opt.onResize,K=G.i;if(K===m.columnCnt-1){var ue=m.columns[K];ue.style.width=G.w+k.PX,ue.w=G.w}else k.syncCols(m,K,!0,m.opt);m.opt.fixed||k.applyBounds(),k.syncGrips(),M&&M(V),m.opt.serialize&&k.serializeStore()}k.grip=null}}),I(this,"init",function(V){if(V.disable)return k.destroy();var G=k.tb,ee=G.getAttribute(k.ID)||k.RESIZABLE+W();if(!G.matches("table")||G.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 M=".grip-handle .grip-resizable:hover{cursor:"+V.hoverCursor+"!important}";k.createStyle(m,M)}G.setAttribute(k.ID,ee);var K=G.opt;G.opt=k.extendOptions(V);var ue=k.getTableHeaders(G);if(k.extendTable(ue),V.remoteTable&&V.remoteTable.matches("table")){var Te=k.getTableHeaders(G.opt.remoteTable);ue.length===Te.length?k.extendRemoteTable(G.opt.remoteTable,Te,G):console.warn("column count for remote table did not match")}return K}),I(this,"applyBounds",function(){var V=k.tb,G=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=G[m];var M=Number(G[m].replace(/px/,"")).valueOf();ee.w=M,V.opt.currentWidths[m]=M}),V.classList.add(k.FLEX)}),I(this,"serializeStore",function(){var V=k.store,G=k.tb;V[G.getAttribute(k.ID)]="";for(var ee=0,m=0;m<G.columns.length;m++){var M=window.getComputedStyle(G.columns[m]).width.replace(/px/,"");V[G.getAttribute(k.ID)]+=M+";",ee+=Number(M).valueOf()}V[G.getAttribute(k.ID)]+=ee.toString(),G.opt.fixed||(V[G.getAttribute(k.ID)]+=";"+window.getComputedStyle(G).width.replace(/px/,""))}),I(this,"syncGrips",function(){var V=k.tb;V.gripContainer.style.width=V.tableWidth+k.PX;for(var G=0;G<V.columnCnt;G++){var ee=V.columns[G],m=ee.getBoundingClientRect(),M=V.getBoundingClientRect();V.grips[G].style.left=m.left-M.left+ee.offsetWidth+V.cellSpace/2+k.PX,V.grips[G].style.height=(V.opt.headerOnly?V.columns[0].offsetHeight:V.offsetHeight)+k.PX}}),I(this,"destroy",function(){var V=k.tb,G=V.getAttribute(k.ID);return G?(k.store[G]="",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,G){var ee=c()(G).toString(),m=V.querySelectorAll("style"),M=Array.from(m).filter(function(ue){return ue.gripid===ee});if(!M.length){var K=document.createElement("style");K.type="text/css",K.gripid=ee,K.styleSheet?K.styleSheet.cssText=G:K.appendChild(document.createTextNode(G)),V.appendChild(K)}}),I(this,"extendOptions",function(V){var G=Object.assign({},P.DEFAULTS,V);switch(G.fixed=!0,G.overflow=!1,G.resizeMode){case"flex":G.fixed=!1;break;case"overflow":G.fixed=!1,G.overflow=!0}return G}),I(this,"getTableHeaders",function(V){var G="#"+V.id,ee=Array.from(V.querySelectorAll(G+">thead>tr:nth-of-type(1)>th"));return(ee=ee.concat(Array.from(V.querySelectorAll(G+">thead>tr:nth-of-type(1)>td")))).length||(ee=(ee=(ee=(ee=Array.from(V.querySelectorAll(G+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(V.querySelectorAll(G+">tr:nth-of-type(1)>th")))).concat(Array.from(V.querySelectorAll(G+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(V.querySelectorAll(G+">tr:nth-of-type(1)>td")))),k.filterInvisible(ee,!1)}),I(this,"filterInvisible",function(V,G){return V.filter(function(ee){var m=G?-1:ee.offsetWidth,M=G?-1:ee.offsetHeight;return!(m===0&&M===0||ee.style&&ee.style.display&&window.getComputedStyle(ee).display==="none")})}),I(this,"extendTable",function(V){var G=k.tb;G.opt.removePadding&&G.classList.add("grip-padding"),G.classList.add(k.RESIZABLE),G.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),G.grips=[],G.columns=[],G.tableWidth=Number(window.getComputedStyle(G).width.replace(/px/,"")).valueOf(),G.gripContainer=G.previousElementSibling,G.opt.marginLeft&&(G.gripContainer.style.marginLeft=G.opt.marginLeft),G.opt.marginRight&&(G.gripContainer.style.marginRight=G.opt.marginRight),G.cellSpace=parseInt(k.legacyIE?G.cellSpacing||G.currentStyle.borderSpacing:window.getComputedStyle(G).borderSpacing.split(" ")[0].replace(/px/,""))||2,G.borderSpace=parseInt(k.legacyIE?G.border||G.currentStyle.borderLeftWidth:window.getComputedStyle(G).borderLeftWidth.replace(/px/,""))||1,G.extended=!0,k.createGrips(V)}),I(this,"extendRemoteTable",function(V,G,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=[],G.forEach(function(M,K){var ue=G[K];ue.w=ee.columns[K].w,ue.style.width=ue.w+k.PX,ue.removeAttribute("width"),V.columns.push(ue)}),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(M,K){M.removeAttribute("width"),M.style.width=ee.columnGrp[K].style.width}),ee.remote=V}),I(this,"createGrips",function(V){var G=k.tb;G.columnGrp=k.filterInvisible(Array.from(G.querySelectorAll("col")),!0),G.columnGrp.forEach(function(M){M.removeAttribute("width")}),G.columnCnt=V.length;var ee=!1;k.store[G.getAttribute(k.ID)]&&(k.deserializeStore(V),ee=!0),V.forEach(function(M,K){var ue=V[K],Te=G.opt.disabledColumns.indexOf(K)!==-1;k.createDiv(G.gripContainer,"grip-handle");var z=G.gripContainer.lastChild;!Te&&G.opt.gripInnerHtml&&(z.innerHTML=G.opt.gripInnerHtml),k.createDiv(z,k.RESIZABLE),K===G.columnCnt-1&&(z.classList.add("grip-lastgrip"),G.opt.fixed&&(z.innerHTML="")),z.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),z.addEventListener("mousedown",k.onGripMouseDown,!0),Te?z.classList.add("grip-disabledgrip"):(z.classList.remove("grip-disabledgrip"),z.addEventListener("touchstart",k.onGripMouseDown,{capture:!0,passive:!0}),z.addEventListener("mousedown",k.onGripMouseDown,!0)),z.t=G,z.i=K,G.opt.widths[K]?ue.w=G.opt.widths[K]:ue.w=ee?Number(ue.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(ue).width.replace(/px/,"")).valueOf(),G.opt.currentWidths[K]=ue.w,ue.style.width=ue.w+k.PX,ue.removeAttribute("width"),z.data={i:K,t:G.getAttribute(k.ID),last:K===G.columnCnt-1},G.grips.push(z),G.columns.push(ue)});var m=Array.from(G.querySelectorAll("td"));m.concat(Array.from(G.querySelectorAll("th"))),(m=(m=m.filter(function(M){for(var K=0;K<V.length;K++)if(V[K]===M)return!1;return!0})).filter(function(M){return!(M.querySelectorAll("table th").length||M.querySelectorAll("table td").length)})).forEach(function(M){M.removeAttribute("width")}),G.opt.fixed||(G.removeAttribute("width"),G.classList.add(k.FLEX)),k.syncGrips()}),I(this,"deserializeStore",function(V){var G=k.tb;if(G.columnGrp.forEach(function(K){K.removeAttribute("width")}),G.opt.flush)k.store[G.getAttribute(k.ID)]="";else{var ee=k.store[G.getAttribute(k.ID)].split(";"),m=ee[G.columnCnt+1];!G.opt.fixed&&m&&(G.style.width=m+k.PX,G.opt.overflow&&(G.style.minWidth=m+k.PX,G.tableWidth=Number(m).valueOf()));for(var M=0;M<G.columnCnt;M++)V[M].style.width=ee[M]+k.PX,G.columnGrp[M]&&(G.columnGrp[M].style.width=100*Number(ee[M]).valueOf()/Number(ee[G.columnCnt]).valueOf()+"%")}}),I(this,"createDiv",function(V,G,ee){var m=document.createElement("div");m.classList.add(G),ee&&(m.innerHTML=ee),V.appendChild(m)}),I(this,"syncCols",function(V,G,ee,m){var M=V.remote,K=k.grip.x-k.grip.l,ue=V.columns[G],Te=V.columns[G+1];if(ue&&Te){var z=ue.w+K,he=Te.w-K,L=z+k.PX;if(ue.style.width=L,V.columnGrp[G]&&V.columnGrp[G].style.width&&(V.columnGrp[G].style.width=L),M&&(M.columns[G].style.width=L,M.columnGrp[G]&&M.columnGrp[G].style.width&&(M.columnGrp[G].style.width=L)),m.fixed){var xe=he+k.PX;Te.style.width=xe,V.columnGrp[G+1]&&V.columnGrp[G+1].style.width&&(V.columnGrp[G+1].style.width=xe),M&&(M.columns[G+1].style.width=xe,M.columnGrp[G+1]&&M.columnGrp[G+1].style.width&&(M.columnGrp[G+1].style.width=xe))}else m.overflow&&(V.style.minWidth=V.tableWidth+K+k.PX);ee&&(ue.w=z,Te.w=m.fixed?he:Te.w,M&&(M.columns[G].w=z,M.columns[G+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($)});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],D=/Opera\//.test(e),W=/Apple Computer/.test(navigator.vendor),U=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),P=/PhantomJS/.test(e),A=W&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),k=/Android/.test(e),$=A||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),V=A||/Mac/.test(r),G=/\bCrOS\b/.test(e),ee=/win/i.test(r),m=D&&e.match(/Version\/(\d*\.\d*)/);m&&(m=Number(m[1])),m&&m>=15&&(D=!1,x=!0);var M=V&&(_||D&&(m==null||m<12.11)),K=n||h&&b>=9;function ue(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Te=function(t,i){var l=t.className,o=ue(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 z(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return z(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;ue(i).test(l)||(t.className+=(l?" ":"")+i)}function Ke(t,i){for(var l=t.split(" "),o=0;o<l.length;o++)l[o]&&!ue(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 St(t){return Ye(t.display.wrapper)}function Ye(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 De(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(Je(ut)+" ");return ut[t]}function Je(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&&De(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 Zt(t){return t.charCodeAt(0)>=768&&hr.test(t)}function xr(t,i,l){for(;(l<0?i>0:i<t.length)&&Zt(t.charAt(i));)i+=l;return i}function Pt(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,X){this.level=E,this.from=O,this.to=X}return function(E,O){var X=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,Se=X;ve<ie;++ve){var Ue=re[ve];Ue=="m"?re[ve]=Se:Se=Ue}for(var We=0,ke=X;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 Sr=0,hn=X;Sr<ie;++Sr){var Vr=re[Sr];hn=="L"&&Vr=="1"?re[Sr]="L":g.test(Vr)&&(hn=Vr)}for(var Er=0;Er<ie;++Er)if(s.test(re[Er])){var Rr=void 0;for(Rr=Er+1;Rr<ie&&s.test(re[Rr]);++Rr);for(var dr=(Er?re[Er-1]:X)=="L",pn=(Rr<ie?re[Rr]:X)=="L",Uo=dr==pn?dr?"L":"R":X,va=Er;va<Rr;++va)re[va]=Uo;Er=Rr-1}for(var Kr=[],Bi,kr=0;kr<ie;)if(y.test(re[kr])){var Sd=kr;for(++kr;kr<ie&&y.test(re[kr]);++kr);Kr.push(new w(0,Sd,kr))}else{var Pi=kr,Ja=Kr.length,Ya=O=="rtl"?1:0;for(++kr;kr<ie&&re[kr]!="L";++kr);for(var on=Pi;on<kr;)if(C.test(re[on])){Pi<on&&(Kr.splice(Ja,0,new w(1,Pi,on)),Ja+=Ya);var ko=on;for(++on;on<kr&&C.test(re[on]);++on);Kr.splice(Ja,0,new w(2,ko,on)),Ja+=Ya,Pi=on}else++on;Pi<kr&&Kr.splice(Ja,0,new w(1,Pi,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))),Je(Kr).level==1&&(Bi=E.match(/\s+$/))&&(Je(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 Jt(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 Dn=function(){if(h&&b<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}(),Gn;function pi(t){if(Gn==null){var i=L("span","\u200B");he(t,L("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Gn=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&b<8))}var l=Gn?L("span","\u200B"):L("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Or;function Mr(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 z(t),!l||l.left==l.right?!1:Or=o.right-l.right<3}var Pr=`
|
|
20
20
|
|
|
21
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},Ri=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 jr(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(q.hasOwnProperty(i.name)){var s=q[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 q={};function we(t,i){var l=q.hasOwnProperty(t)?q[t]:q[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 Yt(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=Ae(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 se(t,i,l){if(l===void 0&&(l=null),!(this instanceof se))return new se(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 Ct(t,i){return t.sticky==i.sticky&&Ee(t,i)==0}function ir(t){return se(t.line,t.ch)}function Yr(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 se(t.first,0);var l=t.first+t.size-1;return i.line>l?se(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?se(t.line,i):l<0?se(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,W){return s.push(E,W)},g,o);for(var y=l.state,C=function(E){l.baseTokens=s;var W=t.state.overlays[E],X=1,ie=0;l.state=!0,aa(t,i.text,W.mode,l,function(re,de){for(var ve=X;ie<re;){var _e=s[X];_e>re&&s.splice(X,1,re,s[X+1],_e),X+=2,ie=Math.min(re,_e)}if(de)if(W.opaque)s.splice(ve,X-ve,re,"overlay "+de),X=ve+2;else for(;ve<X;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=Ms(t,i,l),y=g>o.first&&De(o,g-1).stateAfter,C=y?Jn.fromSaved(o,y,g):new Jn(o,Yt(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 Ai=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),W;for(o&&(W=[]);(o||E.pos<i.ch)&&!E.eol();)E.start=E.pos,y=bi(g,E,w.state),o&&W.push(new Ai(E,y,Oe(s.mode,w.state)));return o?W:new Ai(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,W=new ht(i,t.options.tabSize,o),X,ie=t.options.addModeClass&&[null];for(i==""&&Os(Ws(l,o.state),g);!W.eol();){if(W.pos>t.options.maxHighlightLength?(C=!1,y&&xl(t,i,o,W.pos),W.pos=i.length,X=null):X=Os(bi(l,W,o.state,ie),g),ie){var re=ie[0].name;re&&(X="m-"+(X?re+" "+X:re))}if(!C||E!=X){for(;w<W.start;)w=Math.min(W.start,w+5e3),s(w,E);E=X}W.start=W.pos}for(;w<W.pos;){var de=Math.min(W.pos,w+5e3);s(de,E),w=de}}function Ms(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 W=He(w.text,null,t.options.tabSize);(s==null||o>W)&&(s=C-1,o=W)}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,Pn=!1;function Qf(){Cl=!0}function Zs(){Pn=!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,W=je(i.text).length+(E?s:0);if(C)for(var X=0;X<C.length;++X){var ie=C[X];if(ie.to==null){var re=ka(w,ie.marker);re?E&&(ie.to=re.to==null?null:re.to+W):ie.to=s}}if(w)for(var de=0;de<w.length;++de){var ve=w[de];if(ve.to!=null&&(ve.to+=W),ve.from==null){var _e=ka(C,ve.marker);_e||(ve.from=W,E&&(C||(C=[])).push(ve))}else ve.from+=W,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 Pf(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||Ae(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 W=[w,1],X=Ee(E.from,C.from),ie=Ee(E.to,C.to);(X<0||!y.inclusiveLeft&&!X)&&W.push({from:E.from,to:C.from}),(ie>0||!y.inclusiveRight&&!ie)&&W.push({from:C.to,to:E.to}),s.splice.apply(s,W),w+=W.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 _l(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=Pn&&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 jf(t,i){var l=Pn&&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=Pn&&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),W=Ee(E.from,l)||oa(w.marker)-oa(s),X=Ee(E.to,o)||Ga(w.marker)-Ga(s);if(!(W>=0&&X<=0||W<=0&&X>=0)&&(W<=0&&(w.marker.inclusiveRight&&s.inclusiveLeft?Ee(E.to,l)>=0:Ee(E.to,l)>0)||W>=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=Pn&&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&&Rl(t,i,o))return!0}}}function Rl(t,i,l){if(l.to==null){var o=l.marker.find(1,!0);return Rl(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)&&Rl(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,_l(this,i),this.height=l?l(this):1};T.prototype.lineNo=function(){return N(this)},jt(T);function _(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),_l(t,l);var s=o?o(t):1;s!=t.height&&Nr(t,s)}function S(t){t.parent=null,Qs(t)}var B={},Y={};function P(t,i){if(!t||/^\s*$/.test(t))return null;var l=i.addModeClass?Y: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,Mr(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);At(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,W;if(!w.test(i))t.col+=i.length,W=document.createTextNode(C),t.map.push(t.pos,t.pos+i.length,W),h&&b<9&&(E=!0),t.pos+=i.length;else{W=document.createDocumentFragment();for(var X=0;;){w.lastIndex=X;var ie=w.exec(i),re=ie?ie.index-X:i.length-X;if(re){var de=document.createTextNode(C.slice(X,X+re));h&&b<9?W.appendChild(L("span",[de])):W.appendChild(de),t.map.push(t.pos,t.pos+re,de),t.col+=re,t.pos+=re}if(!ie)break;X+=re+1;var ve=void 0;if(ie[0]==" "){var _e=t.cm.options.tabSize,Ue=_e-t.col%_e;ve=W.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=W.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?W.appendChild(L("span",[ve])):W.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",[W],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(W)}}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,W=E+o.length;;){for(var X=void 0,ie=0;ie<i.length&&(X=i[ie],!(X.to>E&&X.from<=E));ie++);if(X.to>=W)return t(l,o,s,g,y,C,w);t(l,o.slice(0,X.to-E),s,g,null,C,w),g=null,o=o.slice(X.to-E),E=X.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 At(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]),P(l[y+1],i.cm.options));return}for(var C=s.length,w=0,E=1,W="",X,ie,re=0,de,ve,_e,Ue,We;;){if(re==w){de=ve=_e=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&&(_e+=" "+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 An=Math.min(C,re);;){if(W){var cn=w+W.length;if(!Ue){var _r=cn>An?W.slice(0,An-w):W;i.addToken(i,_r,X?X+de:de,_e,w+_r.length==re?ve:"",ie,We)}if(cn>=An){W=W.slice(An-w),w=An;break}w=cn,_e=""}W=s.slice(g,g=l[E++]),X=P(l[E++],i.cm.options)}}}function vt(t,i,l){this.line=i,this.rest=Xs(i),this.size=this.rest?N(je(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 jn(t){zt?zt.ops.push(t):t.ownsGroup=zt={ops:[t],delayedCallbacks:[]}}function Yn(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 _t(t,i){var l=t.ownsGroup;if(l)try{Yn(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"&&_n(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,W=g.hasOwnProperty(E)&&g[E];W&&C.appendChild(L("div",[W],"CodeMirror-gutter-elt","left: "+o.gutterLeft[E]+"px; width: "+o.gutterWidth[E]+"px"))}}}function _n(t,i,l){i.alignable&&(i.alignable=null);for(var o=ue("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 Al(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"),Yf(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 Yf(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 Ma(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 Ps(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||(Ps(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 Za={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=Za;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 W=0;W<4;W++){for(;y&&Zt(i.line.text.charAt(s.coverStart+y));)--y;for(;s.coverStart+C<s.coverEnd&&Zt(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 X;t.options.lineWrapping&&(X=g.getClientRects()).length>1?E=X[o=="right"?X.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=Za}for(var re=E.top-i.rect.top,de=E.bottom-i.rect.top,ve=(re+de)/2,_e=i.view.measure.heights,Ue=0;Ue<_e.length-1&&!(ve<_e[Ue]);Ue++);var We=Ue?_e[Ue-1]:0,ke=_e[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 js(t){t.display.externalMeasure=null,z(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)To(t.display.view[i])}function Hi(t){js(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 Z(t){return I&&k?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function ee(t){var i=Wn(t),l=i.widgets,o=0;if(l)for(var s=0;s<l.length;++s)l[s].above&&(o+=Ma(l[s]));return o}function oe(t,i,l,o,s){if(!s){var g=ee(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:Z(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-=Z(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 Re(t,i,l,o,s,g){o=o||De(t.doc,i.line),s||(s=ti(t,o));function y(de,ve){var _e=un(t,s,de,ve?"right":"left",g);return ve?_e.left=_e.right:_e.right=_e.left,oe(t,o,_e,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 W(de,ve,_e){var Ue=C[ve],We=Ue.level==1;return y(_e?de-1:de,We!=_e)}var X=Tr(C,w,E),ie=sr,re=W(w,X,E=="before");return ie!=null&&(re.other=W(w,ie,E!="before")),re}function Ze(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 Pe(t,i,l,o,s){var g=se(t,i,l);return g.xRel=s,o&&(g.outside=o),g}function Me(t,i,l){var o=t.doc;if(l+=t.display.viewOffset,l<0)return Pe(o.first,0,null,-1,-1);var s=H(o,l),g=o.first+o.size-1;if(s>g)return Pe(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=It(t,y,s,i,l),w=jf(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-=ee(i);var s=i.text.length,g=Pt(function(y){return un(t,l,y-1).bottom<=o},s,0);return s=Pt(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 It(t,i,l,o,s){s-=d(i);var g=ti(t,i),y=ee(i),C=0,w=i.text.length,E=!0,W=at(i,t.doc.direction);if(W){var X=(t.options.lineWrapping?Ht:tt)(t,i,l,g,W,o,s);E=X.level!=1,C=E?X.from:X.to-1,w=E?X.to:X.from-1}var ie=null,re=null,de=Pt(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,_e,Ue=!1;if(re){var We=o-re.left<re.right-o,ke=We==E;de=ie+(ke?0:1),_e=ke?"after":"before",ve=We?re.left:re.right}else{!E&&(de==w||de==C)&&de++,_e=de==0?"after":de==i.text.length?"before":un(t,g,de-(E?1:0)).bottom+y<=s==E?"after":"before";var Ve=Re(t,se(l,de,_e),"line",i,g);ve=Ve.left,Ue=s<Ve.top?-1:s>=Ve.bottom?1:0}return de=xr(i.text,de,1),Pe(l,de,_e,Ue,o-ve)}function tt(t,i,l,o,s,g,y){var C=Pt(function(X){var ie=s[X],re=ie.level!=1;return dt(Re(t,se(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,W=Re(t,se(l,E?w.from:w.to,E?"after":"before"),"line",i,o);dt(W,g,y,!0)&&W.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 W=null,X=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,_e=ve<g?g-ve+1e9:ve-g;(!W||X>_e)&&(W=re,X=_e)}}return W||(W=s[s.length-1]),W.from<w&&(W={from:w,to:W.to,level:W.level}),W.to>E&&(W={from:W.from,to:E,level:W.level}),W}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),z(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 Zr(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=Zr(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=Me(t,g,y),E;if(o&&w.xRel>0&&(E=De(t.doc,w.line).text).length==w.ch){var W=He(E,E.length,t.options.tabSize)-E.length;w=se(w.line,Math.max(0,Math.round((g-Sn(t.display).left)/Fr(t.display))-W))}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)Pn&&Oa(t.doc,i)<s.viewTo&&ca(t);else if(l<=s.viewFrom)Pn&&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=Ys(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=Ys(t,i,i,-1);y?(s.view=s.view.slice(0,y.index),s.viewTo=y.lineN):ca(t)}else{var C=Ys(t,i,i,-1),w=Ys(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=[]);Ae(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 Ys(t,i,l,o){var s=Qa(t,i),g,y=t.display.view;if(!Pn||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 W=y(t,w);W&&Kf(t,W,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=Re(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 W(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;
|
|
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 Jr(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(q.hasOwnProperty(i.name)){var s=q[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 q={};function we(t,i){var l=q.hasOwnProperty(t)?q[t]:q[t]={};De(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 Yt(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 Ge(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 se(t,i,l){if(l===void 0&&(l=null),!(this instanceof se))return new se(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 se(t.line,t.ch)}function Yr(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 se(t.first,0);var l=t.first+t.size-1;return i.line>l?se(l,Ge(t,l).text.length):po(i,Ge(t,i.line).text.length)}function po(t,i){var l=t.ch;return l==null||l>i?se(t.line,i):l<0?se(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],X=1,ie=0;l.state=!0,aa(t,i.text,O.mode,l,function(re,de){for(var ve=X;ie<re;){var Se=s[X];Se>re&&s.splice(X,1,re,s[X+1],Se),X+=2,ie=Math.min(re,Se)}if(de)if(O.opaque)s.splice(ve,X-ve,re,"overlay "+de),X=ve+2;else for(;ve<X;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=Ms(t,i,l),y=g>o.first&&Ge(o,g-1).stateAfter,C=y?jn.fromSaved(o,y,g):new jn(o,Yt(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=Ge(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),X,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,X=null):X=Os(bi(l,O,o.state,ie),g),ie){var re=ie[0].name;re&&(X="m-"+(X?re+" "+X:re))}if(!C||E!=X){for(;w<O.start;)w=Math.min(O.start,w+5e3),s(w,E);E=X}O.start=O.pos}for(;w<O.pos;){var de=Math.min(O.pos,w+5e3);s(de,E),w=de}}function Ms(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=Ge(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=Ge(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,Pn=!1;function Qf(){Cl=!0}function Zs(){Pn=!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)&&Ge(t,i.from.line).markedSpans,o=pe(t,i.to.line)&&Ge(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=Je(i.text).length+(E?s:0);if(C)for(var X=0;X<C.length;++X){var ie=C[X];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 Se=ka(C,ve.marker);Se||(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 Pf(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],X=Ee(E.from,C.from),ie=Ee(E.to,C.to);(X<0||!y.inclusiveLeft&&!X)&&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 Sl(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 Da(t){return t.inclusiveRight?1:0}function Ga(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)||Da(t)-Da(i);return y||i.id-t.id}function Rl(t,i){var l=Pn&&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||Ga(o,s.marker)<0)&&(o=s.marker);return o}function El(t){return Rl(t,!0)}function la(t){return Rl(t,!1)}function Jf(t,i){var l=Pn&&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||Ga(o,g.marker)<0)&&(o=g.marker)}return o}function Hs(t,i,l,o,s){var g=Ge(t,i),y=Pn&&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),X=Ee(E.to,o)||Da(w.marker)-Da(s);if(!(O>=0&&X<=0||O<=0&&X>=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=Ge(t,i),o=Wn(l);return l==o?i:N(o)}function js(t,i){if(i>t.lastLine())return i;var l=Ge(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=Pn&&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=Ge(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,Sl(this,i),this.height=l?l(this):1};T.prototype.lineNo=function(){return N(this)},Jt(T);function S(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),Sl(t,l);var s=o?o(t):1;s!=t.height&&Nr(t,s)}function R(t){t.parent=null,Qs(t)}var B={},Y={};function J(t,i){if(!t||/^\s*$/.test(t))return null;var l=i.addModeClass?Y: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,Mr(t.display.measure)&&(y=at(g,t.doc.direction))&&(o.addToken=Re(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 X=0;;){w.lastIndex=X;var ie=w.exec(i),re=ie?ie.index-X:i.length-X;if(re){var de=document.createTextNode(C.slice(X,X+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;X+=re+1;var ve=void 0;if(ie[0]==" "){var Se=t.cm.options.tabSize,Ue=Se-t.col%Se;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 Re(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 X=void 0,ie=0;ie<i.length&&(X=i[ie],!(X.to>E&&X.from<=E));ie++);if(X.to>=O)return t(l,o,s,g,y,C,w);t(l,o.slice(0,X.to-E),s,g,null,C,w),g=null,o=o.slice(X.to-E),E=X.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]),J(l[y+1],i.cm.options));return}for(var C=s.length,w=0,E=1,O="",X,ie,re=0,de,ve,Se,Ue,We;;){if(re==w){de=ve=Se=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&&(Se+=" "+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||Ga(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 Sr=cn>_n?O.slice(0,_n-w):O;i.addToken(i,Sr,X?X+de:de,Se,w+Sr.length==re?ve:"",ie,We)}if(cn>=_n){O=O.slice(_n-w),w=_n;break}w=cn,Se=""}O=s.slice(g,g=l[E++]),X=J(l[E++],i.cm.options)}}}function vt(t,i,l){this.line=i,this.rest=Xs(i),this.size=this.rest?N(Je(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,Ge(t.doc,g),g);s=g+y.size,o.push(y)}return o}var zt=null;function Jn(t){zt?zt.ops.push(t):t.ownsGroup=zt={ops:[t],delayedCallbacks:[]}}function Yn(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 Rt(t,i){var l=t.ownsGroup;if(l)try{Yn(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"&&Sn(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 Sn(t,i,l){i.alignable&&(i.alignable=null);for(var o=ue("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"),Yf(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 Yf(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 Ma(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 Rn(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 Ps(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||(Ps(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 Za={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=Za;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&&Zt(i.line.text.charAt(s.coverStart+y));)--y;for(;s.coverStart+C<s.coverEnd&&Zt(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 X;t.options.lineWrapping&&(X=g.getClientRects()).length>1?E=X[o=="right"?X.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=Za}for(var re=E.top-i.rect.top,de=E.bottom-i.rect.top,ve=(re+de)/2,Se=i.view.measure.heights,Ue=0;Ue<Se.length-1&&!(ve<Se[Ue]);Ue++);var We=Ue?Se[Ue-1]:0,ke=Se[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 Js(t){t.display.externalMeasure=null,z(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)To(t.display.view[i])}function Hi(t){Js(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 Z(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+=Ma(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:Z(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-=Z(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=Ge(t.doc,i.line)),oe(t,o,xi(t,o,i.ch,s),l)}function Ae(t,i,l,o,s,g){o=o||Ge(t.doc,i.line),s||(s=ti(t,o));function y(de,ve){var Se=un(t,s,de,ve?"right":"left",g);return ve?Se.left=Se.right:Se.right=Se.left,oe(t,o,Se,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,Se){var Ue=C[ve],We=Ue.level==1;return y(Se?de-1:de,We!=Se)}var X=Tr(C,w,E),ie=sr,re=O(w,X,E=="before");return ie!=null&&(re.other=O(w,ie,E!="before")),re}function Ze(t,i){var l=0;i=ot(t.doc,i),t.options.lineWrapping||(l=Fr(t.display)*i.ch);var o=Ge(t.doc,i.line),s=d(o)+Ut(t.display);return{left:l,right:l,top:s,bottom:s+o.height}}function Pe(t,i,l,o,s){var g=se(t,i,l);return g.xRel=s,o&&(g.outside=o),g}function Me(t,i,l){var o=t.doc;if(l+=t.display.viewOffset,l<0)return Pe(o.first,0,null,-1,-1);var s=H(o,l),g=o.first+o.size-1;if(s>g)return Pe(o.first+o.size-1,Ge(o,g).text.length,null,1,1);i<0&&(i=0);for(var y=Ge(o,s);;){var C=wt(t,y,s,i,l),w=Jf(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=Ge(o,s=E.line)}}function xt(t,i,l,o){o-=te(i);var s=i.text.length,g=Pt(function(y){return un(t,l,y-1).bottom<=o},s,0);return s=Pt(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 X=(t.options.lineWrapping?Ht:tt)(t,i,l,g,O,o,s);E=X.level!=1,C=E?X.from:X.to-1,w=E?X.to:X.from-1}var ie=null,re=null,de=Pt(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,Se,Ue=!1;if(re){var We=o-re.left<re.right-o,ke=We==E;de=ie+(ke?0:1),Se=ke?"after":"before",ve=We?re.left:re.right}else{!E&&(de==w||de==C)&&de++,Se=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,se(l,de,Se),"line",i,g);ve=Ve.left,Ue=s<Ve.top?-1:s>=Ve.bottom?1:0}return de=xr(i.text,de,1),Pe(l,de,Se,Ue,o-ve)}function tt(t,i,l,o,s,g,y){var C=Pt(function(X){var ie=s[X],re=ie.level!=1;return dt(Ae(t,se(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,se(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,X=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,Se=ve<g?g-ve+1e9:ve-g;(!O||X>Se)&&(O=re,X=Se)}}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),z(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 Zr(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=Zr(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=Me(t,g,y),E;if(o&&w.xRel>0&&(E=Ge(t.doc,w.line).text).length==w.ch){var O=He(E,E.length,t.options.tabSize)-E.length;w=se(w.line,Math.max(0,Math.round((g-Rn(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)Pn&&Oa(t.doc,i)<s.viewTo&&ca(t);else if(l<=s.viewFrom)Pn&&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=Ys(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=Ys(t,i,i,-1);y?(s.view=s.view.slice(0,y.index),s.viewTo=y.lineN):ca(t)}else{var C=Ys(t,i,i,-1),w=Ys(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 Ys(t,i,l,o){var s=Qa(t,i),g,y=t.display.view;if(!Pn||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=Rn(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
24
|
top: `+Ve+"px; width: "+(et??w-ke)+`px;
|
|
25
|
-
height: `+(qe-Ve)+"px"))}function X(ke,Ve,et){var qe=
|
|
25
|
+
height: `+(qe-Ve)+"px"))}function X(ke,Ve,et){var qe=Ge(s,ke),yt=qe.text.length,Xt,Ur;function or(Sr,hn){return me(t,se(ke,Sr),"div",qe,hn)}function _n(Sr,hn,Vr){var Er=it(t,qe,null,Sr),Rr=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,Rr)[Rr]}var cn=at(qe,s.direction);return rr(cn,Ve||0,et??yt,function(Sr,hn,Vr,Er){var Rr=Vr=="ltr",dr=or(Sr,Rr?"left":"right"),pn=or(hn-1,Rr?"right":"left"),Uo=Ve==null&&Sr==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,Sd=(E?va:Uo)&&Bi,Pi=kr?C:(Rr?dr:pn).left,Ja=Sd?w:(Rr?pn:dr).right;O(Pi,dr.top,Ja-Pi,dr.bottom)}else{var Ya,on,ko,Rd;Rr?(Ya=E&&Uo&&Kr?C:dr.left,on=E?w:_n(Sr,Vr,"before"),ko=E?C:_n(hn,Vr,"after"),Rd=E&&va&&Bi?w:pn.right):(Ya=E?_n(Sr,Vr,"before"):C,on=!E&&Uo&&Kr?w:dr.right,ko=!E&&va&&Bi?C:pn.left,Rd=E?_n(hn,Vr,"after"):w),O(Ya,dr.top,on-Ya,dr.bottom),dr.bottom<pn.top&&O(C,dr.bottom,null,pn.top),O(ko,pn.top,Rd-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)X(ie.line,ie.ch,re.ch);else{var de=Ge(s,ie.line),ve=Ge(s,re.line),Se=Wn(de)==Wn(ve),Ue=X(ie.line,ie.ch,Se?de.text.length+1:null).end,We=X(re.line,Se?0:null,re.ch).start;Se&&(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 X=C.node.offsetTop+C.node.offsetHeight;E=X-l,l=X}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(Ge(i,C))+t.wrapper.clientHeight)):Math.min(w,i.lastLine())>=y&&(g=H(i,d(Ge(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&&!P){var y=L("div","\u200B",null,`position: absolute;
|
|
26
26
|
top: `+(i.top-l.viewOffset-Ut(t.display))+`px;
|
|
27
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"?se(i.line,i.ch+1,"before"):i,i=i.ch?se(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,C=Re(t,i),w=!l||l==i?C:Re(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),W=t.doc.scrollTop,X=t.doc.scrollLeft;if(E.scrollTop!=null&&(Gl(t,E.scrollTop),Math.abs(t.doc.scrollTop-W)>1&&(y=!0)),E.scrollLeft!=null&&(Ha(t,E.scrollLeft),Math.abs(t.doc.scrollLeft-X)>1&&(y=!0)),!y)break}return s}function Py(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 W=Math.min(i.top,(E?C:i.bottom)-g);W!=s&&(y.scrollTop=W)}var X=t.options.fixedGutter?0:l.gutters.offsetWidth,ie=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:l.scroller.scrollLeft-X,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+X-(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 jy(t,i){$s(t),t.curOp.scrollToPos=i}function $s(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var l=Ze(t,i.from),o=Ze(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 Yy=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:++Yy,markArrays:null},jn(t.curOp)}function Pa(t){var i=t.curOp;i&&_t(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(wt(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 Rn(t,i){if(t.curOp)return i();Ja(t);try{return i()}finally{Pa(t)}}function Lr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Ja(t);try{return i.apply(t,arguments)}finally{Pa(t)}}}function an(t){return function(){if(this.curOp)return t.apply(this,arguments);Ja(this);try{return t.apply(this,arguments)}finally{Pa(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{Pa(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,W=w.classes;W?g.styleClasses=W:E&&(g.styleClasses=null);for(var X=!y||y.length!=g.styles.length||E!=W&&(!E||!W||E.bgClass!=W.bgClass||E.textClass!=W.textClass),ie=0;!X&&ie<y.length;++ie)X=y[ie]!=g.styles[ie];X&&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&&Rn(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(wt(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(Ye(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)),Pn&&(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),z(l.cursorDiv),z(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,W=0;W<w.length;W++){var X=w[W];if(!X.hidden)if(!X.node||X.node.parentNode!=g){var ie=Al(t,X,E,l);g.insertBefore(ie,y)}else{for(;y!=X.node;)y=C(y);var re=s&&i!=null&&i<=E&&X.lineNumber;X.changes&&(Ae(X.changes,"gutter")>-1&&(re=!1),sa(t,X,E,l)),re&&(z(X.lineNumber),X.lineNumber.appendChild(document.createTextNode(Ce(t.options,E)))),y=X.node.nextSibling}E+=X.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;z(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 Ml(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&&te)&&(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:O&&(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 W=i.target,X=y.view;W!=C;W=W.parentNode)for(var ie=0;ie<X.length;ie++)if(X[ie].node==W){t.display.currentWheelTarget=W;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 _e=C.scrollLeft-y.wheelStartX,Ue=C.scrollTop-y.wheelStartY,We=Ue&&y.wheelDY&&Ue/y.wheelDY||_e&&y.wheelDX&&_e/y.wheelDX;y.wheelStartX=y.wheelStartY=null,We&&(Xi=(Xi*tu+We)/(tu+1),++tu)}},200)):(y.wheelDX+=o,y.wheelDY+=s))}}var Mn=function(t,i){this.ranges=t,this.primIndex=i};Mn.prototype.primary=function(){return this.ranges[this.primIndex]},Mn.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(!Ct(l.anchor,o.anchor)||!Ct(l.head,o.head))return!1}return!0},Mn.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 Mn(t,this.primIndex)},Mn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Mn.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 Yr(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=Ae(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()),W=Yr(C.to(),y.to()),X=C.empty()?y.from()==y.head:C.from()==C.head;g<=l&&--l,i.splice(--g,2,new Gt(X?W:E,X?E:W))}}return new Mn(i,l)}function ha(t,i){return new Mn([new Gt(t,i||t)],0)}function pa(t){return t.text?se(t.from.line+t.text.length-1,je(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),se(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 _h(t,i,l){return t.line==i.line?se(l.line,t.ch-i.ch+l.ch):se(l.line+(t.line-i.line),t.ch)}function ux(t,i,l){for(var o=[],s=se(t.first,0),g=s,y=0;y<i.length;y++){var C=i[y],w=_h(C.from,s,g),E=_h(pa(C),s,g);if(s=C.to,g=E,l=="around"){var W=t.sel.ranges[y],X=Ee(W.head,W.anchor)<0;o[y]=new Gt(X?E:w,X?w:E)}else o[y]=new Gt(w,w)}return new Mn(o,t.sel.primIndex)}function fd(t){t.doc.mode=Xe(t.options,t.doc.modeOption),Zl(t)}function Zl(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&&je(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){_(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,W=De(t,C.line),X=De(t,w.line),ie=je(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(X,X.text,re),de&&t.remove(C.line,de),ve.length&&t.insert(C.line,ve)}else if(W==X)if(E.length==1)g(W,W.text.slice(0,C.ch)+ie+W.text.slice(w.ch),re);else{var _e=y(1,E.length-1);_e.push(new T(ie+W.text.slice(w.ch),re,o)),g(W,W.text.slice(0,C.ch)+E[0],s(0)),t.insert(C.line+1,_e)}else if(E.length==1)g(W,W.text.slice(0,C.ch)+E[0]+X.text.slice(w.ch),s(0)),t.remove(C.line+1,de);else{g(W,W.text.slice(0,C.ch)+E[0],s(0)),g(X,ie+X.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),Rh(t),t.options.direction=i.direction,t.options.lineWrapping||v(t),t.options.mode=i.modeOption,fn(t)}function Rh(t){(t.doc.direction=="rtl"?nt:Te)(t.display.lineDiv,"CodeMirror-rtl")}function fx(t){Rn(t,function(){Rh(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 Ah(t){for(;t.length;){var i=je(t);if(i.ranges)t.pop();else break}}function dx(t,i){if(i)return Ah(t.done),je(t.done);if(t.done.length&&!je(t.done).ranges)return je(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),je(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=je(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=je(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,je(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&&Ah(s.undone)}function nu(t,i){var l=je(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 _o(t,i,l){for(var o=[],s=0;s<t.length;++s){var g=t[s];if(g.ranges){o.push(l?Mn.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],W=void 0;if(C.push({from:E.from,to:E.to,text:E.text}),i)for(var X in E)(W=X.match(/^spans_(\d+)$/))&&Ae(i,Number(W[1]))>-1&&(je(C)[X]=E[X],delete E[X])}}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 Mn([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=je(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,W="selectRight"in w?!w.selectRight:w.inclusiveRight;if((C.from==null||(E?C.from<=i.ch:C.from<i.ch))&&(C.to==null||(W?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 X=w.find(o<0?1:-1),ie=void 0;if((o<0?W:E)&&(X=Oh(t,X,-o,X&&X.line==i.line?g:null)),X&&X.line==i.line&&(ie=Ee(X,l))&&(o<0?ie<0:ie>0))return So(t,X,i,o,s)}var re=w.find(o<0?-1:1);return(o<0?E:W)&&(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,se(t.first,0))}function Oh(t,i,l,o){return l<0&&i.ch==0?i.line>t.first?ot(t,se(i.line-1)):null:l>0&&i.ch==(o||De(t,i.line)).text.length?i.line<t.first+t.size-1?se(i.line+1,0):null:new se(i.line,i.ch+l)}function Mh(t){t.setSelection(se(t.firstLine(),0),se(t.lastLine()),pt)}function Zh(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=Zh(t,i,!0),!i))){var o=Cl&&!l&&Pf(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&&Ae(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 W=[];nu(y,w),w.push({changes:W,generation:s.generation}),s.generation=g.generation||++s.maxGeneration;for(var X=ur(t,"beforeChange")||t.cm&&ur(t.cm,"beforeChange"),ie=function(ve){var _e=g.changes[ve];if(_e.origin=i,X&&!Zh(t,_e,!1))return C.length=0,{};W.push(cd(t,_e));var Ue=ve?ud(t,_e):je(C);Vl(t,_e,Ue,Lh(t,_e)),!ve&&t.cm&&t.cm.scrollIntoView({from:_e.from,to:pa(_e)});var We=[];ga(t,function(ke,Ve){!Ve&&Ae(We,ke.history)==-1&&(Jh(ke.history,_e),We.push(ke.history)),Vl(ke,_e,null,Lh(ke,_e))})},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 Mn(vr(t.sel.ranges,function(s){return new Gt(se(s.anchor.line+i,s.anchor.ch),se(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:se(t.first,0),to:se(i.to.line+s,i.to.ch),text:[je(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:se(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,se(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,Zr(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 W=ur(t,"changes"),X=ur(t,"change");if(X||W){var ie={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};X&&rt(t,"change",t,ie),W&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(ie)}t.display.selForContextMenu=null}function Ro(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=se(E.from.line+o,E.from.ch),E.to=se(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=Ae(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=Ma(this);Nr(l,Math.max(0,l.height-g)),t&&(Rn(t,function(){Ph(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=Ma(this)-i;s&&(Ni(this.doc,o)||Nr(o,o.height+s),l&&Rn(l,function(){l.curOp.forceUpdate=!0,Ph(l,o,s),rt(l,"lineWidgetChanged",l,t,N(o))}))},jt(Jl);function Ph(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+Ma(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 jh=0,ma=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++jh};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]),W=p(E);W>t.display.maxLineLength&&(t.display.maxLine=E,t.display.maxLineLength=W,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&&Pa(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=se(i?g:N(g),y.from),t==-1))return l;if(y.to!=null&&(o=se(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||Rn(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=Ma(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||Ae(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ma.prototype.detachLine=function(t){if(this.lines.splice(Ae(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},jt(ma);function Ao(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,Ao)(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");Zs()}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(X){w&&g.collapsed&&!w.options.lineWrapping&&Wn(X)==w.display.maxLine&&(E=!0),g.collapsed&&C!=i.line&&Nr(X,0),Hf(X,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(X){Ni(t,X)&&Nr(X,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=++jh,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 W=i.line;W<=l.line;W++)da(w,W,"text");g.atomic&&Dh(w.doc),rt(w,"markerAdded",w,g)}return g}var Pl=function(t,i){this.markers=t,this.primary=i;for(var l=0;l<t.length;++l)t[l].parent=this};Pl.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")}},Pl.prototype.find=function(t,i){return this.primary.find(t,i)},jt(Pl);function yx(t,i,l,o,s){o=Ge(o),o.shared=!1;var g=[Ao(t,i,l,o,s)],y=g[0],C=o.widgetNode;return ga(t,function(w){C&&(o.widgetNode=C.cloneNode(!0)),g.push(Ao(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=je(g)}),new Pl(g,y)}function Yh(t){return t.findMarks(se(t.first,0),t.clipPos(se(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=Ao(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];Ae(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=se(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=se(this.first,0),l=this.first+this.size-1;Eo(this,{from:i,to:se(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,Ro(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"?se(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:_o(this.history.done),undone:_o(this.history.undone)}},setHistory:function(t){var i=this.history=new ru(this.history);i.done=_o(t.done.slice(0),null,!0),i.undone=_o(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(ue(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(ue(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 Ao(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),Ao(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,se(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,Yh(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(Yh(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=_o(this.history.done,o),t.history.undone=_o(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):Pr(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&&Ae(i.options.allowDropFileTypes,re.type)==-1){C();return}var ve=new FileReader;ve.onerror=function(){return C()},ve.onload=function(){var _e=ve.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_e)){C();return}g[de]=_e,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 W=t.dataTransfer.getData("Text");if(W){var X;if(i.state.draggingText&&!i.state.draggingText.copy&&(X=i.listSelections()),au(i.doc,ha(l,l)),X)for(var ie=0;ie<X.length;++ie)Ro(i.doc,"",X[ie].anchor,X[ie].head,"drag");i.replaceSelection(W,"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&&!O)){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 _x(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(Rx)},100))}),Je(window,"blur",function(){return Kh(Co)})}function Rx(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"},jl=0;jl<10;jl++)ba[jl+48]=ba[jl+96]=String(jl);for(var su=65;su<=90;su++)ba[su]=String.fromCharCode(su);for(var Yl=1;Yl<=12;Yl++)ba[Yl+111]=ba[Yl+63235]="F"+Yl;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 Ax(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(" "),Ax),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),(M?i.metaKey:i.ctrlKey)&&o!="Ctrl"&&(t="Ctrl-"+t),(M?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,je(o).to)<=0;){var y=o.pop();if(Ee(y.from,g.from)<0){g.from=y.from;break}}o.push(g)}Rn(t,function(){for(var C=o.length-1;C>=0;C--)Ro(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 se(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?je(g):g[0],C=s<0==(y.level==1),w=C?"after":"before",E;if(y.level>0||i.doc.direction=="rtl"){var W=ti(i,l);E=s<0?l.text.length-1:0;var X=un(i,W,E).top;E=Pt(function(ie){return un(i,W,ie).top==X},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 se(o,E,w)}}return new se(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 se?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}},W=E(l.sticky=="before"?C(l,-1):l.ch);if(t.doc.direction=="rtl"||y.level==1){var X=y.level==1==o<0,ie=C(l,X?1:-1);if(ie!=null&&(X?ie<=y.to&&ie<=W.end:ie>=y.from&&ie>=W.begin)){var re=X?"before":"after";return new se(l.line,ie,re)}}var de=function(Ue,We,ke){for(var Ve=function(Xt,Ur){return Ur?new se(l.line,C(Xt,1),"before"):new se(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,W);if(ve)return ve;var _e=o>0?W.end:C(W.begin,-1);return _e!=null&&!(o>0&&_e==i.text.length)&&(ve=de(o>0?0:s.length-1,o,E(_e)),ve)?ve:null}var zl={selectAll:Mh,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:se(i.head.line+1,0)}:{from:i.head,to:se(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fo(t,function(i){return{from:se(i.from().line,0),to:ot(t.doc,se(i.to().line+1,0))}})},delLineLeft:function(t){return Fo(t,function(i){return{from:se(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(se(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(se(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 Rn(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 se(s.line,s.ch-1)),s.ch>0)s=new se(s.line,s.ch+1),t.replaceRange(g.charAt(s.ch-1)+g.charAt(s.ch-2),se(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 se(s.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+y.charAt(y.length-1),se(s.line-1,y.length-1),s,"+transpose"))}}l.push(new Gt(s,s))}t.setSelections(l)})},newlineAndIndent:function(t){return Rn(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 se(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)!=St}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(wt(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&&!Ri&&(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?Zx(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&&(K?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)!=St}finally{t.state.suppressEdits=!1}return C})}function Mx(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 Zx(t,i,l,o){h?setTimeout(Le(dh,t),0):t.curOp.focus=Fe(wt(t));var s=Mx(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&&!O||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(se(i.line,0),ot(t.doc,se(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 W=dp(t,l,o.unit);o.extend?y=hd(y,W.anchor,W.head,o.extend):y=W}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 Mn([y],0),st),w=g.sel);var X=l;function ie(ke){if(Ee(X,ke)!=0)if(X=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),An=Math.min(t.lastLine(),Math.max(l.line,ke.line));or<=An;or++){var cn=De(g,or).text,_r=Tt(cn,Xt,et);Xt==Ur?Ve.push(new Gt(se(or,_r),se(or,_r))):cn.length>_r&&Ve.push(new Gt(se(or,_r),se(or,Tt(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=Yr(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,X)!=0){t.curOp.focus=Fe(wt(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 _e(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)?_e(ke):ve(ke)}),We=Lr(t,_e);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 W=Tr(g,o.ch,o.sticky),X=W-y||(o.ch-l.ch)*(C.level==1?-1:1);W==w-1||W==w?E=X<0:E=X>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 se(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 W=H(t.doc,g),X=t.display.gutterSpecs[w];return Ft(t,l,t,W,X.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")||K||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){Zl(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 W=w.text.indexOf(s,E);if(W==-1)break;E=W+s.length,g.push(se(y,W))}y++});for(var C=g.length-1;C>=0;C--)Ro(o.doc,s,g[C],se(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",te?"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",!$),l("wholeLineUpdateBefore",!0),l("theme","default",function(o){pp(o),Ml(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,jx,!0),l("gutters",[],function(o,s){o.display.gutterSpecs=sd(s,o.options.lineNumbers),Ml(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),Ml(o)},!0),l("firstLineNumber",1,Ml,!0),l("lineNumberFormatter",function(o){return o},Ml,!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,Px),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,Zl,!0),l("addModeClass",!1,Zl,!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,Zl,!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 Px(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 jx(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&&!te&&g.input.focus(),h&&b<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Yx(this),Sx(),Ja(this),this.curOp.forceUpdate=!0,Eh(this,o),i.autofocus&&!te||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);Pa(this),x&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}$t.defaults=gp,$t.optionHandlers=du;function Yx(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 W=t.findWordAt(E);iu(t.doc,W.anchor,W.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 W=E.left-w.left,X=E.top-w.top;return W*W+X*X>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 W=t.coordsChar(i.activeTouch,"page"),X;!E.prev||y(E,E.prev)?X=new Gt(W,W):!E.prev.prev||y(E,E.prev.prev)?X=t.findWordAt(W):X=new Gt(se(W.line,0),ot(t.doc,se(W.line+1,0))),t.setSelection(X.anchor,X.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)||(_x(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],W;if(!o&&!/\S/.test(C.text))W=0,l="not";else if(l=="smart"&&(W=s.mode.indent(g,C.text.slice(E.length),C.text),W==St||W>150)){if(!o)return;l="prev"}l=="prev"?i>s.first?W=He(De(s,i-1).text,null,y):W=0:l=="add"?W=w+t.options.indentUnit:l=="subtract"?W=w-t.options.indentUnit:typeof l=="number"&&(W=w+l),W=Math.max(0,W);var X="",ie=0;if(t.options.indentWithTabs)for(var re=Math.floor(W/y);re;--re)ie+=y,X+=" ";if(ie<W&&(X+=mt(W-ie)),X!=E)return Ro(s,X,se(i,0),se(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 _e=se(i,E.length);pd(s,de,new Gt(_e,_e));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=Pr(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
|
|
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"?se(i.line,i.ch+1,"before"):i,i=i.ch?se(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,X=t.doc.scrollLeft;if(E.scrollTop!=null&&(Dl(t,E.scrollTop),Math.abs(t.doc.scrollTop-O)>1&&(y=!0)),E.scrollLeft!=null&&(Ha(t,E.scrollLeft),Math.abs(t.doc.scrollLeft-X)>1&&(y=!0)),!y)break}return s}function Py(t,i){var l=rd(t,i);l.scrollTop!=null&&Dl(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 X=t.options.fixedGutter?0:l.gutters.offsetWidth,ie=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:l.scroller.scrollLeft-X,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+X-(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 Jy(t,i){$s(t),t.curOp.scrollToPos=i}function $s(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var l=Ze(t,i.from),o=Ze(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 Dl(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 Gl(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=Gl(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,Gl(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):Dl(t,i)},t),t.display.scrollbars.addClass&&nt(t.display.wrapper,t.display.scrollbars.addClass)}var Yy=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:++Yy,markArrays:null},Jn(t.curOp)}function Pa(t){var i=t.curOp;i&&Rt(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=Gl(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(St(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{Pa(t)}}function Lr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);ja(t);try{return i.apply(t,arguments)}finally{Pa(t)}}}function an(t){return function(){if(this.curOp)return t.apply(this,arguments);ja(this);try{return t.apply(this,arguments)}finally{Pa(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{Pa(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 X=!y||y.length!=g.styles.length||E!=O&&(!E||!O||E.bgClass!=O.bgClass||E.textClass!=O.textClass),ie=0;!X&&ie<y.length;++ie)X=y[ie]!=g.styles[ie];X&&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(St(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(Ye(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)),Pn&&(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(Ge(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),z(l.cursorDiv),z(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=Gl(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=Gl(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 X=w[O];if(!X.hidden)if(!X.node||X.node.parentNode!=g){var ie=_l(t,X,E,l);g.insertBefore(ie,y)}else{for(;y!=X.node;)y=C(y);var re=s&&i!=null&&i<=E&&X.lineNumber;X.changes&&(_e(X.changes,"gutter")>-1&&(re=!1),sa(t,X,E,l)),re&&(z(X.lineNumber),X.lineNumber.appendChild(document.createTextNode(Ce(t.options,E)))),y=X.node.nextSibling}E+=X.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;z(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 Ml(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&&$)&&(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,X=y.view;O!=C;O=O.parentNode)for(var ie=0;ie<X.length;ie++)if(X[ie].node==O){t.display.currentWheelTarget=O;break e}}if(o&&!n&&!D&&g!=null){s&&E&&Dl(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 Se=C.scrollLeft-y.wheelStartX,Ue=C.scrollTop-y.wheelStartY,We=Ue&&y.wheelDY&&Ue/y.wheelDY||Se&&y.wheelDX&&Se/y.wheelDX;y.wheelStartX=y.wheelStartY=null,We&&(Xi=(Xi*tu+We)/(tu+1),++tu)}},200)):(y.wheelDX+=o,y.wheelDY+=s))}}var Mn=function(t,i){this.ranges=t,this.primIndex=i};Mn.prototype.primary=function(){return this.ranges[this.primIndex]},Mn.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},Mn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Dt(ir(this.ranges[i].anchor),ir(this.ranges[i].head));return new Mn(t,this.primIndex)},Mn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Mn.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 Dt=function(t,i){this.anchor=t,this.head=i};Dt.prototype.from=function(){return ia(this.anchor,this.head)},Dt.prototype.to=function(){return Yr(this.anchor,this.head)},Dt.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=Yr(C.to(),y.to()),X=C.empty()?y.from()==y.head:C.from()==C.head;g<=l&&--l,i.splice(--g,2,new Dt(X?O:E,X?E:O))}}return new Mn(i,l)}function ha(t,i){return new Mn([new Dt(t,i||t)],0)}function pa(t){return t.text?se(t.from.line+t.text.length-1,Je(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),se(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 Dt(wh(s.anchor,i),wh(s.head,i)))}return Ti(t.cm,l,t.sel.primIndex)}function Sh(t,i,l){return t.line==i.line?se(l.line,t.ch-i.ch+l.ch):se(l.line+(t.line-i.line),t.ch)}function ux(t,i,l){for(var o=[],s=se(t.first,0),g=s,y=0;y<i.length;y++){var C=i[y],w=Sh(C.from,s,g),E=Sh(pa(C),s,g);if(s=C.to,g=E,l=="around"){var O=t.sel.ranges[y],X=Ee(O.head,O.anchor)<0;o[y]=new Dt(X?E:w,X?w:E)}else o[y]=new Dt(w,w)}return new Mn(o,t.sel.primIndex)}function fd(t){t.doc.mode=Xe(t.options,t.doc.modeOption),Zl(t)}function Zl(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 Rh(t,i){return i.from.ch==0&&i.to.ch==0&&Je(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){S(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=Ge(t,C.line),X=Ge(t,w.line),ie=Je(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(Rh(t,i)){var ve=y(0,E.length-1);g(X,X.text,re),de&&t.remove(C.line,de),ve.length&&t.insert(C.line,ve)}else if(O==X)if(E.length==1)g(O,O.text.slice(0,C.ch)+ie+O.text.slice(w.ch),re);else{var Se=y(1,E.length-1);Se.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,Se)}else if(E.length==1)g(O,O.text.slice(0,C.ch)+E[0]+X.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(X,ie+X.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=Je(t);if(i.ranges)t.pop();else break}}function dx(t,i){if(i)return _h(t.done),Je(t.done);if(t.done.length&&!Je(t.done).ranges)return Je(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Je(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=Je(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=Je(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,Je(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=Je(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 So(t,i,l){for(var o=[],s=0;s<t.length;++s){var g=t[s];if(g.ranges){o.push(l?Mn.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 X in E)(O=X.match(/^spans_(\d+)$/))&&_e(i,Number(O[1]))>-1&&(Je(C)[X]=E[X],delete E[X])}}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 Dt(s,i)}else return new Dt(l||i,i)}function iu(t,i,l,o,s){s==null&&(s=t.cm&&(t.cm.display.shift||t.extend)),qr(t,new Mn([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 Dt(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=Je(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);Dh(t,Wh(t,i,o,!0)),!(l&&l.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Io(t.cm)}function Dh(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 Gh(t){Dh(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 Dt(w,E))}return s?Ti(t.cm,s,i.primIndex):i}function Ro(t,i,l,o,s){var g=Ge(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 X=w.find(o<0?1:-1),ie=void 0;if((o<0?O:E)&&(X=Oh(t,X,-o,X&&X.line==i.line?g:null)),X&&X.line==i.line&&(ie=Ee(X,l))&&(o<0?ie<0:ie>0))return Ro(t,X,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?Ro(t,re,i,o,s):null}}return i}function ou(t,i,l,o,s){var g=o||1,y=Ro(t,i,l,g,s)||!s&&Ro(t,i,l,g,!0)||Ro(t,i,l,-g,s)||!s&&Ro(t,i,l,-g,!0);return y||(t.cantEdit=!0,se(t.first,0))}function Oh(t,i,l,o){return l<0&&i.ch==0?i.line>t.first?ot(t,se(i.line-1)):null:l>0&&i.ch==(o||Ge(t,i.line)).text.length?i.line<t.first+t.size-1?se(i.line+1,0):null:new se(i.line,i.ch+l)}function Mh(t){t.setSelection(se(t.firstLine(),0),se(t.lastLine()),pt)}function Zh(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=Zh(t,i,!0),!i))){var o=Cl&&!l&&Pf(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 X=ur(t,"beforeChange")||t.cm&&ur(t.cm,"beforeChange"),ie=function(ve){var Se=g.changes[ve];if(Se.origin=i,X&&!Zh(t,Se,!1))return C.length=0,{};O.push(cd(t,Se));var Ue=ve?ud(t,Se):Je(C);Vl(t,Se,Ue,Lh(t,Se)),!ve&&t.cm&&t.cm.scrollIntoView({from:Se.from,to:pa(Se)});var We=[];ga(t,function(ke,Ve){!Ve&&_e(We,ke.history)==-1&&(jh(ke.history,Se),We.push(ke.history)),Vl(ke,Se,null,Lh(ke,Se))})},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 Mn(vr(t.sel.ranges,function(s){return new Dt(se(s.anchor.line+i,s.anchor.ch),se(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:se(t.first,0),to:se(i.to.line+s,i.to.ch),text:[Je(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:se(g,Ge(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,se(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(Ge(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,Zr(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&&!Rh(t.doc,i)?da(t,g.line,"text"):fn(t,g.line,y.line+1,E);var O=ur(t,"changes"),X=ur(t,"change");if(X||O){var ie={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};X&&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=se(E.from.line+o,E.from.ch),E.to=se(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=Ge(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,R(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=Ma(this);Nr(l,Math.max(0,l.height-g)),t&&(An(t,function(){Ph(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=Ma(this)-i;s&&(Ni(this.doc,o)||Nr(o,o.height+s),l&&An(l,function(){l.curOp.forceUpdate=!0,Ph(l,o,s),rt(l,"lineWidgetChanged",l,t,N(o))}))},Jt(jl);function Ph(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+Ma(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 Jh=0,ma=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Jh};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&&Gh(t.doc)),t&&rt(t,"markerCleared",t,this,o,s),i&&Pa(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=se(i?g:N(g),y.from),t==-1))return l;if(y.to!=null&&(o=se(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=Ma(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)}},Jt(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&&De(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");Zs()}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(X){w&&g.collapsed&&!w.options.lineWrapping&&Wn(X)==w.display.maxLine&&(E=!0),g.collapsed&&C!=i.line&&Nr(X,0),Hf(X,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(X){Ni(t,X)&&Nr(X,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=++Jh,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&&Gh(w.doc),rt(w,"markerAdded",w,g)}return g}var Pl=function(t,i){this.markers=t,this.primary=i;for(var l=0;l<t.length;++l)t[l].parent=this};Pl.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")}},Pl.prototype.find=function(t,i){return this.primary.find(t,i)},Jt(Pl);function yx(t,i,l,o,s){o=De(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=Je(g)}),new Pl(g,y)}function Yh(t){return t.findMarks(se(t.first,0),t.clipPos(se(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=se(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=se(this.first,0),l=this.first+this.size-1;Eo(this,{from:i,to:se(l,Ge(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 Ge(this,t)},getLineNumber:function(t){return N(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Ge(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"?se(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 Dt(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 Dt(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:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(t){var i=this.history=new ru(this.history);i.done=So(t.done.slice(0),null,!0),i.undone=So(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=Ge(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(ue(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(ue(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=Ge(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,se(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,Yh(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(Yh(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=So(this.history.done,o),t.history.undone=So(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):Pr(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 Se=ve.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Se)){C();return}g[de]=Se,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 X;if(i.state.draggingText&&!i.state.draggingText.copy&&(X=i.listSelections()),au(i.doc,ha(l,l)),X)for(var ie=0;ie<X.length;++ie)Ao(i.doc,"",X[ie].anchor,X[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==",D&&(l.width=l.height=1,t.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),D&&l.parentNode.removeChild(l)}}function Sx(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 Rx(){$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"},Jl=0;Jl<10;Jl++)ba[Jl+48]=ba[Jl+96]=String(Jl);for(var su=65;su<=90;su++)ba[su]=String.fromCharCode(su);for(var Yl=1;Yl<=12;Yl++)ba[Yl+111]=ba[Yl+63235]="F"+Yl;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),(M?i.metaKey:i.ctrlKey)&&o!="Ctrl"&&(t="Ctrl-"+t),(M?i.ctrlKey:i.metaKey)&&o!="Mod"&&(t="Cmd-"+t),!l&&i.shiftKey&&o!="Shift"&&(t="Shift-"+t),t}function rp(t,i){if(D&&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,Je(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 se(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?Je(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 X=un(i,O,E).top;E=Pt(function(ie){return un(i,O,ie).top==X},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 se(o,E,w)}}return new se(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 se?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 X=y.level==1==o<0,ie=C(l,X?1:-1);if(ie!=null&&(X?ie<=y.to&&ie<=O.end:ie>=y.from&&ie>=O.begin)){var re=X?"before":"after";return new se(l.line,ie,re)}}var de=function(Ue,We,ke){for(var Ve=function(Xt,Ur){return Ur?new se(l.line,C(Xt,1),"before"):new se(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 Se=o>0?O.end:C(O.begin,-1);return Se!=null&&!(o>0&&Se==i.text.length)&&(ve=de(o>0?0:s.length-1,o,E(Se)),ve)?ve:null}var zl={selectAll:Mh,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=Ge(t.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<t.lastLine()?{from:i.head,to:se(i.head.line+1,0)}:{from:i.head,to:se(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fo(t,function(i){return{from:se(i.from().line,0),to:ot(t.doc,se(i.to().line+1,0))}})},delLineLeft:function(t){return Fo(t,function(i){return{from:se(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(se(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(se(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=Ge(t.doc,s.line).text;if(g){if(s.ch==g.length&&(s=new se(s.line,s.ch-1)),s.ch>0)s=new se(s.line,s.ch+1),t.replaceRange(g.charAt(s.ch-1)+g.charAt(s.ch-2),se(s.line,s.ch-2),s,"+transpose");else if(s.line>t.doc.first){var y=Ge(t.doc,s.line-1).text;y&&(s=new se(s.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+y.charAt(y.length-1),se(s.line-1,y.length-1),s,"+transpose"))}}l.push(new Dt(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=Ge(t.doc,i),o=Wn(l);return o!=l&&(i=N(o)),bd(!0,t,o,i,1)}function Lx(t,i){var l=Ge(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=Ge(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 se(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(St(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);D&&(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)&&Dx(i)}}function Dx(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(D&&l==vd){vd=null,Bt(t);return}if(!(D&&(!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 Gx=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+Gx>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?Zx(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&&(K?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 Mx(t,i,l){var o=t.getOption("configureMouse"),s=o?o(t,i,l):{};if(s.unit==null){var g=G?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 Zx(t,i,l,o){h?setTimeout(Le(dh,t),0):t.curOp.focus=Fe(St(t));var s=Mx(t,l,o),g=t.doc.sel,y;t.options.dragDrop&&Dn&&!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 Dt(i,i);if(l=="word")return t.findWordAt(i);if(l=="line")return new Dt(se(i.line,0),ot(t.doc,se(i.line+1,0)));var o=l(t,i);return new Dt(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 Dt(l,l)):(y=g.sel.primary(),C=g.sel.primIndex),o.unit=="rectangle")o.addNew||(y=new Dt(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 Mn([y],0),st),w=g.sel);var X=l;function ie(ke){if(Ee(X,ke)!=0)if(X=ke,o.unit=="rectangle"){for(var Ve=[],et=t.options.tabSize,qe=He(Ge(g,l.line).text,l.ch,et),yt=He(Ge(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=Ge(g,or).text,Sr=Ct(cn,Xt,et);Xt==Ur?Ve.push(new Dt(se(or,Sr),se(or,Sr))):cn.length>Sr&&Ve.push(new Dt(se(or,Sr),se(or,Ct(cn,Ur,et))))}Ve.length||Ve.push(new Dt(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,Rr;Ee(Vr.anchor,Er)>0?(Rr=Vr.head,Er=ia(hn.from(),Vr.anchor)):(Rr=Vr.anchor,Er=Yr(hn.to(),Vr.head));var dr=w.ranges.slice(0);dr[C]=Hx(t,new Dt(ot(g,Er),Rr)),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,X)!=0){t.curOp.focus=Fe(St(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 Se(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)?Se(ke):ve(ke)}),We=Lr(t,Se);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=Ge(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),X=O-y||(o.ch-l.ch)*(C.level==1?-1:1);O==w-1||O==w?E=X<0:E=X>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 Dt(new se(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),X=t.display.gutterSpecs[w];return Ft(t,l,t,O,X.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")||K||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){Zl(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(se(y,O))}y++});for(var C=g.length-1;C>=0;C--)Ao(o.doc,s,g[C],se(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",$?"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),Ml(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,Jx,!0),l("gutters",[],function(o,s){o.display.gutterSpecs=sd(s,o.options.lineNumbers),Ml(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),Ml(o)},!0),l("firstLineNumber",1,Ml,!0),l("lineNumberFormatter",function(o){return o},Ml,!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,Px),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,Zl,!0),l("addModeClass",!1,Zl,!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,Zl,!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 Px(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 Jx(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?De(i):{},De(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&&!$&&g.input.focus(),h&&b<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Yx(this),Rx(),ja(this),this.curOp.forceUpdate=!0,Eh(this,o),i.autofocus&&!$||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);Pa(this),x&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}$t.defaults=gp,$t.optionHandlers=du;function Yx(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,X=E.top-w.top;return O*O+X*X>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"),X;!E.prev||y(E,E.prev)?X=new Dt(O,O):!E.prev.prev||y(E,E.prev.prev)?X=t.findWordAt(O):X=new Dt(se(O.line,0),ot(t.doc,se(O.line+1,0))),t.setSelection(X.anchor,X.head),t.focus(),Bt(w)}s()}),je(i.scroller,"touchcancel",s),je(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Dl(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)||(Sx(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=Ge(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(Ge(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 X="",ie=0;if(t.options.indentWithTabs)for(var re=Math.floor(O/y);re;--re)ie+=y,X+=" ";if(ie<O&&(X+=mt(O-ie)),X!=E)return Ao(s,X,se(i,0),se(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 Se=se(i,E.length);pd(s,de,new Dt(Se,Se));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=Pr(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 X=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=se(de.line,de.ch-l):t.state.overwrite&&!C?ve=se(ve.line,Math.min(Ge(g,ve.line).text.length,ve.ch+Je(w).length)):C&&Ci&&Ci.lineWise&&Ci.text.join(`
|
|
32
32
|
`)==w.join(`
|
|
33
|
-
`)&&(de=ve=se(de.line,0)));var _e={from:de,to:ve,text:E?E[ie%E.length]:w,origin:s||(C?"paste":t.state.cutIncoming>y?"cut":"+input")};Eo(t.doc,_e),rt(t,"inputRead",t,_e)}i&&!C&&bp(t,i),Io(t),t.curOp.updateInput<2&&(t.curOp.updateInput=X),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()&&Rn(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:se(s,0),head:se(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"),R&&(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(),W=Math.max(g,w.line);g=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var X=W;X<g;++X)es(this,X,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,se(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 W=w?w.indexOf("overlay "):-1;return W<0?w:W==0?null:w.slice(0,W-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 W=0;W<y._global.length;W++){var X=y._global[W];X.pred(C,this)&&Ae(g,X.val)==-1&&g.push(X.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(),Re(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"),Me(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=Re(this,ot(this.doc,o));var E=o.bottom,W=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 X=Math.max(w.wrapper.clientHeight,this.doc.height),ie=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(y=="above"||o.bottom+s.offsetHeight>X)&&o.top>s.offsetHeight?E=o.top-s.offsetHeight:o.bottom+s.offsetHeight<=X&&(E=o.bottom),W+s.offsetWidth>ie&&(W=ie-s.offsetWidth)}s.style.top=E+"px",s.style.left=s.style.right="",C=="right"?(W=w.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(C=="left"?W=0:C=="middle"&&(W=(w.sizer.clientWidth-s.offsetWidth)/2),s.style.left=W+"px"),g&&Py(this,{left:W,top:E,right:W+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),W=0;W<s;++W){var X=Re(this,E,"div");if(w==null?w=X.left:X.left=w,E=xp(this,X,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(W){if(w)return o<0?W.from():W.to();var X=Re(g,W.head,"div");W.goalColumn!=null&&(X.left=W.goalColumn),C.push(X.left);var ie=xp(g,X,o,s);return s=="page"&&W==y.sel.primary()&&nd(g,me(g,ie,"div").top-X.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),W=gt(E,w)?function(X){return gt(X,w)}:/\s/.test(E)?function(X){return/\s/.test(X)}:function(X){return!/\s/.test(X)&&!gt(X)};y>0&&W(g.charAt(y-1));)--y;for(;C<g.length&&W(g.charAt(C));)++C}return new Gt(se(o.line,y),se(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(wt(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:se(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?jy(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&&js(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 Rn(this,o)},startOperation:function(){return Ja(this)},endOperation:function(){return Pa(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}},jt(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 se(We,i.ch,i.sticky),C=De(t,We))}function W(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 se(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")W();else if(o=="column")W(!0);else if(o=="word"||o=="group")for(var X=null,ie=o=="group",re=t.cm&&t.cm.getHelper(i,"wordChars"),de=!0;!(l<0&&!W(!de));de=!1){var ve=C.text.charAt(i.ch)||`
|
|
34
|
-
`,
|
|
35
|
-
`?"n":!ie||/\s/.test(ve)?null:"p";if(ie&&!de&&!
|
|
36
|
-
`);if(C.clipboardData.setData("Text",E),C.clipboardData.getData("Text")==E){C.preventDefault();return}}var
|
|
37
|
-
`);var ie=Fe(Ye(s));lt(X),setTimeout(function(){o.display.lineSpace.removeChild(
|
|
38
|
-
`),lt(s))}else return;y.type=="cut"&&(o.state.cutIncoming=+new Date)}}
|
|
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||
|
|
40
|
-
top: `+(t.clientY-
|
|
33
|
+
`)&&(de=ve=se(de.line,0)));var Se={from:de,to:ve,text:E?E[ie%E.length]:w,origin:s||(C?"paste":t.state.cutIncoming>y?"cut":"+input")};Eo(t.doc,Se),rt(t,"inputRead",t,Se)}i&&!C&&bp(t,i),Io(t),t.curOp.updateInput<2&&(t.curOp.updateInput=X),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(Ge(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:se(s,0),head:se(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 X=O;X<g;++X)es(this,X,o);var ie=this.doc.sel.ranges;w.ch==0&&s.length==ie.length&&ie[y].from().ch>0&&pd(this.doc,y,new Dt(w,ie[y].to()),pt)}}}),getTokenAt:function(o,s){return mo(this,o,s)},getLineTokens:function(o,s){return mo(this,se(o),s,!0)},getTokenTypeAt:function(o){o=ot(this.doc,o);var s=yl(this,Ge(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 X=y._global[O];X.pred(C,this)&&_e(g,X.val)==-1&&g.push(X.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"),Me(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=Ge(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 X=Math.max(w.wrapper.clientHeight,this.doc.height),ie=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(y=="above"||o.bottom+s.offsetHeight>X)&&o.top>s.offsetHeight?E=o.top-s.offsetHeight:o.bottom+s.offsetHeight<=X&&(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&&Py(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 X=Ae(this,E,"div");if(w==null?w=X.left:X.left=w,E=xp(this,X,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 X=Ae(g,O.head,"div");O.goalColumn!=null&&(X.left=O.goalColumn),C.push(X.left);var ie=xp(g,X,o,s);return s=="page"&&O==y.sel.primary()&&nd(g,me(g,ie,"div").top-X.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=Ge(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(X){return gt(X,w)}:/\s/.test(E)?function(X){return/\s/.test(X)}:function(X){return!/\s/.test(X)&&!gt(X)};y>0&&O(g.charAt(y-1));)--y;for(;C<g.length&&O(g.charAt(C));)++C}return new Dt(se(o.line,y),se(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(St(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:se(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?Jy(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&&Js(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 Pa(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}},Jt(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=Ge(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 se(We,i.ch,i.sticky),C=Ge(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 se(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 X=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
|
+
`,Se=gt(ve,re)?"w":ie&&ve==`
|
|
35
|
+
`?"n":!ie||/\s/.test(ve)?null:"p";if(ie&&!de&&!Se&&(Se="s"),X&&X!=Se){l<0&&(l=1,O(),i.sticky="after");break}if(Se&&(X=Se),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=Me(t,g,y),!!E.outside;){if(l<0?y<=0:y>=s.height){E.hitSide=!0;break}y+=l*5}return E}var Mt=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};Mt.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(),X=O.firstChild;Id(X),o.display.lineSpace.insertBefore(O,o.display.lineSpace.firstChild),X.value=Ci.text.join(`
|
|
37
|
+
`);var ie=Fe(Ye(s));lt(X),setTimeout(function(){o.display.lineSpace.removeChild(O),ie.focus(),ie==s&&l.showPrimarySelection()},50)}}je(s,"copy",y),je(s,"cut",y)},Mt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var t=fh(this.cm,!1);return t.focus=Fe(Ye(this.div))==this.div,t},Mt.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mt.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(Yr(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,X=O.maps?O.maps[O.maps.length-1]:O.map;E={node:X[X.length-1],offset:X[X.length-2]-X[X.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()}},Mt.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)},Mt.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},Mt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Mt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return Ie(this.div,i)},Mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe(Ye(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mt.prototype.blur=function(){this.div.blur()},Mt.prototype.getField=function(){return this.div},Mt.prototype.supportsTouch=function(){return!0},Mt.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)},Mt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Mt.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)})}}},Mt.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=se(o.line-1,Ge(t.doc,o.line-1).length)),s.ch==Ge(t.doc,s.line).text.length&&s.line<t.lastLine()&&(s=se(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 X=t.doc.splitLines(Kx(t,C,O,y,E)),ie=wr(t.doc,se(y,0),se(E,Ge(t.doc,E).text.length));X.length>1&&ie.length>1;)if(Je(X)==Je(ie))X.pop(),ie.pop(),E--;else if(X[0]==ie[0])X.shift(),ie.shift(),y++;else break;for(var re=0,de=0,ve=X[0],Se=ie[0],Ue=Math.min(ve.length,Se.length);re<Ue&&ve.charCodeAt(re)==Se.charCodeAt(re);)++re;for(var We=Je(X),ke=Je(ie),Ve=Math.min(We.length-(X.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(X.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++;X[X.length-1]=We.slice(0,We.length-de).replace(/^\u200b+/,""),X[0]=X[0].slice(re).replace(/\u200b+$/,"");var et=se(y,re),qe=se(E,ie.length?Je(ie).length-de:0);if(X.length>1||X[0]||Ee(et,qe))return Ao(t.doc,X,et,qe,"+input"),!0},Mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mt.prototype.reset=function(){this.forceCompositionEnd()},Mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mt.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))},Mt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&An(this.cm,function(){return fn(t.cm)})},Mt.prototype.setUneditable=function(t){t.contentEditable="false"},Mt.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))},Mt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Mt.prototype.onContextMenu=function(){},Mt.prototype.resetPosition=function(){},Mt.prototype.needsContentAttribute=!0;function Tp(t,i){var l=vo(t,i.line);if(!l||l.hidden)return null;var o=Ge(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 X(re){re&&(O(),g+=re)}function ie(re){if(re.nodeType==1){var de=re.getAttribute("cm-text");if(de){X(de);return}var ve=re.getAttribute("cm-marker"),Se;if(ve){var Ue=t.findMarks(se(o,0),se(s+1,0),E(+ve));Ue.length&&(Se=Ue[0].find(0))&&X(wr(t.doc,Se.from,Se.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&&X(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(se(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(se(N(t.line),0),!0);if(i==o&&(s=!0,i=o.childNodes[l],l=0,!i)){var g=t.rest?Je(t.rest):t.line;return Bo(se(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(Se,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==Se||qe==Ue){var yt=N(ke<0?t.line:t.rest[ke]),Xt=Ve[et]+We;return(We<0||qe!=Se)&&(Xt=Ve[et+(We?1:0)]),se(yt,Xt)}}}var X=O(y,C,l);if(X)return Bo(X,s);for(var ie=C.nextSibling,re=y?y.nodeValue.length-l:0;ie;ie=ie.nextSibling){if(X=O(ie,ie.firstChild,0),X)return Bo(se(X.line,X.ch-re),s);re+=ie.textContent.length}for(var de=C.previousSibling,ve=l;de;de=de.previousSibling){if(X=O(de,de.firstChild,-1),X)return Bo(se(X.line,X.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&<(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"&&(!$||Fe(Ye(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||D)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
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 X;x&&(X=s.ownerDocument.defaultView.scrollY),o.input.focus(),x&&s.ownerDocument.defaultView.scrollTo(null,X),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(),_e="\u200B"+(ve?s.value:"");s.value="\u21DA",s.value=_e,i.prevInput=ve?"":"\u200B",s.selectionStart=1,s.selectionEnd=_e.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,_e=function(){o.selForContextMenu==l.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&i.prevInput=="\u200B"?Lr(l,Mh)(l):ve++<10?o.detectingSelectAll=setTimeout(_e,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(_e,200)}}if(h&&b>=9&&ie(),K){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(Ye(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=Pr,t.countColumn=He,t.findColumn=Tt,t.isWordChar=Be,t.Pass=St,t.signal=Ft,t.Line=T,t.changeEnd=pa,t.scrollbarModel=mh,t.Pos=se,t.cmpPos=Ee,t.modes=gi,t.mimeModes=Ir,t.resolveMode=Xn,t.getMode=Xe,t.modeExtensions=q,t.extendMode=we,t.copyState=Oe,t.startState=Yt,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=Pl,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)&&Ae(r1,pu)<0&&($t.prototype[pu]=function(t){return function(){return t.apply(this.doc,arguments)}}(dn.prototype[pu]));return jt(dn),$t.inputStyles={textarea:br,contenteditable:Mt},$t.defineMode=function(t){!$t.defaults.mode&&t!="null"&&($t.defaults.mode=t),jr.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 A=b;b=null}else var A=u(c,b,"rangeFinder");typeof h=="number"&&(h=e.Pos(h,0));var I=u(c,b,"minFoldSize");function F(J){var R=A(c,h);if(!R||R.to.line-R.from.line<I)return null;if(x==="fold")return R;for(var k=c.findMarksAt(R.from),te=0;te<k.length;++te)if(k[te].__isFold){if(!J)return null;R.cleared=!0,k[te].clear()}return R}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 O=n(c,b,G);e.on(O,"mousedown",function(J){U.clear(),e.e_preventDefault(J)});var U=c.markText(G.from,G.to,{replacedWith:O,clearOnEnter:u(c,b,"clearOnEnter"),__isFold:!0});U.on("clear",function(J,R){e.signal(c,"unfold",c,J,R)}),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 A=document.createTextNode(x);x=document.createElement("span"),x.appendChild(A),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 A=c[x](h,b);if(A)return A}}}),e.registerHelper("fold","auto",function(c,h){for(var b=c.getHelpers(h,"fold"),x=0;x<b.length;x++){var A=b[x](c,h);if(A)return A}});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,J,R){R&&R!=e.Init&&(U.clearGutter(U.state.foldGutter.options.gutter),U.state.foldGutter=null,U.off("gutterClick",A),U.off("changes",F),U.off("viewportChange",G),U.off("fold",O),U.off("unfold",O),U.off("swapDoc",F),U.off("optionChange",I)),J&&(U.state.foldGutter=new n(a(J)),x(U),U.on("gutterClick",A),U.on("changes",F),U.on("viewportChange",G),U.on("fold",O),U.on("unfold",O),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,J){for(var R=U.findMarks(r(J,0),r(J+1,0)),k=0;k<R.length;++k)if(R[k].__isFold){var te=R[k].find(-1);if(te&&te.line===J)return R[k]}}function c(U){if(typeof U=="string"){var J=document.createElement("div");return J.className=U+" CodeMirror-guttermarker-subtle",J}else return U.cloneNode(!0)}function h(U,J,R){var k=U.state.foldGutter.options,te=J-1,V=U.foldOption(k,"minFoldSize"),D=U.foldOption(k,"rangeFinder"),$=typeof k.indicatorFolded=="string"&&b(k.indicatorFolded),m=typeof k.indicatorOpen=="string"&&b(k.indicatorOpen);U.eachLine(J,R,function(M){++te;var K=null,ue=M.gutterMarkers;if(ue&&(ue=ue[k.gutter]),u(U,te)){if($&&ue&&$.test(ue.className))return;K=c(k.indicatorFolded)}else{var Te=r(te,0),z=D&&D(U,Te);if(z&&z.to.line-z.from.line>=V){if(m&&ue&&m.test(ue.className))return;K=c(k.indicatorOpen)}}!K&&!ue||U.setGutterMarker(M,k.gutter,K)})}function b(U){return new RegExp("(^|\\s)"+U+"(?:$|\\s)\\s*")}function x(U){var J=U.getViewport(),R=U.state.foldGutter;R&&(U.operation(function(){h(U,J.from,J.to)}),R.from=J.from,R.to=J.to)}function A(U,J,R){var k=U.state.foldGutter;if(k){var te=k.options;if(R==te.gutter){var V=u(U,J);V?V.clear():U.foldCode(r(J,0),te)}}}function I(U,J){J=="mode"&&F(U)}function F(U){var J=U.state.foldGutter;if(J){var R=J.options;J.from=J.to=0,clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){x(U)},R.foldOnChangeTimeSpan||600)}}function G(U){var J=U.state.foldGutter;if(J){var R=J.options;clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){var k=U.getViewport();J.from==J.to||k.from-J.to>20||J.from-k.to>20?x(U):U.operation(function(){k.from<J.from&&(h(U,k.from,J.from),J.from=k.from),k.to>J.to&&(h(U,J.to,k.to),J.to=k.to)})},R.updateViewportTimeSpan||400)}}function O(U,J){var R=U.state.foldGutter;if(R){var k=J.line;k>=R.from&&k<R.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(R,k){return R.line-k.line||R.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(R,k,te,V){this.line=k,this.ch=te,this.cm=R,this.text=R.getLine(k),this.min=V?Math.max(V.from,R.firstLine()):R.firstLine(),this.max=V?Math.min(V.to-1,R.lastLine()):R.lastLine()}function b(R,k){var te=R.cm.getTokenTypeAt(r(R.line,k));return te&&/\btag\b/.test(te)}function x(R){if(!(R.line>=R.max))return R.ch=0,R.text=R.cm.getLine(++R.line),!0}function A(R){if(!(R.line<=R.min))return R.text=R.cm.getLine(--R.line),R.ch=R.text.length,!0}function I(R){for(;;){var k=R.text.indexOf(">",R.ch);if(k==-1){if(x(R))continue;return}if(!b(R,k+1)){R.ch=k+1;continue}var te=R.text.lastIndexOf("/",k),V=te>-1&&!/\S/.test(R.text.slice(te+1,k));return R.ch=k+1,V?"selfClose":"regular"}}function F(R){for(;;){var k=R.ch?R.text.lastIndexOf("<",R.ch-1):-1;if(k==-1){if(A(R))continue;return}if(!b(R,k+1)){R.ch=k;continue}c.lastIndex=k,R.ch=k;var te=c.exec(R.text);if(te&&te.index==k)return te}}function G(R){for(;;){c.lastIndex=R.ch;var k=c.exec(R.text);if(!k){if(x(R))continue;return}if(!b(R,k.index+1)){R.ch=k.index+1;continue}return R.ch=k.index+k[0].length,k}}function O(R){for(;;){var k=R.ch?R.text.lastIndexOf(">",R.ch-1):-1;if(k==-1){if(A(R))continue;return}if(!b(R,k+1)){R.ch=k;continue}var te=R.text.lastIndexOf("/",k),V=te>-1&&!/\S/.test(R.text.slice(te+1,k));return R.ch=k+1,V?"selfClose":"regular"}}function U(R,k){for(var te=[];;){var V=G(R),D,$=R.line,m=R.ch-(V?V[0].length:0);if(!V||!(D=I(R)))return;if(D!="selfClose")if(V[1]){for(var M=te.length-1;M>=0;--M)if(te[M]==V[2]){te.length=M;break}if(M<0&&(!k||k==V[2]))return{tag:V[2],from:r($,m),to:r(R.line,R.ch)}}else te.push(V[2])}}function J(R,k){for(var te=[];;){var V=O(R);if(!V)return;if(V=="selfClose"){F(R);continue}var D=R.line,$=R.ch,m=F(R);if(!m)return;if(m[1])te.push(m[2]);else{for(var M=te.length-1;M>=0;--M)if(te[M]==m[2]){te.length=M;break}if(M<0&&(!k||k==m[2]))return{tag:m[2],from:r(R.line,R.ch),to:r(D,$)}}}}e.registerHelper("fold","xml",function(R,k){for(var te=new h(R,k.line,0);;){var V=G(te);if(!V||te.line!=k.line)return;var D=I(te);if(!D)return;if(!V[1]&&D!="selfClose"){var $=r(te.line,te.ch),m=U(te,V[2]);return m&&n(m.from,$)>0?{from:$,to:m.from}:null}}}),e.findMatchingTag=function(R,k,te){var V=new h(R,k.line,k.ch,te);if(!(V.text.indexOf(">")==-1&&V.text.indexOf("<")==-1)){var D=I(V),$=D&&r(V.line,V.ch),m=D&&F(V);if(!(!D||!m||n(V,k)>0)){var M={from:r(V.line,V.ch),to:$,tag:m[2]};return D=="selfClose"?{open:M,close:null,at:"open"}:m[1]?{open:J(V,m[2]),close:M,at:"close"}:(V=new h(R,$.line,$.ch,te),{open:M,close:U(V,m[2]),at:"open"})}}},e.findEnclosingTag=function(R,k,te,V){for(var D=new h(R,k.line,k.ch,te);;){var $=J(D,V);if(!$)break;var m=new h(R,k.line,k.ch,te),M=U(m,$.tag);if(M)return{open:$,close:M}}},e.scanForClosingTag=function(R,k,te,V){var D=new h(R,k.line,k.ch,V?{from:0,to:V}:null);return U(D,te)}})});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(O){for(var U,J=u.ch,R=0;;){var k=J<=0?-1:h.lastIndexOf(O[0],J-1);if(k==-1){if(R==1)break;R=1,J=h.length;continue}if(R==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:O};J=k-1}}function x(O){var U=1,J=a.lastLine(),R,k=O.ch,te;e:for(var V=c;V<=J;++V)for(var D=a.getLine(V),$=V==c?k:0;;){var m=D.indexOf(O.pair[0],$),M=D.indexOf(O.pair[1],$);if(m<0&&(m=D.length),M<0&&(M=D.length),$=Math.min(m,M),$==D.length)break;if(a.getTokenTypeAt(e.Pos(V,$+1))==O.tokenType){if($==m)++U;else if(!--U){R=V,te=$;break e}}++$}return R==null||c==R?null:{from:e.Pos(c,k),to:e.Pos(R,te)}}for(var A=[],I=0;I<n.length;I++){var F=b(n[I]);F&&A.push(F)}A.sort(function(O,U){return O.ch-U.ch});for(var I=0;I<A.length;I++){var G=x(A[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,O=Math.min(n.lastLine(),I+10);G<=O;++G){var U=n.getLine(G),J=U.indexOf(";");if(J!=-1)return{startCh:F.end,end:e.Pos(G,J)}}}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 A=u(x.line+1);if(A==null)break;x=A.end}return{from:n.clipPos(e.Pos(c,h.startCh+1)),to:x}}),e.registerHelper("fold","include",function(n,a){function u(A){if(A<n.firstLine()||A>n.lastLine())return null;var I=n.getTokenAt(e.Pos(A,1));if(/\S/.test(I.string)||(I=n.getTokenAt(e.Pos(A,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,_y)=>{(function(e){typeof wy=="object"&&typeof _y=="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 O=I.getLineHandle(F.line),U=F.ch-1,J=G&&G.afterCursor;J==null&&(J=/(^| )cm-fat-cursor($| )/.test(I.getWrapperElement().className));var R=u(G),k=!J&&U>=0&&R.test(O.text.charAt(U))&&a[O.text.charAt(U)]||R.test(O.text.charAt(U+1))&&a[O.text.charAt(++U)];if(!k)return null;var te=k.charAt(1)==">"?1:-1;if(G&&G.strict&&te>0!=(U==F.ch))return null;var V=I.getTokenTypeAt(n(F.line,U+1)),D=h(I,n(F.line,U+(te>0?1:0)),te,V,G);return D==null?null:{from:n(F.line,U),to:D&&D.pos,match:D&&D.ch==k.charAt(0),forward:te>0}}function h(I,F,G,O,U){for(var J=U&&U.maxScanLineLength||1e4,R=U&&U.maxScanLines||1e3,k=[],te=u(U),V=G>0?Math.min(F.line+R,I.lastLine()+1):Math.max(I.firstLine()-1,F.line-R),D=F.line;D!=V;D+=G){var $=I.getLine(D);if($){var m=G>0?0:$.length-1,M=G>0?$.length:-1;if(!($.length>J))for(D==F.line&&(m=F.ch-(G<0?1:0));m!=M;m+=G){var K=$.charAt(m);if(te.test(K)&&(O===void 0||(I.getTokenTypeAt(n(D,m+1))||"")==(O||""))){var ue=a[K];if(ue&&ue.charAt(1)==">"==G>0)k.push(K);else if(k.length)k.pop();else return{pos:n(D,m),ch:K}}}}}return D-G==(G>0?I.lastLine():I.firstLine())?!1:null}function b(I,F,G){for(var O=I.state.matchBrackets.maxHighlightLineLength||1e3,U=G&&G.highlightNonMatching,J=[],R=I.listSelections(),k=0;k<R.length;k++){var te=R[k].empty()&&c(I,R[k].head,G);if(te&&(te.match||U!==!1)&&I.getLine(te.from.line).length<=O){var V=te.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";J.push(I.markText(te.from,n(te.from.line,te.from.ch+1),{className:V})),te.to&&I.getLine(te.to.line).length<=O&&J.push(I.markText(te.to,n(te.to.line,te.to.ch+1),{className:V}))}}if(J.length){r&&I.state.focused&&I.focus();var D=function(){I.operation(function(){for(var $=0;$<J.length;$++)J[$].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 A(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",A),A(I)),F&&(I.state.matchBrackets=typeof F=="object"?F:{},I.on("cursorActivity",x),I.on("focus",x),I.on("blur",A))}),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,O){return h(this,I,F,G,O)})})});var Ay=Wt((Ey,Ry)=>{(function(e){typeof Ey=="object"&&typeof Ry=="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 A,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(J(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),xe.tokenize=U("meta","?>"),"meta"):(A=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,A=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return A="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=O(ae),xe.stringStartCol=L.column(),xe.tokenize(L,xe)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function O(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 J(L){return function(xe,ae){for(var Ie;(Ie=xe.next())!=null;){if(Ie=="<")return ae.tokenize=J(L+1),ae.tokenize(xe,ae);if(Ie==">")if(L==1){ae.tokenize=F;break}else return ae.tokenize=J(L-1),ae.tokenize(xe,ae)}return"meta"}}function R(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 te(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(R(ae))||!h.contextGrabbers[R(ae)].hasOwnProperty(R(xe))))return;te(L)}}function D(L,xe,ae){return L=="openTag"?(ae.tagStart=xe.column(),$):L=="closeTag"?m:D}function $(L,xe,ae){return L=="word"?(ae.tagName=xe.current(),I="tag",ue):h.allowMissingTagName&&L=="endTag"?(I="tag bracket",ue(L,xe,ae)):(I="error",$)}function m(L,xe,ae){if(L=="word"){var Ie=xe.current();return ae.context&&ae.context.tagName!=Ie&&h.implicitlyClosed.hasOwnProperty(R(ae.context.tagName))&&te(ae),ae.context&&ae.context.tagName==Ie||h.matchClosing===!1?(I="tag",M):(I="tag error",K)}else return h.allowMissingTagName&&L=="endTag"?(I="tag bracket",M(L,xe,ae)):(I="error",K)}function M(L,xe,ae){return L!="endTag"?(I="error",M):(te(ae),D)}function K(L,xe,ae){return I="error",M(L,xe,ae)}function ue(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(R(Ie))?V(ae,Ie):(V(ae,Ie),ae.context=new k(ae,Ie,Fe==ae.indented)),D}return I="error",ue}function Te(L,xe,ae){return L=="equals"?z:(h.allowMissing||(I="error"),ue(L,xe,ae))}function z(L,xe,ae){return L=="string"?he:L=="word"&&h.allowUnquoted?(I="string",ue):(I="error",ue(L,xe,ae))}function he(L,xe,ae){return L=="string"?he:ue(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;A=null;var ae=xe.tokenize(L,xe);return(ae||A)&&ae!="comment"&&(I=null,xe.state=xe.state(A||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(R(Ie.tagName)))Ie=Ie.prev;else break;else if(Fe)for(;Ie;){var nt=h.contextGrabbers[R(Ie.tagName)];if(nt&&nt.hasOwnProperty(R(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==z&&(L.state=ue)},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,A=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"),se=N("keyword d"),Ee=N("operator"),Ct={type:"atom",style:"atom"};return{if:N("if"),while:H,with:H,else:pe,do:pe,try:pe,finally:pe,return:se,break:se,continue:se,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:Ct,false:Ct,null:Ct,undefined:Ct,NaN:Ct,Infinity:Ct,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 O(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,J;function R(N,H,pe){return U=N,J=pe,H}function k(N,H){var pe=N.next();if(pe=='"'||pe=="'")return H.tokenize=te(pe),H.tokenize(N,H);if(pe=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(pe=="."&&N.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(pe))return R(pe);if(pe=="="&&N.eat(">"))return R("=>","operator");if(pe=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(pe))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(pe=="/")return N.eat("*")?(H.tokenize=V,V(N,H)):N.eat("/")?(N.skipToEnd(),R("comment","comment")):Nr(N,H,1)?(O(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(N.eat("="),R("operator","operator",N.current()));if(pe=="`")return H.tokenize=D,D(N,H);if(pe=="#"&&N.peek()=="!")return N.skipToEnd(),R("meta","meta");if(pe=="#"&&N.eatWhile(A))return R("variable","property");if(pe=="<"&&N.match("!--")||pe=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),R("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(".")?R("."):R("operator","operator",N.current());if(A.test(pe)){N.eatWhile(A);var Ce=N.current();if(H.lastType!="."){if(I.propertyIsEnumerable(Ce)){var se=I[Ce];return R(se.type,se.style,Ce)}if(Ce=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",Ce)}return R("variable","variable",Ce)}}function te(N){return function(H,pe){var Ce=!1,se;if(c&&H.peek()=="@"&&H.match(G))return pe.tokenize=k,R("jsonld-keyword","meta");for(;(se=H.next())!=null&&!(se==N&&!Ce);)Ce=!Ce&&se=="\\";return Ce||(pe.tokenize=k),R("string","string")}}function V(N,H){for(var pe=!1,Ce;Ce=N.next();){if(Ce=="/"&&pe){H.tokenize=k;break}pe=Ce=="*"}return R("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 R("quasi","string-2",N.current())}var $="([{}])";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 se=0,Ee=!1,Ct=pe-1;Ct>=0;--Ct){var ir=N.string.charAt(Ct),Yr=$.indexOf(ir);if(Yr>=0&&Yr<3){if(!se){++Ct;break}if(--se==0){ir=="("&&(Ee=!0);break}}else if(Yr>=3&&Yr<6)++se;else if(A.test(ir))Ee=!0;else if(/["'\/`]/.test(ir))for(;;--Ct){if(Ct==0)return;var ia=N.string.charAt(Ct-1);if(ia==ir&&N.string.charAt(Ct-2)!="\\"){Ct--;break}}else if(Ee&&!se){++Ct;break}}Ee&&!se&&(H.fatArrowAt=Ct)}}var M={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(N,H,pe,Ce,se,Ee){this.indented=N,this.column=H,this.type=pe,this.prev=se,this.info=Ee,Ce!=null&&(this.align=Ce)}function ue(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,se){var Ee=N.cc;for(z.state=N,z.stream=se,z.marked=null,z.cc=Ee,z.style=H,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var Ct=Ee.length?Ee.pop():h?Ae:He;if(Ct(pe,Ce)){for(;Ee.length&&Ee[Ee.length-1].lex;)Ee.pop()();return z.marked?z.marked:pe=="variable"&&ue(N,Ce)?"variable-2":H}}}var z={state:null,column:null,marked:null,cc:null};function he(){for(var N=arguments.length-1;N>=0;N--)z.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=z.state;if(z.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(){z.state.context=new nt(z.state.context,z.state.localVars,!1),z.state.localVars=lt}function wt(){z.state.context=new nt(z.state.context,z.state.localVars,!0),z.state.localVars=null}Ne.lex=wt.lex=!0;function Ye(){z.state.localVars=z.state.context.vars,z.state.context=z.state.context.prev}Ye.lex=!0;function Qe(N,H){var pe=function(){var Ce=z.state,se=Ce.indented;if(Ce.lexical.type=="stat")se=Ce.lexical.indented;else for(var Ee=Ce.lexical;Ee&&Ee.type==")"&&Ee.align;Ee=Ee.prev)se=Ee.indented;Ce.lexical=new K(se,z.stream.column(),N,null,Ce.lexical,H)};return pe.lex=!0,pe}function Le(){var N=z.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"),St,He,Le):N=="keyword b"?L(Qe("form"),He,Le):N=="keyword d"?z.stream.match(/^\s*$/,!1)?L():L(Qe("stat"),st,Ge(";"),Le):N=="debugger"?L(Ge(";")):N=="{"?L(Qe("}"),wt,Pt,Le,Ye):N==";"?L():N=="if"?(z.state.lexical.info=="else"&&z.state.cc[z.state.cc.length-1]==Le&&z.state.cc.pop()(),L(Qe("form"),St,He,Le,Dn)):N=="function"?L(Pr):N=="for"?L(Qe("form"),wt,pi,He,Ye,Le):N=="class"||x&&H=="interface"?(z.marked="keyword",L(Qe("form",N=="class"?N:H),gi,Le)):N=="variable"?x&&H=="declare"?(z.marked="keyword",L(He)):x&&(H=="module"||H=="enum"||H=="type")&&z.stream.match(/^\s*\w/,!1)?(z.marked="keyword",H=="enum"?L(De):H=="type"?L(Ri,Ge("operator"),at,Ge(";")):L(Qe("form"),nr,Ge("{"),Qe("}"),Pt,Le,Le)):x&&H=="namespace"?(z.marked="keyword",L(Qe("form"),Ae,He,Le)):x&&H=="abstract"?(z.marked="keyword",L(He)):L(Qe("stat"),cr):N=="switch"?L(Qe("form"),St,Ge("{"),Qe("}","switch"),wt,Pt,Le,Le,Ye):N=="case"?L(Ae,Ge(":")):N=="default"?L(Ge(":")):N=="catch"?L(Qe("form"),Ne,bt,He,Le,Ye):N=="export"?L(Qe("stat"),Xn,Le):N=="import"?L(Qe("stat"),q,Le):N=="async"?L(He):H=="@"?L(Ae,He):he(Qe("stat"),Ae,Ge(";"),Le)}function bt(N){if(N=="(")return L(tn,Ge(")"))}function Ae(N,H){return pt(N,H,!1)}function ct(N,H){return pt(N,H,!0)}function St(N){return N!="("?he():L(Qe(")"),st,Ge(")"),Le)}function pt(N,H,pe){if(z.state.fatArrowAt==z.stream.start){var Ce=pe?vr:je;if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,Ge("=>"),Ce,Ye);if(N=="variable")return he(Ne,nr,Ge("=>"),Ce,Ye)}var se=pe?Tt:$e;return M.hasOwnProperty(N)?L(se):N=="function"?L(Pr,se):N=="class"||x&&H=="interface"?(z.marked="keyword",L(Qe("form"),rn,Le)):N=="keyword c"||N=="async"?L(pe?ct:Ae):N=="("?L(Qe(")"),st,Ge(")"),Le,se):N=="operator"||N=="spread"?L(pe?ct:Ae):N=="["?L(Qe("]"),ht,Le,se):N=="{"?xr(gt,"}",null,se):N=="quasi"?he(ut,se):N=="new"?L(yr(pe)):L()}function st(N){return N.match(/[;\}\)\],]/)?he():he(Ae)}function $e(N,H){return N==","?L(st):Tt(N,H,!1)}function Tt(N,H,pe){var Ce=pe==!1?$e:Tt,se=pe==!1?Ae:ct;if(N=="=>")return L(Ne,pe?vr:je,Ye);if(N=="operator")return/\+\+|--/.test(H)||x&&H=="!"?L(Ce):x&&H=="<"&&z.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(Qe(">"),Zt(at,">"),Le,Ce):H=="?"?L(Ae,Ge(":"),se):L(se);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 z.marked="keyword",L(at,Ce);if(N=="regexp")return z.state.lastType=z.marked="operator",z.stream.backUp(z.stream.pos-z.stream.start-1),L(se)}}function ut(N,H){return N!="quasi"?he():H.slice(H.length-2)!="${"?L(ut):L(st,mt)}function mt(N){if(N=="}")return z.marked="string-2",z.state.tokenize=D,L(ut)}function je(N){return m(z.stream,z.state),he(N=="{"?He:Ae)}function vr(N){return m(z.stream,z.state),he(N=="{"?He:ct)}function yr(N){return function(H){return H=="."?L(N?Ot:tr):H=="variable"&&x?L(ur,N?Tt:$e):he(N?ct:Ae)}}function tr(N,H){if(H=="target")return z.marked="keyword",L($e)}function Ot(N,H){if(H=="target")return z.marked="keyword",L(Tt)}function cr(N){return N==":"?L(Le,He):he($e,Ge(";"),Le)}function Be(N){if(N=="variable")return z.marked="property",L()}function gt(N,H){if(N=="async")return z.marked="property",L(gt);if(N=="variable"||z.style=="keyword"){if(z.marked="property",H=="get"||H=="set")return L(lr);var pe;return x&&z.state.fatArrowAt==z.stream.start&&(pe=z.stream.match(/^\s*:\s*/,!1))&&(z.state.fatArrowAt=z.stream.pos+pe[0].length),L(hr)}else{if(N=="number"||N=="string")return z.marked=c?"property":z.style+" property",L(hr);if(N=="jsonld-keyword")return L(hr);if(x&&Fe(H))return z.marked="keyword",L(gt);if(N=="[")return L(Ae,rr,Ge("]"),hr);if(N=="spread")return L(ct,hr);if(H=="*")return z.marked="keyword",L(gt);if(N==":")return he(hr)}}function lr(N){return N!="variable"?he(hr):(z.marked="property",L(Pr))}function hr(N){if(N==":")return L(ct);if(N=="(")return he(Pr)}function Zt(N,H,pe){function Ce(se,Ee){if(pe?pe.indexOf(se)>-1:se==","){var Ct=z.state.lexical;return Ct.info=="call"&&(Ct.pos=(Ct.pos||0)+1),L(function(ir,Yr){return ir==H||Yr==H?he():he(N)},Ce)}return se==H||Ee==H?L():pe&&pe.indexOf(";")>-1?he(N):L(Ge(H))}return function(se,Ee){return se==H||Ee==H?L():he(N,Ce)}}function xr(N,H,pe){for(var Ce=3;Ce<arguments.length;Ce++)z.cc.push(arguments[Ce]);return L(Qe(H,pe),Zt(N,H),Le)}function Pt(N){return N=="}"?L():he(He,Pt)}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 z.stream.match(/^\s*\w+\s+is\b/,!1)?L(Ae,sn,at):L(at)}function sn(N,H){if(H=="is")return z.marked="keyword",L()}function at(N,H){if(H=="keyof"||H=="typeof"||H=="infer"||H=="readonly")return z.marked="keyword",L(H=="typeof"?ct:at);if(N=="variable"||H=="void")return z.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("]"),Zt(at,"]",","),Le,Jr);if(N=="{")return L(Qe("}"),Je,Le,Jr);if(N=="(")return L(Zt(Lt,")"),$r,Jr);if(N=="<")return L(Zt(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"||z.style=="keyword")return z.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 z.marked="string-2",z.state.tokenize=D,L(Cr)}function Lt(N,H){return N=="variable"&&z.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(">"),Zt(at,">"),Le,Jr);if(H=="|"||N=="."||H=="&")return L(at);if(N=="[")return L(at,Ge("]"),Jr);if(H=="extends"||H=="implements")return z.marked="keyword",L(at);if(H=="?")return L(at,Ge(":"),at)}function ur(N,H){if(H=="<")return L(Qe(">"),Zt(at,">"),Le,Jr)}function jt(){return he(at,Bt)}function Bt(N,H){if(H=="=")return L(at)}function Vt(N,H){return H=="enum"?(z.marked="keyword",L(De)):he(nr,rr,pr,Gn)}function nr(N,H){if(x&&Fe(H))return z.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"&&!z.stream.match(/^\s*:/,!1)?(ae(H),L(pr)):(N=="variable"&&(z.marked="property"),N=="spread"?L(nr):N=="}"?he():N=="["?L(Ae,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,Mr):N=="variable"?L(Mr):he(Mr)}function Mr(N,H){return N==")"?L():N==";"?L(Mr):H=="in"||H=="of"?(z.marked="keyword",L(Ae,Mr)):he(Ae,Mr)}function Pr(N,H){if(H=="*")return z.marked="keyword",L(Pr);if(N=="variable")return ae(H),L(Pr);if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,Tr,He,Ye);if(x&&H=="<")return L(Qe(">"),Zt(jt,">"),Le,Pr)}function Cn(N,H){if(H=="*")return z.marked="keyword",L(Cn);if(N=="variable")return ae(H),L(Cn);if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,Tr,Ye);if(x&&H=="<")return L(Qe(">"),Zt(jt,">"),Le,Cn)}function Ri(N,H){if(N=="keyword"||N=="variable")return z.marked="type",L(Ri);if(H=="<")return L(Qe(">"),Zt(jt,">"),Le)}function tn(N,H){return H=="@"&&L(Ae,tn),N=="spread"?L(tn):x&&Fe(H)?(z.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(">"),Zt(jt,">"),Le,Ir);if(H=="extends"||H=="implements"||x&&N==",")return H=="implements"&&(z.marked="keyword"),L(x?at:Ae,Ir);if(N=="{")return L(Qe("}"),jr,Le)}function jr(N,H){if(N=="async"||N=="variable"&&(H=="static"||H=="get"||H=="set"||x&&Fe(H))&&z.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return z.marked="keyword",L(jr);if(N=="variable"||z.style=="keyword")return z.marked="property",L(In,jr);if(N=="number"||N=="string")return L(In,jr);if(N=="[")return L(Ae,rr,Ge("]"),In,jr);if(H=="*")return z.marked="keyword",L(jr);if(x&&N=="(")return he(Cn,jr);if(N==";"||N==",")return L(jr);if(N=="}")return L();if(H=="@")return L(Ae,jr)}function In(N,H){if(H=="!"||H=="?")return L(In);if(N==":")return L(at,pr);if(H=="=")return L(ct);var pe=z.state.lexical.prev,Ce=pe&&pe.info=="interface";return he(Ce?Cn:Pr)}function Xn(N,H){return H=="*"?(z.marked="keyword",L(Yt,Ge(";"))):H=="default"?(z.marked="keyword",L(Ae,Ge(";"))):N=="{"?L(Zt(Xe,"}"),Yt,Ge(";")):he(He)}function Xe(N,H){if(H=="as")return z.marked="keyword",L(Ge("variable"));if(N=="variable")return he(ct,Xe)}function q(N){return N=="string"?L():N=="("?he(Ae):N=="."?he($e):he(we,Oe,Yt)}function we(N,H){return N=="{"?xr(we,"}"):(N=="variable"&&ae(H),H=="*"&&(z.marked="keyword"),L(kt))}function Oe(N){if(N==",")return L(we,Oe)}function kt(N,H){if(H=="as")return z.marked="keyword",L(we)}function Yt(N,H){if(H=="from")return z.marked="keyword",L(Ae)}function ht(N){return N=="]"?L():he(Zt(ct,"]"))}function De(){return he(Qe("form"),nr,Ge("{"),Qe("}"),Zt(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 K((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"&&(J=="++"||J=="--")?"incdec":U,Te(H,pe,U,J,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,se;if(!/^\s*else\b/.test(H))for(var Ee=N.cc.length-1;Ee>=0;--Ee){var Ct=N.cc[Ee];if(Ct==Le)Ce=Ce.prev;else if(Ct!=Dn&&Ct!=Ye)break}for(;(Ce.type=="stat"||Ce.type=="form")&&(pe=="}"||(se=N.cc[N.cc.length-1])&&(se==$e||se==Tt)&&!/^[,\.=+\-*:?[\(]/.test(H));)Ce=Ce.prev;u&&Ce.type==")"&&Ce.prev.type=="stat"&&(Ce=Ce.prev);var ir=Ce.type,Yr=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"&&!Yr&&n.doubleIndentSwitch!=!1?Ce.indented+(/^(?:case|default)\b/.test(H)?a:2*a):Ce.align?Ce.column+(Yr?0:1):Ce.indented+(Yr?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 My=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")(),Rr=v1;var y1=Rr.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 _1(e){return w1.call(e)}var Gp=_1;var S1="[object Null]",E1="[object Undefined]",Dp=gn?gn.toStringTag:void 0;function R1(e){return e==null?e===void 0?E1:S1:Dp&&Dp in Object(e)?kp(e):Gp(e)}var Zn=R1;function A1(e){return e!=null&&typeof e=="object"}var Dr=A1;var N1="[object Symbol]";function F1(e){return typeof e=="symbol"||Dr(e)&&Zn(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,Mp=Op?Op.toString:void 0;function Zp(e){if(typeof e=="string")return e;if(qt(e))return Wp(e,Zp)+"";if(Do(e))return Mp?Mp.call(e):"";var r=e+"";return r=="0"&&1/e==-U1?"-0":r}var Vp=Zp;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]",M1="[object Proxy]";function Z1(e){if(!Qr(e))return!1;var r=Zn(e);return r==W1||r==O1||r==D1||r==M1}var Oo=Z1;var V1=Rr["__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 ji=J1;var P1=/[\\^$.*+?()[\]{}|]/g,j1=/^\[object .+?Constructor\]$/,Y1=Function.prototype,z1=Object.prototype,q1=Y1.toString,K1=z1.hasOwnProperty,$1=RegExp("^"+q1.call(K1).replace(P1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!Qr(e)||Hp(e))return!1;var r=Oo(e)?$1:j1;return r.test(ji(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(Rr,"WeakMap"),xu=nT;var Pp=Object.create,iT=function(){function e(){}return function(r){if(!Qr(r))return{};if(Pp)return Pp(r);e.prototype=r;var n=new e;return e.prototype=void 0,n}}(),jp=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 Yp=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{}}(),Mo=cT;var hT=Mo?function(e,r){return Mo(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 Zo=vT;function yT(e,r,n){r=="__proto__"&&Mo?Mo(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 _T(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),Yp(e,this,b)}}var rg=_T;function ST(e,r){return $p(rg(e,r,Wo),e+"")}var ng=ST;var ET=9007199254740991;function RT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ET}var Vo=RT;function AT(e){return e!=null&&Vo(e.length)&&!Oo(e)}var ri=AT;function NT(e,r,n){if(!Qr(n))return!1;var a=typeof r;return(a=="number"?ri(n)&&Zo(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)&&Zn(e)==kT}var Rd=GT;var lg=Object.prototype,DT=lg.hasOwnProperty,WT=lg.propertyIsEnumerable,OT=Rd(function(){return arguments}())?Rd:function(e){return Dr(e)&&DT.call(e,"callee")&&!WT.call(e,"callee")},Yi=OT;function MT(){return!1}var sg=MT;var dg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ug=dg&&typeof module=="object"&&module&&!module.nodeType&&module,ZT=ug&&ug.exports===dg,fg=ZT?Rr.Buffer:void 0,VT=fg?fg.isBuffer:void 0,QT=VT||sg,Ii=QT;var HT="[object Arguments]",XT="[object Array]",JT="[object Boolean]",PT="[object Date]",jT="[object Error]",YT="[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[PT]=er[jT]=er[YT]=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[Zn(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,Ad=mC&&vu.process,bC=function(){try{var e=rs&&rs.require&&rs.require("util").types;return e||Ad&&Ad.binding&&Ad.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&&Yi(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 A in e)(r||xC.call(e,A))&&!(h&&(A=="length"||u&&(A=="offset"||A=="parent")||c&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Zo(A,x)))&&b.push(A);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,_C=wC.hasOwnProperty;function SC(e){if(!xa(e))return gg(e);var r=[];for(var n in Object(e))_C.call(e,n)&&n!="constructor"&&r.push(n);return r}var _u=SC;function EC(e){return ri(e)?Iu(e):_u(e)}var Gi=EC;function RC(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}var mg=RC;var AC=Object.prototype,NC=AC.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__",MC=Object.prototype,ZC=MC.hasOwnProperty;function VC(e){var r=this.__data__;if(qi){var n=r[e];return n===OC?void 0:n}return ZC.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 PC(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=PC;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 jC(){this.__data__=[],this.size=0}var Ig=jC;function YC(e,r){for(var n=e.length;n--;)if(Ui(e[n][0],r))return n;return-1}var Ca=YC;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 _g=$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=_g;Jo.prototype.has=Sg;Jo.prototype.set=Eg;var Ia=Jo;var rI=Nn(Rr,"Map"),wa=rI;function nI(){this.size=0,this.__data__={hash:new Nd,map:new(wa||Ia),string:new Nd}}var Rg=nI;function iI(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Ag=iI;function aI(e,r){var n=e.__data__;return Ag(r)?n[typeof r=="string"?"string":"hash"]:n.map}var _a=aI;function oI(e){var r=_a(this,e).delete(e);return this.size-=r?1:0,r}var Ng=oI;function lI(e){return _a(this,e).get(e)}var Fg=lI;function sI(e){return _a(this,e).has(e)}var Lg=sI;function uI(e,r){var n=_a(this,e),a=n.size;return n.set(e,r),this.size+=n.size==a?0:1,this}var Bg=uI;function Po(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])}}Po.prototype.clear=Rg;Po.prototype.delete=Ng;Po.prototype.get=Fg;Po.prototype.has=Lg;Po.prototype.set=Bg;var za=Po;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 Ru=CI;var II=wu(Object.getPrototypeOf,Object),jo=II;var wI="[object Object]",_I=Function.prototype,SI=Object.prototype,Wg=_I.toString,EI=SI.hasOwnProperty,RI=Wg.call(Object);function AI(e){if(!Dr(e)||Zn(e)!=wI)return!1;var r=jo(e);if(r===null)return!0;var n=EI.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&Wg.call(n)==RI}var Og=AI;function NI(e){return function(r){return e?.[r]}}var Au=NI;function FI(){this.__data__=new Ia,this.size=0}var Mg=FI;function LI(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}var Zg=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 Yo(e){var r=this.__data__=new Ia(e);this.size=r.size}Yo.prototype.clear=Mg;Yo.prototype.delete=Zg;Yo.prototype.get=Vg;Yo.prototype.has=Qg;Yo.prototype.set=Hg;var Wi=Yo;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,Pg=zg&&typeof module=="object"&&module&&!module.nodeType&&module,OI=Pg&&Pg.exports===zg,jg=OI?Rr.Buffer:void 0,Yg=jg?jg.allocUnsafe:void 0;function MI(e,r){if(r)return e.slice();var n=e.length,a=Yg?Yg(n):new e.constructor(n);return e.copy(a),a}var Nu=MI;function ZI(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=ZI;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 PI=Object.getOwnPropertySymbols,jI=PI?function(e){for(var r=[];e;)Ru(r,zo(e)),e=jo(e);return r}:Lu,Bu=jI;function YI(e,r){return ki(e,Bu(e),r)}var $g=YI;function zI(e,r,n){var a=r(e);return qt(e)?a:Ru(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(Rr,"DataView"),ku=$I;var ew=Nn(Rr,"Promise"),Gu=ew;var tw=Nn(Rr,"Set"),Du=tw;var tm="[object Map]",rw="[object Object]",rm="[object Promise]",nm="[object Set]",im="[object WeakMap]",am="[object DataView]",nw=ji(ku),iw=ji(wa),aw=ji(Gu),ow=ji(Du),lw=ji(xu),qa=Zn;(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=Zn(e),n=r==rw?e.constructor:void 0,a=n?ji(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=Rr.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]",_w="[object Symbol]",Sw="[object ArrayBuffer]",Ew="[object DataView]",Rw="[object Float32Array]",Aw="[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 Rw:case Aw: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 _w:return dm(e)}}var cm=Dw;function Ww(e){return typeof e.constructor=="function"&&!xa(e)?jp(jo(e)):{}}var Ou=Ww;var Ow="[object Map]";function Mw(e){return Dr(e)&&wi(e)==Ow}var hm=Mw;var pm=zi&&zi.isMap,Zw=pm?Qo(pm):hm,gm=Zw;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,Pw=4,ym="[object Arguments]",jw="[object Array]",Yw="[object Boolean]",zw="[object Date]",qw="[object Error]",xm="[object Function]",Kw="[object GeneratorFunction]",$w="[object Map]",e_="[object Number]",Tm="[object Object]",t_="[object RegExp]",r_="[object Set]",n_="[object String]",i_="[object Symbol]",a_="[object WeakMap]",o_="[object ArrayBuffer]",l_="[object DataView]",s_="[object Float32Array]",u_="[object Float64Array]",f_="[object Int8Array]",d_="[object Int16Array]",c_="[object Int32Array]",h_="[object Uint8Array]",p_="[object Uint8ClampedArray]",g_="[object Uint16Array]",m_="[object Uint32Array]",Kt={};Kt[ym]=Kt[jw]=Kt[o_]=Kt[l_]=Kt[Yw]=Kt[zw]=Kt[s_]=Kt[u_]=Kt[f_]=Kt[d_]=Kt[c_]=Kt[$w]=Kt[e_]=Kt[Tm]=Kt[t_]=Kt[r_]=Kt[n_]=Kt[i_]=Kt[h_]=Kt[p_]=Kt[g_]=Kt[m_]=!0;Kt[qw]=Kt[xm]=Kt[a_]=!1;function Mu(e,r,n,a,u,c){var h,b=r&Xw,x=r&Jw,A=r&Pw;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 O=c.get(e);if(O)return O;c.set(e,h),vm(e)?e.forEach(function(R){h.add(Mu(R,r,n,R,e,c))}):gm(e)&&e.forEach(function(R,k){h.set(k,Mu(R,r,n,k,e,c))});var U=A?x?em:ns:x?Di:Gi,J=I?void 0:U(e);return eg(J||e,function(R,k){J&&(k=R,R=e[k]),Cu(h,k,Mu(R,r,n,k,e,c))}),h}var Cm=Mu;var b_=1,v_=4;function y_(e){return Cm(e,b_|v_)}var $o=y_;var x_="__lodash_hash_undefined__";function T_(e){return this.__data__.set(e,x_),this}var Im=T_;function C_(e){return this.__data__.has(e)}var wm=C_;function Zu(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new za;++r<n;)this.add(e[r])}Zu.prototype.add=Zu.prototype.push=Im;Zu.prototype.has=wm;var _m=Zu;function I_(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=I_;function w_(e,r){return e.has(r)}var Em=w_;var __=1,S_=2;function E_(e,r,n,a,u,c){var h=n&__,b=e.length,x=r.length;if(b!=x&&!(h&&x>b))return!1;var A=c.get(e),I=c.get(r);if(A&&I)return A==r&&I==e;var F=-1,G=!0,O=n&S_?new _m:void 0;for(c.set(e,r),c.set(r,e);++F<b;){var U=e[F],J=r[F];if(a)var R=h?a(J,U,F,r,e,c):a(U,J,F,e,r,c);if(R!==void 0){if(R)continue;G=!1;break}if(O){if(!Sm(r,function(k,te){if(!Em(O,te)&&(U===k||u(U,k,n,a,c)))return O.push(te)})){G=!1;break}}else if(!(U===J||u(U,J,n,a,c))){G=!1;break}}return c.delete(e),c.delete(r),G}var Vu=E_;function R_(e){var r=-1,n=Array(e.size);return e.forEach(function(a,u){n[++r]=[u,a]}),n}var Rm=R_;function A_(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var Am=A_;var N_=1,F_=2,L_="[object Boolean]",B_="[object Date]",U_="[object Error]",k_="[object Map]",G_="[object Number]",D_="[object RegExp]",W_="[object Set]",O_="[object String]",M_="[object Symbol]",Z_="[object ArrayBuffer]",V_="[object DataView]",Nm=gn?gn.prototype:void 0,Ld=Nm?Nm.valueOf:void 0;function Q_(e,r,n,a,u,c,h){switch(n){case V_:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Z_:return!(e.byteLength!=r.byteLength||!c(new qo(e),new qo(r)));case L_:case B_:case G_:return Ui(+e,+r);case U_:return e.name==r.name&&e.message==r.message;case D_:case O_:return e==r+"";case k_:var b=Rm;case W_:var x=a&N_;if(b||(b=Am),e.size!=r.size&&!x)return!1;var A=h.get(e);if(A)return A==r;a|=F_,h.set(e,r);var I=Vu(b(e),b(r),a,u,c,h);return h.delete(e),I;case M_:if(Ld)return Ld.call(e)==Ld.call(r)}return!1}var Fm=Q_;var H_=1,X_=Object.prototype,J_=X_.hasOwnProperty;function P_(e,r,n,a,u,c){var h=n&H_,b=ns(e),x=b.length,A=ns(r),I=A.length;if(x!=I&&!h)return!1;for(var F=x;F--;){var G=b[F];if(!(h?G in r:J_.call(r,G)))return!1}var O=c.get(e),U=c.get(r);if(O&&U)return O==r&&U==e;var J=!0;c.set(e,r),c.set(r,e);for(var R=h;++F<x;){G=b[F];var k=e[G],te=r[G];if(a)var V=h?a(te,k,G,r,e,c):a(k,te,G,e,r,c);if(!(V===void 0?k===te||u(k,te,n,a,c):V)){J=!1;break}R||(R=G=="constructor")}if(J&&!R){var D=e.constructor,$=r.constructor;D!=$&&"constructor"in e&&"constructor"in r&&!(typeof D=="function"&&D instanceof D&&typeof $=="function"&&$ instanceof $)&&(J=!1)}return c.delete(e),c.delete(r),J}var Lm=P_;var j_=1,Bm="[object Arguments]",Um="[object Array]",Qu="[object Object]",Y_=Object.prototype,km=Y_.hasOwnProperty;function z_(e,r,n,a,u,c){var h=qt(e),b=qt(r),x=h?Um:wi(e),A=b?Um:wi(r);x=x==Bm?Qu:x,A=A==Bm?Qu:A;var I=x==Qu,F=A==Qu,G=x==A;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&j_)){var O=I&&km.call(e,"__wrapped__"),U=F&&km.call(r,"__wrapped__");if(O||U){var J=O?e.value():e,R=U?r.value():r;return c||(c=new Wi),u(J,R,n,a,c)}}return G?(c||(c=new Wi),Lm(e,r,n,a,u,c)):!1}var Gm=z_;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 q_=1,K_=2;function $_(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],A=e[x],I=b[1];if(h&&b[2]){if(A===void 0&&!(x in e))return!1}else{var F=new Wi;if(a)var G=a(A,I,x,e,r,F);if(!(G===void 0?Hu(I,A,q_|K_,a,F):G))return!1}}return!0}var Wm=$_;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 Mm=nS;function iS(e,r){return e!=null&&r in Object(e)}var Zm=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)&&Zo(h,u)&&(qt(e)||Yi(e)))}var Vm=aS;function oS(e,r){return e!=null&&Vm(e,r,Zm)}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 Pm=cS;function hS(e){return typeof e=="function"?e:e==null?Wo:typeof e=="object"?qt(e)?Hm(e[0],e[1]):Mm(e):Pm(e)}var Pu=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 jm=pS;var gS=jm(),ju=gS;function mS(e,r){return e&&ju(e,r,Gi)}var Yu=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 Ym=bS;var vS=Ym(Yu),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),A=h.get(x);if(A){is(e,n,A);return}var I=c?c(b,x,n+"",e,r,h):void 0,F=I===void 0;if(F){var G=qt(x),O=!G&&Ii(x),U=!G&&!O&&Ta(x);I=x,G||O||U?qt(b)?I=b:qm(b)?I=Tu(b):O?(F=!1,I=Nu(x,!0)):U?(F=!1,I=Wu(x,!0)):I=[]:Og(x)||Yi(x)?(I=b,Yi(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&&ju(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={"&":"&","<":"<",">":">",'"':""","'":"'"},_S=Au(wS),rb=_S;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 RS(e,r){var n=[];return zm(e,function(a,u,c){r(a,u,c)&&n.push(a)}),n}var ib=RS;function AS(e,r){var n=qt(e)?Fu:ib;return n(e,Pu(r,3))}var Ud=AS;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)||Yi(e)))return!e.length;var r=wi(e);if(r==NS||r==FS)return!e.size;if(xa(e))return!_u(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=Pu(r,3),Yu(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={"&":"&","<":"<",">":">",""":'"',"'":"'"},WS=Au(DS),ab=WS;var ob=/&(?:amp|lt|gt|quot|#39);/g,OS=RegExp(ob.source);function MS(e){return e=Sa(e),e&&OS.test(e)?e.replace(ob,ab):e}var Gd=MS;var ZS=0;function VS(e){var r=++ZS;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:Pd}=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)});Pd||(Pd=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),PS=vn(Array.prototype.splice),$u=vn(String.prototype.toLowerCase),Od=vn(String.prototype.toString),Md=vn(String.prototype.match),ss=vn(String.prototype.replace),jS=vn(String.prototype.indexOf),YS=vn(String.prototype.trim),_i=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 Pd(e,n)}}function Et(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++)_i(e,r)||(e[r]=null);return e}function Ki(e){let r=Xd(null);for(let[n,a]of gb(e))_i(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"]),Zd=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:A,NamedNodeMap:I=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:F,DOMParser:G,trustedTypes:O}=e,U=x.prototype,J=fs(U,"cloneNode"),R=fs(U,"remove"),k=fs(U,"nextSibling"),te=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,$="",{implementation:m,createNodeIterator:M,createDocumentFragment:K,getElementsByTagName:ue}=n,{importNode:Te}=a,z=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,wt=Et({},[...ub,...Zd,...Vd,...Qd,...fb]),Ye=null,Qe=Et({},[...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}})),Ae=!0,ct=!0,St=!1,pt=!0,st=!1,$e=!0,Tt=!1,ut=!1,mt=!1,je=!1,vr=!1,yr=!1,tr=!0,Ot=!1,cr="user-content-",Be=!0,gt=!1,lr={},hr=null,Zt=Et({},["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,Pt=Et({},["audio","video","img","source","image","track"]),rr=null,sr=Et({},["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=Et({},[Tr,sn,at],Od),Ft=Et({},["mi","mo","mn","ms","mtext"]),Lt=Et({},["annotation-xml"]),Jr=Et({},["title","style","font","a","script"]),ur=null,jt=["application/xhtml+xml","text/html"],Bt="text/html",Vt=null,nr=null,kn=n.createElement("form"),hi=function(q){return q instanceof RegExp||q instanceof Function},pr=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nr&&nr===q)){if((!q||typeof q!="object")&&(q={}),q=Ki(q),ur=jt.indexOf(q.PARSER_MEDIA_TYPE)===-1?Bt:q.PARSER_MEDIA_TYPE,Vt=ur==="application/xhtml+xml"?Od:$u,Ne=_i(q,"ALLOWED_TAGS")?Et({},q.ALLOWED_TAGS,Vt):wt,Ye=_i(q,"ALLOWED_ATTR")?Et({},q.ALLOWED_ATTR,Vt):Qe,en=_i(q,"ALLOWED_NAMESPACES")?Et({},q.ALLOWED_NAMESPACES,Od):Cr,rr=_i(q,"ADD_URI_SAFE_ATTR")?Et(Ki(sr),q.ADD_URI_SAFE_ATTR,Vt):sr,xr=_i(q,"ADD_DATA_URI_TAGS")?Et(Ki(Pt),q.ADD_DATA_URI_TAGS,Vt):Pt,hr=_i(q,"FORBID_CONTENTS")?Et({},q.FORBID_CONTENTS,Vt):Zt,Ge=_i(q,"FORBID_TAGS")?Et({},q.FORBID_TAGS,Vt):Ki({}),He=_i(q,"FORBID_ATTR")?Et({},q.FORBID_ATTR,Vt):Ki({}),lr=_i(q,"USE_PROFILES")?q.USE_PROFILES:!1,Ae=q.ALLOW_ARIA_ATTR!==!1,ct=q.ALLOW_DATA_ATTR!==!1,St=q.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=q.SAFE_FOR_TEMPLATES||!1,$e=q.SAFE_FOR_XML!==!1,Tt=q.WHOLE_DOCUMENT||!1,je=q.RETURN_DOM||!1,vr=q.RETURN_DOM_FRAGMENT||!1,yr=q.RETURN_TRUSTED_TYPE||!1,mt=q.FORCE_BODY||!1,tr=q.SANITIZE_DOM!==!1,Ot=q.SANITIZE_NAMED_PROPS||!1,Be=q.KEEP_CONTENT!==!1,gt=q.IN_PLACE||!1,lt=q.ALLOWED_URI_REGEXP||mb,$r=q.NAMESPACE||at,Ft=q.MATHML_TEXT_INTEGRATION_POINTS||Ft,Lt=q.HTML_INTEGRATION_POINTS||Lt,Le=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&hi(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&hi(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Le.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(ct=!1),vr&&(je=!0),lr&&(Ne=Et({},fb),Ye=[],lr.html===!0&&(Et(Ne,ub),Et(Ye,db)),lr.svg===!0&&(Et(Ne,Zd),Et(Ye,Hd),Et(Ye,Ku)),lr.svgFilters===!0&&(Et(Ne,Vd),Et(Ye,Hd),Et(Ye,Ku)),lr.mathMl===!0&&(Et(Ne,Qd),Et(Ye,cb),Et(Ye,Ku))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?bt.tagCheck=q.ADD_TAGS:(Ne===wt&&(Ne=Ki(Ne)),Et(Ne,q.ADD_TAGS,Vt))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?bt.attributeCheck=q.ADD_ATTR:(Ye===Qe&&(Ye=Ki(Ye)),Et(Ye,q.ADD_ATTR,Vt))),q.ADD_URI_SAFE_ATTR&&Et(rr,q.ADD_URI_SAFE_ATTR,Vt),q.FORBID_CONTENTS&&(hr===Zt&&(hr=Ki(hr)),Et(hr,q.FORBID_CONTENTS,Vt)),Be&&(Ne["#text"]=!0),Tt&&Et(Ne,["html","head","body"]),Ne.table&&(Et(Ne,["tbody"]),delete Ge.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=q.TRUSTED_TYPES_POLICY,$=D.createHTML("")}else D===void 0&&(D=uE(O,u)),D!==null&&typeof $=="string"&&($=D.createHTML(""));bn&&bn(q),nr=q}},Gn=Et({},[...Zd,...Vd,...KS]),Dn=Et({},[...Qd,...$S]),pi=function(q){let we=V(q);(!we||!we.tagName)&&(we={namespaceURI:$r,tagName:"template"});let Oe=$u(q.tagName),kt=$u(we.tagName);return en[q.namespaceURI]?q.namespaceURI===sn?we.namespaceURI===at?Oe==="svg":we.namespaceURI===Tr?Oe==="svg"&&(kt==="annotation-xml"||Ft[kt]):!!Gn[Oe]:q.namespaceURI===Tr?we.namespaceURI===at?Oe==="math":we.namespaceURI===sn?Oe==="math"&&Lt[kt]:!!Dn[Oe]:q.namespaceURI===at?we.namespaceURI===sn&&!Lt[kt]||we.namespaceURI===Tr&&!Ft[kt]?!1:!Dn[Oe]&&(Jr[Oe]||!Gn[Oe]):!!(ur==="application/xhtml+xml"&&en[q.namespaceURI]):!1},Or=function(q){ls(r.removed,{element:q});try{V(q).removeChild(q)}catch{R(q)}},Mr=function(q,we){try{ls(r.removed,{attribute:we.getAttributeNode(q),from:we})}catch{ls(r.removed,{attribute:null,from:we})}if(we.removeAttribute(q),q==="is")if(je||vr)try{Or(we)}catch{}else try{we.setAttribute(q,"")}catch{}},Pr=function(q){let we=null,Oe=null;if(mt)q="<remove></remove>"+q;else{let ht=Md(q,/^[\r\n\t ]+/);Oe=ht&&ht[0]}ur==="application/xhtml+xml"&&$r===at&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");let kt=D?D.createHTML(q):q;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?$:kt}catch{}}let Yt=we.body||we.documentElement;return q&&Oe&&Yt.insertBefore(n.createTextNode(Oe),Yt.childNodes[0]||null),$r===at?ue.call(we,Tt?"html":"body")[0]:Tt?we.documentElement:Yt},Cn=function(q){return M.call(q.ownerDocument||q,q,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},Ri=function(q){return q instanceof F&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof I)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},tn=function(q){return typeof b=="function"&&q instanceof b};function rn(Xe,q,we){qu(Xe,Oe=>{Oe.call(r,q,we,nr)})}let gi=function(q){let we=null;if(rn(z.beforeSanitizeElements,q,null),Ri(q))return Or(q),!0;let Oe=Vt(q.nodeName);if(rn(z.uponSanitizeElement,q,{tagName:Oe,allowedTags:Ne}),$e&&q.hasChildNodes()&&!tn(q.firstElementChild)&&mn(/<[/\w!]/g,q.innerHTML)&&mn(/<[/\w!]/g,q.textContent)||q.nodeType===ds.progressingInstruction||$e&&q.nodeType===ds.comment&&mn(/<[/\w]/g,q.data))return Or(q),!0;if(!(bt.tagCheck instanceof Function&&bt.tagCheck(Oe))&&(!Ne[Oe]||Ge[Oe])){if(!Ge[Oe]&&jr(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(q)||q.parentNode,Yt=te(q)||q.childNodes;if(Yt&&kt){let ht=Yt.length;for(let De=ht-1;De>=0;--De){let wr=J(Yt[De],!0);wr.__removalCount=(q.__removalCount||0)+1,kt.insertBefore(wr,k(q))}}}return Or(q),!0}return q instanceof x&&!pi(q)||(Oe==="noscript"||Oe==="noembed"||Oe==="noframes")&&mn(/<\/no(script|embed|frames)/i,q.innerHTML)?(Or(q),!0):(st&&q.nodeType===ds.text&&(we=q.textContent,qu([he,L,xe],kt=>{we=ss(we,kt," ")}),q.textContent!==we&&(ls(r.removed,{element:q.cloneNode()}),q.textContent=we)),rn(z.afterSanitizeElements,q,null),!1)},Ir=function(q,we,Oe){if(tr&&(we==="id"||we==="name")&&(Oe in n||Oe in kn))return!1;if(!(ct&&!He[we]&&mn(ae,we))){if(!(Ae&&mn(Ie,we))){if(!(bt.attributeCheck instanceof Function&&bt.attributeCheck(we,q))){if(!Ye[we]||He[we]){if(!(jr(q)&&(Le.tagNameCheck instanceof RegExp&&mn(Le.tagNameCheck,q)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(q))&&(Le.attributeNameCheck instanceof RegExp&&mn(Le.attributeNameCheck,we)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(we,q))||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")&&q!=="script"&&jS(Oe,"data:")===0&&xr[q])){if(!(St&&!mn(Fe,ss(Oe,nt,"")))){if(Oe)return!1}}}}}}}return!0},jr=function(q){return q!=="annotation-xml"&&Md(q,Ke)},In=function(q){rn(z.beforeSanitizeAttributes,q,null);let{attributes:we}=q;if(!we||Ri(q))return;let Oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ye,forceKeepAttr:void 0},kt=we.length;for(;kt--;){let Yt=we[kt],{name:ht,namespaceURI:De,value:wr}=Yt,nn=Vt(ht),Nr=wr,N=ht==="value"?Nr:YS(Nr);if(Oe.attrName=nn,Oe.attrValue=N,Oe.keepAttr=!0,Oe.forceKeepAttr=void 0,rn(z.uponSanitizeAttribute,q,Oe),N=Oe.attrValue,Ot&&(nn==="id"||nn==="name")&&(Mr(ht,q),N=cr+N),$e&&mn(/((--!?|])>)|<\/(style|title|textarea)/i,N)){Mr(ht,q);continue}if(nn==="attributename"&&Md(N,"href")){Mr(ht,q);continue}if(Oe.forceKeepAttr)continue;if(!Oe.keepAttr){Mr(ht,q);continue}if(!pt&&mn(/\/>/i,N)){Mr(ht,q);continue}st&&qu([he,L,xe],pe=>{N=ss(N,pe," ")});let H=Vt(q.nodeName);if(!Ir(H,nn,N)){Mr(ht,q);continue}if(D&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!De)switch(O.getAttributeType(H,nn)){case"TrustedHTML":{N=D.createHTML(N);break}case"TrustedScriptURL":{N=D.createScriptURL(N);break}}if(N!==Nr)try{De?q.setAttributeNS(De,ht,N):q.setAttribute(ht,N),Ri(q)?Or(q):sb(r.removed)}catch{Mr(ht,q)}}rn(z.afterSanitizeAttributes,q,null)},Xn=function Xe(q){let we=null,Oe=Cn(q);for(rn(z.beforeSanitizeShadowDOM,q,null);we=Oe.nextNode();)rn(z.uponSanitizeShadowNode,we,null),gi(we),In(we),we.content instanceof c&&Xe(we.content);rn(z.afterSanitizeShadowDOM,q,null)};return r.sanitize=function(Xe){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=null,Oe=null,kt=null,Yt=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(q),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=Pr("<!---->"),Oe=we.ownerDocument.importNode(Xe,!0),Oe.nodeType===ds.element&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?we=Oe:we.appendChild(Oe);else{if(!je&&!st&&!Tt&&Xe.indexOf("<")===-1)return D&&yr?D.createHTML(Xe):Xe;if(we=Pr(Xe),!we)return je?null:yr?$:""}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(je){if(vr)for(Yt=K.call(we.ownerDocument);we.firstChild;)Yt.appendChild(we.firstChild);else Yt=we;return(Ye.shadowroot||Ye.shadowrootmode)&&(Yt=Te.call(a,Yt,!0)),Yt}let De=Tt?we.outerHTML:we.innerHTML;return Tt&&Ne["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&mn(bb,we.ownerDocument.doctype.name)&&(De="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
|
|
43
|
-
`+
|
|
44
|
-
`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},PR=/[\x00-\x20<>\\"\{\}\|\^\`]/,jR={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},YR=/$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 jR)&&this[n]instanceof RegExp&&(this[n]=YR)}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 A=this._line,I=a[0],F="",G="",O="",U=null,J=0,R=!1;switch(I){case"^":if(a.length<3)break;if(a[1]==="^"){if(this._previousMarker="^^",a=a.substr(2),a[0]!=="<"){R=!0;break}}else{this._n3Mode&&(J=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||PR.test(G))return h(this);F="IRI"}else a.length>1&&a[1]==="<"?(F="<<",J=2):this._n3Mode&&a.length>1&&a[1]==="="&&(J=2,this._isImpliedBy?(F="abbreviation",G="<"):(F="inverse",G=">"));break;case">":a.length>1&&a[1]===">"&&(F=">>",J=2);break;case"_":((U=this._blank.exec(a))||n&&(U=this._blank.exec(`${a} `)))&&(F="blank",O="_",G=U[1]);break;case'"':if(U=this._simpleQuotedString.exec(a))G=U[1];else if({value:G,matchLength:J}=this._parseLiteral(a),G===null)return h(this);(U!==null||J!==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:J}=this._parseLiteral(a),G===null)return h(this);(U!==null||J!==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=".",J=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],O=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():R=!0;break;case"f":case"t":(U=this._boolean.exec(a))?(F="literal",G=U[0],O=af.boolean):R=!0;break;case"a":(U=this._shortPredicates.exec(a))?(F="abbreviation",G="a"):R=!0;break;case"=":this._n3Mode&&a.length>1&&(F="abbreviation",a[1]!==">"?(J=1,G="="):(J=2,G=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(J=1,F=I);break;case"{":!this._lineMode&&a.length>=2&&(a[1]==="|"?(F="{|",J=2):(F=I,J=1));break;case"|":a.length>=2&&a[1]==="}"&&(F="|}",J=2);break;default:R=!0}if(R&&((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",O=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=J||U[0].length,te=c(F,G,O,A,k);this.previousToken=te,this._previousMarker=F,a=a.substr(k,a.length)}function c(b,x,A,I,F){let G=a?u-a.length:u,O=G+F,U={type:b,value:x,prefix:A,line:I,start:G,end:O};return r(null,U),U}function h(b){r(b._syntaxError(/^\S*/.exec(a)[0]))}}_unescape(r){let n=!1,a=r.replace(JR,(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:zR,xsd:ll}=Bn,ws,qR=0;var KR={namedNode:x0,blankNode:T0,variable:I0,literal:C0,defaultGraph:$R,quad:bc,triple:bc,fromTerm:Cs,fromQuad:w0},y0=KR,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:zR.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-${qR++}`)}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 $R(){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 _0=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=A=>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(){_0=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${_0++}_`,this._prefixCallback=c||sf,this._inversePredicate=!1,this._quantified=Object.create(null),!u){let x=[],A;if(this._callback=(I,F)=>{I?A=I:F&&x.push(F)},this._lexer.tokenize(r).every(I=>this._readCallback=this._readCallback(I)),A)throw A;return x}let b=(x,A)=>{x!==null?(this._callback(x),this._callback=sf):this._readCallback&&(this._readCallback=this._readCallback(A))};h&&(this._lexer.comments=!0,b=(x,A)=>{x!==null?(this._callback(x),this._callback=sf):this._readCallback&&(A.type==="comment"?h(A.value):this._readCallback=this._readCallback(A))}),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 tA(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 rA=["uri","literal","bnode","typed-literal"];function nA(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 A=0;A<b.childNodes.length;A++){let I=b.childNodes[A];if(I.nodeName==="#text"||rA.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 iA(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=tA(b)),b.nodeName=="results"&&(c.results=nA(b,r)),b.nodeName=="boolean"&&(c.boolean=iA(b))}return c}var A0=Gr(R0());function N0(e){let r=A0.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[
|
|
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 A=b(x,h);return A===void 0?u:A}}}}throw new Error("Invalid field info option. "+JSON.stringify(a))})}getHeader(){return _s(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 _s(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 _s(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 sA={[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(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.statusText,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&(this.errorSummary={text:this.error.message})),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 Zi=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 Rt(this)},this.each(function(){var c={},h=u>1?pv(c,r,!0):r,b=0,x,A=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),Rv(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 O=G[b];if(O.nTable==this||O.nTHead&&O.nTHead.parentNode==this||O.nTFoot&&O.nTFoot.parentNode==this){var U=h.bRetrieve!==void 0?h.bRetrieve:I.bRetrieve,J=h.bDestroy!==void 0?h.bDestroy:I.bDestroy;if(a||U)return O.oInstance;if(J){new ye.Api(O).destroy();break}else{ui(O,0,"Cannot reinitialise DataTable",3);return}}if(O.sTableId==this.id){G.splice(b,1);break}}(A===null||A==="")&&(A="DataTables_Table_"+ye.ext._unique++,this.id=A),F.children("colgroup").remove();var R=Q.extend(!0,{},ye.models.oSettings,{sDestroyWidth:F[0].style.width,sInstance:A,sTableId:A,colgroup:Q("<colgroup>").prependTo(this),fastData:function(ae,Ie,Fe){return fi(R,ae,Ie,Fe)}});R.nTable=this,R.oInit=h,G.push(R),R.api=new Rt(R),R.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(R.oFeatures,h,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Ba(R,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(R.oScroll,h,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Ba(R.oLanguage,h,"fnInfoCallback"),si(R,"aoDrawCallback",h.fnDrawCallback),si(R,"aoStateSaveParams",h.fnStateSaveParams),si(R,"aoStateLoadParams",h.fnStateLoadParams),si(R,"aoStateLoaded",h.fnStateLoaded),si(R,"aoRowCallback",h.fnRowCallback),si(R,"aoRowCreatedCallback",h.fnCreatedRow),si(R,"aoHeaderCallback",h.fnHeaderCallback),si(R,"aoFooterCallback",h.fnFooterCallback),si(R,"aoInitComplete",h.fnInitComplete),si(R,"aoPreDrawCallback",h.fnPreDrawCallback),R.rowIdFn=hl(h.rowId),h.on&&Object.keys(h.on).forEach(function(ae){gv(F,ae,h.on[ae])}),bA(R);var k=R.oClasses;Q.extend(k,ye.ext.classes,h.oClasses),F.addClass(k.table),R.oFeatures.bPaginate||(h.iDisplayStart=0),R.iInitDisplayStart===void 0&&(R.iInitDisplayStart=h.iDisplayStart,R._iDisplayStart=h.iDisplayStart);var te=h.iDeferLoading;if(te!==null){R.deferLoading=!0;var V=Array.isArray(te);R._iRecordsDisplay=V?te[0]:te,R._iRecordsTotal=V?te[1]:te}var D=[],$=this.getElementsByTagName("thead"),m=kv(R,$[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++)Av(R);xA(R,h.aoColumnDefs,D,m,function(ae,Ie){Uc(R,ae,Ie)});var M=F.children("tbody").find("tr:first-child").eq(0);if(M.length){var K=function(ae,Ie){return ae.getAttribute("data-"+Ie)!==null?Ie:null};Q(M[0]).children("th, td").each(function(ae,Ie){var Fe=R.aoColumns[ae];if(Fe||ui(R,0,"Incorrect column count",18),Fe.mData===ae){var nt=K(Ie,"sort")||K(Ie,"order"),Ke=K(Ie,"filter")||K(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(R,ae))}})}si(R,"aoDrawCallback",Gf);var ue=R.oFeatures;if(h.bStateSave&&(ue.bStateSave=!0),h.aaSorting===void 0){var Te=R.aaSorting;for(b=0,x=Te.length;b<x;b++)Te[b][1]=R.aoColumns[b].asSorting[0]}Dc(R),si(R,"aoDrawCallback",function(){(R.bSorted||Hn(R)==="ssp"||ue.bDeferRender)&&Dc(R)});var z=F.children("caption");R.caption&&(z.length===0&&(z=Q("<caption/>").appendTo(F)),z.html(R.caption)),z.length&&(z[0]._captionSide=z.css("caption-side"),R.captionNode=z[0]),$.length===0&&($=Q("<thead/>").appendTo(F)),R.nTHead=$[0];var he=F.children("tbody");he.length===0&&(he=Q("<tbody/>").insertAfter($)),R.nTBody=he[0];var L=F.children("tfoot");L.length===0&&(L=Q("<tfoot/>").appendTo(F)),R.nTFoot=L[0],R.aiDisplay=R.aiDisplayMaster.slice(),R.bInitialised=!0;var xe=R.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,R.oInit.oLanguage),Dt(R,null,"i18n",[R],!0),Cf(R)},error:function(){ui(R,0,"i18n file loading error",21),Cf(R)}}):(Dt(R,null,"i18n",[R],!0),Cf(R))}),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,Rt,ze,Qt,Rc={},cA=/[\r\n\u2028]/g,Mc=/<([^>]*>)/g,hA=Math.pow(2,28),av=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,pA=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),Zc=/['\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},_v=function(e,r){return Rc[r]||(Rc[r]=new RegExp(Gc(r),"g")),typeof e=="string"&&r!=="."?e.replace(/\./g,"").replace(Rc[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=_v(e,r)),n&&c&&(e=e.replace(Zc,"")),!isNaN(parseFloat(e))&&isFinite(e))},gA=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=gA(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>hA)throw new Error("Exceeded max str len");var r;e=e.replace(Mc,"");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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):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},mA=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(mA(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(pA,"\\$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,A,I,F,G=0,O=c.length-1;G<O;G++){if(c[G]==="__proto__"||c[G]==="constructor")throw new Error("Cannot set prototype values");if(x=c[G].match(Ss),A=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,J=a.length;U<J;U++)I={},r(I,a[U],F),n[c[G]].push(I);else n[c[G]]=a;return}else A&&(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,A;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),A=I.join("."),Array.isArray(a))for(var O=0,U=a.length;O<U;O++)x.push(n(a[O],u,A));var J=h[0].substring(1,h[0].length-1);a=J===""?x:x.join(J);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 Rv(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 bA(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 Av(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){Rv(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 A=function(I){return typeof I=="string"&&I.indexOf("@")!==-1};a._bAttrSrc=Q.isPlainObject(c)&&(A(c.sort)||A(c.type)||A(c.filter)),a._setter=null,a.fnGetData=function(I,F,G){var O=h(I,F,void 0,G);return a._render&&F?a._render(O,F,I,G):O},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){kA(e),vA(e);var r=e.oScroll;(r.sY!==""||r.sX!=="")&&Ov(e),Dt(e,null,"column-sizing",[e])}function vA(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 Ac(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,A,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 O=a[h],U=O.oneOf,J=O.allOf||O,R=O.init,k=!1;if(F=null,R&&(F=Ac(O,R(e,I,u)),F)){I.sType=F;break}for(x=0,A=n.length;x<A&&!(n[x]&&(G[x]===void 0&&(G[x]=fi(e,x,u,"type")),U&&!k&&(k=Ac(O,U(G[x],e))),F=Ac(O,J(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 te=Xr.type.className[I.sType];te&&(lv(e.aoHeader,u,te),lv(e.aoFooter,u,te));var V=Xr.type.render[I.sType];V&&!I._render&&(I._render=ye.util.get(V),yA(e,u))}}function yA(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,_f(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 xA(e,r,n,a,u){var c,h,b,x,A,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 O=F.target!==void 0?F.target:F.targets!==void 0?F.targets:F.aTargets;for(Array.isArray(O)||(O=[O]),b=0,x=O.length;b<x;b++){var U=O[b];if(typeof U=="number"&&U>=0){for(;G.length<=U;)Av(e);u(U,F)}else if(typeof U=="number"&&U<0)u(G.length+U,F);else if(typeof U=="string")for(A=0,I=G.length;A<I;A++)U==="_all"?u(A,F):U.indexOf(":name")!==-1?G[A].sName===U.replace(":name","")&&u(A,F):a.forEach(function(J){if(J[A]){var R=Q(J[A].cell);U.match(/^[a-z][\w-]*$/i)&&(U="."+U),R.is(U)&&u(A,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 A=h[r[b]],I=n?A.sWidthOrig:A.sWidth;if(!(!a&&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 A=e.rowIdFn(r);return A!==void 0&&(e.aIds[A]=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,A=h.fnGetData(b,a,{settings:e,row:r,col:n});if(a!=="display"&&A&&typeof A=="object"&&A.nodeName&&(A=A.innerHTML),A===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((A===b||A===null)&&x!==null&&a!==void 0)A=x;else if(typeof A=="function")return A.call(b);if(A===null&&a==="display")return"";if(a==="filter"){var I=ye.ext.type.search;I[h.sType]&&(A=I[h.sType](A))}return A}}function TA(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 _f(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=Pc(e,r);if(b)if(a!==void 0)_f(b[a],x[a]);else for(c=0,h=b.length;c<h;c++)_f(b[c],x[c])}var A=e.aoColumns;if(a!==void 0)A[a].sType=null,A[a].wideStrings=null;else{for(c=0,h=A.length;c<h;c++)A[c].sType=null,A[c].wideStrings=null;Bv(e,u)}}function Fv(e,r,n,a){var u=[],c=r.firstChild,h,b,x=0,A,I=e.aoColumns,F=e._rowReadObject;a=a!==void 0?a:F?{}:[];var G=function(te,V){if(typeof te=="string"){var D=te.indexOf("@");if(D!==-1){var $=te.substring(D+1),m=lo(te);m(a,V.getAttribute($))}}},O=function(te){if(n===void 0||n===x)if(b=I[x],A=te.innerHTML.trim(),b&&b._bAttrSrc){var V=lo(b.mData._);V(a,A),G(b.mData.sort,te),G(b.mData.type,te),G(b.mData.filter,te)}else F?(b._setter||(b._setter=lo(b.mData)),b._setter(a,A)):a[x]=A;x++};if(c)for(;c;)h=c.nodeName.toUpperCase(),(h=="TD"||h=="TH")&&(O(c),u.push(c)),c=c.nextSibling;else{u=r.anCells;for(var U=0,J=u.length;U<J;U++)O(u[U])}var R=r.firstChild?r:r.nTr;if(R){var k=R.getAttribute("id");k&&lo(e.rowId)(a,k)}return{data:a,cells:u}}function Pc(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,A,I,F,G,O=e.oClasses.tbody.row;if(u.nTr===null){for(b=n||document.createElement("tr"),u.nTr=b,u.anCells=h,cl(b,O),b._DT_RowIndex=r,Bv(e,u),I=0,F=e.aoColumns.length;I<F;I++){A=e.aoColumns[I],G=!(n&&a[I]),x=G?document.createElement(A.sCellType):a[I],x||ui(e,0,"Incorrect column count",18),x._DT_CellIndex={row:r,column:I},h.push(x);var U=Pc(e,r);(G||(A.mRender||A.mData!==I)&&(!Q.isPlainObject(A.mData)||A.mData._!==I+".display"))&&_f(x,U[I]),cl(x,A.sClass),A.bVisible&&G?b.appendChild(x):!A.bVisible&&!G&&x.parentNode.removeChild(x),A.fnCreatedCell&&A.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,O)}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 A=0;for(Q("td, th",h).each(function(){A+=this.colSpan}),u=A,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(){Rf(e,r)(e,Q(this),n)})}}function Uv(e,r,n){var a,u,c,h=[],b=[],x=e.aoColumns,A=x.length,I,F;if(r){for(n||(n=Na(A).filter(function(U){return x[U].bVisible})),a=0;a<r.length;a++)h[a]=r[a].slice().filter(function(U,J){return n.includes(J)}),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 O=Q("span.dt-column-title",c);b[a][u]={cell:c,colspan:F,rowspan:I,title:O.length?O.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){SA(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(),A=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)),EA(e);return}if(h.length!==0)for(var F=c?0:b,G=c?e.aoData.length:x,O=F;O<G;O++){var U=h[O],J=e.aoData[U];if(J!==null){J.nTr===null&&Lv(e,U);for(var R=J.nTr,k=0;k<A.length;k++){var te=A[k],V=J.anCells[k];cl(V,Xr.type.className[te.sType]),cl(V,e.oClasses.tbody.cell)}Dt(e,"aoRowCallback",null,[R,J._aData,u,O,U]),a.push(R),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?As(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 CA(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,A=b[3]?b[3].toLowerCase():"full";if(b[1]===n){var I=CA(a,x,A);kc(I,A,h)}}}),a.sort(function(c,h){var b=c.rowNum,x=h.rowNum;if(b===x){var A=c.full&&!h.full?-1:1;return n==="bottom"?A*-1:A}return x-b}),n==="bottom"&&a.reverse();for(var u=0;u<a.length;u++)delete a[u].rowNum,IA(e,a[u]);return a}function IA(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 wA(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)_A(e,e.sDom,a);else{var u=cv(e,e.layout,"top"),c=cv(e,e.layout,"bottom"),h=Rf(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)})}UA(e)}function _A(e,r,n){for(var a=r.match(/(".*?")|('.*?')|./g),u,c,h,b,x,A=0;A<a.length;A++){if(u=null,c=a[A],c=="<"){if(h=Q("<div/>"),b=a[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),A++}n.append(h),n=h}else c==">"?n=n.parent():c=="t"?u=Wv(e):ye.ext.feature.forEach(function(O){c==O.cFeature&&(u=O.fnInit(e))});u&&n.append(u)}}function kv(e,r,n){var a=e.aoColumns,u=Q(r).children("tr"),c,h,b,x,A,I,F,G,O,U,J=e.titleRow,R=r&&r.nodeName.toLowerCase()==="thead",k=[],te,V=function(Te,z,he){for(var L=Te[z];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=[],$=Q(h);if(O=h.getAttribute("colspan")*1,U=h.getAttribute("rowspan")*1,O=!O||O===0||O===1?1:O,U=!U||U===0||U===1?1:U,F=V(k,b,G),te=O===1,n){if(te){Uc(e,F,Xv($.data()));var m=a[F],M=h.getAttribute("width")||null,K=h.style.width.match(/width:\s*(\d+[pxem%]+)/);K&&(M=K[1]),m.sWidthOrig=m.sWidth||M,R?(m.sTitle!==null&&!m.autoTitle&&(J===!0&&b===0||J===!1&&b===u.length-1||J===b||J===null)&&(h.innerHTML=m.sTitle),!m.sTitle&&te&&(m.sTitle=ra(h.innerHTML),m.autoTitle=!0)):m.footer&&(h.innerHTML=m.footer),m.ariaTitle||(m.ariaTitle=$.attr("aria-label")||m.sTitle),m.className&&$.addClass(m.className)}Q("span.dt-column-title",h).length===0&&Q("<span>").addClass("dt-column-title").append(h.childNodes).appendTo(h),e.orderIndicators&&R&&$.filter(":not([data-dt-order=disable])").length!==0&&$.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 ue=R?"header":"footer";Q("span.dt-column-"+ue,h).length===0&&Q("<div>").addClass("dt-column-"+ue).append(h.childNodes).appendTo(h)}for(A=0;A<O;A++){for(x=0;x<U;x++)k[b+x][F+A]={cell:h,unique:te},k[b+x].row=c;D.push(F+A)}h.setAttribute("data-dt-column",gl(D).join(","))}h=h.nextSibling}return k}function SA(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 jc(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={},Rs(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 A={};Rs(e,A,[]),h(A)}else e.jqXHR=Q.ajax(x);a&&(u.data=a)}function EA(e){e.iDraw++,Qn(e,!0),jc(e,RA(e),function(r){AA(e,r)})}function RA(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 AA(e,r){var n=Rs(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 Rs(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 As(e,r){var n=e.aoPreSearchCols;if(Hn(e)!="ssp"){BA(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)})}NA(e)}e.bFiltered=!0,Dt(e,null,"search",[e])}function NA(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,A=n.length;x<A;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:FA(n,a);for(c=0;c<e.length;c++){var A=r.aoData[e[c]],I=u===void 0?A._sFilterRow:A._aFilterData[u];(b&&b(I,A._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 FA(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 A=!1,I;return x.charAt(0)==="!"&&(A=!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),A&&(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],LA=Tf.textContent!==void 0;function BA(e){for(var r=e.aoColumns,n=e.aoData,a,u,c,h,b,x,A=!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=LA?Tf.textContent:Tf.innerText),b.replace&&(b=b.replace(/[\r\n\u2028]/g,"")),h.push(b);x._aFilterData=h,x._sFilterRow=h.join(" "),A=!0}return A}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"),MA(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(),wA(e),DA(e),Mv(e),Qn(e,!0),Dt(e,null,"preInit",[e],!0),pl(e),(u!="ssp"||a)&&(u=="ajax"?jc(e,{},function(h){var b=Rs(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 Yc(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 UA(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)),A=Q(r[0].cloneNode(!1)),I=r.children("tfoot"),F="<div/>",G=function(te){return te?La(te):null};I.length||(I=null);var O=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&&O.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(A.removeAttr("id").css("margin-left",0).append(b==="bottom"?h:null).append(r.children("tfoot")))));var U=O.children(),J=U[0],R=U[1],k=I?U[2]:null;return Q(R).on("scroll.DT",function(){var te=this.scrollLeft;J.scrollLeft=te,I&&(k.scrollLeft=te)}),Q("th, td",J).on("focus",function(){var te=J.scrollLeft;R.scrollLeft=te,I&&(R.scrollLeft=te)}),Q(R).css("max-height",u),n.bCollapse||Q(R).css("height",u),e.nScrollHead=J,e.nScrollBody=R,e.nScrollFoot=k,e.aoDrawCallback.push(Ov),O[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),A=x.children("div"),I=A.children("table"),F=Q(e.nTHead),G=Q(e.nTable),O=e.nTFoot&&Q("th, td",e.nTFoot).length?Q(e.nTFoot):null,U=e.oBrowser,J,R,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(),J=F.clone().prependTo(G),J.find("th, td").removeAttr("tabindex"),J.find("[id]").removeAttr("id"),O&&(R=O.clone().prependTo(G),R.find("[id]").removeAttr("id")),e.aiDisplay.length){var te=null,V=Hn(e)!=="ssp"?e._iDisplayStart:0;for(M=V;M<V+e.aiDisplay.length;M++){var D=e.aiDisplay[M],$=e.aoData[D].nTr;if($){te=$;break}}if(te)for(var m=Q(te).children("th, td").map(function(L){return{idx:Vc(e,L),width:Q(this).outerWidth()}}),M=0;M<m.length;M++){var K=e.aoColumns[m[M].idx].colEl[0],ue=K.style.width.replace("px","");ue!==m[M].width&&(K.style.width=m[M].width+"px",r.sX&&(K.style.minWidth=m[M].width+"px"))}}c.find("colgroup").remove(),c.append(e.colgroup.clone()),O&&(I.find("colgroup").remove(),I.append(e.colgroup.clone())),Q("th, td",J).each(function(){Q(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}),O&&Q("th, td",R).each(function(){Q(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')});var Te=Math.floor(G.height())>h.clientHeight||b.css("overflow-y")=="scroll",z="padding"+(U.bScrollbarLeft?"Left":"Right"),he=G.outerWidth();c.css("width",La(he)),u.css("width",La(he)).css(z,Te?n+"px":"0px"),O&&(I.css("width",La(he)),A.css("width",La(he)).css(z,Te?n+"px":"0px")),G.children("colgroup").prependTo(G),b.trigger("scroll"),(e.bSorted||e.bFiltered)&&!e._drawHold&&(h.scrollTop=0)}function kA(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"),A=r.parentNode,I,F,G,O,U=r.style.width,J=hv(e);if(J===e.containerWidth)return!1;e.containerWidth=J,!U&&!x&&(r.style.width="100%",U="100%"),U&&U.indexOf("%")!==-1&&(x=U),Dt(e,null,"column-calc",{visible:b},!1);var R=Q(r.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");R.append("<tbody/>"),R.append(Q(e.nTHead).clone()).append(Q(e.nTFoot).clone()),R.find("tfoot th, tfoot td").css("width",""),R.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(GA(e,b[I]));if(k.length)for(I=0;I<k[0].length;I++){var te=Q("<tr/>").appendTo(R.find("tbody"));for(F=0;F<b.length;F++){O=b[F],G=n[O];var V=k[F][I]||"",D=Xr.type.className[G.sType],$=G.sContentPadding||(c?"-":""),m=V+$,M=V.indexOf("<")===-1?document.createTextNode(m):m;Q("<td/>").addClass(D).addClass(G.sClass).append(M).appendTo(te)}}Q("[name]",R).removeAttr("name");var K=Q("<div/>").css(c||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(R).appendTo(A);c&&h?R.width(h):c?(R.css("width","auto"),R.removeAttr("width"),R.outerWidth()<A.clientWidth&&x&&R.outerWidth(A.clientWidth)):u?R.outerWidth(A.clientWidth):x&&R.outerWidth(x);var ue=0,Te=R.find("tbody tr").eq(0).children();for(I=0;I<b.length;I++){var z=Te[I].getBoundingClientRect().width;ue+=z,n[b[I]].sWidth=La(z)}if(r.style.width=La(ue),K.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 GA(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=Pc(e,b)[r],A=x&&typeof x=="object"&&x.nodeType?x.innerHTML:x+"";A=A.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");var I=ra(A).replace(/ /g," ");u.push({str:I,len:I.length}),a.push(I)}u.sort(function(G,O){return O.len-G.len}).splice(3),n.wideStrings=u.map(function(G){return G.str});let F=a.join(" ").split(" ");F.sort(function(G,O){return O.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 Mv(e){var r=e.aoColumns;for(e.colgroup.empty(),Ar=0;Ar<r.length;Ar++)r[Ar].bVisible&&e.colgroup.append(r[Ar].colEl)}function DA(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&&Zv(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 Zv(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,A=b.length;x<A;x++){var I=WA(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,A,I,F=e.aaSortingFixed,G=Q.isPlainObject(F),O=[];if(!e.oFeatures.bSort)return u;for(Array.isArray(F)&&so(e,O,F),G&&F.pre&&so(e,O,F.pre),so(e,O,e.aaSorting),G&&F.post&&so(e,O,F.post),r=0;r<O.length;r++)if(I=O[r][0],h[I])for(b=h[I].aDataSort,n=0,a=b.length;n<a;n++)x=b[n],A=h[x].sType||"string",O[r]._idx===void 0&&(O[r]._idx=h[x].asSorting.indexOf(O[r][1])),O[r][1]&&u.push({src:I,col:x,dir:O[r][1],index:O[r]._idx,type:A,formatter:c[A+"-pre"],sorter:c[A+"-"+O[r][1]]});return u}function zc(e,r,n){var a,u,c=[],h=ye.ext.type.order,b=e.aoData,x,A=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]}],A=A.slice()}else I=kf(e);for(a=0,u=I.length;a<u;a++)x=I[a],OA(e,x.col);if(Hn(e)!="ssp"&&I.length!==0){for(a=0,u=A.length;a<u;a++)c[a]=a;I.length&&I[0].dir==="desc"&&e.orderDescReverse&&c.reverse(),A.sort(function(G,O){var U,J,R,k,te,V=I.length,D=b[G]._aSortData,$=b[O]._aSortData;for(R=0;R<V;R++)if(te=I[R],U=D[te.col],J=$[te.col],te.sorter){if(k=te.sorter(U,J),k!==0)return k}else if(k=U<J?-1:U>J?1:0,k!==0)return te.dir==="asc"?k:-k;return U=c[G],J=c[O],U<J?-1:U>J?1:0})}else I.length===0&&A.sort(function(G,O){return G<O?-1:G>O?1:0});return r===void 0&&(e.bSorted=!0,e.sortDetails=I,Dt(e,null,"order",[e,I])),A}function WA(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 A=ln(c,"0").indexOf(r);A!==-1?(b=x(c[A],!0),b===null&&c.length===1&&(b=0),b===null||h[b]===""?c.splice(A,1):(c[A][1]=h[b],c[A]._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 OA(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,A=0;A<x.length;A++)x[A]&&(c=x[A],c._aSortData||(c._aSortData=[]),(!c._aSortData[r]||a)&&(h=a?u[A]:fi(e,A,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 MA(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 A=Dt(e,"aoStateLoadParams","stateLoadParams",[e,r]);if(A.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):Yc(e,r.start/e._iDisplayLength)),r.order!==void 0&&(e.aaSorting=[],Q.each(r.order,function(U,J){var R=[J[0],J[1]];if(typeof J[0]=="string"){var k=h.indexOf(J[0]);if(k<0)return;R[0]=k}else if(R[0]>=c.length)return;e.aaSorting.push(R)})),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 O=I[a];O.visible!==void 0&&(b?b.column(a).visible(O.visible,!1):c[a].bVisible=O.visible),O.search!==void 0&&Q.extend(e.aoPreSearchCols[a],O.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 Rf(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(Ar=0;Ar<r.length;Ar++)e.push(r[Ar])}function gv(e,r,n){for(Array.isArray(n)||(n=[n]),Ar=0;Ar<n.length;Ar++)e.on(r+".dt",n[Ar])}function Xv(e){return ye.ext.escape.attributes&&Q.each(e,function(r,n){e[r]=uo(n)}),e}var Kc=[],yn=Array.prototype,ZA=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])})};Rt=function(e,r){if(!(this instanceof Rt))return new Rt(e,r);var n,a=[],u=function(c){var h=ZA(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},Rt.extend(this,this,Kc)};ye.Api=Rt;Q.extend(Rt.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 Rt(r[e],this[e]):null},filter:function(e){var r=yn.filter.call(this,e,this);return new Rt(this.context,r)},flatten:function(){var e=[];return new Rt(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,A,I=this.context,F,G,O,U=this.selector;for(typeof e=="string"&&(a=n,n=r,r=e,e=!1),h=0,b=I.length;h<b;h++){var J=new Rt(I[h]);if(r==="table")c=n.call(J,I[h],h),c!==void 0&&u.push(c);else if(r==="columns"||r==="rows")c=n.call(J,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,A=G.length;x<A;x++)O=G[x],r==="cell"?c=n.call(J,I[h],O.row,O.column,h,x):c=n.call(J,I[h],O,h,x,F),c!==void 0&&u.push(c)}if(u.length||a){var R=new Rt(I,e?u.concat.apply([],u):u),k=R.selector;return k.rows=U.rows,k.cols=U.cols,k.opts=U.opts,R}return this},lastIndexOf:yn.lastIndexOf,length:0,map:function(e){var r=yn.map.call(this,e,this);return new Rt(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 Rt(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 Rt(this.context,gl(this.toArray()))},unshift:yn.unshift});function VA(e,r,n){return function(){var a=r.apply(e||this,arguments);return Rt.extend(a,a,n.methodExt),a}}function QA(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;Rt.extend=function(e,r,n){if(!(!n.length||!r||!(r instanceof Rt)&&!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"?VA(e,c.val,c):c.type==="object"?{}:c.val,r[c.name].__dt_wrapper=!0,Rt.extend(e,r[c.name],c.propExt))}};Rt.register=ze=function(e,r){if(Array.isArray(e)){for(var n=0,a=e.length;n<a;n++)Rt.register(e[n],r);return}var u,c,h=e.split("."),b=Kc,x,A;for(u=0,c=h.length;u<c;u++){A=h[u].indexOf("()")!==-1,x=A?h[u].replace("()",""):h[u];var I=QA(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=A?I.methodExt:I.propExt}};Rt.registerPlural=Qt=function(e,r,n){Rt.register(e,n),Rt.register(r,function(){var a=n.apply(this,arguments);return a===this?this:a instanceof Rt?a.length?Array.isArray(a[0])?new Rt(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 Rt(Jv(e,this.context)):this});ze("table()",function(e){var r=this.tables(e),n=r.context;return n.length?new Rt(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){Yc(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 Pv=function(e,r,n){if(n){var a=new Rt(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(),jc(e,{},function(c){Jc(e);for(var h=Rs(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){Pv(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){Pv(n,r===!1,e)})});var $c=function(e,r,n,a,u){var c=[],h,b,x,A=typeof r;for((!r||A==="string"||A==="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 Rt(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,A=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(A=="current"||A=="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(O){Object.prototype.hasOwnProperty.call(F,O)||c.push(O)})}}else if(A=="index"||A=="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 A=="number"){var G=zc(e,A,"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},HA=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 J=x[U];return h(U,J._aData,J.nTr)?U:null});if(h.nodeName){var A=h._DT_RowIndex,I=h._DT_CellIndex;if(A!==void 0)return x[A]&&x[A].nTr===h?[A]:[];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 O=Sv(Ns(e.aoData,a,"nTr"));return Q(O).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 HA(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 Rt(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 Rt(r);n.on("stateSaveParams.DT",function(a,u,c){for(var h=u.rowIdFn,b=u.aiDisplayMaster,x=[],A=0;A<b.length;A++){var I=b[A],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])})},XA=function(e,r,n,a){var u=[],c=function(h,b){if(Array.isArray(h)||h instanceof Q){for(var x=0,A=h.length;x<A;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)},jv=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"),jv(n))}},Yv=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])]),JA(n[0]),jv(n))}},JA=function(e){var r=new Rt(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(A){var I=h[A];I._detailsShow&&I._details.insertAfter(I.nTr)})}),r.on(u,function(b,x){if(e===x)for(var A,I=Lf(x),F=0,G=h.length;F<G;F++)A=h[F],A&&A._details&&A._details.each(function(){var O=Q(this).children("td");O.length==1&&O.attr("colspan",I)})}),r.on(c,function(b,x){if(e===x)for(var A=0,I=h.length;A<I;A++)h[A]&&h[A]._details&&rh(r,A)}))},PA="",Ls=PA+"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&&XA(n[0],n[0].aoData[this[0]],e,r),this)});ze([Ls+".show()",Of+".show()"],function(){return Yv(this,!0),this});ze([Ls+".hide()",Of+".hide()"],function(){return Yv(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 jA=/^([^:]+)?:(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},YA=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},zA=function(e,r,n){var a=e.aoColumns,u,c,h=YA(e.aoHeader),b=function(A){var I=wv(A);if(A==="")return Na(a.length);if(I!==null)return[I>=0?I:a.length+I];if(typeof A=="function"){var F=Wf(e,n);return a.map(function(k,te){return A(te,nh(e,te,0,0,F),zv(e,te))?te:null})}var G=typeof A=="string"?A.match(jA):"";if(G)switch(G[2]){case"visIdx":case"visible":if(G[1]&&G[1].match(/^\d+$/)){var O=parseInt(G[1],10);if(O<0){var U=a.map(function(k,te){return k.bVisible?te:null});return[U[U.length+O]]}return[Vc(e,O)]}return a.map(function(k,te){return k.bVisible?G[1]?Q(h[te]).filter(G[1]).length>0?te:null:te:null});case"name":return u||(u=ln(a,"sName")),u.map(function(k,te){return k===G[1]?te:null});case"title":return c||(c=ln(a,"sTitle")),c.map(function(k,te){return k===G[1]?te:null});default:return[]}if(A.nodeName&&A._DT_CellIndex)return[A._DT_CellIndex.column];var J=Q(h).filter(A).map(function(){return Hc(this)}).toArray().sort(function(k,te){return k-te});if(J.length||!A.nodeName)return J;var R=Q(A).closest("*[data-dt-column]");return R.length?[R.data("dt-column")]:[]},x=$c("column",r,b,e,n);return n.columnOrder&&n.columnOrder==="index"?x.sort(function(A,I){return A-I}):x},qA=function(e,r,n){var a=e.aoColumns,u=a[r],c=e.aoData,h,b,x,A;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]&&(A=c[b].nTr,h=c[b].anCells,A&&A.insertBefore(h[r],h[I]||null))}else Q(ln(e.aoData,"anCells",r)).detach();return u.bVisible=n,Mv(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 zA(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;qA(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 KA=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,A,I,F,G,O,U,J=function(R){var k=typeof R=="function";if(R==null||k){for(A=[],I=0,F=u.length;I<F;I++)for(b=u[I],G=0;G<x;G++)O={row:b,column:G},k?(U=a[b],R(O,fi(e,b,G),U.anCells?U.anCells[G]:null)&&A.push(O)):A.push(O);return A}if(Q.isPlainObject(R))return R.column!==void 0&&R.row!==void 0&&u.indexOf(R.row)!==-1?[R]:[];var te=h.filter(R).map(function(V,D){return{row:D._DT_CellIndex.row,column:D._DT_CellIndex.column}}).toArray();return te.length||!R.nodeName?te:(U=Q(R).closest("*[data-dt-row]"),U.length?[{row:U.data("dt-row"),column:U.data("dt-column")}]:[])};return $c("cell",r,J,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 KA(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,A,I=this.iterator("table",function(G,O){var U=[];for(h=0,b=c[O].length;h<b;h++)for(x=0,A=u[O].length;x<A;x++)U.push({row:c[O][h],column:u[O][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:(TA(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){Zv(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"?As(c,Q.extend(c.oPreviousSearch,r,{search:e})):As(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}),As(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 Rt(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 Rt(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),A=Q(r.nTableWrapper),I=r.aoData.map(function(R){return R?R.nTr:null}),F=n.order;r.bDestroying=!0,Dt(r,"aoDestroyCallback","destroy",[r],!0),e||new Rt(r).columns().visible(!0),r.resizeObserver&&r.resizeObserver.disconnect(),A.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(R){return R}).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,O=r.nTableWrapper.nextSibling,U=e?"remove":"detach";b[U](),A[U](),!e&&G&&(G.insertBefore(a,O),b.css("width",r.sDestroyWidth).removeClass(n.table));var J=ye.settings.indexOf(r);J!==-1&&ye.settings.splice(J,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,A){c=u[r](x,a),r==="cell"?n.call(c,c[0][0].row,c[0][0].column,A,h):n.call(c,x,A,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 $A=ye.ext.pager;Q.extend($A,{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(cA," "),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 Af(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"?"":Af("0000-01-01 00:00:00",null,a);if(n!==null&&r===n&&b!=="sort"&&b!=="type"&&!(h instanceof Date))return h;var A=Af(h,r,a);if(A===null)return h;if(b==="sort")return A;var I=n===null?xv(A,"toDate","toJSDate","")[e](navigator.language,{timeZone:"UTC"}):xv(A,"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),Ar=0;Ar<dl.length;Ar++)dl[Ar].type==="group"?qv=dl[Ar].value:dl[Ar].type==="decimal"&&(Kv=dl[Ar].value)}catch{}var dl,Ar;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=Af(a,e,r);return a===""||u?n:!1},order:{pre:function(a){return Af(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 A=b.toExponential(n).split(/e\+?/);return A[0]+" x 10<sup>"+A[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 Mf(e,n,Mc,Zc)}},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 Mf(e,n,Mc)}},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 Mf(e,n,Zc)}}});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 Mf(e,n)}}});var Mf=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=_v(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 A=b.sortDetails;if(A){var I=ln(A,"col");if(!(h.type==="column-visibility"&&!I.includes(x))){var F,G=n.order,O=b.api.columns(r),U=e.aoColumns[O.flatten()[0]],J=O.orderable().includes(!0),R="",k=O.indexes(),te=O.orderable(!0).flatten(),V=e.iTabIndex,D=b.orderHandler&&J;r.removeClass(G.isAsc+" "+G.isDesc).toggleClass(G.none,!J).toggleClass(G.canAsc,D&&te.includes("asc")).toggleClass(G.canDesc,D&&te.includes("desc"));var $=!0;for(F=0;F<k.length;F++)I.includes(k[F])||($=!1);if($){var m=O.order();r.addClass(m.includes("asc")?G.isAsc:""+m.includes("desc")?G.isDesc:"")}var M=-1;for(F=0;F<I.length;F++)if(e.aoColumns[I[F]].bVisible){M=I[F];break}if(k[0]==M){var K=A[0],ue=U.asSorting;r.attr("aria-sort",K.dir==="asc"?"ascending":"descending"),R=ue[K.index+1]?"Reverse":"Remove"}else r.removeAttr("aria-sort");if(J){var Te=r.find(".dt-column-order");Te.attr("role","button").attr("aria-label",J?U.ariaTitle+b.api.i18n("oAria.orderable"+R):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_/),A=r.text.replace(/_INPUT_/,""),I="<label>"+r.text+"</label>";x?I="_INPUT_<label>"+A+"</label>":b&&(I="<label>"+A+"</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(J){var R=this.value;c.return&&J.key!=="Enter"||R!=c.search&&Dv(e,r.processing,function(){c.search=R,As(e,c),e._iDisplayStart=0,ml(e)})},O=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",O?ye.util.debounce(G,O):G).on("mouseup.DT",function(J){setTimeout(function(){G.call(U[0],J)},10)}).on("keypress.DT",function(J){if(J.keyCode==13)return!1}).attr("aria-controls",a);return Q(e.nTable).on("search.dt.DT",function(J,R){e===R&&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,A=x?0:Math.ceil(c/h),I=x?1:Math.ceil(b/h),F=[],G=[],O=a(n).map(function(m){return m==="numbers"?ey(A,I,n.buttons,n.boundaryNumbers):m});F=F.concat.apply(F,O);for(var U=0;U<F.length;U++){var J=F[U],R=nN(e,J,A,I),k=Rf(e,"pagingButton")(e,J,R.display,R.active,R.disabled),te=typeof J=="string"?u[J]:u.number?u.number+(J+1):null;Q(k.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":R.disabled?"true":null,"aria-current":R.active?"page":null,"aria-label":te,"data-dt-idx":J,tabIndex:R.disabled?-1:e.iTabIndex&&k.clicker[0].nodeName.toLowerCase()!=="span"?e.iTabIndex:null}),typeof J!="number"&&Q(k.clicker).addClass(J),Qv(k.clicker,{action:J},function(m){m.preventDefault(),Yc(e,m.data.action,!0)}),G.push(k.display)}var V=Rf(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 $=Q(G[0]).outerHeight();n.buttons>1&&$>0&&Q(r).height()>=$*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="…";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 A=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>":A&&(G="<label>"+F+"</label>_MENU_");var O="tmp-"+ +new Date,U=Q("<div/>").addClass(a.container).append(G.replace("_MENU_",'<span id="'+O+'"></span>')),J=[];Array.prototype.slice.call(U.find("label")[0].childNodes).forEach(function(V){V.nodeType===Node.TEXT_NODE&&J.push({el:V,text:V.textContent})});var R=function(V){J.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 te=e.api.i18n("lengthLabels."+h[x],null);te===null&&(te=typeof b[x]=="number"?e.fnFormatNumber(b[x]):b[x]),k[0][x]=new Option(te,h[x])}return U.find("label").attr("for","dt-length-"+Bc),k.attr("id","dt-length-"+Bc),Bc++,U.find("#"+O).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,$){e===D&&(Q("select",U).val($),R($))}),R(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){Nt(this,"expanded"),e.preventDefault()}var Zf=class Zf{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")||(Nt(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.handleSetEllipsisToggle=r=>{this.persistentConfig.isEllipsed=r.target.checked,this.draw(this.persistentConfig),this.yasr.storePluginConfig("table",this.persistentConfig)};this.yasr=r,this.config=Zf.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]??"")])}getUriLinkFromBinding(r,n){let a=Zi(r.value),u=a,c=!1;if(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?"":"<"}<a class='iri' target='${this.config.openIriInNewWindow?"_blank":"_self"}'${this.config.openIriInNewWindow?" ref='noopener noreferrer'":""} href='${a}'>${Zi(u)}</a>${h?"":">"}`;return Zi(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=Zi(Bd(r.value));if(this.persistentConfig.compact)return a;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:Zi(n),render:(a,u,c,h)=>a===""?a:u==="filter"||u==="sort"||!u?Zi(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,Nt(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.default(this.tableEl,{widths:this.persistentConfig.compact===!0?c:[this.getSizeFirstColumn(),...c.slice(1)],partialRefresh:!0,onResize:this.persistentConfig.isEllipsed!==!1&&this.setEllipsisHandlers,headerOnly:!0}),this.persistentConfig.isEllipsed!==!1&&(this.dataTable?.on("preDraw",()=>(this.tableResizer?.reset({disable:!0}),Fn(this.tableEl,"ellipseTable"),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}),Nt(this.tableEl,"ellipseTable"),this.setEllipsisHandlers()})),this.drawControls(),this.persistentConfig.isEllipsed!==!1&&(Nt(this.tableEl,"ellipseTable"),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",Nt(a,"label"),n.appendChild(a),Nt(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="Ellipse",Nt(h,"label"),c.appendChild(h),Nt(c,"switch"),u.appendChild(c),this.tableEllipseSwitch=document.createElement("input"),c.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",c.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=this.persistentConfig.isEllipsed!==!1,this.tableControls.appendChild(u),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 b=document.createElement("div");b.className="pageSizeWrapper";let x=document.createElement("span");x.textContent="Page size: ",x.className="pageSizerLabel",b.appendChild(x),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";let A=[10,50,100,1e3,-1];for(let I of A){let F=document.createElement("option");F.value=I+"",F.innerText=I>0?I+"":"All",this.dataTable?.page.len()===I&&(F.selected=!0),this.tableSizeField.appendChild(F)}b.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(b),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.tableEllipseSwitch?.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=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")}};Zf.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:"<<",last:">>",next:">",previous:"<"}}}};var Us=Zf;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 Zy=Gr(na()),XZ=Gr(sh()),JZ=Gr(by()),PZ=Gr(xy()),jZ=Gr(Iy()),YZ=Gr(Sy()),zZ=Gr(Ay()),qZ=Gr(Ly());var uN=Gr(My());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(`
|
|
42
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var X;x&&(X=s.ownerDocument.defaultView.scrollY),o.input.focus(),x&&s.ownerDocument.defaultView.scrollTo(null,X),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(),Se="\u200B"+(ve?s.value:"");s.value="\u21DA",s.value=Se,i.prevInput=ve?"":"\u200B",s.selectionStart=1,s.selectionEnd=Se.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,Se=function(){o.selForContextMenu==l.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&i.prevInput=="\u200B"?Lr(l,Mh)(l):ve++<10?o.detectingSelectAll=setTimeout(Se,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Se,200)}}if(h&&b>=9&&ie(),K){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?De(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(Ye(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=Pr,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=se,t.cmpPos=Ee,t.modes=gi,t.mimeModes=Ir,t.resolveMode=Xn,t.getMode=Xe,t.modeExtensions=q,t.extendMode=we,t.copyState=Oe,t.startState=Yt,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=Pl,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 Jt(dn),$t.inputStyles={textarea:br,contenteditable:Mt},$t.defineMode=function(t){!$t.defaults.mode&&t!="null"&&($t.defaults.mode=t),Jr.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(P){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),$=0;$<k.length;++$)if(k[$].__isFold){if(!P)return null;A.cleared=!0,k[$].clear()}return A}var D=F(!0);if(u(c,b,"scanUp"))for(;!D&&h.line>c.firstLine();)h=e.Pos(h.line-1,0),D=F(!1);if(!(!D||D.cleared||x==="unfold")){var W=n(c,b,D);e.on(W,"mousedown",function(P){U.clear(),e.e_preventDefault(P)});var U=c.markText(D.from,D.to,{replacedWith:W,clearOnEnter:u(c,b,"clearOnEnter"),__isFold:!0});U.on("clear",function(P,A){e.signal(c,"unfold",c,P,A)}),e.signal(c,"fold",c,D.from,D.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,P,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",D),U.off("fold",W),U.off("unfold",W),U.off("swapDoc",F),U.off("optionChange",I)),P&&(U.state.foldGutter=new n(a(P)),x(U),U.on("gutterClick",_),U.on("changes",F),U.on("viewportChange",D),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,P){for(var A=U.findMarks(r(P,0),r(P+1,0)),k=0;k<A.length;++k)if(A[k].__isFold){var $=A[k].find(-1);if($&&$.line===P)return A[k]}}function c(U){if(typeof U=="string"){var P=document.createElement("div");return P.className=U+" CodeMirror-guttermarker-subtle",P}else return U.cloneNode(!0)}function h(U,P,A){var k=U.state.foldGutter.options,$=P-1,V=U.foldOption(k,"minFoldSize"),G=U.foldOption(k,"rangeFinder"),ee=typeof k.indicatorFolded=="string"&&b(k.indicatorFolded),m=typeof k.indicatorOpen=="string"&&b(k.indicatorOpen);U.eachLine(P,A,function(M){++$;var K=null,ue=M.gutterMarkers;if(ue&&(ue=ue[k.gutter]),u(U,$)){if(ee&&ue&&ee.test(ue.className))return;K=c(k.indicatorFolded)}else{var Te=r($,0),z=G&&G(U,Te);if(z&&z.to.line-z.from.line>=V){if(m&&ue&&m.test(ue.className))return;K=c(k.indicatorOpen)}}!K&&!ue||U.setGutterMarker(M,k.gutter,K)})}function b(U){return new RegExp("(^|\\s)"+U+"(?:$|\\s)\\s*")}function x(U){var P=U.getViewport(),A=U.state.foldGutter;A&&(U.operation(function(){h(U,P.from,P.to)}),A.from=P.from,A.to=P.to)}function _(U,P,A){var k=U.state.foldGutter;if(k){var $=k.options;if(A==$.gutter){var V=u(U,P);V?V.clear():U.foldCode(r(P,0),$)}}}function I(U,P){P=="mode"&&F(U)}function F(U){var P=U.state.foldGutter;if(P){var A=P.options;P.from=P.to=0,clearTimeout(P.changeUpdate),P.changeUpdate=setTimeout(function(){x(U)},A.foldOnChangeTimeSpan||600)}}function D(U){var P=U.state.foldGutter;if(P){var A=P.options;clearTimeout(P.changeUpdate),P.changeUpdate=setTimeout(function(){var k=U.getViewport();P.from==P.to||k.from-P.to>20||P.from-k.to>20?x(U):U.operation(function(){k.from<P.from&&(h(U,k.from,P.from),P.from=k.from),k.to>P.to&&(h(U,P.to,k.to),P.to=k.to)})},A.updateViewportTimeSpan||400)}}function W(U,P){var A=U.state.foldGutter;if(A){var k=P.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,$,V){this.line=k,this.ch=$,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 $=A.cm.getTokenTypeAt(r(A.line,k));return $&&/\btag\b/.test($)}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 $=A.text.lastIndexOf("/",k),V=$>-1&&!/\S/.test(A.text.slice($+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 $=c.exec(A.text);if($&&$.index==k)return $}}function D(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 $=A.text.lastIndexOf("/",k),V=$>-1&&!/\S/.test(A.text.slice($+1,k));return A.ch=k+1,V?"selfClose":"regular"}}function U(A,k){for(var $=[];;){var V=D(A),G,ee=A.line,m=A.ch-(V?V[0].length:0);if(!V||!(G=I(A)))return;if(G!="selfClose")if(V[1]){for(var M=$.length-1;M>=0;--M)if($[M]==V[2]){$.length=M;break}if(M<0&&(!k||k==V[2]))return{tag:V[2],from:r(ee,m),to:r(A.line,A.ch)}}else $.push(V[2])}}function P(A,k){for(var $=[];;){var V=W(A);if(!V)return;if(V=="selfClose"){F(A);continue}var G=A.line,ee=A.ch,m=F(A);if(!m)return;if(m[1])$.push(m[2]);else{for(var M=$.length-1;M>=0;--M)if($[M]==m[2]){$.length=M;break}if(M<0&&(!k||k==m[2]))return{tag:m[2],from:r(A.line,A.ch),to:r(G,ee)}}}}e.registerHelper("fold","xml",function(A,k){for(var $=new h(A,k.line,0);;){var V=D($);if(!V||$.line!=k.line)return;var G=I($);if(!G)return;if(!V[1]&&G!="selfClose"){var ee=r($.line,$.ch),m=U($,V[2]);return m&&n(m.from,ee)>0?{from:ee,to:m.from}:null}}}),e.findMatchingTag=function(A,k,$){var V=new h(A,k.line,k.ch,$);if(!(V.text.indexOf(">")==-1&&V.text.indexOf("<")==-1)){var G=I(V),ee=G&&r(V.line,V.ch),m=G&&F(V);if(!(!G||!m||n(V,k)>0)){var M={from:r(V.line,V.ch),to:ee,tag:m[2]};return G=="selfClose"?{open:M,close:null,at:"open"}:m[1]?{open:P(V,m[2]),close:M,at:"close"}:(V=new h(A,ee.line,ee.ch,$),{open:M,close:U(V,m[2]),at:"open"})}}},e.findEnclosingTag=function(A,k,$,V){for(var G=new h(A,k.line,k.ch,$);;){var ee=P(G,V);if(!ee)break;var m=new h(A,k.line,k.ch,$),M=U(m,ee.tag);if(M)return{open:ee,close:M}}},e.scanForClosingTag=function(A,k,$,V){var G=new h(A,k.line,k.ch,V?{from:0,to:V}:null);return U(G,$)}})});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,P=u.ch,A=0;;){var k=P<=0?-1:h.lastIndexOf(W[0],P-1);if(k==-1){if(A==1)break;A=1,P=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};P=k-1}}function x(W){var U=1,P=a.lastLine(),A,k=W.ch,$;e:for(var V=c;V<=P;++V)for(var G=a.getLine(V),ee=V==c?k:0;;){var m=G.indexOf(W.pair[0],ee),M=G.indexOf(W.pair[1],ee);if(m<0&&(m=G.length),M<0&&(M=G.length),ee=Math.min(m,M),ee==G.length)break;if(a.getTokenTypeAt(e.Pos(V,ee+1))==W.tokenType){if(ee==m)++U;else if(!--U){A=V,$=ee;break e}}++ee}return A==null||c==A?null:{from:e.Pos(c,k),to:e.Pos(A,$)}}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 D=x(_[I]);if(D)return D}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 D=I,W=Math.min(n.lastLine(),I+10);D<=W;++D){var U=n.getLine(D),P=U.indexOf(";");if(P!=-1)return{startCh:F.end,end:e.Pos(D,P)}}}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 Ry=Wt((wy,Sy)=>{(function(e){typeof wy=="object"&&typeof Sy=="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,D){var W=I.getLineHandle(F.line),U=F.ch-1,P=D&&D.afterCursor;P==null&&(P=/(^| )cm-fat-cursor($| )/.test(I.getWrapperElement().className));var A=u(D),k=!P&&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.charAt(1)==">"?1:-1;if(D&&D.strict&&$>0!=(U==F.ch))return null;var V=I.getTokenTypeAt(n(F.line,U+1)),G=h(I,n(F.line,U+($>0?1:0)),$,V,D);return G==null?null:{from:n(F.line,U),to:G&&G.pos,match:G&&G.ch==k.charAt(0),forward:$>0}}function h(I,F,D,W,U){for(var P=U&&U.maxScanLineLength||1e4,A=U&&U.maxScanLines||1e3,k=[],$=u(U),V=D>0?Math.min(F.line+A,I.lastLine()+1):Math.max(I.firstLine()-1,F.line-A),G=F.line;G!=V;G+=D){var ee=I.getLine(G);if(ee){var m=D>0?0:ee.length-1,M=D>0?ee.length:-1;if(!(ee.length>P))for(G==F.line&&(m=F.ch-(D<0?1:0));m!=M;m+=D){var K=ee.charAt(m);if($.test(K)&&(W===void 0||(I.getTokenTypeAt(n(G,m+1))||"")==(W||""))){var ue=a[K];if(ue&&ue.charAt(1)==">"==D>0)k.push(K);else if(k.length)k.pop();else return{pos:n(G,m),ch:K}}}}}return G-D==(D>0?I.lastLine():I.firstLine())?!1:null}function b(I,F,D){for(var W=I.state.matchBrackets.maxHighlightLineLength||1e3,U=D&&D.highlightNonMatching,P=[],A=I.listSelections(),k=0;k<A.length;k++){var $=A[k].empty()&&c(I,A[k].head,D);if($&&($.match||U!==!1)&&I.getLine($.from.line).length<=W){var V=$.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";P.push(I.markText($.from,n($.from.line,$.from.ch+1),{className:V})),$.to&&I.getLine($.to.line).length<=W&&P.push(I.markText($.to,n($.to.line,$.to.ch+1),{className:V}))}}if(P.length){r&&I.state.focused&&I.focus();var G=function(){I.operation(function(){for(var ee=0;ee<P.length;ee++)P[ee].clear()})};if(F)setTimeout(G,800);else return G}}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,D){D&&D!=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,D){return(D||typeof F=="boolean")&&(D?(D.strict=F,F=D):F=F?{strict:!0}:null),c(this,I,F)}),e.defineExtension("scanForBracket",function(I,F,D,W){return h(this,I,F,D,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(P(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),xe.tokenize=U("meta","?>"),"meta"):(_=L.eat("/")?"closeTag":"openTag",xe.tokenize=D,"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 D(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=G,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=D;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 P(L){return function(xe,ae){for(var Ie;(Ie=xe.next())!=null;){if(Ie=="<")return ae.tokenize=P(L+1),ae.tokenize(xe,ae);if(Ie==">")if(L==1){ae.tokenize=F;break}else return ae.tokenize=P(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 $(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;$(L)}}function G(L,xe,ae){return L=="openTag"?(ae.tagStart=xe.column(),ee):L=="closeTag"?m:G}function ee(L,xe,ae){return L=="word"?(ae.tagName=xe.current(),I="tag",ue):h.allowMissingTagName&&L=="endTag"?(I="tag bracket",ue(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))&&$(ae),ae.context&&ae.context.tagName==Ie||h.matchClosing===!1?(I="tag",M):(I="tag error",K)}else return h.allowMissingTagName&&L=="endTag"?(I="tag bracket",M(L,xe,ae)):(I="error",K)}function M(L,xe,ae){return L!="endTag"?(I="error",M):($(ae),G)}function K(L,xe,ae){return I="error",M(L,xe,ae)}function ue(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)),G}return I="error",ue}function Te(L,xe,ae){return L=="equals"?z:(h.allowMissing||(I="error"),ue(L,xe,ae))}function z(L,xe,ae){return L=="string"?he:L=="word"&&h.allowUnquoted?(I="string",ue):(I="error",ue(L,xe,ae))}function he(L,xe,ae){return L=="string"?he:ue(L,xe,ae)}return{startState:function(L){var xe={tokenize:F,state:G,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!=D&&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==z&&(L.state=ue)},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"),se=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:se,break:se,continue:se,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=/[+\-*&%=<>!?|~^@]/,D=/^@(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,P;function A(N,H,pe){return U=N,P=pe,H}function k(N,H){var pe=N.next();if(pe=='"'||pe=="'")return H.tokenize=$(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=G,G(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 se=I[Ce];return A(se.type,se.style,Ce)}if(Ce=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",Ce)}return A("variable","variable",Ce)}}function $(N){return function(H,pe){var Ce=!1,se;if(c&&H.peek()=="@"&&H.match(D))return pe.tokenize=k,A("jsonld-keyword","meta");for(;(se=H.next())!=null&&!(se==N&&!Ce);)Ce=!Ce&&se=="\\";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 G(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 se=0,Ee=!1,It=pe-1;It>=0;--It){var ir=N.string.charAt(It),Yr=ee.indexOf(ir);if(Yr>=0&&Yr<3){if(!se){++It;break}if(--se==0){ir=="("&&(Ee=!0);break}}else if(Yr>=3&&Yr<6)++se;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&&!se){++It;break}}Ee&&!se&&(H.fatArrowAt=It)}}var M={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(N,H,pe,Ce,se,Ee){this.indented=N,this.column=H,this.type=pe,this.prev=se,this.info=Ee,Ce!=null&&(this.align=Ce)}function ue(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,se){var Ee=N.cc;for(z.state=N,z.stream=se,z.marked=null,z.cc=Ee,z.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 z.marked?z.marked:pe=="variable"&&ue(N,Ce)?"variable-2":H}}}var z={state:null,column:null,marked:null,cc:null};function he(){for(var N=arguments.length-1;N>=0;N--)z.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=z.state;if(z.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(){z.state.context=new nt(z.state.context,z.state.localVars,!1),z.state.localVars=lt}function St(){z.state.context=new nt(z.state.context,z.state.localVars,!0),z.state.localVars=null}Ne.lex=St.lex=!0;function Ye(){z.state.localVars=z.state.context.vars,z.state.context=z.state.context.prev}Ye.lex=!0;function Qe(N,H){var pe=function(){var Ce=z.state,se=Ce.indented;if(Ce.lexical.type=="stat")se=Ce.lexical.indented;else for(var Ee=Ce.lexical;Ee&&Ee.type==")"&&Ee.align;Ee=Ee.prev)se=Ee.indented;Ce.lexical=new K(se,z.stream.column(),N,null,Ce.lexical,H)};return pe.lex=!0,pe}function Le(){var N=z.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}Le.lex=!0;function De(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,De(";"),Le):N=="keyword a"?L(Qe("form"),Et,He,Le):N=="keyword b"?L(Qe("form"),He,Le):N=="keyword d"?z.stream.match(/^\s*$/,!1)?L():L(Qe("stat"),st,De(";"),Le):N=="debugger"?L(De(";")):N=="{"?L(Qe("}"),St,Pt,Le,Ye):N==";"?L():N=="if"?(z.state.lexical.info=="else"&&z.state.cc[z.state.cc.length-1]==Le&&z.state.cc.pop()(),L(Qe("form"),Et,He,Le,Gn)):N=="function"?L(Pr):N=="for"?L(Qe("form"),St,pi,He,Ye,Le):N=="class"||x&&H=="interface"?(z.marked="keyword",L(Qe("form",N=="class"?N:H),gi,Le)):N=="variable"?x&&H=="declare"?(z.marked="keyword",L(He)):x&&(H=="module"||H=="enum"||H=="type")&&z.stream.match(/^\s*\w/,!1)?(z.marked="keyword",H=="enum"?L(Ge):H=="type"?L(Ai,De("operator"),at,De(";")):L(Qe("form"),nr,De("{"),Qe("}"),Pt,Le,Le)):x&&H=="namespace"?(z.marked="keyword",L(Qe("form"),_e,He,Le)):x&&H=="abstract"?(z.marked="keyword",L(He)):L(Qe("stat"),cr):N=="switch"?L(Qe("form"),Et,De("{"),Qe("}","switch"),St,Pt,Le,Le,Ye):N=="case"?L(_e,De(":")):N=="default"?L(De(":")):N=="catch"?L(Qe("form"),Ne,bt,He,Le,Ye):N=="export"?L(Qe("stat"),Xn,Le):N=="import"?L(Qe("stat"),q,Le):N=="async"?L(He):H=="@"?L(_e,He):he(Qe("stat"),_e,De(";"),Le)}function bt(N){if(N=="(")return L(tn,De(")"))}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,De(")"),Le)}function pt(N,H,pe){if(z.state.fatArrowAt==z.stream.start){var Ce=pe?vr:Je;if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,De("=>"),Ce,Ye);if(N=="variable")return he(Ne,nr,De("=>"),Ce,Ye)}var se=pe?Ct:$e;return M.hasOwnProperty(N)?L(se):N=="function"?L(Pr,se):N=="class"||x&&H=="interface"?(z.marked="keyword",L(Qe("form"),rn,Le)):N=="keyword c"||N=="async"?L(pe?ct:_e):N=="("?L(Qe(")"),st,De(")"),Le,se):N=="operator"||N=="spread"?L(pe?ct:_e):N=="["?L(Qe("]"),ht,Le,se):N=="{"?xr(gt,"}",null,se):N=="quasi"?he(ut,se):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,se=pe==!1?_e:ct;if(N=="=>")return L(Ne,pe?vr:Je,Ye);if(N=="operator")return/\+\+|--/.test(H)||x&&H=="!"?L(Ce):x&&H=="<"&&z.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(Qe(">"),Zt(at,">"),Le,Ce):H=="?"?L(_e,De(":"),se):L(se);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,De("]"),Le,Ce);if(x&&H=="as")return z.marked="keyword",L(at,Ce);if(N=="regexp")return z.state.lastType=z.marked="operator",z.stream.backUp(z.stream.pos-z.stream.start-1),L(se)}}function ut(N,H){return N!="quasi"?he():H.slice(H.length-2)!="${"?L(ut):L(st,mt)}function mt(N){if(N=="}")return z.marked="string-2",z.state.tokenize=G,L(ut)}function Je(N){return m(z.stream,z.state),he(N=="{"?He:_e)}function vr(N){return m(z.stream,z.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 z.marked="keyword",L($e)}function Ot(N,H){if(H=="target")return z.marked="keyword",L(Ct)}function cr(N){return N==":"?L(Le,He):he($e,De(";"),Le)}function Be(N){if(N=="variable")return z.marked="property",L()}function gt(N,H){if(N=="async")return z.marked="property",L(gt);if(N=="variable"||z.style=="keyword"){if(z.marked="property",H=="get"||H=="set")return L(lr);var pe;return x&&z.state.fatArrowAt==z.stream.start&&(pe=z.stream.match(/^\s*:\s*/,!1))&&(z.state.fatArrowAt=z.stream.pos+pe[0].length),L(hr)}else{if(N=="number"||N=="string")return z.marked=c?"property":z.style+" property",L(hr);if(N=="jsonld-keyword")return L(hr);if(x&&Fe(H))return z.marked="keyword",L(gt);if(N=="[")return L(_e,rr,De("]"),hr);if(N=="spread")return L(ct,hr);if(H=="*")return z.marked="keyword",L(gt);if(N==":")return he(hr)}}function lr(N){return N!="variable"?he(hr):(z.marked="property",L(Pr))}function hr(N){if(N==":")return L(ct);if(N=="(")return he(Pr)}function Zt(N,H,pe){function Ce(se,Ee){if(pe?pe.indexOf(se)>-1:se==","){var It=z.state.lexical;return It.info=="call"&&(It.pos=(It.pos||0)+1),L(function(ir,Yr){return ir==H||Yr==H?he():he(N)},Ce)}return se==H||Ee==H?L():pe&&pe.indexOf(";")>-1?he(N):L(De(H))}return function(se,Ee){return se==H||Ee==H?L():he(N,Ce)}}function xr(N,H,pe){for(var Ce=3;Ce<arguments.length;Ce++)z.cc.push(arguments[Ce]);return L(Qe(H,pe),Zt(N,H),Le)}function Pt(N){return N=="}"?L():he(He,Pt)}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 z.stream.match(/^\s*\w+\s+is\b/,!1)?L(_e,sn,at):L(at)}function sn(N,H){if(H=="is")return z.marked="keyword",L()}function at(N,H){if(H=="keyof"||H=="typeof"||H=="infer"||H=="readonly")return z.marked="keyword",L(H=="typeof"?ct:at);if(N=="variable"||H=="void")return z.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("]"),Zt(at,"]",","),Le,jr);if(N=="{")return L(Qe("}"),je,Le,jr);if(N=="(")return L(Zt(Lt,")"),$r,jr);if(N=="<")return L(Zt(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"||z.style=="keyword")return z.marked="property",L(en);if(H=="?"||N=="number"||N=="string")return L(en);if(N==":")return L(at);if(N=="[")return L(De("variable"),sr,De("]"),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 z.marked="string-2",z.state.tokenize=G,L(Cr)}function Lt(N,H){return N=="variable"&&z.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(">"),Zt(at,">"),Le,jr);if(H=="|"||N=="."||H=="&")return L(at);if(N=="[")return L(at,De("]"),jr);if(H=="extends"||H=="implements")return z.marked="keyword",L(at);if(H=="?")return L(at,De(":"),at)}function ur(N,H){if(H=="<")return L(Qe(">"),Zt(at,">"),Le,jr)}function Jt(){return he(at,Bt)}function Bt(N,H){if(H=="=")return L(at)}function Vt(N,H){return H=="enum"?(z.marked="keyword",L(Ge)):he(nr,rr,pr,Dn)}function nr(N,H){if(x&&Fe(H))return z.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"&&!z.stream.match(/^\s*:/,!1)?(ae(H),L(pr)):(N=="variable"&&(z.marked="property"),N=="spread"?L(nr):N=="}"?he():N=="["?L(_e,De("]"),De(":"),kn):L(De(":"),nr,pr))}function hi(){return he(nr,pr)}function pr(N,H){if(H=="=")return L(ct)}function Dn(N){if(N==",")return L(Vt)}function Gn(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,Mr):N=="variable"?L(Mr):he(Mr)}function Mr(N,H){return N==")"?L():N==";"?L(Mr):H=="in"||H=="of"?(z.marked="keyword",L(_e,Mr)):he(_e,Mr)}function Pr(N,H){if(H=="*")return z.marked="keyword",L(Pr);if(N=="variable")return ae(H),L(Pr);if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,Tr,He,Ye);if(x&&H=="<")return L(Qe(">"),Zt(Jt,">"),Le,Pr)}function Cn(N,H){if(H=="*")return z.marked="keyword",L(Cn);if(N=="variable")return ae(H),L(Cn);if(N=="(")return L(Ne,Qe(")"),Zt(tn,")"),Le,Tr,Ye);if(x&&H=="<")return L(Qe(">"),Zt(Jt,">"),Le,Cn)}function Ai(N,H){if(N=="keyword"||N=="variable")return z.marked="type",L(Ai);if(H=="<")return L(Qe(">"),Zt(Jt,">"),Le)}function tn(N,H){return H=="@"&&L(_e,tn),N=="spread"?L(tn):x&&Fe(H)?(z.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(">"),Zt(Jt,">"),Le,Ir);if(H=="extends"||H=="implements"||x&&N==",")return H=="implements"&&(z.marked="keyword"),L(x?at:_e,Ir);if(N=="{")return L(Qe("}"),Jr,Le)}function Jr(N,H){if(N=="async"||N=="variable"&&(H=="static"||H=="get"||H=="set"||x&&Fe(H))&&z.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return z.marked="keyword",L(Jr);if(N=="variable"||z.style=="keyword")return z.marked="property",L(In,Jr);if(N=="number"||N=="string")return L(In,Jr);if(N=="[")return L(_e,rr,De("]"),In,Jr);if(H=="*")return z.marked="keyword",L(Jr);if(x&&N=="(")return he(Cn,Jr);if(N==";"||N==",")return L(Jr);if(N=="}")return L();if(H=="@")return L(_e,Jr)}function In(N,H){if(H=="!"||H=="?")return L(In);if(N==":")return L(at,pr);if(H=="=")return L(ct);var pe=z.state.lexical.prev,Ce=pe&&pe.info=="interface";return he(Ce?Cn:Pr)}function Xn(N,H){return H=="*"?(z.marked="keyword",L(Yt,De(";"))):H=="default"?(z.marked="keyword",L(_e,De(";"))):N=="{"?L(Zt(Xe,"}"),Yt,De(";")):he(He)}function Xe(N,H){if(H=="as")return z.marked="keyword",L(De("variable"));if(N=="variable")return he(ct,Xe)}function q(N){return N=="string"?L():N=="("?he(_e):N=="."?he($e):he(we,Oe,Yt)}function we(N,H){return N=="{"?xr(we,"}"):(N=="variable"&&ae(H),H=="*"&&(z.marked="keyword"),L(kt))}function Oe(N){if(N==",")return L(we,Oe)}function kt(N,H){if(H=="as")return z.marked="keyword",L(we)}function Yt(N,H){if(H=="from")return z.marked="keyword",L(_e)}function ht(N){return N=="]"?L():he(Zt(ct,"]"))}function Ge(){return he(Qe("form"),nr,De("{"),Qe("}"),Zt(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 K((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"&&(P=="++"||P=="--")?"incdec":U,Te(H,pe,U,P,N))},indent:function(N,H){if(N.tokenize==V||N.tokenize==G)return e.Pass;if(N.tokenize!=k)return 0;var pe=H&&H.charAt(0),Ce=N.lexical,se;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!=Gn&&It!=Ye)break}for(;(Ce.type=="stat"||Ce.type=="form")&&(pe=="}"||(se=N.cc[N.cc.length-1])&&(se==$e||se==Ct)&&!/^[,\.=+\-*:?[\(]/.test(H));)Ce=Ce.prev;u&&Ce.type==")"&&Ce.prev.type=="stat"&&(Ce=Ce.prev);var ir=Ce.type,Yr=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"&&!Yr&&n.doubleIndentSwitch!=!1?Ce.indented+(/^(?:case|default)\b/.test(H)?a:2*a):Ce.align?Ce.column+(Yr?0:1):Ce.indented+(Yr?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 My=Wt(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});var By="fas",Uy="align-left",ky=448,Dy=512,Gy=[],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,Dy,Gy,Wy,Oy]};ci.faAlignLeft=ci.definition;ci.prefix=By;ci.iconName=Uy;ci.width=ky;ci.height=Dy;ci.ligatures=Gy;ci.unicode=Wy;ci.svgPathData=Oy});var mN={};s1(mN,{Parser:()=>gf,Yasr:()=>Ei,default:()=>gN,registerPlugin:()=>pN});var Vy=Dr(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 S1(e){return w1.call(e)}var Dp=S1;var R1="[object Null]",E1="[object Undefined]",Gp=gn?gn.toStringTag:void 0;function A1(e){return e==null?e===void 0?E1:R1:Gp&&Gp in Object(e)?kp(e):Dp(e)}var Zn=A1;function _1(e){return e!=null&&typeof e=="object"}var Gr=_1;var N1="[object Symbol]";function F1(e){return typeof e=="symbol"||Gr(e)&&Zn(e)==N1}var Go=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,Mp=Op?Op.toString:void 0;function Zp(e){if(typeof e=="string")return e;if(qt(e))return Wp(e,Zp)+"";if(Go(e))return Mp?Mp.call(e):"";var r=e+"";return r=="0"&&1/e==-U1?"-0":r}var Vp=Zp;function k1(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Qr=k1;function D1(e){return e}var Wo=D1;var G1="[object AsyncFunction]",W1="[object Function]",O1="[object GeneratorFunction]",M1="[object Proxy]";function Z1(e){if(!Qr(e))return!1;var r=Zn(e);return r==W1||r==O1||r==G1||r==M1}var Oo=Z1;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 Ji=j1;var P1=/[\\^$.*+?()[\]{}|]/g,J1=/^\[object .+?Constructor\]$/,Y1=Function.prototype,z1=Object.prototype,q1=Y1.toString,K1=z1.hasOwnProperty,$1=RegExp("^"+q1.call(K1).replace(P1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!Qr(e)||Hp(e))return!1;var r=Oo(e)?$1:J1;return r.test(Ji(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 Pp=Object.create,iT=function(){function e(){}return function(r){if(!Qr(r))return{};if(Pp)return Pp(r);e.prototype=r;var n=new e;return e.prototype=void 0,n}}(),Jp=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 Yp=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{}}(),Mo=cT;var hT=Mo?function(e,r){return Mo(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 Zo=vT;function yT(e,r,n){r=="__proto__"&&Mo?Mo(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 ST(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),Yp(e,this,b)}}var rg=ST;function RT(e,r){return $p(rg(e,r,Wo),e+"")}var ng=RT;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)&&Zo(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 DT(e){return Gr(e)&&Zn(e)==kT}var Ad=DT;var lg=Object.prototype,GT=lg.hasOwnProperty,WT=lg.propertyIsEnumerable,OT=Ad(function(){return arguments}())?Ad:function(e){return Gr(e)&>.call(e,"callee")&&!WT.call(e,"callee")},Yi=OT;function MT(){return!1}var sg=MT;var dg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ug=dg&&typeof module=="object"&&module&&!module.nodeType&&module,ZT=ug&&ug.exports===dg,fg=ZT?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]",PT="[object Date]",JT="[object Error]",YT="[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[PT]=er[JT]=er[YT]=er[zT]=er[qT]=er[KT]=er[$T]=er[eC]=er[tC]=er[rC]=!1;function pC(e){return Gr(e)&&Vo(e.length)&&!!er[Zn(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&&Yi(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")||Zo(_,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,SC=wC.hasOwnProperty;function RC(e){if(!xa(e))return gg(e);var r=[];for(var n in Object(e))SC.call(e,n)&&n!="constructor"&&r.push(n);return r}var Su=RC;function EC(e){return ri(e)?Iu(e):Su(e)}var Di=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 Gi=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||Go(e)?!0:UC.test(e)||!BC.test(e)||r!=null&&e in Object(r)}var Ho=kC;var DC=Nn(Object,"create"),qi=DC;function GC(){this.__data__=qi?qi(null):{},this.size=0}var vg=GC;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__",MC=Object.prototype,ZC=MC.hasOwnProperty;function VC(e){var r=this.__data__;if(qi){var n=r[e];return n===OC?void 0:n}return ZC.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 PC(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=PC;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 JC(){this.__data__=[],this.size=0}var Ig=JC;function YC(e,r){for(var n=e.length;n--;)if(Ui(e[n][0],r))return n;return-1}var Ca=YC;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 Sg=$C;function eI(e){return Ca(this.__data__,e)>-1}var Rg=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=Sg;jo.prototype.has=Rg;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 Sa=aI;function oI(e){var r=Sa(this,e).delete(e);return this.size-=r?1:0,r}var Ng=oI;function lI(e){return Sa(this,e).get(e)}var Fg=lI;function sI(e){return Sa(this,e).has(e)}var Lg=sI;function uI(e,r){var n=Sa(this,e),a=n.size;return n.set(e,r),this.size+=n.size==a?0:1,this}var Bg=uI;function Po(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])}}Po.prototype.clear=Ag;Po.prototype.delete=Ng;Po.prototype.get=Fg;Po.prototype.has=Lg;Po.prototype.set=Bg;var za=Po;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}),Dg=gI;function mI(e){return e==null?"":Vp(e)}var Ra=mI;function bI(e,r){return qt(e)?e:Ho(e,r)?[e]:Dg(Ra(e))}var Ru=bI;var vI=1/0;function yI(e){if(typeof e=="string"||Go(e))return e;var r=e+"";return r=="0"&&1/e==-vI?"-0":r}var Ea=yI;function xI(e,r){r=Ru(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 Gg=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),Jo=II;var wI="[object Object]",SI=Function.prototype,RI=Object.prototype,Wg=SI.toString,EI=RI.hasOwnProperty,AI=Wg.call(Object);function _I(e){if(!Gr(e)||Zn(e)!=wI)return!1;var r=Jo(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 Mg=FI;function LI(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}var Zg=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 DI(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=DI;function Yo(e){var r=this.__data__=new Ia(e);this.size=r.size}Yo.prototype.clear=Mg;Yo.prototype.delete=Zg;Yo.prototype.get=Vg;Yo.prototype.has=Qg;Yo.prototype.set=Hg;var Wi=Yo;function GI(e,r){return e&&ki(r,Di(r),e)}var Xg=GI;function WI(e,r){return e&&ki(r,Gi(r),e)}var jg=WI;var zg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pg=zg&&typeof module=="object"&&module&&!module.nodeType&&module,OI=Pg&&Pg.exports===zg,Jg=OI?Ar.Buffer:void 0,Yg=Jg?Jg.allocUnsafe:void 0;function MI(e,r){if(r)return e.slice();var n=e.length,a=Yg?Yg(n):new e.constructor(n);return e.copy(a),a}var Nu=MI;function ZI(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=ZI;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 PI=Object.getOwnPropertySymbols,JI=PI?function(e){for(var r=[];e;)Au(r,zo(e)),e=Jo(e);return r}:Lu,Bu=JI;function YI(e,r){return ki(e,Bu(e),r)}var $g=YI;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,Di,zo)}var ns=qI;function KI(e){return Uu(e,Gi,Bu)}var em=KI;var $I=Nn(Ar,"DataView"),ku=$I;var ew=Nn(Ar,"Promise"),Du=ew;var tw=Nn(Ar,"Set"),Gu=tw;var tm="[object Map]",rw="[object Object]",rm="[object Promise]",nm="[object Set]",im="[object WeakMap]",am="[object DataView]",nw=Ji(ku),iw=Ji(wa),aw=Ji(Du),ow=Ji(Gu),lw=Ji(xu),qa=Zn;(ku&&qa(new ku(new ArrayBuffer(1)))!=am||wa&&qa(new wa)!=tm||Du&&qa(Du.resolve())!=rm||Gu&&qa(new Gu)!=nm||xu&&qa(new xu)!=im)&&(qa=function(e){var r=Zn(e),n=r==rw?e.constructor:void 0,a=n?Ji(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]",Sw="[object Symbol]",Rw="[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]",Dw="[object Uint32Array]";function Gw(e,r,n){var a=e.constructor;switch(r){case Rw: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 Dw: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 Sw:return dm(e)}}var cm=Gw;function Ww(e){return typeof e.constructor=="function"&&!xa(e)?Jp(Jo(e)):{}}var Ou=Ww;var Ow="[object Map]";function Mw(e){return Gr(e)&&wi(e)==Ow}var hm=Mw;var pm=zi&&zi.isMap,Zw=pm?Qo(pm):hm,gm=Zw;var Vw="[object Set]";function Qw(e){return Gr(e)&&wi(e)==Vw}var mm=Qw;var bm=zi&&zi.isSet,Hw=bm?Qo(bm):mm,vm=Hw;var Xw=1,jw=2,Pw=4,ym="[object Arguments]",Jw="[object Array]",Yw="[object Boolean]",zw="[object Date]",qw="[object Error]",xm="[object Function]",Kw="[object GeneratorFunction]",$w="[object Map]",eS="[object Number]",Tm="[object Object]",tS="[object RegExp]",rS="[object Set]",nS="[object String]",iS="[object Symbol]",aS="[object WeakMap]",oS="[object ArrayBuffer]",lS="[object DataView]",sS="[object Float32Array]",uS="[object Float64Array]",fS="[object Int8Array]",dS="[object Int16Array]",cS="[object Int32Array]",hS="[object Uint8Array]",pS="[object Uint8ClampedArray]",gS="[object Uint16Array]",mS="[object Uint32Array]",Kt={};Kt[ym]=Kt[Jw]=Kt[oS]=Kt[lS]=Kt[Yw]=Kt[zw]=Kt[sS]=Kt[uS]=Kt[fS]=Kt[dS]=Kt[cS]=Kt[$w]=Kt[eS]=Kt[Tm]=Kt[tS]=Kt[rS]=Kt[nS]=Kt[iS]=Kt[hS]=Kt[pS]=Kt[gS]=Kt[mS]=!0;Kt[qw]=Kt[xm]=Kt[aS]=!1;function Mu(e,r,n,a,u,c){var h,b=r&Xw,x=r&jw,_=r&Pw;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),D=F==xm||F==Kw;if(Ii(e))return Nu(e,b);if(F==Tm||F==ym||D&&!u){if(h=x||D?{}: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(Mu(A,r,n,A,e,c))}):gm(e)&&e.forEach(function(A,k){h.set(k,Mu(A,r,n,k,e,c))});var U=_?x?em:ns:x?Gi:Di,P=I?void 0:U(e);return eg(P||e,function(A,k){P&&(k=A,A=e[k]),Cu(h,k,Mu(A,r,n,k,e,c))}),h}var Cm=Mu;var bS=1,vS=4;function yS(e){return Cm(e,bS|vS)}var $o=yS;var xS="__lodash_hash_undefined__";function TS(e){return this.__data__.set(e,xS),this}var Im=TS;function CS(e){return this.__data__.has(e)}var wm=CS;function Zu(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new za;++r<n;)this.add(e[r])}Zu.prototype.add=Zu.prototype.push=Im;Zu.prototype.has=wm;var Sm=Zu;function IS(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 Rm=IS;function wS(e,r){return e.has(r)}var Em=wS;var SS=1,RS=2;function ES(e,r,n,a,u,c){var h=n&SS,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,D=!0,W=n&RS?new Sm:void 0;for(c.set(e,r),c.set(r,e);++F<b;){var U=e[F],P=r[F];if(a)var A=h?a(P,U,F,r,e,c):a(U,P,F,e,r,c);if(A!==void 0){if(A)continue;D=!1;break}if(W){if(!Rm(r,function(k,$){if(!Em(W,$)&&(U===k||u(U,k,n,a,c)))return W.push($)})){D=!1;break}}else if(!(U===P||u(U,P,n,a,c))){D=!1;break}}return c.delete(e),c.delete(r),D}var Vu=ES;function AS(e){var r=-1,n=Array(e.size);return e.forEach(function(a,u){n[++r]=[u,a]}),n}var Am=AS;function _S(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var _m=_S;var NS=1,FS=2,LS="[object Boolean]",BS="[object Date]",US="[object Error]",kS="[object Map]",DS="[object Number]",GS="[object RegExp]",WS="[object Set]",OS="[object String]",MS="[object Symbol]",ZS="[object ArrayBuffer]",VS="[object DataView]",Nm=gn?gn.prototype:void 0,Ld=Nm?Nm.valueOf:void 0;function QS(e,r,n,a,u,c,h){switch(n){case VS:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case ZS:return!(e.byteLength!=r.byteLength||!c(new qo(e),new qo(r)));case LS:case BS:case DS:return Ui(+e,+r);case US:return e.name==r.name&&e.message==r.message;case GS:case OS:return e==r+"";case kS:var b=Am;case WS:var x=a&NS;if(b||(b=_m),e.size!=r.size&&!x)return!1;var _=h.get(e);if(_)return _==r;a|=FS,h.set(e,r);var I=Vu(b(e),b(r),a,u,c,h);return h.delete(e),I;case MS:if(Ld)return Ld.call(e)==Ld.call(r)}return!1}var Fm=QS;var HS=1,XS=Object.prototype,jS=XS.hasOwnProperty;function PS(e,r,n,a,u,c){var h=n&HS,b=ns(e),x=b.length,_=ns(r),I=_.length;if(x!=I&&!h)return!1;for(var F=x;F--;){var D=b[F];if(!(h?D in r:jS.call(r,D)))return!1}var W=c.get(e),U=c.get(r);if(W&&U)return W==r&&U==e;var P=!0;c.set(e,r),c.set(r,e);for(var A=h;++F<x;){D=b[F];var k=e[D],$=r[D];if(a)var V=h?a($,k,D,r,e,c):a(k,$,D,e,r,c);if(!(V===void 0?k===$||u(k,$,n,a,c):V)){P=!1;break}A||(A=D=="constructor")}if(P&&!A){var G=e.constructor,ee=r.constructor;G!=ee&&"constructor"in e&&"constructor"in r&&!(typeof G=="function"&&G instanceof G&&typeof ee=="function"&&ee instanceof ee)&&(P=!1)}return c.delete(e),c.delete(r),P}var Lm=PS;var JS=1,Bm="[object Arguments]",Um="[object Array]",Qu="[object Object]",YS=Object.prototype,km=YS.hasOwnProperty;function zS(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,D=x==_;if(D&&Ii(e)){if(!Ii(r))return!1;h=!0,I=!1}if(D&&!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&JS)){var W=I&&km.call(e,"__wrapped__"),U=F&&km.call(r,"__wrapped__");if(W||U){var P=W?e.value():e,A=U?r.value():r;return c||(c=new Wi),u(P,A,n,a,c)}}return D?(c||(c=new Wi),Lm(e,r,n,a,u,c)):!1}var Dm=zS;function Gm(e,r,n,a,u){return e===r?!0:e==null||r==null||!Gr(e)&&!Gr(r)?e!==e&&r!==r:Dm(e,r,n,a,Gm,u)}var Hu=Gm;var qS=1,KS=2;function $S(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 D=a(_,I,x,e,r,F);if(!(D===void 0?Hu(I,_,qS|KS,a,F):D))return!1}}return!0}var Wm=$S;function eR(e){return e===e&&!Qr(e)}var Xu=eR;function tR(e){for(var r=Di(e),n=r.length;n--;){var a=r[n],u=e[a];r[n]=[a,u,Xu(u)]}return r}var Om=tR;function rR(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var ju=rR;function nR(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 Mm=nR;function iR(e,r){return e!=null&&r in Object(e)}var Zm=iR;function aR(e,r,n){r=Ru(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)&&Zo(h,u)&&(qt(e)||Yi(e)))}var Vm=aR;function oR(e,r){return e!=null&&Vm(e,r,Zm)}var Qm=oR;var lR=1,sR=2;function uR(e,r){return Ho(e)&&Xu(r)?ju(Ea(e),r):function(n){var a=Gg(n,e);return a===void 0&&a===r?Qm(n,e):Hu(r,a,lR|sR)}}var Hm=uR;function fR(e){return function(r){return r?.[e]}}var Xm=fR;function dR(e){return function(r){return Eu(r,e)}}var jm=dR;function cR(e){return Ho(e)?Xm(Ea(e)):jm(e)}var Pm=cR;function hR(e){return typeof e=="function"?e:e==null?Wo:typeof e=="object"?qt(e)?Hm(e[0],e[1]):Mm(e):Pm(e)}var Pu=hR;function pR(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 Jm=pR;var gR=Jm(),Ju=gR;function mR(e,r){return e&&Ju(e,r,Di)}var Yu=mR;function bR(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 Ym=bR;var vR=Ym(Yu),zm=vR;function yR(e,r,n){(n!==void 0&&!Ui(e[r],n)||n===void 0&&!(r in e))&&ya(e,r,n)}var is=yR;function xR(e){return Gr(e)&&ri(e)}var qm=xR;function TR(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var as=TR;function CR(e){return ki(e,Gi(e))}var Km=CR;function IR(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 D=qt(x),W=!D&&Ii(x),U=!D&&!W&&Ta(x);I=x,D||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)||Yi(x)?(I=b,Yi(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=IR;function eb(e,r,n,a,u){e!==r&&Ju(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)}},Gi)}var tb=eb;var wR={"&":"&","<":"<",">":">",'"':""","'":"'"},SR=_u(wR),rb=SR;var nb=/[&<>"']/g,RR=RegExp(nb.source);function ER(e){return e=Ra(e),e&&RR.test(e)?e.replace(nb,rb):e}var Bd=ER;function AR(e,r){var n=[];return zm(e,function(a,u,c){r(a,u,c)&&n.push(a)}),n}var ib=AR;function _R(e,r){var n=qt(e)?Fu:ib;return n(e,Pu(r,3))}var Ud=_R;var NR="[object Map]",FR="[object Set]",LR=Object.prototype,BR=LR.hasOwnProperty;function UR(e){if(e==null)return!0;if(ri(e)&&(qt(e)||typeof e=="string"||typeof e.splice=="function"||Ii(e)||Ta(e)||Yi(e)))return!e.length;var r=wi(e);if(r==NR||r==FR)return!e.size;if(xa(e))return!Su(e).length;for(var n in e)if(BR.call(e,n))return!1;return!0}var zu=UR;function kR(e,r){var n={};return r=Pu(r,3),Yu(e,function(a,u,c){ya(n,u,r(a,u,c))}),n}var os=kR;var DR=ag(function(e,r,n){tb(e,r,n)}),kd=DR;var GR={"&":"&","<":"<",">":">",""":'"',"'":"'"},WR=_u(GR),ab=WR;var ob=/&(?:amp|lt|gt|quot|#39);/g,OR=RegExp(ob.source);function MR(e){return e=Ra(e),e&&OR.test(e)?e.replace(ob,ab):e}var Dd=MR;var ZR=0;function VR(e){var r=++ZR;return Ra(e)+r}var Gd=VR;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:QR,getPrototypeOf:HR,getOwnPropertyDescriptor:XR}=Object,{freeze:bn,seal:ni,create:Xd}=Object,{apply:jd,construct:Pd}=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)});Pd||(Pd=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),jR=vn(Array.prototype.lastIndexOf),sb=vn(Array.prototype.pop),ls=vn(Array.prototype.push),PR=vn(Array.prototype.splice),$u=vn(String.prototype.toLowerCase),Od=vn(String.prototype.toString),Md=vn(String.prototype.match),ss=vn(String.prototype.replace),JR=vn(String.prototype.indexOf),YR=vn(String.prototype.trim),Si=vn(Object.prototype.hasOwnProperty),mn=vn(RegExp.prototype.test),us=zR(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 zR(e){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Pd(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&&(QR(r)||(r[a]=c),u=c)}e[u]=!0}return e}function qR(e){for(let r=0;r<e.length;r++)Si(e,r)||(e[r]=null);return e}function Ki(e){let r=Xd(null);for(let[n,a]of gb(e))Si(e,n)&&(Array.isArray(a)?r[n]=qR(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=XR(e,r);if(a){if(a.get)return vn(a.get);if(typeof a.value=="function")return vn(a.value)}e=HR(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"]),Zd=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"]),KR=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"]),$R=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:D,trustedTypes:W}=e,U=x.prototype,P=fs(U,"cloneNode"),A=fs(U,"remove"),k=fs(U,"nextSibling"),$=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 G,ee="",{implementation:m,createNodeIterator:M,createDocumentFragment:K,getElementsByTagName:ue}=n,{importNode:Te}=a,z=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,St=At({},[...ub,...Zd,...Vd,...Qd,...fb]),Ye=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}})),De=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,Je=!1,vr=!1,yr=!1,tr=!0,Ot=!1,cr="user-content-",Be=!0,gt=!1,lr={},hr=null,Zt=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,Pt=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,Jt=["application/xhtml+xml","text/html"],Bt="text/html",Vt=null,nr=null,kn=n.createElement("form"),hi=function(q){return q instanceof RegExp||q instanceof Function},pr=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nr&&nr===q)){if((!q||typeof q!="object")&&(q={}),q=Ki(q),ur=Jt.indexOf(q.PARSER_MEDIA_TYPE)===-1?Bt:q.PARSER_MEDIA_TYPE,Vt=ur==="application/xhtml+xml"?Od:$u,Ne=Si(q,"ALLOWED_TAGS")?At({},q.ALLOWED_TAGS,Vt):St,Ye=Si(q,"ALLOWED_ATTR")?At({},q.ALLOWED_ATTR,Vt):Qe,en=Si(q,"ALLOWED_NAMESPACES")?At({},q.ALLOWED_NAMESPACES,Od):Cr,rr=Si(q,"ADD_URI_SAFE_ATTR")?At(Ki(sr),q.ADD_URI_SAFE_ATTR,Vt):sr,xr=Si(q,"ADD_DATA_URI_TAGS")?At(Ki(Pt),q.ADD_DATA_URI_TAGS,Vt):Pt,hr=Si(q,"FORBID_CONTENTS")?At({},q.FORBID_CONTENTS,Vt):Zt,De=Si(q,"FORBID_TAGS")?At({},q.FORBID_TAGS,Vt):Ki({}),He=Si(q,"FORBID_ATTR")?At({},q.FORBID_ATTR,Vt):Ki({}),lr=Si(q,"USE_PROFILES")?q.USE_PROFILES:!1,_e=q.ALLOW_ARIA_ATTR!==!1,ct=q.ALLOW_DATA_ATTR!==!1,Et=q.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=q.SAFE_FOR_TEMPLATES||!1,$e=q.SAFE_FOR_XML!==!1,Ct=q.WHOLE_DOCUMENT||!1,Je=q.RETURN_DOM||!1,vr=q.RETURN_DOM_FRAGMENT||!1,yr=q.RETURN_TRUSTED_TYPE||!1,mt=q.FORCE_BODY||!1,tr=q.SANITIZE_DOM!==!1,Ot=q.SANITIZE_NAMED_PROPS||!1,Be=q.KEEP_CONTENT!==!1,gt=q.IN_PLACE||!1,lt=q.ALLOWED_URI_REGEXP||mb,$r=q.NAMESPACE||at,Ft=q.MATHML_TEXT_INTEGRATION_POINTS||Ft,Lt=q.HTML_INTEGRATION_POINTS||Lt,Le=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&hi(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&hi(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Le.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(ct=!1),vr&&(Je=!0),lr&&(Ne=At({},fb),Ye=[],lr.html===!0&&(At(Ne,ub),At(Ye,db)),lr.svg===!0&&(At(Ne,Zd),At(Ye,Hd),At(Ye,Ku)),lr.svgFilters===!0&&(At(Ne,Vd),At(Ye,Hd),At(Ye,Ku)),lr.mathMl===!0&&(At(Ne,Qd),At(Ye,cb),At(Ye,Ku))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?bt.tagCheck=q.ADD_TAGS:(Ne===St&&(Ne=Ki(Ne)),At(Ne,q.ADD_TAGS,Vt))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?bt.attributeCheck=q.ADD_ATTR:(Ye===Qe&&(Ye=Ki(Ye)),At(Ye,q.ADD_ATTR,Vt))),q.ADD_URI_SAFE_ATTR&&At(rr,q.ADD_URI_SAFE_ATTR,Vt),q.FORBID_CONTENTS&&(hr===Zt&&(hr=Ki(hr)),At(hr,q.FORBID_CONTENTS,Vt)),Be&&(Ne["#text"]=!0),Ct&&At(Ne,["html","head","body"]),Ne.table&&(At(Ne,["tbody"]),delete De.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=q.TRUSTED_TYPES_POLICY,ee=G.createHTML("")}else G===void 0&&(G=uE(W,u)),G!==null&&typeof ee=="string"&&(ee=G.createHTML(""));bn&&bn(q),nr=q}},Dn=At({},[...Zd,...Vd,...KR]),Gn=At({},[...Qd,...$R]),pi=function(q){let we=V(q);(!we||!we.tagName)&&(we={namespaceURI:$r,tagName:"template"});let Oe=$u(q.tagName),kt=$u(we.tagName);return en[q.namespaceURI]?q.namespaceURI===sn?we.namespaceURI===at?Oe==="svg":we.namespaceURI===Tr?Oe==="svg"&&(kt==="annotation-xml"||Ft[kt]):!!Dn[Oe]:q.namespaceURI===Tr?we.namespaceURI===at?Oe==="math":we.namespaceURI===sn?Oe==="math"&&Lt[kt]:!!Gn[Oe]:q.namespaceURI===at?we.namespaceURI===sn&&!Lt[kt]||we.namespaceURI===Tr&&!Ft[kt]?!1:!Gn[Oe]&&(jr[Oe]||!Dn[Oe]):!!(ur==="application/xhtml+xml"&&en[q.namespaceURI]):!1},Or=function(q){ls(r.removed,{element:q});try{V(q).removeChild(q)}catch{A(q)}},Mr=function(q,we){try{ls(r.removed,{attribute:we.getAttributeNode(q),from:we})}catch{ls(r.removed,{attribute:null,from:we})}if(we.removeAttribute(q),q==="is")if(Je||vr)try{Or(we)}catch{}else try{we.setAttribute(q,"")}catch{}},Pr=function(q){let we=null,Oe=null;if(mt)q="<remove></remove>"+q;else{let ht=Md(q,/^[\r\n\t ]+/);Oe=ht&&ht[0]}ur==="application/xhtml+xml"&&$r===at&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");let kt=G?G.createHTML(q):q;if($r===at)try{we=new D().parseFromString(kt,ur)}catch{}if(!we||!we.documentElement){we=m.createDocument($r,"template",null);try{we.documentElement.innerHTML=je?ee:kt}catch{}}let Yt=we.body||we.documentElement;return q&&Oe&&Yt.insertBefore(n.createTextNode(Oe),Yt.childNodes[0]||null),$r===at?ue.call(we,Ct?"html":"body")[0]:Ct?we.documentElement:Yt},Cn=function(q){return M.call(q.ownerDocument||q,q,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},Ai=function(q){return q instanceof F&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof I)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},tn=function(q){return typeof b=="function"&&q instanceof b};function rn(Xe,q,we){qu(Xe,Oe=>{Oe.call(r,q,we,nr)})}let gi=function(q){let we=null;if(rn(z.beforeSanitizeElements,q,null),Ai(q))return Or(q),!0;let Oe=Vt(q.nodeName);if(rn(z.uponSanitizeElement,q,{tagName:Oe,allowedTags:Ne}),$e&&q.hasChildNodes()&&!tn(q.firstElementChild)&&mn(/<[/\w!]/g,q.innerHTML)&&mn(/<[/\w!]/g,q.textContent)||q.nodeType===ds.progressingInstruction||$e&&q.nodeType===ds.comment&&mn(/<[/\w]/g,q.data))return Or(q),!0;if(!(bt.tagCheck instanceof Function&&bt.tagCheck(Oe))&&(!Ne[Oe]||De[Oe])){if(!De[Oe]&&Jr(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(q)||q.parentNode,Yt=$(q)||q.childNodes;if(Yt&&kt){let ht=Yt.length;for(let Ge=ht-1;Ge>=0;--Ge){let wr=P(Yt[Ge],!0);wr.__removalCount=(q.__removalCount||0)+1,kt.insertBefore(wr,k(q))}}}return Or(q),!0}return q instanceof x&&!pi(q)||(Oe==="noscript"||Oe==="noembed"||Oe==="noframes")&&mn(/<\/no(script|embed|frames)/i,q.innerHTML)?(Or(q),!0):(st&&q.nodeType===ds.text&&(we=q.textContent,qu([he,L,xe],kt=>{we=ss(we,kt," ")}),q.textContent!==we&&(ls(r.removed,{element:q.cloneNode()}),q.textContent=we)),rn(z.afterSanitizeElements,q,null),!1)},Ir=function(q,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,q))){if(!Ye[we]||He[we]){if(!(Jr(q)&&(Le.tagNameCheck instanceof RegExp&&mn(Le.tagNameCheck,q)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(q))&&(Le.attributeNameCheck instanceof RegExp&&mn(Le.attributeNameCheck,we)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(we,q))||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")&&q!=="script"&&JR(Oe,"data:")===0&&xr[q])){if(!(Et&&!mn(Fe,ss(Oe,nt,"")))){if(Oe)return!1}}}}}}}return!0},Jr=function(q){return q!=="annotation-xml"&&Md(q,Ke)},In=function(q){rn(z.beforeSanitizeAttributes,q,null);let{attributes:we}=q;if(!we||Ai(q))return;let Oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ye,forceKeepAttr:void 0},kt=we.length;for(;kt--;){let Yt=we[kt],{name:ht,namespaceURI:Ge,value:wr}=Yt,nn=Vt(ht),Nr=wr,N=ht==="value"?Nr:YR(Nr);if(Oe.attrName=nn,Oe.attrValue=N,Oe.keepAttr=!0,Oe.forceKeepAttr=void 0,rn(z.uponSanitizeAttribute,q,Oe),N=Oe.attrValue,Ot&&(nn==="id"||nn==="name")&&(Mr(ht,q),N=cr+N),$e&&mn(/((--!?|])>)|<\/(style|title|textarea)/i,N)){Mr(ht,q);continue}if(nn==="attributename"&&Md(N,"href")){Mr(ht,q);continue}if(Oe.forceKeepAttr)continue;if(!Oe.keepAttr){Mr(ht,q);continue}if(!pt&&mn(/\/>/i,N)){Mr(ht,q);continue}st&&qu([he,L,xe],pe=>{N=ss(N,pe," ")});let H=Vt(q.nodeName);if(!Ir(H,nn,N)){Mr(ht,q);continue}if(G&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!Ge)switch(W.getAttributeType(H,nn)){case"TrustedHTML":{N=G.createHTML(N);break}case"TrustedScriptURL":{N=G.createScriptURL(N);break}}if(N!==Nr)try{Ge?q.setAttributeNS(Ge,ht,N):q.setAttribute(ht,N),Ai(q)?Or(q):sb(r.removed)}catch{Mr(ht,q)}}rn(z.afterSanitizeAttributes,q,null)},Xn=function Xe(q){let we=null,Oe=Cn(q);for(rn(z.beforeSanitizeShadowDOM,q,null);we=Oe.nextNode();)rn(z.uponSanitizeShadowNode,we,null),gi(we),In(we),we.content instanceof c&&Xe(we.content);rn(z.afterSanitizeShadowDOM,q,null)};return r.sanitize=function(Xe){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=null,Oe=null,kt=null,Yt=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(q),r.removed=[],typeof Xe=="string"&&(gt=!1),gt){if(Xe.nodeName){let wr=Vt(Xe.nodeName);if(!Ne[wr]||De[wr])throw us("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof b)we=Pr("<!---->"),Oe=we.ownerDocument.importNode(Xe,!0),Oe.nodeType===ds.element&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?we=Oe:we.appendChild(Oe);else{if(!Je&&!st&&!Ct&&Xe.indexOf("<")===-1)return G&&yr?G.createHTML(Xe):Xe;if(we=Pr(Xe),!we)return Je?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(Je){if(vr)for(Yt=K.call(we.ownerDocument);we.firstChild;)Yt.appendChild(we.firstChild);else Yt=we;return(Ye.shadowroot||Ye.shadowrootmode)&&(Yt=Te.call(a,Yt,!0)),Yt}let Ge=Ct?we.outerHTML:we.innerHTML;return Ct&&Ne["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&mn(bb,we.ownerDocument.doctype.name)&&(Ge="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
|
|
43
|
+
`+Ge),st&&qu([he,L,xe],wr=>{Ge=ss(Ge,wr," ")}),G&&yr?G.createHTML(Ge):Ge},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,q,we){nr||pr({});let Oe=Vt(Xe),kt=Vt(q);return Ir(Oe,kt,we)},r.addHook=function(Xe,q){typeof q=="function"&&ls(z[Xe],q)},r.removeHook=function(Xe,q){if(q!==void 0){let we=jR(z[Xe],q);return we===-1?void 0:PR(z[Xe],we,1)[0]}return sb(z[Xe])},r.removeHooks=function(Xe){z[Xe]=[]},r.removeAllHooks=function(){z=pb()},r}var cs=vb();var Ri=Dr(Yb()),to=class{constructor(r){this.namespace=r}set(r,n,a,u){if(Ri.default.enabled&&(this.removeExpiredKeys(),r&&n!==void 0)){n.documentElement&&(n=new XMLSerializer().serializeToString(n.documentElement));try{Ri.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){Ri.default.enabled&&r&&Ri.default.remove(r)}removeExpiredKeys(){Ri.default.enabled&&Ri.default.each((r,n)=>{r&&r.exp&&new Date().getTime()/1e3-r.time>r.exp&&this.remove(n)})}removeAll(){Ri.default.enabled}removeNamespace(){Ri.default.each((r,n)=>{r.namespace&&r.namespace===this.namespace&&this.remove(n)})}get(r){if(Ri.default.enabled&&r)if(this.removeExpiredKeys(),r){var n=Ri.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=Dr(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",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},PA=/[\x00-\x20<>\\"\{\}\|\^\`]/,JA={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},YA=/$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 JA)&&this[n]instanceof RegExp&&(this[n]=YA)}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="",D="",W="",U=null,P=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&&(P=1,F="^");break}case"<":if(U=this._unescapedIri.exec(a))F="IRI",D=U[1];else if(U=this._iri.exec(a)){if(D=this._unescape(U[1]),D===null||PA.test(D))return h(this);F="IRI"}else a.length>1&&a[1]==="<"?(F="<<",P=2):this._n3Mode&&a.length>1&&a[1]==="="&&(P=2,this._isImpliedBy?(F="abbreviation",D="<"):(F="inverse",D=">"));break;case">":a.length>1&&a[1]===">"&&(F=">>",P=2);break;case"_":((U=this._blank.exec(a))||n&&(U=this._blank.exec(`${a} `)))&&(F="blank",W="_",D=U[1]);break;case'"':if(U=this._simpleQuotedString.exec(a))D=U[1];else if({value:D,matchLength:P}=this._parseLiteral(a),D===null)return h(this);(U!==null||P!==0)&&(F="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(U=this._simpleApostropheString.exec(a))D=U[1];else if({value:D,matchLength:P}=this._parseLiteral(a),D===null)return h(this);(U!==null||P!==0)&&(F="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(U=this._variable.exec(a))&&(F="var",D=U[0]);break;case"@":this._previousMarker==="literal"&&(U=this._langcode.exec(a))?(F="langcode",D=U[1]):(U=this._keyword.exec(a))&&(F=U[0]);break;case".":if(a.length===1?n:a[1]<"0"||a[1]>"9"){F=".",P=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",D=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",D=U[0],W=af.boolean):A=!0;break;case"a":(U=this._shortPredicates.exec(a))?(F="abbreviation",D="a"):A=!0;break;case"=":this._n3Mode&&a.length>1&&(F="abbreviation",a[1]!==">"?(P=1,D="="):(P=2,D=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(P=1,F=I);break;case"{":!this._lineMode&&a.length>=2&&(a[1]==="|"?(F="{|",P=2):(F=I,P=1));break;case"|":a.length>=2&&a[1]==="}"&&(F="|}",P=2);break;default:A=!0}if(A&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(U=this._prefix.exec(a))?(F="prefix",D=U[1]||""):((U=this._prefixed.exec(a))||n&&(U=this._prefixed.exec(`${a} `)))&&(F="prefixed",W=U[1]||"",D=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=P||U[0].length,$=c(F,D,W,_,k);this.previousToken=$,this._previousMarker=F,a=a.substr(k,a.length)}function c(b,x,_,I,F){let D=a?u-a.length:u,W=D+F,U={type:b,value:x,prefix:_,line:I,start:D,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 S0=0,ao=class{constructor(r){this._contextStack=[],this._graph=null,r=r||{},this._setBase(r.baseIRI),r.factory&&R0(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(){S0=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${S0++}_`,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 R0(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")}R0(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:Dd(I.innerHTML)},D=I.getAttribute("datatype");D&&(F.datatype=D),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=Dr(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 D=I.lastIndexOf('"'),W=I.substring(1,D);if(D===I.length-1)x[F]={value:W,type:"literal"};else if(D<I.lastIndexOf("@")){let U=I.substring(I.lastIndexOf("@")+1);x[F]={value:W,type:"literal","xml:lang":U}}else if(D<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 JO=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 Ss(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 Ss(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 Ss(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 Ss(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 G0(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},Rc=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(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.statusText,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&(this.errorSummary={text:this.error.message})),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 G0(r)}},gf=Rc;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 Zi=cs.sanitize;var cN=Dr(X0()),hN=Dr($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=Dr(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 D=ye.settings;for(b=0,x=D.length;b<x;b++){var W=D[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,P=h.bDestroy!==void 0?h.bDestroy:I.bDestroy;if(a||U)return W.oInstance;if(P){new ye.Api(W).destroy();break}else{ui(W,0,"Cannot reinitialise DataTable",3);return}}if(W.sTableId==this.id){D.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,D.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 $=h.iDeferLoading;if($!==null){A.deferLoading=!0;var V=Array.isArray($);A._iRecordsDisplay=V?$[0]:$,A._iRecordsTotal=V?$[1]:$}var G=[],ee=this.getElementsByTagName("thead"),m=kv(A,ee[0]);if(h.aoColumns)G=h.aoColumns;else if(m.length)for(b=0,x=m[0].length;b<x;b++)G.push(null);for(b=0,x=G.length;b<x;b++)_v(A);x_(A,h.aoColumnDefs,G,m,function(ae,Ie){Uc(A,ae,Ie)});var M=F.children("tbody").find("tr:first-child").eq(0);if(M.length){var K=function(ae,Ie){return ae.getAttribute("data-"+Ie)!==null?Ie:null};Q(M[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=K(Ie,"sort")||K(Ie,"order"),Ke=K(Ie,"filter")||K(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",Df);var ue=A.oFeatures;if(h.bStateSave&&(ue.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]}Gc(A),si(A,"aoDrawCallback",function(){(A.bSorted||Hn(A)==="ssp"||ue.bDeferRender)&&Gc(A)});var z=F.children("caption");A.caption&&(z.length===0&&(z=Q("<caption/>").appendTo(F)),z.html(A.caption)),z.length&&(z[0]._captionSide=z.css("caption-side"),A.captionNode=z[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),Gt(A,null,"i18n",[A],!0),Cf(A)},error:function(){ui(A,0,"i18n file loading error",21),Cf(A)}}):(Gt(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,Mc=/<([^>]*>)/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"),Zc=/['\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},Sv=function(e,r){return Ac[r]||(Ac[r]=new RegExp(Dc(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=Sv(e,r)),n&&c&&(e=e.replace(Zc,"")),!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},Rv=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(Mc,"");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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):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,D=0,W=c.length-1;D<W;D++){if(c[D]==="__proto__"||c[D]==="constructor")throw new Error("Cannot set prototype values");if(x=c[D].match(Rs),_=c[D].match(fl),x){if(c[D]=c[D].replace(Rs,""),n[c[D]]=[],h=c.slice(),h.splice(0,D+1),F=h.join("."),Array.isArray(a))for(var U=0,P=a.length;U<P;U++)I={},r(I,a[U],F),n[c[D]].push(I);else n[c[D]]=a;return}else _&&(c[D]=c[D].replace(fl,""),n=n[c[D]](a));(n[c[D]]===null||n[c[D]]===void 0)&&(n[c[D]]={}),n=n[c[D]]}b.match(fl)?n=n[b.replace(fl,"")](a):n[b.replace(Rs,"")]=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,D=I.length;F<D;F++){if(h=I[F].match(Rs),b=I[F].match(fl),h){if(I[F]=I[F].replace(Rs,""),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 P=h[0].substring(1,h[0].length-1);a=P===""?x:x.join(P);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,D){var W=h(I,F,void 0,D);return a._render&&F?a._render(W,F,I,D):W},a.fnSetData=function(I,F,D){return lo(c)(I,F,D)},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),Gt(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,D;for(u=0,c=r.length;u<c;u++){if(I=r[u],D=[],!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,P=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]&&(D[x]===void 0&&(D[x]=fi(e,x,u,"type")),U&&!k&&(k=_c(W,U(D[x],e))),F=_c(W,P(D[x],e)),!F&&h!==a.length-3||F==="html"&&!Vn(D[x])));x++);if(U&&k&&F||!U&&F){I.sType=F;break}}I.sType||(I.sType="string")}var $=Xr.type.className[I.sType];$&&(lv(e.aoHeader,u,$),lv(e.aoFooter,u,$));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,Sf(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,D=e.aoColumns;if(n)for(c=0,h=n.length;c<h;c++)n[c]&&n[c].name&&(D[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(;D.length<=U;)_v(e);u(U,F)}else if(typeof U=="number"&&U<0)u(D.length+U,F);else if(typeof U=="string")for(_=0,I=D.length;_<I;_++)U==="_all"?u(_,F):U.indexOf(":name")!==-1?D[_].sName===U.replace(":name","")&&u(_,F):a.forEach(function(P){if(P[_]){var A=Q(P[_].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 Sf(e,r){r&&typeof r=="object"&&r.nodeName?Q(e).empty().append(r):e.innerHTML=r}var Rs=/\[.*?\]$/,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=Pc(e,r);if(b)if(a!==void 0)Sf(b[a],x[a]);else for(c=0,h=b.length;c<h;c++)Sf(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 D=function($,V){if(typeof $=="string"){var G=$.indexOf("@");if(G!==-1){var ee=$.substring(G+1),m=lo($);m(a,V.getAttribute(ee))}}},W=function($){if(n===void 0||n===x)if(b=I[x],_=$.innerHTML.trim(),b&&b._bAttrSrc){var V=lo(b.mData._);V(a,_),D(b.mData.sort,$),D(b.mData.type,$),D(b.mData.filter,$)}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,P=u.length;U<P;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 Pc(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,D,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],D=!(n&&a[I]),x=D?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=Pc(e,r);(D||(_.mRender||_.mData!==I)&&(!Q.isPlainObject(_.mData)||_.mData._!==I+".display"))&&Sf(x,U[I]),cl(x,_.sClass),_.bVisible&&D?b.appendChild(x):!_.bVisible&&!D&&x.parentNode.removeChild(x),_.fnCreatedCell&&_.fnCreatedCell.call(e.oInstance,x,fi(e,r,I),c,r,I)}Gt(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,P){return n.includes(P)}),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 D=0;D<I;D++)b[a+D][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 Rf(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){R_(e);var n=Gt(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,D=c?e.aoData.length:x,W=F;W<D;W++){var U=h[W],P=e.aoData[U];if(P!==null){P.nTr===null&&Lv(e,U);for(var A=P.nTr,k=0;k<_.length;k++){var $=_[k],V=P.anCells[k];cl(V,Xr.type.className[$.sType]),cl(V,e.oClasses.tbody.cell)}Gt(e,"aoRowCallback",null,[A,P._aData,u,W,U]),a.push(A),u++}}else a[0]=dv(e);Gt(e,"aoHeaderCallback","header",[Q(e.nTHead).children("tr")[0],uv(e),b,x,h]),Gt(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),Gt(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)S_(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 S_(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 D=x.split(".");I=D[0],F=D[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,D,W,U,P=e.titleRow,A=r&&r.nodeName.toLowerCase()==="thead",k=[],$,V=function(Te,z,he){for(var L=Te[z];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],D=0,h=c.firstChild;h;){if(h.nodeName.toUpperCase()=="TD"||h.nodeName.toUpperCase()=="TH"){var G=[],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,D),$=W===1,n){if($){Uc(e,F,Xv(ee.data()));var m=a[F],M=h.getAttribute("width")||null,K=h.style.width.match(/width:\s*(\d+[pxem%]+)/);K&&(M=K[1]),m.sWidthOrig=m.sWidth||M,A?(m.sTitle!==null&&!m.autoTitle&&(P===!0&&b===0||P===!1&&b===u.length-1||P===b||P===null)&&(h.innerHTML=m.sTitle),!m.sTitle&&$&&(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 ue=A?"header":"footer";Q("span.dt-column-"+ue,h).length===0&&Q("<div>").addClass("dt-column-"+ue).append(h.childNodes).appendTo(h)}for(_=0;_<W;_++){for(x=0;x<U;x++)k[b+x][F+_]={cell:h,unique:$},k[b+x].row=c;G.push(F+_)}h.setAttribute("data-dt-column",gl(G).join(","))}h=h.nextSibling}return k}function R_(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 Jc(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 D=I.error||I.sError;if(D&&ui(e,0,D),I.d&&typeof I.d=="string")try{I=JSON.parse(I.d)}catch{}e.json=I,Gt(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 D=Gt(e,null,"xhr",[e,null,e.jqXHR],!0);D.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,Gt(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),Jc(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,Gt(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,Gf(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("^"+Dc(e)+"$",a.caseInsensitive?"i":"");if(e=a.regex?e:Dc(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 Dc=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"),M_(e,n,function(){Rf(e,e.aoHeader),Rf(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),G_(e),Mv(e),Qn(e,!0),Gt(e,null,"preInit",[e],!0),pl(e),(u!="ssp"||a)&&(u=="ajax"?Jc(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),Gt(e,null,"plugin-init",r,!0),Gt(e,"aoInitComplete","init",r,!0)}}function Dv(e,r){var n=parseInt(r,10);e._iDisplayLength=n,Hv(e),Gt(e,null,"length",[e,n])}function Yc(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,Gt(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||Gt(e,null,"processing",[e,r])}function Gv(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/>",D=function($){return $?La($):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?D(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:D(a)}).append(r));I&&W.append(Q(F,{class:c.footer.self}).css({overflow:"hidden",border:0,width:a?D(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(),P=U[0],A=U[1],k=I?U[2]:null;return Q(A).on("scroll.DT",function(){var $=this.scrollLeft;P.scrollLeft=$,I&&(k.scrollLeft=$)}),Q("th, td",P).on("focus",function(){var $=P.scrollLeft;A.scrollLeft=$,I&&(A.scrollLeft=$)}),Q(A).css("max-height",u),n.bCollapse||Q(A).css("height",u),e.nScrollHead=P,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),D=Q(e.nTable),W=e.nTFoot&&Q("th, td",e.nTFoot).length?Q(e.nTFoot):null,U=e.oBrowser,P,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(D.children("thead, tfoot").remove(),P=F.clone().prependTo(D),P.find("th, td").removeAttr("tabindex"),P.find("[id]").removeAttr("id"),W&&(A=W.clone().prependTo(D),A.find("[id]").removeAttr("id")),e.aiDisplay.length){var $=null,V=Hn(e)!=="ssp"?e._iDisplayStart:0;for(M=V;M<V+e.aiDisplay.length;M++){var G=e.aiDisplay[M],ee=e.aoData[G].nTr;if(ee){$=ee;break}}if($)for(var m=Q($).children("th, td").map(function(L){return{idx:Vc(e,L),width:Q(this).outerWidth()}}),M=0;M<m.length;M++){var K=e.aoColumns[m[M].idx].colEl[0],ue=K.style.width.replace("px","");ue!==m[M].width&&(K.style.width=m[M].width+"px",r.sX&&(K.style.minWidth=m[M].width+"px"))}}c.find("colgroup").remove(),c.append(e.colgroup.clone()),W&&(I.find("colgroup").remove(),I.append(e.colgroup.clone())),Q("th, td",P).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(D.height())>h.clientHeight||b.css("overflow-y")=="scroll",z="padding"+(U.bScrollbarLeft?"Left":"Right"),he=D.outerWidth();c.css("width",La(he)),u.css("width",La(he)).css(z,Te?n+"px":"0px"),W&&(I.css("width",La(he)),_.css("width",La(he)).css(z,Te?n+"px":"0px")),D.children("colgroup").prependTo(D),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,D,W,U=r.style.width,P=hv(e);if(P===e.containerWidth)return!1;e.containerWidth=P,!U&&!x&&(r.style.width="100%",U="100%"),U&&U.indexOf("%")!==-1&&(x=U),Gt(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(D_(e,b[I]));if(k.length)for(I=0;I<k[0].length;I++){var $=Q("<tr/>").appendTo(A.find("tbody"));for(F=0;F<b.length;F++){W=b[F],D=n[W];var V=k[F][I]||"",G=Xr.type.className[D.sType],ee=D.sContentPadding||(c?"-":""),m=V+ee,M=V.indexOf("<")===-1?document.createTextNode(m):m;Q("<td/>").addClass(G).addClass(D.sClass).append(M).appendTo($)}}Q("[name]",A).removeAttr("name");var K=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 ue=0,Te=A.find("tbody tr").eq(0).children();for(I=0;I<b.length;I++){var z=Te[I].getBoundingClientRect().width;ue+=z,n[b[I]].sWidth=La(z)}if(r.style.width=La(ue),K.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 D_(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=Pc(e,b)[r],_=x&&typeof x=="object"&&x.nodeType?x.innerHTML:x+"";_=_.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");var I=ra(_).replace(/ /g," ");u.push({str:I,len:I.length}),a.push(I)}u.sort(function(D,W){return W.len-D.len}).splice(3),n.wideStrings=u.map(function(D){return D.str});let F=a.join(" ").split(" ");F.sort(function(D,W){return W.length-D.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 Mv(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 G_(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&&Zv(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 Zv(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&&Gv(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,D=Q.isPlainObject(F),W=[];if(!e.oFeatures.bSort)return u;for(Array.isArray(F)&&so(e,W,F),D&&F.pre&&so(e,W,F.pre),so(e,W,e.aaSorting),D&&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(D,W){var U,P,A,k,$,V=I.length,G=b[D]._aSortData,ee=b[W]._aSortData;for(A=0;A<V;A++)if($=I[A],U=G[$.col],P=ee[$.col],$.sorter){if(k=$.sorter(U,P),k!==0)return k}else if(k=U<P?-1:U>P?1:0,k!==0)return $.dir==="asc"?k:-k;return U=c[D],P=c[W],U<P?-1:U>P?1:0})}else I.length===0&&_.sort(function(D,W){return D<W?-1:D>W?1:0});return r===void 0&&(e.bSorted=!0,e.sortDetails=I,Gt(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 D=I._idx;return D===void 0&&(D=h.indexOf(I[1])),D+1<h.length?D+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 Gc(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 Df(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,Gt(e,"aoStateSaveParams","stateSaveParams",[e,a]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,a)}}function M_(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 _=Gt(e,"aoStateLoadParams","stateLoadParams",[e,r]);if(_.indexOf(!1)!==-1){e._bLoadingState=!1,n();return}if(e.oLoadedState=Q.extend(!0,{},r),Gt(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):Yc(e,r.start/e._iDisplayLength)),r.order!==void 0&&(e.aaSorting=[],Q.each(r.order,function(U,P){var A=[P[0],P[1]];if(typeof P[0]=="string"){var k=h.indexOf(P[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 D=F.indexOf(h[a]);D>=0?I.push(r.columns[D]):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,Gt(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&&Gt(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 Gt(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 Gf(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,Z_=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=Z_(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,Gf(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,D,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 P=new _t(I[h]);if(r==="table")c=n.call(P,I[h],h),c!==void 0&&u.push(c);else if(r==="columns"||r==="rows")c=n.call(P,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(D=this[h],r==="column-rows"&&(F=Wf(I[h],U.opts)),x=0,_=D.length;x<_;x++)W=D[x],r==="cell"?c=n.call(P,I[h],W.row,W.column,h,x):c=n.call(P,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);Gf(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){Yc(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){Dv(r,e)})});var Pv=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(),Jc(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){Pv(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){Pv(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 D=zc(e,_,"asc");if(x==="none")c=D;else for(n=0;n<D.length;n++)u=h.indexOf(D[n]),(u===-1&&x=="removed"||u>=0&&x=="applied")&&c.push(D[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 P=x[U];return h(U,P._aData,P.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 D=e.aIds[h.replace(/^#/,"")];if(D!==void 0)return[D.idx]}var W=Rv(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(),Gf(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(){Gt(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)},Jv=ye.util.throttle(function(e){Df(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"),Jv(n))}},Yv=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")),Gt(n[0],null,"childRow",[r,e.row(e[0])]),j_(n[0]),Jv(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,D=h.length;F<D;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,_)}))},P_="",Ls=P_+"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 Yv(this,!0),this});ze([Ls+".hide()",Of+".hide()"],function(){return Yv(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 J_=/^([^:]+)?:(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},Y_=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=Y_(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,$){return _($,nh(e,$,0,0,F),zv(e,$))?$:null})}var D=typeof _=="string"?_.match(J_):"";if(D)switch(D[2]){case"visIdx":case"visible":if(D[1]&&D[1].match(/^\d+$/)){var W=parseInt(D[1],10);if(W<0){var U=a.map(function(k,$){return k.bVisible?$:null});return[U[U.length+W]]}return[Vc(e,W)]}return a.map(function(k,$){return k.bVisible?D[1]?Q(h[$]).filter(D[1]).length>0?$:null:$:null});case"name":return u||(u=ln(a,"sName")),u.map(function(k,$){return k===D[1]?$:null});case"title":return c||(c=ln(a,"sTitle")),c.map(function(k,$){return k===D[1]?$:null});default:return[]}if(_.nodeName&&_._DT_CellIndex)return[_._DT_CellIndex.column];var P=Q(h).filter(_).map(function(){return Hc(this)}).toArray().sort(function(k,$){return k-$});if(P.length||!_.nodeName)return P;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,Mv(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){Rf(c,c.aoHeader),Rf(c,c.aoFooter),c.aiDisplay.length||Q(c.nTBody).find("td[colspan]").attr("colspan",Lf(c)),Df(c),n.iterator("column",function(h,b){a.includes(b)&&Gt(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=Rv(Ns(a,u,"anCells")),h=Q(Ev([],c)),b,x=e.aoColumns.length,_,I,F,D,W,U,P=function(A){var k=typeof A=="function";if(A==null||k){for(_=[],I=0,F=u.length;I<F;I++)for(b=u[I],D=0;D<x;D++)W={row:b,column:D},k?(U=a[b],A(W,fi(e,b,D),U.anCells?U.anCells[D]: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 $=h.filter(A).map(function(V,G){return{row:G._DT_CellIndex.row,column:G._DT_CellIndex.column}}).toArray();return $.length||!A.nodeName?$:(U=Q(A).closest("*[data-dt-row]"),U.length?[{row:U.data("dt-row"),column:U.data("dt-column")}]:[])};return $c("cell",r,P,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(D){return K_(D,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(D,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){Zv(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){Df(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 Gt(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,Gt(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=[],Gc(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 D=r.nTableWrapper.parentNode,W=r.nTableWrapper.nextSibling,U=e?"remove":"detach";b[U](),_[U](),!e&&D&&(D.insertBefore(a,W),b.css("width",r.sDestroyWidth).removeClass(n.table));var P=ye.settings.indexOf(r);P!==-1&&ye.settings.splice(P,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 Mf(e,n,Mc,Zc)}},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 Mf(e,n,Mc)}},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 Mf(e,n,Zc)}}});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 Mf(e,n)}}});var Mf=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=Sv(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,D=n.order,W=b.api.columns(r),U=e.aoColumns[W.flatten()[0]],P=W.orderable().includes(!0),A="",k=W.indexes(),$=W.orderable(!0).flatten(),V=e.iTabIndex,G=b.orderHandler&&P;r.removeClass(D.isAsc+" "+D.isDesc).toggleClass(D.none,!P).toggleClass(D.canAsc,G&&$.includes("asc")).toggleClass(D.canDesc,G&&$.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")?D.isAsc:""+m.includes("desc")?D.isDesc:"")}var M=-1;for(F=0;F<I.length;F++)if(e.aoColumns[I[F]].bVisible){M=I[F];break}if(k[0]==M){var K=_[0],ue=U.asSorting;r.attr("aria-sort",K.dir==="asc"?"ascending":"descending"),A=ue[K.index+1]?"Reverse":"Remove"}else r.removeAttr("aria-sort");if(P){var Te=r.find(".dt-column-order");Te.attr("role","button").attr("aria-label",P?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),Gt(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 D=function(P){var A=this.value;c.return&&P.key!=="Enter"||A!=c.search&&Gv(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(D,W):D).on("mouseup.DT",function(P){setTimeout(function(){D.call(U[0],P)},10)}).on("keypress.DT",function(P){if(P.keyCode==13)return!1}).attr("aria-controls",a);return Q(e.nTable).on("search.dt.DT",function(P,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=[],D=[],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 P=F[U],A=nN(e,P,_,I),k=Af(e,"pagingButton")(e,P,A.display,A.active,A.disabled),$=typeof P=="string"?u[P]:u.number?u.number+(P+1):null;Q(k.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":A.disabled?"true":null,"aria-current":A.active?"page":null,"aria-label":$,"data-dt-idx":P,tabIndex:A.disabled?-1:e.iTabIndex&&k.clicker[0].nodeName.toLowerCase()!=="span"?e.iTabIndex:null}),typeof P!="number"&&Q(k.clicker).addClass(P),Qv(k.clicker,{action:P},function(m){m.preventDefault(),Yc(e,m.data.action,!0)}),D.push(k.display)}var V=Af(e,"pagingContainer")(e,D),G=r.find(document.activeElement).data("dt-idx");if(r.empty().append(V),G!==void 0&&r.find("[data-dt-idx="+G+"]").trigger("focus"),D.length){var ee=Q(D[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="…";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_/,""),D="<label>"+r.text+"</label>";I?D="_MENU_<label>"+F+"</label>":_&&(D="<label>"+F+"</label>_MENU_");var W="tmp-"+ +new Date,U=Q("<div/>").addClass(a.container).append(D.replace("_MENU_",'<span id="'+W+'"></span>')),P=[];Array.prototype.slice.call(U.find("label")[0].childNodes).forEach(function(V){V.nodeType===Node.TEXT_NODE&&P.push({el:V,text:V.textContent})});var A=function(V){P.forEach(function(G){G.el.textContent=qc(e,G.text,V)})},k=Q("<select/>",{"aria-controls":u,class:a.select});for(x=0;x<h.length;x++){var $=e.api.i18n("lengthLabels."+h[x],null);$===null&&($=typeof b[x]=="number"?e.fnFormatNumber(b[x]):b[x]),k[0][x]=new Option($,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(){Dv(e,Q(this).val()),ml(e)}),Q(e.nTable).on("length.dt.DT",function(V,G,ee){e===G&&(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=Dr(Ec());var iN=Dr(sy());var cy=Dr(uy()),ah=50;function fy(e){Tt(this,"expanded"),e.preventDefault()}var Zf=class Zf{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=Zf.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=Zi(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?"":"<"}<a class='iri' target='${this.config.openIriInNewWindow?"_blank":"_self"}'${this.config.openIriInNewWindow?" ref='noopener noreferrer'":""} href='${a}'>${Zi(u)}</a>${h?"":">"}`;return Zi(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=Zi(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:Zi(n),render:(a,u,c,h)=>a===""?a:u==="filter"||u==="sort"||!u?Zi(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"),D=document.createElement("span");D.innerText="Datatypes",Tt(D,"label"),F.appendChild(D),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 P=document.createElement("span");P.textContent="Page size: ",P.className="pageSizerLabel",U.appendChild(P),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";let A=[10,50,100,1e3,-1];for(let k of A){let $=document.createElement("option");$.value=k+"",$.innerText=k>0?k+"":"All",this.dataTable?.page.len()===k&&($.selected=!0),this.tableSizeField.appendChild($)}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")}};Zf.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:"<<",last:">>",next:">",previous:"<"}}}};var Us=Zf;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 Zy=Dr(na()),XZ=Dr(sh()),jZ=Dr(by()),PZ=Dr(xy()),JZ=Dr(Iy()),YZ=Dr(Ry()),zZ=Dr(_y()),qZ=Dr(Ly());var uN=Dr(My());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(`
|
|
47
50
|
`);u.length>n.maxLines&&(a=u.slice(0,n.maxLines).join(`
|
|
48
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,Zy.default)(this.yasr.resultsEl,b),u.length>n.maxLines&&this.showLess(!1)}limitData(r){let n=r.split(`
|
|
49
52
|
`);return n.length>this.config.maxLines&&(r=n.slice(0,this.config.maxLines).join(`
|
|
50
|
-
`)),r}showLess(r=!0){if(!this.cm)return;Nt(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Nt(this.overLay,"overlay");let n=document.createElement("div");Nt(n,"overlay_content");let a=document.createElement("button");a.title="Show all",Nt(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",Nt(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}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 b=this.yasr.config.getPlainQueryLinkToEndpoint();b&&a.appendChild(this.getTryBtn(b))}if(n.text){let b=document.createElement("div");Nt(b,"errorMessageContainer"),r.appendChild(b);let x=document.createElement("pre");Nt(x,"errorMessage"),x.textContent=n.text,b.appendChild(x)}}else{if(this.yasr.config.getPlainQueryLinkToEndpoint){let h=this.yasr.config.getPlainQueryLinkToEndpoint();h&&a.appendChild(this.getTryBtn(h))}if(!n.text||n.text.indexOf("Request has been terminated")>=0)r.appendChild(this.getCorsMessage());else{let h=document.createElement("pre");h.textContent=n.text,r.appendChild(h)}}}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:Zi};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"):Nt(this.pluginSelectorsEl.querySelector(".select_"+a),"disabled")),a===this.getSelectedPluginName()?Nt(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(Nt(h,"yasr_btn","select_"+a),h.title=c,h.type="button",h.setAttribute("aria-label",`Shows ${c} view`),u.getIcon){let A=u.getIcon();A&&(Nt(A,"plugin_icon"),h.appendChild(A))}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");Nt(n,"space_element"),this.headerEl.appendChild(n),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),Nt(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"),Nt(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"),Nt(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 Nt(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 Nt(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",Nt(this.downloadBtn,"disabled")}}drawFullscreenButton(){this.fullscreenBtn=document.createElement("button"),Nt(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);Nt(n,"fullscreenIcon"),n.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(n);let a=ii(rv);Nt(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?(Nt(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"),Nt(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);})();
|
|
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 Ds=Vf;var Gs=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}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 b=this.yasr.config.getPlainQueryLinkToEndpoint();b&&a.appendChild(this.getTryBtn(b))}if(n.text){let b=document.createElement("div");Tt(b,"errorMessageContainer"),r.appendChild(b);let x=document.createElement("pre");Tt(x,"errorMessage"),x.textContent=n.text,b.appendChild(x)}}else{if(this.yasr.config.getPlainQueryLinkToEndpoint){let h=this.yasr.config.getPlainQueryLinkToEndpoint();h&&a.appendChild(this.getTryBtn(h))}if(!n.text||n.text.indexOf("Request has been terminated")>=0)r.appendChild(this.getCorsMessage());else{let h=document.createElement("pre");h.textContent=n.text,r.appendChild(h)}}}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:Zi};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=Gd("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",Ds);Ei.registerPlugin("error",Gs);var gN=Ei;return u1(mN);})();
|
|
51
54
|
/*! Bundled license information:
|
|
52
55
|
|
|
53
56
|
ieee754/index.js:
|