2 lines
305 KiB
JavaScript
2 lines
305 KiB
JavaScript
|
var ol=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=83)}([function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return h}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return l}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"i",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return _}),i.d(e,"l",function(){return g}),i.d(e,"m",function(){return v}),i.d(e,"n",function(){return y}),i.d(e,"o",function(){return m}),i.d(e,"p",function(){return b}),i.d(e,"q",function(){return O}),i.d(e,"r",function(){return E}),i.d(e,"s",function(){return x}),i.d(e,"t",function(){return R}),i.d(e,"u",function(){return S}),i.d(e,"v",function(){return I}),i.d(e,"w",function(){return j}),i.d(e,"x",function(){return w}),i.d(e,"y",function(){return L}),i.d(e,"z",function(){return M}),i.d(e,"A",function(){return P}),i.d(e,"B",function(){return F}),i.d(e,"C",function(){return A}),i.d(e,"D",function(){return D}),i.d(e,"E",function(){return N}),i.d(e,"F",function(){return k}),i.d(e,"H",function(){return G}),i.d(e,"I",function(){return Y}),i.d(e,"J",function(){return X}),i.d(e,"G",function(){return z}),i.d(e,"a",function(){return W});var n=i(9),r=i(54),o=i(27);function s(t){for(var e=f(),i=0,n=t.length;i<n;++i)E(e,t[i]);return e}function a(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function h(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function c(t,e,i){var n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r}function l(t,e){return p(t,e[0],e[1])}function u(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function d(t,e){var i=t[0],n=t[1],r=t[2],s=t[3],a=e[0],h=e[1],c=o.a.UNKNOWN;return a<i?c|=o.a.LEFT:a>r&&(c|=o.a.RIGHT),h<n?c|=o.a.BELOW:h>s&&(c|=o.a.ABOVE),c===o.a.UNKNOWN&&(c=o.a.INTERSECTING),c}function f(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var i=t[0],n=t[1];return _(i,n,i,n,e)}function y(t,e){return T(g(e),t)}function m(t,e,i,n,r){return x(g(r),t,e,i,n)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function O(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function T(t,e){for(var i=0,n=e.length;i<n;++i)E(t,e[i]);return t}function x(t,e,i,n,r){for(;i<n;i+=r)C(t,e[i],e[i+1]);return t}function C(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function R(t,e,i){var n;return(n=e.call(i,I(t)))?n:(n=e.call(i,j(t)))?n:(n=e.call(i,D(t)))?n:(n=e.call(i,A(t)))||!1}function S(t){var e=0;return G(t)||(e=N(t)*P(t)),e}function I(t){return[t[0],t[1]]}function j(t){return[t[2],t[1]]}function w(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function L(t,e){var i;return e===r.a.BOTTOM_LEFT?i=I(t):e===r.a.BOTTOM_RIGHT?i=j(t):e===r.a.TOP_LEFT?i=A(t):e===r.a.TOP_RIGHT?i=D(t):Obje
|
||
|
//# sourceMappingURL=ol.js.map
|