From 2c7bd006dfee627fa23fb8baac98bad943ba0257 Mon Sep 17 00:00:00 2001 From: RELNO Date: Fri, 12 Apr 2024 22:02:06 +0000 Subject: [PATCH] deploy: 861c7b8228b1b2efff1bcd296dd08b7b7c35ed5c --- asset-manifest.json | 6 +++--- index.html | 2 +- static/js/{main.bc80e597.js => main.16c75ef3.js} | 6 +++--- ...bc80e597.js.LICENSE.txt => main.16c75ef3.js.LICENSE.txt} | 0 static/js/main.16c75ef3.js.map | 1 + static/js/main.bc80e597.js.map | 1 - 6 files changed, 8 insertions(+), 8 deletions(-) rename static/js/{main.bc80e597.js => main.16c75ef3.js} (99%) rename static/js/{main.bc80e597.js.LICENSE.txt => main.16c75ef3.js.LICENSE.txt} (100%) create mode 100644 static/js/main.16c75ef3.js.map delete mode 100644 static/js/main.bc80e597.js.map diff --git a/asset-manifest.json b/asset-manifest.json index 290b59e..0dbdea0 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/CS_cityscopeJS_projection_mapping/static/css/main.f736318f.css", - "main.js": "/CS_cityscopeJS_projection_mapping/static/js/main.bc80e597.js", + "main.js": "/CS_cityscopeJS_projection_mapping/static/js/main.16c75ef3.js", "index.html": "/CS_cityscopeJS_projection_mapping/index.html", "main.f736318f.css.map": "/CS_cityscopeJS_projection_mapping/static/css/main.f736318f.css.map", - "main.bc80e597.js.map": "/CS_cityscopeJS_projection_mapping/static/js/main.bc80e597.js.map" + "main.16c75ef3.js.map": "/CS_cityscopeJS_projection_mapping/static/js/main.16c75ef3.js.map" }, "entrypoints": [ "static/css/main.f736318f.css", - "static/js/main.bc80e597.js" + "static/js/main.16c75ef3.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 8206af7..ee0a03d 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -CityScopeJS 🌐 Projection
\ No newline at end of file +CityScopeJS 🌐 Projection
\ No newline at end of file diff --git a/static/js/main.bc80e597.js b/static/js/main.16c75ef3.js similarity index 99% rename from static/js/main.bc80e597.js rename to static/js/main.16c75ef3.js index d269247..5feffe0 100644 --- a/static/js/main.bc80e597.js +++ b/static/js/main.16c75ef3.js @@ -1,3 +1,3 @@ -/*! For license information please see main.bc80e597.js.LICENSE.txt */ -(()=>{var __webpack_modules__={707:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(s){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function s(e){try{return decodeURIComponent(e)}catch(s){for(var t=e.match(n)||[],r=1;r{"use strict";function t(e,t,r){r=r||2;var s,o,a,l,h,d,p,g=t&&t.length,m=g?t[0]*r:e.length,v=n(e,0,m,r,!0),y=[];if(!v||v.next===v.prev)return y;if(g&&(v=function(e,t,r,i){var s,o,a,l=[];for(s=0,o=t.length;s80*r){s=a=e[0],o=l=e[1];for(var b=r;ba&&(a=h),d>l&&(l=d);p=0!==(p=Math.max(a-s,l-o))?32767/p:0}return i(v,y,r,s,o,p,0),y}function n(e,t,n,r,i){var s,o;if(i===T(e,t,n,r)>0)for(s=t;s=t;s-=r)o=S(s,e[s],e[s+1],o);return o&&v(o,o.next)&&(E(o),o=o.next),o}function r(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(E(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function i(e,t,n,c,u,h,f){if(e){!f&&h&&function(e,t,n,r){var i=e;do{0===i.z&&(i.z=d(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,s,o,a,l,c=1;do{for(n=e,e=null,s=null,o=0;n;){for(o++,r=n,a=0,t=0;t0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:e=i,i.prevZ=s,s=i;n=r}s.nextZ=null,c*=2}while(o>1)}(i)}(e,c,u,h);for(var p,g,m=e;e.prev!==e.next;)if(p=e.prev,g=e.next,h?o(e,c,u,h):s(e))t.push(p.i/n|0),t.push(e.i/n|0),t.push(g.i/n|0),E(e),e=g.next,m=g.next;else if((e=g)===m){f?1===f?i(e=a(r(e),t,n),t,n,c,u,h,2):2===f&&l(e,t,n,c,u,h):i(r(e),t,n,c,u,h,1);break}}}function s(e){var t=e.prev,n=e,r=e.next;if(m(t,n,r)>=0)return!1;for(var i=t.x,s=n.x,o=r.x,a=t.y,l=n.y,c=r.y,u=is?i>o?i:o:s>o?s:o,f=a>l?a>c?a:c:l>c?l:c,g=r.next;g!==t;){if(g.x>=u&&g.x<=d&&g.y>=h&&g.y<=f&&p(i,a,s,l,o,c,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function o(e,t,n,r){var i=e.prev,s=e,o=e.next;if(m(i,s,o)>=0)return!1;for(var a=i.x,l=s.x,c=o.x,u=i.y,h=s.y,f=o.y,g=al?a>c?a:c:l>c?l:c,b=u>h?u>f?u:f:h>f?h:f,_=d(g,v,t,n,r),w=d(y,b,t,n,r),x=e.prevZ,S=e.nextZ;x&&x.z>=_&&S&&S.z<=w;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=b&&x!==i&&x!==o&&p(a,u,l,h,c,f,x.x,x.y)&&m(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,S.x>=g&&S.x<=y&&S.y>=v&&S.y<=b&&S!==i&&S!==o&&p(a,u,l,h,c,f,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;x&&x.z>=_;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=b&&x!==i&&x!==o&&p(a,u,l,h,c,f,x.x,x.y)&&m(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;S&&S.z<=w;){if(S.x>=g&&S.x<=y&&S.y>=v&&S.y<=b&&S!==i&&S!==o&&p(a,u,l,h,c,f,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function a(e,t,n){var i=e;do{var s=i.prev,o=i.next.next;!v(s,o)&&y(s,i,i.next,o)&&w(s,o)&&w(o,s)&&(t.push(s.i/n|0),t.push(i.i/n|0),t.push(o.i/n|0),E(i),E(i.next),i=e=o),i=i.next}while(i!==e);return r(i)}function l(e,t,n,s,o,a){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&g(l,c)){var u=x(l,c);return l=r(l,l.next),u=r(u,u.next),i(l,t,n,s,o,a,0),void i(u,t,n,s,o,a,0)}c=c.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function u(e,t){var n=function(e,t){var n,r=t,i=e.x,s=e.y,o=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>o&&(o=a,n=r.x=r.x&&r.x>=u&&i!==r.x&&p(sn.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var i=x(n,e);return r(i,i.next),r(n,n.next)}function h(e,t){return m(e.prev,e,t.prev)<0&&m(t.next,e,e.next)<0}function d(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function f(e){var t=e,n=e;do{(t.x=(e-o)*(s-a)&&(e-o)*(r-a)>=(n-o)*(t-a)&&(n-o)*(s-a)>=(i-o)*(r-a)}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&y(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(w(e,t)&&w(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,s=(e.y+t.y)/2;do{n.y>s!==n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(m(e.prev,e,t.prev)||m(e,t.prev,t))||v(e,t)&&m(e.prev,e,e.next)>0&&m(t.prev,t,t.next)>0)}function m(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function y(e,t,n,r){var i=_(m(e,t,n)),s=_(m(e,t,r)),o=_(m(n,r,e)),a=_(m(n,r,t));return i!==s&&o!==a||(!(0!==i||!b(e,n,t))||(!(0!==s||!b(e,r,t))||(!(0!==o||!b(n,e,r))||!(0!==a||!b(n,t,r)))))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function w(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function x(e,t){var n=new P(e.i,e.x,e.y),r=new P(t.i,t.x,t.y),i=e.next,s=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function S(e,t,n,r){var i=new P(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function P(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function T(e,t,n,r){for(var i=0,s=t,o=n-r;s0&&(r+=e[i-1].length,n.holes.push(r))}return n}},38:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),s=0;s{var r;!function(i,s,o,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),h="function",d=Math.round,f=Math.abs,p=Date.now;function g(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=i.console&&(i.console.warn||i.console.log);return s&&s.call(i.console,r,n),e.apply(this,arguments)}}l="function"!==typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function M(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function I(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),s=0;s1&&!n.firstMultiple?n.firstMultiple=re(t):1===i&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,l=o?o.center:s.center,c=t.center=ie(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=le(l,c),t.distance=ae(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},s=e.prevInput||{};t.eventType!==V&&s.eventType!==W||(i=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=oe(t.deltaX,t.deltaY);var u=se(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=f(u.x)>f(u.y)?u.x:u.y,t.scale=o?(h=o.pointers,d=r,ae(d[0],d[1],ee)/ae(h[0],h[1],ee)):1,t.rotation=o?function(e,t){return le(t[1],t[0],ee)+le(e[1],e[0],ee)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,s,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(t.eventType!=G&&(l>U||o.velocity===a)){var c=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,h=se(l,c,u);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,s=oe(c,u),e.lastInterval=t}else n=o.velocity,r=o.velocityX,i=o.velocityY,s=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=s}(n,t);var h,d;var g=e.element;A(t.srcEvent.target,g)&&(g=t.srcEvent.target);t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function re(e){for(var t=[],n=0;n=f(t)?e<0?q:X:t<0?Y:Z}function ae(e,t,n){n||(n=J);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function le(e,t,n){n||(n=J);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}te.prototype={handler:function(){},init:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(F(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(F(this.element),this.evWin,this.domHandler)}};var ce={mousedown:V,mousemove:2,mouseup:W},ue="mousedown",he="mousemove mouseup";function de(){this.evEl=ue,this.evWin=he,this.pressed=!1,te.apply(this,arguments)}w(de,te,{handler:function(e){var t=ce[e.type];t&V&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=W),this.pressed&&(t&W&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var fe={pointerdown:V,pointermove:2,pointerup:W,pointercancel:G,pointerout:G},pe={2:D,3:"pen",4:B,5:"kinect"},ge="pointerdown",me="pointermove pointerup pointercancel";function ve(){this.evEl=ge,this.evWin=me,te.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ge="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),w(ve,te,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=fe[r],s=pe[e.pointerType]||e.pointerType,o=s==D,a=k(t,e.pointerId,"pointerId");i&V&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):i&(W|G)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,1))}});var ye={touchstart:V,touchmove:2,touchend:W,touchcancel:G};function be(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,te.apply(this,arguments)}function _e(e,t){var n=L(e.touches),r=L(e.changedTouches);return t&(W|G)&&(n=O(n.concat(r),"identifier",!0)),[n,r]}w(be,te,{handler:function(e){var t=ye[e.type];if(t===V&&(this.started=!0),this.started){var n=_e.call(this,e,t);t&(W|G)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:e})}}});var we={touchstart:V,touchmove:2,touchend:W,touchcancel:G},xe="touchstart touchmove touchend touchcancel";function Se(){this.evTarget=xe,this.targetIds={},te.apply(this,arguments)}function Ee(e,t){var n=L(e.touches),r=this.targetIds;if(t&(2|V)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,s,o=L(e.changedTouches),a=[],l=this.target;if(s=n.filter((function(e){return A(e.target,l)})),t===V)for(i=0;i-1&&r.splice(e,1)}),Pe)}}function Me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+We(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+We(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ue},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return qe.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ge(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ye,qe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Fe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Ze,Ve,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ie]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(W|G)&&!i)this.reset();else if(e.eventType&V)this.reset(),this._timer=g((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&W)return 8;return Ue},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&W?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Ke,qe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Fe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Qe,qe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Q,pointers:1},getTouchAction:function(){return Xe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(K|Q)?t=e.overallVelocity:n&K?t=e.overallVelocityX:n&Q&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&e.eventType&W},emit:function(e){var t=Ge(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w($e,Ve,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Re]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance{"use strict";var numeric=exports;"undefined"!==typeof __webpack_require__.g&&(__webpack_require__.g.numeric=numeric),numeric.version="1.2.6",numeric.bench=function(e,t){var n,r,i;for("undefined"===typeof t&&(t=15),r=.5,n=new Date;;){for(i=r*=2;i>3;i-=4)e(),e(),e(),e();for(;i>0;)e(),i--;if(new Date-n>t)break}for(i=r;i>3;i-=4)e(),e(),e(),e();for(;i>0;)e(),i--;return 1e3*(3*r-1)/(new Date-n)},numeric._myIndexOf=function(e){var t,n=this.length;for(t=0;tnumeric.largeArray)return n.push("...Large Array..."),!0;c=!1;for(n.push("["),i=0;i0&&(n.push(","),c&&n.push("\n ")),c=e(r[i]);return n.push("]"),!0}for(i in n.push("{"),c=!1,r)r.hasOwnProperty(i)&&(c&&n.push(",\n"),c=!0,n.push(i),n.push(": \n"),e(r[i]));return n.push("}"),!0}(e),n.join("")},numeric.parseDate=function(e){return function e(t){if("string"===typeof t)return Date.parse(t.replace(/-/g,"/"));if(!(t instanceof Array))throw new Error("parseDate: parameter must be arrays of strings");var n,r=[];for(n=0;n0){for(s[l]=[],t=0;t>>8^i[255&(s^e[r])];return~s}var n,r,i,s,o,a,l,c,u,h,d=e[0].length,f=e[0][0].length,p=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,8,2,0,0,0,-1,-2,-3,-4,-5,-6,-7,-8,73,68,65,84,8,29];for(h=t(p,12,29),p[29]=h>>24&255,p[30]=h>>16&255,p[31]=h>>8&255,p[32]=255&h,n=1,r=0,l=0;l>8&255,p.push(o),p.push(a),p.push(255&~o),p.push(255&~a),0===l&&p.push(0),c=0;c255?255:o<0?0:Math.round(o)))%65521))%65521,p.push(o);p.push(0)}return u=(r<<16)+n,p.push(u>>24&255),p.push(u>>16&255),p.push(u>>8&255),p.push(255&u),s=p.length-41,p[33]=s>>24&255,p[34]=s>>16&255,p[35]=s>>8&255,p[36]=255&s,h=t(p,37),p.push(h>>24&255),p.push(h>>16&255),p.push(h>>8&255),p.push(255&h),p.push(0),p.push(0),p.push(0),p.push(0),p.push(73),p.push(69),p.push(78),p.push(68),p.push(174),p.push(66),p.push(96),p.push(130),"data:image/png;base64,"+function(e){var t,n,r,i,s,o,a,l=e.length,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="";for(t=0;t>4),o=((15&r)<<2)+((i=e[t+2])>>6),a=63&i,t+1>=l?o=a=64:t+2>=l&&(a=64),u+=c.charAt(n>>2)+c.charAt(s)+c.charAt(o)+c.charAt(a);return u}(p)},numeric._dim=function(e){for(var t=[];"object"===typeof e;)t.push(e.length),e=e[0];return t},numeric.dim=function(e){var t;return"object"===typeof e?"object"===typeof(t=e[0])?"object"===typeof t[0]?numeric._dim(e):[e.length,t.length]:[e.length]:[]},numeric.mapreduce=function(e,t){return Function("x","accum","_s","_k",'if(typeof accum === "undefined") accum = '+t+';\nif(typeof x === "number") { var xi = x; '+e+'; return accum; }\nif(typeof _s === "undefined") _s = numeric.dim(x);\nif(typeof _k === "undefined") _k = 0;\nvar _n = _s[_k];\nvar i,xi;\nif(_k < _s.length-1) {\n for(i=_n-1;i>=0;i--) {\n accum = arguments.callee(x[i],accum,_s,_k+1);\n } return accum;\n}\nfor(i=_n-1;i>=1;i-=2) { \n xi = x[i];\n '+e+";\n xi = x[i-1];\n "+e+";\n}\nif(i === 0) {\n xi = x[i];\n "+e+"\n}\nreturn accum;")},numeric.mapreduce2=function(e,t){return Function("x","var n = x.length;\nvar i,xi;\n"+t+";\nfor(i=n-1;i!==-1;--i) { \n xi = x[i];\n "+e+";\n}\nreturn accum;")},numeric.same=function e(t,n){var r,i;if(!(t instanceof Array)||!(n instanceof Array))return!1;if((i=t.length)!==n.length)return!1;for(r=0;r=0;r-=2)s[r+1]=t,s[r]=t;return-1===r&&(s[0]=t),s}for(r=i-1;r>=0;r--)s[r]=numeric.rep(e,t,n+1);return s},numeric.dotMMsmall=function(e,t){var n,r,i,s,o,a,l,c,u,h,d;for(s=e.length,o=t.length,a=t[0].length,l=Array(s),n=s-1;n>=0;n--){for(c=Array(a),u=e[n],i=a-1;i>=0;i--){for(h=u[o-1]*t[o-1][i],r=o-2;r>=1;r-=2)d=r-1,h+=u[r]*t[r][i]+u[d]*t[d][i];0===r&&(h+=u[0]*t[0][i]),c[i]=h}l[n]=c}return l},numeric._getCol=function(e,t,n){var r;for(r=e.length-1;r>0;--r)n[r]=e[r][t],n[--r]=e[r][t];0===r&&(n[0]=e[0][t])},numeric.dotMMbig=function(e,t){var n,r,i,s=numeric._getCol,o=t.length,a=Array(o),l=e.length,c=t[0].length,u=new Array(l),h=numeric.dotVV;for(--o,r=--l;-1!==r;--r)u[r]=Array(c);for(r=--c;-1!==r;--r)for(s(t,r,a),i=l;-1!==i;--i)0,n=e[i],u[i][r]=h(n,a);return u},numeric.dotMV=function(e,t){var n,r=e.length,i=(t.length,Array(r)),s=numeric.dotVV;for(n=r-1;n>=0;n--)i[n]=s(e[n],t);return i},numeric.dotVM=function(e,t){var n,r,i,s,o,a,l;for(i=e.length,s=t[0].length,o=Array(s),r=s-1;r>=0;r--){for(a=e[i-1]*t[i-1][r],n=i-2;n>=1;n-=2)l=n-1,a+=e[n]*t[n][r]+e[l]*t[l][r];0===n&&(a+=e[0]*t[0][r]),o[r]=a}return o},numeric.dotVV=function(e,t){var n,r,i=e.length,s=e[i-1]*t[i-1];for(n=i-2;n>=1;n-=2)r=n-1,s+=e[n]*t[n]+e[r]*t[r];return 0===n&&(s+=e[0]*t[0]),s},numeric.dot=function(e,t){var n=numeric.dim;switch(1e3*n(e).length+n(t).length){case 2002:return t.length<10?numeric.dotMMsmall(e,t):numeric.dotMMbig(e,t);case 2001:return numeric.dotMV(e,t);case 1002:return numeric.dotVM(e,t);case 1001:return numeric.dotVV(e,t);case 1e3:return numeric.mulVS(e,t);case 1:return numeric.mulSV(e,t);case 0:return e*t;default:throw new Error("numeric.dot only works on vectors and matrices")}},numeric.diag=function(e){var t,n,r,i,s=e.length,o=Array(s);for(t=s-1;t>=0;t--){for(i=Array(s),n=t+2,r=s-1;r>=n;r-=2)i[r]=0,i[r-1]=0;for(r>t&&(i[r]=0),i[t]=e[t],r=t-1;r>=1;r-=2)i[r]=0,i[r-1]=0;0===r&&(i[0]=0),o[t]=i}return o},numeric.getDiag=function(e){var t,n=Math.min(e.length,e[0].length),r=Array(n);for(t=n-1;t>=1;--t)r[t]=e[t][t],r[--t]=e[t][t];return 0===t&&(r[0]=e[0][0]),r},numeric.identity=function(e){return numeric.diag(numeric.rep([e],1))},numeric.pointwise=function(e,t,n){"undefined"===typeof n&&(n="");var r,i,s=[],o=/\[i\]$/,a="",l=!1;for(r=0;r=0;i--) ret[i] = arguments.callee("+e.join(",")+",_s,_k+1);\n return ret;\n}\n"+n+"\nfor(i=_n-1;i!==-1;--i) {\n "+t+"\n}\nreturn ret;",Function.apply(null,s)},numeric.pointwise2=function(e,t,n){"undefined"===typeof n&&(n="");var r,i,s=[],o=/\[i\]$/,a="",l=!1;for(r=0;r=0;o--)e("object"===typeof t?t[o]:t,"object"===typeof n?n[o]:n,r,i+1,s);else s(t,n)},numeric._biforeach2=function e(t,n,r,i,s){if(i===r.length-1)return s(t,n);var o,a=r[i],l=Array(a);for(o=a-1;o>=0;--o)l[o]=e("object"===typeof t?t[o]:t,"object"===typeof n?n[o]:n,r,i+1,s);return l},numeric._foreach=function e(t,n,r,i){var s;if(r!==n.length-1)for(s=n[r]-1;s>=0;s--)e(t[s],n,r+1,i);else i(t)},numeric._foreach2=function e(t,n,r,i){if(r===n.length-1)return i(t);var s,o=n[r],a=Array(o);for(s=o-1;s>=0;s--)a[s]=e(t[s],n,r+1,i);return a},numeric.ops2={add:"+",sub:"-",mul:"*",div:"/",mod:"%",and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">=",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"},numeric.opseq={addeq:"+=",subeq:"-=",muleq:"*=",diveq:"/=",modeq:"%=",lshifteq:"<<=",rshifteq:">>=",rrshifteq:">>>=",bandeq:"&=",boreq:"|=",bxoreq:"^="},numeric.mathfuns=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","isNaN","isFinite"],numeric.mathfuns2=["atan2","pow","max","min"],numeric.ops1={neg:"-",not:"!",bnot:"~",clone:""},numeric.mapreducers={any:["if(xi) return true;","var accum = false;"],all:["if(!xi) return false;","var accum = true;"],sum:["accum += xi;","var accum = 0;"],prod:["accum *= xi;","var accum = 1;"],norm2Squared:["accum += xi*xi;","var accum = 0;"],norminf:["accum = max(accum,abs(xi));","var accum = 0, max = Math.max, abs = Math.abs;"],norm1:["accum += abs(xi)","var accum = 0, abs = Math.abs;"],sup:["accum = max(accum,xi);","var accum = -Infinity, max = Math.max;"],inf:["accum = min(accum,xi);","var accum = Infinity, min = Math.min;"]},function(){var e,t;for(e=0;eg&&(p=s,g=a);for(n=d[p],d[p]=d[o],d[o]=n,i=f[p],f[p]=f[o],f[o]=i,e=n[o],a=o;a!==h;++a)n[a]/=e;for(a=h-1;-1!==a;--a)i[a]/=e;for(s=u-1;-1!==s;--s)if(s!==o){for(t=d[s],r=f[s],e=t[o],a=o+1;a!==h;++a)t[a]-=n[a]*e;for(a=h-1;a>0;--a)r[a]-=i[a]*e,r[--a]-=i[a]*e;0===a&&(r[0]-=i[0]*e)}}return f},numeric.det=function(e){var t=numeric.dim(e);if(2!==t.length||t[0]!==t[1])throw new Error("numeric: det() only works on square matrices");var n,r,i,s,o,a,l,c,u=t[0],h=1,d=numeric.clone(e);for(r=0;rMath.abs(d[i][r])&&(i=n);for(i!==r&&(l=d[i],d[i]=d[r],d[r]=l,h*=-1),s=d[r],n=r+1;n=1;t-=2){for(i=e[t],r=e[t-1],n=a-1;n>=1;--n)(s=l[n])[t]=i[n],s[t-1]=r[n],(s=l[--n])[t]=i[n],s[t-1]=r[n];0===n&&((s=l[0])[t]=i[0],s[t-1]=r[0])}if(0===t){for(r=e[0],n=a-1;n>=1;--n)l[n][0]=r[n],l[--n][0]=r[n];0===n&&(l[0][0]=r[0])}return l},numeric.negtranspose=function(e){var t,n,r,i,s,o=e.length,a=e[0].length,l=Array(a);for(n=0;n=1;t-=2){for(i=e[t],r=e[t-1],n=a-1;n>=1;--n)(s=l[n])[t]=-i[n],s[t-1]=-r[n],(s=l[--n])[t]=-i[n],s[t-1]=-r[n];0===n&&((s=l[0])[t]=-i[0],s[t-1]=-r[0])}if(0===t){for(r=e[0],n=a-1;n>=1;--n)l[n][0]=-r[n],l[--n][0]=-r[n];0===n&&(l[0][0]=-r[0])}return l},numeric._random=function e(t,n){var r,i,s=t[n],o=Array(s);if(n===t.length-1){for(i=Math.random,r=s-1;r>=1;r-=2)o[r]=i(),o[r-1]=i();return 0===r&&(o[0]=i()),o}for(r=s-1;r>=0;r--)o[r]=e(t,n+1);return o},numeric.random=function(e){return numeric._random(e,0)},numeric.norm2=function(e){return Math.sqrt(numeric.norm2Squared(e))},numeric.linspace=function(e,t,n){if("undefined"===typeof n&&(n=Math.max(Math.round(t-e)+1,1)),n<2)return 1===n?[e]:[];var r,i=Array(n);for(r=--n;r>=0;r--)i[r]=(r*t+(n-r)*e)/n;return i},numeric.getBlock=function(e,t,n){var r=numeric.dim(e);return function e(i,s){var o,a=t[s],l=n[s]-a,c=Array(l);if(s===r.length-1){for(o=l;o>=0;o--)c[o]=i[o+a];return c}for(o=l;o>=0;o--)c[o]=e(i[o+a],s+1);return c}(e,0)},numeric.setBlock=function(e,t,n,r){var i=numeric.dim(e);return function e(r,s,o){var a,l=t[o],c=n[o]-l;if(o===i.length-1)for(a=c;a>=0;a--)r[a+l]=s[a];for(a=c;a>=0;a--)e(r[a+l],s[a],o+1)}(e,r,0),e},numeric.getRange=function(e,t,n){var r,i,s,o,a=t.length,l=n.length,c=Array(a);for(r=a-1;-1!==r;--r)for(c[r]=Array(l),s=c[r],o=e[t[r]],i=l-1;-1!==i;--i)s[i]=o[n[i]];return c},numeric.blockMatrix=function(e){var t=numeric.dim(e);if(t.length<4)return numeric.blockMatrix([e]);var n,r,i,s,o,a=t[0],l=t[1];for(n=0,r=0,i=0;i=0;s--){for(i=Array(c),a=e[s],o=c-1;o>=3;--o)i[o]=a*t[o],i[--o]=a*t[o],i[--o]=a*t[o],i[--o]=a*t[o];for(;o>=0;)i[o]=a*t[o],--o;u[s]=i}return u},numeric.T=function(e,t){this.x=e,this.y=t},numeric.t=function(e,t){return new numeric.T(e,t)},numeric.Tbinop=function(e,t,n,r,i){var s;numeric.indexOf;if("string"!==typeof i)for(s in i="",numeric)numeric.hasOwnProperty(s)&&(e.indexOf(s)>=0||t.indexOf(s)>=0||n.indexOf(s)>=0||r.indexOf(s)>=0)&&s.length>1&&(i+="var "+s+" = numeric."+s+";\n");return Function(["y"],"var x = this;\nif(!(y instanceof numeric.T)) { y = new numeric.T(y); }\n"+i+"\nif(x.y) { if(y.y) { return new numeric.T("+r+");\n }\n return new numeric.T("+n+");\n}\nif(y.y) {\n return new numeric.T("+t+");\n}\nreturn new numeric.T("+e+");\n")},numeric.T.prototype.add=numeric.Tbinop("add(x.x,y.x)","add(x.x,y.x),y.y","add(x.x,y.x),x.y","add(x.x,y.x),add(x.y,y.y)"),numeric.T.prototype.sub=numeric.Tbinop("sub(x.x,y.x)","sub(x.x,y.x),neg(y.y)","sub(x.x,y.x),x.y","sub(x.x,y.x),sub(x.y,y.y)"),numeric.T.prototype.mul=numeric.Tbinop("mul(x.x,y.x)","mul(x.x,y.x),mul(x.x,y.y)","mul(x.x,y.x),mul(x.y,y.x)","sub(mul(x.x,y.x),mul(x.y,y.y)),add(mul(x.x,y.y),mul(x.y,y.x))"),numeric.T.prototype.reciprocal=function(){var e=numeric.mul,t=numeric.div;if(this.y){var n=numeric.add(e(this.x,this.x),e(this.y,this.y));return new numeric.T(t(this.x,n),t(numeric.neg(this.y),n))}return new T(t(1,this.x))},numeric.T.prototype.div=function(e){if(e instanceof numeric.T||(e=new numeric.T(e)),e.y)return this.mul(e.reciprocal());var t=numeric.div;return this.y?new numeric.T(t(this.x,e.x),t(this.y,e.x)):new numeric.T(t(this.x,e.x))},numeric.T.prototype.dot=numeric.Tbinop("dot(x.x,y.x)","dot(x.x,y.x),dot(x.x,y.y)","dot(x.x,y.x),dot(x.y,y.x)","sub(dot(x.x,y.x),dot(x.y,y.y)),add(dot(x.x,y.y),dot(x.y,y.x))"),numeric.T.prototype.transpose=function(){var e=numeric.transpose,t=this.x,n=this.y;return n?new numeric.T(e(t),e(n)):new numeric.T(e(t))},numeric.T.prototype.transjugate=function(){var e=numeric.transpose,t=this.x,n=this.y;return n?new numeric.T(e(t),numeric.negtranspose(n)):new numeric.T(e(t))},numeric.Tunop=function(e,t,n){return"string"!==typeof n&&(n=""),Function("var x = this;\n"+n+"\nif(x.y) { "+t+";\n}\n"+e+";\n")},numeric.T.prototype.exp=numeric.Tunop("return new numeric.T(ex)","return new numeric.T(mul(cos(x.y),ex),mul(sin(x.y),ex))","var ex = numeric.exp(x.x), cos = numeric.cos, sin = numeric.sin, mul = numeric.mul;"),numeric.T.prototype.conj=numeric.Tunop("return new numeric.T(x.x);","return new numeric.T(x.x,numeric.neg(x.y));"),numeric.T.prototype.neg=numeric.Tunop("return new numeric.T(neg(x.x));","return new numeric.T(neg(x.x),neg(x.y));","var neg = numeric.neg;"),numeric.T.prototype.sin=numeric.Tunop("return new numeric.T(numeric.sin(x.x))","return x.exp().sub(x.neg().exp()).div(new numeric.T(0,2));"),numeric.T.prototype.cos=numeric.Tunop("return new numeric.T(numeric.cos(x.x))","return x.exp().add(x.neg().exp()).div(2);"),numeric.T.prototype.abs=numeric.Tunop("return new numeric.T(numeric.abs(x.x));","return new numeric.T(numeric.sqrt(numeric.add(mul(x.x,x.x),mul(x.y,x.y))));","var mul = numeric.mul;"),numeric.T.prototype.log=numeric.Tunop("return new numeric.T(numeric.log(x.x));","var theta = new numeric.T(numeric.atan2(x.y,x.x)), r = x.abs();\nreturn new numeric.T(numeric.log(r.x),theta.x);"),numeric.T.prototype.norm2=numeric.Tunop("return numeric.norm2(x.x);","var f = numeric.norm2Squared;\nreturn Math.sqrt(f(x.x)+f(x.y));"),numeric.T.prototype.inv=function(){var e=this;if("undefined"===typeof e.y)return new numeric.T(numeric.inv(e.x));var t,n,r,i,s,o,a,l,c,u,h,d,f,p,g,m,v,y,b=e.x.length,_=numeric.identity(b),w=numeric.rep([b,b],0),x=numeric.clone(e.x),S=numeric.clone(e.y);for(c=0;cd&&(h=u,d=f);for(h!==c&&(y=x[c],x[c]=x[h],x[h]=y,y=S[c],S[c]=S[h],S[h]=y,y=_[c],_[c]=_[h],_[h]=y,y=w[c],w[c]=w[h],w[h]=y),t=x[c],n=S[c],s=_[c],o=w[c],p=t[c],g=n[c],u=c+1;u0;c--)for(s=_[c],o=w[c],u=c-1;u>=0;u--)for(a=_[u],l=w[u],p=x[u][c],g=S[u][c],h=b-1;h>=0;h--)m=s[h],v=o[h],a[h]-=p*m-g*v,l[h]-=p*v+g*m;return new numeric.T(_,w)},numeric.T.prototype.get=function(e){var t,n=this.x,r=this.y,i=0,s=e.length;if(r){for(;i=0?1:-1)*numeric.norm2(e);t[0]+=n;var r=numeric.norm2(t);if(0===r)throw new Error("eig: internal error");return numeric.div(t,r)},numeric.toUpperHessenberg=function(e){var t=numeric.dim(e);if(2!==t.length||t[0]!==t[1])throw new Error("numeric: toUpperHessenberg() only works on square matrices");var n,r,i,s,o,a,l,c,u,h,d=t[0],f=numeric.clone(e),p=numeric.identity(d);for(r=0;r0){for(o=numeric.house(s),a=numeric.getBlock(f,[r+1,r],[d-1,d-1]),l=numeric.tensor(o,numeric.dot(o,a)),n=r+1;n=4*l)P=.5*(c+Math.sqrt(c*c-4*l)),T=.5*(c-Math.sqrt(c*c-4*l)),u=numeric.add(numeric.sub(numeric.dot(u,u),numeric.mul(u,P+T)),numeric.diag(numeric.rep([3],P*T)));else u=numeric.add(numeric.sub(numeric.dot(u,u),numeric.mul(u,c)),numeric.diag(numeric.rep([3],l)));for(n=[u[0][0],u[1][0],u[2][0]],r=numeric.house(n),f=[e[0],e[1],e[2]],p=numeric.tensor(r,numeric.dot(r,f)),m=0;m<3;m++)for(d=e[m],g=p[m],y=0;y<_;y++)d[y]-=2*g[y];for(f=numeric.getBlock(e,[0,0],[_-1,2]),p=numeric.tensor(numeric.dot(f,r),r),m=0;m<_;m++)for(d=e[m],g=p[m],y=0;y<3;y++)d[y]-=2*g[y];for(f=[w[0],w[1],w[2]],p=numeric.tensor(r,numeric.dot(r,f)),m=0;m<3;m++)for(h=w[m],g=p[m],y=0;y<_;y++)h[y]-=2*g[y];for(v=0;v<_-2;v++){for(y=v;y<=v+1;y++)if(Math.abs(e[y+1][y])=0?((m=(o-(d=u<0?-.5*(u-T(h)):-.5*(u+T(h))))*(o-d)+a*a)>(v=l*l+(c-d)*(c-d))?(p=(o-d)/(m=T(m)),g=a/m):(p=l/(v=T(v)),g=(c-d)/v),i=new _([[g,-p],[p,g]]),E.setRows(n,s,i.dot(E.getRows(n,s)))):(d=-.5*u,f=.5*T(-h),(m=(o-d)*(o-d)+a*a)>(v=l*l+(c-d)*(c-d))?(p=(o-d)/(m=T(m+f*f)),g=a/m,d=0,f/=m):(p=l/(v=T(v+f*f)),g=(c-d)/v,d=f/v,f=0),i=new _([[g,-p],[p,g]],[[d,f],[f,-d]]),E.setRows(n,s,i.dot(E.getRows(n,s))))}var A=E.dot(e).dot(E.transjugate()),C=(w=e.length,numeric.T.identity(w));for(s=0;s0)for(r=s-1;r>=0;r--){var M=A.get([r,r]),k=A.get([s,s]);numeric.neq(M.x,k.x)||numeric.neq(M.y,k.y)?(d=A.getRow(r).getBlock([r],[s-1]),f=C.getRow(s).getBlock([r],[s-1]),C.set([s,r],A.get([r,s]).neg().sub(d.dot(f)).div(M.sub(k)))):C.setRow(s,C.getRow(r))}for(s=0;s=s.length;)s[s.length]=0;0!==t[r]&&s[r]++}var o=s.length,a=Array(o+1);for(a[0]=0,n=0;n=l){if(i[u]=f[c],0===c)return;++u,a=h[--c],l=d[c]}else 0===r[o=s[n[a]]]?(r[o]=1,h[c]=a,f[++c]=o,a=t[o],d[c]=l=t[o+1]):++a},numeric.ccsLPSolve=function(e,t,n,r,i,s,o){var a,l,c,u,h,d,f,p,g,m=e[0],v=e[1],y=e[2],b=(m.length,t[0]),_=t[1],w=t[2];for(l=b[i],c=b[i+1],r.length=0,a=l;as&&(o=i,s=a);for(w(y[n])=c){if(i[h]=s[p[u]],0===u)return;++h,l=d[--u],c=f[u]}else 0===r[a=n[l]]?(r[a]=1,d[u]=l,p[++u]=a,l=t[a=s[a]],f[u]=c=t[a+1]):++l}},numeric.ccsLPSolve0=function(e,t,n,r,i,s,o,a){var l,c,u,h,d,f,p,g,m,v=e[0],y=e[1],b=e[2],_=(v.length,t[0]),w=t[1],x=t[2];for(c=_[i],u=_[i+1],r.length=0,l=c;ls&&(o=i,s=a);for(w(y[x[n]])n[r]&&(n[r]=t.length),t)t.hasOwnProperty(i)&&e(t[i],n,r+1);return n},numeric.sclone=function e(t,n,r){"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=numeric.sdim(t).length);var i,s=Array(t.length);if(n===r-1){for(i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);return s}for(i in t)t.hasOwnProperty(i)&&(s[i]=e(t[i],n+1,r));return s},numeric.sdiag=function(e){var t,n,r=e.length,i=Array(r);for(t=r-1;t>=1;t-=2)n=t-1,i[t]=[],i[t][t]=e[t],i[n]=[],i[n][n]=e[n];return 0===t&&(i[0]=[],i[0][0]=e[t]),i},numeric.sidentity=function(e){return numeric.sdiag(numeric.rep([e],1))},numeric.stranspose=function(e){var t,n,r,i=[];e.length;for(t in e)if(e.hasOwnProperty(t))for(n in r=e[t])r.hasOwnProperty(n)&&("object"!==typeof i[n]&&(i[n]=[]),i[n][t]=r[n]);return i},numeric.sLUP=function(e,t){throw new Error("The function numeric.sLUP had a bug in it and has been removed. Please use the new numeric.ccsLUP function instead.")},numeric.sdotMM=function(e,t){var n,r,i,s,o,a,l,c=e.length,u=(t.length,numeric.stranspose(t)),h=u.length,d=Array(c);for(i=c-1;i>=0;i--){for(l=[],n=e[i],o=h-1;o>=0;o--){for(s in a=0,r=u[o],n)n.hasOwnProperty(s)&&s in r&&(a+=n[s]*r[s]);a&&(l[o]=a)}d[i]=l}return d},numeric.sdotMV=function(e,t){var n,r,i,s,o=e.length,a=Array(o);for(r=o-1;r>=0;r--){for(i in s=0,n=e[r])n.hasOwnProperty(i)&&t[i]&&(s+=n[i]*t[i]);s&&(a[r]=s)}return a},numeric.sdotVM=function(e,t){var n,r,i,s,o=[];for(n in e)if(e.hasOwnProperty(n))for(r in i=t[n],s=e[n],i)i.hasOwnProperty(r)&&(o[r]||(o[r]=0),o[r]+=s*i[r]);return o},numeric.sdotVV=function(e,t){var n,r=0;for(n in e)e[n]&&t[n]&&(r+=e[n]*t[n]);return r},numeric.sdot=function(e,t){var n=numeric.sdim(e).length,r=numeric.sdim(t).length;switch(1e3*n+r){case 0:return e*t;case 1001:return numeric.sdotVV(e,t);case 2001:return numeric.sdotMV(e,t);case 1002:return numeric.sdotVM(e,t);case 2002:return numeric.sdotMM(e,t);default:throw new Error("numeric.sdot not implemented for tensors of order "+n+" and "+r)}},numeric.sscatter=function(e){var t,n,r,i,s=e[0].length,o=e.length,a=[];for(n=s-1;n>=0;--n)if(e[o-1][n]){for(i=a,r=0;r=0;--s)n[s]=[];for(s=i;s>=0;--s)n[s].push(r[s]);n[i+1].push(o)}}else e(o,n,r);return r.length>i&&r.pop(),n},numeric.cLU=function(e){var t,n,r,i,s,o,a=e[0],l=e[1],c=e[2],u=a.length,h=0;for(t=0;th&&(h=a[t]);h++;var d,f=Array(h),p=Array(h),g=numeric.rep([h],1/0),m=numeric.rep([h],-1/0);for(r=0;rm[t]&&(m[t]=n);for(t=0;tm[t+1]&&(m[t+1]=m[t]);for(t=h-1;t>=1;t--)g[t]=0;n--){for(;h[r]>n;)o[n]-=d[r]*o[h[r]],r--;o[n]/=d[r],r--}return o},numeric.cgrid=function(e,t){"number"===typeof e&&(e=[e,e]);var n,r,i,s=numeric.rep(e,-1);if("function"!==typeof t)if("L"===t)t=function(t,n){return t>=e[0]/2||ni&&(i=s[r]);for(i++,n=numeric.rep([i],0),r=0;r1;)i[r=o((t+n)/2)]<=e?t=r:n=r;return this._at(e,t)}s=e.length;var a,l=Array(s);for(a=s-1;-1!==a;--a)l[a]=this.at(e[a]);return l},numeric.Spline.prototype.diff=function(){var e,t,n,r=this.x,i=this.yl,s=this.yr,o=this.kl,a=this.kr,l=i.length,c=o,u=a,h=Array(l),d=Array(l),f=numeric.add,p=numeric.mul,g=numeric.div,m=numeric.sub;for(e=l-1;-1!==e;--e)t=r[e+1]-r[e],n=m(s[e+1],i[e]),h[e]=g(f(p(n,6),p(o[e],-4*t),p(a[e+1],-2*t)),t*t),d[e+1]=g(f(p(n,-6),p(o[e],2*t),p(a[e+1],4*t)),t*t);return new numeric.Spline(r,c,u,h,d)},numeric.Spline.prototype.roots=function(){function e(e){return e*e}var t=[],n=this.x,r=this.yl,i=this.yr,s=this.kl,o=this.kr;"number"===typeof r[0]&&(r=[r],i=[i],s=[s],o=[o]);var a,l,c,u,h,d,f,p,g,m,v,y,b,_,w,x,S,E,P,T,A,C,M,k=r.length,L=n.length-1,O=(t=Array(k),Math.sqrt);for(a=0;a!==k;++a){for(u=r[a],h=i[a],d=s[a],f=o[a],p=[],l=0;l!==L;l++){for(l>0&&h[l]*u[l]<0&&p.push(n[l]),x=n[l+1]-n[l],n[l],v=u[l],y=h[l+1],g=d[l]/x,b=(m=f[l+1]/x)+3*v+2*g-3*y,_=3*(m+g+2*(v-y)),(w=e(g-m+3*(v-y))+12*m*v)<=0?S=(E=b/_)>n[l]&&En[l]&&En[l]&&P0)A=C,E=P;else{for(var I=0;!((M=(E*C-P*A)/(E-P))<=A||M>=C);)if((T=this._at(M,l))*P>0)C=M,P=T,-1===I&&(E*=.5),I=-1;else{if(!(T*E>0))break;A=M,E=T,1===I&&(P*=.5),I=1}p.push(M),A=S[c+1],E=this._at(A,l)}else p.push(A),A=C,E=P;0===P&&p.push(C)}t[a]=p}return"number"===typeof this.yl[0]?t[0]:t},numeric.spline=function(e,t,n,r){var i,s=e.length,o=[],a=[],l=[],c=numeric.sub,u=numeric.mul,h=numeric.add;for(i=s-2;i>=0;i--)a[i]=e[i+1]-e[i],l[i]=c(t[i+1],t[i]);"string"!==typeof n&&"string"!==typeof r||(n=r="periodic");var d=[[],[],[]];switch(typeof n){case"undefined":o[0]=u(3/(a[0]*a[0]),l[0]),d[0].push(0,0),d[1].push(0,1),d[2].push(2/a[0],1/a[0]);break;case"string":o[0]=h(u(3/(a[s-2]*a[s-2]),l[s-2]),u(3/(a[0]*a[0]),l[0])),d[0].push(0,0,0),d[1].push(s-2,0,1),d[2].push(1/a[s-2],2/a[s-2]+2/a[0],1/a[0]);break;default:o[0]=n,d[0].push(0),d[1].push(0),d[2].push(1)}for(i=1;i20)throw new Error("Numerical gradient fails");if(p[i]=t[i]+b,s=e(p),p[i]=t[i]-b,o=e(p),p[i]=t[i],isNaN(s)||isNaN(o))b/=16;else{if(g[i]=(s-o)/(2*b),a=t[i]-b,l=t[i],c=t[i]+b,u=(s-r)/b,h=(r-o)/b,d=f(m(g[i]),m(r),m(s),m(o),m(a),m(l),m(c),1e-8),!(v(f(m(u-g[i]),m(h-g[i]),m(u-h))/d,b/d)>.001))break;b/=16}}return g},numeric.uncmin=function(e,t,n,r,i,s,o){var a=numeric.gradient;"undefined"===typeof o&&(o={}),"undefined"===typeof n&&(n=1e-8),"undefined"===typeof r&&(r=function(t){return a(e,t)}),"undefined"===typeof i&&(i=1e3);var l,c,u=(t=numeric.clone(t)).length,h=e(t);if(isNaN(h))throw new Error("uncmin: f(x0) is a NaN!");var d=Math.max,f=numeric.norm2;n=d(n,numeric.epsilon);var p,g,m,v,y,b,_,w,x,S,E=o.Hinv||numeric.identity(u),P=numeric.dot,T=(numeric.inv,numeric.sub),A=numeric.add,C=numeric.tensor,M=numeric.div,k=numeric.mul,L=numeric.all,O=numeric.isFinite,I=numeric.neg,R=0,F="";for(g=r(t);R=.1*x*c||isNaN(l));)x*=.5,++R;if(x*S1;)a[r=i(.5*(t+n))]<=e?t=r:n=r;return this._at(e,t)},numeric.dopri=function(e,t,n,r,i,s,o){"undefined"===typeof i&&(i=1e-6),"undefined"===typeof s&&(s=1e3);var a,l,c,u,h,d,f,p,g,m,v,y,b,_=[e],w=[n],x=[r(e,n)],S=[],E=[3/40,9/40],P=[44/45,-56/15,32/9],T=[19372/6561,-25360/2187,64448/6561,-212/729],A=[9017/3168,-355/33,46732/5247,49/176,-5103/18656],C=[35/384,0,500/1113,125/192,-2187/6784,11/84],M=[.10013431883002395,0,.3918321794184259,-.02982460176594817,.05893268337240795,-.04497888809104361,5618549.5/235043384],k=[.2,.3,.8,8/9,1,1],L=[-71/57600,0,71/16695,-71/1920,17253/339200,-22/525,1/40],O=0,I=(t-e)/10,R=0,F=numeric.add,z=numeric.mul,N=(Math.max,Math.min),j=Math.abs,D=numeric.norminf,B=Math.pow,U=numeric.any,V=numeric.lt,W=numeric.and,G=(numeric.sub,new numeric.Dopri(_,w,x,S,-1,""));for("function"===typeof o&&(v=o(e,n));et&&(I=t-e),a=r(e+k[0]*I,F(n,z(.2*I,x[O]))),l=r(e+k[1]*I,F(F(n,z(E[0]*I,x[O])),z(E[1]*I,a))),c=r(e+k[2]*I,F(F(F(n,z(P[0]*I,x[O])),z(P[1]*I,a)),z(P[2]*I,l))),u=r(e+k[3]*I,F(F(F(F(n,z(T[0]*I,x[O])),z(T[1]*I,a)),z(T[2]*I,l)),z(T[3]*I,c))),h=r(e+k[4]*I,F(F(F(F(F(n,z(A[0]*I,x[O])),z(A[1]*I,a)),z(A[2]*I,l)),z(A[3]*I,c)),z(A[4]*I,u))),d=r(e+I,g=F(F(F(F(F(n,z(x[O],I*C[0])),z(l,I*C[2])),z(c,I*C[3])),z(u,I*C[4])),z(h,I*C[5]))),(m="number"===typeof(f=F(F(F(F(F(z(x[O],I*L[0]),z(l,I*L[2])),z(c,I*L[3])),z(u,I*L[4])),z(h,I*L[5])),z(d,I*L[6])))?j(f):D(f))>i){if(e+(I=.2*I*B(i/m,.25))===e){G.msg="Step size became too small";break}}else{if(S[O]=F(F(F(F(F(F(n,z(x[O],I*M[0])),z(l,I*M[2])),z(c,I*M[3])),z(u,I*M[4])),z(h,I*M[5])),z(d,I*M[6])),_[++O]=e+I,w[O]=g,x[O]=d,"function"===typeof o){var H,q,X=e,Y=e+.5*I;if(y=o(Y,S[O-1]),U(b=W(V(v,0),V(0,y)))||(X=Y,v=y,y=o(Y=e+I,g),b=W(V(v,0),V(0,y))),U(b)){for(var Z,K,Q=0,$=1,J=1;;){if("number"===typeof v)q=(J*y*X-$*v*Y)/(J*y-$*v);else for(q=Y,p=v.length-1;-1!==p;--p)v[p]<0&&y[p]>0&&(q=N(q,(J*y[p]*X-$*v[p]*Y)/(J*y[p]-$*v[p])));if(q<=X||q>=Y)break;K=o(q,H=G._at(q,O-1)),U(Z=W(V(v,0),V(0,K)))?(Y=q,y=K,b=Z,J=1,-1===Q?$*=.5:$=1,Q=-1):(X=q,v=K,$=1,1===Q?J*=.5:J=1,Q=1)}return g=G._at(.5*(e+q),O-1),G.f[O]=r(q,H),G.x[O]=q,G.y[O]=H,G.ymid[O-1]=g,G.events=b,G.iterations=R,G}}e+=I,n=g,v=y,I=N(.8*I*B(i/m,.25),4*I)}return G.iterations=R,G},numeric.LU=function(e,t){t=t||!1;var n,r,i,s,o,a,l,c,u,h=Math.abs,d=e.length,f=d-1,p=new Array(d);for(t||(e=numeric.clone(e)),i=0;i=0;--n){for(s=a[n],r=n+1;rF)&&(_=F),u=m(e,d(_,A)),l=p(R,C),O=v-1;-1!==O;--O)l[O][O]+=1;I=M(l,g(u,_),!0);var z=g(k,p(t,I)),N=1;for(O=y-1;-1!==O;--O)z[O]<0&&(N=E(N,-.999*z[O]));if(a=f(s,d(I,N)),!P(T(k=f(n,p(t,a)),0)))return{solution:s,message:"",iterations:c};if(s=a,_=0);if(b)return{solution:a,message:"Unbounded",iterations:c}}return{solution:s,message:"maximum iteration count exceeded",iterations:c}},numeric._solveLP=function(e,t,n,r,i){var s=e.length,o=n.length,a=(numeric.sum,numeric.log,numeric.mul,numeric.sub),l=numeric.dot,c=(numeric.div,numeric.add,numeric.rep([s],0).concat([1])),u=numeric.rep([o,1],-1),h=numeric.blockMatrix([[t,u]]),d=n,f=numeric.rep([s],0).concat(Math.max(0,numeric.sup(numeric.neg(n)))+1),p=numeric.__solveLP(c,h,d,r,i,f,!1),g=numeric.clone(p.solution);if(g.length=s,numeric.inf(a(n,l(t,g)))<0)return{solution:NaN,message:"Infeasible",iterations:p.iterations};var m=numeric.__solveLP(e,t,n,r,i-p.iterations,g,!0);return m.iterations+=p.iterations,m},numeric.solveLP=function(e,t,n,r,i,s,o){if("undefined"===typeof o&&(o=1e3),"undefined"===typeof s&&(s=numeric.epsilon),"undefined"===typeof r)return numeric._solveLP(e,t,n,s,o);var a,l=r.length,c=r[0].length,u=t.length,h=numeric.echelonize(r),d=numeric.rep([c],0),f=h.P,p=[];for(a=f.length-1;-1!==a;--a)d[f[a]]=1;for(a=c-1;-1!==a;--a)0===d[a]&&p.push(a);var g=numeric.getRange,m=numeric.linspace(0,l-1),v=numeric.linspace(0,u-1),y=g(r,m,p),b=g(t,v,f),_=g(t,v,p),w=numeric.dot,x=numeric.sub,S=w(b,h.I),E=x(_,w(S,y)),P=x(n,w(S,i)),T=Array(f.length),A=Array(p.length);for(a=f.length-1;-1!==a;--a)T[a]=e[f[a]];for(a=p.length-1;-1!==a;--a)A[a]=e[p[a]];var C=x(A,w(T,w(h.I,y))),M=numeric._solveLP(C,E,P,s,o),k=M.solution;if(k!==k)return M;var L=w(h.I,x(i,w(y,k))),O=Array(e.length);for(a=f.length-1;-1!==a;--a)O[f[a]]=L[a];for(a=p.length-1;-1!==a;--a)O[p[a]]=k[a];return{solution:O,message:M.message,iterations:M.iterations}},numeric.MPStoLP=function(e){e instanceof String&&e.split("\n");var t,n,r,i,s=0,o=["Initial state","NAME","ROWS","COLUMNS","RHS","BOUNDS","ENDATA"],a=e.length,l=0,c={},u=[],h=0,d={},f=0,p=[],g=[],m=[];function v(n){throw new Error("MPStoLP: "+n+"\nLine "+t+": "+e[t]+"\nCurrent state: "+o[s]+"\n")}for(t=0;t=s;)e/=2,t/=2,r>>>=1;return(e+r)/t},r},o=t.pow(n,6),i=t.pow(2,i),s=2*i,c(t.random(),e)}([],numeric.seedrandom,256,0,52),function(e){function t(e){if("object"!==typeof e)return e;var n,r=[],i=e.length;for(n=0;nu)p[y]=L;else if(p[y]=-Math.abs(L),L>0){for(v=1;v<=r;v+=1)o[v][m]=-o[v][m];a[m]=-a[m]}}for(m=1;m<=d;m+=1)p[P+h[m]]=0;for(A=0,k=0,m=1;m<=c;m+=1)p[P+m]=1;m-=1){for(L=p[m],b=(y=E+m*(m+3)/2)-m,v=m+1;v<=d;v+=1)L-=p[y]*p[S+v],y+=v;if(L/=p[b],p[S+m]=L,h[m]u)p[P+A]=L;else if(p[P+A]=-Math.abs(L),L>0){for(v=1;v<=r;v+=1)o[v][A]=-o[v][A];a[A]=-a[A]}return 700}for(h[d+=1]=A,y=E+(d-1)*d/2+1,m=1;m<=d-1;m+=1)p[y]=p[m],y+=1;if(d===r)p[y]=p[r];else{for(m=r;m>=d+1&&0!==p[m]&&(R=Math.max(Math.abs(p[m-1]),Math.abs(p[m])),F=Math.min(Math.abs(p[m-1]),Math.abs(p[m])),k=p[m-1]>=0?Math.abs(R*Math.sqrt(1+F*F/(R*R))):-Math.abs(R*Math.sqrt(1+F*F/(R*R))),R=p[m-1]/k,F=p[m]/k,1!==R);m-=1)if(0===R)for(p[m-1]=F*k,v=1;v<=r;v+=1)k=e[v][m-1],e[v][m-1]=e[v][m],e[v][m]=k;else for(p[m-1]=k,z=F/(1+R),v=1;v<=r;v+=1)k=R*e[v][m-1]+F*e[v][m],e[v][m]=z*(e[v][m-1]+k)-e[v][m],e[v][m-1]=k;p[y]=p[d]}return 0}function H(){if(0===p[b=(y=E+w*(w+1)/2+1)+w])return 798;if(R=Math.max(Math.abs(p[b-1]),Math.abs(p[b])),F=Math.min(Math.abs(p[b-1]),Math.abs(p[b])),k=p[b-1]>=0?Math.abs(R*Math.sqrt(1+F*F/(R*R))):-Math.abs(R*Math.sqrt(1+F*F/(R*R))),R=p[b-1]/k,F=p[b]/k,1===R)return 798;if(0===R){for(m=w+1;m<=d;m+=1)k=p[b-1],p[b-1]=p[b],p[b]=k,b+=m;for(m=1;m<=r;m+=1)k=e[m][w],e[m][w]=e[m][w+1],e[m][w+1]=k}else{for(z=F/(1+R),m=w+1;m<=d;m+=1)k=R*p[b-1]+F*p[b],p[b]=z*(p[b-1]+k)-p[b],p[b-1]=k,b+=m;for(m=1;m<=r;m+=1)k=R*e[m][w]+F*e[m][w+1],e[m][w+1]=z*(e[m][w]+k)-e[m][w+1],e[m][w]=k}return 0}function q(){for(b=y-w,m=1;m<=w;m+=1)p[b]=p[y],y+=1,b+=1;return p[T+w]=p[T+w+1],h[w]=h[w+1],(w+=1)(t=Math.abs(t))?e*Math.sqrt(1+t*t/e/e):0==t?e:t*Math.sqrt(1+e*e/t/t)}var m=0,v=0,y=0,b=0,_=0,w=0,x=0;for(s=0;s=0&&(v=-v),y=m*v-x,c[s][s]=m-v,o=l;o=0&&(v=-v),y=m*v-x,c[s][s+1]=m-v,o=l;ob&&(b=_)}for(s=h-1;-1!=s;s+=-1){if(0!=v){for(y=v*c[s][s+1],o=l;o=49)throw"Error: no convergence.";for(b=f[l],v=g(m=(((_=f[a-1])-w)*(_+w)+((v=d[a-1])-(y=d[a]))*(v+y))/(2*y*_),1),m=m<0?((b-w)*(b+w)+y*(_/(m-v)-y))/b:((b-w)*(b+w)+y*(_/(m+v)-y))/b,i=1,x=1,s=l+1;s=0;o--)if(f[o]{"use strict";const r=n(491),i=n(707),s=n(289),o=n(38),a=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function h(e){return Array.isArray(e)?e.sort():"object"===typeof e?h(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),s="string"===typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=s?u(n,e):n;const o=i||s?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const s=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],s):r[t]=s};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,o]=s(t.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),n(u(e,t),o,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=p(e[n],t);else r[i]=p(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=h(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const o of Object.keys(e))n(o)||(i[o]=e[o]);const s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=s(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[a]:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),s=t.parse(i,{sort:!1}),o=Object.assign(s,e.query);let l=t.stringify(o,n);l&&(l="?".concat(l));let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[a]?c(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(r).concat(l).concat(u)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[a]:!1},r);const{url:i,query:s,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:o(s,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},730:(e,t,n)=>{"use strict";var r=n(43),i=n(853);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n