additional_plugins/serendipity_event_osm/ressources/382.ol.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2022-05-16 21:15:14 +02:00
"use strict";(self.webpackChunkol=self.webpackChunkol||[]).push([[382],{165:function(r,e,n){function t(r,e){var n=r.length-e,t=0;do{for(var o=e;o>0;o--)r[t+e]+=r[t],t++;n-=e}while(n>0)}function o(r,e,n){for(var t=0,o=r.length,a=o/n;o>e;){for(var i=e;i>0;--i)r[t+e]+=r[t],++t;o-=e}for(var f=r.slice(),c=0;c<a;++c)for(var u=0;u<n;++u)r[n*c+u]=f[(n-u-1)*a+c]}function a(r,e,n,a,i,f){if(!e||1===e)return r;for(var c=0;c<i.length;++c){if(i[c]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(i[c]!==i[0])throw new Error("When decoding with predictor, all samples must have the same size.")}for(var u=i[0]/8,s=2===f?1:i.length,v=0;v<a&&!(v*s*n*u>=r.byteLength);++v){var l=void 0;if(2===e){switch(i[0]){case 8:l=new Uint8Array(r,v*s*n*u,s*n*u);break;case 16:l=new Uint16Array(r,v*s*n*u,s*n*u/2);break;case 32:l=new Uint32Array(r,v*s*n*u,s*n*u/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(i[0]," bits per sample."))}t(l,s)}else 3===e&&o(l=new Uint8Array(r,v*s*n*u,s*n*u),s,u)}return r}function i(r,e,n,t,o,a,i){try{var f=r[a](i),c=f.value}catch(r){return void n(r)}f.done?e(c):Promise.resolve(c).then(t,o)}function f(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}n.d(e,{Z:function(){return c}});var c=function(){function r(){!function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r)}var e,n,t,o,c;return e=r,(n=[{key:"decode",value:(o=regeneratorRuntime.mark((function r(e,n){var t,o,i,f,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.decodeBlock(n);case 2:if(t=r.sent,1===(o=e.Predictor||1)){r.next=9;break}return i=!e.StripOffsets,f=i?e.TileWidth:e.ImageWidth,c=i?e.TileLength:e.RowsPerStrip||e.ImageLength,r.abrupt("return",a(t,o,f,c,e.BitsPerSample,e.PlanarConfiguration));case 9:return r.abrupt("return",t);case 10:case"end":return r.stop()}}),r,this)})),c=function(){var r=this,e=arguments;return new Promise((function(n,t){var a=o.apply(r,e);function f(r){i(a,n,t,f,c,"next",r)}function c(r){i(a,n,t,f,c,"throw",r)}f(void 0)}))},function(r,e){return c.apply(this,arguments)})}])&&f(e.prototype,n),t&&f(e,t),Object.defineProperty(e,"prototype",{writable:!1}),r}()},382:function(r,e,n){n.r(e),n.d(e,{default:function(){return g}});var t=n(165);function o(r,e){return(o=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function a(r){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function(){var n,t=f(r);if(e){var o=f(this).constructor;n=Reflect.construct(t,arguments,o)}else n=t.apply(this,arguments);return i(this,n)}}function i(r,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}function f(r){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function c(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function u(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function s(r,e,n){return e&&u(r.prototype,e),n&&u(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function v(r){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var l=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,2
//# sourceMappingURL=382.ol.js.map