From 31d458b75d0f587d88aad2b352651c589deec15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Tue, 19 Nov 2019 12:45:11 +0100 Subject: [PATCH] fix bug regarding semver suffix identifier --- dist/cache/dispose.js | 2 +- dist/cache/states.js | 2 +- dist/demand.js | 4 ++-- dist/demand.js.map | 2 +- dist/handler/css.js | 2 +- dist/handler/html.js | 2 +- dist/handler/json.js | 2 +- dist/handler/legacy.js | 2 +- dist/handler/text.js | 2 +- dist/plugin/cookie.js | 2 +- dist/plugin/lzstring.js | 2 +- dist/plugin/sri.js | 2 +- package.json | 2 +- src/class/semver.js | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/cache/dispose.js b/dist/cache/dispose.js index 9cdf254..3e482e9 100644 --- a/dist/cache/dispose.js +++ b/dist/cache/dispose.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(){"use strict";provide(["/demand/function/iterate","./states"],function(e,c){function t(e,c){return e.accessedc.accessed?1:0}return function(e){var n,s=c();for(s.sort(t);e>0&&s.length;)e-=(n=s.shift()).size,demand.cache.clear(n.id)}})}(); //# sourceMappingURL=dispose.js.map diff --git a/dist/cache/states.js b/dist/cache/states.js index 3a4e0b9..609b1ec 100644 --- a/dist/cache/states.js +++ b/dist/cache/states.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(e){"use strict";provide(["/demand/function/iterate"],function(t){var n="demand",r="state",a=new RegExp("^\\["+n+"\\]\\[(.+?)\\]\\["+r+"\\]$"),i=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;function c(t){var c,s,d=t.match(a);d&&(c=function(t){var n,r=e.getItem(t);if(r&&(n=r.match(i)))return Array.prototype.slice.call(n,1)}((s=d[1],"["+n+"]["+s+"]["+r+"]")),this.push({id:d[1],version:c[0],size:parseInt(c[1],10),expires:c[2]?new Date(parseInt(c[2],10)):null,demand:c[3],accessed:new Date(parseInt(c[4],10))}))}return function(){return t(e,c,[])}})}(localStorage); //# sourceMappingURL=states.js.map diff --git a/dist/demand.js b/dist/demand.js index 432165a..f4a37f5 100644 --- a/dist/demand.js +++ b/dist/demand.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ -!function(e,t,n){"use strict";var r,i,o,a,u=e.document,s="demand"in e&&e.demand,c={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="/demand/handler/",d="mock:",l=null,h=void 0,p=!1,v=!0,m="undefined",g="string",y="object",w="function",x="number",b="preConfigure",j="postConfigure",q="preResolve",k="postResolve",R="preRequest",E="postRequest",P="queueEnqueue",M="error loading",S="error resolving",C=Array.prototype,O=C.slice,A=C.concat,$=Object,I=$.prototype.toString,T=$.create,D=$.defineProperty,H=$.getOwnPropertyNames,N=$.getOwnPropertyDescriptor,L=u.createElement("a");function W(e,t,n,r){return{__proto__:l,value:e,enumerable:!!r,configurable:!!n,writable:!!t}}function z(e,t){return typeof e===t}function _(e){return e&&z(e,y)}function F(e){return z(e,x)&&isFinite(e)&&Math.floor(e)===e&&e>=0}function U(e,t){return e instanceof t}!function(t){function n(e,t,n,r,i){D(this,e,new W(t,n,r,i))}function r(e){for(var n,r=this[t],i=H(r),o={constructor:new W(this,v,v)},a=0;(n=i[a])&&!o[n];a++)o[n]=N(r,n);try{this[t]=T(e[t]||e,o)}catch(e){}if(this[t]===r)throw new TypeError("Unable to extend, prototype is not writable");return this}n.call(Object.prototype,"define",n),n.call(e.Object.prototype,"define",n),Function.prototype.define("extends",r),e.Function.prototype.define("extends",r)}("prototype");var X,B=(X=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,function(e){return z(e,g)&&X.test(e)});function G(e,t,n){for(var r,i=$.keys(e),o=0;(r=i[o])!==h&&t.call(n,r,e[r])!==p;o++);return n}var J,K,Q,V,Y=function(){function e(e,t){var n,r=this[e];t!==h&&(_(t)?(n=_(r),r=t.length!==h?n&&r.length!==h?r:[]:n&&r.length===h?r:{},this[e]=Y(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==h;r++)G(t,e,n);return n}}(),Z=function(){var e=new RegExp("[xy]","g");function t(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t)}}(),ee=(V="setImmediate"in e,"MutationObserver"in e?function(e){K=u.createElement("div"),new MutationObserver(function(){e()}).observe(K,{attributes:v}),K.setAttribute("i","1")}:!V&&"postMessage"in e&&!("importScripts"in e)&&"addEventListener"in e?(J={},e.addEventListener("message",function(t){var n;t.source===e&&t.data&&(n=J[t.data])&&(n(),delete J[t.data])},p),function(t){var n=Z();J[n]=t,e.postMessage(n,"*")}):!V&&"onreadystatechange"in(K=u.createElement("script"))?function(e){K.onreadystatechange=function(){K.onreadystatechange=l,K.parentNode.removeChild(K),e()},u.body.appendChild(K)}:(Q=V?setImmediate:t,function(e){Q(e)}));function te(e,t,n){return O.call(e,t,n)}var ne=function(){var e="on",t=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)$/,n={};function r(r,i,o){var a,u;if(z(i,g)&&z(o,w))for(i=i.split(" ");a=i.shift();)a=a.split(":"),t.test(a[0])&&((n[a[0]]||(n[a[0]]={on:[],after:[]}))[r].push({callback:o,filter:a[1]}),r===e&&a[0]===j&&(u=c.modules[a[1]])&&o(u))}function i(){}return i.prototype={emit:function(t,r){var i,o,a,u=n[t];if(u){for(i=te(arguments,2),o=0;a=u[e][o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i);for(o=0;a=u.after[o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i)}return this},on:function(t,n){return r(e,t,n),this},after:function(e,t){return r("after",e,t),this}},new i}(),re="WeakMap"in e?(new e.WeakMap).set(function(){},!1)instanceof e.WeakMap?e.WeakMap:function(){var t=new e.WeakMap;return t.set=function(){return e.WeakMap.prototype.set.apply(this,arguments),this},t}:function(){var e="weakmap-";function t(e,t){var n;if((n=t[e.id])&&n[0]===t)return n}function n(){this.define("id",e+Z())}return n.prototype={set:function(e,n){var r=t(this,e);return r?r[1]=n:e.define(this.id,[e,n]),this},get:function(e){var n=t(this,e);if(n)return n[1]},delete:function(e){var n=t(this,e);n&&(n.length=0,delete e[this.id])},has:function(e){return!!t(this,e)}},n}();function ie(){return z(this.uuid,m)&&this.define("uuid",Z()),this}var oe=function(){var e=new re;function t(){var t=ie.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=te(arguments);e.set(this,e.get(this).concat(t)),ne.emit(P,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return ne.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(ie)}(),ae=function(){var r,i="object"==typeof e.safari&&e.safari.pushNotification?"beforeunload":"visibilitychange",o=e.requestIdleCallback||function(e,n){var r=+new Date;return t(function(){e({didTimeout:p,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})},n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},s=new oe;function c(){s.dequeue()(),r=s.length&&o(c)}return e.addEventListener(i,function(e){var t;if(s.length&&("visibilitychange"!==e.type||"hidden"===u.visibilityState)){r=a(r);do{t&&t()}while(t=s.dequeue())}},v),function(e,t){s.enqueue(e),!r&&s.length&&(r=o(c,{timeout:t}))}}();function ue(){return+new Date}var se,ce=(se=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,function(e){return e.replace(se,"\\$&")});function fe(e){return L.href=e,L.href}var de=/^(http(s?):)?\/\//i,le=/^\//,he=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,pe=new RegExp("^"+ce(fe("/"))),ve=new RegExp("^demand|provide|path$"),me=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ge(e,t){var n=e.replace(me,"");return le.test(n)||de.test(n)||(n="/"+fe((t&&fe(t+"/../")||"/")+n).replace(pe,"")),n}function ye(e,t){var n=e.match(me);return(n&&n[1]?"mock:":"")+(n&&n[3]||c.handler)+"!"+ge(e,t)}var we=function(){function e(e,t){return et?1:0}function t(e){if(!B(e))throw new TypeError('"version" must be a valid semver version string');e=function(e){var t,n=e.split("-"),r=0;for(n=n[1]?Array.prototype.concat(n[0].split("."),n[1].split(".")):n[0].split(".");t=n[r];r++)n[r]=parseInt(t,10).toString()===t?parseInt(t,10):t;return n}(e),this.major=e.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e.shift()}return t.prototype={toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.identifier.length?"-"+this.identifier.join("."):"")},compare:function(t){return e(this.major,t.major)||e(this.minor,t.minor)||e(this.patch,t.patch)||function(e,t){var n,r,i,o,a=0;if(e.length&&!t.length)return-1;if(!e.length&&t.length)return 1;if(!e.length&&!t.length)return 0;do{if(n=e[a],o=typeof(r=t[a]),(i=typeof n)===m&&o===m)return 0;if(o===m)return 1;if(i===m)return-1;if(n===r);else{if(i===g&&o!==g)return 1;if(i!==g&&o===g)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)}),t?t.state:p)}function d(e){return a.getItem(e)}function h(e,t){a[t?"setItem":"removeItem"](e,t)}function m(e){var t,n=d(e);if(n&&(t=n.match(i)))return te(t,1)}function g(e,t){t[4]=ue(),h(e,t.join(","))}function y(e,t,n){ne.emit(e,t.id,t,n)}function w(){ae(this.clear.expired.bind(this.clear),c.delay)}return ne.on("cacheMiss",function(e){ae(function(){t.clear(e.id)})}).on("cacheExceed",function(e){r("-!/demand/cache/dispose").then(function(n){ae(function(){n(e.source.length),t.set(e)},c.delay)})}).on(E,function(e){e.source&&f(e)&&(s[e.id]=v)}).after("postProcess",function(e){s[e.id]&&ae(function(){t.set(e)},c.delay)}),w.prototype={get:o?function(e){var t,n;if(f(e)){if(t="[demand]["+e.id+"]",!(n=m(t+"[state]")))return;return 1===e.version.compare(new we(n[0]))||n[2]&&e.lifetime&&n[2]<=ue()?void(e.invalid=!0):(e.source=d(t+"[value]"),ae(function(){g(t+"[state]",n)},c.delay),v)}}:function(){},resolve:o?function(e){this.get(e)?y("cacheHit",e):y("cacheMiss",e)}:function(e){y("cacheMiss",e)},set:o?function(e){var t,n,i;if(f(e)){t=[e.version,e.source.length,e.lifetime?ue()+e.lifetime:l,r.version],n="[demand]["+e.id+"]",y("preCache",e,t);try{if(i=u?a.remainingSpace:l,h(n+"[value]",e.source),g(n+"[state]",t),i!==l&&a.remainingSpace===i)throw new Error;y("postCache",e,t)}catch(t){y("cacheExceed",e)}}}:function(){},clear:o?function(e){var t=ye(e),n="[demand]["+t+"]";d(n+"[state]")&&(h(n+"[state]"),h(n+"[value]"),y("cacheClear",ke.get(t)||new ke(t,l,p)))}:function(){}},w.prototype.clear.all=o?function(){var e;G(a,function(t){(e=t.match(n))&&this(e[1])},this)}:function(){},w.prototype.clear.expired=o?function(){var e,t;G(a,function(r){(e=r.match(n))&&(t=m("[demand]["+e[1]+"][state]"))&&t[2]>0&&t[2]<=ue()&&this(e[1])},this)}:function(){},t=new w}(),be=function(){var e="pending",t="resolved",n="rejected",r=new re;function i(i,o){var a,u,s=r.get(this);for(s.state===e&&(s.state=i,s.value=o);a=s[s.state].shift();)(u=a.handler.apply(l,s.value))&&"function"==typeof u.then?u.then(a.dfd.resolve,a.dfd.reject):a.dfd[s.state===t?"resolve":"reject"].apply(l,s.value);s[t].length=0,s[n].length=0}function o(e,t,n){e.then(function(){n.resolved[t]=te(arguments),n.count++,a(n)},function(){n.rejected.push(te(arguments)),a(n)})}function a(e){e.count===e.total?e.dfd.resolve.apply(l,A.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(l,A.apply([],e.rejected))}function u(o){return r.set(this,{state:e,handle:i.bind(this),value:l,resolved:[],rejected:[],count:0}),o(function(){r.get(this).handle(t,arguments)}.bind(this),function(){r.get(this).handle(n,arguments)}.bind(this)),this}return u.prototype={catch:function(e){return this.then(function(){},e)},always:function(e){return this.then(e,e)},then:function(i,o){var a=r.get(this),s=u.defer();return i&&a[t].push({handler:i,dfd:s}),o&&a[n].push({handler:o,dfd:s}),a.state!==e&&ee(a.handle),s.pledge},isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n}},u.defer=function(){var e={};return e.pledge=new u(function(t,n){e.resolve=t,e.reject=n}),e},u.all=function(e){var t,n,r=u.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)o(n,i,t);else r.resolve();return r.pledge},u.race=function(e){for(var t,n=u.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},u}(),je=function(){var e=new re;function t(){e.set(this,{})}return t.prototype={get:function(t){return t?e.get(this)[t]:e.get(this)},set:function(t,n){e.get(this)[t]=n},remove:function(t){delete e.get(this)[t]}},t}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var ke=function(){var e=new je,t=/^(?:mock:|internal!)/i,n=[];function o(e,t){this[e]=t}function a(e){t.test(e)||this.push(e)}function s(e,n){!t.test(e)&&n.pledge.isPending()&&this.push(e)}function h(e,n){!t.test(e)&&n.pledge.isResolved()&&this.push(e)}function m(e,n){!t.test(e)&&n.pledge.isRejected()&&this.push(e)}function g(){return G(e.get(),a,[])}function y(t,r,i){var o=this,a=t.match(me)||n;return o.path=ge(t,r),o.mock=a[1]?v:p,o.cache=a[2]?"+"===a[1]:l,o.type=a[3]||c.handler,o.version=new we(a[4]||c.version),o.lifetime=a[5]&&1e3*a[5]||c.lifetime,o.id=(o.mock?d:"")+o.type+"!"+o.path,o.uri=(o.mock?d:"")+o.type+"@"+o.version+(F(o.lifetime)&&o.lifetime>0?"#"+o.lifetime:"")+"!"+o.path,o.dfd=be.defer(),o.pledge=o.dfd.pledge,o.invalid=!1,o.pledge.then(function(){o.value=te(arguments)}),i!==p&&e.set(o.id,o),o}return g.pending=function(){return G(e.get(),s,[])},g.resolved=function(){return G(e.get(),h,[])},g.rejected=function(){return G(e.get(),m,[])},y.prototype={enqueue:!0},y.get=function(t,n){return e.get(ye(t,n))},y.resolve=function(e,t){var n,a=t&&ve.test(e),u=a?this.get("internal!"+t+"/"+e):this.get(e,t);if(!u)if(a){switch(u=new y("internal!"+t+"/"+e),e){case"demand":n=G(r,o,r.bind(t));break;case"provide":n=i.bind(t);break;case"path":n=t}u.dfd.resolve(n)}else u=new y(e,t),r(f+u.type).then(function(e){u.handler=e,u.mock?u.dfd.resolve(e):xe.resolve(u)},function(){u.dfd.reject(new qe(M+" (handler)",self.id))});return u},y.remove=function(t,n,r){var i=ye(t,n),o=u.querySelector('[demand-id="'+i+'"]');e.remove(i),e.remove(d+i),o&&o.parentNode.removeChild(o),r!==p&&xe.clear(i)},y.list=g,y}(),Re=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:fe(n).replace(e,"$1"),match:new RegExp("^"+ce(n))}}function n(e,n){this.weight=e.length,this.match=new RegExp("^"+ce(e)),this.location=[].concat(n),G(this.location,t,this.location)}return n.prototype={matches:function(e){return this.match.test(e)},process:function(e,t){var n=this.location[t];if(n)return e.replace(this.match,n.url)}},n}(),Ee=function(r){var i="XDomainRequest"in e&&e.XDomainRequest||r;return function(e){var o,a=be.defer(),u=pe.test(e)?new r:new i,s=function(){this.readyState<4&&this.abort()}.bind(u),f=c.timeout;return u.ontimeout=u.onerror=u.onabort=function(){a.reject(u.status)},u.onprogress=u.onreadystatechange=function(){n(o),o=t(s,f)},u.onload=function(){o=n(o),"status"in u&&200!==u.status?a.reject(u.status):a.resolve(u.responseText,u.getResponseHeader&&u.getResponseHeader("content-type"))},u.open("GET",e,v),u.send(),o=t(s,f),a.pledge}}(XMLHttpRequest);function Pe(e){var t,n=/^(?:\?|)$/;function r(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new qe(M+" (content-type)",e.id)):(e.source=t,ne.emit(E,e.type,e))}function i(t){e.dfd.reject(new qe(M+(t?" (status)":""),e.id))}de.test(e.path)||G(c.pattern,function(n,r){r.matches(e.path)&&(!t||t.weight>>0}r=function(){function t(e,t){this[e]={weight:e.length,state:t}}function n(e,t){"base"!==e&&(this[e]=new Re(e,t))}function r(e,t){var n=this[e]=this[e]||{};ne.emit(b,e,n),Y(n,t),ne.emit(j,e,n)}function i(){var t,n,r=te(arguments),i=this!==e?this:l,o=0;for(ne.emit(q,l,r,i);t=r[o];o++)z(t,g)?r[o]=ke.resolve(t,i).pledge:(r[o]=(n=be.defer()).pledge,n.resolve(t));return(r.length>1?be.all(r):r[0]).always(function(){ne.emit(k,l,r,i)})}return i.configure=function(e){var o=e.cache,a=e.version,u=e.delay,s=e.timeout,f=e.lifetime,d=e.base,l=e.pattern,h=e.modules,p=c.modules;return z(o,"boolean")?c.cache[""]={weight:0,state:o}:_(o)&&G(o,t,c.cache),B(a)&&(c.version=a),F(u)&&(c.delay=1e3*u),F(s)&&(c.timeout=1e3*Math.min(Math.max(s,2),20)),F(f)&&f>0&&(c.lifetime=1e3*f),z(d,g)&&""!==d&&(c.pattern.base=new Re("",d)),_(l)&&G(l,n,c.pattern),_(h)&&G(h,r,p),i},i.version="5.2.3",i.on=ne.on.bind(i),i.get=function(e,t){var n=ke.get(e,t);return n&&n.value},i.list=ke.list,i.remove=ke.remove,i.cache={clear:xe.clear},ne.after("cacheMiss",function(e){new Pe(e)}).after(E,function(e){var t=e.handler.onPostRequest;t&&t(e)}).after("cacheHit "+E,function(e){ne.emit("preProcess",e.id,e)}).after(R,function(e){var t=e.handler.onPreRequest;t&&t(e)}).after("preProcess",function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then(function(){ne.emit("postProcess",e.id,e)}),!0===e.enqueue?o.enqueue(e):U(e.enqueue,be)&&e.enqueue.then(function(){o.enqueue(e)})}),i}(),e.define("demand",r),i=function(){var t,n,i=z(arguments[0],g)?arguments[0]:l,o=this!==e?this:l,u=Me(arguments[i?1:0])?arguments[i?1:0]:l,s=u?arguments[i?2:1]:arguments[i?1:0];if(!i&&a.current&&(i=(t=a.current).uri,a.process()),i)return t=t||new ke(i,o),n=z(s,w),u?r.apply(t.path,u).then(function(){t.dfd.resolve(n?s.apply(l,arguments):s)},function(){t.dfd.reject(new qe("error providing",t.id,arguments))}):t.dfd.resolve(n?s():s),t.dfd.pledge;!z(console,m)&&console.error(new qe("unspecified anonymous provide"))},e.define("provide",i),r.configure({cache:v,base:"/",pattern:{"/demand":fe((s&&s.url||location.href)+"/../").slice(0,-1)}}),s&&s.settings&&r.configure(s.settings);var Ce=function(){var e=new re;function t(t){var n=this,i={queue:t,current:l};e.set(n,i),r.on(P+":"+t.uuid,function(){!i.current&&n.process()})}return t.prototype={process:function(){var t,n=e.get(this);!n.queue.length||(t=n.current=n.queue.dequeue()).pledge.isRejected()?n.current=l:t.handler.process&&t.handler.process(t)},get current(){return e.get(this).current}},t}();function Oe(e,t){for(var n,r;n=he.exec(t);)L.href=e,de.test(n[2])?r=L.protocol+"//"+L.host+n[3]:(L.pathname+="/../"+n[3],r=L.protocol+"//"+L.host+L.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function Ae(){}Ae.prototype={validate:l,onPreRequest:l,onPostRequest:l,onPreProcess:l,process:l};var $e=function(){var e=u.getElementsByTagName("head")[0],t=/^(application|text)\/(x-)?javascript/;function n(){}return n.prototype={validate:function(e){return t.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".js"!==t.slice(-".js".length)?t+".js":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},process:function(t){var n;t.source&&((n=u.createElement("script")).async=v,n.text=t.source,n.setAttribute("demand-id",t.id),e.appendChild(n))}},new(n.extends(Ae))}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var Ie=function(){var e=f+"bundle",t={};function n(e,t){var n,r;for(n=0;r=t[n];n++)z(r,g)&&(t[n]=ye(r))}function i(){}return r.on(j+":"+e,function(e){_(e)&&G(t=e,n)}),i.prototype={validate:$e.validate,onPreProcess:function(e){var n,r,i,a,u,s=e.source,c=e.dfd,f=t[e.path];function l(){c.reject(new qe(S,e.id,arguments))}if(e.enqueue=p,f&&(n=function(e){for(var n,r,i=0;r=e[i];i++)if(r=(r=r.match(me))&&r[3]||t.handler,n){if(r!==n)return p}else n=r;return n}(f))){for(;r=he.exec(s);)s=s.replace(r[0],"");for(e.source=s,i=[],u=0;a=f[u];u++)i.push(ke.resolve(d+a).pledge);be.all(i).then(function(){for(i.length=0,u=0;a=f[u];u++)(a=f[u]=ke.get(a)||new ke(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,f),$e.process(e)):($e.process(e),o.enqueue.apply(o,f)),be.all(i).then(c.resolve,l)},l)}else l()}},new(i.extends(Ae))}(),Te=function(){var e=/^text\/.+$/;function t(){}return t.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".html"!==t.slice(-".html".length)?t+".html":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},onPreProcess:function(e){var t,n,r,i,a=e.path,s=e.dfd,c=u.createElement("body"),f=[],d=[];function l(){s.reject(new qe(S,e.id,arguments))}for(e.enqueue=p,c.innerHTML=e.source;t=c.firstElementChild;)(n=t.getAttribute("type"))&&(i=n+"!"+a+((r=t.getAttribute("path"))?"/"+r:""),t.parentNode.removeChild(t),f.push({source:t.textContent,uri:i}),d.push(ke.resolve("mock:"+i).pledge));be.all(d).then(function(){var e,t,n=0;for(d.length=0;e=f[n];n++)(t=ke.get(e.uri)||new ke(e.uri)).source=Oe(t.url,e.source),t.handler=arguments[n],d.push(t.pledge),o.enqueue(t);be.all(d).then(s.resolve,l)},l)}},new(t.extends(Ae))}(),De=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)0===e.indexOf(n.prefix)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(e,n){t.push({prefix:e,weight:e.length,fn:n})}function o(t,n){var i,o=n.matches,a=0;if(o.length>1){for(n.id=e+"/"+Se(JSON.stringify(n.matches));i=o[a];a++)o[a]=new ke(i.uri);r.configure(function(e){var t,n,r=e.matches,i={pattern:{},modules:{"/demand/handler/bundle":{}}},o=0;for(i.pattern[e.id]=e.fn(r),i.modules[f+"bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(function(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}.bind(o),function(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new qe(S,e.id))}.bind(o))}}return r.on(j+":"+e,function(e){_(e)&&(t.length=0,G(e,i))}).on(q,function(e,t){for(var r,i,a={},u=0;r=e[u];u++)!z(r,g)||ve.test(r)||ke.get(r,t)||"module"===(r=new ke(r,t,p)).type&&(i=n(r.path))&&!xe.get(r)&&(a[i.prefix]||(a[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);G(a,o)}),v}();function He(e,t){i(e,function(){return t})}if(o=new oe,a=new Ce(o),He("/demand/abstract/uuid",ie),He("/demand/abstract/handler",Ae),He(f+"module",$e),He(f+"bundle",Ie),He(f+"component",Te),He("/demand/plugin/genie",De),He("/demand/validator/isTypeOf",z),He("/demand/validator/isArray",Me),He("/demand/validator/isObject",_),He("/demand/validator/isInstanceOf",U),He("/demand/validator/isSemver",B),He("/demand/function/resolveUrl",fe),He("/demand/function/resolveSourcemaps",Oe),He("/demand/function/merge",Y),He("/demand/function/iterate",G),He("/demand/function/hash",Se),He("/demand/function/defer",ee),He("/demand/function/idle",ae),He("/demand/function/uuid",Z),He("/demand/weakmap",re),He("/demand/descriptor",W),He("/demand/pledge",be),He("/demand/queue",oe),He("/demand/xhr",Ee),He("/demand/failure",qe),He("/demand/semver",we),s&&s.main)switch(typeof s.main){case g:r(s.main);break;case w:i("main",s.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(e,t,n){"use strict";var r,i,o,a,u=e.document,s="demand"in e&&e.demand,c={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="/demand/handler/",d="mock:",l=null,h=void 0,p=!1,v=!0,m="undefined",g="string",y="object",w="function",x="number",b="preConfigure",j="postConfigure",q="preResolve",k="postResolve",R="preRequest",E="postRequest",P="queueEnqueue",M="error loading",S="error resolving",C=Array.prototype,O=C.slice,A=C.concat,$=Object,I=$.prototype.toString,T=$.create,D=$.defineProperty,H=$.getOwnPropertyNames,N=$.getOwnPropertyDescriptor,L=u.createElement("a");function W(e,t,n,r){return{__proto__:l,value:e,enumerable:!!r,configurable:!!n,writable:!!t}}function z(e,t){return typeof e===t}function _(e){return e&&z(e,y)}function F(e){return z(e,x)&&isFinite(e)&&Math.floor(e)===e&&e>=0}function U(e,t){return e instanceof t}!function(t){function n(e,t,n,r,i){D(this,e,new W(t,n,r,i))}function r(e){for(var n,r=this[t],i=H(r),o={constructor:new W(this,v,v)},a=0;(n=i[a])&&!o[n];a++)o[n]=N(r,n);try{this[t]=T(e[t]||e,o)}catch(e){}if(this[t]===r)throw new TypeError("Unable to extend, prototype is not writable");return this}n.call(Object.prototype,"define",n),n.call(e.Object.prototype,"define",n),Function.prototype.define("extends",r),e.Function.prototype.define("extends",r)}("prototype");var X,B=(X=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,function(e){return z(e,g)&&X.test(e)});function G(e,t,n){for(var r,i=$.keys(e),o=0;(r=i[o])!==h&&t.call(n,r,e[r])!==p;o++);return n}var J,K,Q,V,Y=function(){function e(e,t){var n,r=this[e];t!==h&&(_(t)?(n=_(r),r=t.length!==h?n&&r.length!==h?r:[]:n&&r.length===h?r:{},this[e]=Y(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==h;r++)G(t,e,n);return n}}(),Z=function(){var e=new RegExp("[xy]","g");function t(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t)}}(),ee=(V="setImmediate"in e,"MutationObserver"in e?function(e){K=u.createElement("div"),new MutationObserver(function(){e()}).observe(K,{attributes:v}),K.setAttribute("i","1")}:!V&&"postMessage"in e&&!("importScripts"in e)&&"addEventListener"in e?(J={},e.addEventListener("message",function(t){var n;t.source===e&&t.data&&(n=J[t.data])&&(n(),delete J[t.data])},p),function(t){var n=Z();J[n]=t,e.postMessage(n,"*")}):!V&&"onreadystatechange"in(K=u.createElement("script"))?function(e){K.onreadystatechange=function(){K.onreadystatechange=l,K.parentNode.removeChild(K),e()},u.body.appendChild(K)}:(Q=V?setImmediate:t,function(e){Q(e)}));function te(e,t,n){return O.call(e,t,n)}var ne=function(){var e="on",t=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)$/,n={};function r(r,i,o){var a,u;if(z(i,g)&&z(o,w))for(i=i.split(" ");a=i.shift();)a=a.split(":"),t.test(a[0])&&((n[a[0]]||(n[a[0]]={on:[],after:[]}))[r].push({callback:o,filter:a[1]}),r===e&&a[0]===j&&(u=c.modules[a[1]])&&o(u))}function i(){}return i.prototype={emit:function(t,r){var i,o,a,u=n[t];if(u){for(i=te(arguments,2),o=0;a=u[e][o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i);for(o=0;a=u.after[o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i)}return this},on:function(t,n){return r(e,t,n),this},after:function(e,t){return r("after",e,t),this}},new i}(),re="WeakMap"in e?(new e.WeakMap).set(function(){},!1)instanceof e.WeakMap?e.WeakMap:function(){var t=new e.WeakMap;return t.set=function(){return e.WeakMap.prototype.set.apply(this,arguments),this},t}:function(){var e="weakmap-";function t(e,t){var n;if((n=t[e.id])&&n[0]===t)return n}function n(){this.define("id",e+Z())}return n.prototype={set:function(e,n){var r=t(this,e);return r?r[1]=n:e.define(this.id,[e,n]),this},get:function(e){var n=t(this,e);if(n)return n[1]},delete:function(e){var n=t(this,e);n&&(n.length=0,delete e[this.id])},has:function(e){return!!t(this,e)}},n}();function ie(){return z(this.uuid,m)&&this.define("uuid",Z()),this}var oe=function(){var e=new re;function t(){var t=ie.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=te(arguments);e.set(this,e.get(this).concat(t)),ne.emit(P,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return ne.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(ie)}(),ae=function(){var r,i="object"==typeof e.safari&&e.safari.pushNotification?"beforeunload":"visibilitychange",o=e.requestIdleCallback||function(e,n){var r=+new Date;return t(function(){e({didTimeout:p,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})},n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},s=new oe;function c(){s.dequeue()(),r=s.length&&o(c)}return e.addEventListener(i,function(e){var t;if(s.length&&("visibilitychange"!==e.type||"hidden"===u.visibilityState)){r=a(r);do{t&&t()}while(t=s.dequeue())}},v),function(e,t){s.enqueue(e),!r&&s.length&&(r=o(c,{timeout:t}))}}();function ue(){return+new Date}var se,ce=(se=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,function(e){return e.replace(se,"\\$&")});function fe(e){return L.href=e,L.href}var de=/^(http(s?):)?\/\//i,le=/^\//,he=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,pe=new RegExp("^"+ce(fe("/"))),ve=new RegExp("^demand|provide|path$"),me=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ge(e,t){var n=e.replace(me,"");return le.test(n)||de.test(n)||(n="/"+fe((t&&fe(t+"/../")||"/")+n).replace(pe,"")),n}function ye(e,t){var n=e.match(me);return(n&&n[1]?"mock:":"")+(n&&n[3]||c.handler)+"!"+ge(e,t)}var we=function(){function e(e,t){return et?1:0}function t(e){if(!B(e))throw new TypeError('"version" must be a valid semver version string');e=function(e){var t,n=e.split("-"),r=0;for(n=n[1]?Array.prototype.concat(n[0].split("."),n[1].split(".")):n[0].split(".");t=n[r];r++)n[r]=parseInt(t,10).toString()===t?parseInt(t,10):t;return n}(e),this.major=e.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e}return t.prototype={toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.identifier.length?"-"+this.identifier.join("."):"")},compare:function(t){return e(this.major,t.major)||e(this.minor,t.minor)||e(this.patch,t.patch)||function(e,t){var n,r,i,o,a=0;if(e.length&&!t.length)return-1;if(!e.length&&t.length)return 1;if(!e.length&&!t.length)return 0;do{if(n=e[a],o=typeof(r=t[a]),(i=typeof n)===m&&o===m)return 0;if(o===m)return 1;if(i===m)return-1;if(n===r);else{if(i===g&&o!==g)return 1;if(i!==g&&o===g)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)}),t?t.state:p)}function d(e){return a.getItem(e)}function h(e,t){a[t?"setItem":"removeItem"](e,t)}function m(e){var t,n=d(e);if(n&&(t=n.match(i)))return te(t,1)}function g(e,t){t[4]=ue(),h(e,t.join(","))}function y(e,t,n){ne.emit(e,t.id,t,n)}function w(){ae(this.clear.expired.bind(this.clear),c.delay)}return ne.on("cacheMiss",function(e){ae(function(){t.clear(e.id)})}).on("cacheExceed",function(e){r("-!/demand/cache/dispose").then(function(n){ae(function(){n(e.source.length),t.set(e)},c.delay)})}).on(E,function(e){e.source&&f(e)&&(s[e.id]=v)}).after("postProcess",function(e){s[e.id]&&ae(function(){t.set(e)},c.delay)}),w.prototype={get:o?function(e){var t,n;if(f(e)){if(t="[demand]["+e.id+"]",!(n=m(t+"[state]")))return;return 1===e.version.compare(new we(n[0]))||n[2]&&e.lifetime&&n[2]<=ue()?void(e.invalid=!0):(e.source=d(t+"[value]"),ae(function(){g(t+"[state]",n)},c.delay),v)}}:function(){},resolve:o?function(e){this.get(e)?y("cacheHit",e):y("cacheMiss",e)}:function(e){y("cacheMiss",e)},set:o?function(e){var t,n,i;if(f(e)){t=[e.version,e.source.length,e.lifetime?ue()+e.lifetime:l,r.version],n="[demand]["+e.id+"]",y("preCache",e,t);try{if(i=u?a.remainingSpace:l,h(n+"[value]",e.source),g(n+"[state]",t),i!==l&&a.remainingSpace===i)throw new Error;y("postCache",e,t)}catch(t){y("cacheExceed",e)}}}:function(){},clear:o?function(e){var t=ye(e),n="[demand]["+t+"]";d(n+"[state]")&&(h(n+"[state]"),h(n+"[value]"),y("cacheClear",ke.get(t)||new ke(t,l,p)))}:function(){}},w.prototype.clear.all=o?function(){var e;G(a,function(t){(e=t.match(n))&&this(e[1])},this)}:function(){},w.prototype.clear.expired=o?function(){var e,t;G(a,function(r){(e=r.match(n))&&(t=m("[demand]["+e[1]+"][state]"))&&t[2]>0&&t[2]<=ue()&&this(e[1])},this)}:function(){},t=new w}(),be=function(){var e="pending",t="resolved",n="rejected",r=new re;function i(i,o){var a,u,s=r.get(this);for(s.state===e&&(s.state=i,s.value=o);a=s[s.state].shift();)(u=a.handler.apply(l,s.value))&&"function"==typeof u.then?u.then(a.dfd.resolve,a.dfd.reject):a.dfd[s.state===t?"resolve":"reject"].apply(l,s.value);s[t].length=0,s[n].length=0}function o(e,t,n){e.then(function(){n.resolved[t]=te(arguments),n.count++,a(n)},function(){n.rejected.push(te(arguments)),a(n)})}function a(e){e.count===e.total?e.dfd.resolve.apply(l,A.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(l,A.apply([],e.rejected))}function u(o){return r.set(this,{state:e,handle:i.bind(this),value:l,resolved:[],rejected:[],count:0}),o(function(){r.get(this).handle(t,arguments)}.bind(this),function(){r.get(this).handle(n,arguments)}.bind(this)),this}return u.prototype={catch:function(e){return this.then(function(){},e)},always:function(e){return this.then(e,e)},then:function(i,o){var a=r.get(this),s=u.defer();return i&&a[t].push({handler:i,dfd:s}),o&&a[n].push({handler:o,dfd:s}),a.state!==e&&ee(a.handle),s.pledge},isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n}},u.defer=function(){var e={};return e.pledge=new u(function(t,n){e.resolve=t,e.reject=n}),e},u.all=function(e){var t,n,r=u.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)o(n,i,t);else r.resolve();return r.pledge},u.race=function(e){for(var t,n=u.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},u}(),je=function(){var e=new re;function t(){e.set(this,{})}return t.prototype={get:function(t){return t?e.get(this)[t]:e.get(this)},set:function(t,n){e.get(this)[t]=n},remove:function(t){delete e.get(this)[t]}},t}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var ke=function(){var e=new je,t=/^(?:mock:|internal!)/i,n=[];function o(e,t){this[e]=t}function a(e){t.test(e)||this.push(e)}function s(e,n){!t.test(e)&&n.pledge.isPending()&&this.push(e)}function h(e,n){!t.test(e)&&n.pledge.isResolved()&&this.push(e)}function m(e,n){!t.test(e)&&n.pledge.isRejected()&&this.push(e)}function g(){return G(e.get(),a,[])}function y(t,r,i){var o=this,a=t.match(me)||n;return o.path=ge(t,r),o.mock=a[1]?v:p,o.cache=a[2]?"+"===a[1]:l,o.type=a[3]||c.handler,o.version=new we(a[4]||c.version),o.lifetime=a[5]&&1e3*a[5]||c.lifetime,o.id=(o.mock?d:"")+o.type+"!"+o.path,o.uri=(o.mock?d:"")+o.type+"@"+o.version+(F(o.lifetime)&&o.lifetime>0?"#"+o.lifetime:"")+"!"+o.path,o.dfd=be.defer(),o.pledge=o.dfd.pledge,o.invalid=!1,o.pledge.then(function(){o.value=te(arguments)}),i!==p&&e.set(o.id,o),o}return g.pending=function(){return G(e.get(),s,[])},g.resolved=function(){return G(e.get(),h,[])},g.rejected=function(){return G(e.get(),m,[])},y.prototype={enqueue:!0},y.get=function(t,n){return e.get(ye(t,n))},y.resolve=function(e,t){var n,a=t&&ve.test(e),u=a?this.get("internal!"+t+"/"+e):this.get(e,t);if(!u)if(a){switch(u=new y("internal!"+t+"/"+e),e){case"demand":n=G(r,o,r.bind(t));break;case"provide":n=i.bind(t);break;case"path":n=t}u.dfd.resolve(n)}else u=new y(e,t),r(f+u.type).then(function(e){u.handler=e,u.mock?u.dfd.resolve(e):xe.resolve(u)},function(){u.dfd.reject(new qe(M+" (handler)",self.id))});return u},y.remove=function(t,n,r){var i=ye(t,n),o=u.querySelector('[demand-id="'+i+'"]');e.remove(i),e.remove(d+i),o&&o.parentNode.removeChild(o),r!==p&&xe.clear(i)},y.list=g,y}(),Re=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:fe(n).replace(e,"$1"),match:new RegExp("^"+ce(n))}}function n(e,n){this.weight=e.length,this.match=new RegExp("^"+ce(e)),this.location=[].concat(n),G(this.location,t,this.location)}return n.prototype={matches:function(e){return this.match.test(e)},process:function(e,t){var n=this.location[t];if(n)return e.replace(this.match,n.url)}},n}(),Ee=function(r){var i="XDomainRequest"in e&&e.XDomainRequest||r;return function(e){var o,a=be.defer(),u=pe.test(e)?new r:new i,s=function(){this.readyState<4&&this.abort()}.bind(u),f=c.timeout;return u.ontimeout=u.onerror=u.onabort=function(){a.reject(u.status)},u.onprogress=u.onreadystatechange=function(){n(o),o=t(s,f)},u.onload=function(){o=n(o),"status"in u&&200!==u.status?a.reject(u.status):a.resolve(u.responseText,u.getResponseHeader&&u.getResponseHeader("content-type"))},u.open("GET",e,v),u.send(),o=t(s,f),a.pledge}}(XMLHttpRequest);function Pe(e){var t,n=/^(?:\?|)$/;function r(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new qe(M+" (content-type)",e.id)):(e.source=t,ne.emit(E,e.type,e))}function i(t){e.dfd.reject(new qe(M+(t?" (status)":""),e.id))}de.test(e.path)||G(c.pattern,function(n,r){r.matches(e.path)&&(!t||t.weight>>0}r=function(){function t(e,t){this[e]={weight:e.length,state:t}}function n(e,t){"base"!==e&&(this[e]=new Re(e,t))}function r(e,t){var n=this[e]=this[e]||{};ne.emit(b,e,n),Y(n,t),ne.emit(j,e,n)}function i(){var t,n,r=te(arguments),i=this!==e?this:l,o=0;for(ne.emit(q,l,r,i);t=r[o];o++)z(t,g)?r[o]=ke.resolve(t,i).pledge:(r[o]=(n=be.defer()).pledge,n.resolve(t));return(r.length>1?be.all(r):r[0]).always(function(){ne.emit(k,l,r,i)})}return i.configure=function(e){var o=e.cache,a=e.version,u=e.delay,s=e.timeout,f=e.lifetime,d=e.base,l=e.pattern,h=e.modules,p=c.modules;return z(o,"boolean")?c.cache[""]={weight:0,state:o}:_(o)&&G(o,t,c.cache),B(a)&&(c.version=a),F(u)&&(c.delay=1e3*u),F(s)&&(c.timeout=1e3*Math.min(Math.max(s,2),20)),F(f)&&f>0&&(c.lifetime=1e3*f),z(d,g)&&""!==d&&(c.pattern.base=new Re("",d)),_(l)&&G(l,n,c.pattern),_(h)&&G(h,r,p),i},i.version="5.2.4",i.on=ne.on.bind(i),i.get=function(e,t){var n=ke.get(e,t);return n&&n.value},i.list=ke.list,i.remove=ke.remove,i.cache={clear:xe.clear},ne.after("cacheMiss",function(e){new Pe(e)}).after(E,function(e){var t=e.handler.onPostRequest;t&&t(e)}).after("cacheHit "+E,function(e){ne.emit("preProcess",e.id,e)}).after(R,function(e){var t=e.handler.onPreRequest;t&&t(e)}).after("preProcess",function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then(function(){ne.emit("postProcess",e.id,e)}),!0===e.enqueue?o.enqueue(e):U(e.enqueue,be)&&e.enqueue.then(function(){o.enqueue(e)})}),i}(),e.define("demand",r),i=function(){var t,n,i=z(arguments[0],g)?arguments[0]:l,o=this!==e?this:l,u=Me(arguments[i?1:0])?arguments[i?1:0]:l,s=u?arguments[i?2:1]:arguments[i?1:0];if(!i&&a.current&&(i=(t=a.current).uri,a.process()),i)return t=t||new ke(i,o),n=z(s,w),u?r.apply(t.path,u).then(function(){t.dfd.resolve(n?s.apply(l,arguments):s)},function(){t.dfd.reject(new qe("error providing",t.id,arguments))}):t.dfd.resolve(n?s():s),t.dfd.pledge;!z(console,m)&&console.error(new qe("unspecified anonymous provide"))},e.define("provide",i),r.configure({cache:v,base:"/",pattern:{"/demand":fe((s&&s.url||location.href)+"/../").slice(0,-1)}}),s&&s.settings&&r.configure(s.settings);var Ce=function(){var e=new re;function t(t){var n=this,i={queue:t,current:l};e.set(n,i),r.on(P+":"+t.uuid,function(){!i.current&&n.process()})}return t.prototype={process:function(){var t,n=e.get(this);!n.queue.length||(t=n.current=n.queue.dequeue()).pledge.isRejected()?n.current=l:t.handler.process&&t.handler.process(t)},get current(){return e.get(this).current}},t}();function Oe(e,t){for(var n,r;n=he.exec(t);)L.href=e,de.test(n[2])?r=L.protocol+"//"+L.host+n[3]:(L.pathname+="/../"+n[3],r=L.protocol+"//"+L.host+L.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function Ae(){}Ae.prototype={validate:l,onPreRequest:l,onPostRequest:l,onPreProcess:l,process:l};var $e=function(){var e=u.getElementsByTagName("head")[0],t=/^(application|text)\/(x-)?javascript/;function n(){}return n.prototype={validate:function(e){return t.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".js"!==t.slice(-".js".length)?t+".js":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},process:function(t){var n;t.source&&((n=u.createElement("script")).async=v,n.text=t.source,n.setAttribute("demand-id",t.id),e.appendChild(n))}},new(n.extends(Ae))}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var Ie=function(){var e=f+"bundle",t={};function n(e,t){var n,r;for(n=0;r=t[n];n++)z(r,g)&&(t[n]=ye(r))}function i(){}return r.on(j+":"+e,function(e){_(e)&&G(t=e,n)}),i.prototype={validate:$e.validate,onPreProcess:function(e){var n,r,i,a,u,s=e.source,c=e.dfd,f=t[e.path];function l(){c.reject(new qe(S,e.id,arguments))}if(e.enqueue=p,f&&(n=function(e){for(var n,r,i=0;r=e[i];i++)if(r=(r=r.match(me))&&r[3]||t.handler,n){if(r!==n)return p}else n=r;return n}(f))){for(;r=he.exec(s);)s=s.replace(r[0],"");for(e.source=s,i=[],u=0;a=f[u];u++)i.push(ke.resolve(d+a).pledge);be.all(i).then(function(){for(i.length=0,u=0;a=f[u];u++)(a=f[u]=ke.get(a)||new ke(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,f),$e.process(e)):($e.process(e),o.enqueue.apply(o,f)),be.all(i).then(c.resolve,l)},l)}else l()}},new(i.extends(Ae))}(),Te=function(){var e=/^text\/.+$/;function t(){}return t.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".html"!==t.slice(-".html".length)?t+".html":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},onPreProcess:function(e){var t,n,r,i,a=e.path,s=e.dfd,c=u.createElement("body"),f=[],d=[];function l(){s.reject(new qe(S,e.id,arguments))}for(e.enqueue=p,c.innerHTML=e.source;t=c.firstElementChild;)(n=t.getAttribute("type"))&&(i=n+"!"+a+((r=t.getAttribute("path"))?"/"+r:""),t.parentNode.removeChild(t),f.push({source:t.textContent,uri:i}),d.push(ke.resolve("mock:"+i).pledge));be.all(d).then(function(){var e,t,n=0;for(d.length=0;e=f[n];n++)(t=ke.get(e.uri)||new ke(e.uri)).source=Oe(t.url,e.source),t.handler=arguments[n],d.push(t.pledge),o.enqueue(t);be.all(d).then(s.resolve,l)},l)}},new(t.extends(Ae))}(),De=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)0===e.indexOf(n.prefix)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(e,n){t.push({prefix:e,weight:e.length,fn:n})}function o(t,n){var i,o=n.matches,a=0;if(o.length>1){for(n.id=e+"/"+Se(JSON.stringify(n.matches));i=o[a];a++)o[a]=new ke(i.uri);r.configure(function(e){var t,n,r=e.matches,i={pattern:{},modules:{"/demand/handler/bundle":{}}},o=0;for(i.pattern[e.id]=e.fn(r),i.modules[f+"bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(function(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}.bind(o),function(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new qe(S,e.id))}.bind(o))}}return r.on(j+":"+e,function(e){_(e)&&(t.length=0,G(e,i))}).on(q,function(e,t){for(var r,i,a={},u=0;r=e[u];u++)!z(r,g)||ve.test(r)||ke.get(r,t)||"module"===(r=new ke(r,t,p)).type&&(i=n(r.path))&&!xe.get(r)&&(a[i.prefix]||(a[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);G(a,o)}),v}();function He(e,t){i(e,function(){return t})}if(o=new oe,a=new Ce(o),He("/demand/abstract/uuid",ie),He("/demand/abstract/handler",Ae),He(f+"module",$e),He(f+"bundle",Ie),He(f+"component",Te),He("/demand/plugin/genie",De),He("/demand/validator/isTypeOf",z),He("/demand/validator/isArray",Me),He("/demand/validator/isObject",_),He("/demand/validator/isInstanceOf",U),He("/demand/validator/isSemver",B),He("/demand/function/resolveUrl",fe),He("/demand/function/resolveSourcemaps",Oe),He("/demand/function/merge",Y),He("/demand/function/iterate",G),He("/demand/function/hash",Se),He("/demand/function/defer",ee),He("/demand/function/idle",ae),He("/demand/function/uuid",Z),He("/demand/weakmap",re),He("/demand/descriptor",W),He("/demand/pledge",be),He("/demand/queue",oe),He("/demand/xhr",Ee),He("/demand/failure",qe),He("/demand/semver",we),s&&s.main)switch(typeof s.main){case g:r(s.main);break;case w:i("main",s.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); //# sourceMappingURL=demand.js.map diff --git a/dist/demand.js.map b/dist/demand.js.map index 7cdffd0..ca07038 100644 --- a/dist/demand.js.map +++ b/dist/demand.js.map @@ -1 +1 @@ -{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MODULE_PREFIX_HANDLER","MODULE_PREFIX","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_OBJECT","STRING_FUNCTION","STRING_NUMBER","EVENT_PRE_CONFIGURE","EVENT_PREFIX","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_PRE_RESOLVE","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","ERROR_LOAD","ERROR_RESOLVE","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectPrototypeToString","toString","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","ClassDescriptor","value","writable","configurable","enumerable","__proto__","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","isFinite","Math","floor","validatorIsInstanceOf","module","strPrototype","objectDefine","name","this","functionExtends","source","property","names","properties","constructor","i","e","TypeError","call","Function","define","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","storage","element","fallback","hasSetImmediate","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionUuid","regex","RegExp","randomize","character","r","random","replace","functionDefer","fn","MutationObserver","observe","attributes","setAttribute","addEventListener","event","data","uuid","postMessage","onreadystatechange","parentNode","removeChild","body","appendChild","setImmediate","functionToArray","arrayLikeObject","start","end","singletonEvent","TYPE_ON","regexMatchEvent","listener","addListener","events","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","ClassWeakmap","WeakMap","set","weakmap","prefix","getEntry","key","entry","id","get","delete","has","AbstractUuid","ClassQueue","self","enqueue","items","dequeue","current","extends","functionIdle","eventName","safari","pushNotification","requestIdleCallback","Date","didTimeout","timeRemaining","max","cancelIdleCallback","process","visibilityState","delay","functionGetTimestamp","regexMatchRegex","functionEscapeRegex","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsAbsolutePath","regexMatchSourcemap","regexMatchBaseUrl","regexMatchInternal","regexMatchParameter","functionResolvePath","uri","path","functionResolveId","match","ClassSemver","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","singletonCache","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","EVENT_CACHE","then","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","handle","result","dfd","reject","pledge","index","resolved","count","check","rejected","total","executor","catch","always","alwaysListener","resolveListener","rejectListener","defer","isPending","isResolved","isRejected","pledges","race","ClassRegistry","remove","ClassFailure","message","stack","DEMAND_ID","traverse","depth","indention","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","node","querySelector","ClassPattern","regexMatchTrailingSlash","location","ClassXhr","XMLHttpRequest","XDomainRequest","xhr","boundCheckState","readyState","abort","ontimeout","onerror","onabort","status","onprogress","onload","responseText","getResponseHeader","open","send","ClassLoader","regexMatchEmptySearch","response","validate","load","search","validatorIsArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isFunction","definition","console","/demand","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","HandlerModule","script","async","text","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VALIDATOR","MODULE_PREFIX_FUNCTION","main","parent"],"mappings":";CAYC,SAASA,EAAQC,EAAYC,GAC7B,aAGA,IAGCC,EAAQC,EAASC,EAAOC,EAHrBC,EAAWP,EAAOO,SACrBC,EAAW,WAAYR,GAAUA,EAAOG,OACxCM,EAAW,CAAEC,QAAS,QAASC,MAAO,GAAIC,QAAS,IAAMC,QAAS,GAAIC,QAAS,GAAIC,QAAS,UAoB3FC,EAA0BC,mBAI1BC,EAA0B,QAC1BC,EAA0B,KAC1BC,OAA0BC,EAC1BC,GAA0B,EAC1BC,GAA0B,EAC1BC,EAA0B,YAC1BC,EAA0B,SAE1BC,EAA0B,SAC1BC,EAA0B,WAC1BC,EAA0B,SAI1BC,EAA0BC,eAC1BC,EAA0BC,gBAS1BC,EAA0BH,aAC1BI,EAA0BF,cAE1BG,EAA0BL,aAC1BM,EAA0BJ,cAK1BK,EAA0BC,eAE1BC,EAA0B,gBAE1BC,EAA0B,kBAOvBC,EAAiCC,MAAMC,UAC1CC,EAAiCH,EAAeI,MAChDC,EAAiCL,EAAeM,OAChDC,EAAiCC,OAEjCC,EADiCF,EAAOL,UACSQ,SACjDC,EAAiCJ,EAAOK,OACxCC,EAAiCN,EAAOO,eACxCC,EAAiCR,EAAOS,oBACxCC,EAAiCV,EAAOW,yBACxCC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AaG,yBAAkCvS,GAC/CoS,GAAaG,2BAAoC/S,GACjD4S,GAAaG,wBAAiC3D,IAC9CwD,GAAaG,yBAAkCxR,IAC/CqR,GAAaG,wBAAiC7N,IAC9C0N,GAAaG,wBAAiChS,GAC9C6R,GAAa3X,kBAA2B6I,IACxC8O,GAAa3X,qBAA8B6C,GAC3C8U,GAAa3X,iBAA0BqP,IACvCsI,GAAa3X,gBAAyB0J,IACtCiO,GAAa3X,cAAuB2S,IACpCgF,GAAa3X,kBAA2BkR,IACxCyG,GAAa3X,iBAA0B+L,IAEpCxM,GAAWA,EAAQwY,KACrB,cAAcxY,EAAQwY,MACrB,KAAKvX,EACJtB,EAAOK,EAAQwY,MAEf,MACD,KAAKrX,EACJvB,EAAQ,OAAQI,EAAQwY,SAzgF7B,CA8gFgB,kBAAdhU,KAAKD,KAA2BkU,OAASjU,KAAM/E,WAAYC","file":"demand.js","sourcesContent":["/* global\n\tglobal, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout,\n\tMODULE_PREFIX, MODULE_PREFIX_HANDLER, MODULE_PREFIX_VALIDATOR, MODULE_PREFIX_PLUGIN, MODULE_PREFIX_FUNCTION, MODULE_PREFIX_ABSTRACT, STRING_STRING, STRING_FUNCTION, TRUE,\n\tvalidatorIsTypeOf, validatorIsArray, validatorIsObject, validatorIsInstanceOf, validatorIsSemver,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionIdle, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassXhr, ClassFailure, ClassDescriptor, ClassWeakmap, ClassSemver,\n\thandlerModule, handlerBundle, handlerComponent,\n \tpluginGenie\n*/\n\n/*eslint no-unused-vars: [2, { \"vars\": \"local\", \"args\": \"none\" }]*/\n(function(global, setTimeout, clearTimeout) {\n\t'use strict';\n\n\t/* eslint-disable no-unused-vars */\n\tvar document = global.document,\n\t\toptions = 'demand' in global && global.demand,\n\t\tsettings = { version: '1.0.0', cache: {}, timeout: 8000, pattern: {}, modules: {}, handler: 'module' },\n\t\tdemand, provide, queue, processor;\n\n\t// include inheritance\n\t\t//=require inheritance.js\n\n\t// include main components\n\t\t//=require function/demand.js\n\t\t//=require function/provide.js\n\n\t// process initial configuration\n\t\tdemand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.href) + '/../').slice(0, -1)} });\n\t\toptions && options.settings && demand.configure(options.settings);\n\n\t// include additional components\n\t\t//=require function/hash.js\n\t\t//=require class/queue.js\n\t\t//=require class/processor.js\n\t\t//=require handler/module.js\n\t\t//=require handler/bundle.js\n\t\t//=require handler/component.js\n\t\t//=require plugin/genie.js\n\n\t// initialize\n\t\tqueue = new ClassQueue();\n\t\tprocessor = new ClassProcessor(queue);\n\n\t\tfunction assignModule(id, module) {\n\t\t\tprovide(id, function() { return module; });\n\t\t}\n\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'uuid', AbstractUuid);\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'handler', abstractHandler);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'module', handlerModule);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'bundle', handlerBundle);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'component', handlerComponent);\n\t\tassignModule(MODULE_PREFIX_PLUGIN + 'genie', pluginGenie);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isTypeOf', validatorIsTypeOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isArray', validatorIsArray);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isObject', validatorIsObject);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isInstanceOf', validatorIsInstanceOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isSemver', validatorIsSemver);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveUrl', functionResolveUrl);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveSourcemaps', functionResolveSourcemaps);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'merge', functionMerge);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'iterate', functionIterate);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'hash', functionHash);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'defer', functionDefer);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'idle', functionIdle);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'uuid', functionUuid);\n\t\tassignModule(MODULE_PREFIX + 'weakmap', ClassWeakmap);\n\t\tassignModule(MODULE_PREFIX + 'descriptor', ClassDescriptor);\n\t\tassignModule(MODULE_PREFIX + 'pledge', ClassPledge);\n\t\tassignModule(MODULE_PREFIX + 'queue', ClassQueue);\n\t\tassignModule(MODULE_PREFIX + 'xhr', ClassXhr);\n\t\tassignModule(MODULE_PREFIX + 'failure', ClassFailure);\n\t\tassignModule(MODULE_PREFIX + 'semver', ClassSemver);\n\n\t\tif(options && options.main) {\n\t\t\tswitch(typeof options.main) {\n\t\t\t\tcase STRING_STRING:\n\t\t\t\t\tdemand(options.main);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase STRING_FUNCTION:\n\t\t\t\t\tprovide('main', options.main());\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n}(this.name === 'demand-loader' ? parent : this, setTimeout, clearTimeout));\n"]} \ No newline at end of file +{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MODULE_PREFIX_HANDLER","MODULE_PREFIX","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_OBJECT","STRING_FUNCTION","STRING_NUMBER","EVENT_PRE_CONFIGURE","EVENT_PREFIX","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_PRE_RESOLVE","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","ERROR_LOAD","ERROR_RESOLVE","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectPrototypeToString","toString","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","ClassDescriptor","value","writable","configurable","enumerable","__proto__","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","isFinite","Math","floor","validatorIsInstanceOf","module","strPrototype","objectDefine","name","this","functionExtends","source","property","names","properties","constructor","i","e","TypeError","call","Function","define","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","storage","element","fallback","hasSetImmediate","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionUuid","regex","RegExp","randomize","character","r","random","replace","functionDefer","fn","MutationObserver","observe","attributes","setAttribute","addEventListener","event","data","uuid","postMessage","onreadystatechange","parentNode","removeChild","body","appendChild","setImmediate","functionToArray","arrayLikeObject","start","end","singletonEvent","TYPE_ON","regexMatchEvent","listener","addListener","events","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","ClassWeakmap","WeakMap","set","weakmap","prefix","getEntry","key","entry","id","get","delete","has","AbstractUuid","ClassQueue","self","enqueue","items","dequeue","current","extends","functionIdle","eventName","safari","pushNotification","requestIdleCallback","Date","didTimeout","timeRemaining","max","cancelIdleCallback","process","visibilityState","delay","functionGetTimestamp","regexMatchRegex","functionEscapeRegex","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsAbsolutePath","regexMatchSourcemap","regexMatchBaseUrl","regexMatchInternal","regexMatchParameter","functionResolvePath","uri","path","functionResolveId","match","ClassSemver","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","singletonCache","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","EVENT_CACHE","then","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","handle","result","dfd","reject","pledge","index","resolved","count","check","rejected","total","executor","catch","always","alwaysListener","resolveListener","rejectListener","defer","isPending","isResolved","isRejected","pledges","race","ClassRegistry","remove","ClassFailure","message","stack","DEMAND_ID","traverse","depth","indention","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","node","querySelector","ClassPattern","regexMatchTrailingSlash","location","ClassXhr","XMLHttpRequest","XDomainRequest","xhr","boundCheckState","readyState","abort","ontimeout","onerror","onabort","status","onprogress","onload","responseText","getResponseHeader","open","send","ClassLoader","regexMatchEmptySearch","response","validate","load","search","validatorIsArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isFunction","definition","console","/demand","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","HandlerModule","script","async","text","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VALIDATOR","MODULE_PREFIX_FUNCTION","main","parent"],"mappings":";CAYC,SAASA,EAAQC,EAAYC,GAC7B,aAGA,IAGCC,EAAQC,EAASC,EAAOC,EAHrBC,EAAWP,EAAOO,SACrBC,EAAW,WAAYR,GAAUA,EAAOG,OACxCM,EAAW,CA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CAAE1C,GAAI3G,EAAQ2G,GAAI2H,QAAS,MAAOA,QAAQ5F,KAAKoF,GAKzG3I,EAAgB2S,EAASP,KAGpB7W,EAhGU,GAwGlB,SAASqX,GAAatO,EAAI1F,GACzBxE,EAAQkK,EAAI,WAAa,OAAO1F,IA8BjC,GAlCAvE,EAAY,IAAIsK,GAChBrK,EAAY,IAAIgW,GAAejW,GAM/BuY,GAAaC,wBAAiCnO,IAC9CkO,GAAaC,2BAAoChC,IACjD+B,GAAa5X,EAAwB,SAAU8V,IAC/C8B,GAAa5X,EAAwB,SAAUqW,IAC/CuB,GAAa5X,EAAwB,YAAayW,IAClDmB,GAAaX,uBAAgCD,IAC7CY,GAAaE,6BAAsC1U,GACnDwU,GAAaE,4BAAqC3D,IAClDyD,GAAaE,6BAAsCxU,GACnDsU,GAAaE,iCAA0CnU,GACvDiU,GAAaE,6BAAsChT,GACnD8S,GAAaG,8BAAuC7M,IACpD0M,GAAaG,qCAA8CxC,IAC3DqC,GAAaG,yBAAkCvS,GAC/CoS,GAAaG,2BAAoC/S,GACjD4S,GAAaG,wBAAiC3D,IAC9CwD,GAAaG,yBAAkCxR,IAC/CqR,GAAaG,wBAAiC7N,IAC9C0N,GAAaG,wBAAiChS,GAC9C6R,GAAa3X,kBAA2B6I,IACxC8O,GAAa3X,qBAA8B6C,GAC3C8U,GAAa3X,iBAA0BqP,IACvCsI,GAAa3X,gBAAyB0J,IACtCiO,GAAa3X,cAAuB2S,IACpCgF,GAAa3X,kBAA2BkR,IACxCyG,GAAa3X,iBAA0B+L,IAEpCxM,GAAWA,EAAQwY,KACrB,cAAcxY,EAAQwY,MACrB,KAAKvX,EACJtB,EAAOK,EAAQwY,MAEf,MACD,KAAKrX,EACJvB,EAAQ,OAAQI,EAAQwY,SAzgF7B,CA8gFgB,kBAAdhU,KAAKD,KAA2BkU,OAASjU,KAAM/E,WAAYC","file":"demand.js","sourcesContent":["/* global\n\tglobal, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout,\n\tMODULE_PREFIX, MODULE_PREFIX_HANDLER, MODULE_PREFIX_VALIDATOR, MODULE_PREFIX_PLUGIN, MODULE_PREFIX_FUNCTION, MODULE_PREFIX_ABSTRACT, STRING_STRING, STRING_FUNCTION, TRUE,\n\tvalidatorIsTypeOf, validatorIsArray, validatorIsObject, validatorIsInstanceOf, validatorIsSemver,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionIdle, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassXhr, ClassFailure, ClassDescriptor, ClassWeakmap, ClassSemver,\n\thandlerModule, handlerBundle, handlerComponent,\n \tpluginGenie\n*/\n\n/*eslint no-unused-vars: [2, { \"vars\": \"local\", \"args\": \"none\" }]*/\n(function(global, setTimeout, clearTimeout) {\n\t'use strict';\n\n\t/* eslint-disable no-unused-vars */\n\tvar document = global.document,\n\t\toptions = 'demand' in global && global.demand,\n\t\tsettings = { version: '1.0.0', cache: {}, timeout: 8000, pattern: {}, modules: {}, handler: 'module' },\n\t\tdemand, provide, queue, processor;\n\n\t// include inheritance\n\t\t//=require inheritance.js\n\n\t// include main components\n\t\t//=require function/demand.js\n\t\t//=require function/provide.js\n\n\t// process initial configuration\n\t\tdemand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.href) + '/../').slice(0, -1)} });\n\t\toptions && options.settings && demand.configure(options.settings);\n\n\t// include additional components\n\t\t//=require function/hash.js\n\t\t//=require class/queue.js\n\t\t//=require class/processor.js\n\t\t//=require handler/module.js\n\t\t//=require handler/bundle.js\n\t\t//=require handler/component.js\n\t\t//=require plugin/genie.js\n\n\t// initialize\n\t\tqueue = new ClassQueue();\n\t\tprocessor = new ClassProcessor(queue);\n\n\t\tfunction assignModule(id, module) {\n\t\t\tprovide(id, function() { return module; });\n\t\t}\n\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'uuid', AbstractUuid);\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'handler', abstractHandler);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'module', handlerModule);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'bundle', handlerBundle);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'component', handlerComponent);\n\t\tassignModule(MODULE_PREFIX_PLUGIN + 'genie', pluginGenie);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isTypeOf', validatorIsTypeOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isArray', validatorIsArray);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isObject', validatorIsObject);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isInstanceOf', validatorIsInstanceOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isSemver', validatorIsSemver);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveUrl', functionResolveUrl);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveSourcemaps', functionResolveSourcemaps);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'merge', functionMerge);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'iterate', functionIterate);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'hash', functionHash);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'defer', functionDefer);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'idle', functionIdle);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'uuid', functionUuid);\n\t\tassignModule(MODULE_PREFIX + 'weakmap', ClassWeakmap);\n\t\tassignModule(MODULE_PREFIX + 'descriptor', ClassDescriptor);\n\t\tassignModule(MODULE_PREFIX + 'pledge', ClassPledge);\n\t\tassignModule(MODULE_PREFIX + 'queue', ClassQueue);\n\t\tassignModule(MODULE_PREFIX + 'xhr', ClassXhr);\n\t\tassignModule(MODULE_PREFIX + 'failure', ClassFailure);\n\t\tassignModule(MODULE_PREFIX + 'semver', ClassSemver);\n\n\t\tif(options && options.main) {\n\t\t\tswitch(typeof options.main) {\n\t\t\t\tcase STRING_STRING:\n\t\t\t\t\tdemand(options.main);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase STRING_FUNCTION:\n\t\t\t\t\tprovide('main', options.main());\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n}(this.name === 'demand-loader' ? parent : this, setTimeout, clearTimeout));\n"]} \ No newline at end of file diff --git a/dist/handler/css.js b/dist/handler/css.js index d2f668a..c70e216 100644 --- a/dist/handler/css.js +++ b/dist/handler/css.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(e){"use strict";provide(["/demand/abstract/handler","/demand/function/resolveSourcemaps"],function(t,r){var n=e.getElementsByTagName("head")[0],s=e.createElement("a"),c=/url\s*\(\s*["']?(.+?)["']?\s*\)/gi,o=/@import\s+["'](.+?)["']/gi,u=/^\//i,a=/^data:|http(s?):|\/\//i,i=/^text\/css/;function d(e){return s.href=e,s}function l(e,t,r){return a.test(t[1])||(e=e.replace(t[0],r)),e}function f(){}return f.prototype={validate:function(e){return i.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".css"!==t.slice(-".css".length)?t+".css":t},onPostRequest:function(e){for(var t,n=d(e.url+"/.."),s=n.href,a="//"+n.host,i=e.source;t=c.exec(i);)i=l(i,t,'url("'+d(u.test(t[1])?a+t[1]:s+t[1]).href+'")');for(;t=o.exec(i);)i=l(i,t,'@import "'+d(u.test(t[1])?a+t[1]:s+t[1]).href+'"');e.source=r(e.url,i)},process:function(t){var r=e.querySelector('[demand-id="'+t.id+'"]');r||((r=e.createElement("style")).type="text/css",r.setAttribute("demand-id",t.id),n.appendChild(r)),"STYLE"===r.tagName&&(r.styleSheet?r.styleSheet.cssText=t.source:r.textContent=t.source),provide(function(){return r})}},new(f.extends(t))})}(document); //# sourceMappingURL=css.js.map diff --git a/dist/handler/html.js b/dist/handler/html.js index 3bb8b17..49b3b12 100644 --- a/dist/handler/html.js +++ b/dist/handler/html.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(){"use strict";provide(["/demand/abstract/handler"],function(t){var e=/^text\/html/,n=document.createElement("body");function r(){}return r.prototype={validate:function(t){return e.test(t)},onPreRequest:function(t){var e=t.url.pathname;t.url.pathname=".html"!==e.slice(-".html".length)?e+".html":e},process:function(t){provide(function(){return function(t){var e,r=document.createDocumentFragment();for(n.innerHTML=t;e=n.firstElementChild;)r.appendChild(e);return r}(t.source)})}},new(r.extends(t))})}(); //# sourceMappingURL=html.js.map diff --git a/dist/handler/json.js b/dist/handler/json.js index b534b3b..9e797d7 100644 --- a/dist/handler/json.js +++ b/dist/handler/json.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(){"use strict";provide(["/demand/abstract/handler"],function(n){var t=/^application\/json/;function e(){}return e.prototype={validate:function(n){return t.test(n)},onPreRequest:function(n){var t=n.url.pathname;n.url.pathname=".json"!==t.slice(-".json".length)?t+".json":t},process:function(n){var t=JSON.parse(n.source);provide(function(){return t})}},new(e.extends(n))})}(); //# sourceMappingURL=json.js.map diff --git a/dist/handler/legacy.js b/dist/handler/legacy.js index 8d8474e..36ad4a7 100644 --- a/dist/handler/legacy.js +++ b/dist/handler/legacy.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/failure","/demand/handler/module","/demand/validator/isObject"],function(e,n,t,r){var o={};function u(){}return demand.on("postConfigure:"+e,function(e){o=r(e)?e:{}}),u.prototype={onPreRequest:function(e){var n=o[e.path]&&o[e.path].dependencies;t.onPreRequest(e),n&&(e.enqueue=demand.apply(null,n))},onPreProcess:function(e){var n=o[e.path]&&o[e.path].dependencies;n&&"boolean"==typeof e.enqueue&&(e.enqueue=demand.apply(null,n))},process:function(e){var r=function(){var e,r=this.dfd,u=o[this.path]&&o[this.path].probe;t.process(this),u&&(e=u())?provide(function(){return e}):r.reject(new n("error probing",this.path))}.bind(e);!0===e.enqueue?r():e.enqueue.then(r,function(){e.dfd.reject(new n("error resolving",e.path,arguments))})}},new(u.extends(t))})}(); //# sourceMappingURL=legacy.js.map diff --git a/dist/handler/text.js b/dist/handler/text.js index cde184a..4f600aa 100644 --- a/dist/handler/text.js +++ b/dist/handler/text.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(){"use strict";provide(["/demand/abstract/handler"],function(t){var n=/^text\/.+/;function e(){}return e.prototype={validate:function(t){return n.test(t)},process:function(t){provide(function(){return t.source})}},new(e.extends(t))})}(); //# sourceMappingURL=text.js.map diff --git a/dist/plugin/cookie.js b/dist/plugin/cookie.js index 5cf48de..2f3bbe1 100644 --- a/dist/plugin/cookie.js +++ b/dist/plugin/cookie.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ !function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(t,e,o,i){var a,c="Thu, 01 Jan 1970 00:00:00 GMT",r=[];function u(t,e,o){(a||function(n){for(var t,e,o=0;t=r[o];o++)0===n.indexOf(t.pattern)&&(!e||t.weight>e.weight)&&(e=t);return!!e&&e.state}(t.path))&&(n.cookie="demand["+t.type+"]["+t.path+"]="+encodeURIComponent(e)+"; expires="+o+"; path=/")}return demand.on("postConfigure:"+t,function(n){o(n)?(r.length=0,e(n,function(n,t){r.push({pattern:n,weight:n.length,state:t})})):i(n,"boolean")&&(a=n)}).on("cacheMiss",function(n){u(n,"",c)}).on("cacheClear",function(n){u(n,"",c)}).on("postCache",function(n,t){u(n,JSON.stringify(t),"Fri, 31 Dec 9999 23:59:59 GMT")}),!0})}(document); //# sourceMappingURL=cookie.js.map diff --git a/dist/plugin/lzstring.js b/dist/plugin/lzstring.js index 2673b23..15eb5b0 100644 --- a/dist/plugin/lzstring.js +++ b/dist/plugin/lzstring.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ var LZString=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(n,r){if(!e[n]){e[n]={};for(var o=0;o>>8,o[2*e+1]=s%256}return o},decompressFromUint8Array:function(r){if(null==r)return i.decompress(r);for(var o=new Array(r.length/2),e=0,t=o.length;e>=1}else{for(t=1,e=0;e>=1}0==--f&&(f=Math.pow(2,h),h++),delete a[p]}else for(t=s[p],e=0;e>=1;0==--f&&(f=Math.pow(2,h),h++),s[c]=l++,p=String(u)}if(""!==p){if(Object.prototype.hasOwnProperty.call(a,p)){if(p.charCodeAt(0)<256){for(e=0;e>=1}else{for(t=1,e=0;e>=1}0==--f&&(f=Math.pow(2,h),h++),delete a[p]}else for(t=s[p],e=0;e>=1;0==--f&&(f=Math.pow(2,h),h++)}for(t=2,e=0;e>=1;for(;;){if(m<<=1,g==r-1){d.push(o(m));break}g++}return d.join("")},decompress:function(n){return null==n?"":""==n?null:i._decompress(n.length,32768,function(r){return n.charCodeAt(r)})},_decompress:function(r,o,e){var t,i,s,a,u,c,p,f=[],l=4,h=4,d=3,m="",g=[],v={val:e(0),position:o,index:1};for(t=0;t<3;t+=1)f[t]=t;for(s=0,u=Math.pow(2,2),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;switch(s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;p=n(s);break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;p=n(s);break;case 2:return""}for(f[3]=p,i=p,g.push(p);;){if(v.index>r)return"";for(s=0,u=Math.pow(2,d),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;switch(p=s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 2:return g.join("")}if(0==l&&(l=Math.pow(2,d),d++),f[p])m=f[p];else{if(p!==h)return null;m=i+i.charAt(0)}g.push(m),f[h++]=i+m.charAt(0),i=m,0==--l&&(l=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return LZString}),function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(r,o,e,t){var i=[{pattern:r,weight:r.length,state:!1}],s={};function a(n){for(var r,o,e=0;r=i[e];e++)0===n.indexOf(r.pattern)&&(!o||r.weight>o.weight)&&(o=r);return!!o&&o.state}return demand.on("postConfigure:"+r,function(n){e(n)?(i.length=0,o(n,function(n,r){i.push({pattern:n,weight:n.length,state:r})})):t(n,"boolean")&&i.push({pattern:"",weight:0,state:n})}).on("cacheHit",function(n){a(n.path)&&(s[n.id]=!0)}).on("preCache",function(r){a(r.path)&&(r.source=n.LZString.compressToUTF16(r.source))}).on("preProcess",function(r){s[r.id]&&(r.source=n.LZString.decompressFromUTF16(r.source))}),!0})}(this); //# sourceMappingURL=lzstring.js.map diff --git a/dist/plugin/sri.js b/dist/plugin/sri.js index 0824d30..163e5c5 100644 --- a/dist/plugin/sri.js +++ b/dist/plugin/sri.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.3 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +/**! Qoopido.demand 5.2.4 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ var SUPPORTED_ALGS=15;!function(r){"use strict";var e,n,t,o,i=4294967296;function h(r,e){this.highOrder=r,this.lowOrder=e}function w(r,e,n,t){var o,i,h,w="",d=e/8;for(h=-1===n?3:0,o=0;o>>2]>>>8*(h+n*(o%4)),w+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return t.outputUpper?w.toUpperCase():w}function d(r,e,n,t){var o,i,h,w,d,u,f="",a=e/8;for(u=-1===n?3:0,o=0;o>>2]:0,d=o+2>>2]:0,h=(r[o>>>2]>>>8*(u+n*(o%4))&255)<<16|(w>>>8*(u+n*((o+1)%4))&255)<<8|d>>>8*(u+n*((o+2)%4))&255,i=0;i<4;i+=1)f+=8*o+6*i<=e?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>>6*(3-i)&63):t.b64Pad;return f}function u(r,e,n){var t,o,i,h="",w=e/8;for(i=-1===n?3:0,t=0;t>>2]>>>8*(i+n*(t%4))&255,h+=String.fromCharCode(o);return h}function f(r,e,n){var t,o,i,h=e/8,w=new ArrayBuffer(h);for(i=new Uint8Array(w),o=-1===n?3:0,t=0;t>>2]>>>8*(o+n*(t%4))&255;return w}function a(r){var e,n={outputUpper:!1,b64Pad:"=",shakeLen:-1};if(e=r||{},n.outputUpper=e.outputUpper||!1,!0===e.hasOwnProperty("b64Pad")&&(n.b64Pad=e.b64Pad),!0===e.hasOwnProperty("shakeLen")&&0!=(8&SUPPORTED_ALGS)){if(e.shakeLen%8!=0)throw new Error("shakeLen must be a multiple of 8");n.shakeLen=e.shakeLen}if("boolean"!=typeof n.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof n.b64Pad)throw new Error("Invalid b64Pad formatting option");return n}function O(r,e,n){var t;switch(e){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(r){case"HEX":t=function(r,e,t){return function(r,e,n,t){var o,i,h,w,d,u,f,a=r.length;if(0!=a%2)throw new Error("String of HEX type must be in byte increments");for(o=e||[0],u=(n=n||0)>>>3,f=-1===t?3:0,i=0;i>>1)+u)>>>2;o.length<=w;)o.push(0);o[w]|=h<<8*(f+t*(d%4))}return{value:o,binLen:4*a+n}}(r,e,t,n)};break;case"TEXT":t=function(r,t,o){return function(r,e,n,o,i){var h,w,d,u,f,a,O,l,s,c,g=0;if(h=t||[0],a=(o=o||0)>>>3,"UTF8"===e)for(s=-1===i?3:0,u=0;u(w=r.charCodeAt(u))?d.push(w):2048>w?(d.push(192|w>>>6),d.push(128|63&w)):55296>w||57344<=w?d.push(224|w>>>12,128|w>>>6&63,128|63&w):(u+=1,w=65536+((1023&w)<<10|1023&r.charCodeAt(u)),d.push(240|w>>>18,128|w>>>12&63,128|w>>>6&63,128|63&w)),f=0;f>>2;h.length<=O;)h.push(0);h[O]|=d[f]<<8*(s+i*(l%4)),g+=1}else if("UTF16BE"===e||"UTF16LE"===e)for(s=-1===i?2:0,c="UTF16LE"===e&&1!==i||"UTF16LE"!==e&&1===i,u=0;u>>8),O=(l=g+a)>>>2;h.length<=O;)h.push(0);h[O]|=w<<8*(s+i*(l%4)),g+=2}return{value:h,binLen:8*g+o}}(r,e,0,o,n)};break;case"B64":t=function(r,e,t){return function(r,e,n,t){var o,i,h,w,d,u,f,a,O,l,s=0;if(-1===r.search(/^[a-zA-Z0-9=+\/]+$/))throw new Error("Invalid character in base-64 string");if(u=r.indexOf("="),r=r.replace(/\=/g,""),-1!==u&&u