Agriculture-front-end/public/Cesium/Workers/Transforms-cb0006b0.js

128 lines
42 KiB
JavaScript
Raw Normal View History

2023-04-16 22:33:44 +08:00
define(["exports","./when-b60132fc","./Cartesian2-47311507","./Cartographic-3309dd0d","./Cartesian4-3ca25aab","./Check-7b2a090c","./buildModuleUrl-3addfe33","./RuntimeError-4a5c8994","./Math-119be1a3","./BoundingSphere-561b54d0","./FeatureDetection-c3b71206"],(function(e,a,t,n,r,i,s,o,u,l,d){"use strict";function c(e,t,n,r){this.x=a.defaultValue(e,0),this.y=a.defaultValue(t,0),this.z=a.defaultValue(n,0),this.w=a.defaultValue(r,0)}var f=new n.Cartesian3;c.fromAxisAngle=function(e,t,r){var i=t/2,s=Math.sin(i),o=(f=n.Cartesian3.normalize(e,f)).x*s,u=f.y*s,l=f.z*s,d=Math.cos(i);return a.defined(r)?(r.x=o,r.y=u,r.z=l,r.w=d,r):new c(o,u,l,d)};var h=[1,2,0],m=new Array(3);c.fromRotationMatrix=function(e,t){var n,r,i,s,o,u=e[l.Matrix3.COLUMN0ROW0],d=e[l.Matrix3.COLUMN1ROW1],f=e[l.Matrix3.COLUMN2ROW2],p=u+d+f;if(p>0)o=.5*(n=Math.sqrt(p+1)),n=.5/n,r=(e[l.Matrix3.COLUMN1ROW2]-e[l.Matrix3.COLUMN2ROW1])*n,i=(e[l.Matrix3.COLUMN2ROW0]-e[l.Matrix3.COLUMN0ROW2])*n,s=(e[l.Matrix3.COLUMN0ROW1]-e[l.Matrix3.COLUMN1ROW0])*n;else{var y=0;d>u&&(y=1),f>u&&f>d&&(y=2);var w=h[y],C=h[w];n=Math.sqrt(e[l.Matrix3.getElementIndex(y,y)]-e[l.Matrix3.getElementIndex(w,w)]-e[l.Matrix3.getElementIndex(C,C)]+1);var x=m;x[y]=.5*n,n=.5/n,o=(e[l.Matrix3.getElementIndex(C,w)]-e[l.Matrix3.getElementIndex(w,C)])*n,x[w]=(e[l.Matrix3.getElementIndex(w,y)]+e[l.Matrix3.getElementIndex(y,w)])*n,x[C]=(e[l.Matrix3.getElementIndex(C,y)]+e[l.Matrix3.getElementIndex(y,C)])*n,r=-x[0],i=-x[1],s=-x[2]}return a.defined(t)?(t.x=r,t.y=i,t.z=s,t.w=o,t):new c(r,i,s,o)};var p=new c,y=new c,w=new c,C=new c;c.fromHeadingPitchRoll=function(e,a){return C=c.fromAxisAngle(n.Cartesian3.UNIT_X,e.roll,p),w=c.fromAxisAngle(n.Cartesian3.UNIT_Y,-e.pitch,a),a=c.multiply(w,C,w),y=c.fromAxisAngle(n.Cartesian3.UNIT_Z,-e.heading,p),c.multiply(y,a,a)};var x=new n.Cartesian3,_=new n.Cartesian3,M=new c,E=new c,O=new c;c.packedLength=4,c.pack=function(e,t,n){return n=a.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},c.unpack=function(e,t,n){return t=a.defaultValue(t,0),a.defined(n)||(n=new c),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n},c.packedInterpolationLength=3,c.convertPackedArrayForInterpolation=function(e,a,t,n){c.unpack(e,4*t,O),c.conjugate(O,O);for(var r=0,i=t-a+1;r<i;r++){var s=3*r;c.unpack(e,4*(a+r),M),c.multiply(M,O,M),M.w<0&&c.negate(M,M),c.computeAxis(M,x);var o=c.computeAngle(M);n[s]=x.x*o,n[s+1]=x.y*o,n[s+2]=x.z*o}},c.unpackInterpolationResult=function(e,t,r,i,s){a.defined(s)||(s=new c),n.Cartesian3.fromArray(e,0,_);var o=n.Cartesian3.magnitude(_);return c.unpack(t,4*i,E),0===o?c.clone(c.IDENTITY,M):c.fromAxisAngle(_,o,M),c.multiply(M,E,s)},c.clone=function(e,t){if(a.defined(e))return a.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new c(e.x,e.y,e.z,e.w)},c.conjugate=function(e,a){return a.x=-e.x,a.y=-e.y,a.z=-e.z,a.w=e.w,a},c.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},c.magnitude=function(e){return Math.sqrt(c.magnitudeSquared(e))},c.normalize=function(e,a){var t=1/c.magnitude(e),n=e.x*t,r=e.y*t,i=e.z*t,s=e.w*t;return a.x=n,a.y=r,a.z=i,a.w=s,a},c.inverse=function(e,a){var t=c.magnitudeSquared(e);return a=c.conjugate(e,a),c.multiplyByScalar(a,1/t,a)},c.add=function(e,a,t){return t.x=e.x+a.x,t.y=e.y+a.y,t.z=e.z+a.z,t.w=e.w+a.w,t},c.subtract=function(e,a,t){return t.x=e.x-a.x,t.y=e.y-a.y,t.z=e.z-a.z,t.w=e.w-a.w,t},c.negate=function(e,a){return a.x=-e.x,a.y=-e.y,a.z=-e.z,a.w=-e.w,a},c.dot=function(e,a){return e.x*a.x+e.y*a.y+e.z*a.z+e.w*a.w},c.multiply=function(e,a,t){var n=e.x,r=e.y,i=e.z,s=e.w,o=a.x,u=a.y,l=a.z,d=a.w,c=s*o+n*d+r*l-i*u,f=s*u-n*l+r*d+i*o,h=s*l+n*u-r*o+i*d,m=s*d-n*o-r*u-i*l;return t.x=c,t.y=f,t.z=h,t.w=m,t},c.multiplyByVec=function(e,a,t){var r=new n.Cartesian3,i=new n.Cartesian3,s=new n.Cartesian3(e.x,e.y,e.z);r=n.Cartesian3.cross(s,a,r),i=n.Cartesian3.cross(s,r,i);var o=new n.Cartesian3;o=n.Cartesian3.multiplyByScalar(r,2*e.w,o);var u=new n.Cartesian3;return u=n.Cartesian3.multiplyByScalar(r,2,u),t=n.Cartesian3.add(a,o,t),t=n.Cartesian3.add(t,u,t)},c.multiplyByScalar=function(e,a,t){return t.x=e.x*a,t.y=e.y*a,t.z=e.z*a,t.w=e.w*a,
/**
@license
sprintf.js from the php.js project - https://github.com/kvz/phpjs
Directly from https://github.com/kvz/phpjs/blob/master/functions/strings/sprintf.js
php.js is copyright 2012 Kevin van Zonneveld.
Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld
(http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White
(http://getsprink.com), Waldo Malqui Silva, Paulo Freitas, Jack, Jonas
Raoni Soares Silva (http://www.jsfromhell.com), Philip Peterson, Legaev
Andrey, Ates Goral (http://magnetiq.com), Alex, Ratheous, Martijn Wieringa,
Rafa? Kukawski (http://blog.kukawski.pl), lmeyrick
(https://sourceforge.net/projects/bcmath-js/), Nate, Philippe Baumann,
Enrique Gonzalez, Webtoolkit.info (http://www.webtoolkit.info/), Carlos R.
L. Rodrigues (http://www.jsfromhell.com), Ash Searle
(http://hexmen.com/blog/), Jani Hartikainen, travc, Ole Vrijenhoek,
Erkekjetter, Michael Grier, Rafa? Kukawski (http://kukawski.pl), Johnny
Mast (http://www.phpvrouwen.nl), T.Wild, d3x,
http://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript,
Rafa? Kukawski (http://blog.kukawski.pl/), stag019, pilus, WebDevHobo
(http://webdevhobo.blogspot.com/), marrtins, GeekFG
(http://geekfg.blogspot.com), Andrea Giammarchi
(http://webreflection.blogspot.com), Arpad Ray (mailto:arpad@php.net),
gorthaur, Paul Smith, Tim de Koning (http://www.kingsquare.nl), Joris, Oleg
Eremeev, Steve Hilder, majak, gettimeofday, KELAN, Josh Fraser
(http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/),
Marc Palau, Martin
(http://www.erlenwiese.de/), Breaking Par Consulting Inc
(http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256CFB006C45F7),
Chris, Mirek Slugen, saulius, Alfonso Jimenez
(http://www.alfonsojimenez.com), Diplom@t (http://difane.com/), felix,
Mailfaker (http://www.weedem.fr/), Tyler Akins (http://rumkin.com), Caio
Ariede (http://caioariede.com), Robin, Kankrelune
(http://www.webfaktory.info/), Karol Kowalski, Imgen Tata
(http://www.myipdf.com/), mdsjack (http://www.mdsjack.bo.it), Dreamer,
Felix Geisendoerfer (http://www.debuggable.com/felix), Lars Fischer, AJ,
David, Aman Gupta, Michael White, Public Domain
(http://www.json.org/json2.js), Steven Levithan
(http://blog.stevenlevithan.com), Sakimori, Pellentesque Malesuada,
Thunder.m, Dj (http://phpjs.org/functions/htmlentities:425#comment_134018),
Steve Clay, David James, Francois, class_exists, nobbler, T. Wild, Itsacon
(http://www.itsacon.net/), date, Ole Vrijenhoek (http://www.nervous.nl/),
Fox, Raphael (Ao RUDLER), Marco, noname, Mateusz "loonquawl" Zalega, Frank
Forte, Arno, ger, mktime, john (http://www.jd-tech.net), Nick Kolosov
(http://sammy.ru), marc andreu, Scott Cariss, Douglas Crockford
(http://javascript.crockford.com), madipta, Slawomir Kaniecki,
ReverseSyntax, Nathan, Alex Wilson, kenneth, Bayron Guevara, Adam Wallner
(http://web2.bitbaro.hu/), paulo kuong, jmweb, Lincoln Ramsay, djmix,
Pyerre, Jon Hohle, Thiago Mata (http://thiagomata.blog.com), lmeyrick
(https://sourceforge.net/projects/bcmath-js/this.), Linuxworld, duncan,
Gilbert, Sanjoy Roy, Shingo, sankai, Oskar Larsson H?gfeldt
(http://oskar-lh.name/), Denny Wardhana, 0m3r, Everlasto, Subhasis Deb,
josh, jd, Pier Paolo Ramon (http://www.mastersoup.com/), P, merabi, Soren
Hansen, Eugene Bulkin (http://doubleaw.com/), Der Simon
(http://innerdom.sourceforge.net/), echo is bad, Ozh, XoraX
(http://www.xorax.info), EdorFaus, JB, J A R, Marc Jansen, Francesco, LH,
Stoyan Kyosev (http://www.svest.org/), nord_ua, omid
(http://phpjs.org/functions/380:380#comment_137122), Brad Touesnard, MeEtc
(http://yass.meetcweb.com), Peter-Paul Koch
(http://www.quirksmode.org/js/beat.html), Olivier Louvignes
(http://mg-crea.com/), T0bsn, Tim Wiel, Bryan Elliott, Jalal Berrami,
Martin, JT, David Randall, Thomas Beaucourt (http://www.webapp.fr), taith,
vlado houba, Pierre-Luc Paour, Kristof Coomans (SCK-CEN Belgian Nucleair
Research Centre), Martin Pool, Kirk Strobeck, Rick Waldron, Brant Messenger
(http://www.brantmessenger.com/), Devan Penner-Woelk, Saulo Vallory, Wagner
B. Soares, Artur Tchernychev, Valentina De Rosa, Jason Wong
(http://carrot.org/), Christoph, Daniel Esteban, strftime, Mick@el, rezna,
Simon Willison (http://simonwillison.net), Anton Ongson, Gabriel Paderni,
Marco van Oort, penutbutterjelly, Philipp Lenssen, Bjorn Roesbeke
(http://www.bjornroesbeke.be/), Bug?, Eric Nagel, Tomasz Wesolowski,
Evertjan Garretsen, Bobby Drake, Blues (http://tech.bluesmoon.info/), Luke
Godfrey, Pul, uestla, Alan C, Ulrich, Rafal Kukawski, Yves Sucaet,
sowberry, Norman "zEh" Fuchs, hitwork, Zahlii, johnrembo, Nick Callen,
Steven Levithan (stevenlevithan.com), ejsanders, Scott Baker, Brian Tafoya
(http://www.premasolutions.com/), Philippe Jausions
(http://pear.php.net/user/jausions), Aidan Lister
(http://aidanlister.com/), Rob, e-mike, HKM, ChaosNo1, metjay, strcasecmp,
strcmp, Taras Bogach, jpfle, Alexander Ermolaev
(http://snippets.dzone.com/user/AlexanderErmolaev), DxGx, kilops, Orlando,
dptr1988, Le Torbi, James (http://www.james-bell.co.uk/), Pedro Tainha
(http://www.pedrotainha.com), James, Arnout Kazemier
(http://www.3rd-Eden.com), Chris McMacken, gabriel paderni, Yannoo,
FGFEmperor, baris ozdil, Tod Gentille, Greg Frazier, jakes, 3D-GRAF, Allan
Jensen (http://www.winternet.no), Howard Yeend, Benjamin Lupton, davook,
daniel airton wermann (http://wermann.com.br), Atli T¨®r, Maximusya, Ryan
W Tenney (http://ryan.10e.us), Alexander M Beedie, fearphage
(http://http/my.opera.com/fearphage/), Nathan Sepulveda, Victor, Matteo,
Billy, stensi, Cord, Manish, T.J. Leahy, Riddler
(http://www.frontierwebdev.com/), Rafa? Kukawski, FremyCompany, Matt
Bradley, Tim de Koning, Luis Salazar (http://www.freaky-media.com/), Diogo
Resende, Rival, Andrej Pavlovic, Garagoth, Le Torbi
(http://www.letorbi.de/), Dino, Josep Sanz (http://www.ws3.es/), rem,
Russell Walker (http://www.nbill.co.uk/), Jamie Beck
(http://www.terabit.ca/), setcookie, Michael, YUI Library:
http://developer.yahoo.com/yui/docs/YAHOO.util.DateLocale.html, Blues at
http://hacks.bluesmoon.info/strftime/strftime.js, Ben
(http://benblume.co.uk/), DtTvB
(http://dt.in.th/2008-09-16.string-length-in-bytes.html), Andreas, William,
meo, incidence, Cagri Ekin, Amirouche, Amir Habibi
(http://www.residence-mixte.com/), Luke Smith (http://lucassmith.name),
Kheang Hok Chin (http://www.distantia.ca/), Jay Klehr, Lorenzo Pisani,
Tony, Yen-Wei Liu, Greenseed, mk.keck, Leslie Hoare, dude, booeyOH, Ben
Bryan
Licensed under the MIT (MIT-LICENSE.txt) license.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL KEVIN VAN ZONNEVELD BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/function Y(){var e=/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuideEfFgG])/g,a=arguments,t=0,n=a[t++],r=function(e,a,t,n){t||(t=" ");var r=e.length>=a?"":Array(1+a-e.length>>>0).join(t);return n?e+r:r+e},i=function(e,a,t,n,i,s){var o=n-e.length;return o>0&&(e=t||!i?r(e,n,s,t):e.slice(0,a.length)+r("",o,"0",!0)+e.slice(a.length)),e},s=function(e,a,t,n,s,o,u){var l=e>>>0;return e=(t=t&&l&&{2:"0b",8:"0",16:"0x"}[a]||"")+r(l.toString(a),o||0,"0",!1),i(e,t,n,s,u)},o=function(e,a,t,n,r,s){return null!=n&&(e=e.slice(0,n)),i(e,"",a,t,r,s)},u=function(e,n,u,l,d,c,f){var h,m,p,y,w;if("%%"==e)return"%";for(var C=!1,x="",_=!1,M=!1,E=" ",O=u.length,S=0;u&&S<O;S++)switch(u.charAt(S)){case" ":x=" ";break;case"+":x="+";break;case"-":C=!0;break;case"'":E=u.charAt(S+1);break;case"0":_=!0;break;case"#":M=!0}if((l=l?"*"==l?+a[t++]:"*"==l.charAt(0)?+a[l.slice(1,-1)]:+l:0)<0&&(l=-l,C=!0),!isFinite(l))throw new Error("sprintf: (minimum-)width must be finite");switch(c=c?"*"==c?+a[t++]:"*"==c.charAt(0)?+a[c.slice(1,-1)]:+c:"fFeE".indexOf(f)>-1?6:"d"==f?0:void 0,w=n?a[n.slice(0,-1)]:a[t++],f){case"s":return o(String(w),C,l,c,_,E);case"c":return o(String.fromCharCode(+w),C,l,c,_);case"b":return s(w,2,M,C,l,c,_);case"o":return s(w,8,M,C,l,c,_);case"x":return s(w,16,M,C,l,c,_);case"X":return s(w,16,M,C,l,c,_).toUpperCase();case"u":return s(w,10,M,C,l,c,_);case"i":case"d":return h=+w||0,w=(m=(h=Math.round(h-h%1))<0?"-":x)+r(String(Math.abs(h)),c,"0",!1),i(w,m,C,l,_);case"e":case"E":case"f":case"F":case"g":case"G":return m=(h=+w)<0?"-":x,p=["toExponential","toFixed","toPrecision"]["efg".indexOf(f.toLowerCase())],y=["toString","toUpperCase"]["eEfFgG".indexOf(f)%2],w=m+Math.abs(h)[p](c),i(w,m,C,l,_)[y]();default:return e}};return n.replace(e,u)}function B(e,a,t,n,r,i,s,o){this.year=e,this.month=a,this.day=t,this.hour=n,this.minute=r,this.second=i,this.millisecond=s,this.isLeapSecond=o}function j(e){return e%4==0&&e%100!=0||e%400==0}function G(e,a){this.julianDate=e,this.offset=a}U[7]=A/136,z[7]=8*A/17,c.fastSlerp=function(e,a,t,n){var r,i=c.dot(e,a);i>=0?r=1:(r=-1,i=-i);for(var s=i-1,o=1-t,u=t*t,l=o*o,d=7;d>=0;--d)F[d]=(U[d]*u-z[d])*s,b[d]=(U[d]*l-z[d])*s;var f=r*t*(1+F[0]*(1+F[1]*(1+F[2]*(1+F[3]*(1+F[4]*(1+F[5]*(1+F[6]*(1+F[7])))))))),h=o*(1+b[0]*(1+b[1]*(1+b[2]*(1+b[3]*(1+b[4]*(1+b[5]*(1+b[6]*(1+b[7])))))))),m=c.multiplyByScalar(e,h,I);return c.multiplyByScalar(a,f,n),c.add(m,n,n)},c.fastSquad=function(e,a,t,n,r,i){var s=c.fastSlerp(e,a,r,N),o=c.fastSlerp(t,n,r,R);return c.fastSlerp(s,o,2*r*(1-r),i)},c.equals=function(e,t){return e===t||a.defined(e)&&a.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},c.equalsEpsilon=function(e,t,n){return e===t||a.defined(e)&&a.defined(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n},c.ZERO=Object.freeze(new c(0,0,0,0)),c.IDENTITY=Object.freeze(new c(0,0,0,1)),c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.equals=function(e){return c.equals(this,e)},c.prototype.equalsEpsilon=function(e,a){return c.equalsEpsilon(this,e,a)},c.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"};var Z=Object.freeze({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5}),X=Object.freeze({UTC:0,TAI:1}),J=new B,H=[31,28,31,30,31,30,31,31,30,31,30,31];function $(e,a){return fe.compare(e.julianDate,a.julianDate)}var Q=new G;function K(e){Q.julianDate=e;var a=fe.leapSeconds,t=V(a,Q,$);t<0&&(t=~t),t>=a.length&&(t=a.length-1);var n=a[t].offset;t>0&&(fe.secondsDifference(a[t].julianDate,e)>n&&(n=a[--t].offset));fe.addSeconds(e,n,e)}function ee(e,a){Q.julianDate=e;var t=fe.leapSeconds,n=V(t,Q,$);if(n<0&&(n=~n),0===n)return fe.addSeconds(e,-t[0].offset,a);if(n>=t.length)return fe.addSeconds(e,-t[n-1].offset,a);var r=fe.secondsDifference(t[n].julianDate,e);return 0===r?fe.addSeconds(e,-t[n].offset,a):r<=1?void 0:fe.addSeconds(e,