1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-16 00:10:44 +02:00
Files
imgproxy/docs/assets/docsify.min.20230513.js

2 lines
169 KiB
JavaScript
Raw Normal View History

2023-05-13 22:56:39 +03:00
!function(){function r(i){var o=Object.create(null);return function(e){var n=f(e)?e:JSON.stringify(e);return o[n]||(o[n]=i(e))}}var u=r(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),c=Object.prototype.hasOwnProperty,m=Object.assign||function(e){for(var n=arguments,i=1;i<arguments.length;i++){var o,t=Object(n[i]);for(o in t)c.call(t,o)&&(e[o]=t[o])}return e};function f(e){return"string"==typeof e||"number"==typeof e}function d(){}function o(e){return"function"==typeof e}function s(e){e=e.match(/^([^:/?#]+:)?(?:\/{2,}([^/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&0<e[1].length&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&0<e[2].length&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}var g=document.body.clientWidth<=600,t=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),i={};function l(e,n){if(void 0===n&&(n=!1),"string"==typeof e){if(void 0!==window.Vue)return b(e);e=n?b(e):i[e]||(i[e]=b(e))}return e}var v=document,h=v.body,_=v.head;function b(e,n){return n?e.querySelector(n):v.querySelector(e)}function D(e,n){return[].slice.call(n?e.querySelectorAll(n):v.querySelectorAll(e))}function k(e,n){return e=v.createElement(e),n&&(e.innerHTML=n),e}function a(e,n){return e.appendChild(n)}function w(e,n){return e.insertBefore(n,e.children[0])}function p(e,n,i){o(n)?window.addEventListener(e,n):e.addEventListener(n,i)}function y(e,n,i){o(n)?window.removeEventListener(e,n):e.removeEventListener(n,i)}function F(e,n,i){e&&e.classList[i?n:"toggle"](i||n)}function e(e,n){var i=(n=void 0===n?document:n).readyState;if("complete"===i||"interactive"===i)return setTimeout(e,0);n.addEventListener("DOMContentLoaded",e)}var n=Object.freeze({__proto__:null,getNode:l,$:v,body:h,head:_,find:b,findAll:D,create:k,appendTo:a,before:w,on:p,off:y,toggleClass:F,style:function(e){a(_,k("style",e))},documentReady:e});function x(e,n){return-1!==e.indexOf(n,e.length-n.length)}var A=decodeURIComponent,E=encodeURIComponent;function C(e){var n={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach(function(e){e=e.replace(/\+/g," ").split("=");n[e[0]]=e[1]&&A(e[1])}),n}function B(e,n){void 0===n&&(n=[]);var i,o=[];for(i in e)-1<n.indexOf(i)||o.push(e[i]?(E(i)+"="+E(e[i])).toLowerCase():E(i));return o.length?"?"+o.join("&"):""}var S=r(function(e){return/(:|(\/{2}))/g.test(e)}),z=r(function(e){return e.split(/[?#]/)[0]}),$=r(function(e){if(/\/$/g.test(e))return e;e=e.match(/(\S*\/)[^/]+$/);return e?e[1]:""}),T=r(function(e){return e.replace(/^\/+/,"/").replace(/([^:])\/{2,}/g,"$1/")}),R=r(function(e){for(var n=e.replace(/^\//,"").split("/"),i=[],o=0,t=n.length;o<t;o++){var u=n[o];".."===u?i.pop():"."!==u&&i.push(u)}return"/"+i.join("/")});function j(e){return e.split("/").filter(function(e){return-1===e.indexOf("#")}).join("/")}function L(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return T(e.map(j).join("/"))}var O=r(function(e){return e.replace("#","?id=")}),q={};function P(e){this.config=e}function M(e){var n=location.href.indexOf("#");location.replace(location.href.slice(0,0<=n?n:0)+"#"+e)}P.prototype.getBasePath=function(){return this.config.basePath},P.prototype.getFile=function(e,n){void 0===e&&(e=this.getCurrentPath());var i,o,t=this.config,u=this.getBasePath(),a="string"==typeof t.ext?t.ext:".md";return e=t.alias?function e(n,i,o){var t=Object.keys(i).filter(function(e){return(q[e]||(q[e]=new RegExp("^"+e+"$"))).test(n)&&n!==o})[0];return t?e(n.replace(q[t],i[t]),i,n):n}(e,t.alias):e,i=e,o=a,e=(e=new RegExp("\\.("+o.replace(/^\./,"")+"|html)$","g").test(i)?i:/\/$/g.test(i)?i+"README"+o:""+i+o)==="/README"+a&&t.homepage||e,e=S(e)?e:L(u,e),e=n?e.replace(new RegExp("^"+u),""):e},P.prototype.onchange=function(e){(e=void 0===e?d:e)()},P.prototype.getCurrentPath=function(){},P.prototype.normalize=function(){},P.prototype.parse=function(){},P.prototype.toURL=function(e,n,i){var o=i&&"#"===e[0],t=this.p