pleroma/priv/static/packs/common.js

2 lines
1020 KiB
JavaScript
Raw Normal View History

2019-06-26 19:06:28 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,,,,,,,function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"e",function(){return s}),a.d(t,"g",function(){return r}),a.d(t,"d",function(){return l}),a.d(t,"b",function(){return _});var i=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},s=function(e,t){return o(e,t)?e.substr(t.length):e},r=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var t=e||"/",a="",i="",n=t.indexOf("#");-1!==n&&(i=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===i?"":i}},_=function(e){var t=e.pathname,a=e.search,i=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}},,,,,function(e,t,a){"use strict";e.exports=function(){}},,,function(e,t,a){"use strict";a.d(t,"b",function(){return i}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return s}),a.d(t,"g",function(){return r}),a.d(t,"h",function(){return l}),a.d(t,"f",function(){return _}),a.d(t,"d",function(){return g});var i=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},o=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},s=function(e,t){return t(window.confirm(e))},r=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},_=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},g=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function f(e){return"/"===e.charAt(0)}function u(e,t){for(var a=t,i=a+1,n=e.length;i<n;a+=1,i+=1)e[a]=e[i];e.pop()}var o=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],i=t&&t.split("/")||[],n=e&&f(e),o=t&&f(t),s=n||o;if(e&&f(e)?i=a:a.length&&(i.pop(),i=i.concat(a)),!i.length)return"/";var r=void 0;if(i.length){var l=i[i.length-1];r="."===l||".."===l||""===l}else r=!1;for(var _=0,g=i.length;0<=g;g--){var c=i[g];"."===c?u(i,g):".."===c?(u(i,g),_++):_&&(u(i,g),_--)}if(!s)for(;_--;_)i.unshift("..");!s||""===i[0]||i[0]&&f(i[0])||i.unshift("");var d=i.join("/");return r&&"/"!==d.substr(-1)&&(d+="/"),d},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function a(t,i){if(t===i)return!0;if(null==t||null==i)return!1;if(Array.isArray(t))return Array.isArray(i)&&t.length===i.length&&t.every(function(e,t){return a(e,i[t])});var e=void 0===t?"undefined":l(t);if(e!==(void 0===i?"undefined":l(i)))return!1;if("object"!==e)return!1;var n=t.valueOf(),o=i.valueOf();if(n!==t||o!==i)return a(n,o);var s=Object.keys(t),r=Object.keys(i);return s.length===r.length&&s.every(function(e){return a(t[e],i[e])})},s=a(8);a.d(t,"a",function(){return n}),a.d(t,"b",function(){return _});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n=function(e,t,a,i){var n=void 0;"string"==typeof e?(n=Object(s.d)(e)).state=t:(void 0===(n=r({},e)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==t&&void 0===n.state&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(e){throw e instanceof URIError?new URIEr
//# sourceMappingURL=common.js.map