!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(E){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new k(r||[]);return i(a,"_invoke",{value:b(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}n.wrap=p;var d={};function v(){}function h(){}function g(){}var y={};s(y,c,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(x([])));w&&w!==r&&o.call(w,c)&&(y=w);var m=g.prototype=v.prototype=Object.create(y);function M(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(i,a,c,u){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=I(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,e,n){return o=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(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o},o.apply(null,arguments)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ni.attendance_range?"#FF5A56":"#01C1B5";u>i.attendance_range&&(n.dom.classList.add("myClassM2"),n.setIcon("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAcCAMAAACnDzTfAAABIFBMVEUAAAD/XFj/////////////+fn/////8/P/////////+Pj/ZGD/////cm//1dX/xcT/t7X/kY//////////////////////X1v/2tr/1NP/bWr/6ur/5+f/4N//+vr/enf/pqT/0tH/lJH/joz//////////////////////////////////////////////////Pz/9/f/ZmP/3t3/29r/rqz/8PD/mZb/iIX/hoP/wcD/hYL/npz/////////////////////////////////////////////////////////////////////////Wlb/////9PT/6ej/1tX/vbz/npz/dHH/8fD/2tn/ycj/pqT/ko//fXr/cGz/aGT/XFg2JTGLAAAAT3RSTlMA/NZqE/3796UE+vr29vPz8fF+QS8bC/v5+Pf29vb19fTy8vLx7+Pc2cWQbUg6JyD29vX08/Py8vLy8fHv7N7RvbKroZyVc2dfUVA9NSoSehyD/QAAATZJREFUKM9tked6gkAQRRcUxF4Q7BoTa2zpvffOVWN6ef+3SBiCLIbza3bPt7t3dphD8L57o2rMg7vTOkxaKf+MeVAAbOSq2TJQ87lU/wBSImr8ImzHACXoKK2BUt6wSYagOK6NtYzhUAlheu0VAmGDJ4maHUjEpuEmhpSl0ggItPP+Mnp9omoLouU6iNPGBACGn5R2Cdali5gj9wyTR6pL6JE7w565/AIxJpdDlz/3PeTOZXFLzvf33pupJAojlKG5c05G0viDql00p/3Ne/VHXKIguNQC6n57qCLWeRUOoMNsVMgVzsXR5oZ0jmKG++lInznoLezYKr8M9+DTETursIpj5sYHKUougQZl5FFQCJvxZbnHZtEPURWMaAgX7D+DfSRWijhhXqgyAFFnnlw3I0cDbv0DsZxwvZH42EwAAAAASUVORK5CYII="));var p=new t.Polyline({strokeColor:s,strokeWeight:2,isOutline:!0,outlineColor:s});p.setMap(w.value),p.setPath(l);var f=new t.Text({text:u+"M",style:{"font-size":"12px",color:"#fff",border:"none",backgroundColor:s}});f.setPosition(c),f.setMap(w.value),"top"==r&&f.setOffset(new t.Pixel(-40,-10))}w.value=new t.Map("gpsContainer",{resizeEnable:!0,zoom:16,zooms:[2,22]}),t.plugin(["AMap.Geocoder","AMap.GeometryUtil"],(function(){if(i.lnglat&&i.lnglat.length>0){w.value.setCenter(i.lnglat,!0),e&&(e.setMap(null),e=null),n(i.lnglat,"教学点","addressMark");var c=new t.Circle({center:o(t.LngLat,a(i.lnglat)),radius:i.attendance_range,strokeColor:"#00B2A7",strokeOpacity:1,strokeWeight:2,fillColor:"#A3FFF9",fillOpacity:.14});w.value.add(c),w.value.setFitView()}i.signInLongitudeLatitude&&i.signInLongitudeLatitude.length>0&&(console.log("signInLongitudeLatitude",i.signInLongitudeLatitude),n(i.signInLongitudeLatitude,"签到点","signInMark")),i.signOutLongitudeLatitude&&i.signOutLongitudeLatitude.length>0&&(console.log("signOutLongitudeLatitude",i.signOutLongitudeLatitude),n(i.signOutLongitudeLatitude,"签退点","signOutMark")),console.log(i,"selectMapAddress"),i.signInMark&&i.addressMark&&(r(i.addressMark,i.signInMark,"top"),console.log("连线 设置签到点与教学点的距离")),i.signOutMark&&i.addressMark&&(r(i.addressMark,i.signOutMark,"bottom"),console.log("连线 设置签退点与教学点的距离"))}))})).catch((function(){}))};return l(r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.get("/api-web/open/school/queryByParamName",{params:{paramName:"attendance_range"}});case 3:n=t.sent,r=n.data,i.attendance_range=r.attendance_range||1e3,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:m();case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))),function(){return p("div",{class:n["amap-gps"]},[p(v,{position:"top"},{default:function(){return[p(f,null,null)]}}),p("div",{id:"gpsContainer",style:{width:"100%",height:"calc(100vh - var(--header-height))",position:"relative"}},null)])}}}))}}}))}();