biofriction-wp-theme/node_modules/browser-sync-ui/public/js/app.js

3 lines
241 KiB
JavaScript
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
/*! For license information please see app.js.LICENSE.txt */
(()=>{var t={540:t=>{function e(){}t.exports=function(t,n,r){var i=!1;return r=r||e,o.count=t,0===t?n():o;function o(t,e){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,n(t),n=r):0!==o.count||i||n(null,e)}}},8537:()=>{!function(t,e,n){"use strict";var r=e.module("ngRoute",["ng"]).provider("$route",(function(){function t(t,n){return e.extend(Object.create(t),n)}var n={};function r(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,(function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,s="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",(o?"":e)+"(?:"+(o?e:"")+(s?"(.+?)":"([^/]+)")+(o||"")+")"+(o||"")})).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),n[t]=e.extend(o,t&&r(t,o)),t){var s="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";n[s]=e.extend({redirectTo:t},r(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,o,s,a,c,u,l){var f,h,p=!1,d={routes:n,reload:function(){p=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,p=!1}};r.$evalAsync((function(){g(t),t.defaultPrevented||m()}))},updateParams:function(t){if(!this.current||!this.current.$$route)throw i("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),o.path(v(this.current.$$route.originalPath,t)),o.search(t)}};return r.$on("$locationChangeStart",g),r.$on("$locationChangeSuccess",m),d;function g(i){var s,a,c=d.current;e.forEach(n,(function(n,r){!a&&(s=function(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,s=i.length;o<s;++o){var a=n[o-1],c=i[o];a&&c&&(r[a.name]=c)}return r}(o.path(),n))&&((a=t(n,{params:e.extend({},o.search(),s),pathParams:s})).$$route=n)})),f=a||n.null&&t(n.null,{params:{},pathParams:{}}),(h=f&&c&&f.$$route===c.$$route&&e.equals(f.pathParams,c.pathParams)&&!f.reloadOnSearch&&!p)||!c&&!f||r.$broadcast("$routeChangeStart",f,c).defaultPrevented&&i&&i.preventDefault()}function m(){var t=d.current,n=f;h?(t.params=n.params,e.copy(t.params,s),r.$broadcast("$routeUpdate",t)):(n||t)&&(p=!1,d.current=n,n&&n.redirectTo&&(e.isString(n.redirectTo)?o.path(v(n.redirectTo,n.params)).search(n.params).replace():o.url(n.redirectTo(n.pathParams,o.path(),o.search())).replace()),a.when(n).then((function(){if(n){var t,r,i=e.extend({},n.resolve);return e.forEach(i,(function(t,n){i[n]=e.isString(t)?c.get(t):c.invoke(t,null,null,n)})),e.isDefined(t=n.template)?e.isFunction(t)&&(t=t(n.params)):e.isDefined(r=n.templateUrl)&&(e.isFunction(r)&&(r=r(n.params)),e.isDefined(r)&&(n.loadedTemplateUrl=l.valueOf(r),t=u(r))),e.isDefined(t)&&(i.$template=t),a.all(i)}})).then((function(i){n==d.current&&(n&&(n.locals=i,e.copy(n.params,s)),r.$broadcast("$routeChangeSuccess",n,t))}),(function(e){n==d.current&&r.$broadcast("$routeChangeError",n,t,e)})))}function v(t,n){var r=[];return e.forEach((t||"").split(":"),(function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}})),r.join("")}}]})),i=e.$$minErr("ngRoute");function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,c){var u,l,f,h=s.autoscroll,p=s.onload||"";function d(){f&&(r.cancel(f),f=null),u&&(u.$destroy(),u=null),l&&((f=r.leave(l)).then((function(){f=null})),l=null)}function g(){var s=t.current&&t.current.locals,a=s&&s.$template;if(e.isDefined(a)){var f=i.$new(),g=t.current,m=c(f,(function(t){r.enter(t,null,l||o).then((function(){!e.isDefined(h)||h&&!i.$eval(h)||n()})),d()}));l=m,(u=g.scope=f).$emit("$viewContentLoaded"),u.$eval(p)}else d()}i
//# sourceMappingURL=app.js.map