qd-changjing/public/leaflet/libs/polyfill/polyfill-ie8.min.js

2 lines
19 KiB
JavaScript
Raw Normal View History

2022-07-05 16:56:29 +08:00
(function(t){!function(t){var e=Object.prototype.hasOwnProperty("__defineGetter__"),n="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(r,o,i){if(t&&(r===window||r===document||r===Element.prototype||r instanceof Element))return t(r,o,i);if(null===r||!(r instanceof Object||"object"==typeof r))throw new TypeError("Object.defineProperty called on non-object");if(!(i instanceof Object))throw new TypeError("Property description must be an object");var a=String(o),c="value"in i||"writable"in i,u="get"in i&&typeof i.get,s="set"in i&&typeof i.set;if(u){if("function"!==u)throw new TypeError("Getter must be a function");if(!e)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(c)throw new TypeError(n);r.__defineGetter__(a,i.get)}else r[a]=i.value;if(s){if("function"!==s)throw new TypeError("Setter must be a function");if(!e)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(c)throw new TypeError(n);r.__defineSetter__(a,i.set)}return"value"in i&&(r[a]=i.value),r}}(Object.defineProperty),function(t){Object.defineProperty(Array,"isArray",{configurable:!0,value:function(e){return"[object Array]"===t.call(e)},writable:!0})}(Object.prototype.toString),Array.prototype.every=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Number(o.length)||0,a=-1;++a<i;)if(a in o&&!e.call(r,o[a],a,n))return!1;return!0},Array.prototype.filter=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n,r=Object(this),o=arguments[1],i=r instanceof String?r.split(""):r,a=Math.max(Math.min(i.length,9007199254740991),0)||0,c=-1,u=[];++c<a;)n=i[c],c in i&&e.call(o,n,c,r)&&u.push(n);return u},Array.prototype.forEach=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1;++a<i;)a in o&&e.call(r,o[a],a,n)},Array.prototype.indexOf=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");var n=this instanceof String?this.split(""):this,r=Math.max(Math.min(n.length,9007199254740991),0)||0,o=Number(arguments[1])||0;for(o=(o<0?Math.max(r+o,0):o)-1;++o<r;)if(o in n&&n[o]===e)return o;return-1},Array.prototype.lastIndexOf=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");var n=this instanceof String?this.split(""):this,r=Math.max(Math.min(n.length,9007199254740991),0)||0,o=Number(arguments[1])||0;o=1 in arguments?(o<0?Math.max(r+o,0):o)+1:r;for(;--o>=0;)if(o in n&&n[o]===e)return o;return-1},Array.prototype.map=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1,c=[];++a<i;)a in o&&(c[a]=e.call(r,o[a],a,n));return c},Array.prototype.reduce=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");var n,r=Object(this),o=r instanceof String?r.split(""):r,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1;if(1 in arguments)n=arguments[1];else{for(;++a<i&&!(a in o););if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=o[a]}for(;++a<i;)a in o&&(n=e(n,o[a],a,r));return n},Array.prototype.reduceRight=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");var n,r=Object(this),o=r instanceof String?r.split(""):r,i=Math.max(Math.min(o