Files

2 lines
2.5 MiB
JavaScript
Raw Permalink Normal View History

2026-07-14 15:32:49 +00:00
/*! For license information please see Code.js.LICENSE.txt */
(()=>{var e={4424(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function i(e){return/^[.?#]/.test(e)}function a(e){const n=t.exec(e);return o(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function o(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function s(t){if(function(e){return e.startsWith("//")}(t)){const e=a("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){const e=a("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),i=t[2];return o("file:","",t[1]||"","",r(i)?i:"/"+i,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return a(t);const i=a("http://foo.com/"+t);return i.scheme="",i.host="",i.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,i}function l(e,t){const n=t<=4,r=e.path.split("/");let i=1,a=0,o=!1;for(let e=1;e<r.length;e++){const t=r[e];t?(o=!1,"."!==t&&(".."!==t?(r[i++]=t,a++):a?(o=!0,a--,i--):n&&(r[i++]=t))):o=!0}let s="";for(let e=1;e<i;e++)s+="/"+r[e];(!s||o&&!s.endsWith("/.."))&&(s+="/"),e.path=s}return function(e,t){if(!e&&!t)return"";const n=s(e);let r=n.type;if(t&&7!==r){const e=s(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:!function(e,t){l(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}l(n,r);const a=n.query+n.hash;switch(r){case 2:case 3:return a;case 4:{const r=n.path.slice(1);return r?i(t||e)&&!i(r)?"./"+r+a:r+a:a||"."}case 5:return n.path+a;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+a}}}()},44582(e,t){"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var r=n({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}},t.freeze=n,t.MIME_TYPE=r,t.NAMESPACE=i},15752(e,t,n){var r=n(44582),i=n(84722),a=n(56559),o=n(64466),s=i.DOMImplementation,l=r.NAMESPACE,u=o.ParseError,c=o.XMLReader;function E(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function d(){this.cdata=!1}function _(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function f(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function S(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var n=this.options,r=new c,i=n.domBuilder||new d,o=n.errorHandler,s=n.locator,u=n.xmlns||{},p=/\/x?html?$/.test(t),_=p?a.HTML_ENTITIES:a.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=function(e,t,n){if(!e){if(t instanceof d)return t;e=t}var r={},i=e instanceof Function;function a(t){var a=e[t];!a&&i&&(a=2==e.length?function(n){e(t,n)}:e),r[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),r}(o,i,s),r.domBuilder=n.domBuilder||i,p&&(u["