You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
konova/templates/map/client/libs/jsts/1.6.1/jsts.min.js

9 lines
467 KiB
JavaScript

/**
* JSTS. See https://github.com/bjornharrtell/jsts
* https://github.com/bjornharrtell/jsts/blob/master/LICENSE_EDLv1.txt
* https://github.com/bjornharrtell/jsts/blob/master/LICENSE_EPLv1.txt
* https://github.com/bjornharrtell/jsts/blob/master/LICENSE_LICENSE_ES6_COLLECTIONS.txt
* @license
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.jsts={})}(this,function(t){"use strict";function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function i(){}function c(){}function h(t,e){this.low=0|e,this.high=0|t}function S(){}var f,g,d,_,r,s,o;function n(){}function a(){}function u(){}function l(){}function v(t){this.name="RuntimeException",this.message=t,this.stack=(new Error).stack,Error.call(this,t)}function p(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function m(){if(0===arguments.length)v.call(this);else if(1===arguments.length){var t=arguments[0];v.call(this,t)}}function y(){}function x(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)x.call(this,0,0);else if(1===arguments.length){var t=arguments[0];x.call(this,t.x,t.y,t.z)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];x.call(this,e,n,x.NULL_ORDINATE)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],s=arguments[2];this.x=i,this.y=r,this.z=s}}function E(){if(this._dimensionsToTest=2,0===arguments.length)E.call(this,2);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new c("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}}function L(t,e){return t.interfaces_&&-1<t.interfaces_().indexOf(e)}function I(){}function N(){}function C(t){this.message=t||""}function w(){}function R(t){this.message=t||""}function T(t){this.message=t||""}function P(){this.array_=[],arguments[0]instanceof N&&this.addAll(arguments[0])}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);i<r;)e[i]=t,++i;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)},Math.log2=Math.log2||function(t){return Math.log(t)*Math.LOG2E},e(i.prototype,{interfaces_:function(){return[]},getClass:function(){return i}}),i.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n},h.toBinaryString=function(t){for(var e="",n=2147483648;0<n;n>>>=1)e+=(t.high&n)===n?"1":"0";for(n=2147483648;0<n;n>>>=1)e+=(t.low&n)===n?"1":"0";return e},S.isNaN=function(t){return Number.isNaN(t)},S.isInfinite=function(t){return!Number.isFinite(t)},S.MAX_VALUE=Number.MAX_VALUE,"function"==typeof Float64Array&&"function"==typeof Int32Array?(r=2146435072,s=new Float64Array(1),o=new Int32Array(s.buffer),S.doubleToLongBits=function(t){s[0]=t;var e=0|o[0],n=0|o[1];return(n&r)===r&&0!=(1048575&n)&&0!==e&&(e=0,n=2146959360),new h(n,e)},S.longBitsToDouble=function(t){return o[0]=t.low,o[1]=t.high,s[0]}):(f=Math.log2,g=Math.floor,d=Math.pow,_=function(){for(var t=53;0<t;t--){var e=d(2,t)-1;if(g(f(e))+1===t)return e}return 0}(),S.doubleToLongBits=function(t){var e,n,i,r,s,o,a,u,l;if(t<0||1/t===Number.NEGATIVE_INFINITY?(o=1<<31,t=-t):o=0,0===t)return new h(u=o,l=0);if(t===1/0)return new h(u=2146435072|o,l=0);if(t!=t)return new h(u=2146959360,l=0);if(l=r=0,1<(e=g(t)))if(e<=_)(r=g(f(e)))<=20?(l=0,u=e<<20-r&1048575):(l=e%(n=d(2,i=r-20))<<32-i,u=e/n&1048575);else for(i=e,l=0;0!==(i=g(n=i/2));)r++,l>>>=1,l|=(1&u)<<31,u>>>=1,n!==i&&(u|=524288);if(a=r+1023,s=0===e,e=t-e,r<52&&0!==e)for(i=0;;){if(1<=(n=2*e)?(e=n-1,s?(a--,s=!1):(i<<=1,i|=1,r++)):(e=n,s?0==--a&&(r++,s=!1):(i<<=1,r++)),20===r)u|=i,i=0;else if(52===r){l|=i;break}if(1===n){r<20?u|=i<<20-r:r<52&&(l|=i<<52-r);break}}return u|=a<<20,new h(u|=o,l)},S.longB
//# sourceMappingURL=jsts.min.js.map